Carbon Components Svelte Versions Save

Svelte implementation of the Carbon Design System

v0.85.0

3 weeks 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

Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.84.1...v0.85.0

v0.84.1

1 month ago

What's Changed

New Contributors

Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.84.0...v0.84.1

v0.84.0

1 month ago

What's Changed

New Contributors

Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.83.0...v0.84.0

v0.83.0

1 month ago

What's Changed

  • ⚠️ BREAKING CHANGE: fix(link)!: do not render p for disabled link by @metonym in #1926
  • fix: avoid using reserved $ for Svelte 5 compat by @metonym and @Sahasrara in #1926
  • fix(search): hoist ignore a11y autofocus comment by @metonym in #1926

Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.82.11...v0.83.0

v0.82.11

1 month ago

What's Changed

New Contributors

Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.82.10...v0.82.11

v0.82.10

2 months ago

v0.82.9

2 months ago

What's Changed

Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.82.8...v0.82.9

v1.0.0-next.1

3 months ago

Note: this is an unstable prerelease. See discussion https://github.com/carbon-design-system/carbon-components-svelte/discussions/1872 for details and contribution guide!

What's Changed

Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v1.0.0-next.0...v1.0.0-next.1

v1.0.0-next.0

3 months ago

Note: this is an unstable prerelease. See discussion https://github.com/carbon-design-system/carbon-components-svelte/discussions/1872 for details and contribution guide!

New features

  • Generate Carbon v11 styles and implement visual and interactive designs based on the flagship Carbon component library
  • UIShell has a new light theme
  • Tabs will display as a horizontal scrolling list on small viewports
  • Buttons have a new xl size

Breaking changes

Overall, this is a major style change the will impact the appearance and features of many components. Use caution when upgrading and test your applications.

Components

  • Button has new prop values for size and kind
  • Theme follows v11 conventions: g80 theme isn't supported, toggled themes adjust data-carbon-theme attribute in <html> tag (for now, tokens use bx prefix, but that may change)
  • Tabs has a contained prop instead of type
  • ContentSwitcher size prop no longer supports size="xl"; md is the new default
  • MultiSelect no longer supports xl size
  • OverflowMenu no longer supports xl size
  • Search no longer supports xl size
  • TreeView no longer supports compact size
  • UIShell has a different appearance per theme

CSS

  • Several class names have been changed due to the v11 overhaul. If you're targeting or overriding component classes, be sure to test your code
  • Many tokens and CSS variables have been renamed. Details: https://carbondesignsystem.com/migrating/guide/develop
  • Themes are applied to the <html> element as data-carbon-theme="g10" instead of theme="g10"
  • The g80 theme no longer exists

General

  • Codebase uses npm instead of yarn

🎉 Thank you @gregorw for initial work.

Full Changelog: https://github.com/carbon-design-system/carbon-components-svelte/compare/v0.82.8...v1.0.0-next.0