Skip to main content
Module

x/crayon/src/styles.ts

🖍️ Terminal styling done light and fast.
Latest
import * as crayon from "https://deno.land/x/crayon@3.3.3/src/styles.ts";

Variables

Map containing all supported attributes

Map containing all 4bit colors

Functions

Generate StyleCode from 3bit (8) color pallete

Generate StyleCode from 4bit (16) color pallete

Generate StyleCode from 8bit (256) color pallete

Generate StyleCode from HEX value - 24bit (16.7m) color pallete

Generate StyleCode from HSL values - 24bit (16.7m) color pallete

Retrieve style using string

Generate StyleCode from RGB values - 24bit (16.7m) color pallete

Type Aliases

All supported attributes

Names for all 4bit colors

Every possible style

ANSI escape code