Comments (2)
Ah, I see it works with your updated config now. Thanks!
Yes, updating the example config in your site's link (the one show at the bottom of your home page. eg: https://play.tailwindcss.com/RcIZd1Mwho) would be good for beginners so they don't think it's broken.
BTW, I think DaisyUI is a pretty cool project! I feel the the Tailwind can be pretty verbose on styling common UI components, and DaisyUI's built-in schematic role names make it easier to get started and be productive. I like how I can further customize the UI with direct Tailwind utility classes! This is pretty awesome. Keep up the good work!
from daisyui.
Hi, You need to add colors to the config this way
module.exports = {
plugins: [
require('daisyui'),
],
theme: {
extend: {
colors: require('daisyui/colors')
},
},
}
Reason:
DaisyUI adds colors to Tailwind if it finds tailwindcss
installed as a dependency, If it can't find tailwindcss
, it shows a warning on console, telling you how to extend color (like the code above)
You can't see the console log in Tailwind Play unless you open the browser console tho 😅
This functionality allows us to import colors by default, but if you don't have the tailwindcss
installed as a dependency (if you're using a fork or a similar project with different name) you can still use the colors.
I will update the Tailwind Play example link in the docs. Thanks!
from daisyui.
Related Issues (20)
- bug: Invalid theme switch(主题切换无效) HOT 5
- bug: Daisy's CSS not working in Production HOT 2
- bug: Countdown does not work in cdn versions HOT 2
- docs: npm i -D daisyui@latest in the install guide of 3.9.4 HOT 10
- bug: OKLCH colors and themes not working on mobile HOT 8
- bug: error in daisyUi themes HOT 5
- bug: Fallback colors don't use opacity like oklch HOT 1
- bug: Fallback background-colors don't use opacity like oklch HOT 2
- bug: Issue styling tabs with radio tabs HOT 2
- bug: Collapse with icon, Arrow is jumping but plus/minus icon seems ok HOT 2
- bug: vite warnings when minifying css HOT 2
- bug: CDN installation does not recognize submit button HOT 1
- bug: Tab content width on Safari HOT 6
- bug: Divider from tailwindcss has inconsistent color HOT 3
- bug: Right drawer get navigation focus if it has an input HOT 3
- bug: Badge component not responsive (not growing) HOT 2
- bug: Steps with a hidden element HOT 2
- bug: toggle should have a hover state HOT 4
- docs: Button HOT 6
- bug: Carousel of Mobile Mockup does not work. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from daisyui.