Skip to content

Commit

Permalink
fix: update link tokens (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
daine authored Nov 2, 2023
1 parent 2afddba commit 3649eb8
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 43 deletions.
38 changes: 21 additions & 17 deletions build/figma/figma.tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,24 @@
"type": "color"
},
"font": {
"value": {
"fontFamily": "\"Noto Sans\", sans-serif",
"fontWeight": "400",
"lineHeight": "120%",
"fontSize": "1.25rem"
"small": {
"value": {
"fontFamily": "\"Noto Sans\", sans-serif",
"fontWeight": "400",
"lineHeight": "135%",
"fontSize": "1.1111111111111112rem"
},
"type": "typography"
},
"type": "typography"
"regular": {
"value": {
"fontFamily": "\"Noto Sans\", sans-serif",
"fontWeight": "400",
"lineHeight": "120%",
"fontSize": "1.25rem"
},
"type": "typography"
}
},
"focus": {
"background": {
Expand All @@ -247,18 +258,11 @@
"color": {
"value": "#0535d2",
"type": "color"
}
}
},
"small": {
"font": {
"value": {
"fontFamily": "\"Noto Sans\", sans-serif",
"fontWeight": "400",
"lineHeight": "135%",
"fontSize": "1.1111111111111112rem"
},
"type": "typography"
"radius": {
"value": "0.1875rem",
"type": "borderRadius"
}
}
},
"decoration": {
Expand Down
7 changes: 4 additions & 3 deletions build/web/css/.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 31 Oct 2023 16:19:46 GMT
* Generated on Wed, 01 Nov 2023 23:33:43 GMT
*/

:root {
Expand Down Expand Up @@ -51,13 +51,14 @@
--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-font: 400 1.25rem/120% "Noto Sans", sans-serif;
--gcds-link-font-small: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
--gcds-link-font-regular: 400 1.25rem/120% "Noto Sans", sans-serif;
--gcds-link-focus-background: #0535d2;
--gcds-link-focus-outline-width: 0.1875rem;
--gcds-link-focus-outline-offset: 0.125rem;
--gcds-link-focus-text: #ffffff;
--gcds-link-focus-border-color: #0535d2;
--gcds-link-small-font: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
--gcds-link-focus-border-radius: 0.1875rem;
--gcds-link-decoration-thickness: 0.0625rem;
--gcds-link-underline-offset: 0.25rem;
--gcds-text-light: #ffffff; /* Global color: text light */
Expand Down
7 changes: 4 additions & 3 deletions build/web/css/components.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
/**
* Do not edit directly
* Generated on Tue, 31 Oct 2023 16:19:46 GMT
* Generated on Wed, 01 Nov 2023 23:33:43 GMT
*/

:root {
--gcds-link-font: 400 1.25rem/120% "Noto Sans", sans-serif;
--gcds-link-font-small: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
--gcds-link-font-regular: 400 1.25rem/120% "Noto Sans", sans-serif;
--gcds-link-focus-background: #0535d2;
--gcds-link-focus-outline-width: 0.1875rem;
--gcds-link-focus-outline-offset: 0.125rem;
--gcds-link-focus-text: #ffffff;
--gcds-link-focus-border-color: #0535d2;
--gcds-link-small-font: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
--gcds-link-focus-border-radius: 0.1875rem;
--gcds-link-decoration-thickness: 0.0625rem;
--gcds-link-underline-offset: 0.25rem;
--gcds-text-character-limit: 65ch;
Expand Down
7 changes: 4 additions & 3 deletions build/web/css/components/link.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
/**
* Do not edit directly
* Generated on Tue, 31 Oct 2023 16:19:46 GMT
* Generated on Wed, 01 Nov 2023 23:33:43 GMT
*/

:root {
--gcds-link-font: 400 1.25rem/120% "Noto Sans", sans-serif;
--gcds-link-font-small: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
--gcds-link-font-regular: 400 1.25rem/120% "Noto Sans", sans-serif;
--gcds-link-focus-background: #0535d2;
--gcds-link-focus-outline-width: 0.1875rem;
--gcds-link-focus-outline-offset: 0.125rem;
--gcds-link-focus-text: #ffffff;
--gcds-link-focus-border-color: #0535d2;
--gcds-link-small-font: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
--gcds-link-focus-border-radius: 0.1875rem;
--gcds-link-decoration-thickness: 0.0625rem;
--gcds-link-underline-offset: 0.25rem;
}
7 changes: 4 additions & 3 deletions build/web/css/tokens.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 31 Oct 2023 16:19:46 GMT
* Generated on Wed, 01 Nov 2023 23:33:43 GMT
*/

:root {
Expand Down Expand Up @@ -51,13 +51,14 @@
--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-font: 400 1.25rem/120% "Noto Sans", sans-serif;
--gcds-link-font-small: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
--gcds-link-font-regular: 400 1.25rem/120% "Noto Sans", sans-serif;
--gcds-link-focus-background: #0535d2;
--gcds-link-focus-outline-width: 0.1875rem;
--gcds-link-focus-outline-offset: 0.125rem;
--gcds-link-focus-text: #ffffff;
--gcds-link-focus-border-color: #0535d2;
--gcds-link-small-font: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
--gcds-link-focus-border-radius: 0.1875rem;
--gcds-link-decoration-thickness: 0.0625rem;
--gcds-link-underline-offset: 0.25rem;
--gcds-text-light: #ffffff; /* Global color: text light */
Expand Down
7 changes: 4 additions & 3 deletions build/web/scss/.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

// Do not edit directly
// Generated on Tue, 31 Oct 2023 16:19:46 GMT
// Generated on Wed, 01 Nov 2023 23:33:43 GMT

$gcds-color-blue-100: #d7e5f5;
$gcds-color-blue-500: #6584a6; // Must contrast 3:1 with white
Expand Down Expand Up @@ -49,13 +49,14 @@ $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-font: 400 1.25rem/120% "Noto Sans", sans-serif;
$gcds-link-font-small: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
$gcds-link-font-regular: 400 1.25rem/120% "Noto Sans", sans-serif;
$gcds-link-focus-background: #0535d2;
$gcds-link-focus-outline-width: 0.1875rem;
$gcds-link-focus-outline-offset: 0.125rem;
$gcds-link-focus-text: #ffffff;
$gcds-link-focus-border-color: #0535d2;
$gcds-link-small-font: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
$gcds-link-focus-border-radius: 0.1875rem;
$gcds-link-decoration-thickness: 0.0625rem;
$gcds-link-underline-offset: 0.25rem;
$gcds-text-light: #ffffff; // Global color: text light
Expand Down
7 changes: 4 additions & 3 deletions build/web/scss/components.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@

// Do not edit directly
// Generated on Tue, 31 Oct 2023 16:19:45 GMT
// Generated on Wed, 01 Nov 2023 23:33:43 GMT

$gcds-link-font: 400 1.25rem/120% "Noto Sans", sans-serif;
$gcds-link-font-small: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
$gcds-link-font-regular: 400 1.25rem/120% "Noto Sans", sans-serif;
$gcds-link-focus-background: #0535d2;
$gcds-link-focus-outline-width: 0.1875rem;
$gcds-link-focus-outline-offset: 0.125rem;
$gcds-link-focus-text: #ffffff;
$gcds-link-focus-border-color: #0535d2;
$gcds-link-small-font: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
$gcds-link-focus-border-radius: 0.1875rem;
$gcds-link-decoration-thickness: 0.0625rem;
$gcds-link-underline-offset: 0.25rem;
$gcds-text-character-limit: 65ch;
Expand Down
7 changes: 4 additions & 3 deletions build/web/scss/components/link.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@

// Do not edit directly
// Generated on Tue, 31 Oct 2023 16:19:45 GMT
// Generated on Wed, 01 Nov 2023 23:33:43 GMT

$gcds-link-font: 400 1.25rem/120% "Noto Sans", sans-serif;
$gcds-link-font-small: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
$gcds-link-font-regular: 400 1.25rem/120% "Noto Sans", sans-serif;
$gcds-link-focus-background: #0535d2;
$gcds-link-focus-outline-width: 0.1875rem;
$gcds-link-focus-outline-offset: 0.125rem;
$gcds-link-focus-text: #ffffff;
$gcds-link-focus-border-color: #0535d2;
$gcds-link-small-font: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
$gcds-link-focus-border-radius: 0.1875rem;
$gcds-link-decoration-thickness: 0.0625rem;
$gcds-link-underline-offset: 0.25rem;
7 changes: 4 additions & 3 deletions build/web/scss/tokens.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

// Do not edit directly
// Generated on Tue, 31 Oct 2023 16:19:45 GMT
// Generated on Wed, 01 Nov 2023 23:33:42 GMT

$gcds-color-blue-100: #d7e5f5;
$gcds-color-blue-500: #6584a6; // Must contrast 3:1 with white
Expand Down Expand Up @@ -49,13 +49,14 @@ $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-font: 400 1.25rem/120% "Noto Sans", sans-serif;
$gcds-link-font-small: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
$gcds-link-font-regular: 400 1.25rem/120% "Noto Sans", sans-serif;
$gcds-link-focus-background: #0535d2;
$gcds-link-focus-outline-width: 0.1875rem;
$gcds-link-focus-outline-offset: 0.125rem;
$gcds-link-focus-text: #ffffff;
$gcds-link-focus-border-color: #0535d2;
$gcds-link-small-font: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
$gcds-link-focus-border-radius: 0.1875rem;
$gcds-link-decoration-thickness: 0.0625rem;
$gcds-link-underline-offset: 0.25rem;
$gcds-text-light: #ffffff; // Global color: text light
Expand Down
17 changes: 15 additions & 2 deletions tokens/components/link/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,31 @@
"color": {
"value": "{focus.background.value}",
"type": "color"
},
"radius": {
"value": "{border.radius.sm.value}",
"type": "borderRadius"
}
}
},
"small": {
"font": {
"font": {
"small": {
"value": {
"fontFamily": "{fontFamilies.body}",
"fontWeight": "{fontWeights.regular}",
"lineHeight": "{lineHeights.caption}",
"fontSize": "{fontSizes.caption}"
},
"type": "typography"
},
"regular": {
"value": {
"fontFamily": "{fontFamilies.body}",
"fontWeight": "{fontWeights.regular}",
"lineHeight": "{lineHeights.text}",
"fontSize": "{fontSizes.text}"
},
"type": "typography"
}
},
"decoration": {
Expand Down

0 comments on commit 3649eb8

Please sign in to comment.