Skip to content

Commit

Permalink
fix(json): add reference and version data to tokens #96
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanjones243 authored and blackfalcon committed Feb 6, 2023
1 parent d857b3f commit 52081b3
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 42 deletions.
30 changes: 19 additions & 11 deletions src/color/alert.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"onDark": true,
"usage": "Notification color on dark backgrounds",
"wcag": "AAA",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"warning": {
Expand All @@ -27,14 +29,6 @@
"usage": "Warning color on light backgrounds",
"wcag": "AAA",
"deprecated": false
},
"onDark": {
"value": "{color.state.error.100.value}",
"public": true,
"onDark": true,
"usage": "Error color on dark backgrounds",
"wcag": "AAA",
"deprecated": true
}
},
"error": {
Expand All @@ -45,6 +39,16 @@
"usage": "Error color on light backgrounds",
"wcag": "AAA",
"deprecated": false
},
"onDark": {
"value": "{color.state.error.100.value}",
"public": true,
"onDark": true,
"usage": "Error color on dark backgrounds",
"wcag": "AAA",
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"success": {
Expand All @@ -62,7 +66,9 @@
"onDark": true,
"usage": "Success color on dark backgrounds",
"wcag": "AAA",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"advisory": {
Expand All @@ -80,7 +86,9 @@
"onDark": true,
"usage": "Travel advisory or system maintenance color on dark backgrounds",
"wcag": "AAA",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
}
}
Expand Down
24 changes: 18 additions & 6 deletions src/color/border.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"onDark": true,
"usage": "Primary border color on dark background",
"wcag": "n/a",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"active": {
Expand All @@ -34,7 +36,9 @@
"onDark": true,
"usage": "Active border color on dark backgrounds",
"wcag": "n/a",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"error": {
Expand All @@ -52,7 +56,9 @@
"onDark": true,
"usage": "Error states border color on dark background",
"wcag": "n/a",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"disabled": {
Expand All @@ -70,7 +76,9 @@
"onDark": true,
"usage": "Disabled border color on dark background",
"wcag": "n/a",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"Focus": {
Expand All @@ -88,7 +96,9 @@
"onDark": true,
"usage": "Focus border color for dark backgrounds",
"wcag": "n/a",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"divider": {
Expand All @@ -106,7 +116,9 @@
"onDark": true,
"usage": "Strict use as divider between elements on dark backgrounds",
"wcag": "n/a",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
}
}
Expand Down
16 changes: 12 additions & 4 deletions src/color/icon.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"onDark": true,
"usage": "Primary color for icons on dark backgrounds",
"wcag": "AAA",
"deprecated": false
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"emphasis": {
Expand All @@ -34,7 +36,9 @@
"onDark": true,
"usage": "Emphasis or lightest icon color on dark backgrounds",
"wcag": "AAA",
"deprecated": false
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"accent": {
Expand All @@ -52,7 +56,9 @@
"onDark": true,
"usage": "Accent color for icon color on dark backgrounds",
"wcag": "AA",
"deprecated": false
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"disabled": {
Expand All @@ -70,7 +76,9 @@
"onDark": true,
"usage": "Disabled icon color on dark backgrounds",
"wcag": "n/a",
"deprecated": false
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
}
}
Expand Down
24 changes: 18 additions & 6 deletions src/color/text.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"onDark": true,
"usage": "Primary color for body and header text on dark backgrounds",
"wcag": "AAA",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"secondary": {
Expand All @@ -34,7 +36,9 @@
"onDark": true,
"usage": "Secondary color for body text on dark backgrounds",
"wcag": "AAA",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"link": {
Expand All @@ -52,7 +56,9 @@
"onDark": true,
"usage": "Link text color on light backgrounds",
"wcag": "AA",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"error": {
Expand All @@ -70,7 +76,9 @@
"onDark": true,
"usage": "Error text color on dark backgrounds",
"wcag": "AA",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"disabled": {
Expand All @@ -88,7 +96,9 @@
"onDark": true,
"usage": "Disabled text color on dark backgrounds",
"wcag": "n/a",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"emphasis": {
Expand All @@ -106,7 +116,9 @@
"onDark": true,
"usage": "Emphasized text color on dark backgrounds",
"wcag": "n/a",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
}
}
Expand Down
22 changes: 12 additions & 10 deletions src/color/tier.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"onDark": true,
"usage": "MVP tier color for Alaska Airlines",
"wcag": "n/a",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"mvpgold": {
Expand All @@ -35,20 +37,20 @@
"onDark": true,
"usage": "MVP Gold tier color for Alaska Airlines",
"wcag": "n/a",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
}
},
"oneworld": {
"emerald": {
"onLight": {
"value": "{color.brand.emerald.value}",
"public": true,
"onLight": true,
"usage": "Emerald tier color for Oneworld",
"wcag": "n/a",
"deprecated": false
}
"value": "{color.brand.emerald.value}",
"public": true,
"onLight": true,
"usage": "Emerald tier color for Oneworld",
"wcag": "n/a",
"deprecated": false
},
"sapphire": {
"value": "{color.brand.sapphire.value}",
Expand Down
20 changes: 15 additions & 5 deletions src/color/ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"onDark": true,
"usage": "OnDark interaction color affordance",
"wcag": "AAA",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"hover": {
Expand All @@ -34,7 +36,9 @@
"onDark": true,
"usage": "Hover interaction color on dark backgrounds",
"wcag": "AAA",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"active": {
Expand All @@ -52,7 +56,9 @@
"onDark": true,
"usage": "OnDark active state color affordance",
"wcag": "AAA",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"disabled": {
Expand All @@ -70,7 +76,9 @@
"onDark": true,
"usage": "OnDark disabled state color affordance",
"wcag": "n/a",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
}
},
"bkg": {
Expand All @@ -80,7 +88,9 @@
"public": true,
"onDark": true,
"usage": "Default hover affordance for background colors onDark",
"deprecated": true
"deprecated": true,
"reference": "n/a",
"version": "3.12.0"
},
"onLight": {
"value": "0000000f",
Expand Down

0 comments on commit 52081b3

Please sign in to comment.