Skip to content

Commit

Permalink
Neutral bug fixes (#1026)
Browse files Browse the repository at this point in the history
* add counter bg colors

* dark hc

* dark hc

* neutral muted

* test

* try no alpha

* github-actions[bot] Regenerated snapshots

* fix invisible counter

* Create quiet-wombats-punch.md

* remove code comments

* github-actions[bot] Regenerated snapshots

---------

Co-authored-by: langermank <langermank@users.noreply.github.com>
  • Loading branch information
langermank and langermank authored Aug 14, 2024
1 parent 9ab8102 commit 401fef1
Show file tree
Hide file tree
Showing 27 changed files with 135 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .changeset/quiet-wombats-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@primer/primitives": major
---

- Update counter bg styles
- Contrast fixes
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.
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,23 @@
$type: 'color',
},
neutral: {
$value: '{base.color.neutral.10}',
$value: '{base.color.neutral.11}',
$type: 'color',
},
accent: {
$value: '{base.color.blue.3}',
$type: 'color',
mix: {
color: '{base.color.blue.2}',
weight: 0.05,
weight: 0.08,
},
},
success: {
$value: '{base.color.green.3}',
$type: 'color',
mix: {
color: '{base.color.green.2}',
weight: 0.08,
},
},
danger: {
Expand All @@ -40,10 +48,18 @@
done: {
$value: '{base.color.purple.3}',
$type: 'color',
mix: {
color: '{base.color.purple.2}',
weight: 0.5,
},
},
sponsors: {
$value: '{base.color.pink.3}',
$type: 'color',
mix: {
color: '{base.color.pink.2}',
weight: 0.08,
},
},
},
bgColor: {
Expand All @@ -68,6 +84,11 @@
$value: '{base.color.neutral.7}',
$type: 'color',
},
muted: {
$value: '{base.color.neutral.3}',
$type: 'color',
alpha: 1,
},
},
accent: {
emphasis: {
Expand Down Expand Up @@ -226,6 +247,21 @@
$value: '{borderColor.default}',
$type: 'color',
},
bgColor: {
muted: {
$value: '{bgColor.neutral.muted}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'dark',
group: 'component',
scopes: ['bgColor'],
},
},
alpha: 1,
},
},
},
control: {
fgColor: {
Expand Down
27 changes: 26 additions & 1 deletion src/tokens/functional/color/dark/patterns-dark.json5
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,32 @@
},
},
},
bgColor: {
muted: {
$value: '{bgColor.neutral.muted}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'dark',
group: 'component',
scopes: ['bgColor'],
},
},
},
emphasis: {
$value: '{bgColor.neutral.emphasis}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'dark',
group: 'component',
scopes: ['bgColor'],
},
},
}
},
},
button: {
default: {
Expand Down Expand Up @@ -1572,7 +1598,6 @@
scopes: ['bgColor'],
},
},
alpha: 1,
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions src/tokens/functional/color/dark/primitives-dark.json5
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@
},
neutral: {
muted: {
$value: '{base.color.neutral.6}',
$value: '{base.color.neutral.8}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand All @@ -412,7 +412,7 @@
scopes: ['bgColor'],
},
},
alpha: 0.7,
alpha: 0.2,
},
emphasis: {
$value: '{base.color.neutral.8}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
$type: 'color',
},
neutral: {
$value: '{base.color.neutral.10}',
$value: '{base.color.neutral.11}',
$type: 'color',
},
success: {
Expand Down Expand Up @@ -64,6 +64,11 @@
$value: '{base.color.neutral.10}',
$type: 'color',
},
muted: {
$value: '{base.color.neutral.4}',
$type: 'color',
alpha: 1,
},
},
disabled: {
$value: '{base.color.neutral.4}',
Expand Down Expand Up @@ -205,6 +210,21 @@
$value: '{borderColor.default}',
$type: 'color',
},
bgColor: {
muted: {
$value: '{bgColor.neutral.muted}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'light',
group: 'component',
scopes: ['bgColor'],
},
},
alpha: 1,
},
},
},
control: {
fgColor: {
Expand Down Expand Up @@ -364,6 +384,20 @@
$type: 'color',
},
},
invisible: {
fgColor: {
hover: {
$value: '{base.color.neutral.11}',
$type: 'color',
},
},
iconColor: {
hover: {
$value: '{base.color.neutral.11}',
$type: 'color',
},
}
}
},
buttonCounter: {
default: {
Expand Down
26 changes: 26 additions & 0 deletions src/tokens/functional/color/light/patterns-light.json5
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,32 @@
},
},
},
bgColor: {
muted: {
$value: '{bgColor.neutral.muted}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'light',
group: 'component',
scopes: ['bgColor'],
},
},
},
emphasis: {
$value: '{bgColor.neutral.emphasis}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'light',
group: 'component',
scopes: ['bgColor'],
},
},
}
},
},
button: {
default: {
Expand Down
4 changes: 2 additions & 2 deletions src/tokens/functional/color/light/primitives-light.json5
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@
},
neutral: {
muted: {
$value: '{base.color.neutral.4}',
$value: '{base.color.neutral.8}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand All @@ -411,7 +411,7 @@
scopes: ['bgColor'],
},
},
alpha: 0.7,
alpha: 0.12,
},
emphasis: {
$value: '{base.color.neutral.9}',
Expand Down

0 comments on commit 401fef1

Please sign in to comment.