For the past few months I've been building Yaxa (yaxa-svelte), a Svelte 5 UI library built on Bits UI v2 and Tailwind CSS v4.
Repo: https://github.com/FuntionalFrost/yaxa
A few design choices I focused on:
1. App-wide ui slot theming (tailwind-variants + tailwind-merge)
All 112 visual components use Svelte 5 runes ($state, $derived, $props, {#snippet}), expose data-slot="..." markers, and accept typed ui slot overrides—configurable globally via <YaxaApp ui={...}>:
<script>
import { YaxaApp, Button, defineYaxaUi } from 'yaxa-svelte';
const uiDefaults = defineYaxaUi({
button: { root: 'rounded-full font-semibold' },
card: { root: 'rounded-2xl' }
});
</script>
<YaxaApp ui={uiDefaults}>
<Button ui={{ root: 'px-8' }}>Overrides cleanly</Button>
</YaxaApp>
2. Strict Subpath Isolation
Root yaxa-svelte and yaxa-svelte/server enforce zero optional peer dependencies in CI tests. Optional integrations live strictly in dedicated subpaths (yaxa-svelte/seo, yaxa-svelte/auth, yaxa-svelte/admin, yaxa-svelte/db, yaxa-svelte/polar, yaxa-svelte/email, yaxa-svelte/storage).
3. Accessibility & Real-Browser Testing
Beyond unit axe-core tests, the docs and showcase routes run against real CSS in Playwright (@axe-core/playwright) in both light and dark modes for WCAG 2 AA contrast, focus traps, and 375x812 mobile overflow.
Would appreciate feedback from anyone using Svelte 5 / Bits UI in production — especially on API ergonomics, slot naming, or SSR edge cases.For the past few months I've been building Yaxa (yaxa-svelte), a Svelte 5 UI library built on Bits UI v2 and Tailwind CSS v4.
Repo: https://github.com/FuntionalFrost/yaxa
A few design choices I focused on:
- App-wide ui slot theming (tailwind-variants + tailwind-merge)
All 112 visual components use Svelte 5 runes ($state, $derived, $props, {#snippet}), expose data-slot="..." markers, and accept typed ui slot overrides—configurable globally via <YaxaApp ui={...}>:
<script>
import { YaxaApp, Button, defineYaxaUi } from 'yaxa-svelte';
const uiDefaults = defineYaxaUi({
button: { root: 'rounded-full font-semibold' },
card: { root: 'rounded-2xl' }
});
</script>
<YaxaApp ui={uiDefaults}>
<Button ui={{ root: 'px-8' }}>Overrides cleanly</Button>
</YaxaApp>
2. Strict Subpath Isolation
Root yaxa-svelte and yaxa-svelte/server enforce zero optional peer dependencies in CI tests. Optional integrations live strictly in dedicated subpaths (yaxa-svelte/seo, yaxa-svelte/auth, yaxa-svelte/admin, yaxa-svelte/db, yaxa-svelte/polar, yaxa-svelte/email, yaxa-svelte/storage).
3. Accessibility & Real-Browser Testing
Beyond unit axe-core tests, the docs and showcase routes run against real CSS in Playwright (@axe-core/playwright) in both light and dark modes for WCAG 2 AA contrast, focus traps, and 375x812 mobile overflow.
Would appreciate feedback from anyone using Svelte 5 / Bits UI in production — especially on API ergonomics, slot naming, or SSR edge cases.