Skip to content

Commit

Permalink
Move dark and light codeMirror tokens into separate file (#1162)
Browse files Browse the repository at this point in the history
* move dark and light codeMirror tokens into separate file

* move codeMirror tokens
  • Loading branch information
lukasoppermann authored Jan 24, 2025
1 parent dc7190e commit 630d875
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 311 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
group: 'component',
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{fgColor.default}',
},
},
},
bgColor: {
Expand All @@ -20,6 +23,9 @@
group: 'component',
scopes: ['bgColor'],
},
'org.primer.overrides': {
dark: '{bgColor.default}',
},
},
},
gutters: {
Expand All @@ -32,6 +38,9 @@
group: 'component',
scopes: ['bgColor'],
},
'org.primer.overrides': {
dark: '{bgColor.default}',
},
},
},
},
Expand All @@ -46,6 +55,9 @@
group: 'component',
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{bgColor.default}',
},
},
},
muted: {
Expand All @@ -57,6 +69,9 @@
group: 'component',
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{fgColor.muted}',
},
},
},
},
Expand All @@ -71,6 +86,9 @@
group: 'component',
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{fgColor.muted}',
},
},
},
},
Expand All @@ -84,6 +102,9 @@
group: 'component',
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{fgColor.default}',
},
},
},
},
Expand All @@ -97,6 +118,13 @@
group: 'component',
scopes: ['bgColor'],
},
'org.primer.overrides': {
dark: '{borderColor.accent.muted}',
'dark-high-contrast': {
$value: '{base.color.blue.4}',
alpha: 0.4,
},
},
},
},
},
Expand All @@ -110,6 +138,9 @@
group: 'component',
scopes: ['bgColor'],
},
'org.primer.overrides': {
dark: '{bgColor.neutral.muted}',
},
},
},
},
Expand All @@ -123,6 +154,9 @@
group: 'component',
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{fgColor.default}',
},
},
},
},
Expand All @@ -136,6 +170,9 @@
group: 'component',
scopes: ['bgColor'],
},
'org.primer.overrides': {
dark: '{bgColor.default}',
},
},
},
},
Expand All @@ -150,6 +187,9 @@
group: 'component',
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{base.color.neutral.8}',
},
},
},
constant: {
Expand All @@ -161,6 +201,9 @@
group: 'component',
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{base.color.blue.2}',
},
},
},
entity: {
Expand All @@ -172,6 +215,9 @@
group: 'component',
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{base.color.purple.2}',
},
},
},
keyword: {
Expand All @@ -183,6 +229,11 @@
group: 'component',
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{base.color.red.3}',
'light-protanopia-deuteranopia': '{base.color.orange.5}',
"dark-protanopia-deuteranopia": '{base.color.orange.3}',
},
},
},
storage: {
Expand All @@ -194,6 +245,11 @@
group: 'component',
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{base.color.red.3}',
'light-protanopia-deuteranopia': '{base.color.orange.5}',
"dark-protanopia-deuteranopia": '{base.color.orange.3}',
},
},
},
string: {
Expand All @@ -205,6 +261,9 @@
group: 'component',
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{base.color.blue.1}',
},
},
},
support: {
Expand All @@ -216,6 +275,9 @@
group: 'component',
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{base.color.blue.2}',
},
},
},
variable: {
Expand All @@ -227,6 +289,11 @@
group: 'component',
scopes: ['fgColor'],
},
'org.primer.overrides': {
dark: '{base.color.orange.2}',
'light-tritanopia': '{base.color.red.6}',
'dark-tritanopia': '{base.color.red.2}',
},
},
},
},
Expand Down
Loading

0 comments on commit 630d875

Please sign in to comment.