@salesforcedevs/dx-css-variables 0.3.50 → 0.4.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/assets/css/colors/brand.css +188 -0
- package/assets/css/colors/content-type.css +46 -0
- package/assets/css/colors/dark.css +85 -0
- package/assets/css/colors/primitives.css +316 -0
- package/assets/css/colors/semantic.css +90 -0
- package/assets/css/colors.css +6 -717
- package/assets/css/index.css +8 -1
- package/assets/css/shadows.css +7 -2
- package/assets/css/spacing.css +6 -4
- package/assets/css/typography.css +6 -4
- package/package.json +8 -1
package/assets/css/index.css
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
@import './animations.css';
|
|
2
2
|
@import './breakpoints.css';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
/* Color tiers — primitives first for readability (resolution is order-independent) */
|
|
5
|
+
@import './colors/primitives.css';
|
|
6
|
+
@import './colors/semantic.css';
|
|
7
|
+
@import './colors/brand.css';
|
|
8
|
+
@import './colors/content-type.css';
|
|
9
|
+
@import './colors/dark.css';
|
|
10
|
+
|
|
4
11
|
@import './iconSizes.css';
|
|
5
12
|
@import './page.css';
|
|
6
13
|
@import './shadows.css';
|
package/assets/css/shadows.css
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
/*
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Canonical global elevation tokens for the DSC design system, based
|
|
4
|
+
on the C360 elevation models. These `--dx-g-*` variables are the
|
|
5
|
+
single source of truth for box-shadow values, e.g.
|
|
6
|
+
--dx-g-box-shadow-md;
|
|
7
|
+
|
|
8
|
+
Prefer referencing these `--dx-g-*` tokens rather than introducing
|
|
9
|
+
new raw box-shadow values.
|
|
5
10
|
*/
|
|
6
11
|
|
|
7
12
|
--dx-g-box-shadow-sm: 0px 0px 2px 0px rgba(24, 24, 24, 0.08),
|
package/assets/css/spacing.css
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
/*
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Canonical global spacing tokens for the DSC design system.
|
|
4
|
+
These `--dx-g-*` variables are the single source of truth for
|
|
5
|
+
spacing values, e.g.
|
|
6
|
+
--dx-g-spacing-md: 16px;
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
Prefer referencing these `--dx-g-*` tokens rather than introducing
|
|
9
|
+
new raw spacing values.
|
|
8
10
|
*/
|
|
9
11
|
|
|
10
12
|
--dx-g-spacing-2xs: 2px;
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
4
|
/*
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Canonical global typography tokens for the DSC design system.
|
|
6
|
+
These `--dx-g-*` variables are the single source of truth for font
|
|
7
|
+
families, weights, and sizes, e.g.
|
|
8
|
+
--dx-g-text-base: 16px;
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
Prefer referencing these `--dx-g-*` tokens rather than introducing
|
|
11
|
+
new raw font values.
|
|
10
12
|
*/
|
|
11
13
|
|
|
12
14
|
--dx-g-font-display:
|
package/package.json
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-css-variables",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"files": [
|
|
6
6
|
"assets"
|
|
7
7
|
],
|
|
8
|
+
"scripts": {
|
|
9
|
+
"lint": "npm run lint:css",
|
|
10
|
+
"lint:css": "stylelint 'assets/css/**/*.css'"
|
|
11
|
+
},
|
|
8
12
|
"publishConfig": {
|
|
9
13
|
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"stylelint": "14.16.1"
|
|
10
17
|
}
|
|
11
18
|
}
|