Skip to content

Commit

Permalink
Add topicTag file (#1126)
Browse files Browse the repository at this point in the history
* add topicTag file
  • Loading branch information
lukasoppermann authored Dec 13, 2024
1 parent 9e3e501 commit e9301be
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 49 deletions.
20 changes: 10 additions & 10 deletions scripts/themes.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/color/light/*.json5`,
`src/tokens/functional/shadow/light.json5`,
`src/tokens/functional/border/*.json5`,
`src/tokens/functional/color/components/*.json5`,
`src/tokens/component/*.json5`,
],
include: [
`src/tokens/functional/size/border.json5`,
Expand All @@ -23,7 +23,7 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/color/light/*.json5`,
`src/tokens/functional/shadow/light.json5`,
`src/tokens/functional/border/*.json5`,
`src/tokens/functional/color/components/*.json5`,
`src/tokens/component/*.json5`,
`src/tokens/functional/color/light/overrides/light.tritanopia.json5`,
],
include: [
Expand All @@ -39,7 +39,7 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/color/light/*.json5`,
`src/tokens/functional/shadow/light.json5`,
`src/tokens/functional/border/*.json5`,
`src/tokens/functional/color/components/*.json5`,
`src/tokens/component/*.json5`,
`src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5`,
],
include: [
Expand All @@ -55,7 +55,7 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/color/light/*.json5`,
`src/tokens/functional/shadow/light.json5`,
`src/tokens/functional/border/*.json5`,
`src/tokens/functional/color/components/*.json5`,
`src/tokens/component/*.json5`,
`src/tokens/functional/color/light/overrides/light.high-contrast.json5`,
],
include: [
Expand All @@ -72,7 +72,7 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/color/dark/*.json5`,
`src/tokens/functional/shadow/dark.json5`,
`src/tokens/functional/border/*.json5`,
`src/tokens/functional/color/components/*.json5`,
`src/tokens/component/*.json5`,
],
include: [
`src/tokens/functional/size/border.json5`,
Expand All @@ -88,14 +88,14 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/color/dark/overrides/dark.dimmed.json5`,
`src/tokens/functional/shadow/dark.json5`,
`src/tokens/functional/border/*.json5`,
`src/tokens/functional/color/components/*.json5`,
`src/tokens/component/*.json5`,
],
include: [
`src/tokens/functional/size/border.json5`,
`src/tokens/base/color/dark/dark.json5`,
`src/tokens/base/color/dark/dark.dimmed.json5`,
`src/tokens/base/color/dark/display-dark.json5`,
`src/tokens/functional/color/components/*.json5`,
`src/tokens/component/*.json5`,
],
},
{
Expand All @@ -105,7 +105,7 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/color/dark/*.json5`,
`src/tokens/functional/shadow/dark.json5`,
`src/tokens/functional/border/*.json5`,
`src/tokens/functional/color/components/*.json5`,
`src/tokens/component/*.json5`,
`src/tokens/functional/color/dark/overrides/dark.tritanopia.json5`,
],
include: [
Expand All @@ -121,7 +121,7 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/color/dark/*.json5`,
`src/tokens/functional/shadow/dark.json5`,
`src/tokens/functional/border/*.json5`,
`src/tokens/functional/color/components/*.json5`,
`src/tokens/component/*.json5`,
`src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5`,
],
include: [
Expand All @@ -137,7 +137,7 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/color/dark/*.json5`,
`src/tokens/functional/shadow/dark.json5`,
`src/tokens/functional/border/*.json5`,
`src/tokens/functional/color/components/*.json5`,
`src/tokens/component/*.json5`,
`src/tokens/functional/color/dark/overrides/dark.high-contrast.json5`,
],
include: [
Expand Down
19 changes: 19 additions & 0 deletions src/tokens/component/topicTag.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
topicTag: {
borderColor: {
$value: '{base.color.transparent}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
group: 'component',
scopes: ['borderColor'],
},
'org.primer.overrides': {
'light-high-contrast': '{borderColor.accent.emphasis}',
'dark-high-contrast': '{borderColor.accent.emphasis}',
},
},
},
},
}
14 changes: 0 additions & 14 deletions src/tokens/functional/color/dark/app-dark.json5
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
{
topicTag: {
borderColor: {
$value: '{base.color.transparent}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',

group: 'component',
scopes: ['borderColor'],
},
},
},
},
highlight: {
neutral: {
bgColor: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,6 @@
alpha: 0.9,
},
},
topicTag: {
borderColor: {
$value: '{borderColor.accent.emphasis}',
$type: 'color',
},
},
counter: {
borderColor: {
$value: '{borderColor.default}',
Expand Down
13 changes: 0 additions & 13 deletions src/tokens/functional/color/light/app-light.json5
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
{
topicTag: {
borderColor: {
$value: '{base.color.transparent}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
group: 'component',
scopes: ['borderColor'],
},
},
},
},
highlight: {
neutral: {
bgColor: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,6 @@
alpha: 0.9,
},
},
topicTag: {
borderColor: {
$value: '{borderColor.accent.emphasis}',
$type: 'color',
},
},
counter: {
borderColor: {
$value: '{borderColor.default}',
Expand Down

0 comments on commit e9301be

Please sign in to comment.