fix mayhaps?

This commit is contained in:
Samidy 2025-11-01 13:24:14 +03:00 committed by GitHub
parent 19d177ed07
commit 54ee73d9e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)',