mirror of
https://github.com/daylinmorgan/nimpkgs.git
synced 2025-01-04 15:30:44 -06:00
25 lines
426 B
Nim
25 lines
426 B
Nim
import std/random
|
|
import karax/[kbase, jstrutils]
|
|
|
|
randomize()
|
|
|
|
const colors = [
|
|
"flamingo",
|
|
"pink",
|
|
"mauve",
|
|
"red",
|
|
"maroon",
|
|
"peach",
|
|
"yellow",
|
|
"green",
|
|
"teal",
|
|
"sky",
|
|
"sapphire",
|
|
"blue",
|
|
"lavender"
|
|
]
|
|
let
|
|
accent* = (colors.sample() & " ").kstring
|
|
textStyle* = (" text-ctp-" & accent & " ").kstring
|
|
borderStyle* = (" border rounded b-ctp-" & accent & " ").kstring
|
|
|