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

@hazae41/labase

v1.0.31

Published

The Tailwind framework for monochrome apps

Downloads

368

Readme

LaBase

The Tailwind framework for monochrome apps

npm i @hazae41/labase

Node Package 📦

Features

  • 100% CSS
  • Made for Tailwind 4.0
  • Easy setup

Setup

@import "../node_modules/@hazae41/labase/src/index.css";

Usage

Text

You can use text-default for a black text in light mode and a white text in dark mode

function Example() {
  return <div className="text-default">
    This text will be black in light mode and white in dark mode
  </div>
}

And you can use text-opposite for a white text in light mode and a black text in dark mode

function Example() {
  return <div className="text-opposite">
    This text will be white in light mode and black in dark mode
  </div>
}

You also have text-default-contrast and text-opposite-contrast for the same color but with less opacity (e.g. secondary text)

Background

You can use bg-default for a white background in light mode and a black background in dark mode

function Example() {
  return <div className="bg-default">
    This div will be white in light mode and black in dark mode
  </div>
}

And you can use bg-opposite for a black background in light mode and a white background in dark mode

function Example() {
  return <div className="bg-opposite">
    This div will be black in light mode and white in dark mode
  </div>
}

You have bg-default-contrast and bg-opposite-contrast for low opacity (e.g. div inside div)

function Example() {
  return <div className="bg-default-contrast">
    This div will contrast with its parent
  </div>
}

And you have bg-default-double-contrast and bg-opposite-double-contrast for high opacity (e.g. effect on already contrasted background)

function Example() {
  return <div className="bg-default-contrast hover:bg-default-double-contrast">
    This div will contrast with its parent and contrast again on hover
  </div>
}

Border

You can use border-default and border-opposite

function Example() {
  return <div className="border-default">
    This div will have a black border in light mode and a white border in dark mode
  </div>
}

Along with border-default-contrast and border-opposite-contrast

function Example() {
  return <div className="border-default-contrast">
    This div will contrast with its parent 
  </div>
}

On every side

function Example() {
  return <div className="border-x-contrast">
    This div will only have a border on the left and on the right
  </div>
}

Divide and outline

They both have the same classes as border-* without the side-specific ones

Safe padding and margin

You can use p-safe and m-safe and their side-specific variants

function Example() {
  return <main className="p-safe">
    This will avoid browser interface
  </div>
}

This will use the safe-area-inset-* value

Oblong padding and margin

You can use oblong padding or margin to have more padding or margin on the x-axis than on the y-axis

function Example() {
  return <main className="po-4">
    This will have px-8 and py-4
  </div>
}

Scrollbars

You can use scrollbar-default and scrollbar-opposite to style scrollbars

function Example() {
  return <main className="bg-opposite text-opposite scrollbar-opposite h-[200px] overflow-auto">
    This div will have everything opposite-colored
  </div>
}

Animations

You can use animations such as

  • animate-opacity-in and animate-opacity-out

  • animate-scale-in and animate-scale-out

  • animate-flip-in and animate-flip-out

  • animate-opacity-scale-in and animate-opacity-scale-in

  • animate-scale-xy-in and animate-scale-xy-out

  • animate-scale-xywh-in and animate-scale-xywh-out

  • animate-vibrate-loop

Dark mode

Dark mode is automatic based on system, but you can also force it on a subtree with data-theme="dark"

function Example() {
  return <main className="">
    <div className="bg-default">
      This will depend on the system
    </div>
    <div className="bg-default"
      data-theme="dark">
      This will always be dark
    </div>
  </div>
}