Skip to content

Commit

Permalink
Replaces --data-[colorName]-color with `--data-[colorName]-color-em…
Browse files Browse the repository at this point in the history
…phasis` (#968)

* update naming to reduce nesting in Figma

* add fallback

* github-actions[bot] Regenerated snapshots

---------

Co-authored-by: lukasoppermann <lukasoppermann@users.noreply.github.com>
Co-authored-by: Katie Langerman <18661030+langermank@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 31, 2024
1 parent 13f62d5 commit d845fdf
Show file tree
Hide file tree
Showing 85 changed files with 36 additions and 21 deletions.
5 changes: 5 additions & 0 deletions .changeset/swift-apricots-cough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/primitives': major
---

Rename data-[colorName]-color to data-[colorName]-color-emphasis
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified blob-report/report.zip
Binary file not shown.
12 changes: 11 additions & 1 deletion src/tokens/fallback/color-fallbacks.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,5 +256,15 @@
"--shadow-floating-xlarge": "var(--color-shadow-extra-large)",
"--shadow-inset": "var(--color-primer-shadow-inset)",
"--borderColor-transparent": "transparent",
"--bgColor-transparent": "transparent"
"--bgColor-transparent": "transparent",
"--data-blue-color": "var(--data-blue-color-emphasis)",
"--data-auburn-color": "var(--data-auburn-color-emphasis)",
"--data-orange-color": "var(--data-orange-color-emphasis)",
"--data-yellow-color": "var(--data-yellow-color-emphasis)",
"--data-green-color": "var(--data-green-color-emphasis)",
"--data-teal-color": "var(--data-teal-color-emphasis)",
"--data-purple-color": "var(--data-purple-color-emphasis)",
"--data-pink-color": "var(--data-pink-color-emphasis)",
"--data-red-color": "var(--data-red-color-emphasis)",
"--data-gray-color": "var(--data-gray-color-emphasis)"
}
20 changes: 10 additions & 10 deletions src/tokens/functional/color/dark/data-vis-dark.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
data: {
blue: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.blue.5}',
$type: 'color',
$extensions: {
Expand Down Expand Up @@ -30,7 +30,7 @@
},
auburn: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.auburn.5}',
$type: 'color',
$extensions: {
Expand Down Expand Up @@ -58,7 +58,7 @@
},
orange: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.orange.4}',
$type: 'color',
$extensions: {
Expand Down Expand Up @@ -86,7 +86,7 @@
},
yellow: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.yellow.4}',
$type: 'color',
$extensions: {
Expand Down Expand Up @@ -114,7 +114,7 @@
},
green: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.green.4}',
$type: 'color',
$extensions: {
Expand Down Expand Up @@ -142,7 +142,7 @@
},
teal: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.teal.4}',
$type: 'color',
$extensions: {
Expand Down Expand Up @@ -170,7 +170,7 @@
},
purple: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.purple.5}',
$type: 'color',
$extensions: {
Expand Down Expand Up @@ -198,7 +198,7 @@
},
pink: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.pink.5}',
$type: 'color',
$extensions: {
Expand Down Expand Up @@ -226,7 +226,7 @@
},
red: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.red.5}',
$type: 'color',
$extensions: {
Expand Down Expand Up @@ -254,7 +254,7 @@
},
gray: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.gray.4}',
$type: 'color',
$extensions: {
Expand Down
20 changes: 10 additions & 10 deletions src/tokens/functional/color/light/data-vis-light.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
data: {
blue: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.blue.5}',
$type: 'color',
$extensions: {
Expand Down Expand Up @@ -30,7 +30,7 @@
},
auburn: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.auburn.5}',
$type: 'color',
$extensions: {
Expand Down Expand Up @@ -58,7 +58,7 @@
},
orange: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.orange.4}',
$type: 'color',
$extensions: {
Expand Down Expand Up @@ -86,7 +86,7 @@
},
yellow: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.yellow.4}',
$type: 'color',
$extensions: {
Expand Down Expand Up @@ -114,7 +114,7 @@
},
green: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.green.4}',
$type: 'color',
$extensions: {
Expand Down Expand Up @@ -142,7 +142,7 @@
},
teal: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.teal.4}',
$type: 'color',
$extensions: {
Expand Down Expand Up @@ -170,7 +170,7 @@
},
purple: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.purple.5}',
$type: 'color',
$extensions: {
Expand Down Expand Up @@ -198,7 +198,7 @@
},
pink: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.pink.5}',
$type: 'color',
$extensions: {
Expand Down Expand Up @@ -226,7 +226,7 @@
},
red: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.red.5}',
$type: 'color',
$extensions: {
Expand Down Expand Up @@ -254,7 +254,7 @@
},
gray: {
color: {
'@': {
'emphasis': {
$value: '{base.display.color.gray.4}',
$type: 'color',
$extensions: {
Expand Down

0 comments on commit d845fdf

Please sign in to comment.