Skip to content

Commit

Permalink
fix(cli): safelist dark when CSS variable colors are used. (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
miosenpai authored Jan 10, 2024
1 parent 856ab15 commit 1ff244c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cli/src/utils/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const TAILWIND_CONFIG_WITH_VARIABLES = `const animate = require("tailwind
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ["class"],
safelist: ["dark"],
<% if (framework === 'vite') { %>
content: [
'./pages/**/*.{<%- extension %>,<%- extension %>x,vue}',
Expand Down

0 comments on commit 1ff244c

Please sign in to comment.