Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add global link visited token #297

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions build/figma/figma.tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@
"type": "color"
}
},
"purple": {
"700": {
"value": "#7532B8",
"type": "color"
}
},
"red": {
"100": {
"value": "#FBDDDA",
Expand Down Expand Up @@ -233,6 +239,10 @@
"value": "#FFF",
"type": "color"
},
"visited": {
"value": "#7532B8",
"type": "color"
},
"focus": {
"background": {
"value": "#0535d2",
Expand Down
2 changes: 2 additions & 0 deletions build/web/css/.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
--gcds-color-green-100: #e6f6ec;
--gcds-color-green-500: #289f58; /* Must contrast 3:1 with white */
--gcds-color-green-700: #03662a; /* Must contrast 7:1 with white */
--gcds-color-purple-700: #7532b8; /* Must contrast 7:1 with white */
--gcds-color-red-100: #fbddda;
--gcds-color-red-500: #d3080c; /* Must contrast 3:1 with white */
--gcds-color-red-700: #a62a1e; /* Must contrast 7:1 with white */
Expand Down Expand Up @@ -54,6 +55,7 @@
--gcds-link-default: #2b4380; /* Global color: link default */
--gcds-link-hover: #0535d2; /* Global color: link hover */
--gcds-link-light: #ffffff; /* Global color: link light */
--gcds-link-visited: #7532b8; /* Global color: link visited */
--gcds-link-focus-background: #0535d2;
--gcds-link-focus-outline-width: 0.1875rem;
--gcds-link-focus-outline-offset: 0.125rem;
Expand Down
1 change: 1 addition & 0 deletions build/web/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
--gcds-color-green-100: #e6f6ec;
--gcds-color-green-500: #289f58; /* Must contrast 3:1 with white */
--gcds-color-green-700: #03662a; /* Must contrast 7:1 with white */
--gcds-color-purple-700: #7532b8; /* Must contrast 7:1 with white */
--gcds-color-red-100: #fbddda;
--gcds-color-red-500: #d3080c; /* Must contrast 3:1 with white */
--gcds-color-red-700: #a62a1e; /* Must contrast 7:1 with white */
Expand Down
1 change: 1 addition & 0 deletions build/web/css/base/color.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
--gcds-color-green-100: #e6f6ec;
--gcds-color-green-500: #289f58; /* Must contrast 3:1 with white */
--gcds-color-green-700: #03662a; /* Must contrast 7:1 with white */
--gcds-color-purple-700: #7532b8; /* Must contrast 7:1 with white */
--gcds-color-red-100: #fbddda;
--gcds-color-red-500: #d3080c; /* Must contrast 3:1 with white */
--gcds-color-red-700: #a62a1e; /* Must contrast 7:1 with white */
Expand Down
1 change: 1 addition & 0 deletions build/web/css/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
--gcds-link-default: #2b4380; /* Global color: link default */
--gcds-link-hover: #0535d2; /* Global color: link hover */
--gcds-link-light: #ffffff; /* Global color: link light */
--gcds-link-visited: #7532b8; /* Global color: link visited */
--gcds-text-light: #ffffff; /* Global color: text light */
--gcds-text-primary: #333333; /* Global color: text primary */
--gcds-text-secondary: #43474e; /* Global color: text secondary */
Expand Down
1 change: 1 addition & 0 deletions build/web/css/global/color.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
--gcds-link-default: #2b4380; /* Global color: link default */
--gcds-link-hover: #0535d2; /* Global color: link hover */
--gcds-link-light: #ffffff; /* Global color: link light */
--gcds-link-visited: #7532b8; /* Global color: link visited */
--gcds-text-light: #ffffff; /* Global color: text light */
--gcds-text-primary: #333333; /* Global color: text primary */
--gcds-text-secondary: #43474e; /* Global color: text secondary */
Expand Down
2 changes: 2 additions & 0 deletions build/web/css/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
--gcds-color-green-100: #e6f6ec;
--gcds-color-green-500: #289f58; /* Must contrast 3:1 with white */
--gcds-color-green-700: #03662a; /* Must contrast 7:1 with white */
--gcds-color-purple-700: #7532b8; /* Must contrast 7:1 with white */
--gcds-color-red-100: #fbddda;
--gcds-color-red-500: #d3080c; /* Must contrast 3:1 with white */
--gcds-color-red-700: #a62a1e; /* Must contrast 7:1 with white */
Expand Down Expand Up @@ -54,6 +55,7 @@
--gcds-link-default: #2b4380; /* Global color: link default */
--gcds-link-hover: #0535d2; /* Global color: link hover */
--gcds-link-light: #ffffff; /* Global color: link light */
--gcds-link-visited: #7532b8; /* Global color: link visited */
--gcds-link-focus-background: #0535d2;
--gcds-link-focus-outline-width: 0.1875rem;
--gcds-link-focus-outline-offset: 0.125rem;
Expand Down
2 changes: 2 additions & 0 deletions build/web/scss/.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ $gcds-color-grayscale-1000: #000000;
$gcds-color-green-100: #e6f6ec;
$gcds-color-green-500: #289f58; // Must contrast 3:1 with white
$gcds-color-green-700: #03662a; // Must contrast 7:1 with white
$gcds-color-purple-700: #7532b8; // Must contrast 7:1 with white
$gcds-color-red-100: #fbddda;
$gcds-color-red-500: #d3080c; // Must contrast 3:1 with white
$gcds-color-red-700: #a62a1e; // Must contrast 7:1 with white
Expand Down Expand Up @@ -52,6 +53,7 @@ $gcds-focus-text-form: #0535d2; // Global color: focus text form elements
$gcds-link-default: #2b4380; // Global color: link default
$gcds-link-hover: #0535d2; // Global color: link hover
$gcds-link-light: #ffffff; // Global color: link light
$gcds-link-visited: #7532b8; // Global color: link visited
$gcds-link-focus-background: #0535d2;
$gcds-link-focus-outline-width: 0.1875rem;
$gcds-link-focus-outline-offset: 0.125rem;
Expand Down
1 change: 1 addition & 0 deletions build/web/scss/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ $gcds-color-grayscale-1000: #000000;
$gcds-color-green-100: #e6f6ec;
$gcds-color-green-500: #289f58; // Must contrast 3:1 with white
$gcds-color-green-700: #03662a; // Must contrast 7:1 with white
$gcds-color-purple-700: #7532b8; // Must contrast 7:1 with white
$gcds-color-red-100: #fbddda;
$gcds-color-red-500: #d3080c; // Must contrast 3:1 with white
$gcds-color-red-700: #a62a1e; // Must contrast 7:1 with white
Expand Down
1 change: 1 addition & 0 deletions build/web/scss/base/color.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ $gcds-color-grayscale-1000: #000000;
$gcds-color-green-100: #e6f6ec;
$gcds-color-green-500: #289f58; // Must contrast 3:1 with white
$gcds-color-green-700: #03662a; // Must contrast 7:1 with white
$gcds-color-purple-700: #7532b8; // Must contrast 7:1 with white
$gcds-color-red-100: #fbddda;
$gcds-color-red-500: #d3080c; // Must contrast 3:1 with white
$gcds-color-red-700: #a62a1e; // Must contrast 7:1 with white
Expand Down
1 change: 1 addition & 0 deletions build/web/scss/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ $gcds-focus-text-form: #0535d2; // Global color: focus text form elements
$gcds-link-default: #2b4380; // Global color: link default
$gcds-link-hover: #0535d2; // Global color: link hover
$gcds-link-light: #ffffff; // Global color: link light
$gcds-link-visited: #7532b8; // Global color: link visited
$gcds-text-light: #ffffff; // Global color: text light
$gcds-text-primary: #333333; // Global color: text primary
$gcds-text-secondary: #43474e; // Global color: text secondary
Expand Down
1 change: 1 addition & 0 deletions build/web/scss/global/color.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ $gcds-focus-text-form: #0535d2; // Global color: focus text form elements
$gcds-link-default: #2b4380; // Global color: link default
$gcds-link-hover: #0535d2; // Global color: link hover
$gcds-link-light: #ffffff; // Global color: link light
$gcds-link-visited: #7532b8; // Global color: link visited
$gcds-text-light: #ffffff; // Global color: text light
$gcds-text-primary: #333333; // Global color: text primary
$gcds-text-secondary: #43474e; // Global color: text secondary
2 changes: 2 additions & 0 deletions build/web/scss/tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ $gcds-color-grayscale-1000: #000000;
$gcds-color-green-100: #e6f6ec;
$gcds-color-green-500: #289f58; // Must contrast 3:1 with white
$gcds-color-green-700: #03662a; // Must contrast 7:1 with white
$gcds-color-purple-700: #7532b8; // Must contrast 7:1 with white
$gcds-color-red-100: #fbddda;
$gcds-color-red-500: #d3080c; // Must contrast 3:1 with white
$gcds-color-red-700: #a62a1e; // Must contrast 7:1 with white
Expand Down Expand Up @@ -52,6 +53,7 @@ $gcds-focus-text-form: #0535d2; // Global color: focus text form elements
$gcds-link-default: #2b4380; // Global color: link default
$gcds-link-hover: #0535d2; // Global color: link hover
$gcds-link-light: #ffffff; // Global color: link light
$gcds-link-visited: #7532b8; // Global color: link visited
$gcds-link-focus-background: #0535d2;
$gcds-link-focus-outline-width: 0.1875rem;
$gcds-link-focus-outline-offset: 0.125rem;
Expand Down
7 changes: 7 additions & 0 deletions tokens/base/color/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@
"comment": "Must contrast 7:1 with white"
}
},
"purple": {
"700": {
"value": "#7532B8",
"type": "color",
"comment": "Must contrast 7:1 with white"
}
},
"red": {
"flag": {
"value": "#FF0000",
Expand Down
5 changes: 5 additions & 0 deletions tokens/global/color/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@
"value": "{color.grayscale.0.value}",
"type": "color",
"comment": "Global color: link light"
},
"visited": {
"value": "{color.purple.700.value}",
"type": "color",
"comment": "Global color: link visited"
}
},
"text": {
Expand Down