Skip to content

Commit ff19630

Browse files
authored
feat: update tokens for better documentation (#8395)
**Related Issue:** #8315 ## Summary This PR updates tokens to include a "calcite-schema" in each token's attributes. This schema fully defines the token and it's role in the design system. It also changes the Docs output to always stringify the token value and fix the filePath to be relative to the tokens directory.
1 parent 766b5a2 commit ff19630

28 files changed

+10806
-621
lines changed

packages/calcite-design-tokens/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"lint:json": "prettier --write \"**/*.json\" >/dev/null",
3131
"lint:md": "markdownlint \"**/*.md\" --fix --dot --ignore-path ../../.gitignore && prettier --write \"**/*.md\" >/dev/null",
3232
"lint:ts": "eslint --ext .ts,.tsx --fix . && prettier --write \"**/*.ts?(x)\" >/dev/null",
33-
"lint": "concurrently npm:lint:*",
34-
"test": "jest"
33+
"lint": "concurrently npm:lint:*"
3534
}
3635
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"component": {
3+
"button": {
4+
"background": {
5+
"type": "color",
6+
"value": "{semantic.color.background.default}",
7+
"attributes": {
8+
"calcite-schema": {
9+
"system": "calcite",
10+
"tier": "component",
11+
"domain": "",
12+
"component": "button",
13+
"pattern": "",
14+
"element": "",
15+
"category": "color",
16+
"group": "",
17+
"kind": "",
18+
"appearance": "",
19+
"property": "background",
20+
"variant": "",
21+
"state": "",
22+
"scale": "",
23+
"context": "",
24+
"mode": ""
25+
}
26+
}
27+
}
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)