Convert Figma logo to code with AI

sainnhe logosonokai

High Contrast & Vivid Color Scheme based on Monokai Pro

1,627
118
1,627
1

Top Related Projects

13,627

Retro groove color scheme for Vim

A dark Vim/Neovim color scheme inspired by Atom's One Dark syntax theme.

1,321

🧛🏻‍♂️ Dark theme for Vim

2,514

An arctic, north-bluish clean and elegant Vim theme.

1,984

Adaptation of one-light and one-dark colorschemes for Vim

3,603

Molokai color scheme for Vim

Quick Overview

Sonokai is a high-contrast and vivid color scheme for Vim and Neovim. It's designed to be easy on the eyes while providing clear syntax highlighting for various programming languages and file types. The project offers multiple style variants to suit different preferences and environments.

Pros

  • Multiple style variants available (default, atlantis, andromeda, shusia, maia, espresso)
  • Supports a wide range of plugins and file types
  • Customizable through configuration options
  • Actively maintained with regular updates

Cons

  • Limited to Vim and Neovim editors
  • May require additional setup for some terminal emulators
  • Color scheme preferences are subjective, and not all users may find it appealing
  • Some variants may not provide enough contrast for certain users or environments

Getting Started

To use Sonokai in Vim or Neovim:

  1. Install the color scheme using your preferred plugin manager. For example, with vim-plug:
Plug 'sainnhe/sonokai'
  1. Add the following to your ~/.vimrc or ~/.config/nvim/init.vim:
" Enable true color support
if has('termguicolors')
  set termguicolors
endif

" Set the color scheme
colorscheme sonokai

" Optional: Set the style variant (default, atlantis, andromeda, shusia, maia, espresso)
let g:sonokai_style = 'default'
  1. Restart Vim/Neovim or source your configuration file to apply the changes.

For more detailed instructions and customization options, refer to the project's README on GitHub.

Competitor Comparisons

13,627

Retro groove color scheme for Vim

Pros of Gruvbox

  • Widely adopted and supported across many editors and tools
  • Offers a unique, retro-inspired color palette with warm tones
  • Extensive documentation and community support

Cons of Gruvbox

  • Limited color scheme variants compared to Sonokai
  • May not be as visually appealing for modern, minimalist preferences
  • Less frequent updates and maintenance

Code Comparison

Gruvbox:

let g:gruvbox_contrast_dark = 'hard'
let g:gruvbox_italic = 1
colorscheme gruvbox

Sonokai:

let g:sonokai_style = 'andromeda'
let g:sonokai_enable_italic = 1
colorscheme sonokai

Summary

Gruvbox is a well-established color scheme with a distinctive retro look and wide support. It offers a warm, earthy palette that many users find comfortable for long coding sessions. However, it may not appeal to those seeking a more modern aesthetic.

Sonokai, on the other hand, provides a fresher take on color schemes with multiple style options and a more vibrant palette. It caters to users who prefer a contemporary look while still maintaining good readability.

Both color schemes offer similar customization options, but Sonokai tends to have more frequent updates and a wider range of pre-defined styles to choose from.

A dark Vim/Neovim color scheme inspired by Atom's One Dark syntax theme.

Pros of onedark.vim

  • More established and widely used theme with a larger user base
  • Closely mimics the Atom One Dark theme, providing familiarity for Atom users
  • Includes support for various plugins and file types out of the box

Cons of onedark.vim

  • Less customization options compared to Sonokai
  • Limited color scheme variants, focusing primarily on the One Dark style
  • May have slower development and fewer updates

Code Comparison

onedark.vim:

if !exists('g:onedark_hide_endofbuffer')
  let g:onedark_hide_endofbuffer = 0
endif

let g:onedark_termcolors = 256

Sonokai:

if !exists('g:sonokai_style')
    let g:sonokai_style = 'default'
endif

let g:sonokai_better_performance = 1

Both repositories provide Vim color schemes, but they differ in their approach and features. onedark.vim focuses on replicating the Atom One Dark theme, while Sonokai offers multiple color scheme variants and more customization options. onedark.vim may be preferred by users seeking a familiar Atom-like experience, while Sonokai caters to those who want more flexibility and style choices. The code snippets show configuration options for each theme, highlighting the different customization approaches.

1,321

🧛🏻‍♂️ Dark theme for Vim

Pros of Dracula

  • Wider adoption and community support
  • Available for a broader range of applications beyond Vim
  • More extensive documentation and setup guides

Cons of Dracula

  • Less customization options for fine-tuning colors
  • May not be as optimized for modern terminals and color spaces
  • Fewer variant color schemes within the same theme family

Code Comparison

Sonokai color definition:

let s:palette = {
    \ 'black':      ['#181819',   '237'],
    \ 'bg0':        ['#2c2e34',   '235'],
    \ 'bg1':        ['#33353f',   '236'],
    \ 'bg2':        ['#363944',   '236'],
    \ 'bg3':        ['#3b3e48',   '237'],
    \ 'bg4':        ['#414550',   '237'],
}

Dracula color definition:

let g:dracula#palette           = {}
let g:dracula#palette.fg        = ['#F8F8F2', 253]
let g:dracula#palette.bglighter = ['#424450', 238]
let g:dracula#palette.bglight   = ['#343746', 237]
let g:dracula#palette.bg        = ['#282A36', 236]
let g:dracula#palette.bgdark    = ['#21222C', 235]

