Skip to content

Commit

Permalink
move codeMirror tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Jan 24, 2025
1 parent 7e62943 commit 8927c8a
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 96 deletions.
88 changes: 49 additions & 39 deletions src/tokens/component/codeMirror.json5
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{fgColor.default}'
}
dark: '{fgColor.default}',
},
},
},
bgColor: {
Expand All @@ -24,8 +24,8 @@
scopes: ['bgColor'],
},
'org.primer.overrides': {
dark: '{bgColor.default}'
}
dark: '{bgColor.default}',
},
},
},
gutters: {
Expand All @@ -39,8 +39,8 @@
scopes: ['bgColor'],
},
'org.primer.overrides': {
dark: '{bgColor.default}'
}
dark: '{bgColor.default}',
},
},
},
},
Expand All @@ -56,8 +56,8 @@
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{bgColor.default}'
}
dark: '{bgColor.default}',
},
},
},
muted: {
Expand All @@ -70,8 +70,8 @@
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{fgColor.muted}'
}
dark: '{fgColor.muted}',
},
},
},
},
Expand All @@ -87,8 +87,8 @@
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{fgColor.muted}'
}
dark: '{fgColor.muted}',
},
},
},
},
Expand All @@ -103,8 +103,8 @@
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{fgColor.default}'
}
dark: '{fgColor.default}',
},
},
},
},
Expand All @@ -119,8 +119,12 @@
scopes: ['bgColor'],
},
'org.primer.overrides': {
dark: '{borderColor.accent.muted}'
}
dark: '{borderColor.accent.muted}',
'dark-high-contrast': {
$value: '{base.color.blue.4}',
alpha: 0.4,
},
},
},
},
},
Expand All @@ -135,8 +139,8 @@
scopes: ['bgColor'],
},
'org.primer.overrides': {
dark: '{bgColor.neutral.muted}'
}
dark: '{bgColor.neutral.muted}',
},
},
},
},
Expand All @@ -151,8 +155,8 @@
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{fgColor.default}'
}
dark: '{fgColor.default}',
},
},
},
},
Expand All @@ -167,8 +171,8 @@
scopes: ['bgColor'],
},
'org.primer.overrides': {
dark: '{bgColor.default}'
}
dark: '{bgColor.default}',
},
},
},
},
Expand All @@ -184,8 +188,8 @@
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{base.color.neutral.8}'
}
dark: '{base.color.neutral.8}',
},
},
},
constant: {
Expand All @@ -198,8 +202,8 @@
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{base.color.blue.2}'
}
dark: '{base.color.blue.2}',
},
},
},
entity: {
Expand All @@ -212,8 +216,8 @@
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{base.color.purple.2}'
}
dark: '{base.color.purple.2}',
},
},
},
keyword: {
Expand All @@ -226,8 +230,10 @@
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{base.color.red.3}'
}
dark: '{base.color.red.3}',
'light.protanopia-deuteranopia': '{base.color.orange.5}',
"dark-protanopia-deuteranopia": '{base.color.orange.3}',
},
},
},
storage: {
Expand All @@ -240,8 +246,10 @@
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{base.color.red.3}'
}
dark: '{base.color.red.3}',
'light.protanopia-deuteranopia': '{base.color.orange.5}',
"dark-protanopia-deuteranopia": '{base.color.orange.3}',
},
},
},
string: {
Expand All @@ -254,8 +262,8 @@
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{base.color.blue.1}'
}
dark: '{base.color.blue.1}',
},
},
},
support: {
Expand All @@ -268,8 +276,8 @@
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{base.color.blue.2}'
}
dark: '{base.color.blue.2}',
},
},
},
variable: {
Expand All @@ -282,11 +290,13 @@
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{base.color.orange.2}'
}
dark: '{base.color.orange.2}',
'light-tritanopia': '{base.color.red.6}',
'dark-tritanopia': '{base.color.red.2}',
},
},
},
},
},
},
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -292,15 +292,6 @@
},
},
},
codeMirror: {
selection: {
bgColor: {
$value: '{base.color.blue.4}',
$type: 'color',
alpha: 0.4,
},
},
},
display: {
blue: {
bgColor: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,6 @@
},
},
},
codeMirror: {
syntax: {
fgColor: {
keyword: {
$value: '{base.color.orange.3}',
$type: 'color',
},
storage: {
$value: '{base.color.orange.3}',
$type: 'color',
},
},
},
},
button: {
primary: {
bgColor: {
Expand Down
10 changes: 0 additions & 10 deletions src/tokens/functional/color/dark/overrides/dark.tritanopia.json5
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,6 @@
* @description All overwrites for functional color tokens for this theme are in this file
*/
{
codeMirror: {
syntax: {
fgColor: {
variable: {
$value: '{base.color.red.2}',
$type: 'color',
},
},
},
},
button: {
primary: {
bgColor: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,6 @@
* @description All overwrites for functional color tokens for light protanopia and deuteranopia color mode are in this file
*/
{
codeMirror: {
syntax: {
fgColor: {
keyword: {
$value: '{base.color.orange.5}',
$type: 'color',
},
storage: {
$value: '{base.color.orange.5}',
$type: 'color',
},
},
},
},
button: {
primary: {
bgColor: {
Expand Down
10 changes: 0 additions & 10 deletions src/tokens/functional/color/light/overrides/light.tritanopia.json5
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,6 @@
* @description All overwrites for functional color tokens for this theme are in this file
*/
{
codeMirror: {
syntax: {
fgColor: {
variable: {
$value: '{base.color.red.6}',
$type: 'color',
},
},
},
},
button: {
primary: {
bgColor: {
Expand Down

0 comments on commit 8927c8a

Please sign in to comment.