fix(theme): use @theme inline to properly reference css variables

Resolves #4018

https://tailwindcss.com/docs/theme#referencing-other-variables
This commit is contained in:
Benjamin Canac
2025-04-29 14:33:07 +02:00
parent 9543bce787
commit 6131871a0d

View File

@@ -77,7 +77,7 @@ export function getTemplates(options: ModuleOptions, uiConfig: Record<string, an
write: true,
getContents: () => `@source "./ui";
@theme default {
@theme default inline {
--color-old-neutral-50: ${colors.neutral[50]};
--color-old-neutral-100: ${colors.neutral[100]};
--color-old-neutral-200: ${colors.neutral[200]};