Carbon Components Svelte ships IBM Carbon as Svelte components with TypeScript types. It includes many UI primitives, five themes, and WCAG 2.1 AA patterns.
Overview
Carbon Components Svelte is a Svelte package that implements IBM’s open Carbon Design System. Application teams import components to build interfaces that follow Carbon layout, typography, color tokens, and accessibility guidance without reimplementing the system by hand.
The library covers inputs, data tables, navigation shells, forms, modals, notifications, and many other patterns documented on the project site. Five built-in themes span light and dark palettes; you load one compiled stylesheet at the app entry or switch themes at runtime with a combined stylesheet or the Theme component.
Each component exposes typed props, events, and slots. Separate npm packages provide Carbon icons and pictograms as Svelte modules. Optional carbon-preprocess-svelte tooling can rewrite imports, prune unused CSS, and shrink component code at build time for production bundles.
Styling is compiled from Carbon SCSS into shared CSS with design tokens as custom properties, with IBM Plex fonts loaded from Carbon’s CDN unless you override font variables. The ecosystem also points to related chart and preprocessor projects for teams standardizing on Carbon in Svelte apps.
Key features
- 130+ Carbon Svelte components
- Five light and dark themes
- TypeScript props and events
- WCAG 2.1 AA patterns
- Runtime theme switching
- Optional build-time CSS pruning
- Virtualized lists and tables
- Separate icon and pictogram packages
Use cases
- Enterprise Svelte dashboards
- Carbon-aligned internal tools
- Accessible form-heavy applications
- Themed design-system UIs