restyling #1721
Unanswered
Marcin-Borowski
asked this question in
Q&A
restyling
#1721
Replies: 1 comment
-
Hello, at the moment it's only possible to theme the library with CSS variables or with the Theme component. Once we adopt Carbon v11 styles, it'll be easier to provide overrides to CSS variables in the Theme component or in plain CSS such as: :root {
/* variables here */
} If you're asking about providing full replacement styles, that's something I've looked into, but there are some technical constraints such as controlling how styles are compiled. I've opened a ticket here that may interest you: sveltejs/svelte#8354 |
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
-
Do you have a stack to restyle the component library? I mean to prepare CSS styles (i.e. in a separate subproject) with changed colours. Adding an SCSS file to the project makes the compilation process very time-consuming, even a couple of minutes. It is tough to work with the HMR approach.
So my idea is to prepare the changed CSS file and attach it as a CSS file - in this case, it works quite well.
Beta Was this translation helpful? Give feedback.
All reactions