diff --git a/services/web/frontend/js/features/source-editor/languages/typst/index.ts b/services/web/frontend/js/features/source-editor/languages/typst/index.ts index 508e94e7d7..1ee40eb856 100644 --- a/services/web/frontend/js/features/source-editor/languages/typst/index.ts +++ b/services/web/frontend/js/features/source-editor/languages/typst/index.ts @@ -101,8 +101,9 @@ const typstHighlightStyle = HighlightStyle.define([ { tag: t.heading, fontWeight: 'bold' }, { tag: t.strong, fontWeight: 'bold' }, { tag: t.emphasis, fontStyle: 'italic' }, - // Diagnostic: force arg keys bright red so we can confirm the token reaches the highlighter. - { tag: t.attributeName, color: '#cc0000', fontWeight: 'bold' }, + // Named arg keys (fill:, caption:, columns:…) — amber colour that reads + // well on both light and dark backgrounds, independent of theme CSS. + { tag: t.attributeName, color: '#c47900' }, ]) export const typst = () => {