The colors of buttons still black #3087
Unanswered
ElizabethB7
asked this question in
Q&A
Replies: 1 comment
-
Please share a minimal reproduction link on GitHub or Tailwind Play or Stackblitz. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I'm trying bulid webtise with daisyui.
I want my buttons will be in colors and I still not seeing any changes in button colors.
//App.jsx
import "./App.css";
import React from "react";
const MyComponent = () => (
export default MyComponent;
//tailwind.config.js
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {},
},
plugins: [require("daisyui")],
daisyui: {
themes: ["light", "dark", "cupcake"], // add themes as needed
},
safelist: [
"btn",
"btn-primary",
"btn-secondary",
"btn-accent",
"btn-info",
"btn-success",
"btn-warning",
"btn-error",
],
};
//App.css
@tailwind base;
@tailwind components;
@tailwind utilities;
#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}
Beta Was this translation helpful? Give feedback.
All reactions