Skip to content

Commit 01ec0f3

Browse files
committed
fix: replace CSS variables in preview
1 parent 7554d10 commit 01ec0f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/presets.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ export async function generatePreset(input) {
181181

182182
const variables = Object.entries(mergePresetVariables(allPresets))
183183
if (variables.length) {
184-
tailwindConfig.configViewer = {
184+
tailwindConfig.theme ||= {};
185+
tailwindConfig.theme.configViewer = {
185186
themeReplacements: Object.fromEntries(
186187
variables.map(([key, value]) => [`var(--${key})`, value]),
187188
),

0 commit comments

Comments
 (0)