Powerful styling for the browser console in under 500 bytes.
Features
- Tiny. It's an itty library, after all.
- Made specifically for the browser console.
- Loads of styling options, with infinite combinations.
- Simple and powerful API.
Example
import { chroma } from 'itty-chroma'
chroma.red.bold.underline.log('This is bold, red, underlined text')
const badge = chroma.padding('3px 6px').bg('#444').color('white').radius('0.3rem')
const description = chroma.italic.color('#666').size('0.9em')
chroma.log(
badge('Did You Know?'),
description,
'this is now in smaller, italic text',
'and so is this... until we switch styles again',
chroma.none,
'but this is back to normal!'
)