1.1.0 • Published 3 months ago
@ice/plugin-unocss v1.1.0
@ice/plugin-unocss
A plugin for enable unocss in your app based on @ice/app
.
Usage
Install @ice/plugin-unocss
:
$ npm install @ice/plugin-unocss --save-dev
Configure it in ice.config.mts
:
import { defineConfig } from '@ice/app';
import Unocss from '@ice/plugin-unocss';
export default defineConfig(() => ({
plugins: [
Unocss(),
]
}));
Plugin Options
Plugin options is as same as UnoCSS ConfigFle.
Plugin has a default preset @unocss/preset-uno
for UnoCSS. You can pass options of presets to override the default preset:
import { defineConfig } from '@ice/app';
import Unocss from '@ice/plugin-unocss';
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup
} from 'unocss';
export default defineConfig(() => ({
plugins: [
Unocss({
shortcuts: [
// ...
],
theme: {
colors: {
// ...
}
},
presets: [
presetUno(),
presetAttributify(),
presetIcons(),
presetTypography(),
presetWebFonts({
fonts: {
// ...
},
}),
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
}),
],
}));
1.1.0
3 months ago
1.1.0-canary-5f11d4d35-20240222035641
3 months ago
1.1.0-canary-547601f37-20240222032523
3 months ago
1.1.0-canary-bd996d830-20240221071327
3 months ago
1.1.0-canary-4bce5d79f-20240221090122
3 months ago
1.0.2
3 months ago
1.0.2-canary-d9e75a022-20240201022438
3 months ago
1.0.2-canary-d9e75a02-20240201024155
3 months ago
1.0.1
4 months ago
1.0.1-canary-3727f80d8-20240118031615
4 months ago
1.0.1-canary-f7dd9fc53-20240118060539
4 months ago
1.0.0
6 months ago