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:
parent
7a4b1907b1
commit
672e057f83
1 changed files with 12 additions and 3 deletions
|
@ -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 },
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue