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 and langermank committed Jun 21, 2024
1 parent be58e8c commit 73e7b61
Show file tree
Hide file tree
Showing 10 changed files with 310 additions and 389 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: '{fgColor.muted}',
$type: 'color',
},
$value: '{fgColor.muted}',
$type: 'color',
},
},
bgColor: {
Expand Down
24 changes: 8 additions & 16 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: '{fgColor.muted}',
$type: 'color',
},
$value: '{fgColor.muted}',
$type: 'color',
},
},
bgColor: {
Expand Down
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 @@ -365,7 +365,7 @@
danger: {
fgColor: {
rest: {
$value: '{fgColor.danger.@}',
$value: '{fgColor.danger}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand Down Expand Up @@ -1046,7 +1046,7 @@
invisible: {
fgColor: {
rest: {
$value: '{fgColor.accent.@}',
$value: '{fgColor.accent}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand Down Expand Up @@ -1248,7 +1248,7 @@
},
},
disabled: {
$value: '{fgColor.accent.@}',
$value: '{fgColor.accent}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand Down Expand Up @@ -1341,7 +1341,7 @@
danger: {
fgColor: {
rest: {
$value: '{fgColor.danger.@}',
$value: '{fgColor.danger}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand Down Expand Up @@ -1377,7 +1377,7 @@
},
},
disabled: {
$value: '{fgColor.danger.@}',
$value: '{fgColor.danger}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand All @@ -1392,7 +1392,7 @@
},
iconColor: {
rest: {
$value: '{fgColor.danger.@}',
$value: '{fgColor.danger}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand Down Expand Up @@ -1669,7 +1669,7 @@
},
},
disabled: {
$value: '{fgColor.accent.@}',
$value: '{fgColor.accent}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand Down Expand Up @@ -1727,7 +1727,7 @@
},
fgColor: {
rest: {
$value: '{fgColor.danger.@}',
$value: '{fgColor.danger}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand All @@ -1751,7 +1751,7 @@
},
},
disabled: {
$value: '{fgColor.danger.@}',
$value: '{fgColor.danger}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand Down Expand Up @@ -1802,7 +1802,7 @@
},
fgColor: {
rest: {
$value: '{fgColor.link.@}',
$value: '{fgColor.link}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand Down
Loading

0 comments on commit 73e7b61

Please sign in to comment.