Skip to content
MarkasUI
Type to search

    Guide

    MarkasUI

    Form

    Feedback

    Overlay

    Navigation

    Data

    Sections

    Animations

    Backgrounds

    Buttons

    Templates

    Pages

    Svelte 5 UI components built with Tailwind CSS

    MarkasUI components for Svelte are written for Svelte 5 with runes: $props for inputs, $bindable for two-way values, $props.id() for ids, and snippets where other frameworks use slots.

    Install

    Run init once in the project root. The CLI detects the framework, saves markas.css, and writes markas.json. Then add components by name.

    npx markasui@latest init
    npx markasui@latest add button modal

    Usage

    src/lib/components/markas

    Svelte
    <script lang="ts">
      import Button from "$lib/components/markas/Button.svelte";
    </script>
    
    <Button variant="secondary">Cancel</Button>

    How the components are built

    • The CLI detects SvelteKit or Vite and writes files to src/lib/components/markas.
    • Bind values with bind:value or bind:checked, the same way you would with native inputs.
    • No dependencies beyond Svelte, and the markup and classes match the React and Vue versions exactly.

    106 components

    Every link opens the component page with the Svelte code selected.

    MarkasUI21

    Animations13

    Backgrounds18

    Templates and pages

    Full pages built from the same components, with Svelte source you can copy.