Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 711 Bytes

README.md

File metadata and controls

41 lines (30 loc) · 711 Bytes

Color.kt

Simple functional coloring tools for Kotlin

Dependency

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>")
}

Usage

println("Hello, ${green("world")}!")

Or with derive:

data class MyStyles @EnvConstructor constructor(
	@Env val names: Styles
)