npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

lightstair-css

v0.4.0

Published

OKLCH 색상 공간을 기반으로 글자·배경·테두리 색의 밝기 단계를 설정하여 CSS 파일을 생성하는 CLI 도구.

Downloads

443

Readme


Why This Tool

In CSS, you may want to declare and use multiple brightness steps for a given color. However, even for the same perceived brightness, text, background, and border colors require different brightness levels. You also need to match combinations of text, background, and border colors, and account for dark mode. This tool simplifies these processes.

Features

  • Configuration based on the OKLCH color space
  • Export in OKLCH, RGB, and HEX color formats
  • Dark mode support
  • Local server preview
    • Text × Background × Border color combination preview
    • Side-by-side light and dark theme views

Installation

npm install lightstair-css

CLI

Help

lightstair-css --help

Generate Configuration File

lightstair-css init

Creates a default lightstair-css.yml configuration file in the current directory. Skips if a configuration file already exists.

Generate CSS File

lightstair-css [options]

Generates a lightstair-css.css file in the current directory by default. If no configuration file exists, a default one is automatically created.

The default format is OKLCH, and the generated CSS variables use dynamically computed color values. Use the --bake [format] option to generate CSS with pre-computed color values.

/* Default code */
--tx-1: oklch(clamp(0, var(--tx-init-l) + var(--tx-l-gap) * 0, 1) var(--tx-base-c) var(--tx-base-h));

/* Pre-computed code with `--bake oklch` option */
--tx-1: oklch(0.31 0.01 250);

/* Pre-computed code with `--bake rgb` option */
--tx-1: rgb(44.585 48.788 53.291);

/* Pre-computed code with `--bake hex` option */
--tx-1: #2d3135;

Run Preview Server

lightstair-css preview [options]

Open http://localhost:[port] in your browser to view the preview. If no port is specified, a random port is used.

Command Examples

# Show help
lightstair-css --help

# Create default configuration file
lightstair-css init

# Generate CSS with default settings
lightstair-css

# Specify configuration and output files
lightstair-css -c my-config.yml -o dist/my-colors.css

# Generate CSS with pre-computed RGB format
lightstair-css --bake rgb

# Generate CSS with pre-computed HEX format and specify output file
lightstair-css --bake hex -o dist/my-colors.css

# Start preview server
lightstair-css preview

# Start preview server with port and configuration file
lightstair-css preview -p 3000 -c my-config.yml