Changing primary button color or primary color in theme? #1313
Replies: 1 comment
-
It looks like you're targeting the component's internals. What you see in the shadow root in the web inspector isn't typically useful because, by design, those parts are encapsulated and you can't target them with CSS. You need to stick with the components' public APIs. Please check out this section of the docs. The whole page is a good read, but specifically look at the sections about Component Parts and Custom Properties. https://shoelace.style/getting-started/customizing There's also an example of custom styling a button here, which I think you'll find helpful. |
Beta Was this translation helpful? Give feedback.
-
I added this to a custom css. Is this the way to change the primary blue or how can i do it for each component or globally in theme? (also not sure what the hover css name is. Took a guess.)
It did not work.
My installation is
I have a separate CSS file hosted called shoelacecustom.css
I believe another work around would be to style a button in custom css like the example. Seems easier if did it as above.
Now I searched the discussions. I read all the items on styling and theme but the base understanding is not there hence my question.
Beta Was this translation helpful? Give feedback.
All reactions