@chapanda/style-preset-unocss
TypeScript icon, indicating that this package has built-in type declarations

1.4.3 • Public • Published

@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 文档

Package Sidebar

Install

npm i @chapanda/style-preset-unocss

Weekly Downloads

201

Version

1.4.3

License

MIT

Unpacked Size

17 kB

Total Files

8

Last publish

Collaborators

  • baiwusanyu