[Bug] Monaco "vs" theme for SQL language does not meet minimum color contrast issue threshold for .mtk4 and mtk18
Author: shubhamPPrakashCreated Aug 26, 2026Updated Sep 2, 2026
Reproducible in vscode.dev or in VS Code Desktop?
- Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
- Not reproducible in the monaco editor playground
Monaco Editor Playground Link
Monaco Editor Playground Code
const value = /* set from `myEditor.getModel()`: */ `SELECT * FROM DB
WHERE ENV = 'TEST'
AND IS_VERIFIED IS TRUE
`;
// Hover on each property to see its docs!
const myEditor = monaco.editor.create(document.getElementById("container"), {
value,
language: "sql",
automaticLayout: true,
});
Reproduction Steps
Open Monaco Playground Set the language as sql Write the sql query which includes 'SOME TEXT' and IS Use some Accessibility tool for testing the contrast ratio like AXE-CORE
Actual (Problematic) Behavior
The contrast ration for some token with classes such .mtk4 and .mtk18 will have contrast ratio below WCAG 2 AA minimum contrast ratio threshold which is 4.5:1
Expected Behavior
The Contrast ration for all token should be more than 4.5:1
Additional Context
https://dequeuniversity.com/rules/axe/4.12/color-contrast?application=AxeChrome
Source: microsoft/monaco-editor