grungnet/src/theme.js

227 lines
4.4 KiB
JavaScript
Raw Normal View History

2020-03-15 02:50:56 -04:00
export default {
colors: {
text: "hsl(210, 50%, 96%)",
background: "hsl(230, 25%, 18%)",
primary: "hsl(260, 100%, 80%)",
secondary: "hsl(290, 100%, 80%)",
highlight: "hsl(260, 20%, 40%)",
purple: "hsl(290, 100%, 80%)",
muted: "hsla(230, 20%, 0%, 20%)",
2020-03-25 21:24:52 -04:00
gray: "hsl(0, 0%, 70%)"
2020-03-15 02:50:56 -04:00
},
fonts: {
body: "'Bree Serif', serif",
2020-03-25 22:26:10 -04:00
body2:
2020-03-25 21:24:52 -04:00
"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif",
heading: "'Bree Serif', serif",
monospace: "Menlo, monospace",
display: "'Pacifico', cursive"
2020-03-15 02:50:56 -04:00
},
fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72],
fontWeights: {
2020-03-25 21:24:52 -04:00
caption: 200,
body: 300,
heading: 400,
2020-03-25 21:24:52 -04:00
display: 400
2020-03-15 02:50:56 -04:00
},
lineHeights: {
2020-03-25 21:24:52 -04:00
body: 1.1,
2020-03-15 02:50:56 -04:00
heading: 1.25
},
2020-03-25 21:24:52 -04:00
text: {
2020-03-15 02:50:56 -04:00
heading: {
fontFamily: "heading",
fontWeight: "heading",
2020-03-25 21:24:52 -04:00
lineHeight: "heading",
fontSize: 1
2020-03-15 02:50:56 -04:00
},
display: {
variant: "textStyles.heading",
2020-03-25 21:24:52 -04:00
fontFamily: "display",
2020-03-15 02:50:56 -04:00
fontSize: [5, 6],
fontWeight: "display",
mt: 3
2020-03-25 21:24:52 -04:00
},
caption: {
2020-03-25 22:26:10 -04:00
fontFamily: "body2",
2020-03-25 21:24:52 -04:00
fontWeight: "caption",
fontSize: 10,
color: "gray"
},
2020-03-25 22:26:10 -04:00
body2: {
fontFamily: "body2",
2020-03-25 21:24:52 -04:00
fontSize: 1,
fontWeight: "body"
2020-03-15 02:50:56 -04:00
}
},
styles: {
Container: {
p: 3,
maxWidth: 1024
},
root: {
fontFamily: "body",
lineHeight: "body",
fontWeight: "body"
},
h1: {
variant: "textStyles.display"
},
h2: {
variant: "textStyles.heading",
fontSize: 5
},
h3: {
variant: "textStyles.heading",
fontSize: 4
},
h4: {
variant: "textStyles.heading",
fontSize: 3
},
h5: {
variant: "textStyles.heading",
fontSize: 2
},
h6: {
variant: "textStyles.heading",
fontSize: 1
},
a: {
color: "primary",
"&:hover": {
color: "secondary"
}
},
pre: {
variant: "prism",
fontFamily: "monospace",
fontSize: 1,
p: 3,
color: "text",
bg: "muted",
overflow: "auto",
code: {
color: "inherit"
}
},
code: {
fontFamily: "monospace",
color: "secondary",
fontSize: 1
},
inlineCode: {
fontFamily: "monospace",
color: "secondary",
bg: "muted"
},
table: {
width: "100%",
my: 4,
borderCollapse: "separate",
borderSpacing: 0,
"th,td": {
textAlign: "left",
py: "4px",
pr: "4px",
pl: 0,
borderColor: "muted",
borderBottomStyle: "solid"
}
},
th: {
verticalAlign: "bottom",
borderBottomWidth: "2px"
},
td: {
verticalAlign: "top",
borderBottomWidth: "1px"
},
hr: {
border: 0,
borderBottom: "1px solid",
borderColor: "muted"
},
img: {
maxWidth: "100%"
}
},
prism: {
".comment,.prolog,.doctype,.cdata,.punctuation,.operator,.entity,.url": {
color: "gray"
},
".comment": {
fontStyle: "italic"
},
".property,.tag,.boolean,.number,.constant,.symbol,.deleted,.function,.class-name,.regex,.important,.variable": {
color: "purple"
},
".atrule,.attr-value,.keyword": {
color: "primary"
},
".selector,.attr-name,.string,.char,.bultin,.inserted": {
color: "secondary"
}
},
forms: {
label: {
fontWeight: 400
},
input: {
"&:focus": {
outlineColor: "primary"
}
}
},
buttons: {
primary: {
color: "text",
bg: "transparent",
borderStyle: "solid",
borderWidth: "1px",
borderColor: "text",
"&:hover": {
borderColor: "highlight",
cursor: "pointer"
},
fontFamily: "body",
"&:focus": {
outline: "none"
},
"&:active": {
borderColor: "primary"
}
},
secondary: {
color: "secondary",
bg: "transparent",
borderStyle: "solid",
borderWidth: "1px",
borderColor: "text",
fontFamily: "body"
},
icon: {
"&:hover": {
cursor: "pointer"
},
"&:focus": {
outline: "none"
},
"&:active": {
color: "primary"
}
},
close: {
"&:hover": {
cursor: "pointer"
},
"&:focus": {
outline: "none"
},
"&:active": {
color: "primary"
}
2020-03-15 02:50:56 -04:00
}
}
};