Skip to content

Commit

Permalink
adding a headerSearch into component file
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Nov 25, 2024
1 parent 6c46b74 commit faa6456
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 53 deletions.
2 changes: 1 addition & 1 deletion scripts/buildTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const getStyleDictionaryConfig: StyleDictionaryConfigGenerator = (
docJson: docJson(`docs/${filename}.json`, options.prefix, options.buildPath, {
theme: options.theme,
}),
styleLint: styleLint(`styleLint/${filename}.json`, options.prefix, options.buildPath{
styleLint: styleLint(`styleLint/${filename}.json`, options.prefix, options.buildPath, {
theme: options.theme,
}),
fallbacks: fallbacks(`fallbacks/${filename}.json`, options.prefix, options.buildPath),
Expand Down
36 changes: 36 additions & 0 deletions src/tokens/functional/color/components/header.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
headerSearch: {
bgColor: {
$value: '{base.color.neutral.13}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'light',
group: 'component',
scopes: ['bgColor'],
},
'org.primer.theme': {
light: '{base.color.neutral.13}',
dark: '{base.color.neutral.10}',
},
},
},
borderColor: {
$value: '{base.color.neutral.10}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'light',
group: 'component',
scopes: ['borderColor'],
},
'org.primer.theme': {
light: '{base.color.neutral.10}',
dark: '{base.color.neutral.7}',
},
},
},
},
}
26 changes: 0 additions & 26 deletions src/tokens/functional/color/dark/app-dark.json5
Original file line number Diff line number Diff line change
Expand Up @@ -626,30 +626,4 @@
},
},
},
headerSearch: {
bgColor: {
$value: '{base.color.neutral.10}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'dark',
group: 'component',
scopes: ['bgColor'],
},
},
},
borderColor: {
$value: '{base.color.neutral.7}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'dark',
group: 'component',
scopes: ['borderColor'],
},
},
},
},
}
26 changes: 0 additions & 26 deletions src/tokens/functional/color/light/app-light.json5
Original file line number Diff line number Diff line change
Expand Up @@ -618,30 +618,4 @@
},
},
},
headerSearch: {
bgColor: {
$value: '{base.color.neutral.13}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'light',
group: 'component',
scopes: ['bgColor'],
},
},
},
borderColor: {
$value: '{base.color.neutral.10}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'light',
group: 'component',
scopes: ['borderColor'],
},
},
},
},
}

0 comments on commit faa6456

Please sign in to comment.