Skip to content

Commit e83a9cf

Browse files
committed
fix: extract-theme-css extra curly brace
1 parent 3d74301 commit e83a9cf

File tree

1 file changed

+61
-62
lines changed

1 file changed

+61
-62
lines changed

packages/utils/src/theme/extract-theme-css.ts

Lines changed: 61 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -271,69 +271,68 @@ function objThemeToCSSThemeOutput(themeObject: ThemeMap) {
271271

272272
cssOutput += `}
273273
274-
@theme inline {
275-
--color-background: var(--background);
276-
--color-foreground: var(--foreground);
277-
--color-card: var(--card);
278-
--color-card-foreground: var(--card-foreground);
279-
--color-popover: var(--popover);
280-
--color-popover-foreground: var(--popover-foreground);
281-
--color-primary: var(--primary);
282-
--color-primary-foreground: var(--primary-foreground);
283-
--color-secondary: var(--secondary);
284-
--color-secondary-foreground: var(--secondary-foreground);
285-
--color-muted: var(--muted);
286-
--color-muted-foreground: var(--muted-foreground);
287-
--color-accent: var(--accent);
288-
--color-accent-foreground: var(--accent-foreground);
289-
--color-alert: var(--alert);
290-
--color-alert-foreground: var(--alert-foreground);
291-
--color-border: var(--border);
292-
--color-input: var(--input);
293-
--color-ring: var(--ring);
294-
--radius-xs: var(--border-radius);
295-
--radius-sm: calc(var(--border-radius) + 0.125rem);
296-
--radius-md: calc(var(--border-radius) + 0.375rem);
297-
--radius-lg: calc(var(--border-radius) + 0.5rem);
298-
--radius-xl: calc(var(--border-radius) + 0.75rem);
299-
--radius-2xl: calc(var(--border-radius) + 1rem);
300-
--radius-3xl: calc(var(--border-radius) + 1.5rem);
301-
--shadow-base: var(--shadow-base);
302-
--shadow-2xs: var(--shadow-2xs);
303-
--shadow-xs: var(--shadow-xs);
304-
--shadow-sm: var(--shadow-sm);
305-
--shadow-md: var(--shadow-md);
306-
--shadow-lg: var(--shadow-lg);
307-
--shadow-xl: var(--shadow-xl);
308-
--shadow-2xl: var(--shadow-2xl);
309-
--shadow-inner: var(--shadow-inner);
310-
--default-border-width: calc(var(--border-width) + 1px);
311-
--border-width-base: var(--border-width);
312-
--border-width-2: calc(var(--border-width) + 2px);
313-
--border-width-4: calc(var(--border-width) + 4px);
314-
--border-width-8: calc(var(--border-width) + 8px);
315-
--stroke-width-0: 0px;
316-
--stroke-width-base: var(--stroke-width);
317-
--stroke-width-1: calc(var(--stroke-width) + 1px);
318-
--stroke-width-2: calc(var(--stroke-width) + 2px);
319-
--animate-accordion-down: collapsible-down 0.2s ease-out forwards;
320-
--animate-accordion-up: collapsible-up 0.2s ease-out forwards;
321-
322-
@keyframes collapsible-down {
323-
from {
324-
height: 0;
325-
}
326-
to {
327-
height: var(--qwikui-collapsible-content-height);
328-
}
274+
@theme inline {
275+
--color-background: var(--background);
276+
--color-foreground: var(--foreground);
277+
--color-card: var(--card);
278+
--color-card-foreground: var(--card-foreground);
279+
--color-popover: var(--popover);
280+
--color-popover-foreground: var(--popover-foreground);
281+
--color-primary: var(--primary);
282+
--color-primary-foreground: var(--primary-foreground);
283+
--color-secondary: var(--secondary);
284+
--color-secondary-foreground: var(--secondary-foreground);
285+
--color-muted: var(--muted);
286+
--color-muted-foreground: var(--muted-foreground);
287+
--color-accent: var(--accent);
288+
--color-accent-foreground: var(--accent-foreground);
289+
--color-alert: var(--alert);
290+
--color-alert-foreground: var(--alert-foreground);
291+
--color-border: var(--border);
292+
--color-input: var(--input);
293+
--color-ring: var(--ring);
294+
--radius-xs: var(--border-radius);
295+
--radius-sm: calc(var(--border-radius) + 0.125rem);
296+
--radius-md: calc(var(--border-radius) + 0.375rem);
297+
--radius-lg: calc(var(--border-radius) + 0.5rem);
298+
--radius-xl: calc(var(--border-radius) + 0.75rem);
299+
--radius-2xl: calc(var(--border-radius) + 1rem);
300+
--radius-3xl: calc(var(--border-radius) + 1.5rem);
301+
--shadow-base: var(--shadow-base);
302+
--shadow-2xs: var(--shadow-2xs);
303+
--shadow-xs: var(--shadow-xs);
304+
--shadow-sm: var(--shadow-sm);
305+
--shadow-md: var(--shadow-md);
306+
--shadow-lg: var(--shadow-lg);
307+
--shadow-xl: var(--shadow-xl);
308+
--shadow-2xl: var(--shadow-2xl);
309+
--shadow-inner: var(--shadow-inner);
310+
--default-border-width: calc(var(--border-width) + 1px);
311+
--border-width-base: var(--border-width);
312+
--border-width-2: calc(var(--border-width) + 2px);
313+
--border-width-4: calc(var(--border-width) + 4px);
314+
--border-width-8: calc(var(--border-width) + 8px);
315+
--stroke-width-0: 0px;
316+
--stroke-width-base: var(--stroke-width);
317+
--stroke-width-1: calc(var(--stroke-width) + 1px);
318+
--stroke-width-2: calc(var(--stroke-width) + 2px);
319+
--animate-accordion-down: collapsible-down 0.2s ease-out forwards;
320+
--animate-accordion-up: collapsible-up 0.2s ease-out forwards;
321+
322+
@keyframes collapsible-down {
323+
from {
324+
height: 0;
329325
}
330-
@keyframes collapsible-up {
331-
from {
332-
height: var(--qwikui-collapsible-content-height);
333-
}
334-
to {
335-
height: 0;
336-
}
326+
to {
327+
height: var(--qwikui-collapsible-content-height);
328+
}
329+
}
330+
@keyframes collapsible-up {
331+
from {
332+
height: var(--qwikui-collapsible-content-height);
333+
}
334+
to {
335+
height: 0;
337336
}
338337
}
339338
}

0 commit comments

Comments
 (0)