• Stars
    star
    607
  • Rank 73,845 (Top 2 %)
  • Language
    Vim Script
  • License
    ISC License
  • Created almost 5 years ago
  • Updated 27 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Xcode 11’s dark and light colourschemes for Vim

vim-colors-xcode

A number of Xcode’s colourschemes, now for (Neo)Vim!

High contrast variants are available
xcodedark xcodedarkhc (high-contrast)

xcodelight xcodelighthc (high-contrast)
Installation

Use your favorite runtimepath/plugin manager. If you don’t have one, I recommend Plug:

Plug 'arzg/vim-colors-xcode'

Or, alternatively, you can install the old-fashioned way by copying the relevant directories right into ~/.vim:

$ git clone https://github.com/arzg/vim-colors-xcode.git
$ cp -r vim-colors-xcode/{autoload,colors,doc} ~/.vim
Language Support

These colourschemes have been carefully tuned for the following language plugins:

Plugin Support

These plugins are specifically supported:

To get the closest experience to Xcode it is recommended that you use the following configuration for Signify:

let g:signify_sign_add    = ''
let g:signify_sign_change = ''
let g:signify_sign_delete = ''

let g:signify_sign_show_count = 0 " Don’t show the number of deleted lines.

Xcode updates its Git gutter signs immediately upon editing. To achieve this you can add the following to your vimrc:

" Update Git signs every time the text is changed
autocmd User SignifySetup
            \ execute 'autocmd! signify' |
            \ autocmd signify TextChanged,TextChangedI * call sy#start()
Options

Use :help xcode<variant>, where variant is either dark, darkhc, light, lighthc, or wwdc, to view a list of all the possible options and their default values. Add g:xcode<variant>_ in front of every option name for use. For example, emph_funcs would turn into g:xcodedarkhc_emph_funcs if you want it to apply to the dark high contrast variant and g:xcodelight_emph_funcs for the light version.

Note that I’ve only added screenshots of the light and dark variants for the options below for reasons of brevity.

Comment Style
  • This option does not exist in the WWDC colourscheme
  • The default value is 0
green_comments Dark Light
0
1
Punctuation Dimming
  • This option is available in all colourschemes
  • The default value is 1
dim_punctuation Dark Light
0
1
Syntax Item Emphasis
  • This option is available in all colourschemes
  • The default values are 1, 0 and 0, for emph_types, emph_funcs and emph_idents respectively
emph_types, emph_funcs, emph_idents Dark Light
1,
0,
0
0,
1,
0
0,
1,
1
MatchParen style
  • This option is available in all colourschemes
  • The default value is 0
match_paren_style Dark Light
0
1
Usage

First, add one of the following lines to your Vim configuration.

The standard theme:

colorscheme xcode

Or the high contrast version:

colorscheme xcodehc

Either version will change appearance based on background's value (light or dark).

You may also specify a theme variant specifically, bypassing the automatic background feature. This method is the only way to access the xcodewwdc theme.

colorscheme xcodedark
colorscheme xcodedarkhc
colorscheme xcodelight
colorscheme xcodelighthc
colorscheme xcodewwdc

If you’re using a GUI, then this is all the setup you need. However, if you’re planning to use vim-colors-xcode in a terminal, the terminal must support 24-bit colour, also known as True Colour. This can be enabled through the use of the following setting:

set termguicolors

If you want other terminal output to match with vim-colors-xcode, then set its colours to match the ones below:

Dark Palette
Colour Normal Bright
Black #414453 #7f8c98
Red #ff8170 #ff8170
Green #78c2b3 #acf2e4
Yellow #d9c97c #ffa14f
Blue #4eb0cc #6bdfff
Magenta #ff7ab2 #ff7ab2
Cyan #b281eb #dabaff
White #dfdfe0 #dfdfe0
Foreground #dfdfe0
Background #292a30
Dark High Contrast Palette
Colour Normal Bright
Black #43454b #838991
Red #ff8a7a #ff8a7a
Green #83c9bc #b1faeb
Yellow #d9c668 #ffa14f
Blue #4ec4e6 #6bdfff
Magenta #ff85b8 #ff85b8
Cyan #cda1ff #e5cfff
White #ffffff #ffffff
Foreground #ffffff
Background #1f1f24
Light Palette
Colour Normal Bright
Black #b4d8fd #8a99a6
Red #d12f1b #d12f1b
Green #3e8087 #23575c
Yellow #78492a #78492a
Blue #0f68a0 #0b4f79
Magenta #ad3da4 #ad3da4
Cyan #804fb8 #4b21b0
White #262626 #262626
Foreground #262626
Background #ffffff
Light High Contrast Palette
Colour Normal Bright
Black #b4d8fd #8a99a6
Red #ad1805 #ad1805
Green #355d61 #174145
Yellow #78492a #78492a
Blue #0058a1 #003f73
Magenta #9c2191 #9c2191
Cyan #703daa #441ea1
White #000000 #000000
Foreground #000000
Background #ffffff
WWDC Palette
Colour Normal Bright
Black #494d5c #7f869e
Red #bb383a #bb383a
Green #94c66e #94c66e
Yellow #d28e5d #d28e5d
Blue #8884c5 #8884c5
Magenta #b73999 #b73999
Cyan #00aba4 #00aba4
White #e7e8eb #e7e8eb
Foreground #e7e8eb
Background #292c36

