Code Monkey home page Code Monkey logo

kak-one's Introduction

kak-one

One Light and One Dark colorschemes for Kakoune. Based on vim-one. Includes an additional One Darker colorscheme, which has higher contrast than One Dark and the coloring of variables and operators is swapped.

Installation

Install the files in the colors subdirectory in (kak configuration)/colors, or use a plugin manager.

Usage

Enable one of the themes with colorscheme <name>:

  • one-light, one-light-16
  • one-dark, one-dark-16
  • one-darker, one-darker-16

16-color variants

There is a 16-color variant of each theme available that uses your base terminal colors. To achieve the correct theme, you will need to set your terminal colors accordingly.

Color option expansions (explained below) are not available in 16-color variants - use the ANSI color names instead.

one-light-16, one-dark-16, one-darker-16

Foot color configuration for one-darker-16

[colors]
foreground=abb2bf # white
background=181a1f # black
selection-foreground=181a1f # black
selection-background=61afef # blue
regular0=282c34 # black
regular1=e06c75 # red
regular2=98c379 # green
regular3=e5c07b # yellow
regular4=61afef # blue
regular5=c678dd # magenta
regular6=56b6c2 # cyan
regular7=abb2bf # white
bright0=70798a # bright black
bright1=e06c75 # bright red
bright2=98c379 # bright green
bright3=d19a66 # bright yellow
bright4=61afef # bright blue
bright5=c678dd # bright magenta
bright6=56b6c2 # bright cyan
bright7=ffffff # bright white
dim1=7c434a # dim red
dim2=586e4c # dim green
dim3=7e6d4d # dim yellow
dim4=3c6487 # dim blue
dim5=6f497e # dim magenta
dim6=376870 # dim cyan
dim7=70798a # dim white (comment color)

Plugin support

kak-one includes colors for the following plugins:

  • kak-lsp
    • LSP info boxes are syntax highlighted
    • Inlay hints inherit from the type face, with a dim modifier
    • Special enum and parameter faces are provided for semantic highlighting (requires configuration in kak-lsp.toml)
      • enum is cyan
      • parameter is italicized and uses the variable color
    • LSP diagnostics are colored as:
      • Error: red
      • Warning: yellow
      • Info: blue
      • Hint: bright white / dark black (in dark and light themes respectively)
    • Inline diagnostics are represented with colored curly underlines - this feature may not work on all terminal emulators
    • Other references to the current symbol are highlighted in a slightly lighter background color
  • kak-rainbower
    • Brackets are colored yellow, magenta, and blue

Using scheme constructs in your own scripts

You can use the scheme colors and other properties in your own scripts by using the following options in expansions:

add-highlighter global/trailing-whitespaces regex "(\h+)$" "1:default,rgba:%opt{darkred}%opt{selectionalpha}"

Colors

  • fg

  • bg

  • subbg

  • lightred

  • darkred

  • green

  • lightorange

  • darkorange

  • blue

  • magenta

  • cyan

  • comment

Transparencies

  • cursoralpha
  • selectionalpha

Other

  • menuselection (cursor color adjusted for ths subbg background, since menus do not support transparency)

Feature screenshots

Alpha-blended selections

Obvious secondary selections

kak-lsp diagnostics

Curly and/or colored underlines may not display on all terminal emulators.

kak-one's People

Contributors

raiguard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

kak-one's Issues

Source base theme

one-darker.kak

# Internal variables
declare-option -hidden str one_path %sh(dirname "$kak_source")

# Color palette
source "%opt{one_path}/one-dark.kak"

# Color variants
...

# Faces
...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.