Skip to content

s0cks/flexoki.libsonnet

Repository files navigation

flexoki.libsonnet

This repository contains Jsonnet code for working w/ the Flexoki color palette

Dependencies

You will need the following

  • jsonnet
  • task Optional, makes working w/ Jsonnet easier

Including in a Jsonnet project

Using git submodules

First you need to add this as a submodule to your git repo:

git submodule add https://github.com/s0cks/flexoki.libsonnet

Then you will need to include this using the -J flag when running Jsonnet:

# ex:
jsonnet \
    -J flexoki.libsonnet/ \
    ....

Now you can import this in your Jsonnet projects like such:

// import the lib:
local flexoki = import 'lib/flexoki.libsonnet';
// for the dark palette:
local FlexokiDarkPalette = flexoki.Dark;
// for the light palette:
local FlexokiLighPalette = flexoki.Light;
....

Generating color palettes

You can generate a set of json files containing all the colors and aliases available for both the dark & light variants:

Using task:

task # default, runs: task build
# or
task default
# or
task build

Manually:

jsonnet \
    -J . \
    -S \
    -m . \
    flexoki.jsonnet

check the generated palettes:

 cat palette-dark.json
 # or
 cat palette-light.json

Credits

License

See LICENSE

Contributing

See Contributing

About

Jsonnet library for generating configurations & themes using Flexoki colors

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published