Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: bump style-dictionary and @tokens-studio/sd-transforms to latest #11655

Draft
wants to merge 152 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
f61e0ec
WIP: styledictionary4 config setup
alisonailea Dec 13, 2024
24896e2
revert(icons): restore deleted icon
alisonailea Dec 17, 2024
10ee40f
fix(tsconfig): resolve build error
alisonailea Dec 17, 2024
2aa4daf
feat(shadow): transform design token shadow values
alisonailea Dec 17, 2024
86b384e
chore(registerTransforms): add transforms
alisonailea Dec 17, 2024
30b9e4e
chore: clean up old design token files
alisonailea Dec 17, 2024
d1cb55c
feat: add design token filters
alisonailea Dec 17, 2024
8588a09
feat: add StyleDictionary actions
alisonailea Dec 17, 2024
b41dab9
chore: cleanup old transformers
alisonailea Dec 17, 2024
9e7b4df
chore(container-size): type should be breakpoint
alisonailea Dec 17, 2024
c05313c
feat: add StyleDictionary header for calcite
alisonailea Dec 17, 2024
6eac994
chore: add light dark platforms for old files
alisonailea Dec 17, 2024
52b64ea
feat: build StyleDictionary4 design tokens for Calcite
alisonailea Dec 17, 2024
caed514
fix: remove unused StyleDictionary value transformers
alisonailea Dec 17, 2024
f78d989
chore(scss): update platform config
alisonailea Dec 17, 2024
c6084b7
chore(package): update dependencies
alisonailea Dec 17, 2024
e8dce39
fix: remove old style dictionary 3 transformer files
alisonailea Dec 17, 2024
f98ddf1
fix: remove old StyleDictionary3 types files
alisonailea Dec 17, 2024
9c63540
Revert "fix: remove unused StyleDictionary value transformers"
alisonailea Dec 17, 2024
b4b7fa3
fix(mathSum): update function names for value transformer in tokens
alisonailea Dec 18, 2024
519072c
fix(shadow): correctly output shadow tokens for css
alisonailea Dec 21, 2024
ae41e10
fix(mathSum): allow tokens to be transformed after references and fix…
alisonailea Dec 21, 2024
ac7b224
feat(removeDefault): add transformation to remove default from token …
alisonailea Dec 21, 2024
ddedd8e
fix(calciteHeader): remove superfluous comments
alisonailea Dec 21, 2024
5dfc40d
feat(calciteTransformationGroup): move token transforms under a singl…
alisonailea Dec 21, 2024
a1ee0a0
feat(pxToRem): transform token values from px to rems
alisonailea Dec 21, 2024
a3ae510
chore(registerTransforms): add transform registerations
alisonailea Dec 21, 2024
a413034
chore(buildTokens): add to typeMap
alisonailea Dec 21, 2024
09294ca
chore(scss): clean up scss config
alisonailea Dec 21, 2024
b747942
chore(shadow): align tokens with DTCG
alisonailea Dec 21, 2024
fc44598
feat(css): add css token platform
alisonailea Dec 23, 2024
a64966a
chore(scss): add fileExtension to scss token platform
alisonailea Dec 23, 2024
314ed6e
chore(generateBreakpoints): make file more flexible for multiple plat…
alisonailea Dec 23, 2024
f09055d
feat(buildTokens): add CSS token platform to token build
alisonailea Dec 23, 2024
58f07a2
chore(package-lock): update dev dependencies
alisonailea Dec 23, 2024
7d62d7c
WIP token studio changeover
alisonailea Jan 3, 2025
4492b73
WIP: style-dictionary changeover exporting all CSS and SCSS
alisonailea Jan 3, 2025
7e44357
Merge branch 'dev' of github.com:Esri/calcite-design-system into astu…
alisonailea Jan 3, 2025
05c422f
Merge branch 'astump/tokens' of github.com:Esri/calcite-design-system…
alisonailea Jan 3, 2025
6804aa5
WIP(tokens): move to new semantic folder
alisonailea Jan 7, 2025
e6bdaf4
fix(tokens): align with sd and ts 4
alisonailea Jan 7, 2025
b5da7c2
chore(tokens): move to new semantic folder
alisonailea Jan 7, 2025
2ee008e
chore(filter): filter tokens export file
alisonailea Jan 7, 2025
10d386b
chore(semantic): single tokens config file
alisonailea Jan 7, 2025
b02a872
chore(tokens): export themed color sets
alisonailea Jan 9, 2025
2ccdd1e
chore(tokens): add back es6
alisonailea Jan 22, 2025
c86a0e5
add foreground-1 test
matgalla Jan 23, 2025
12e528d
initial categories created for light
matgalla Jan 24, 2025
6a98514
chore(tokens): add back es6 dist assets
alisonailea Jan 25, 2025
0c7f9b3
Merge branch 'astump/style-dictionary-4.x' of github.com:Esri/calcite…
alisonailea Jan 25, 2025
4be3cb0
light and dark theme color tokens created
matgalla Jan 27, 2025
ee9ad81
chore(tokens): add back js and docs asset builds
alisonailea Jan 28, 2025
fa96e22
chore(tokens): cleanup remove old build files
alisonailea Jan 28, 2025
62a8dcb
chore(tokens): move calcite tokens build script next to token files
alisonailea Jan 28, 2025
324add3
Merge branch 'astump/style-dictionary-4.x' of github.com:Esri/calcite…
alisonailea Jan 28, 2025
d5dfdf8
fix(font tokens): clean up file
alisonailea Jan 28, 2025
c41ea58
fix(shadow tokens): references
alisonailea Jan 29, 2025
66c9b68
fix(color tokens): remove extra themes
alisonailea Jan 29, 2025
09cdaa3
chore(token transformers): clean up build scripts
alisonailea Jan 29, 2025
b1d79b0
dark mode current token fixed (temporarily a hexcode)
matgalla Jan 29, 2025
3c57f87
added medium-saturation core tokens
matgalla Jan 30, 2025
b990a4c
Merge branch 'astump/style-dictionary-4.x' of github.com:Esri/calcite…
alisonailea Jan 30, 2025
d038b55
chore(tokens): fix build
alisonailea Jan 30, 2025
d62ee28
chore(tokens): simplify build
alisonailea Jan 30, 2025
6faa16e
chore(tokens): ts to js
alisonailea Feb 3, 2025
8017a84
WIP: es6 merge
alisonailea Feb 3, 2025
c5da2b8
added .status category to the info, success, warning, and danger tokens
matgalla Feb 6, 2025
830f58c
chore(tokens): remove unnecessary folder level for token files
alisonailea Feb 10, 2025
786a227
chore(tokens): build script to merge es6 token files forh color-light…
alisonailea Feb 10, 2025
941b244
Merge branch 'astump/style-dictionary-4.x' of github.com:Esri/calcite…
alisonailea Feb 10, 2025
adfa14b
choe(tokens): clean up files
alisonailea Feb 13, 2025
32f463d
Initial box shadow updates:
matgalla Feb 14, 2025
9941fe1
- Duplicate `color` label removed
matgalla Feb 15, 2025
02e5cc5
Testing emojis in theme names
matgalla Feb 18, 2025
8122c1d
Core color hex code bug fixes
matgalla Feb 18, 2025
fc4e17a
Added low-saturation structure to core colors
matgalla Feb 19, 2025
a77ef60
low-saturation core color tokens added
matgalla Feb 19, 2025
f33e2e0
Modified core structure to align with Figma variables
matgalla Feb 19, 2025
4c6d87d
Modified core structure for container-size, font, opacity, shadow, si…
matgalla Feb 19, 2025
bc576d5
Reanmed core TS theme to align with Figma variables
matgalla Feb 19, 2025
4f84e44
Updated core theme to only export the tokens used in Figma
matgalla Feb 20, 2025
fe22e00
Core themes stablished
matgalla Feb 21, 2025
dcbc113
WIP: build token index files
alisonailea Feb 21, 2025
85d66b7
fix(typography): correctly formatted mixins and classes files
alisonailea Feb 21, 2025
625f5f2
fix(shadow): update cssShadow transform to handle weird TS format for…
alisonailea Feb 21, 2025
8bc47d9
feat(index): add dist build files index files for scss and css platforms
alisonailea Feb 21, 2025
551a8dc
feat(light,dark): add js and docs builds
alisonailea Feb 21, 2025
44a94af
Merge branch 'astump/style-dictionary-4.x' of github.com:Esri/calcite…
alisonailea Feb 21, 2025
3034e85
fix(font): correct build, tokens can not share paths
alisonailea Feb 21, 2025
73e95d9
fix(shadow): correct token structure
alisonailea Feb 21, 2025
8791bf1
feat(semantic-old): delete old color tokens forever
alisonailea Feb 21, 2025
33bf622
feat(tokens): remove calcite-schema attributes
alisonailea Feb 21, 2025
c707016
feat(global.es6): merge light and dark colors into single object for …
alisonailea Feb 22, 2025
cf8fdd3
feat(platformNames): add attribute transformer
alisonailea Feb 22, 2025
0e571aa
feat(docs): add human readable name
alisonailea Feb 24, 2025
38701e2
WIP: token build
alisonailea Feb 24, 2025
14fbede
Added core>color>opacity tokens
matgalla Feb 26, 2025
0721ad7
Changed core>color>opacity colors to rgba instead of hex and fixed al…
matgalla Feb 27, 2025
62241fd
fix build
jcfranco Feb 28, 2025
44bf9d5
merge dev
jcfranco Feb 28, 2025
88f3ba2
fix spec test runner
jcfranco Feb 28, 2025
16d87ca
restore file header to JS output
jcfranco Mar 1, 2025
19e13d7
rename main config file
jcfranco Mar 1, 2025
7b2a848
add register helper interface
jcfranco Mar 1, 2025
257bb31
await consistently in all group registry fns
jcfranco Mar 1, 2025
e5c48c0
use transform types
jcfranco Mar 1, 2025
841e7ba
use filter types
jcfranco Mar 1, 2025
e704674
use header types
jcfranco Mar 1, 2025
4e1c2f8
use format types
jcfranco Mar 1, 2025
46c0a5c
update node imports
jcfranco Mar 1, 2025
d1371e2
add transforms for docs output token names
jcfranco Mar 1, 2025
dcd2e23
improve config type
jcfranco Mar 1, 2025
63a7ffc
exclude $metadata and $themes files
jcfranco Mar 1, 2025
5faa548
capitalize deprecation message header
jcfranco Mar 1, 2025
708fb7f
drop calcite prefix from support file names
jcfranco Mar 1, 2025
47d9bb4
fix light/dark color token names
jcfranco Mar 1, 2025
d7700ec
correct dark/light token data
jcfranco Mar 1, 2025
56a8660
pin color format to rgb
jcfranco Mar 1, 2025
7d9abd9
restore semantic config name
jcfranco Mar 1, 2025
3ac1e34
add tier to schema
jcfranco Mar 1, 2025
b4cecc0
fix js output token names
jcfranco Mar 2, 2025
3cf4376
fix plus/minus naming
jcfranco Mar 2, 2025
f6c7a35
tidy up indexFile
jcfranco Mar 2, 2025
0b40d1b
update removeDefault to handle JS output names
jcfranco Mar 2, 2025
4cc4260
wire up d.ts output
jcfranco Mar 2, 2025
d7be198
add missing light/dark declaration files
jcfranco Mar 5, 2025
4d1c920
exclude medium and low saturation tokens to lower test output diffs -…
jcfranco Mar 5, 2025
be11393
restore breakpoint values in output
jcfranco Mar 5, 2025
d637f37
simplify spec test
jcfranco Mar 6, 2025
3b5daca
patch style-dictionary exports
jcfranco Mar 6, 2025
70c62a1
drop non-applicable transform
jcfranco Mar 6, 2025
56e6753
fix type errors
jcfranco Mar 7, 2025
d1e23a1
add missing await
jcfranco Mar 7, 2025
8813c42
separate dictionary setup from build
jcfranco Mar 7, 2025
f15740c
simplify filter logic
jcfranco Mar 7, 2025
935a6dc
tweak filter enum values for consistency
jcfranco Mar 7, 2025
f871158
remove non-existent types from filters
jcfranco Mar 7, 2025
6f87082
extract shared filter util
jcfranco Mar 7, 2025
317cf39
improve dark/light config types
jcfranco Mar 7, 2025
6861006
ignore metadata/theme token-studio files in light/dark configs
jcfranco Mar 7, 2025
1b006a3
merge theme tokens for applicable platforms
jcfranco Mar 7, 2025
ac21858
restore es6 platform name
jcfranco Mar 7, 2025
c4e580f
remove empty parser file
jcfranco Mar 7, 2025
9dd3673
revert font weight token renames
jcfranco Mar 7, 2025
bcd56ba
fix output value type of fontWeight, opacity, typography and z-index …
jcfranco Mar 7, 2025
908bf20
Attributes added to core>color>neutral tokens
matgalla Feb 28, 2025
9f90d4c
Removed metadata from core color tokens
matgalla Feb 28, 2025
4556ae0
updated structure for core sizing tokens
matgalla Mar 5, 2025
05cd714
Added "px" back to core size and container-size tokens
matgalla Mar 6, 2025
0b71f7c
Updated semantic size structure to align with Figma
matgalla Mar 7, 2025
9672a47
restore breakpoint type for core container-size tokens
jcfranco Mar 7, 2025
0032ab1
update size token references
jcfranco Mar 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10,291 changes: 2,593 additions & 7,698 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@storybook/preview-api": "8.5.6",
"@storybook/storybook-deployer": "2.8.16",
"@storybook/web-components-vite": "8.5.6",
"@tokens-studio/sd-transforms": "0.12.2",
"@tokens-studio/sd-transforms": "1.2.9",
"@types/dedent": "0.7.2",
"@types/eslint": "9.6.1",
"@types/estree": "1.0.6",
Expand Down Expand Up @@ -111,7 +111,7 @@
"shell-quote": "1.8.2",
"storybook": "8.5.6",
"storybook-addon-rtl": "1.0.1",
"style-dictionary": "3.9.2",
"style-dictionary": "4.3.0",
"stylelint": "16.14.1",
"stylelint-config-recommended-scss": "14.1.0",
"stylelint-use-logical-spec": "5.0.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/calcite-components/src/components/sheet/sheet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
}

