Git Product home page Git Product logo

haru's Introduction

haru

Spring color palette and color definitions for text editors
https://haru067.github.io/haru/

Usage

See ./dist

Development

Publish color schemes from color pallet

Colors are defined in yaml

$ cat src/haru.yml
yellow     : "deb757"
green      : "b7dd6c"
...

Append other formats

$ python format.py src/haru.yml
yellow     : "deb757"
yellow-r     : 0.3411764705882353
yellow-b     : 0.7176470588235294
yellow-g     : 0.8705882352941177
green      : "b7dd6c"
...

Replace template values with these colors. Template files are written by mustache

foo.html.mustache
<p style="color:#{{yellow}};">foo</p>
โ†“
foo.html
<p style="color:#deb757;">foo</p>

these tasks are executed by build.sh

Create templates

Use convert script to create template files from editor-generate files. This script simply replace matching colors from specified yaml file

$ python template-generator.py ./src/haru.yml ./sample/vscode-colortheme.json

haru's People

Contributors

haru067 avatar

Stargazers

hota avatar Suguru Inatomi 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.