summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichal Sapka <michal@sapka.me>2022-09-07 21:48:34 +0200
committerMichal Sapka <michal@sapka.me>2022-09-07 21:48:34 +0200
commit595eb4abb305b0b383fac1e882dcd3db3cca9322 (patch)
treeedf81543332dd976eecf037865a0a4ceef9aa36e /lib
parent5bff8f1e81d441b04882d11fbe3edbee6071fa3c (diff)
feat: dracula light theme
Diffstat (limited to 'lib')
-rw-r--r--lib/theme.tsx24
1 files changed, 20 insertions, 4 deletions
diff --git a/lib/theme.tsx b/lib/theme.tsx
index a7ae2224..2d24742e 100644
--- a/lib/theme.tsx
+++ b/lib/theme.tsx
@@ -5,8 +5,8 @@ import type { StyleFunctionProps } from '@chakra-ui/styled-system'
const styles = {
global: (props : StyleFunctionProps) => ({
body: {
- bg: mode('#d5d6db', '#282a36')(props),
- color: mode('#0f4b6e', '#f8f8f2')(props),
+ bg: mode('#f8f8f2', '#282a36')(props),
+ color: mode('#282a36', '#f8f8f2')(props),
}
})
}
@@ -14,14 +14,30 @@ const styles = {
const components = {
Link: {
baseStyle: (props : StyleFunctionProps) => ({
- color: mode('#3d7aed', '#bd93f9')(props),
+ color: mode('#ff5555', '#bd93f9')(props),
+
textUnderlineOffset: 3
- })
+ }),
+ variants: {
+ 'topnav-link': (props : StyleFunctionProps) => ({
+ color: mode('#282a36', '#f8f8f2')(props),
+ textDecoration: "none"
+ })
+ }
},
Text: {
baseStyle: (_props : StyleFunctionProps) => ({
textAlign: "justify",
})
+ },
+ Heading: {
+ variants: {
+ "section-title": {
+ pt: "10px",
+ pb: "10px",
+ fontSize: "1.5rem"
+ }
+ }
}
}