1
0
Fork 0
mirror of https://github.com/elk-zone/elk.git synced 2025-02-28 05:08:57 +03:00
elk/docs/tokens.config.ts

18 lines
417 B
TypeScript
Raw Permalink Normal View History

import { defineTheme } from 'pinceau'
import { getColors } from 'theme-colors'
2023-01-08 21:42:59 +00:00
const light = getColors('#995e1b')
const primary = Object
.entries(getColors('#d98018'))
.reduce((acc, [key, value]) => {
acc[key] = {
initial: light[key]!,
dark: value,
}
return acc
}, {} as Record<string | number, { initial: string, dark: string }>)
2023-01-08 21:42:59 +00:00
export default defineTheme({
color: { primary },
2023-01-08 21:42:59 +00:00
})