-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to style components? #75
Comments
Importing and customizing Bulma is independent of Svelma. I was able to use the official Bulma customization documentation to style Bulma in a Svelte project. I based it on this guide specifically: I made an example repo: It uses the default Svelte template from I also found some other suggestions on using scss in Svelte from a bunch of other places. Like the using |
You can import bulma.css and the color for e.g. primary, success, danger, etc. will adhere to what's defined in bulma.css. I use bulma scss variables and I was able to customize it by simply changing $primary to whatever color I wanted. |
Heads up, if you were experimenting with Tooltip and scss variables, it probably wouldn't work. I did find that Tooltip component did not inherit colors like other components #87. |
I've a why this added happens with some components in #87. As of now, style overrides don't work for Switch, Tooltip, and Dialog components. |
Hello. |
@c0bra In the docs, there is currently no mention of how to go about applying custom styling and theming to svelma components
The text was updated successfully, but these errors were encountered: