Replies: 1 comment
-
That wouldn't work. <div class="bg-blue-500 p-20">
<button class="btn bg-base-100 text-base-content border-base-100 hover:bg-base-100 hover:text-base-content hover:border-base-100">Base 100</button>
<button class="btn bg-base-200 text-base-content border-base-200 hover:bg-base-200 hover:text-base-content hover:border-base-200">Base 200</button>
<button class="btn bg-base-300 text-base-content border-base-300 hover:bg-base-300 hover:text-base-content hover:border-base-300">Base 300</button>
</div> And if you want to extend daisyUI colors, the best way would be extending Tailwind CSS color with custom variables, and then use those variables in daisyUI themes: Let me know if you have any questions. |
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
-
I've enjoyed playing around at https://daisyui.com/theme-generator/
I have added this to my theme
and these to tailwind's colours
I'd expect these buttons to be coloured accordingly but they're all just my "neutral" colour
Is my code wrong?
FWIW I tried to create a codesandbox: https://codesandbox.io/s/demo-colours-v1vd4q?file=/pages/index.js
Beta Was this translation helpful? Give feedback.
All reactions