Overwriting Custom Component CSS Properties #13588
-
Hello! I am writing a web application using Vue 3 + Tailwind. I am trying to use the Vue3DatePicker component found here: https://vue3datepicker.com. I have the component working however, I need to override some styles. In my stylesheet.css file, I have tried the following all with various errors:
Error: '--bg-zinc-700' does not exist in your theme config.
Error: The What is the proper way to handle this? Is there one or am I stuck creating some kind of custom CSS variable or just using the hard coded colors from Tailwind? Any help is appreciated. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @adamleemiller! You are using the incorrect syntax. The correct one is Check out the full example at: https://play.tailwindcss.com/xFQLiuxV78?file=css |
Beta Was this translation helpful? Give feedback.
Hey @adamleemiller!
You are using the incorrect syntax. The correct one is
theme("colors.zinc.700")
.Check out the full example at: https://play.tailwindcss.com/xFQLiuxV78?file=css