Skip to content

Commit

Permalink
perf: remove previously deprecated tokens
Browse files Browse the repository at this point in the history
All tokens previously listed as `deprecated` and `public: false` are
safely removed from the repo. There is no impact on the consumers, the
tokens have not been part of the output files since 4.0.

The only impact is on the JSObject-deprecated.js file that is used as a
resource to list deprecated tokens between MAJOR releases.

Changes to be committed:
deleted:    src/breakpoint.json
modified:   src/color/alert.json
modified:   src/color/base.json
modified:   src/color/border.json
modified:   src/color/icon.json
modified:   src/color/text.json
modified:   src/color/tier.json
modified:   src/color/ui.json
modified:   src/depth.json
deleted:    src/shadow.json
modified:   src/size/scale.json
  • Loading branch information
jordanjones243 authored and blackfalcon committed May 23, 2024
1 parent 454eec9 commit 1bc164b
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 807 deletions.
28 changes: 0 additions & 28 deletions src/breakpoint.json

This file was deleted.

101 changes: 1 addition & 100 deletions src/color/alert.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,16 @@
"color": {
"alert": {
"notification": {
"onLight": {
"value": "{color.brand.atlas.400.value}",
"public": false,
"onLight": true,
"usage": "Notification color on light backgrounds",
"wcag": "AAA",
"deprecated": true,
"comment": "Deprecated token",
"reference": "color-alert-notification-default",
"version": "3.15.0"
},
"default": {
"value": "{color.brand.atlas.400.value}",
"public": true,
"default": true,
"usage": "Notification color on light backgrounds",
"wcag": "AAA",
"deprecated": false
},
"onDark": {
"value": "{color.brand.breeze.300.value}",
"public": false,
"onDark": true,
"usage": "Notification color on dark backgrounds",
"wcag": "AAA",
"deprecated": true,
"comment": "Deprecated token",
"reference": "n/a",
"version": "3.12.0"
}
},
"warning": {
"onLight": {
"value": "{color.state.warning.500.value}",
"public": false,
"onLight": true,
"usage": "Warning color on light backgrounds",
"wcag": "AAA",
"deprecated": true,
"comment": "Deprecated token",
"reference": "n/a",
"version": "3.12.0"
},
"default": {
"value": "{color.state.warning.500.value}",
"public": true,
Expand All @@ -55,106 +22,40 @@
}
},
"error": {
"onLight": {
"value": "{color.state.error.500.value}",
"public": false,
"onLight": true,
"usage": "Error color on light backgrounds",
"wcag": "AAA",
"deprecated": true,
"comment": "Deprecated token",
"reference": "color-alert-error-default",
"version": "3.15.0"
},
"default": {
"value": "{color.state.error.500.value}",
"public": true,
"default": true,
"usage": "Error color on light backgrounds",
"wcag": "AAA",
"deprecated": false
},
"onDark": {
"value": "{color.state.error.100.value}",
"public": false,
"onDark": true,
"usage": "Error color on dark backgrounds",
"wcag": "AAA",
"deprecated": true,
"reference": "n/a",
"comment": "Deprecated token",
"version": "3.12.0"
}
},
"success": {
"onLight": {
"value": "{color.state.success.500.value}",
"public": false,
"onLight": true,
"usage": "Success color on light backgrounds",
"wcag": "AAA",
"deprecated": true,
"comment": "Deprecated token",
"reference": "color-alert-success-default",
"version": "3.15.0"
},
"default": {
"value": "{color.state.success.500.value}",
"public": true,
"default": true,
"usage": "Success color on light backgrounds",
"wcag": "AAA",
"deprecated": false
},
"onDark": {
"value": "{color.state.success.100.value}",
"public": false,
"onDark": true,
"usage": "Success color on dark backgrounds",
"wcag": "AAA",
"deprecated": true,
"comment": "Deprecated token",
"reference": "n/a",
"version": "3.12.0"
}
},
"advisory": {
"onLight": {
"value": "{color.brand.goldcoast.100.value}",
"public": false,
"onLight": true,
"usage": "Travel advisory or system maintenance color on light backgrounds",
"wcag": "AAA",
"deprecated": true,
"comment": "Deprecated token",
"reference": "color-alert-advisory-default",
"version": "3.15.0"
},
"default": {
"value": "{color.brand.goldcoast.100.value}",
"public": true,
"default": true,
"usage": "Travel advisory or system maintenance color on light backgrounds",
"wcag": "AAA",
"deprecated": false
},
"onDark": {
"value": "{color.brand.goldcoast.100.value}",
"public": false,
"onDark": true,
"usage": "Travel advisory or system maintenance color on dark backgrounds",
"wcag": "AAA",
"deprecated": true,
"comment": "Deprecated token",
"reference": "n/a",
"version": "3.12.0"
}
},
"bkgSuccess": {
"default": {
"value": "DDF6E8",
"public": true,
"onLight": true,
"default": true,
"usage": "Background success color on light backgrounds",
"wcag": "AAA",
"deprecated": false
Expand Down
75 changes: 0 additions & 75 deletions src/color/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,81 +40,6 @@
"public": true,
"opacity": true,
"deprecated": false
},
"gray": {
"100": {
"value": "f8f8f8",
"version": "3.1.0",
"public": false,
"neutral": true,
"usage": "Neutral accent",
"wcag": "n/a",
"deprecated": true,
"reference": "color-brand-gray-100",
"comment": "{comments.reference.comment} color-brand-gray-100"
},
"200": {
"value": "dbdbdb",
"public": false,
"neutral": true,
"usage": "Neutral accent",
"wcag": "n/a",
"deprecated": true,
"version": "3.1.0",
"reference": "color-brand-gray-200",
"comment": "{comments.reference.comment} color-brand-gray-200"
},
"300": {
"value": "b2b2b2",
"public": false,
"neutral": true,
"usage": "Neutral accent",
"wcag": "n/a",
"deprecated": true,
"version": "3.1.0",
"reference": "color-brand-gray-300",
"comment": "{comments.reference.comment} color-brand-gray-300"
},
"400": {
"value": "767676",
"public": false,
"neutral": true,
"usage": "Neutral accent",
"wcag": "n/a",
"deprecated": true,
"version": "3.1.0",
"reference": "color-brand-gray-400",
"comment": "{comments.reference.comment} color-brand-gray-400"
},
"500": {
"value": "222222",
"public": false,
"neutral": true,
"usage": "Neutral accent",
"wcag": "n/a",
"deprecated": true,
"version": "3.1.0",
"reference": "color-brand-gray-500",
"comment": "{comments.reference.comment} color-brand-gray-500"
}
},
"neutral": {
"400": {
"value": "9fabbb",
"public": false,
"deprecated": true,
"version": "3.1.0",
"reference": "color-brand-neutral-400",
"comment": "{comments.reference.comment} color-brand-neutral-400"
},
"500": {
"value": "626b79",
"public": false,
"deprecated": true,
"version": "3.1.0",
"reference": "color-brand-neutral-500",
"comment": "{comments.reference.comment} color-brand-neutral-500"
}
}
},
"state": {
Expand Down
Loading

0 comments on commit 1bc164b

Please sign in to comment.