GitHub

Official Plugins

UnoCSS Plugin

Add styling powered by UnoCSS to your Radonis application.

npm (scoped)


Installation

npm install --save @microeinhundert/radonis-unocss

Note

This plugin is installed by default in newly created Radonis applications.


Setup

Add the plugin to your server inside of config/radonis.ts.

import { unocssPlugin } from '@microeinhundert/radonis-unocss'


const radonisConfig: RadonisConfig = {
  plugins: [unocssPlugin()], // <- Add it here
}

Usage

It just works™


Configuration

You can optionally provide your own configuration, which accepts everything the underlying UnoCSS instance accepts.

Server

import { unocssPlugin } from '@microeinhundert/radonis-unocss'
import presetWind from '@unocss/preset-wind'


const radonisConfig: RadonisConfig = {
  plugins: [
    unocssPlugin({
      presets: [presetWind()],
    }),
  ],
}
Previous
Creating Plugins