dark theme

This commit is contained in:
Chris Wanstrath 2025-12-29 13:27:11 -08:00
parent c04300802d
commit f66a47d0bb
2 changed files with 41 additions and 39 deletions

View File

@ -0,0 +1,37 @@
export default {
colors: {
bg: '#0a0a0a',
bgElevated: '#111',
bgHover: '#1a1a1a',
fg: '#00ff00',
fgMuted: '#888',
fgDim: '#444',
border: '#222',
borderActive: '#00ff00',
accent: '#00ff00',
accentDim: '#008800',
},
fonts: {
mono: "'Monaco', 'Menlo', 'Consolas', monospace",
sans: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",
},
spacing: {
xs: 8,
sm: 12,
md: 16,
lg: 24,
xl: 32,
xxl: 48,
},
radius: {
sm: 4,
md: 8,
lg: 12,
}
}

View File

@ -1,42 +1,7 @@
import { define, Styles } from '../../src' import { define, Styles } from '../../src'
import darkTheme from './darkTheme'
export const theme = { export const theme = darkTheme
colors: {
bg: '#0a0a0a',
bgElevated: '#111',
bgHover: '#1a1a1a',
fg: '#00ff00',
fgMuted: '#888',
fgDim: '#444',
border: '#222',
borderActive: '#00ff00',
accent: '#00ff00',
accentDim: '#008800',
},
fonts: {
mono: "'Monaco', 'Menlo', 'Consolas', monospace",
sans: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",
},
spacing: {
xs: 8,
sm: 12,
md: 16,
lg: 24,
xl: 32,
xxl: 48,
},
radius: {
sm: 4,
md: 8,
lg: 12,
}
}
export const Body = define('Body', { export const Body = define('Body', {
base: 'body', base: 'body',
@ -85,7 +50,7 @@ export const ExampleSection = define('ExampleSection', {
} }
}) })
const Nav = define('SSR_Nav', { const Nav = define({
base: 'nav', base: 'nav',
display: 'flex', display: 'flex',
@ -97,7 +62,7 @@ const Nav = define('SSR_Nav', {
borderRadius: theme.radius.sm, borderRadius: theme.radius.sm,
}) })
const NavLink = define('SSR_NavLink', { const NavLink = define({
base: 'a', base: 'a',
color: theme.colors.fgMuted, color: theme.colors.fgMuted,