mirror of
https://github.com/tonogram/rabbit
synced 2026-01-14 03:01:31 +00:00
No description
| src | ||
| tests | ||
| .gitignore | ||
| LICENSE | ||
| rabbit.nimble | ||
| README.md | ||
rabbit
nimble install rabbit
Rabbit brings the Hundred Rabbits theme ecosystem to Nim.
Usage is really simple.
import rabbit
# Load a theme!
var theme = readTheme("june.svg")
# Get the colors!
echo theme.background
echo theme.f_high.toHex()
echo theme.f_med.toHexAlpha()
echo theme.f_low.toHtmlHex()
echo theme.f_inv.toHtmlHexTiny()
echo theme.b_high.toHtmlRgb()
echo theme.b_med.toHtmlRgba()
echo theme.b_low
echo theme.b_inv.toHex()
Rabbit doesn't support the JS target, mainly because doing so would be pointless.
