Giter Club home page Giter Club logo

nova_cs's Introduction

Nova CS

You want to make neovim use your own colors but creating an entire color scheme is too much? Nova CS is the solution! Specify only 14 main colors and nova cs will calculate all the different color shades based on them.

Nova cs automatically creates lua table as a separate file.

Usage

Your palette should be written in the alacritty theme format as a toml file.

Here's an example of a correct theme (breeze theme):

[colors.bright]
black      =  "#7f8c8d"
blue       =  "#3daee9"
cyan       =  "#16a085"
green      =  "#1cdc9a"
magenta    =  "#8e44ad"
red        =  "#c0392b"
white      =  "#ffffff"
yellow     =  "#fdbc4b"

[colors.normal]
black      =  "#232627"
blue       =  "#1d99f3"
cyan       =  "#1abc9c"
green      =  "#11d116"
magenta    =  "#9b59b6"
red        =  "#ed1515"
white      =  "#fcfcfc"
yellow     =  "#f67400"

[colors.primary]
background =  "#232627"
foreground =  "#ffffff"

To create the nova cs palette, run this command:

$ nova_cs -i {INPUT_FILE} -o {OUTPUT_FILE}

where {INPUT_FILE} is the input file name, {OUTPUT_FILE} is the output file name. For example:

$ nova_cs -i breeze.toml -o breeze.lua

Compiling

To compile run this:

$ cargo run --release

Examples

Here are screenshots of neovim using nova_cs_example_theme and different palettes:

Breeze:

breeze

Darktooth:

darktooth

Everforest:

everforest

Ubuntu:

ubuntu

Wombat:

wombat

TODO

Here's what is planned to be implemented:

  1. Allowing various common terminal color scheme formats (currently only alacritty format supported).
  2. Supporting different output formats (currently only lua format for neovim is supported).
  3. Better support for light themes.

P.S.

Black and white colors are ignored because there is barely any useful assumption that can be made about them. Is black same as background? Or lighter? Or is it even black (some light themes use white for 'black'). Black and white cannot really be used reasonably in a color scheme, so they are ignored.

nova_cs's People

Contributors

5ohue avatar

Stargazers

Onam Hernandez avatar Mario Gutierrez avatar Ding Yongyu avatar  avatar Henry Peeples avatar  avatar Eric Hansson avatar Jasmin avatar Muh Ibnu Habil Hanafi avatar  avatar Ding avatar Stefanos Mitropoulos avatar StellarCoder avatar

Watchers

 avatar

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.