Skip to content

Themes

Opcodex has 15 built-in themes. Each one colors the interface, the code views and the terminal. The website’s light and dark toggle changes only this website.

Choose a theme on the welcome screen, or under Settings → Theme.

GroupThemes
OpcodexOpcodex Graphite (dark, the default) and Opcodex Paper (light)
CommunityGitHub Dark Dimmed, GitHub Light, VS Code Dark Modern, Dracula, Nord, One Dark, Monokai, Solarized Dark, Solarized Light, Catppuccin Mocha, Tokyo Night, Gruvbox Dark, Geist Dark

The Community themes use the published colors of those palettes, credited on each card.

  1. In Settings → Theme, select New theme. The editor starts from your current theme.
  2. Name it and choose Light or Dark.
  3. Pick the Interface colors: Background, Panels, Lines, Text, Accent and Warnings.
  4. Pick the Code colors: Keywords, Types, Functions, Variables, Strings, Numbers, Comments and Symbols.
  5. Select Save theme.

Your themes appear under Yours, with buttons to edit or delete them. Themes from enabled plugins appear under From plugins.

  • Export saves the current theme as a .opcodex-theme.json file.
  • Import adds a theme file. Opcodex accepts only hex colors such as #1e1e2e and rejects files that are not Opcodex themes.

A theme file looks like this:

{
"format": "opcodex-theme/1",
"name": "My theme",
"author": "You",
"kind": "dark",
"colors": {
"background": "#111214",
"surface": "#16171a",
"border": "#2a2b30",
"text": "#ececee",
"accent": "#5b8def",
"success": "#6fbf8e",
"warning": "#d9b26a",
"danger": "#e07a7a"
},
"code": {
"keyword": "#c09ad8",
"type": "#8fc3b8",
"function": "#8fb3e8",
"variable": "#d9d9de",
"string": "#a8c79a",
"number": "#d9a386",
"comment": "#6b6b74",
"operator": "#a1a1aa"
}
}

Continue with Settings & shortcuts.