Available on npm · 0.20.0
Ant Design–style components for Svelte 5
An independent implementation built with runes and snippets. Typed, accessible, with design tokens and a dark theme.
npm install svelte-ant-design Why svelte-ant-design
A familiar look and API, a native Svelte 5 implementation.
Written for Svelte 5
Runes, snippets and callbacks instead of wrappers around React or Vue.
TypeScript
Strict prop types, exported alongside the components.
Accessibility is tested
Native elements and focus handling are checked in a real browser; the accessible colours keep a text contrast of at least 4.5:1.
Design tokens and dark theme
CSS variables with the --ads- prefix. The dark theme is switched by one attribute.
Tested at three levels
Unit tests, Playwright in a browser and mutation testing.
Few dependencies
Svelte 5 as the peer dependency and four runtime packages (MIT), each used in one place. A small package.
Quick start
Install the package, import the tokens once and use the component.
<script lang="ts">
import 'svelte-ant-design/tokens.css';
import { Button } from 'svelte-ant-design';
</script>
<Button type="primary" onclick={() => console.log('saved')}>
Save
</Button>
<Button danger>Delete</Button> Roadmap
Components are added one by one. Each one ships with tests and a documentation page.
Now Ready
Button
Typography
Icon
Grid
Space
Menu
Dropdown
Input
Checkbox
Radio
Switch
Select
DatePicker
TimePicker
Form
Tooltip
Spin
Modal
Drawer
Message
Notification
Next Planned
The base for forms and text.
Later Planned
More complex components.
Support the project
The library is independent. A star on GitHub, a bug report or a pull request helps the most.