Convert Figma logo to code with AI

sonph logoonehalf

Clean, vibrant and pleasing color schemes for Vim, Sublime Text, iTerm, gnome-terminal and more.

1,780
236
1,780
64

Top Related Projects

🧛🏻‍♂️ One theme. All platforms.

13,627

Retro groove color scheme for Vim

6,037

An arctic, north-bluish color palette.

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

15,754

precision color scheme for multiple applications (terminal, vim, etc.) with both dark/light modes

Quick Overview

OneHalf is a collection of color schemes for various text editors and terminal emulators. It aims to provide a clean, vibrant, and consistent visual experience across different platforms and applications. The project includes light and dark variants, making it versatile for different user preferences and environments.

Pros

  • Consistent color scheme across multiple platforms and applications
  • Includes both light and dark variants for different preferences
  • Well-documented and easy to install for various editors and terminals
  • Actively maintained with regular updates and improvements

Cons

  • Limited color palette compared to some more extensive color schemes
  • May not be suitable for users who prefer highly customized or unique color schemes
  • Some less common editors or terminals may not have direct support

Getting Started

To use OneHalf in your preferred editor or terminal, follow these general steps:

  1. Visit the OneHalf GitHub repository
  2. Navigate to the folder corresponding to your editor or terminal
  3. Follow the specific installation instructions provided for your platform
  4. Select the OneHalf theme in your editor or terminal settings

For example, to install OneHalf for Vim:

# Clone the repository
git clone https://github.com/sonph/onehalf.git

