Angular with Yumma CSS
Integrate Yumma CSS into Angular applications.
Creating a new project
To create a new Angular project, you need to have the Angular CLI installed on your machine.
-
Install Yumma CSS
Install
yummacss
using a package manager.Terminal npm i yummacss -DTerminal pnpm add yummacss -DTerminal yarn add yummacss -D
-
Initialize configuration
Create a configuration file in your project.
Terminal npx yummacss initTerminal pnpx yummacss initTerminal yarn dlx yummacss init -
Set up configuration
Specify the locations of all your project files in the config file.
yumma.config.js module.exports = {source: ["./src/**/*.{html,ts}"],output: "./src/styles.css",buildOptions: {reset: true,minify: false,}}; -
Build styles
You can now start generating your CSS with the
build
orwatch
command.Terminal npx yummacss buildTerminal pnpx yummacss buildTerminal yarn dlx yummacss build -
Done!
Youโre all set to start using Yumma CSS utility classes in your project.
app.component.html <div class="bg-indigo-12 d-g h-dvh pi-c tc-white"><h1 class="fs-3xl fw-500">Yumma CSS โ๏ธ Angular</h1></div><router-outlet />
Clone this project
Skip the guide steps entirely with our Angular starter.
git clone https://github.com/yumma-lib/with-angular.git