Giter VIP home page Giter VIP logo

benbusby / colorstorm Goto Github PK

View Code? Open in Web Editor NEW
164.0 9.0 8.0 18.97 MB

A color theme generator for editors and terminal emulators

Home Page: https://marketplace.visualstudio.com/items?itemName=benbusby.earthbound-themes

License: MIT License

Less 2.11% Makefile 6.24% Zig 71.22% Shell 3.37% Vim Script 17.06%
editor-theme theme dark-theme dark-syntax-theme vscode-theme vim-colorscheme atom-theme sublime-theme intellij-theme color-themes

colorstorm's Introduction

๐ŸŽจ A command line tool to generate color themes for editors (Vim, VSCode, Sublime, Atom) and terminal emulators (iTerm2, Hyper).

MIT License GitHub release build


Contents

  1. Install
  2. Usage
  3. Creating Themes
  4. Screenshots

Install

Arch Linux (AUR)

yay -S colorstorm

Other distros

In progress, check back soon!

From Source

  • Install Zig
  • Run: make release
  • Move zig-out/bin/colorstorm into your PATH

Usage

$ colorstorm [-o outdir] [-g generator] input

-o|--outdir: The directory to output themes to (default: "./colorstorm-out")
-g|--gen:    Generator type (default: all)
             Available types: all, atom, vscode, vim, sublime, iterm, hyper
-i|--input:  The JSON input file to use for generating the themes
             See: https://github.com/benbusby/colorstorm#creating-themes

Supported Editors

  • Vim
  • VSCode
  • Sublime
  • Atom

Supported Terminal Emulators

  • iTerm2
  • Hyper

Creating Themes

You can create themes for all available editors and terminal emulators using a single JSON file to define the colors. The file should be an array (even for one theme), with the following structure:

[
    {
        "theme_name_full": "Moonside",
        "theme_name_safe": "moonside",
        "color_bg_main": "#000000",
        "color_bg_alt1": "#080808",
        "color_bg_alt2": "#131313",
        "color_fg": "#ffffff",
        "color_linenr": "#9e5dc8",
        "color_select": "#5a1359",
        "color_type": "#f6f929",
        "color_accent": "#fd35fa",
        "color_string": "#ff6693",
        "color_boolean": "#fd9935",
        "color_variable": "#c67ff4",
        "color_number": "#aaef64",
        "color_comment": "#7ca454",
        "color_function": "#5e9aff"
    },
    {
        ...
    }
]

Value names are mostly self-explanatory, but here is a breakdown of what each field means:

Field Explanation
theme_name_full The full name of the theme that will appear in theme file documentation
theme_name_safe The value to use as the filename for the theme
color_bg_main Primary background color
color_bg_alt1 A separate background color to use for UI elements like file trees and tab bars
color_bg_alt2 A separate background color to use for UI elements like line numbers and gutters
color_fg The foreground color (all generic text)
color_linenr The color used for line numbers
color_select The color used for selecting a word or lines of text
color_type The color used for variable types (int, float, etc)
color_accent An "accent" color -- typically used for special cases (like current line number highlight or badge backgrounds)
color_string The color used for strings
color_boolean The color used for boolean values
color_variable The color used for variable instances and constants
color_number The color used for numeric values
color_comment The color used for code comments
color_function The color used for function names

Screenshots

Vim Installs VSCode Installs Package Control APM

Earthbound

Earthbound Screenshot

Moonside

Moonside Screenshot

Zombie Threed

Zombie Threed Screenshot

Fire Spring

Fire Spring Screenshot

Devil's Machine

Devil's Machine Screenshot

Dusty Dunes

Dusty Dunes Screenshot

Magicant (Light Theme)

Magicant Screenshot

Cave of the Past (Monochrome)

Cave of the Past Screenshot

colorstorm's People

Contributors

benbusby avatar github-actions[bot] 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

colorstorm's Issues

Font Used In Screenshots

Hey, I was just wonder what font was used in the screenshots. Its nowhere on the page and I was really curious what its called/if I could have a link to it.

