Skip to content

Commit 3d43a4b

Browse files
committed
fix(files): improve light mode number token contrast to 4.8x
1 parent 173c1d6 commit 3d43a4b

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/files/components/file-viewer

apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/text-editor.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import {
2424
} from './text-editor-state'
2525

2626
const SIM_DARK_RULES: MonacoEditorTypes.ITokenThemeRule[] = [
27-
// Core
2827
{ token: 'comment', foreground: '606060', fontStyle: 'italic' },
2928
{ token: 'string', foreground: '3ab872' },
3029
{ token: 'string.escape', foreground: '3ab872' },
@@ -43,9 +42,6 @@ const SIM_DARK_RULES: MonacoEditorTypes.ITokenThemeRule[] = [
4342
{ token: 'tag', foreground: '33b4ff' },
4443
{ token: 'attribute.name', foreground: '8fc7f5' },
4544
{ token: 'attribute.value', foreground: '3ab872' },
46-
// Markdown — Monaco Monarch emits these (tokenPostfix: ".md")
47-
// `keyword.md` covers headings + list markers (already caught by `keyword` above)
48-
// `comment.md` covers blockquotes (already caught by `comment` above)
4945
{ token: 'strong', foreground: 'e6e6e6', fontStyle: 'bold' },
5046
{ token: 'emphasis', foreground: 'c8c8c8', fontStyle: 'italic' },
5147
{ token: 'variable', foreground: '3ab872' },
@@ -54,14 +50,13 @@ const SIM_DARK_RULES: MonacoEditorTypes.ITokenThemeRule[] = [
5450
]
5551

5652
const SIM_LIGHT_RULES: MonacoEditorTypes.ITokenThemeRule[] = [
57-
// Core
5853
{ token: 'comment', foreground: '888888', fontStyle: 'italic' },
5954
{ token: 'string', foreground: '16825d' },
6055
{ token: 'string.escape', foreground: '16825d' },
6156
{ token: 'string.link', foreground: '0078d4' },
62-
{ token: 'number', foreground: 'c9660c' },
63-
{ token: 'number.float', foreground: 'c9660c' },
64-
{ token: 'number.hex', foreground: 'c9660c' },
57+
{ token: 'number', foreground: 'a85500' },
58+
{ token: 'number.float', foreground: 'a85500' },
59+
{ token: 'number.hex', foreground: 'a85500' },
6560
{ token: 'keyword', foreground: '0078d4' },
6661
{ token: 'keyword.control', foreground: '0078d4' },
6762
{ token: 'storage', foreground: '0078d4' },
@@ -73,7 +68,6 @@ const SIM_LIGHT_RULES: MonacoEditorTypes.ITokenThemeRule[] = [
7368
{ token: 'tag', foreground: '0078d4' },
7469
{ token: 'attribute.name', foreground: '7c4dcc' },
7570
{ token: 'attribute.value', foreground: '16825d' },
76-
// Markdown — Monaco Monarch emits these (tokenPostfix: ".md")
7771
{ token: 'strong', foreground: '1a1a1a', fontStyle: 'bold' },
7872
{ token: 'emphasis', foreground: '444444', fontStyle: 'italic' },
7973
{ token: 'variable', foreground: '16825d' },

0 commit comments

Comments
 (0)