grungnet/src/theme.js

246 lines
4.9 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-04-06 01:38:36 -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",
2020-04-06 01:38:36 -04:00
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-04-06 01:38:36 -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-04-06 01:38:36 -04:00
heading: 1.25,
2020-03-15 02:50:56 -04:00
},
breakpoints: ["12em", "24em", "40em", "56em", "64em"],
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",
2020-04-06 01:38:36 -04:00
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",
2020-04-06 01:38:36 -04:00
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,
2020-04-06 01:38:36 -04:00
color: "gray",
2020-03-25 21:24:52 -04:00
},
2020-03-25 22:26:10 -04:00
body2: {
fontFamily: "body2",
2020-03-25 21:24:52 -04:00
fontSize: 1,
2020-04-06 01:38:36 -04:00
fontWeight: "body",
},
2020-03-15 02:50:56 -04:00
},
styles: {
Container: {
p: 3,
2020-04-06 01:38:36 -04:00
maxWidth: 1024,
2020-03-15 02:50:56 -04:00
},
root: {
fontFamily: "body",
lineHeight: "body",
2020-04-06 01:38:36 -04:00
fontWeight: "body",
2020-03-15 02:50:56 -04:00
},
h1: {
2020-04-06 01:38:36 -04:00
variant: "textStyles.display",
2020-03-15 02:50:56 -04:00
},
h2: {
variant: "textStyles.heading",
2020-04-06 01:38:36 -04:00
fontSize: 5,
2020-03-15 02:50:56 -04:00
},
h3: {
variant: "textStyles.heading",
2020-04-06 01:38:36 -04:00
fontSize: 4,
2020-03-15 02:50:56 -04:00
},
h4: {
variant: "textStyles.heading",
2020-04-06 01:38:36 -04:00
fontSize: 3,
2020-03-15 02:50:56 -04:00
},
h5: {
variant: "textStyles.heading",
2020-04-06 01:38:36 -04:00
fontSize: 2,
2020-03-15 02:50:56 -04:00
},
h6: {
variant: "textStyles.heading",
2020-04-06 01:38:36 -04:00
fontSize: 1,
2020-03-15 02:50:56 -04:00
},
a: {
variant: "textStyles.caption",
2020-03-15 02:50:56 -04:00
"&:hover": {
color: "primary",
},
"&:active": {
2020-04-06 01:38:36 -04:00
color: "secondary",
},
2020-03-15 02:50:56 -04:00
},
pre: {
variant: "prism",
fontFamily: "monospace",
fontSize: 1,
p: 3,
color: "text",
bg: "muted",
overflow: "auto",
code: {
2020-04-06 01:38:36 -04:00
color: "inherit",
},
2020-03-15 02:50:56 -04:00
},
code: {
fontFamily: "monospace",
color: "secondary",
2020-04-06 01:38:36 -04:00
fontSize: 1,
2020-03-15 02:50:56 -04:00
},
inlineCode: {
fontFamily: "monospace",
color: "secondary",
2020-04-06 01:38:36 -04:00
bg: "muted",
2020-03-15 02:50:56 -04:00
},
table: {
width: "100%",
my: 4,
borderCollapse: "separate",
borderSpacing: 0,
"th,td": {
textAlign: "left",
py: "4px",
pr: "4px",
pl: 0,
borderColor: "muted",
2020-04-06 01:38:36 -04:00
borderBottomStyle: "solid",
},
2020-03-15 02:50:56 -04:00
},
th: {
verticalAlign: "bottom",
2020-04-06 01:38:36 -04:00
borderBottomWidth: "2px",
2020-03-15 02:50:56 -04:00
},
td: {
verticalAlign: "top",
2020-04-06 01:38:36 -04:00
borderBottomWidth: "1px",
2020-03-15 02:50:56 -04:00
},
hr: {
border: 0,
borderBottom: "1px solid",
2020-04-06 01:38:36 -04:00
borderColor: "muted",
2020-03-15 02:50:56 -04:00
},
img: {
2020-04-06 01:38:36 -04:00
maxWidth: "100%",
},
2020-03-15 02:50:56 -04:00
},
prism: {
".comment,.prolog,.doctype,.cdata,.punctuation,.operator,.entity,.url": {
2020-04-06 01:38:36 -04:00
color: "gray",
2020-03-15 02:50:56 -04:00
},
".comment": {
2020-04-06 01:38:36 -04:00
fontStyle: "italic",
2020-03-15 02:50:56 -04:00
},
".property,.tag,.boolean,.number,.constant,.symbol,.deleted,.function,.class-name,.regex,.important,.variable": {
2020-04-06 01:38:36 -04:00
color: "purple",
2020-03-15 02:50:56 -04:00
},
".atrule,.attr-value,.keyword": {
2020-04-06 01:38:36 -04:00
color: "primary",
2020-03-15 02:50:56 -04:00
},
".selector,.attr-name,.string,.char,.bultin,.inserted": {
2020-04-06 01:38:36 -04:00
color: "secondary",
},
2020-03-15 02:50:56 -04:00
},
forms: {
label: {
2020-04-06 01:38:36 -04:00
fontWeight: 400,
},
input: {
"&:focus": {
2020-04-06 01:38:36 -04:00
outlineColor: "primary",
},
},
},
buttons: {
primary: {
color: "text",
bg: "transparent",
borderStyle: "solid",
borderWidth: "1px",
borderColor: "text",
"&:hover": {
borderColor: "highlight",
2020-04-06 01:38:36 -04:00
cursor: "pointer",
},
fontFamily: "body",
"&:focus": {
2020-04-06 01:38:36 -04:00
outline: "none",
},
"&:active": {
2020-04-06 01:38:36 -04:00
borderColor: "primary",
},
},
secondary: {
color: "secondary",
bg: "transparent",
borderStyle: "solid",
borderWidth: "1px",
borderColor: "text",
2020-04-06 01:38:36 -04:00
fontFamily: "body",
},
icon: {
"&:hover": {
2020-04-06 01:38:36 -04:00
cursor: "pointer",
color: "primary",
},
"&:focus": {
2020-04-06 01:38:36 -04:00
outline: "none",
},
"&:active": {
2020-04-06 01:38:36 -04:00
color: "secondary",
},
},
close: {
"&:hover": {
2020-04-06 01:38:36 -04:00
cursor: "pointer",
color: "primary",
},
"&:focus": {
2020-04-06 01:38:36 -04:00
outline: "none",
},
"&:active": {
2020-04-06 01:38:36 -04:00
color: "secondary",
},
},
},
links: {
footer: {
variant: "text.caption",
textDecoration: "underline",
"&:hover": {
textDecorationColor: "hsl(260, 100%, 80%)",
cursor: "pointer",
},
"&:active": {
textDecorationColor: "hsl(290, 100%, 80%)",
},
},
},
2020-03-15 02:50:56 -04:00
};