Skip to content

Commit

Permalink
Merge pull request #472 from department-of-veterans-affairs/feature/4…
Browse files Browse the repository at this point in the history
…24-jessica-add-checkbox-tokens

[Feature] Add Checkbox tokens
  • Loading branch information
jessicawoodin authored Sep 10, 2024
2 parents 2ae18bf + 599a03f commit 6f4f4d3
Show file tree
Hide file tree
Showing 5 changed files with 155 additions and 1 deletion.
28 changes: 28 additions & 0 deletions packages/tokens/figma/dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,38 @@
"$value": "{vads-color-base-lightest}",
"$type": "color"
},
"vads-color-foreground-error-on-dark": {
"$value": "{uswds-system-color-red-vivid-40}",
"$type": "color"
},
"vads-color-foreground-inverse-on-dark": {
"$value": "{vads-color-base-darkest}",
"$type": "color"
},
"vads-color-foreground-subtle-on-dark": {
"$value": "{vads-color-base-light}",
"$type": "color"
},
"vads-color-forms-border-active-on-dark": {
"$value": "{uswds-system-color-blue-vivid-30}",
"$type": "color"
},
"vads-color-forms-border-default-on-dark": {
"$value": "{vads-color-base-light}",
"$type": "color"
},
"vads-color-forms-border-error-on-dark": {
"$value": "{uswds-system-color-red-vivid-40}",
"$type": "color"
},
"vads-color-forms-border-subtle-on-dark": {
"$value": "{vads-color-base-dark}",
"$type": "color"
},
"vads-color-forms-foreground-active-on-dark": {
"$value": "{uswds-system-color-blue-vivid-30}",
"$type": "color"
},
"vads-color-gibill-accent": {
"$value": "{uswds-system-color-gold-vivid-5}",
"$type": "color"
Expand Down
28 changes: 28 additions & 0 deletions packages/tokens/figma/light.json
Original file line number Diff line number Diff line change
Expand Up @@ -631,10 +631,38 @@
"$value": "{vads-color-base}",
"$type": "color"
},
"vads-color-foreground-error-on-light": {
"$value": "{vads-color-secondary-dark}",
"$type": "color"
},
"vads-color-foreground-inverse-on-light": {
"$value": "{vads-color-base-lightest}",
"$type": "color"
},
"vads-color-foreground-subtle-on-light": {
"$value": "{vads-color-base-dark}",
"$type": "color"
},
"vads-color-forms-border-active-on-light": {
"$value": "{vads-color-primary}",
"$type": "color"
},
"vads-color-forms-border-default-on-light": {
"$value": "{vads-color-base-dark}",
"$type": "color"
},
"vads-color-forms-border-error-on-light": {
"$value": "{vads-color-secondary-dark}",
"$type": "color"
},
"vads-color-forms-border-subtle-on-light": {
"$value": "{vads-color-base-light}",
"$type": "color"
},
"vads-color-forms-foreground-active-on-light": {
"$value": "{vads-color-primary}",
"$type": "color"
},
"vads-color-gibill-accent": {
"$value": "{uswds-system-color-gold-vivid-5}",
"$type": "color"
Expand Down
2 changes: 1 addition & 1 deletion packages/tokens/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@department-of-veterans-affairs/mobile-tokens",
"version": "0.14.0",
"version": "0.14.1-alpha.2",
"description": "VA Design System Mobile Token Library",
"main": "dist/js/index.js",
"types": "dist/index.d.ts",
Expand Down
49 changes: 49 additions & 0 deletions packages/tokens/src/tokens/color/semantic-dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@
"category": "color"
}
},
"vads-color-foreground-subtle-on-dark": {
"name": "vads-color-foreground-subtle-on-dark",
"value": "{vads-color-base-light.*.value}",
"attributes": {
"category": "color"
}
},
"vads-color-foreground-error-on-dark": {
"name": "vads-color-foreground-error-on-dark",
"value": "{uswds-system-color-red-vivid-40}",
"attributes": {
"category": "color"
}
},
"vads-color-surface-secondary-on-dark": {
"name": "vads-color-surface-secondary-on-dark",
"value": "{vads-color-base-darker.*.value}",
Expand Down Expand Up @@ -145,5 +159,40 @@
"attributes": {
"category": "color"
}
},
"vads-color-forms-border-default-on-dark": {
"name": "vads-color-forms-border-default-on-dark",
"value": "{vads-color-base-light.*.value}",
"attributes": {
"category": "color"
}
},
"vads-color-forms-border-error-on-dark": {
"name": "vads-color-forms-border-error-on-dark",
"value": "{uswds-system-color-red-vivid-40}",
"attributes": {
"category": "color"
}
},
"vads-color-forms-border-subtle-on-dark": {
"name": "vads-color-forms-border-subtle-on-dark",
"value": "{vads-color-base-dark.*.value}",
"attributes": {
"category": "color"
}
},
"vads-color-forms-border-active-on-dark": {
"name": "vads-color-forms-border-active-on-dark",
"value": "{uswds-system-color-blue-vivid-30}",
"attributes": {
"category": "color"
}
},
"vads-color-forms-foreground-active-on-dark": {
"name": "vads-color-forms-foreground-active-on-dark",
"value": "{uswds-system-color-blue-vivid-30}",
"attributes": {
"category": "color"
}
}
}
49 changes: 49 additions & 0 deletions packages/tokens/src/tokens/color/semantic-light.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@
"category": "color"
}
},
"vads-color-foreground-subtle-on-light": {
"name": "vads-color-foreground-subtle-on-light",
"value": "{vads-color-base-dark.*.value}",
"attributes": {
"category": "color"
}
},
"vads-color-foreground-error-on-light": {
"name": "vads-color-foreground-error-on-light",
"value": "{vads-color-secondary-dark.*.value}",
"attributes": {
"category": "color"
}
},
"vads-color-surface-secondary-on-light": {
"name": "vads-color-surface-secondary-on-light",
"value": "{vads-color-base-lighter.*.value}",
Expand Down Expand Up @@ -201,5 +215,40 @@
"attributes": {
"category": "color"
}
},
"vads-color-forms-border-default-on-light": {
"name": "vads-color-forms-border-default-on-light",
"value": "{vads-color-base-dark.*.value}",
"attributes": {
"category": "color"
}
},
"vads-color-forms-border-error-on-light": {
"name": "vads-color-forms-border-error-on-light",
"value": "{vads-color-secondary-dark.*.value}",
"attributes": {
"category": "color"
}
},
"vads-color-forms-border-subtle-on-light": {
"name": "vads-color-forms-border-subtle-on-light",
"value": "{vads-color-base-light.*.value}",
"attributes": {
"category": "color"
}
},
"vads-color-forms-border-active-on-light": {
"name": "vads-color-forms-border-active-on-light",
"value": "{vads-color-primary.*.value}",
"attributes": {
"category": "color"
}
},
"vads-color-forms-foreground-active-on-light": {
"name": "vads-color-forms-foreground-active-on-light",
"value": "{vads-color-primary.*.value}",
"attributes": {
"category": "color"
}
}
}

0 comments on commit 6f4f4d3

Please sign in to comment.