Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

itty-chroma

Package Overview
Dependencies
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

itty-chroma

Powerful styling for the browser console in under 500 bytes.

  • 0.1.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
47
increased by4.44%
Maintainers
0
Weekly downloads
 
Created
Source

itty-chroma

Version Bundle Size Coverage Status Issues Discord

v1 Documentation  |   Discord


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'

// you can keep it simple
chroma.red.bold.underline.log('This is bold, red, underlined text')

// or go wild
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!'
)

image

Keywords

FAQs

Package last updated on 16 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc