Skip to content

Commit

Permalink
co-locate avatar shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Feb 6, 2025
1 parent fa5426c commit b42c1bb
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 35 deletions.
33 changes: 33 additions & 0 deletions src/tokens/component/avatar.json5
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,38 @@
},
},
},
shadow: {
$value: [
{
color: '{base.color.neutral.0}',
alpha: 0.8,
offsetX: '0px',
offsetY: '0px',
blur: '0px',
spread: '2px',
},
],
$type: 'shadow',
$extensions: {
'org.primer.figma': {
collection: 'mode',
group: 'component shadow',
},
'org.primer.overrides': {
dark: {
$value: [
{
color: '{base.color.neutral.1}',
alpha: 1,
offsetX: '0px',
offsetY: '0px',
blur: '0px',
spread: '2px',
},
],
},
},
},
},
},
}
35 changes: 0 additions & 35 deletions src/tokens/functional/shadow/shadow.json5
Original file line number Diff line number Diff line change
@@ -1,39 +1,4 @@
{
avatar: {
shadow: {
$value: [
{
color: '{base.color.neutral.0}',
alpha: 0.8,
offsetX: '0px',
offsetY: '0px',
blur: '0px',
spread: '2px',
},
],
$type: 'shadow',
$extensions: {
'org.primer.figma': {
collection: 'mode',
group: 'component shadow',
},
'org.primer.overrides': {
dark: {
$value: [
{
color: '{base.color.neutral.1}',
alpha: 1,
offsetX: '0px',
offsetY: '0px',
blur: '0px',
spread: '2px',
},
],
},
},
},
},
},
button: {
default: {
shadow: {
Expand Down

0 comments on commit b42c1bb

Please sign in to comment.