maxmx03 / schemecraft

Schemecraft is a versatile colorscheme generator designed for Neovim and Vim9. It provides support for multiple variants, allowing users to customize and create unique color schemes tailored to their preferences.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

schemecraft

Neovim Vim LICENSE

Schemecraft is a versatile colorscheme generator designed for Neovim and Vim9. It provides support for multiple variants, allowing users to customize and create unique color schemes tailored to their preferences.

Getting Started

Build

To use Schemecraft, start by building the executable:

go build

Usage

Generate a colorscheme by providing a base JSON file (or YAML)

Create

example 1

schemecraft create scheme.json

output: build/

example 2

schemecraft create scheme.yml scheme-light.yml

Update

Update your colorscheme

schemecraft update nvim scheme.json
schemecraft update vim scheme.json

output: current directory

Template YAML

specification:
  identifier: &identifier
    fg: fg

name: Solarized
author: Max
repo: https://github.com/maxmx03/solarized
contact: ""
config: # you keep this as default
  transparent: false
  on_colors: ~
  on_highlights: ~
  plugins: ~
palette:
  fg: "#FEECE2"
  bg: "#374259"
  comment: "#545B77"
  blue: "#B5C0D0"
highlights:
  editor: # :h highlihts-groups
    - name: Normal
      fg: fg
      bg: bg
      transparent: true
  syntax: # :h group-name
    - name: Comment
      fg: comment
      italic: true
      gui: italic,bold
plugins:
  nvim-treesitter:
    - name: "@variable"
      <<: *identifier
    - name: "@variable.builtin"
      link: Constant

Template JSON

{
  "name": "Solarized",
  "author": "Max",
  "repo": "https://github.com/maxmx03/solarized",
  "contact": "",
  "config": {
    "transparent": false,
    "on_colors": null,
    "on_highlights": null,
    "plugins": null
  },
  "palette": {
    "fg": "#FEECE2",
    "bg": "#374259",
    "comment": "#545B77",
    "blue": "#B5C0D0"
  },
  "highlights": {
    "editor": [
      {
        "name": "Normal",
        "fg": "fg",
        "bg": "bg",
        "transparent": true
      }
    ],
    "syntax": [
      {
        "name": "Comment",
        "fg": "comment",
        "italic": true,
        "gui": "italic,bold"
      }
    ]
  },
  "plugins": {
    "nvim-treesitter": [
      {
        "name": "@variable",
        "fg": "fg"
      },
      {
        "name": "@variable.builtin",
        "link": "Constant"
      }
    ]
  }
}

Schemecraft Colorschemes

Contributing

Feel free to contribute to Schemecraft by opening issues or pull requests. Your feedback and suggestions are highly appreciated.

About

Schemecraft is a versatile colorscheme generator designed for Neovim and Vim9. It provides support for multiple variants, allowing users to customize and create unique color schemes tailored to their preferences.

License:MIT License


Languages

Language:Go 99.5%Language:Nix 0.5%