Skip to content

Commit

Permalink
perf(deprecated): clean up old deprecated and deprecate newly outdate…
Browse files Browse the repository at this point in the history
…d tokens
  • Loading branch information
jason-capsule42 committed May 14, 2024
1 parent 4690bbe commit 1675bcc
Show file tree
Hide file tree
Showing 17 changed files with 86 additions and 846 deletions.
28 changes: 0 additions & 28 deletions src/breakpoint.json

This file was deleted.

4 changes: 2 additions & 2 deletions src/color-darkmode/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"value": "000000",
"comment": "{comments.color.base.value.comment}",
"public": true,
"deprecated": false,
"deprecated": true,
"darkmode": true
},
"black": {
"value": "ffffff",
"comment": "{comments.color.base.value.comment}",
"public": true,
"deprecated": false,
"deprecated": true,
"darkmode": true
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/color-darkmode/border.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
"default": true,
"usage": "Primary border color on dark background",
"wcag": "n/a",
"deprecated": false
"deprecated": true
}
},
"divider": {
"default": {
"value": "{color.base.white.value}",
"value": "{color.base.white.100.value}",
"public": true,
"darkmode": true,
"default": true,
"usage": "Strict use as divider between elements on dark backgrounds",
"wcag": "n/a",
"deprecated": false
"deprecated": true
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/color-darkmode/icon.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
"default": true,
"usage": "Primary color for icons on dark backgrounds",
"wcag": "AAA",
"deprecated": false
"deprecated": true
}
},
"emphasis": {
"default": {
"value": "{color.base.white.value}",
"value": "{color.base.white.100.value}",
"public": true,
"darkmode": true,
"default": true,
"usage": "Emphasis or lightest icon color on dark backgrounds",
"wcag": "AAA",
"deprecated": false
"deprecated": true
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions src/color-darkmode/text.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"text": {
"primary": {
"default": {
"value": "{color.base.white.value}",
"value": "{color.base.white.100.value}",
"public": true,
"darkmode": true,
"default": true,
"usage": "Primary color for body and header text on dark backgrounds",
"wcag": "AAA",
"deprecated": false
"deprecated": true
}
},
"secondary": {
Expand All @@ -20,7 +20,7 @@
"default": true,
"usage": "Secondary color for body text on dark backgrounds",
"wcag": "AAA",
"deprecated": false
"deprecated": true
}
},
"link": {
Expand All @@ -31,7 +31,7 @@
"default": true,
"usage": "Link text color on light backgrounds",
"wcag": "AA",
"deprecated": false
"deprecated": true
}
},
"error": {
Expand All @@ -42,7 +42,7 @@
"default": true,
"usage": "Error text color on dark backgrounds",
"wcag": "AA",
"deprecated": false
"deprecated": true
}
},
"emphasis": {
Expand All @@ -53,7 +53,7 @@
"default": true,
"usage": "Emphasized text color on dark backgrounds",
"wcag": "n/a",
"deprecated": false
"deprecated": true
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/color-darkmode/tier.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"default": true,
"usage": "MVP tier color for Alaska Airlines",
"wcag": "n/a",
"deprecated": false
"deprecated": true
}
},
"mvpgold": {
Expand All @@ -21,7 +21,7 @@
"default": true,
"usage": "MVP Gold tier color for Alaska Airlines",
"wcag": "n/a",
"deprecated": false
"deprecated": true
}
}
}
Expand Down
113 changes: 7 additions & 106 deletions src/color/alert.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,152 +2,53 @@
"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"
"deprecated": true
}
},
"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,
"default": true,
"usage": "Warning color on light backgrounds",
"wcag": "AAA",
"deprecated": false
"deprecated": true
}
},
"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"
"deprecated": true
}
},
"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"
"deprecated": true
}
},
"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"
"deprecated": true
}
},
"bkgSuccess": {
Expand All @@ -157,7 +58,7 @@
"onLight": true,
"usage": "Background success color on light backgrounds",
"wcag": "AAA",
"deprecated": false
"deprecated": true
}
},
"bkgError": {
Expand All @@ -167,7 +68,7 @@
"default": true,
"usage": "Background error color on light backgrounds",
"wcag": "AAA",
"deprecated": false
"deprecated": true
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions src/color/background.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,36 @@
"color": {
"background": {
"lightest": {
"value": "{color.base.white.value}",
"value": "{color.base.white.100.value}",
"public": true,
"neutral": true,
"usage": "Used for creating light backgrounds",
"wcag": "n/a",
"deprecated": false
"deprecated": true
},
"lighter": {
"value": "{color.base.gray.100.value}",
"public": true,
"neutral": true,
"usage": "Used for creating light backgrounds @ 90% white",
"wcag": "n/a",
"deprecated": false
"deprecated": true
},
"darker": {
"value": "{color.brand.midnight.400.value}",
"public": true,
"neutral": true,
"usage": "Used for creating dark backgrounds",
"wcag": "n/a",
"deprecated": false
"deprecated": true
},
"darkest": {
"value": "{color.brand.midnight.500.value}",
"public": true,
"neutral": true,
"usage": "Used for creating dark backgrounds @ 20% darker",
"wcag": "n/a",
"deprecated": false
"deprecated": true
},
"gradient": {
"default": {
Expand All @@ -40,7 +40,7 @@
"neutral": true,
"usage": "Used for creating a gradient against all backgrounds",
"wcag": "n/a",
"deprecated": false
"deprecated": true
}
}
}
Expand Down
Loading

0 comments on commit 1675bcc

Please sign in to comment.