[Mirror] Tempus is a collection of themes for Vim, text editors, and terminal emulators that are compliant at the very least with the WCAG AA accessibility standard for colour contrast. This repo contains only the Vim files.
published over 8 years ago
updated almost 5 years ago
1
2
vim.o.background = "dark "
vim.cmd.colorscheme "tempus_future "
NORMAL init.lua unix utf-8 0% 0:2
1
2
3
4
5
6
7
8
9
10
11
12
function ! IsHexColorLight ( color ) abort
let l:raw_color = trim ( a:color , '#' )
let l:red = str2nr ( substitute ( l:raw_color, '.{0}(.{2})' , '1' , 'g' ) , 16 )
let l:green = str2nr ( substitute ( l:raw_color,
1
2
vim.o.background = "dark "
vim.cmd.colorscheme "tempus_winter "
NORMAL init.lua unix utf-8 0% 0:2
1
2
3
4
5
6
7
8
9
10
11
12
function ! IsHexColorLight
1
2
vim.o.background = "dark "
vim.cmd.colorscheme "tempus_night "
NORMAL init.lua unix utf-8 0% 0:2
1
2
3
4
5
6
7
8
9
10
11
12
function ! IsHexColorLight
1
2
vim.o.background = "dark "
vim.cmd.colorscheme "tempus_autumn "
NORMAL init.lua unix utf-8 0% 0:2
1
2
3
4
5
6
7
8
9
10
11
12
function ! IsHexColorLight
1
2
vim.o.background = "dark "
vim.cmd.colorscheme "tempus_warp "
NORMAL init.lua unix utf-8 0% 0:2
1
2
3
4
5
6
7
8
9
10
11
12
function ! IsHexColorLight
1
2
vim.o.background = "light "
vim.cmd.colorscheme "tempus_totus "
NORMAL init.lua unix utf-8 0% 0:2
1
2
3
4
5
6
7
8
9
10
11
12
function ! IsHexColorLight
1
2
vim.o.background = "dark "
vim.cmd.colorscheme "tempus_dusk "
NORMAL init.lua unix utf-8 0% 0:2
1
2
3
4
5
6
7
8
9
10
11
12
function ! IsHexColorLight
1
2
vim.o.background = "light "
vim.cmd.colorscheme "tempus_day "
NORMAL init.lua unix utf-8 0% 0:2
1
2
3
4
5
6
7
8
9
10
11
12
function ! IsHexColorLight
1
2
vim.o.background = "light "
vim.cmd.colorscheme "tempus_dawn "
NORMAL init.lua unix utf-8 0% 0:2
1
2
3
4
5
6
7
8
9
10
11
12
function ! IsHexColorLight
1
2
vim.o.background = "dark "
vim.cmd.colorscheme "tempus_summer "
NORMAL init.lua unix utf-8 0% 0:2
1
2
3
4
5
6
7
8
9
10
11
12
function ! IsHexColorLight
1
2
vim.o.background = "dark "
vim.cmd.colorscheme "tempus_rift "
NORMAL init.lua unix utf-8 0% 0:2
1
2
3
4
5
6
7
8
9
10
11
12
function ! IsHexColorLight
1
2
vim.o.background = "dark "
vim.cmd.colorscheme "tempus_tempest "
NORMAL init.lua unix utf-8 0% 0:2
1
2
3
4
5
6
7
8
9
10
11
12
function ! IsHexColorLight
1
2
vim.o.background = "light "
vim.cmd.colorscheme "tempus_fugit "
NORMAL init.lua unix utf-8 0% 0:2
1
2
3
4
5
6
7
8
9
10
11
12
function ! IsHexColorLight
1
2
vim.o.background = "light "
vim.cmd.colorscheme "tempus_past "
NORMAL init.lua unix utf-8 0% 0:2
1
2
3
4
5
6
7
8
9
10
11
12
function ! IsHexColorLight
1
2
vim.o.background = "dark "
vim.cmd.colorscheme "tempus_classic "
NORMAL init.lua unix utf-8 0% 0:2
1
2
3
4
5
6
7
8
9
10
11
12
function ! IsHexColorLight
1
2
vim.o.background = "dark "
vim.cmd.colorscheme "tempus_spring "
NORMAL init.lua unix utf-8 0% 0:2
1
2
3
4
5
6
7
8
9
10
11
12
function ! IsHexColorLight
'.{2}(.{2}).{2}'
,
'1'
,
'g'
)
,
16
)
let l:blue = str2nr ( substitute ( l:raw_color, '.{4}(.{2})' , '1' , 'g' ) , 16 )
let l:brightness = (( l:red * 299 ) + ( l:green * 587 ) + ( l:blue * 114 )) / 1000
return l:brightness > 155
NORMAL code.vim unix utf-8 50% 6:12
(
color
)
abort
let l:raw_color = trim ( a:color , '#' )
let l:red = str2nr ( substitute ( l:raw_color, '.{0}(.{2})' , '1' , 'g' ) , 16 )
let l:green = str2nr ( substitute ( l:raw_color, '.{2}(.{2}).{2}' , '1' , 'g' ) , 16 )
let l:blue = str2nr ( substitute ( l:raw_color, '.{4}(.{2})' , '1' , 'g' ) , 16 )
let l:brightness = (( l:red * 299 ) + ( l:green * 587 ) + ( l:blue * 114 )) / 1000
return l:brightness > 155
NORMAL code.vim unix utf-8 50% 6:12
(
color
)
abort
let l:raw_color = trim ( a:color , '#' )
let l:red = str2nr ( substitute ( l:raw_color, '.{0}(.{2})' , '1' , 'g' ) , 16 )
let l:green = str2nr ( substitute ( l:raw_color, '.{2}(.{2}).{2}' , '1' , 'g' ) , 16 )
let l:blue = str2nr ( substitute ( l:raw_color, '.{4}(.{2})' , '1' , 'g' ) , 16 )
let l:brightness = (( l:red * 299 ) + ( l:green * 587 ) + ( l:blue * 114 )) / 1000
return l:brightness > 155
NORMAL code.vim unix utf-8 50% 6:12
(
color
)
abort
let l:raw_color = trim ( a:color , '#' )
let l:red = str2nr ( substitute ( l:raw_color, '.{0}(.{2})' , '1' , 'g' ) , 16 )
let l:green = str2nr ( substitute ( l:raw_color, '.{2}(.{2}).{2}' , '1' , 'g' ) , 16 )
let l:blue = str2nr ( substitute ( l:raw_color, '.{4}(.{2})' , '1' , 'g' ) , 16 )
let l:brightness = (( l:red * 299 ) + ( l:green * 587 ) + ( l:blue * 114 )) / 1000
return l:brightness > 155
NORMAL code.vim unix utf-8 50% 6:12
(
color
)
abort
let l:raw_color = trim ( a:color , '#' )
let l:red = str2nr ( substitute ( l:raw_color, '.{0}(.{2})' , '1' , 'g' ) , 16 )
let l:green = str2nr ( substitute ( l:raw_color, '.{2}(.{2}).{2}' , '1' , 'g' ) , 16 )
let l:blue = str2nr ( substitute ( l:raw_color, '.{4}(.{2})' , '1' , 'g' ) , 16 )
let l:brightness = (( l:red * 299 ) + ( l:green * 587 ) + ( l:blue * 114 )) / 1000
return l:brightness > 155
NORMAL code.vim unix utf-8 50% 6:12
(
color
)
abort
let l:raw_color = trim ( a:color , '#' )
let l:red = str2nr ( substitute ( l:raw_color, '.{0}(.{2})' , '1' , 'g' ) , 16 )
let l:green = str2nr ( substitute ( l:raw_color, '.{2}(.{2}).{2}' , '1' , 'g' ) , 16 )
let l:blue = str2nr ( substitute ( l:raw_color, '.{4}(.{2})' , '1' , 'g' ) , 16 )
let l:brightness = (( l:red * 299 ) + ( l:green * 587 ) + ( l:blue * 114 )) / 1000
return l:brightness > 155
NORMAL code.vim unix utf-8 50% 6:12
(
color
)
abort
let l:raw_color = trim ( a:color , '#' )
let l:red = str2nr ( substitute ( l:raw_color, '.{0}(.{2})' , '1' , 'g' ) , 16 )
let l:green = str2nr ( substitute ( l:raw_color, '.{2}(.{2}).{2}' , '1' , 'g' ) , 16 )
let l:blue = str2nr ( substitute ( l:raw_color, '.{4}(.{2})' , '1' , 'g' ) , 16 )
let l:brightness = (( l:red * 299 ) + ( l:green * 587 ) + ( l:blue * 114 )) / 1000
return l:brightness > 155
NORMAL code.vim unix utf-8 50% 6:12
(
color
)
abort
let l:raw_color = trim ( a:color , '#' )
let l:red = str2nr ( substitute ( l:raw_color, '.{0}(.{2})' , '1' , 'g' ) , 16 )
let l:green = str2nr ( substitute ( l:raw_color, '.{2}(.{2}).{2}' , '1' , 'g' ) , 16 )
let l:blue = str2nr ( substitute ( l:raw_color, '.{4}(.{2})' , '1' , 'g' ) , 16 )
let l:brightness = (( l:red * 299 ) + ( l:green * 587 ) + ( l:blue * 114 )) / 1000
return l:brightness > 155
NORMAL code.vim unix utf-8 50% 6:12
(
color
)
abort
let l:raw_color = trim ( a:color , '#' )
let l:red = str2nr ( substitute ( l:raw_color, '.{0}(.{2})' , '1' , 'g' ) , 16 )
let l:green = str2nr ( substitute ( l:raw_color, '.{2}(.{2}).{2}' , '1' , 'g' ) , 16 )
let l:blue = str2nr ( substitute ( l:raw_color, '.{4}(.{2})' , '1' , 'g' ) , 16 )
let l:brightness = (( l:red * 299 ) + ( l:green * 587 ) + ( l:blue * 114 )) / 1000
return l:brightness > 155
NORMAL code.vim unix utf-8 50% 6:12
(
color
)
abort
let l:raw_color = trim ( a:color , '#' )
let l:red = str2nr ( substitute ( l:raw_color, '.{0}(.{2})' , '1' , 'g' ) , 16 )
let l:green = str2nr ( substitute ( l:raw_color, '.{2}(.{2}).{2}' , '1' , 'g' ) , 16 )
let l:blue = str2nr ( substitute ( l:raw_color, '.{4}(.{2})' , '1' , 'g' ) , 16 )
let l:brightness = (( l:red * 299 ) + ( l:green * 587 ) + ( l:blue * 114 )) / 1000
return l:brightness > 155
NORMAL code.vim unix utf-8 50% 6:12
(
color
)
abort
let l:raw_color = trim ( a:color , '#' )
let l:red = str2nr ( substitute ( l:raw_color, '.{0}(.{2})' , '1' , 'g' ) , 16 )
let l:green = str2nr ( substitute ( l:raw_color, '.{2}(.{2}).{2}' , '1' , 'g' ) , 16 )
let l:blue = str2nr ( substitute ( l:raw_color, '.{4}(.{2})' , '1' , 'g' ) , 16 )
let l:brightness = (( l:red * 299 ) + ( l:green * 587 ) + ( l:blue * 114 )) / 1000
return l:brightness > 155
NORMAL code.vim unix utf-8 50% 6:12
(
color
)
abort
let l:raw_color = trim ( a:color , '#' )
let l:red = str2nr ( substitute ( l:raw_color, '.{0}(.{2})' , '1' , 'g' ) , 16 )
let l:green = str2nr ( substitute ( l:raw_color, '.{2}(.{2}).{2}' , '1' , 'g' ) , 16 )
let l:blue = str2nr ( substitute ( l:raw_color, '.{4}(.{2})' , '1' , 'g' ) , 16 )
let l:brightness = (( l:red * 299 ) + ( l:green * 587 ) + ( l:blue * 114 )) / 1000
return l:brightness > 155
NORMAL code.vim unix utf-8 50% 6:12
(
color
)
abort
let l:raw_color = trim ( a:color , '#' )
let l:red = str2nr ( substitute ( l:raw_color, '.{0}(.{2})' , '1' , 'g' ) , 16 )
let l:green = str2nr ( substitute ( l:raw_color, '.{2}(.{2}).{2}' , '1' , 'g' ) , 16 )
let l:blue = str2nr ( substitute ( l:raw_color, '.{4}(.{2})' , '1' , 'g' ) , 16 )
let l:brightness = (( l:red * 299 ) + ( l:green * 587 ) + ( l:blue * 114 )) / 1000
return l:brightness > 155
NORMAL code.vim unix utf-8 50% 6:12
(
color
)
abort
let l:raw_color = trim ( a:color , '#' )
let l:red = str2nr ( substitute ( l:raw_color, '.{0}(.{2})' , '1' , 'g' ) , 16 )
let l:green = str2nr ( substitute ( l:raw_color, '.{2}(.{2}).{2}' , '1' , 'g' ) , 16 )
let l:blue = str2nr ( substitute ( l:raw_color, '.{4}(.{2})' , '1' , 'g' ) , 16 )
let l:brightness = (( l:red * 299 ) + ( l:green * 587 ) + ( l:blue * 114 )) / 1000
return l:brightness > 155
NORMAL code.vim unix utf-8 50% 6:12
(
color
)
abort
let l:raw_color = trim ( a:color , '#' )
let l:red = str2nr ( substitute ( l:raw_color, '.{0}(.{2})' , '1' , 'g' ) , 16 )
let l:green = str2nr ( substitute ( l:raw_color, '.{2}(.{2}).{2}' , '1' , 'g' ) , 16 )
let l:blue = str2nr ( substitute ( l:raw_color, '.{4}(.{2})' , '1' , 'g' ) , 16 )
let l:brightness = (( l:red * 299 ) + ( l:green * 587 ) + ( l:blue * 114 )) / 1000
return l:brightness > 155
NORMAL code.vim unix utf-8 50% 6:12
(
color
)
abort
let l:raw_color = trim ( a:color , '#' )
let l:red = str2nr ( substitute ( l:raw_color, '.{0}(.{2})' , '1' , 'g' ) , 16 )
let l:green = str2nr ( substitute ( l:raw_color, '.{2}(.{2}).{2}' , '1' , 'g' ) , 16 )
let l:blue = str2nr ( substitute ( l:raw_color, '.{4}(.{2})' , '1' , 'g' ) , 16 )
let l:brightness = (( l:red * 299 ) + ( l:green * 587 ) + ( l:blue * 114 )) / 1000
return l:brightness > 155
NORMAL code.vim unix utf-8 50% 6:12
tempus-themes-vim, by protesilaos | vimcolorschemes