@chapanda/style-preset-unocss

chapanda style preset
1,889
Install
npm install @chapanda/style-preset-unocss@1.4.16
Latest Version:1.4.16
License:MIT
Last Updated:Jun 29, 2026
Links: npm
Maintainer: baiwusanyu

@chapanda/style-preset-unocss

基于中心规范基础结合 unocss 的样式预设,它实现了和 @chapanda/style-preset-base几乎一样的样式预设.

使用

在 unocss.config.ts 配置文件中添加预设 presetChapandaUno

import { presetChapandaUno } from '@chapanda/style-preset-unocss'
import { defineConfig } from 'unocss'
import { presetUno  } from 'unocss'
export default defineConfig({
  theme: {
    colors: {
      'baiwu': '#00ffff'
    }
  },
  presets: [
    presetUno(),
    presetChapandaUno()
  ]
})

API

presetChapandaUno

import { Theme } from '@unocss/preset-uno';
import { UserConfig, Preset } from 'unocss';
declare function presetChapandaUno<T extends object = Theme>(): Preset<Theme>;

参考

关于全局样式(布局对齐、字体、颜色变量等)请阅读 @chapanda/style-preset-base 文档

Related Packages

@unplugin-vue-ce/sub-style

A vue plugin that extends vue's Custom Element capabilities (sub component style...

39,165 75
unplugin-vue-ce

A vue plugin that extends vue's Custom Element capabilities (v-model, child styl...

24,311 75
@unplugin-vue-ce/v-model

A vue plugin that extends vue's Custom Element capabilities (v-model)

22,716 75

Version History

Version Released License
1.4.16 MIT
1.4.15 MIT
1.4.14 MIT
1.4.13 MIT
1.4.12 MIT
Pre-releases (11)
Version Released License
1.4.17-beta.3 MIT
1.4.17-beta.1 MIT
1.4.6-beta.1 MIT
0.0.1-beta.14 MIT
0.0.1-beta.13 MIT