Skip to content

Repository files navigation

Danger

I've been using this color scheme since 2003, re-written in Lua, and includes a light theme as well as the usual dark theme.

Even though it's a VIM theme, I also made versions for: Visual Studio Code, Sublime Text, TextMate, Gedit and GTKSourceView based editors, Gnome Terminal Color Schemes and VIM statuses Lightline I want every editor I use or stumble upon to have the same color scheme.

nim-btwNim source code example, full config

Install

lazy.nvim

return {
{
"LazyVim/LazyVim",
opts= {
colorscheme="danger",
},
},
{
"igorgue/danger",
opts= {
style="dark",
alacritty=true,
},
keys= {
{
"<leader>D",
function()
ifvim.g.colors_name=="danger_dark" thenvim.cmd("colorscheme danger_light")
elsevim.cmd("colorscheme danger_dark")
endend,
desc="Toggle Danger dark mode",
},
},
},
}

Setups <leader>D as well, to switch between dark and light mode, includes a alacritty plugin to change alacritty background as well, works great since I only use it for nvim

Switch to it:

colorscheme danger_dark" Dark modecolorscheme danger_light" Light modecolorscheme danger" Default is `danger_dark`

gnome-terminal

cd gnome-terminal && ./load-gnome-terminal-theme

Don't forget to add its uuid to the /org/gnome/terminal/legacy/profiles:/list d-conf value

sublime text

Open Preferences -> Browse Packages, and make a directory called Colorsublime-Themes if it doesn't exits, inside that directory copy themes/danger.tmTheme.

textmate

I'm unsure how to install it but the color theme is based on its syntax so it's themes/danger.tmTheme let me know how it looks.

visual studio code

Copy the root directory to ~/.vscode/extensions/

mkdir -p ~/.vscode/extensions
cp -r danger ~/.vscode/extensions/

Will publish later, I do not use vscode that much

gedit

Add gtksourceview-4/danger.xml on Preferences / Font & Colors using the +.

bat

mkdir -p "$(bat --config-dir)/themes"cd"$(bat --config-dir)/themes"
git clone https://github.com/igorgue/danger
bat cache --build

Now add this to your shell rc file (e.g.: ~/.bashrc or ~/.zshrc):

This will also work for the fzf plugin on vim, just make sure your vim uses the same shell.

export BAT_THEME="danger"

More Screenshots

light-dark-allThemes available danger_light and danger_dark

light-dark-startupNVIM startup

light-dark-telescopeTelescope file find example

About

danger VIM colorscheme

Resources

Stars

19 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages