Skip to content

Commit

Permalink
feat: group surface status colors with other surface tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
marionnegp committed Dec 13, 2023
1 parent ae07d11 commit 46e3bf1
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 42 deletions.
42 changes: 0 additions & 42 deletions tokens/color/status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ color:
on-dark:
$value: '{color.red-orange.40}'
$description: Danger accent color (dark theme)
surface:
on-light:
$value: '{color.red-orange.10}'
$description: Danger surface color (light theme)
on-dark:
$value: '{color.red-orange.70}'
$description: Danger surface color (dark theme)

warning:
on-light:
Expand All @@ -26,13 +19,6 @@ color:
on-dark:
$value: '{color.orange.40}'
$description: Warning accent color (dark theme)
surface:
on-light:
$value: '{color.orange.10}'
$description: Warning surface color (light theme)
on-dark:
$value: '{color.orange.70}'
$description: Warning surface color (dark theme)

caution:
on-light:
Expand All @@ -41,13 +27,6 @@ color:
on-dark:
$value: '{color.yellow.30}'
$description: Caution accent color (dark theme)
surface:
on-light:
$value: '{color.yellow.10}'
$description: Caution surface color (light theme)
on-dark:
$value: '{color.yellow.70}'
$description: Caution surface color (dark theme)

neutral:
on-light:
Expand All @@ -56,13 +35,6 @@ color:
on-dark:
$value: '{color.gray.40}'
$description: Neutral accent color (dark theme)
surface:
on-light:
$value: '{color.gray.10}'
$description: Neutral surface color (light theme)
on-dark:
$value: '{color.gray.80}'
$description: Neutral surface color (dark theme)

note:
on-light:
Expand All @@ -71,13 +43,6 @@ color:
on-dark:
$value: '{color.purple.30}'
$description: Note accent color (dark theme)
surface:
on-light:
$value: '{color.purple.10}'
$description: Note surface color (light theme)
on-dark:
$value: '{color.purple.60}'
$description: Note surface color (dark theme)

success:
on-light:
Expand All @@ -86,10 +51,3 @@ color:
on-dark:
$value: '{color.green.40}'
$description: Success accent color (dark theme)
surface:
on-light:
$value: '{color.green.10}'
$description: Success surface color (light theme)
on-dark:
$value: '{color.green.70}'
$description: Success surface color (dark theme)
43 changes: 43 additions & 0 deletions tokens/color/surface.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,46 @@ color:
darkest:
$value: '{color.gray.95}'
$description: Primary surface (dark theme)

danger:
on-light:
$value: '{color.red-orange.10}'
$description: Danger surface color (light theme)
on-dark:
$value: '{color.red-orange.70}'
$description: Danger surface color (dark theme)
warning:
on-light:
$value: '{color.orange.10}'
$description: Warning surface color (light theme)
on-dark:
$value: '{color.orange.70}'
$description: Warning surface color (dark theme)
caution:
on-light:
$value: '{color.yellow.10}'
$description: Caution surface color (light theme)
on-dark:
$value: '{color.yellow.70}'
$description: Caution surface color (dark theme)
neutral:
on-light:
$value: '{color.gray.10}'
$description: Neutral surface color (light theme)
on-dark:
$value: '{color.gray.80}'
$description: Neutral surface color (dark theme)
note:
on-light:
$value: '{color.purple.10}'
$description: Note surface color (light theme)
on-dark:
$value: '{color.purple.60}'
$description: Note surface color (dark theme)
success:
on-light:
$value: '{color.green.10}'
$description: Success surface color (light theme)
on-dark:
$value: '{color.green.70}'
$description: Success surface color (dark theme)

0 comments on commit 46e3bf1

Please sign in to comment.