Set up Yumma CSS
Follow these steps to get started with Yumma CSS.
Use the CLI
Install Yumma CSS with your favorite package manager:
- 1
Install Yumma CSS
pnpm add yummacss -D - 2
Initialize Configuration
Create a configuration file in your project.
pnpx yummacss init - 3
Configure Sources
Specify the locations/paths of your project files in the config file.
yumma.config.mjsimport { defineConfig } from "yummacss";export default defineConfig({ source: ["./src/**/*.{ts,tsx}"], output: "./src/styles.css",}); - 4
Build styles
Start using Yumma CSS classes, then generate your styles.
pnpx yummacss build
Use the CDN
Import Yumma CSS directly into your HTML file via CDN for quick prototyping.
- 1
Import Script
<script src="https://unpkg.com/@yummacss/runtime"></script> - 2
Start Styling
index.html<body class="bg-black"> <h1 class="c-white">Hello World</h1> </body>