iTerm presets for all these palettes are included with this repository.

If you would like to have italic comments, add the following to your vimrc:

augroup vim-colors-xcode
    autocmd!
augroup END

autocmd vim-colors-xcode ColorScheme * hi Comment        cterm=italic gui=italic
autocmd vim-colors-xcode ColorScheme * hi SpecialComment cterm=italic gui=italic

Made in Colortemplate, the Toolkit for Vim Colourscheme Designers.

The font in the screenshots is SF Mono, which you can download from Apple’s website.

More Repositories

1

eldiro

Learn to make your own programming language with Rust
Rust
253
star
2

vim-substrata

A cold, dark colourscheme for Vim
Vim Script
194
star
3

vim-rust-syntax-ext

A Vim plugin that enhances Rust syntax highlighting
Vim Script
120
star
4

sema

A theme that focuses on what’s important
Rust
103
star
5

vim-corvine

The Raven Dark colourscheme for Vim, rebuilt and modified with Colortemplate
Vim Script
77
star
6

etcetera

An unopinionated Rust library for locating configuration, data and cache directories across platforms
Rust
70
star
7

vim-strand

A barebones Vim plugin manger written in Rust
Rust
47
star
8

eventree

A library for immutable lossless syntax trees in Rust
Rust
28
star
9

vim-swift

A Swift syntax plugin for Vim that aims to match Xcode’s level of detail (WIP)
Vim Script
19
star
10

jsonl

An implementation of JSON Lines for Rust
Rust
16
star
11

vim-plan9

A colourscheme inspired by https://github.com/plan9-for-vimspace/acme-colors
Vim Script
13
star
12

icefall

A cold, clear theme
Rust
12
star
13

intellij-theme

A faithful port of IntelliJ’s themes to VS Code
Rust
11
star
14

lunacookies.github.io

HTML
10
star
15

polytextum

Generate articles and reports from markdown files using pandoc and LaTeX
TeX
8
star
16

rustdoc-theme

A set of VS Code themes that match the themes of rustdoc
Rust
8
star
17

vim-mayanfog

A minimal version of the Mayansmoke colourscheme for Vim
Vim Script
8
star
18

vim-sh

Vim Script
7
star
19

blog

My personal website
HTML
7
star
20

apprentice-vscode

romainl/Apprentice for VS Code!
Rust
6
star
21

sorcisto

A theme based on Apprentice and Sorcerer
Rust
6
star
22

xcode-theme

Xcode’s themes, ported to VS Code
Rust
5
star
23

lang

SCSS
5
star
24

minic

C
4
star
25

fjord

Rust
3
star
26

dotfiles-old

🏡 my dotfiles
Shell
3
star
27

expr-parser

Rust
3
star
28

vim-glance

Vim plugin to search in the current screen
Vim Script
3
star
29

tincture

A Rust library for converting colors between different color spaces
Rust
3
star
30

fictional-dollop

Rust
2
star
31

seoul8

A lifepillar/vim-colortemplate rewrite of junegunn/seoul256.vim with some personal tweaks
Vim Script
2
star
32

syntax-rust

Provides highlighting for Rust code.
Rust
2
star
33

noel

Rust
2
star
34

mottle

Create themes for VS Code with ease
Rust
2
star
35

polyp

An experiment inspired by https://matklad.github.io/2019/11/16/a-better-shell.html
Rust
2
star
36

psychic-telegram

WIP systems programming language that compiles to C
2
star
37

vim-oldbook8

KKPMW/oldbook-vim rebuilt in Colortemplate
Vim Script
2
star
38

gradient

A basic CLI gradient image generator with Oklab and Oklch
Rust
2
star
39

simple-kpc

dumb flaky c library for measuring perf counters easily on macos
C
2
star
40

vim-apparition

Vim Script
1
star
41

haze

random repo name lol
Rust
1
star
42

terminal

Rust
1
star
43

n-times-faster

C
1
star
44

attoutils

A Rust reimplementation of some *nix utils for educational purposes
Rust
1
star
45

didactic-eureka

WIP systems programming language
Rust
1
star
46

vim-tabhelp

Opens vim’s `:help` in a new tab
Vim Script
1
star
47

seoul

A VS Code theme based on seoul256.vim
Rust
1
star
48

slate

A VS Code theme inspired by Spacegray for Sublime Text
Rust
1
star
49

chibicc

yet another language attempt
C
1
star
50

elm-arch-demo

Rust
1
star
51

rschat

A toy chat thing in Rust
Rust
1
star
52

shiny-barnacle

Zig
1
star
53

spectra

Rust
1
star
54

pipes-fast

C
1
star
55

eclipse

VS Code themes based on Eclipse’s defaults
Rust
1
star
56

XPCDemo

Objective-C
1
star
57

FastGaussianBlur

Objective-C
1
star