.calcite--rtl {
--calcite-scrim-shadow-inline-start-internal: -4px 0 8px -1px rgba(0, 0, 0, 0.08), -2px 0 4px -1px rgba(0, 0, 0, 0.04);
--calcite-scrim-shadow-inline-start-internal:
-4px 0 8px -1px rgba(0, 0, 0, 0.08), -2px 0 4px -1px rgba(0, 0, 0, 0.04);
--calcite-scrim-shadow-inline-end-internal: 4px 0 8px -1px rgba(0, 0, 0, 0.08), 2px 0 4px -1px rgba(0, 0, 0, 0.04);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@
items-stretch;
z-index: var(--calcite-shell-panel-z-index, theme("zIndex.default"));
--calcite-shell-panel-max-height: unset;
--calcite-internal-shell-panel-shadow-block-start: 0 4px 8px -1px rgba(0, 0, 0, 0.08),
0 2px 4px -1px rgba(0, 0, 0, 0.04);
--calcite-internal-shell-panel-shadow-block-end: 0 -4px 8px -1px rgba(0, 0, 0, 0.08),
0 -2px 4px -1px rgba(0, 0, 0, 0.04);
--calcite-internal-shell-panel-shadow-inline-start: 4px 0 8px -1px rgba(0, 0, 0, 0.08),
2px 0 4px -1px rgba(0, 0, 0, 0.04);
--calcite-internal-shell-panel-shadow-inline-end: -4px 0 8px -1px rgba(0, 0, 0, 0.08),
-2px 0 4px -1px rgba(0, 0, 0, 0.04);
--calcite-internal-shell-panel-shadow-block-start:
0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
--calcite-internal-shell-panel-shadow-block-end:
0 -4px 8px -1px rgba(0, 0, 0, 0.08), 0 -2px 4px -1px rgba(0, 0, 0, 0.04);
--calcite-internal-shell-panel-shadow-inline-start:
4px 0 8px -1px rgba(0, 0, 0, 0.08), 2px 0 4px -1px rgba(0, 0, 0, 0.04);
--calcite-internal-shell-panel-shadow-inline-end:
-4px 0 8px -1px rgba(0, 0, 0, 0.08), -2px 0 4px -1px rgba(0, 0, 0, 0.04);
}

