Nana UI
Lit web components Svelte 5
Accessible components, built to be owned.
Every component ships as a Lit web component and as a Svelte component, both built on one headless core. Install the package, or copy the source into your project and make it yours.
npm install @nana-tec/ui-components npm install @nana-tec/ui-svelte - 109 Lit web components
- 88 Svelte components
- 1 headless core under both
<script type="module">
import "@nana-tec/ui-components/card";
import "@nana-tec/ui-components/button";
</script>
<nana-card>
<nana-card-header>
<nana-card-title>Pro plan</nana-card-title>
<nana-card-description>Renews Aug 1</nana-card-description>
</nana-card-header>
<nana-card-footer>
<nana-button variant="primary">Upgrade</nana-button>
</nana-card-footer>
</nana-card> <script lang="ts">
import {
NanaButton,
NanaCard,
NanaCardDescription,
NanaCardFooter,
NanaCardHeader,
NanaCardTitle,
} from '@nana-tec/ui-svelte';
</script>
<NanaCard>
<NanaCardHeader>
<NanaCardTitle>Pro plan</NanaCardTitle>
<NanaCardDescription>Renews Aug 1</NanaCardDescription>
</NanaCardHeader>
<NanaCardFooter>
<NanaButton>Upgrade</NanaButton>
</NanaCardFooter>
</NanaCard> Two targets, one design
Pick the one that fits your stack. The keyboard, focus and ARIA rules come from the same core.
- Lit Web components Custom elements that work in any framework or none. Headless by default, with the Nana look one import away. Package or copied sourceA part for every elementControls that join native forms Read the guide
- Svelte 5 Svelte Runes-based components, installed as a package or copied in by the CLI, styled with Tailwind classes that resolve to the tokens. bind: and $bindable stateTailwind v4 classes you can editThe same rules as the web components Read the guide
Find a component
Grouped the way the sidebar groups them. Each page has a live preview, install steps and the full API.
- 30 Forms & Inputs Button, Button Group, Toggle Group, Icon Button
- 15 Layout & Containers Card, Section, Page Header, Top Bar
- 21 Navigation Breadcrumb, Breadcrumb Item, Command, Context Menu
- 11 Feedback & Status Alert, Badge, Empty State, Skeleton
- 22 Data Display & Media Table, Stat Card, Chart, Description List
- 7 Blocks Dashboard, Meter Input, Bulk Progress, Approval Card
- 4 Formatters Format Number, Format Bytes, Format Date, Relative Time
- 3 Utilities Mutation Observer, Resize Observer, Include
Install only what you need
Eight packages in three layers. Each one builds on the layer below it.
Use Put components on a page
-
@nana-tec/ui-componentsv0.7.7 Every component as a Lit web component. Works in any framework or none.npm install @nana-tec/ui-components -
@nana-tec/ui-sveltev0.7.7 Every component for Svelte 5, styled with Tailwind classes that resolve to the tokens.npm install @nana-tec/ui-svelte -
@nana-tec/uiv0.7.7 The CLI. Copies Svelte or web component source into your project to own.npx @nana-tec/ui add button
Style The look and the feel
-
@nana-tec/ui-tokensv0.7.7 Colour, spacing, radius, shadow, type and stacking as CSS variables.npm install @nana-tec/ui-tokens -
@nana-tec/ui-themesv0.7.7 Surfaces and dark mode on top of the tokens. One import for the whole base.npm install @nana-tec/ui-themes -
@nana-tec/ui-motionv0.7.7 Duration, easing and distance roles, keyframes, and optional GSAP and Lenis.npm install @nana-tec/ui-motion