mirror of
https://github.com/fmhy/edit.git
synced 2025-11-28 08:51:08 +11:00
fix mayhaps?
This commit is contained in:
parent
19d177ed07
commit
54ee73d9e5
1 changed files with 3 additions and 3 deletions
|
|
@ -39,7 +39,7 @@ const colorScales = [
|
||||||
'950'
|
'950'
|
||||||
] as const
|
] as const
|
||||||
|
|
||||||
const colorPattern = Object.keys(colors).join('|')
|
const colorPattern = Object.keys(extendedColors).join('|')
|
||||||
const createColorRules = (type: 'text' | 'bg' | 'border'): Rule[] => {
|
const createColorRules = (type: 'text' | 'bg' | 'border'): Rule[] => {
|
||||||
const property =
|
const property =
|
||||||
type === 'text'
|
type === 'text'
|
||||||
|
|
@ -52,7 +52,7 @@ const createColorRules = (type: 'text' | 'bg' | 'border'): Rule[] => {
|
||||||
(scale) =>
|
(scale) =>
|
||||||
[
|
[
|
||||||
new RegExp(`^${type}-(${colorPattern})-${scale}$`),
|
new RegExp(`^${type}-(${colorPattern})-${scale}$`),
|
||||||
([, color]) => ({ [property]: colors[color][scale] })
|
([, color]) => ({ [property]: extendedColors[color][scale] })
|
||||||
] as const
|
] as const
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -63,7 +63,7 @@ export default defineConfig({
|
||||||
},
|
},
|
||||||
theme: {
|
theme: {
|
||||||
colors: {
|
colors: {
|
||||||
...colors,
|
...extendedColors,
|
||||||
primary: 'var(--vp-c-brand-1)',
|
primary: 'var(--vp-c-brand-1)',
|
||||||
bg: 'var(--vp-c-bg)',
|
bg: 'var(--vp-c-bg)',
|
||||||
'bg-alt': 'var(--vp-c-bg-alt)',
|
'bg-alt': 'var(--vp-c-bg-alt)',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue