Skip to content
Get ready for the next version of Yumma CSS, which is going to be amazing!

Yumma CSS and Astro

How to add Yumma CSS to your project with Astro.


  1. Install Yumma CSS:

    Install the Yumma CSS Library using a package manager.

    Installing dependencies...
    npm i yummacss@latest
  2. Add yummacss in your Layout.astro file:

    layouts/Layout.astro
    <style is:global>
    /* Minified Version */
    @import "/node_modules/yummacss/dist/yumma.min.css";
    </style>
  3. Start development server

    Start your application using npm run dev.

    Terminal
    npm run dev
  4. Use Yumma CSS in your project:

    You’re all set to start using Yumma CSS utility classes in your project.

    pages/index.astro
    ---
    import Layout from '../layouts/Layout.astro';
    ---
    <Layout title="Welcome to Astro.">
    <div class="h-1/1 ins">
    <h1 class="fs-xxl fw-500 tc-pink">Yumma CSS + Astro</h1>
    </div>
    </Layout>

Project example

If you’re having trouble with Yumma CSS, clone this Astro example.

  1. Cloning repository

    Cloning repository...
    git clone https://github.com/yumma-lib/astro-yummacss-example.git
  2. Installing dependencies

    Installing dependencies...
    npm install
  3. Start development server

    Terminal
    npm start