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

1.4.3 • Public • Published

@chapanda/style-preset

@chapanda/style-preset 是对以下包的导出,它暴露了所有预设功能支持,只是使用时引用的路径有些许差别

@chapanda/style-preset

import { genThemeColors } from '@chapanda/style-preset'
// 等同于
// import { genThemeColors } from '@chapanda/style-preset-base'
@use '@chapanda/style-preset/theme';
// 等同于
// @use '@chapanda/style-preset-base/theme';

更多详情请参考 @chapanda/style-preset-base 文档.

@chapanda/style-preset/tailwindcss

import { chaPandaTailwindConfig } from '@chapanda/style-preset/tailwindcss'
// 等同于
// import { chaPandaTailwindConfig } from '@chapanda/style-preset-tailwind'

更多详情请参考 @chapanda/style-preset-tailwind 文档.

@chapanda/style-preset/unocss

import { presetChapandaUno } from '@chapanda/style-preset/unocss'
// 等同于
// import { presetChapandaUno } from '@chapanda/style-preset-unocss'

更多详情请参考 @chapanda/style-preset-unocss 文档.

@chapanda/style-preset/antd

import { genChaPandaAntdTheme } from '@chapanda/style-preset/antd'
// 等同于
// import { genChaPandaAntdTheme } from '@chapanda/style-preset-antd'

import '@chapanda/style-preset/theme/antd'
// 等同于
// import '@chapanda/style-preset-antd/theme'

更多详情请参考 @chapanda/style-preset-antd 文档.

@chapanda/style-preset/vant

import { genChaPandaVantTheme } from '@chapanda/style-preset/vant'
// 等同于
// import { genChaPandaVantTheme } from '@chapanda/style-preset-vant'

import '@chapanda/style-preset/theme/vant'
// 等同于
// import '@chapanda/style-preset-vant/theme'

更多详情请参考 @chapanda/style-preset-vant 文档.

@chapanda/style-preset

import  '@chapanda/style-preset/theme/element-plus'
// 等同于
// @chapanda/style-preset-ep/theme'

import '@chapanda/style-preset/theme/element-plus/components'
// 等同于
// import '@chapanda/style-preset-ep/theme/components'

更多详情请参考 @chapanda/style-preset-ep 文档.

Package Sidebar

Install

npm i @chapanda/style-preset

Weekly Downloads

189

Version

1.4.3

License

MIT

Unpacked Size

15 kB

Total Files

32

Last publish

Collaborators

  • baiwusanyu