Skip to content

Commit

Permalink
rm @ where it does not effect output (#977)
Browse files Browse the repository at this point in the history
* rm @ where it does not effect output

* reset

* fix fgColor-accent
  • Loading branch information
lukasoppermann authored Jun 21, 2024
1 parent 6fd3f32 commit 86a263b
Show file tree
Hide file tree
Showing 10 changed files with 311 additions and 390 deletions.
5 changes: 5 additions & 0 deletions .changeset/gold-owls-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/primitives': patch
---

rm @ where it does not effect output
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,20 @@
{
fgColor: {
success: {
'@': {
$value: '{base.color.blue.3}',
$type: 'color',
},
$value: '{base.color.blue.3}',
$type: 'color',
},
danger: {
'@': {
$value: '{base.color.orange.4}',
$type: 'color',
},
$value: '{base.color.orange.4}',
$type: 'color',
},
open: {
'@': {
$value: '{base.color.orange.3}',
$type: 'color',
},
$value: '{base.color.orange.3}',
$type: 'color',
},
closed: {
'@': {
$value: '{base.color.neutral.3}',
$type: 'color',
},
$value: '{base.color.neutral.3}',
$type: 'color',
},
},
bgColor: {
Expand Down
26 changes: 9 additions & 17 deletions src/tokens/functional/color/dark/overrides/dark.tritanopia.json5
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,20 @@
{
fgColor: {
success: {
'@': {
$value: '{base.color.blue.3}',
$type: 'color',
},
$value: '{base.color.blue.3}',
$type: 'color',
},
severe: {
'@': {
$value: '{base.color.red.4}',
$type: 'color',
},
$value: '{base.color.red.4}',
$type: 'color',
},
open: {
'@': {
$value: '{base.color.red.4}',
$type: 'color',
},
$value: '{base.color.red.4}',
$type: 'color',
},
closed: {
'@': {
$value: '{base.color.neutral.4}',
$type: 'color',
},
$value: '{base.color.neutral.4}',
$type: 'color',
},
},
bgColor: {
Expand Down Expand Up @@ -224,6 +216,6 @@
},
},
},
}
},
},
}
20 changes: 10 additions & 10 deletions src/tokens/functional/color/dark/patterns-dark.json5
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@
danger: {
fgColor: {
rest: {
$value: '{fgColor.danger.@}',
$value: '{fgColor.danger}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand Down Expand Up @@ -1070,7 +1070,7 @@
invisible: {
fgColor: {
rest: {
$value: '{fgColor.accent.@}',
$value: '{fgColor.accent}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand Down Expand Up @@ -1272,7 +1272,7 @@
},
},
disabled: {
$value: '{fgColor.accent.@}',
$value: '{fgColor.accent}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand Down Expand Up @@ -1366,7 +1366,7 @@
danger: {
fgColor: {
rest: {
$value: '{fgColor.danger.@}',
$value: '{fgColor.danger}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand Down Expand Up @@ -1402,7 +1402,7 @@
},
},
disabled: {
$value: '{fgColor.danger.@}',
$value: '{fgColor.danger}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand All @@ -1417,7 +1417,7 @@
},
iconColor: {
rest: {
$value: '{fgColor.danger.@}',
$value: '{fgColor.danger}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand Down Expand Up @@ -1695,7 +1695,7 @@
},
},
disabled: {
$value: '{fgColor.accent.@}',
$value: '{fgColor.accent}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand Down Expand Up @@ -1753,7 +1753,7 @@
},
fgColor: {
rest: {
$value: '{fgColor.danger.@}',
$value: '{fgColor.danger}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand All @@ -1777,7 +1777,7 @@
},
},
disabled: {
$value: '{fgColor.danger.@}',
$value: '{fgColor.danger}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand Down Expand Up @@ -1828,7 +1828,7 @@
},
fgColor: {
rest: {
$value: '{fgColor.link.@}',
$value: '{fgColor.link}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand Down
Loading

0 comments on commit 86a263b

Please sign in to comment.