Theming the component #176
rafalkrupinski
started this conversation in
General
Replies: 1 comment 3 replies
-
example attempt to theme with CSS classes. <SveltyPicker
inputClasses="input w-[200px]"
theme="text-secondary-50-900-token bg-primary-500-400-token border rounded shadow"
todayBtnClasses="btn btn-primary"
clearBtnClasses="btn btn-secondary"
/> |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
Can someone help with theming the component?
Looks like only the input and the buttons can be themed with css classes, while all the rest uses CSS variables.
Using CSS classes works
perfect[edit: only for input, not for buttons] within my skeleton.dev (tailwind wrapper) project, but I'm having a hard time to set these variables to my theme variables.Setting them to constants or to other variables within the same file works fine, but any other variables are ignored.
Example using accent colour to make it more visible:
Beta Was this translation helpful? Give feedback.
All reactions