mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
fix(theme): define old-neutral color as static (#4193)
This commit is contained in:
@@ -76,7 +76,7 @@ export function getTemplates(options: ModuleOptions, uiConfig: Record<string, an
|
||||
write: true,
|
||||
getContents: () => `@source "./ui";
|
||||
|
||||
@theme default inline {
|
||||
@theme static {
|
||||
--color-old-neutral-50: ${colors.neutral[50]};
|
||||
--color-old-neutral-100: ${colors.neutral[100]};
|
||||
--color-old-neutral-200: ${colors.neutral[200]};
|
||||
@@ -88,6 +88,9 @@ export function getTemplates(options: ModuleOptions, uiConfig: Record<string, an
|
||||
--color-old-neutral-800: ${colors.neutral[800]};
|
||||
--color-old-neutral-900: ${colors.neutral[900]};
|
||||
--color-old-neutral-950: ${colors.neutral[950]};
|
||||
}
|
||||
|
||||
@theme default inline {
|
||||
${[...(options.theme?.colors || []).filter(color => !colors[color as keyof typeof colors]), 'neutral'].map(color => [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950].map(shade => `--color-${color}-${shade}: var(--ui-color-${color}-${shade});`).join('\n\t')).join('\n\t')}
|
||||
${options.theme?.colors?.map(color => `--color-${color}: var(--ui-${color});`).join('\n\t')}
|
||||
--radius-xs: calc(var(--ui-radius) * 0.5);
|
||||
|
||||
Reference in New Issue
Block a user