Add colors to theme

This commit is contained in:
Valtteri Karesto
2021-12-13 17:21:40 +02:00
parent adc268c3cd
commit e471e8d7ef

View File

@@ -11,6 +11,7 @@ import {
mauve, mauve,
pink, pink,
yellow, yellow,
purple,
grayDark, grayDark,
blueDark, blueDark,
redDark, redDark,
@@ -20,6 +21,7 @@ import {
mauveDark, mauveDark,
pinkDark, pinkDark,
yellowDark, yellowDark,
purpleDark,
} from '@radix-ui/colors'; } from '@radix-ui/colors';
export const { export const {
@@ -43,6 +45,7 @@ export const {
...mauve, ...mauve,
...pink, ...pink,
...yellow, ...yellow,
...purple,
background: "$gray1", background: "$gray1",
text: "$gray12", text: "$gray12",
primary: "$plum", primary: "$plum",
@@ -52,10 +55,10 @@ export const {
fonts: { fonts: {
body: 'Work Sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif', body: 'Work Sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',
heading: 'Work Sans, sans-serif', heading: 'Work Sans, sans-serif',
monospace: 'Roboto, monospace', monospace: 'Roboto Mono, monospace',
}, },
fontSizes: { fontSizes: {
xs: "0.75rem", xs: "0.6875rem",
sm: "0.875rem", sm: "0.875rem",
md: "1rem", md: "1rem",
lg: "1.125rem", lg: "1.125rem",
@@ -298,7 +301,8 @@ export const darkTheme = createTheme('dark', {
...slateDark, ...slateDark,
...mauveDark, ...mauveDark,
...pinkDark, ...pinkDark,
...yellowDark ...yellowDark,
...purpleDark,
}, },
}); });
@@ -312,4 +316,8 @@ export const globalStyles = globalCss({
'-webkit-font-smoothing': 'antialiased', '-webkit-font-smoothing': 'antialiased',
'-moz-osx-font-smoothing': 'grayscale' '-moz-osx-font-smoothing': 'grayscale'
}, },
'a': {
color: 'inherit',
textDecoration: 'none'
}
}); });