Use Pollen's CSS variables with Uno CSS. Uses colar colors.
ni -D @unocss/core pollen-css @unocss/preset-icons @unocss/transformer-directives @unocss/vite sass @iconify/json
ni @fontsource/montserrat @fontsource/inter @fontsource/fira-mono
Copy everything from the COPY
folder to your project.
import Unocss from "@unocss/vite";
import unoConfig from "./uno.config";
/** @type {import('vite').UserConfig} */
const config = {
// ...
plugins: [
// UnoCSS must be at the top!
Unocss({
...unoConfig,
}),
// ...
],
// ...
};
export default config;
In your main.js
or main.ts
file, import the necessary styles.
import "src/styles/index.scss";
import "uno.css";
To rebuild styles, run npx pollen