carbon-design-system / carbon-components-svelte

Svelte implementation of the Carbon Design System
https://svelte.carbondesignsystem.com
Apache License 2.0
2.71k stars 261 forks source link

usage of SCSS #1385

Open michahell opened 2 years ago

michahell commented 2 years ago

For me it was a bit unclear that to start using SCSS/SASS, I had to either install the @carbon-components OR the @carbon/styles package to import node_modules/scss styles :)

Maybe this could be better explained in the docs for svelte-components?

metonym commented 2 years ago

Thanks for flagging. To answer your question, carbon-components must be used as @carbon/styles applies to v11.

michahell commented 2 years ago

ok that makes sense, but which repository / npm package is this? I don't see it listed in the carbon-design-system repositories

metonym commented 2 years ago

carbon-components

And you can use one of the css/*.scss files as a frame of reference.

michahell commented 2 years ago

thanks! I think the link this can also be updated under the Styling: https://github.com/carbon-design-system/carbon-components-svelte#styling

tunacasserole commented 2 years ago

I too am struggling to understand how to use scss with svelte. Would be most grateful for an example somewhere.