forked from chao921125/vue-vite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8407f3a
commit 38c52de
Showing
1 changed file
with
45 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,45 @@ | ||
/** | ||
* src/styles/settings.scss | ||
* | ||
* Configures SASS variables and Vuetify overwrites | ||
*/ | ||
|
||
// https://vuetifyjs.com/features/sass-variables/` | ||
// @use 'vuetify/settings' with ( | ||
// $color-pack: false | ||
// ); | ||
// 默认重写的颜色 | ||
$--colors: ( | ||
"white": #ffffff, | ||
"black": #000000, | ||
"primary": ( | ||
"base": #409eff, | ||
), | ||
"success": ( | ||
"base": #67c23a, | ||
), | ||
"warning": ( | ||
"base": #e6a23c, | ||
), | ||
"danger": ( | ||
"base": #db2828, | ||
), | ||
"error": ( | ||
"base": #db2828, | ||
), | ||
"info": ( | ||
"base": #909399, | ||
), | ||
); | ||
|
||
// 我们可以将其添加到自定义命名空间中, 默认值 'el' | ||
@forward "element-plus/theme-chalk/src/mixins/config.scss" with ( | ||
$namespace: "el" | ||
); | ||
|
||
// 你应该在 scss 中使用它们, 因为我们是通过 sass 计算的 | ||
@forward "element-plus/theme-chalk/src/common/var.scss" with ( | ||
// 不要使用相同的名称,它将覆盖 | ||
$colors: $--colors, | ||
$button-padding-horizontal: ("default": 50px) | ||
); | ||
|
||
// 如果要全部导入 | ||
@use "element-plus/theme-chalk/src/index.scss" as *; | ||
@use "element-plus/theme-chalk/dark/css-vars.css" as *; | ||
|
||
// 您可以对其进行注释以隐藏调试信息 | ||
// @debug $--colors; | ||
|
||
// 自定义变量 | ||
@use "./theme-dark.scss"; |