You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A functional call is to update variables directly on `:root`, which is suitable for situations where a global update style is required. Details see [Theme Customization](#/en-US/themes).
Copy file name to clipboardExpand all lines: packages/varlet-ui/src/themes/docs/en-US.md
+38-18Lines changed: 38 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,46 +1,66 @@
1
-
# Theme System
1
+
# Theme Customization
2
2
3
3
### Intro
4
4
5
-
The component library organizes styles through [css variables](https://developer.mozilla.org/zh-CN/docs/Web/CSS/Using_CSS_custom_properties). Variables are divided into general style variables and component style variables. It is recommended to use the [StyleProvider](#/en-US/style-provider)component to load theme files and customize the theme. The themes supported by the component library are as follows.
5
+
The component library organizes styles through [css variables](https://developer.mozilla.org/zh-CN/docs/Web/CSS/Using_CSS_custom_properties). It is recommended to use [StyleProvider](#/zh-CN/style-provider) to load and customize themes. The built-in themes of the component library are as follows.
6
6
7
-
### Available Themes
7
+
### Built-in themes
8
8
9
-
|Available Themes| Theme Pack|
9
+
|Theme name| Theme package|
10
10
| --- | --- |
11
-
|`Material Design 2 Light`|_CSS Default_|
11
+
|`Material Design 2 Light`|_Default theme, based on css file_|
12
12
|`Material Design 2 Dark`|_Themes.dark_|
13
13
|`Material Design 3 Light`|_Themes.md3Light_|
14
14
|`Material Design 3 Dark`|_Themes.md3Dark_|
15
15
16
-
### Toggle Theme
16
+
### Set body variables
17
+
18
+
Set some basic style variables recommended by the component library to control the basic style of the application.
0 commit comments