.calcite--rtl.content--overlay {
--calcite-internal-shell-panel-shadow-inline-start: -4px 0 8px -1px rgba(0, 0, 0, 0.08),
-2px 0 4px -1px rgba(0, 0, 0, 0.04);
--calcite-internal-shell-panel-shadow-inline-end: 4px 0 8px -1px rgba(0, 0, 0, 0.08),
2px 0 4px -1px rgba(0, 0, 0, 0.04);
--calcite-internal-shell-panel-shadow-inline-start:
-4px 0 8px -1px rgba(0, 0, 0, 0.08), -2px 0 4px -1px rgba(0, 0, 0, 0.04);
--calcite-internal-shell-panel-shadow-inline-end:
4px 0 8px -1px rgba(0, 0, 0, 0.08), 2px 0 4px -1px rgba(0, 0, 0, 0.04);
}

:host([layout="vertical"]) {
Expand Down
2 changes: 1 addition & 1 deletion packages/calcite-design-tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"license": "SEE LICENSE.md",
"scripts": {
"build": "tsx support/run.ts",
"build": "tsx src/buildTokens.ts",
"clean": "rimraf dist",
"lint:json": "prettier --write \"**/*.json\" >/dev/null",
"lint:md": "prettier --write \"**/*.md\" >/dev/null && markdownlint \"**/*.md\" --fix --dot --ignore-path ../../.gitignore",
Expand Down
60 changes: 0 additions & 60 deletions packages/calcite-design-tokens/src/$config.ts

This file was deleted.

25 changes: 25 additions & 0 deletions packages/calcite-design-tokens/src/$metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"tokenSetOrder": [
"core/color",
"core/container-size",
"core/font",
"core/opacity",
"core/shadow",
"core/size",
"core/z-index",
"core/$metadata",
"core/$themes",
"semantic/border",
"semantic/container-size",
"semantic/corner",
"semantic/font",
"semantic/opacity",
"semantic/shadow",
"semantic/size",
"semantic/space",
"semantic/z-index",
"semantic/calcite/dark",
"semantic/calcite/light",
"semantic/typography"
]
}
Loading