Usage

the function `color(Red)`

The basic function has more than meets the eye. Essentially it outputs the color you want, taken from the current colorset.

arguments

value

The name of the color

opacity

the amount of opacity from 0 to 1. Default: 1

colorset

Search for the color in another defined colorset. Default: 'default'

define another colorset

The basic function comes with a default colorset. This colorset can ben changed, extended or overwritten by another colorset. This example shows how to define another colorset.

Set a new custom colorset

A fully new colorset can be set also using the same way, instead of a string (name) for the $default-colorset, you pass a map. Make sure this map has atleast 'Black' and 'White' defined, otherwise the colorset will fall back to the default colorset defined in svd-style

Add custom colors to the default colorset.

Defining a full new colorset is not always the best options, sometimes you just want to add some colors or overwrite existing colors.

svd.im — playground

Svd.im is the online playground of Sil van Diepen. You can find here small little projects and test Sil has been making. Nothing of this is ready, tested, done or anything. It's just for testing and fun. Feel free to check it out.