Skip to content

介绍

App.vue

CSS 变量文件是必须要引入的

scss
// 默认主题 CSS 变量
@use "@/uni_modules/vz-ui/styles/var.scss" as vzlightVar;
// 暗黑主题 CSS 变量
@use "@/uni_modules/vz-ui/styles/dark/dark-var.scss" as vzDarkVar;

uni.scss

如果不使用 vz 组件库的 SCSS 变量不必引入

scss
@use "@/styles/vz-ui/theme.scss" as vzTheme;
@use "@/styles/vz-ui/dark.scss" as vzDark;