Install and configure Svelte
Install the design system
npm install "@root-axis/design-system"
Setting up your files
import the design system in your main.ts file
import { mount } from 'svelte' import './app.css' import App from './App.svelte' import '@root-axis/design-system' const app = mount(App, { target: document.getElementById('app')!, }) export default app
Import the tokens
@import '@root-axis/design-tokens';
Done!
Now you can do whatever you want with the component
<script> let count: number = $state(0); const increment = () => { count += 1; }; </script> <ra-button onclick={increment}> count is {count} </ra-button>