Skip to content

Commit e9301be

Browse files
Add topicTag file (#1126)
* add topicTag file
1 parent 9e3e501 commit e9301be

File tree

6 files changed

+29
-49
lines changed

6 files changed

+29
-49
lines changed

scripts/themes.config.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const themes: TokenBuildInput[] = [
88
`src/tokens/functional/color/light/*.json5`,
99
`src/tokens/functional/shadow/light.json5`,
1010
`src/tokens/functional/border/*.json5`,
11-
`src/tokens/functional/color/components/*.json5`,
11+
`src/tokens/component/*.json5`,
1212
],
1313
include: [
1414
`src/tokens/functional/size/border.json5`,
@@ -23,7 +23,7 @@ export const themes: TokenBuildInput[] = [
2323
`src/tokens/functional/color/light/*.json5`,
2424
`src/tokens/functional/shadow/light.json5`,
2525
`src/tokens/functional/border/*.json5`,
26-
`src/tokens/functional/color/components/*.json5`,
26+
`src/tokens/component/*.json5`,
2727
`src/tokens/functional/color/light/overrides/light.tritanopia.json5`,
2828
],
2929
include: [
@@ -39,7 +39,7 @@ export const themes: TokenBuildInput[] = [
3939
`src/tokens/functional/color/light/*.json5`,
4040
`src/tokens/functional/shadow/light.json5`,
4141
`src/tokens/functional/border/*.json5`,
42-
`src/tokens/functional/color/components/*.json5`,
42+
`src/tokens/component/*.json5`,
4343
`src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5`,
4444
],
4545
include: [
@@ -55,7 +55,7 @@ export const themes: TokenBuildInput[] = [
5555
`src/tokens/functional/color/light/*.json5`,
5656
`src/tokens/functional/shadow/light.json5`,
5757
`src/tokens/functional/border/*.json5`,
58-
`src/tokens/functional/color/components/*.json5`,
58+
`src/tokens/component/*.json5`,
5959
`src/tokens/functional/color/light/overrides/light.high-contrast.json5`,
6060
],
6161
include: [
@@ -72,7 +72,7 @@ export const themes: TokenBuildInput[] = [
7272
`src/tokens/functional/color/dark/*.json5`,
7373
`src/tokens/functional/shadow/dark.json5`,
7474
`src/tokens/functional/border/*.json5`,
75-
`src/tokens/functional/color/components/*.json5`,
75+
`src/tokens/component/*.json5`,
7676
],
7777
include: [
7878
`src/tokens/functional/size/border.json5`,
@@ -88,14 +88,14 @@ export const themes: TokenBuildInput[] = [
8888
`src/tokens/functional/color/dark/overrides/dark.dimmed.json5`,
8989
`src/tokens/functional/shadow/dark.json5`,
9090
`src/tokens/functional/border/*.json5`,
91-
`src/tokens/functional/color/components/*.json5`,
91+
`src/tokens/component/*.json5`,
9292
],
9393
include: [
9494
`src/tokens/functional/size/border.json5`,
9595
`src/tokens/base/color/dark/dark.json5`,
9696
`src/tokens/base/color/dark/dark.dimmed.json5`,
9797
`src/tokens/base/color/dark/display-dark.json5`,
98-
`src/tokens/functional/color/components/*.json5`,
98+
`src/tokens/component/*.json5`,
9999
],
100100
},
101101
{
@@ -105,7 +105,7 @@ export const themes: TokenBuildInput[] = [
105105
`src/tokens/functional/color/dark/*.json5`,
106106
`src/tokens/functional/shadow/dark.json5`,
107107
`src/tokens/functional/border/*.json5`,
108-
`src/tokens/functional/color/components/*.json5`,
108+
`src/tokens/component/*.json5`,
109109
`src/tokens/functional/color/dark/overrides/dark.tritanopia.json5`,
110110
],
111111
include: [
@@ -121,7 +121,7 @@ export const themes: TokenBuildInput[] = [
121121
`src/tokens/functional/color/dark/*.json5`,
122122
`src/tokens/functional/shadow/dark.json5`,
123123
`src/tokens/functional/border/*.json5`,
124-
`src/tokens/functional/color/components/*.json5`,
124+
`src/tokens/component/*.json5`,
125125
`src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5`,
126126
],
127127
include: [
@@ -137,7 +137,7 @@ export const themes: TokenBuildInput[] = [
137137
`src/tokens/functional/color/dark/*.json5`,
138138
`src/tokens/functional/shadow/dark.json5`,
139139
`src/tokens/functional/border/*.json5`,
140-
`src/tokens/functional/color/components/*.json5`,
140+
`src/tokens/component/*.json5`,
141141
`src/tokens/functional/color/dark/overrides/dark.high-contrast.json5`,
142142
],
143143
include: [

src/tokens/component/topicTag.json5

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
topicTag: {
3+
borderColor: {
4+
$value: '{base.color.transparent}',
5+
$type: 'color',
6+
$extensions: {
7+
'org.primer.figma': {
8+
collection: 'mode',
9+
group: 'component',
10+
scopes: ['borderColor'],
11+
},
12+
'org.primer.overrides': {
13+
'light-high-contrast': '{borderColor.accent.emphasis}',
14+
'dark-high-contrast': '{borderColor.accent.emphasis}',
15+
},
16+
},
17+
},
18+
},
19+
}

src/tokens/functional/color/dark/app-dark.json5

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
11
{
2-
topicTag: {
3-
borderColor: {
4-
$value: '{base.color.transparent}',
5-
$type: 'color',
6-
$extensions: {
7-
'org.primer.figma': {
8-
collection: 'mode',
9-
10-
group: 'component',
11-
scopes: ['borderColor'],
12-
},
13-
},
14-
},
15-
},
162
highlight: {
173
neutral: {
184
bgColor: {

src/tokens/functional/color/dark/overrides/dark.high-contrast.json5

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,6 @@
220220
alpha: 0.9,
221221
},
222222
},
223-
topicTag: {
224-
borderColor: {
225-
$value: '{borderColor.accent.emphasis}',
226-
$type: 'color',
227-
},
228-
},
229223
counter: {
230224
borderColor: {
231225
$value: '{borderColor.default}',

src/tokens/functional/color/light/app-light.json5

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
11
{
2-
topicTag: {
3-
borderColor: {
4-
$value: '{base.color.transparent}',
5-
$type: 'color',
6-
$extensions: {
7-
'org.primer.figma': {
8-
collection: 'mode',
9-
group: 'component',
10-
scopes: ['borderColor'],
11-
},
12-
},
13-
},
14-
},
152
highlight: {
163
neutral: {
174
bgColor: {

src/tokens/functional/color/light/overrides/light.high-contrast.json5

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,6 @@
198198
alpha: 0.9,
199199
},
200200
},
201-
topicTag: {
202-
borderColor: {
203-
$value: '{borderColor.accent.emphasis}',
204-
$type: 'color',
205-
},
206-
},
207201
counter: {
208202
borderColor: {
209203
$value: '{borderColor.default}',

0 commit comments

Comments
 (0)