@carbon/colors 11.60.0-rc.0 → 11.61.0-rc.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 +6 -5
- package/package.json +5 -4
- package/tokens/colors.tokens.json +2224 -0
package/README.md
CHANGED
|
@@ -99,20 +99,21 @@ check out our [Contributing Guide](/.github/CONTRIBUTING.md)! 👀
|
|
|
99
99
|
|
|
100
100
|
### Modifying color values
|
|
101
101
|
|
|
102
|
-
Color values are defined in
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
Color values are defined in
|
|
103
|
+
[`tokens/colors.tokens.json`](./tokens/colors.tokens.json) using the
|
|
104
|
+
[DTCG token format](https://www.designtokens.org/tr/2025.10/format/). This is
|
|
105
|
+
the single source of truth for the package — **do not edit generated files
|
|
105
106
|
directly**.
|
|
106
107
|
|
|
107
108
|
The following files are generated at build time by Style Dictionary and should
|
|
108
109
|
not be hand-edited:
|
|
109
110
|
|
|
110
111
|
- `js/generated/colors.js` / `js/generated/colors.d.ts` — JS exports
|
|
111
|
-
- `scss
|
|
112
|
+
- `index.scss` — Sass variables and maps
|
|
112
113
|
|
|
113
114
|
To add or update a color:
|
|
114
115
|
|
|
115
|
-
1. Edit `
|
|
116
|
+
1. Edit `tokens/colors.tokens.json`
|
|
116
117
|
2. Run `yarn build` in this package to regenerate all outputs
|
|
117
118
|
3. Run `yarn test --testPathPatterns=packages/colors` from the repo root to
|
|
118
119
|
confirm nothing regressed
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/colors",
|
|
3
3
|
"description": "Colors for digital and software products using the Carbon Design System",
|
|
4
|
-
"version": "11.
|
|
4
|
+
"version": "11.61.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"js/generated",
|
|
19
19
|
"lib",
|
|
20
20
|
"scss",
|
|
21
|
+
"tokens",
|
|
21
22
|
"umd",
|
|
22
23
|
"index.scss",
|
|
23
24
|
"telemetry.yml"
|
|
@@ -43,9 +44,9 @@
|
|
|
43
44
|
"postinstall": "ibmtelemetry --config=telemetry.yml"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
|
-
"@carbon/cli": "^11.52.0
|
|
47
|
+
"@carbon/cli": "^11.52.0",
|
|
47
48
|
"@carbon/cli-reporter": "^10.9.0",
|
|
48
|
-
"@carbon/test-utils": "^10.
|
|
49
|
+
"@carbon/test-utils": "^10.43.0-rc.0",
|
|
49
50
|
"fs-extra": "^11.0.0",
|
|
50
51
|
"rimraf": "^6.0.1",
|
|
51
52
|
"style-dictionary": "^5.5.0",
|
|
@@ -62,5 +63,5 @@
|
|
|
62
63
|
"dependencies": {
|
|
63
64
|
"@ibm/telemetry-js": "^1.5.0"
|
|
64
65
|
},
|
|
65
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "ba585c78173520aefb8dfcdb388f9183b9cc1195"
|
|
66
67
|
}
|