Skip to content

Commit

Permalink
chore: add comments & hash prefix to color values
Browse files Browse the repository at this point in the history
Changes to be committed:
	modified:   scripts/config-jetstream-darkmode.json
	modified:   scripts/config-jetstream.json
	modified:   src/themes/jetstream/color/base.json
	modified:   src/themes/jetstream/color/brand.json
	modified:   src/themes/jetstream/color/text.json
	modified:   src/themes/jetstream/color/tier.json
	new file:   src/themes/jetstream/comments.json
  • Loading branch information
fajar-apri-alaska committed May 31, 2024
1 parent 73657da commit 37b42d8
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 44 deletions.
5 changes: 3 additions & 2 deletions scripts/config-jetstream-darkmode.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"source": ["./src/themes/jetstream/color-darkmode/*.json"],
"include": [
"./src/themes/jetstream/color/base.json",
"./src/themes/jetstream/color/brand.json"
"./src/themes/jetstream/color/brand.json",
"./src/themes/jetstream/comments.json"
],
"source": ["./src/themes/jetstream/color-darkmode/*.json"],
"platforms": {
"JSONVariables": {
"transformGroup": "css",
Expand Down
2 changes: 1 addition & 1 deletion scripts/config-jetstream.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"include": ["./src/themes/jetstream/*.json"],
"source": ["./src/themes/jetstream/color/*.json"],
"include": ["./src/themes/jetstream/*.json"],
"platforms": {
"JSONVariables": {
"transformGroup": "css",
Expand Down
34 changes: 17 additions & 17 deletions src/themes/jetstream/color/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,77 +2,77 @@
"color": {
"jetstream": {
"white": {
"value": "ffffff",
"comment": "",
"value": "#ffffff",
"comment": "{comments.color.base.value.comment}",
"public": true,
"deprecated": false
},
"black": {
"value": "000000",
"comment": "",
"value": "#000000",
"comment": "{comments.color.base.value.comment}",
"public": true,
"deprecated": false
},
"black-opacity-30": {
"value": "0000004d",
"comment": "black @ 30%",
"value": "#0000004d",
"comment": "{comments.color.base.value.comment}",
"public": true,
"opacity": true,
"deprecated": false
},
"gray": {
"50": {
"value": "EBEEF1",
"value": "#EBEEF1",
"public": true,
"deprecated": false
},
"100": {
"value": "8C9EAE",
"value": "#8C9EAE",
"public": true,
"deprecated": false
},
"200": {
"value": "b2bec9",
"value": "#b2bec9",
"public": true,
"deprecated": false
},
"300": {
"value": "A6B3C0",
"value": "#A6B3C0",
"public": true,
"deprecated": false
}
},
"dark-gray": {
"value": "4A657E",
"comment": "alias color for #4A657E",
"value": "#4A657E",
"comment": "{comments.color.base.value.comment}",
"public": true,
"opacity": true,
"deprecated": false
},
"white-gray": {
"value": "D9DFE4",
"comment": "alias color for #D9DFE4",
"value": "#D9DFE4",
"comment": "{comments.color.base.value.comment}",
"public": true,
"opacity": true,
"deprecated": false
},
"medium-blue": {
"value": "254664",
"comment": "alias color for #254664",
"comment": "{comments.color.base.value.comment}",
"public": true,
"opacity": true,
"deprecated": false
},
"active": {
"value": "0074c8",
"comment": "alias color for #0074c8",
"comment": "{comments.color.base.value.comment}",
"public": true,
"opacity": true,
"deprecated": false
},
"blue": {
"value": "30A1F2",
"comment": "alias color for #30A1F2",
"comment": "{comments.color.base.value.comment}",
"public": true,
"opacity": true,
"deprecated": false
Expand Down
32 changes: 16 additions & 16 deletions src/themes/jetstream/color/brand.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"comment": "",
"public": true,
"neutral": true,
"usage": "Transactional colors to move guests through task-based interactions.",
"usage": "{comments.color.brand.transactional.comment}",
"wcag": "n/a",
"deprecated": false
},
Expand All @@ -16,7 +16,7 @@
"comment": "",
"public": true,
"neutral": true,
"usage": "Transactional colors to move guests through task-based interactions.",
"usage": "{comments.color.brand.transactional.comment}",
"wcag": "n/a",
"deprecated": false
}
Expand All @@ -27,7 +27,7 @@
"comment": "",
"public": true,
"neutral": true,
"usage": "Transactional colors to move guests through task-based interactions.",
"usage": "{comments.color.brand.transactional.comment}",
"wcag": "n/a",
"deprecated": false
},
Expand All @@ -36,7 +36,7 @@
"comment": "",
"public": true,
"neutral": true,
"usage": "Transactional colors to move guests through task-based interactions.",
"usage": "{comments.color.brand.transactional.comment}",
"wcag": "n/a",
"deprecated": false
}
Expand All @@ -57,15 +57,15 @@
"value": "F5F6F8",
"public": true,
"neutral": true,
"usage": "Neutral accent",
"usage": "{comments.color.brand.neutral.comment}",
"wcag": "n/a",
"deprecated": false
},
"200": {
"value": "D6DCE2",
"public": true,
"neutral": true,
"usage": "Neutral accent",
"usage": "{comments.color.brand.neutral.comment}",
"wcag": "n/a",
"deprecated": false
},
Expand All @@ -74,7 +74,7 @@
"comment": "",
"public": true,
"neutral": true,
"usage": "Neutral accent",
"usage": "{comments.color.brand.neutral.comment}",
"wcag": "n/a",
"deprecated": false
},
Expand All @@ -83,15 +83,15 @@
"comment": "",
"public": true,
"neutral": true,
"usage": "Neutral accent",
"usage": "{comments.color.brand.neutral.comment}",
"wcag": "n/a",
"deprecated": false
},
"500": {
"value": "405D77",
"public": true,
"neutral": true,
"usage": "Neutral accent",
"usage": "{comments.color.brand.neutral.comment}",
"wcag": "n/a",
"deprecated": false
}
Expand All @@ -101,15 +101,15 @@
"value": "7B7B7B",
"public": true,
"neutral": true,
"usage": "Transactional colors to move guests through task-based interactions.",
"usage": "{comments.color.brand.transactional.comment}",
"wcag": "n/a",
"deprecated": false
},
"200": {
"value": "C7C7C7",
"public": true,
"neutral": true,
"usage": "Transactional colors to move guests through task-based interactions.",
"usage": "{comments.color.brand.transactional.comment}",
"wcag": "n/a",
"deprecated": false
}
Expand All @@ -119,15 +119,15 @@
"value": "7E623D",
"public": true,
"neutral": true,
"usage": "Transactional colors to move guests through task-based interactions.",
"usage": "{comments.color.brand.transactional.comment}",
"wcag": "n/a",
"deprecated": false
},
"200": {
"value": "8F7B39",
"public": true,
"neutral": true,
"usage": "Transactional colors to move guests through task-based interactions.",
"usage": "{comments.color.brand.transactional.comment}",
"wcag": "n/a",
"deprecated": false
}
Expand All @@ -136,23 +136,23 @@
"value": "0F8C4A",
"public": true,
"neutral": true,
"usage": "Transactional colors to move guests through task-based interactions.",
"usage": "{comments.color.brand.transactional.comment}",
"wcag": "n/a",
"deprecated": false
},
"sapphire": {
"value": "10699C",
"public": true,
"neutral": true,
"usage": "Transactional colors to move guests through task-based interactions.",
"usage": "{comments.color.brand.transactional.comment}",
"wcag": "n/a",
"deprecated": false
},
"ruby": {
"value": "9C305A",
"public": true,
"neutral": true,
"usage": "Transactional colors to move guests through task-based interactions.",
"usage": "{comments.color.brand.transactional.comment}",
"wcag": "n/a",
"deprecated": false
}
Expand Down
10 changes: 5 additions & 5 deletions src/themes/jetstream/color/text.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"deprecated": false
},
"inverse": {
"value": "0074CB",
"value": "#0074CB",
"public": true,
"default": true,
"usage": "Emphasis inverse color for body text on light backgrounds",
Expand All @@ -107,7 +107,7 @@
"primary": {
"hover": {
"default": {
"value": "0d0d0d",
"value": "#0d0d0d",
"public": true,
"default": true,
"usage": "Primary hover color for body and header text light mode and light backgrounds",
Expand All @@ -119,7 +119,7 @@
"secondary": {
"hover": {
"default": {
"value": "3d3e40",
"value": "#3d3e40",
"public": true,
"default": true,
"usage": "Secondary hover color for body and header text light mode and light backgrounds",
Expand All @@ -130,7 +130,7 @@
},
"tertiary": {
"default": {
"value": "84868b",
"value": "#84868b",
"jetstream": true,
"public": true,
"default": true,
Expand All @@ -140,7 +140,7 @@
},
"hover": {
"default": {
"value": "737373",
"value": "#737373",
"public": true,
"default": true,
"usage": "Tertiary hover color for body and header text light mode and light backgrounds",
Expand Down
6 changes: 3 additions & 3 deletions src/themes/jetstream/color/tier.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"alaska": {
"mvp": {
"default": {
"value": "00436D",
"value": "#00436D",
"public": true,
"default": true,
"usage": "MVP tier color for Alaska Airlines",
"wcag": "n/a",
"deprecated": false
},
"inverse": {
"value": "71ADE3",
"value": "#71ADE3",
"public": true,
"inverse": true,
"usage": "MVP tier color for Alaska Airlines",
Expand All @@ -30,7 +30,7 @@
"deprecated": false
},
"inverse": {
"value": "C2AB61",
"value": "#C2AB61",
"public": true,
"inverse": true,
"usage": "MVP Gold tier color for Alaska Airlines",
Expand Down
38 changes: 38 additions & 0 deletions src/themes/jetstream/comments.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"comments": {
"value": "test",
"deprecated": {
"comment": "\n // Deprecated, no replacement; token to be REMOVED in next MAJOR release"
},
"reference": {
"comment": "\n // New token, see"
},
"color": {
"base": {
"value": {
"comment": "\n // Base value for token support; should not use in code!"
}
},
"brand": {
"value": {
"comment": "\n // Please consider descriptive token prior to using brand token"
},
"transactional": {
"comment": "\n // Transactional colors to move guests through task-based interactions."
},
"neutral": {
"comment": "\n // Neutral accent"
}
},
"classic": {
"comment": "\n // DO NOT USE for anything other than legacy projects or classic component themes"
},
"matrix": {
"comment": "\n // DO NOT USE for anything other than legacy projects related to the matrix search"
},
"reference": {
"comment": "{comments.reference.comment}"
}
}
}
}

0 comments on commit 37b42d8

Please sign in to comment.