react-dui
v3.0.15
Published
react-dui UI组件库
Downloads
57
Readme
Design Token
使用 token,你需要安装 react-dui
图标组件包:
npm install react-dui
项目中使用:
import 'react-dui/es/style/index.scss'
scss 中使用
@import 'react-dui/es/style/index.scss'
Webpack 中使用
{
loader: 'sass-loader',
options: {
additionalData: "@import "react-dui/es/style/index.scss";" // 添加公共样式
}
}
vite 中使用
css: {
preprocessorOptions: {
scss: {
additionalData: "@import "react-dui/es/style/index.scss";" // 添加公共样式
}
}
}
字体
在 global.css 中引入全局公共的 dui 自定义字体。目前没有找到很合适的引入方案。
/* globals.css */
@import 'react-dui/es/style/font.scss';