Skip to content

Commit

Permalink
Add borderColor-translucent (#969)
Browse files Browse the repository at this point in the history
* new border

* Create sweet-jeans-pretend.md

* add more dots to test

* remove temp story

* add to docs

* github-actions[bot] Regenerated snapshots

---------

Co-authored-by: langermank <langermank@users.noreply.github.com>
  • Loading branch information
langermank and langermank authored Jun 17, 2024
1 parent 31e827d commit 52d8bf7
Show file tree
Hide file tree
Showing 17 changed files with 44 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/sweet-jeans-pretend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/primitives": patch
---

Add `borderColor-translucent`
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.
1 change: 1 addition & 0 deletions docs/storybook/stories/Color/Functional/Border.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const borderColors = [
'borderColor-emphasis',
'borderColor-disabled',
'borderColor-transparent',
'borderColor-translucent',
]

export const Border = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
$type: 'color',
alpha: 1,
},
translucent: {
$value: '{base.color.neutral.5}',
$type: 'color',
alpha: 1,
},
neutral: {
muted: {
$value: '{base.color.neutral.4}',
Expand Down
3 changes: 1 addition & 2 deletions src/tokens/functional/color/dark/patterns-dark.json5
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
alpha: 0.1,
},
borderColor: {
$value: '{base.color.white}',
$value: '{borderColor.translucent}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand All @@ -24,7 +24,6 @@
scopes: ['borderColor'],
},
},
alpha: 0.15,
},
},
avatarStack: {
Expand Down
13 changes: 13 additions & 0 deletions src/tokens/functional/color/dark/primitives-dark.json5
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,19 @@
},
},
},
translucent: {
$value: '{base.color.white}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'dark',
group: 'component (internal)',
scopes: ['borderColor'],
},
},
alpha: 0.15,
},
neutral: {
muted: {
$value: '{base.color.neutral.4}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@
$type: 'color',
alpha: 1,
},
translucent: {
$value: '{base.color.neutral.8}',
$type: 'color',
alpha: 1,
},
neutral: {
muted: {
$value: '{base.color.neutral.4}',
Expand Down
3 changes: 1 addition & 2 deletions src/tokens/functional/color/light/patterns-light.json5
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
},
borderColor: {
$value: '{base.color.black}',
$value: '{borderColor.translucent}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand All @@ -23,7 +23,6 @@
scopes: ['borderColor'],
},
},
alpha: 0.15,
},
},
avatarStack: {
Expand Down
13 changes: 13 additions & 0 deletions src/tokens/functional/color/light/primitives-light.json5
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,19 @@
},
},
},
translucent: {
$value: '{base.color.black}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'light',
group: 'semantic',
scopes: ['borderColor'],
},
},
alpha: 0.15,
},
neutral: {
muted: {
$value: '{base.color.neutral.3}',
Expand Down

0 comments on commit 52d8bf7

Please sign in to comment.