Skip to main content

Accessibility

Rust Online is built so that a person using a screen reader, a person who cannot hear, a person who navigates only by keyboard, and a person with low vision all get the same editor β€” not a stripped-down version of it.

What we do

  • Nothing depends on sound. Every state change β€” compiling, success, failure, warnings β€” is text, not a chime or a colour alone.
  • Nothing depends on colour alone. Errors carry the word β€œerror”, a code, and a position, so they read correctly in greyscale and to a screen reader.
  • Live regions announce results. Compilation status is announced politely, so it never interrupts what you are typing.
  • The editor is escapable. Tab indents inside the code area; press Escape first and Tab moves focus on, so keyboard users are never trapped.
  • Diagnostics are links, not decoration. Each compiler message has a β€œGo to line” button that moves the caret for you.
  • Text scales. Editor text size is adjustable from 12px to 26px and is remembered on your device.
  • Reduced motion is respected. We honour your operating-system setting.

Keyboard shortcuts

Keyboard shortcuts available in Rust Online
KeysWhat it does
TabMove to the next control. Inside the editor, Tab indents.
Escape then TabLeave the code editor and continue through the page.
Ctrl / Cmd + FSearch inside your code.
Ctrl / Cmd + ZUndo. Shift adds redo.
Alt + clickAdd another cursor.

Measured contrast of every theme

These ratios are computed from the actual theme values using the WCAG 2.1 formula. AA needs 4.5:1 for body text; AAA needs 7:1.

Contrast ratios for each Rust Online theme
ThemeApp textEditor textRating
Default16.20:115.45:1AAA
Midnight Ocean16.01:114.57:1AAA
Sunset15.79:115.12:1AAA
Forest15.85:114.66:1AAA
Lavender15.28:114.32:1AAA
Minimal17.76:117.76:1AAA
Tokyo Night10.59:110.59:1AAA
Everforest7.60:17.60:1AAA
Ayu14.14:114.14:1AAA
Catppuccin11.34:111.34:1AAA
Catppuccin Macchiato9.92:19.92:1AAA
Gruvbox10.75:110.75:1AAA
Kanagawa11.26:111.26:1AAA
Nord10.84:110.26:1AAA
Matrix17.07:116.56:1AAA
One Dark10.48:17.90:1AAA

Found a barrier?

Accessibility bugs are treated as ordinary bugs, not nice-to-haves. If something blocks you, tell us what you were doing and which assistive technology you use.