Skip to content

Commit 6a03fa3

Browse files
committed
feat(tokens): support for composite formats
1 parent 68e8287 commit 6a03fa3

11 files changed

+1206
-1103
lines changed

lint-staged.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
"*.css": [
33
"stylelint --fix --cache --allow-empty-input --report-descriptionless-disables --report-invalid-scope-disables --report-needless-disables",
4-
"prettier --no-config --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write --config .prettierrc",
4+
"prettier --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write --config .prettierrc",
55
],
66
"*.{js,json},!package.json": [
77
"eslint --fix --cache --no-error-on-unmatched-pattern"

tokens/custom/dark-vars.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818

1919
@media (prefers-color-scheme: dark) {
20-
.spectrum {
20+
:root {
2121
/** COMPONENT-SPECIFIC OVERRIDES **/
2222
--spectrum-assetcard-border-color-selected: var(--spectrum-blue-800);
2323
--spectrum-assetcard-border-color-selected-hover: var(--spectrum-blue-800);

tokens/custom/global-vars.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414
/* This file contains overrides and additions to core tokens */
15-
.spectrum {
15+
:root {
1616
--spectrum-animation-duration-0: 0ms;
1717
--spectrum-animation-duration-100: 130ms;
1818
--spectrum-animation-duration-200: 160ms;

tokens/custom/light-vars.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
*/
1313

1414
/* This file contains overrides and additions to core tokens */
15-
.spectrum {
16-
color-scheme: light;
17-
15+
:root {
1816
--spectrum-assetcard-border-color-selected: var(--spectrum-blue-900);
1917
--spectrum-assetcard-border-color-selected-hover: var(--spectrum-blue-900);
2018
--spectrum-assetcard-border-color-selected-down: var(--spectrum-blue-1000);
@@ -58,4 +56,5 @@
5856

5957
--spectrum-treeview-item-background-color-quiet-selected: rgb(var(--spectrum-gray-900-rgb), 0.06);
6058
--spectrum-treeview-item-background-color-selected: rgb(var(--spectrum-blue-900-rgb), 0.1);
59+
color-scheme: light;
6160
}

tokens/custom/medium-vars.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
/* This file contains overrides and additions to core tokens */
1515

16-
.spectrum {
16+
:root {
1717
/* stylelint-disable-next-line custom-property-pattern -- context identification */
1818
--scale: medium;
1919

0 commit comments

Comments
 (0)