Skip to content

Add Yumma CSS in Solid.js

  1. Install Yumma CSS:

    Install the Yumma CSS Library using a package manager.

    Installing dependencies...
    npm i yummacss@latest
  2. Add yummacss in your main CSS file:

    src/index.css
    /* Minified Version */
    @import "/node_modules/yummacss/dist/yumma.min.css";
  3. Getting ready for development:

    You can also run npm start to start your application.

    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.

    src/App.jsx
    function App() {
    return (
    <div class="h-1/1 ins">
    <h1 class="fs-xxl fw-500 tc-pink">Yumma CSS + Solid.js</h1>
    </div>
    );
    }
    export default App;

Still stuck?

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

Cloning repository...
git clone https://github.com/yumma-lib/solidjs-yummacss-example.git