Accent works
This commit is contained in:
parent
b8f4b18ae5
commit
e5a34870f0
9 changed files with 68 additions and 12 deletions
|
@ -160,7 +160,13 @@ const generateColors = (input) => {
|
|||
}
|
||||
return acc
|
||||
}, {}))
|
||||
const col = Object.entries(input.colors || input).reduce((acc, [k, v]) => {
|
||||
|
||||
const inputColors = input.colors || input
|
||||
|
||||
const compat = input.v3compat || {}
|
||||
const compatColors = compat.colors || {}
|
||||
|
||||
const col = Object.entries({ ...inputColors, ...compatColors }).reduce((acc, [k, v]) => {
|
||||
if (typeof v === 'object') {
|
||||
acc[k] = v
|
||||
} else {
|
||||
|
@ -174,7 +180,10 @@ const generateColors = (input) => {
|
|||
|
||||
colors.text = col.text
|
||||
colors.lightText = brightness(20 * mod, colors.text).rgb
|
||||
colors.link = col.link
|
||||
|
||||
colors.accent = col.accent || col.link
|
||||
colors.link = col.link || col.accent
|
||||
|
||||
colors.faint = col.faint || Object.assign({}, col.text)
|
||||
|
||||
colors.bg = col.bg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue