github carbon-design-system/carbon-components-svelte v0.85.0

latest releases: v0.89.7, v0.89.6, v0.89.5...
17 months ago

This release includes changes needed for the latest version of carbon-preprocess-svelte, which is a from-scratch rewrite of the optimizeImports preprocessor and optimizeCss plugin.

If using pre-compiled CSS from carbon-components-svelte, the optimizeCss plugin can greatly reduce the outputted CSS bundle by remove unused Carbon CSS selectors.

See examples for usage.

export default defineConfig({
  plugins: [sveltekit(), optimizeCss()],
});
Optimized index-CU4gbKFa.css
- Before: 606.26 kB
+ After:   53.22 kB (-91.22%)

What's Changed

  • refactor!: use :global() for custom UI Shell styles by @metonym in #1940

Full Changelog: v0.84.1...v0.85.0

Don't miss a new carbon-components-svelte release

NewReleases is sending notifications on new releases.