# Copy or symlink the color scheme files to your Vim colors directory
cp onehalf/vim/colors/*.vim ~/.vim/colors/

# Add the following to your .vimrc
colorscheme onehalfdark
" or
colorscheme onehalflight

# If you use vim-airline, you can also install the theme
cp onehalf/vim/autoload/airline/themes/*.vim ~/.vim/autoload/airline/themes/

Note that the exact installation process may vary depending on your specific editor or terminal. Always refer to the project's documentation for the most up-to-date and accurate instructions.

Competitor Comparisons

🧛🏻‍♂️ One theme. All platforms.

Pros of Dracula

  • Wider adoption and support for more applications and tools
  • More active community and frequent updates
  • Offers a consistent theme across various platforms and environments

Cons of Dracula

  • Less customization options for individual color preferences
  • Darker overall theme may not be suitable for all users or environments
  • Higher contrast might cause eye strain for some users during extended use

Code Comparison

OneHalf:

let s:black       = { "gui": "#282c34", "cterm": "236" }
let s:red         = { "gui": "#e06c75", "cterm": "168" }
let s:green       = { "gui": "#98c379", "cterm": "114" }
let s:yellow      = { "gui": "#e5c07b", "cterm": "180" }
let s:blue        = { "gui": "#61afef", "cterm": "75"  }

Dracula:

let s:fg        = ['#F8F8F2', 253]
let s:bglighter = ['#424450', 238]
let s:bglight   = ['#343746', 237]
let s:bg        = ['#282A36', 236]
let s:bgdark    = ['#21222C', 235]

Both repositories offer color schemes for various text editors and terminal applications. OneHalf provides a balanced, medium-contrast theme with both light and dark variants, while Dracula focuses on a single, high-contrast dark theme. OneHalf may be more suitable for users who prefer a less intense color palette, while Dracula's bold colors and wider adoption make it a popular choice for those who enjoy a more vibrant coding environment.

13,627

Retro groove color scheme for Vim

Pros of Gruvbox

  • More extensive color scheme with a larger palette of colors
  • Wider range of supported applications and platforms
  • Active community with frequent updates and contributions

Cons of Gruvbox

  • Can be visually overwhelming for some users due to its rich color palette
  • May require more configuration to achieve optimal results in certain environments

Code Comparison

Gruvbox color definition:

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

OneHalf color definition:

set t_Co=256
colorscheme onehalfdark
let g:airline_theme='onehalfdark'

Summary

Gruvbox offers a more comprehensive color scheme with broader application support and an active community. However, it may be visually complex for some users and require more setup. OneHalf provides a simpler, more minimalist approach with easier configuration but fewer color options and supported platforms. Both color schemes aim to improve code readability and reduce eye strain, but cater to different preferences in terms of visual aesthetics and complexity.

6,037

An arctic, north-bluish color palette.

Pros of Nord

  • More comprehensive ecosystem with official ports for numerous applications and tools
  • Larger community and more frequent updates
  • Detailed documentation and design guidelines for consistent implementation

Cons of Nord

  • Less flexibility in color customization
  • Potentially overwhelming for users who prefer simpler themes
  • Cooler color palette may not appeal to all users

Code Comparison

Nord:

:root {
  --nord0: #2E3440;
  --nord1: #3B4252;
  --nord2: #434C5E;
  --nord3: #4C566A;
  --nord4: #D8DEE9;
}

OneHalf:

:root {
  --black: #282c34;
  --red: #e06c75;
  --green: #98c379;
  --yellow: #e5c07b;
  --blue: #61afef;
}

Nord offers a more extensive color palette with 16 predefined colors, while OneHalf provides a simpler set of base colors. Nord's approach allows for more consistent theming across various applications, but OneHalf's simplicity may be preferred by some users for easier customization.

Both themes aim to provide a pleasant visual experience for developers, with Nord focusing on a cooler, Arctic-inspired palette and OneHalf offering a balanced mix of colors. The choice between the two ultimately depends on personal preference and the specific needs of the user's development environment.

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

Pros of onedark.vim

  • More focused and specialized for Vim/Neovim environments
  • Extensive language-specific highlighting support
  • Active development with frequent updates and bug fixes

Cons of onedark.vim

  • Limited to Vim/Neovim, not as versatile across different applications
  • Less customization options compared to OneHalf's broader approach
  • Slightly more complex setup process for some users

Code Comparison

OneHalf:

let g:onehalf_colorscheme = "light"
colorscheme onehalfdark
let g:airline_theme='onehalfdark'

onedark.vim:

let g:onedark_termcolors=256
let g:onedark_terminal_italics=1
colorscheme onedark
let g:airline_theme='onedark'

Summary

OneHalf offers a more versatile color scheme solution that works across multiple applications and environments, while onedark.vim provides a more specialized and feature-rich experience for Vim and Neovim users. OneHalf's simplicity in setup and broader compatibility make it appealing for those seeking a consistent theme across different platforms. On the other hand, onedark.vim's focus on Vim-specific features and active development make it an excellent choice for dedicated Vim/Neovim users who prioritize extensive syntax highlighting and regular updates.

15,754

precision color scheme for multiple applications (terminal, vim, etc.) with both dark/light modes

Pros of Solarized

  • Widely adopted and supported across many platforms and applications
  • Carefully designed color palette based on color theory and contrast ratios
  • Includes both light and dark themes for versatility

Cons of Solarized

  • Limited color palette may feel restrictive for some users
  • Can appear washed out on certain displays or in specific lighting conditions
  • Less frequent updates and maintenance compared to more recent color schemes

Code Comparison

Solarized (Vim configuration):

let g:solarized_termcolors=256
set background=dark
colorscheme solarized

OneHalf (Vim configuration):

set t_Co=256
set cursorline
colorscheme onehalfdark
let g:airline_theme='onehalfdark'

Summary

Solarized is a well-established color scheme with widespread adoption and a scientifically-designed palette. It offers both light and dark variants but may feel limited in color options. OneHalf, while newer, provides a fresh take on color schemes with a broader palette and more frequent updates. The choice between the two depends on personal preference, desired color range, and specific use cases.

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

One Half ½ 🎨 🖥

version tag license tag package control

A color scheme for Sublime Text, (Neo)Vim, iTerm, and more. Based on Atom's One.

dark light desktop_dark desktop_light

Table of Contents

Features

                        light     dark
0   normal  black       #383a42   #282c34
1   normal  red         #e45649   #e06c75
2   normal  green       #50a14f   #98c379
3   normal  yellow      #c18401   #e5c07b
4   normal  blue        #0184bc   #61afef
5   normal  magenta     #a626a4   #c678dd
6   normal  cyan        #0997b3   #56b6c2
7   normal  white       #fafafa   #dcdfe4
            foreground  #383a42   #dcdfe4
            background  #fafafa   #282c34

Screenshots

All screenshots are available in the screenshots folder.

Installation & Usage

Vim

Install with Vundle then set colorscheme and g:airline_theme:

Bundle 'sonph/onehalf', {'rtp': 'vim/'}
colorscheme onehalflight
let g:airline_theme='onehalfdark'

Or if you are using lightline, set g:lightline.colorscheme:

let g:lightline.colorscheme='onehalfdark'

If you want your vim and terminal colors to match exactly, you must enable true colors in vim.

For more details and manual installation, see vim README.

Sublime Text 2/3

Install with Package Control.

For more details and manual installation, see sublime text README.

iTerm2

  1. Download the theme files in the iterm folder.
  2. Import the color schemes:
  • Either double click on the files to import.
  • Or open iTerm Preferences > Profiles > Colors > Color Presets > Import then select the downloaded files.
  1. Select Preferences > Profiles > Colors > Color Presets > One Half Light (Dark).

OS X Terminal.app

Download the files in the terminal folder and simply open the files. Terminal.app will automatically recognize and import the color schemes.

Pywal

Copy the files in the wal/colorschemes folder under the matching directories in ~/.config/wal/colorschemes, then enable the schemes (-l is for light theme):

> wal -l --theme one-half-light
# or
> wal --theme one-half-dark

Contributing / Troubleshooting / Bug Reports

Contributions are welcome. Feel free to open an issue if you have problems installing and using the color schemes.