Simple functional coloring tools for Kotlin
In your gradle file
Follow this guide on how to set up your environment for GitHub packages.
plugins {
id("no.ghpkg") version "0.3.3"
}
repositories {
git.hub("telenornorway", "color.kt")
// or <.. the below> if you're spicy 🌶️
// git.hub("telenornorway")
}
dependencies {
implementation("no.telenor.kt:color:<VERSION HERE>")
// if you want to derive
runtimeOnly("no.telenor.kt:color-env:<VERSION HERE>")
}
println("Hello, ${green("world")}!")
Or with derive:
data class MyStyles @EnvConstructor constructor(
@Env val names: Styles
)