1.5 KiB
Code block color scheme sources
Canonical sources for the schemes in
Modules/Notifications/Sidebar/Chat/Content/CodeColors.qml.
Rules:
-
Verify one scheme at a time, in order.
-
HSL/RGB values from the specs are converted with a Python script, never by hand:
python3 -c "import colorsys; r,g,b = colorsys.hls_to_rgb(h/360, l/100, s/100); print('#%02x%02x%02x' % tuple(round(c*255) for c in (r,g,b)))"(HLS in Python is h, l, s — note the order.) -
Check the box only after the QML is fixed and verified against the spec.
-
One Dark — https://github.com/atom/one-dark-syntax/blob/master/styles/syntax-variables.less
-
Nord — https://github.com/nordtheme/nord/blob/develop/src/nord.css
-
Dracula — https://github.com/dracula/draculatheme.com/blob/main/content/spec.mdx
-
Solarized — https://github.com/altercation/solarized/blob/master/colors/solarized.vim (actual path: vim-colors-solarized/colors/solarized.vim)
-
Gruvbox — https://github.com/morhetz/gruvbox/blob/master/colors/gruvbox.vim
-
Monokai — https://github.com/JetBrains/colorSchemeTool/blob/master/intellijThemes/Monokai.icls
-
GitHub Dark — https://github.com/primer/github-vscode-theme
-
Catppuccin (Mocha) — https://github.com/catppuccin/nvim
-
Tokyo Night — https://github.com/folke/tokyonight.nvim/tree/main/lua/tokyonight/groups
-
Ayu (Dark) — https://github.com/ayu-theme/vscode-ayu
-
Palenight — https://github.com/drewtempelmeyer/palenight.vim