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 { defineTheme } from 'pinceau'
|
||||||
import { getColors } from 'theme-colors'
|
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({
|
export default defineTheme({
|
||||||
color: {
|
color: { primary },
|
||||||
primary: getColors('#d98018'),
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue