diff options
author | Michal Sapka <michal@sapka.me> | 2022-08-11 22:44:46 +0200 |
---|---|---|
committer | Michal Sapka <michal@sapka.me> | 2022-08-11 22:44:46 +0200 |
commit | 0c1973d84c3aa86e7ea6004e6e0845f123f49f2a (patch) | |
tree | e232984c01c75b471d1756ae87bf036a913832f6 /lib | |
parent | 462c437667ac750cc0fd765dfd551adfce2b2d91 (diff) |
feat: theming spike
Diffstat (limited to 'lib')
-rw-r--r-- | lib/theme.tsx | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/theme.tsx b/lib/theme.tsx new file mode 100644 index 00000000..ecc30d43 --- /dev/null +++ b/lib/theme.tsx @@ -0,0 +1,37 @@ +import { extendTheme } from "@chakra-ui/react" +import { mode } from '@chakra-ui/theme-tools' + +const styles = { + global: props => ({ + body: { + bg: mode('#d5d6db', '#24283b')(props), + color: mode('#0f4b6e', '#7dcfff')(props), + } + }) +} + +const components = { + Link: { + baseStyle: props => ({ + color: mode('#34548a', '##34548a')(props), + textUnderlineOffset: 3 + }) + } +} + +const config = { + initialColorMode: 'dark', + useSystemColorMode: false, +} + +const theme = extendTheme({ + config, + styles, + components +}) + + +console.log(theme) + + +export default theme |