grungnet/src/theme.js

278 lines
5.6 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%)",
overlay: "hsla(230, 25%, 18%, 0.8)",
border: "hsla(210, 50%, 96%, 0.5)",
2020-04-26 05:04:18 -04:00
modes: {
light: {
text: "hsl(10, 20%, 20%)",
background: "hsl(10, 10%, 98%)",
primary: "hsl(260, 100%, 80%)",
secondary: "hsl(290, 100%, 80%)",
highlight: "hsl(260, 20%, 40%)",
muted: "hsla(230, 20%, 60%, 20%)",
overlay: "hsla(230, 100%, 97%, 0.8)",
border: "hsla(10, 20%, 20%, 0.5)",
2020-04-26 05:04:18 -04:00
},
},
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,
2020-04-09 09:45:39 -04:00
body: 400,
heading: 400,
2020-04-06 01:38:36 -04:00
display: 400,
2020-03-15 02:50:56 -04:00
},
lineHeights: {
body: 1.3,
display: 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: "text.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",
2020-04-09 09:45:39 -04:00
fontSize: 0,
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",
fontSize: 0,
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: {
variant: "text.display",
2020-03-15 02:50:56 -04:00
},
h2: {
variant: "text.heading",
2020-04-06 01:38:36 -04:00
fontSize: 5,
2020-03-15 02:50:56 -04:00
},
h3: {
variant: "text.heading",
2020-04-06 01:38:36 -04:00
fontSize: 4,
2020-03-15 02:50:56 -04:00
},
h4: {
variant: "text.heading",
2020-04-06 01:38:36 -04:00
fontSize: 3,
2020-03-15 02:50:56 -04:00
},
h5: {
variant: "text.heading",
2020-04-06 01:38:36 -04:00
fontSize: 2,
2020-03-15 02:50:56 -04:00
},
h6: {
variant: "text.heading",
2020-04-06 01:38:36 -04:00
fontSize: 1,
2020-03-15 02:50:56 -04:00
},
a: {
variant: "text.body2",
color: "text",
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
},
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-06-27 23:47:05 -04:00
progress: {
color: "text",
backgroundColor: "overlay",
},
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",
},
"&:disabled": {
backgroundColor: "muted",
color: "gray",
borderColor: "text",
},
2020-04-06 01:38:36 -04:00
},
},
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",
},
"&:disabled": {
borderColor: "text",
opacity: 0.5,
},
},
secondary: {
2020-04-14 22:49:56 -04:00
color: "text",
bg: "transparent",
2020-04-14 22:49:56 -04:00
border: "none",
2020-04-06 01:38:36 -04:00
fontFamily: "body",
2020-04-14 22:49:56 -04:00
"&:focus": {
outline: "none",
},
"&:disabled": {
opacity: 0.5,
},
"&:hover": {
color: "primary",
cursor: "pointer",
},
"&:active": {
color: "secondary",
},
},
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",
},
"&:disabled": {
opacity: 0.5,
color: "text",
},
},
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%)",
},
},
},
messages: {
warning: {
backgroundColor: "#d65c64",
borderLeftColor: "#ff939b",
},
note: {
2020-07-02 06:17:04 -04:00
backgroundColor: "#ca871e",
borderLeftColor: "#ebd2ac",
},
},
2020-03-15 02:50:56 -04:00
};