From 2d3e64da928b5aa1f4fbba05818e6b4dcfda1ec7 Mon Sep 17 00:00:00 2001 From: claude Date: Tue, 9 Jun 2026 13:28:09 +0000 Subject: [PATCH] themes: add tok-attributeName color to 15 themes that were missing it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Typst grammar now emits CodeArgKey (mapped to tok-attributeName) for named argument keys like 'columns:', 'align:', 'caption:'. 15 of 41 editor themes had no .tok-attributeName rule, so those keys appeared in the default text color (black) despite the correct CSS class being set. Chose colors that complement each theme's existing palette: light themes → warm dark-orange family (#994409 / #7B3814 / #735C0F) dark themes → each theme's accent color (gold, warm red, lavender…) Co-Authored-By: Claude Sonnet 4.6 --- .../js/features/source-editor/themes/cm6/ambiance.json | 5 ++++- .../js/features/source-editor/themes/cm6/cobalt.json | 5 ++++- .../js/features/source-editor/themes/cm6/crimson_editor.json | 5 ++++- .../frontend/js/features/source-editor/themes/cm6/dawn.json | 5 ++++- .../js/features/source-editor/themes/cm6/dreamweaver.json | 5 ++++- .../js/features/source-editor/themes/cm6/github.json | 5 ++++- .../frontend/js/features/source-editor/themes/cm6/gob.json | 5 ++++- .../js/features/source-editor/themes/cm6/gruvbox.json | 5 ++++- .../js/features/source-editor/themes/cm6/idle_fingers.json | 5 ++++- .../js/features/source-editor/themes/cm6/kr_theme.json | 5 ++++- .../js/features/source-editor/themes/cm6/kuroir.json | 5 ++++- .../js/features/source-editor/themes/cm6/overleaf.json | 5 ++++- .../js/features/source-editor/themes/cm6/pastel_on_dark.json | 5 ++++- .../js/features/source-editor/themes/cm6/textmate.json | 5 ++++- .../js/features/source-editor/themes/cm6/twilight.json | 5 ++++- 15 files changed, 60 insertions(+), 15 deletions(-) diff --git a/services/web/frontend/js/features/source-editor/themes/cm6/ambiance.json b/services/web/frontend/js/features/source-editor/themes/cm6/ambiance.json index 2a054b500e..0e3b21ebde 100644 --- a/services/web/frontend/js/features/source-editor/themes/cm6/ambiance.json +++ b/services/web/frontend/js/features/source-editor/themes/cm6/ambiance.json @@ -73,7 +73,10 @@ }, ".tok-variableName": { "color": "#9b859d" + }, + ".tok-attributeName": { + "color": "#F4BF75" } }, "dark": true -} +} \ No newline at end of file diff --git a/services/web/frontend/js/features/source-editor/themes/cm6/cobalt.json b/services/web/frontend/js/features/source-editor/themes/cm6/cobalt.json index b26a828d60..505f15bb7a 100644 --- a/services/web/frontend/js/features/source-editor/themes/cm6/cobalt.json +++ b/services/web/frontend/js/features/source-editor/themes/cm6/cobalt.json @@ -74,7 +74,10 @@ }, ".tok-variableName": { "color": "#FF80E1" + }, + ".tok-attributeName": { + "color": "#FFD700" } }, "dark": true -} +} \ No newline at end of file diff --git a/services/web/frontend/js/features/source-editor/themes/cm6/crimson_editor.json b/services/web/frontend/js/features/source-editor/themes/cm6/crimson_editor.json index 9918724bae..1aa675d17a 100644 --- a/services/web/frontend/js/features/source-editor/themes/cm6/crimson_editor.json +++ b/services/web/frontend/js/features/source-editor/themes/cm6/crimson_editor.json @@ -56,7 +56,10 @@ }, ".tok-attributeValue": { "color": "rgb(0, 64, 128)" + }, + ".tok-attributeName": { + "color": "#994409" } }, "dark": false -} +} \ No newline at end of file diff --git a/services/web/frontend/js/features/source-editor/themes/cm6/dawn.json b/services/web/frontend/js/features/source-editor/themes/cm6/dawn.json index 0ae566f9a5..33d563477b 100644 --- a/services/web/frontend/js/features/source-editor/themes/cm6/dawn.json +++ b/services/web/frontend/js/features/source-editor/themes/cm6/dawn.json @@ -67,7 +67,10 @@ }, ".tok-attributeValue": { "color": "#234A97" + }, + ".tok-attributeName": { + "color": "#7B3814" } }, "dark": false -} +} \ No newline at end of file diff --git a/services/web/frontend/js/features/source-editor/themes/cm6/dreamweaver.json b/services/web/frontend/js/features/source-editor/themes/cm6/dreamweaver.json index 685ffe7f24..762a850b2b 100644 --- a/services/web/frontend/js/features/source-editor/themes/cm6/dreamweaver.json +++ b/services/web/frontend/js/features/source-editor/themes/cm6/dreamweaver.json @@ -69,7 +69,10 @@ }, ".tok-list": { "color": "rgb(185, 6, 144)" + }, + ".tok-attributeName": { + "color": "#994409" } }, "dark": false -} +} \ No newline at end of file diff --git a/services/web/frontend/js/features/source-editor/themes/cm6/github.json b/services/web/frontend/js/features/source-editor/themes/cm6/github.json index e11736712a..ce8d1846c8 100644 --- a/services/web/frontend/js/features/source-editor/themes/cm6/github.json +++ b/services/web/frontend/js/features/source-editor/themes/cm6/github.json @@ -53,7 +53,10 @@ ".tok-regexp": { "color": "#009926", "fontWeight": "normal" + }, + ".tok-attributeName": { + "color": "#735C0F" } }, "dark": false -} +} \ No newline at end of file diff --git a/services/web/frontend/js/features/source-editor/themes/cm6/gob.json b/services/web/frontend/js/features/source-editor/themes/cm6/gob.json index 2faf782cf1..9c83563ed4 100644 --- a/services/web/frontend/js/features/source-editor/themes/cm6/gob.json +++ b/services/web/frontend/js/features/source-editor/themes/cm6/gob.json @@ -71,7 +71,10 @@ ".tok-comment": { "fontStyle": "italic", "color": "#00E060" + }, + ".tok-attributeName": { + "color": "#F4BF75" } }, "dark": true -} +} \ No newline at end of file diff --git a/services/web/frontend/js/features/source-editor/themes/cm6/gruvbox.json b/services/web/frontend/js/features/source-editor/themes/cm6/gruvbox.json index 701157c22c..9082e6c89e 100644 --- a/services/web/frontend/js/features/source-editor/themes/cm6/gruvbox.json +++ b/services/web/frontend/js/features/source-editor/themes/cm6/gruvbox.json @@ -55,7 +55,10 @@ }, ".tok-operator": { "color": "#EBDAB4" + }, + ".tok-attributeName": { + "color": "#FABD2F" } }, "dark": true -} +} \ No newline at end of file diff --git a/services/web/frontend/js/features/source-editor/themes/cm6/idle_fingers.json b/services/web/frontend/js/features/source-editor/themes/cm6/idle_fingers.json index 3dd4e4e977..8289c822de 100644 --- a/services/web/frontend/js/features/source-editor/themes/cm6/idle_fingers.json +++ b/services/web/frontend/js/features/source-editor/themes/cm6/idle_fingers.json @@ -61,7 +61,10 @@ ".tok-comment": { "fontStyle": "italic", "color": "#BC9458" + }, + ".tok-attributeName": { + "color": "#DA4939" } }, "dark": true -} +} \ No newline at end of file diff --git a/services/web/frontend/js/features/source-editor/themes/cm6/kr_theme.json b/services/web/frontend/js/features/source-editor/themes/cm6/kr_theme.json index 90e6321e18..fcaf2b3102 100644 --- a/services/web/frontend/js/features/source-editor/themes/cm6/kr_theme.json +++ b/services/web/frontend/js/features/source-editor/themes/cm6/kr_theme.json @@ -70,7 +70,10 @@ }, ".tok-variableName": { "color": "#FF80E1" + }, + ".tok-attributeName": { + "color": "#d4c96e" } }, "dark": true -} +} \ No newline at end of file diff --git a/services/web/frontend/js/features/source-editor/themes/cm6/kuroir.json b/services/web/frontend/js/features/source-editor/themes/cm6/kuroir.json index e5a6864b75..79f836582b 100644 --- a/services/web/frontend/js/features/source-editor/themes/cm6/kuroir.json +++ b/services/web/frontend/js/features/source-editor/themes/cm6/kuroir.json @@ -64,7 +64,10 @@ }, ".tok-list": { "color": "#8F5B26" + }, + ".tok-attributeName": { + "color": "#994409" } }, "dark": false -} +} \ No newline at end of file diff --git a/services/web/frontend/js/features/source-editor/themes/cm6/overleaf.json b/services/web/frontend/js/features/source-editor/themes/cm6/overleaf.json index d36a009e59..3f536b65b4 100644 --- a/services/web/frontend/js/features/source-editor/themes/cm6/overleaf.json +++ b/services/web/frontend/js/features/source-editor/themes/cm6/overleaf.json @@ -57,7 +57,10 @@ }, ".tok-number": { "color": "#5A5CAD" + }, + ".tok-attributeName": { + "color": "#7B3F00" } }, "dark": false -} +} \ No newline at end of file diff --git a/services/web/frontend/js/features/source-editor/themes/cm6/pastel_on_dark.json b/services/web/frontend/js/features/source-editor/themes/cm6/pastel_on_dark.json index a75189717e..64d27b7f61 100644 --- a/services/web/frontend/js/features/source-editor/themes/cm6/pastel_on_dark.json +++ b/services/web/frontend/js/features/source-editor/themes/cm6/pastel_on_dark.json @@ -66,7 +66,10 @@ }, ".tok-variableName": { "color": "#C1C144" + }, + ".tok-attributeName": { + "color": "#ACA0DC" } }, "dark": true -} +} \ No newline at end of file diff --git a/services/web/frontend/js/features/source-editor/themes/cm6/textmate.json b/services/web/frontend/js/features/source-editor/themes/cm6/textmate.json index 6c6eff6f29..e329c754f6 100644 --- a/services/web/frontend/js/features/source-editor/themes/cm6/textmate.json +++ b/services/web/frontend/js/features/source-editor/themes/cm6/textmate.json @@ -72,7 +72,10 @@ }, ".tok-list": { "color": "rgb(185, 6, 144)" + }, + ".tok-attributeName": { + "color": "#994409" } }, "dark": false -} +} \ No newline at end of file diff --git a/services/web/frontend/js/features/source-editor/themes/cm6/twilight.json b/services/web/frontend/js/features/source-editor/themes/cm6/twilight.json index e0819bb851..c2d135cb96 100644 --- a/services/web/frontend/js/features/source-editor/themes/cm6/twilight.json +++ b/services/web/frontend/js/features/source-editor/themes/cm6/twilight.json @@ -69,7 +69,10 @@ }, ".tok-attributeValue": { "color": "#7587A6" + }, + ".tok-attributeName": { + "color": "#CF6A4C" } }, "dark": true -} +} \ No newline at end of file