Skip to content

Commit

Permalink
Merge pull request #2 from snurfer0/fix/loading
Browse files Browse the repository at this point in the history
fix: theme
  • Loading branch information
snurfer0 authored Dec 8, 2023
2 parents d27b585 + 3b25596 commit c357529
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 23 deletions.
12 changes: 6 additions & 6 deletions src/styles/safelist.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
btn-primary
btn-secondary
btn-neutral
btn-accent
btn-ghost
btn-link
["btn-primary",
"btn-secondary",
"btn-neutral",
"btn-accent",
"btn-ghost",
"btn-link"]
41 changes: 24 additions & 17 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx}',
],
daisyui: {
themes: ["pastel", "sunset"],
darkTheme: "sunset", // name of one of the included themes for dark mode
base: true, // applies background color and foreground color for root element by default
styled: true, // include daisyUI colors and design decisions for all components
utils: true, // adds responsive and modifier utility classes
prefix: "", // prefix for daisyUI classnames (components, modifiers and responsive class names. Not colors)
logs: true, // Shows info about daisyUI version and used config in the console when building your CSS
themeRoot: ":root", // The element that receives theme color CSS variables
},
plugins: [require("daisyui")],
content: ["./src/styles/safelist.txt"],
}
content: [
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx}",
],
daisyui: {
themes: ["light", "dark"],
darkTheme: "dark", // name of one of the included themes for dark mode
base: true, // applies background color and foreground color for root element by default
styled: true, // include daisyUI colors and design decisions for all components
utils: true, // adds responsive and modifier utility classes
prefix: "", // prefix for daisyUI classnames (components, modifiers and responsive class names. Not colors)
logs: true, // Shows info about daisyUI version and used config in the console when building your CSS
themeRoot: ":root", // The element that receives theme color CSS variables
},
plugins: [require("daisyui")],
safelist: [
"btn-primary",
"btn-secondary",
"btn-neutral",
"btn-accent",
"btn-ghost",
"btn-link",
],
};

0 comments on commit c357529

Please sign in to comment.