Skip to content

Commit

Permalink
mvoe avatar and avatarStack to component files (#1145)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann authored Dec 20, 2024
1 parent 06d64b0 commit 5100c76
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 119 deletions.
42 changes: 42 additions & 0 deletions src/tokens/component/avatar.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
avatar: {
bgColor: {
$value: '{base.color.neutral.0}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
group: 'component (internal)',
scopes: ['bgColor'],
},
'org.primer.overrides': {
dark: {
$value: '{base.color.neutral.13}',
alpha: 0.1,
},
},
},
},
borderColor: {
$value: '{borderColor.translucent}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
group: 'component (internal)',
scopes: ['borderColor'],
},
'org.primer.overrides': {
'dark-high-contrast': {
$value: '{base.color.neutral.13}',
alpha: 0.9,
},
'light-high-contrast': {
$value: '{base.color.neutral.13}',
alpha: 0.9,
},
},
},
},
},
}
30 changes: 30 additions & 0 deletions src/tokens/component/avatarStack.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
avatarStack: {
fade: {
bgColor: {
default: {
$value: '{base.color.neutral.7}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
group: 'component (internal)',
scopes: ['bgColor'],
},
},
},
muted: {
$value: '{base.color.neutral.5}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
group: 'component (internal)',
scopes: ['bgColor'],
},
},
},
},
},
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,6 @@
},
},
// patterns
avatar: {
borderColor: {
$value: '{base.color.neutral.13}',
$type: 'color',
alpha: 0.9,
},
},
counter: {
borderColor: {
$value: '{borderColor.default}',
Expand Down
53 changes: 0 additions & 53 deletions src/tokens/functional/color/dark/patterns-dark.json5
Original file line number Diff line number Diff line change
@@ -1,57 +1,4 @@
{
avatar: {
bgColor: {
$value: '{base.color.neutral.13}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
group: 'component (internal)',
scopes: ['bgColor'],
},
},
alpha: 0.1,
},
borderColor: {
$value: '{borderColor.translucent}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
group: 'component (internal)',
scopes: ['borderColor'],
},
},
},
},
avatarStack: {
fade: {
bgColor: {
default: {
$value: '{base.color.neutral.7}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
group: 'component (internal)',
scopes: ['bgColor'],
},
},
},
muted: {
$value: '{base.color.neutral.5}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
group: 'component (internal)',
scopes: ['bgColor'],
},
},
},
},
},
},
control: {
bgColor: {
rest: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,6 @@
},
},
// patterns
avatar: {
borderColor: {
$value: '{base.color.neutral.13}',
$type: 'color',
alpha: 0.9,
},
},
counter: {
borderColor: {
$value: '{borderColor.default}',
Expand Down
52 changes: 0 additions & 52 deletions src/tokens/functional/color/light/patterns-light.json5
Original file line number Diff line number Diff line change
@@ -1,56 +1,4 @@
{
avatar: {
bgColor: {
$value: '{base.color.neutral.0}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
group: 'component (internal)',
scopes: ['bgColor'],
},
},
},
borderColor: {
$value: '{borderColor.translucent}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
group: 'component (internal)',
scopes: ['borderColor'],
},
},
},
},
avatarStack: {
fade: {
bgColor: {
default: {
$value: '{base.color.neutral.7}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
group: 'component (internal)',
scopes: ['bgColor'],
},
},
},
muted: {
$value: '{base.color.neutral.5}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
group: 'component (internal)',
scopes: ['bgColor'],
},
},
},
},
},
},
control: {
bgColor: {
rest: {
Expand Down

0 comments on commit 5100c76

Please sign in to comment.