@carbon/themes 10.31.0-rc.0 → 10.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -17
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -39,23 +39,8 @@ corresponding default theme by writing the following in your Sass file:
|
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
By default, the white theme will be initialized. If you would like to include
|
|
42
|
-
another theme, you can do so by
|
|
43
|
-
|
|
44
|
-
```scss
|
|
45
|
-
@import '@carbon/themes/scss/themes';
|
|
46
|
-
|
|
47
|
-
// Use the gray 10 theme
|
|
48
|
-
@include carbon--theme($carbon--theme--g10);
|
|
49
|
-
|
|
50
|
-
// Use the gray 90 theme
|
|
51
|
-
@include carbon--theme($carbon--theme--g90);
|
|
52
|
-
|
|
53
|
-
// Use the gray 100 theme
|
|
54
|
-
@include carbon--theme($carbon--theme--g100);
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Alternatively, you can set the global theme variable then call the mixin without
|
|
58
|
-
passing in a theme name.
|
|
42
|
+
another theme, you can do so by setting the global theme variable and then
|
|
43
|
+
calling our mixin. For example:
|
|
59
44
|
|
|
60
45
|
```scss
|
|
61
46
|
@import '@carbon/themes/scss/themes';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/themes",
|
|
3
3
|
"description": "Themes for applying color in the Carbon Design System",
|
|
4
|
-
"version": "10.31.0
|
|
4
|
+
"version": "10.31.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@carbon/colors": "^10.22.0",
|
|
33
|
-
"@carbon/layout": "^10.22.0
|
|
34
|
-
"@carbon/type": "^10.25.0
|
|
33
|
+
"@carbon/layout": "^10.22.0",
|
|
34
|
+
"@carbon/type": "^10.25.0",
|
|
35
35
|
"color": "^3.1.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"node-sass": "^4.13.1",
|
|
47
47
|
"rimraf": "^3.0.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "8b9c3660aa5b585052b2aa88079a039697ef276f"
|
|
50
50
|
}
|