1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2025-02-20 15:08:48 +01:00

docs: add primary light theme to fix color contrast (#3070)

This commit is contained in:
Joaquín Sánchez 2024-11-30 15:42:17 +01:00 committed by GitHub
parent 7a4b1907b1
commit 672e057f83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,8 +1,17 @@
import { defineTheme } from 'pinceau'
import { getColors } from 'theme-colors'
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 }>)
export default defineTheme({
color: {
primary: getColors('#d98018'),
},
color: { primary },
})