IntelliJ support

There's a rough demo of the Cave of the Past theme available for IntelliJ, but still need to add and refine the others for IntelliJ editors.

Syntax theme not changing in Atom 1.53.0 on Windows 8.1 or 10

I have installed this theme in fresh installs of Atom 1.53.0 on a Windows 8.1 and Windows 10 OS. The syntax theme is installed via the Atom installer and shows that it is selected and changing via config.cson, but the file editing window is unaffected. Deprecation cop does show some Deprecated Selectors, but suggests that they are being automatically corrected. I'm new to Atom, so apologies if I have missed a requirement. Are there dependencies/packages for this syntax theme that I would need on a fresh Atom install?

Thanks for the beautiful themes!

Theme Request

Hi BenBusby,

is it possible to create this theme for iterm2 as well as hyper terminal? I request you please do it

Error when doing `make release`

Hi, I want to make colorschemes using your project. But I am facing some errors and I don't know Zig.

Here's how to reproduce.

$ zig version
0.9.0
$ cd colorstorm
$ make release
zig build -Drelease-safe=true
/Users/anshul.chauhan/playground/vscode/colorstorm/src/templator.zig:101:25: error: unused loop index capture
        for ("RGB") |c, i| {
                        ^
colorstorm...The following command exited with error code 1:
/Users/anshul.chauhan/.brew/Cellar/zig/0.9.0/bin/zig build-exe /Users/anshul.chauhan/playground/vscode/colorstorm/src/main.zig -OReleaseSafe --cache-dir /Users/anshul.chauhan/playground/vscode/colorstorm/zig-cache --global-cache-dir /Users/anshul.chauhan/.cache/zig --name colorstorm --enable-cache
error: the following build command failed with exit code 1:
/Users/anshul.chauhan/playground/vscode/colorstorm/zig-cache/o/08dec60946b61bcb15763e4603c3e8fb/build /Users/anshul.chauhan/.brew/Cellar/zig/0.9.0/bin/zig /Users/anshul.chauhan/playground/vscode/colorstorm /Users/anshul.chauhan/playground/vscode/colorstorm/zig-cache /Users/anshul.chauhan/.cache/zig -Drelease-safe=true
make: *** [release] Error 1

This seemed trivial, so I fixed it by doing

-         for ("RGB") |c, i| {
+         for ("RGB") |c| {

And then I tried to make again and got this error

$ make release
zig build -Drelease-safe=true
./src/main.zig:24:15: error: expected type '*std.mem.Allocator', found '*const (bound fn(*std.heap.arena_allocator.ArenaAllocator) std.mem.Allocator)'
    a = &arena.allocator;
              ^
./src/main.zig:24:15: note: cast discards const qualifier
    a = &arena.allocator;
              ^
./src/main.zig:57:5: note: referenced here
    try parse_args();
    ^
colorstorm...The following command exited with error code 1:
/Users/anshul.chauhan/.brew/Cellar/zig/0.9.0/bin/zig build-exe /Users/anshul.chauhan/playground/vscode/colorstorm/src/main.zig -OReleaseSafe --cache-dir /Users/anshul.chauhan/playground/vscode/colorstorm/zig-cache --global-cache-dir /Users/anshul.chauhan/.cache/zig --name colorstorm --enable-cache
error: the following build command failed with exit code 1:
/Users/anshul.chauhan/playground/vscode/colorstorm/zig-cache/o/08dec60946b61bcb15763e4603c3e8fb/build /Users/anshul.chauhan/.brew/Cellar/zig/0.9.0/bin/zig /Users/anshul.chauhan/playground/vscode/colorstorm /Users/anshul.chauhan/playground/vscode/colorstorm/zig-cache /Users/anshul.chauhan/.cache/zig -Drelease-safe=true
make: *** [release] Error 1

Update dark theme alts

A user requested dark themes with a neutral, dark background, which should be easy to add for each editor. Using #080808 seemed like a good enough choice and looked fine in Vim.

  • Vim
  • VSCode
  • Atom
  • Sublime

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.