Skip to content
MarkasUI
Type to search

    Guide

    MarkasUI

    Form

    Feedback

    Overlay

    Navigation

    Data

    Sections

    Animations

    Backgrounds

    Buttons

    Templates

    Pages

    Astro components built with Tailwind CSS

    MarkasUI components for Astro are .astro files rendered on the server. Interactive ones ship one small vanilla <script> that Astro bundles once per page, so a modal or tabs need no React, Vue, or Svelte runtime on the client.

    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/components/markas

    Astro
    ---
    import Button from "@/components/markas/Button.astro";
    ---
    
    <Button variant="secondary">Cancel</Button>

    How the components are built

    • The CLI detects Astro and writes files to src/components/markas, with markas.css in src/styles.
    • Scripts use event delegation and custom elements, so they keep working after view transitions.
    • Islands are optional: mix MarkasUI Astro components with the React, Vue, or Svelte versions in the same project.

    106 components

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

    MarkasUI21

    Animations13

    Backgrounds18

    Templates and pages

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