Both themes offer carefully crafted color palettes, but Sonokai provides more granular control over background shades, while Dracula focuses on a simpler, more iconic color scheme. Sonokai's approach may appeal to users who prefer fine-tuning their environment, whereas Dracula's simplicity and recognizable palette contribute to its widespread adoption across various platforms and applications.

2,514

An arctic, north-bluish clean and elegant Vim theme.

Pros of Nord

  • Extensive ecosystem with consistent theming across various applications and platforms
  • Well-documented and actively maintained with a large community
  • Offers a softer, more muted color palette that may be easier on the eyes for long coding sessions

Cons of Nord

  • Limited color variety compared to Sonokai's multiple color schemes
  • May lack the vibrancy and contrast that some developers prefer for syntax highlighting
  • Fewer customization options for fine-tuning the color scheme

Code Comparison

Nord:

highlight Normal guifg=#D8DEE9 guibg=#2E3440
highlight Statement guifg=#81A1C1
highlight Identifier guifg=#88C0D0

Sonokai:

highlight Normal guifg=#e2e2e3 guibg=#2c2e34
highlight Statement guifg=#9ed072
highlight Identifier guifg=#76cce0

Both color schemes provide a dark background with light text, but Sonokai tends to use more saturated colors for syntax highlighting, while Nord opts for a cooler, more subdued palette. Sonokai offers multiple color variants, allowing users to choose between different styles, whereas Nord maintains a consistent Arctic-inspired theme across all implementations.

1,984

Adaptation of one-light and one-dark colorschemes for Vim

Pros of vim-one

  • Offers both light and dark themes, providing more versatility
  • Integrates well with airline and lightline status bars
  • Supports a wide range of programming languages and file types

Cons of vim-one

  • Less frequent updates compared to Sonokai
  • Fewer color scheme variants available
  • May have less consistent syntax highlighting across different languages

Code Comparison

vim-one:

let g:one_allow_italics = 1
colorscheme one
set background=dark

Sonokai:

let g:sonokai_style = 'andromeda'
let g:sonokai_enable_italic = 1
colorscheme sonokai

Both color schemes offer easy configuration options, but Sonokai provides more customization choices for its appearance. vim-one allows users to switch between light and dark backgrounds, while Sonokai focuses on different style variants within a dark theme.

vim-one is a solid choice for users who prefer a more traditional color scheme with both light and dark options. Sonokai, on the other hand, offers a modern and vibrant appearance with multiple style variants, making it ideal for those who want a fresh and customizable look for their Vim editor.

3,603

Molokai color scheme for Vim

Pros of Molokai

  • Longer history and wider adoption, potentially leading to better stability and compatibility
  • Simpler codebase, making it easier to customize or modify
  • Lighter weight with fewer dependencies

Cons of Molokai

  • Less frequent updates and maintenance compared to Sonokai
  • Fewer color scheme variants and customization options
  • Limited support for modern text editors and IDEs

Code Comparison

Molokai:

hi Normal       ctermfg=252 ctermbg=none
hi CursorLine               ctermbg=234   cterm=none
hi CursorLineNr ctermfg=208               cterm=none

Sonokai:

hi Normal       guifg=#e2e2e3 guibg=#2c2e34 ctermfg=250 ctermbg=236
hi CursorLine   guibg=#363944 ctermbg=237   cterm=none
hi CursorLineNr guifg=#e7c664 guibg=NONE    ctermfg=180 ctermbg=NONE cterm=bold

Sonokai offers more detailed color definitions, including GUI colors, while Molokai focuses on terminal colors. Sonokai also provides more specific styling options, such as bold text for CursorLineNr.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

𝐃𝐞𝐟𝐚𝐮𝐥𝐭

sonokai-default default

𝐀𝐭𝐥𝐚𝐧𝐭𝐢𝐬

sonokai-atlantis atlantis

𝐀𝐧𝐝𝐫𝐨𝐦𝐞𝐝𝐚

sonokai-andromeda andromeda

𝐒𝐡𝐮𝐬𝐢𝐚

sonokai-shusia shusia

𝐌𝐚𝐢𝐚

sonokai-maia maia

𝐄𝐬𝐩𝐫𝐞𝐬𝐬𝐨

sonokai-espresso espresso

Sometimes I need a high contrast color scheme, and I think monokai is one of the best solutions, it's very beautiful and vivid.

However there is one thing I can't stand -- the contrast is too high, which is totally unacceptable for me.

This color scheme is based on Monokai Pro, the contrast is adjusted to be a bit lower while keeping the colors vivid enough.

The shusia, maia and espresso variants are basically modified versions of Monokai Pro. I'm not going to port all variants of Monokai Pro because I don't like some of them. In addition, I designed some new variants inspired by other color schemes.

Features

  • High contrast but within acceptable range.
  • Vivid colors.
  • Highly customizable.
  • Rich support for common file types and plugins.
  • Tree-sitter support.
  • Semantic highlighting support.
  • Italic support 🎉

Documentation

See :help sonokai.txt

Related Projects

See this wiki page.

Contributing

See this post.

More Color Schemes

Inspirations

Maintainers

Sainnhe ParkAntoine Cotten
Sainnhe ParkAntoine Cotten

License

MIT © sainnhe