@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.
@@ -1,6 +1,13 @@
1
1
  @import './animations.css';
2
2
  @import './breakpoints.css';
3
- @import './colors.css';
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';
@@ -1,7 +1,12 @@
1
1
  :root {
2
2
  /*
3
- Shared box-shadows based off C360 eleveation models
4
- https://app.abstract.com/projects/d597ff5d-4ea0-45c2-9bad-057d0950ede3/branches/master/commits/015ebf994fdc104f4243bc76be9969415a637324/files/ee7b3677-8ebf-48a9-a229-0fa58a99b153/layers/8FD17D54-7983-41CB-BAB5-C6628E15E666?collectionId=8e630596-0ef1-4475-93b6-71e4c064d1e6&collectionLayerId=dae4a0ab-d604-4f2f-a249-2619b389c610&mode=build&selected=root-C04FA5B6-62B6-4943-BFA7-B5D6723AF05C
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),
@@ -1,10 +1,12 @@
1
1
  :root {
2
2
  /*
3
- Shared spacing, like
4
- --dx-spacing-sm: 96rem;
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
- Or, if from the C360 design system
7
- --dx-g-spacing-sm: 96rem;
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
- Shared typography, like
6
- --dx-specific-font-size: 96rem;
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
- Or, if from the C360 design system
9
- --dx-g-specific-font-size: 96rem;
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.50",
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
  }