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

lone-star-ui

v0.10.0

Published

A React 19 component library built with TypeScript, Tailwind CSS 4, and CVA. Publishes ESM-only to npm with full type declarations.

Downloads

1,776

Readme

Lone Star UI

npm version license

A React 19 component library built with TypeScript, Tailwind CSS 4, and CVA (Class Variance Authority). Publishes ESM-only to npm with full type declarations.

Storybook user interface

Design Inspiration

Allan Peter's Austin TX Logo rebrand

Installation

bun install lone-star-ui

Peer dependencies: react, react-dom, and typescript.

Usage

Import components and the required stylesheet:

import "lone-star-ui/styles";
import { Button } from "lone-star-ui";

Subpath imports are available for tree-shaking:

import { Button } from "lone-star-ui/button";

Theming

All design tokens are CSS custom properties, so you can override them in your own stylesheet:

:root {
  --color-sky: oklch(60% 0.20 250);
  --color-longhorn: oklch(75% 0.15 50);
  --color-pecan: oklch(40% 0.05 60);
  --color-bluebonnet: oklch(50% 0.20 270);
  --color-mesa: oklch(95% 0.01 80);
  --color-prickly-pear: oklch(65% 0.20 340);
  --color-surface: #fafafa;
  --font-slab: 'Inter', sans-serif;
}

Available tokens

| Token | Default (light) | Description | | --- | --- | --- | | --color-sky | oklch(68% 0.17 205) | Primary teal/turquoise | | --color-longhorn | oklch(71% 0.17 65) | Burnt amber accent | | --color-pecan | oklch(35% 0.07 55) | Warm brown — text/borders | | --color-bluebonnet | oklch(52% 0.19 282) | Violet — primary actions | | --color-mesa | oklch(92% 0.02 78) | Sandstone — neutral backgrounds | | --color-prickly-pear | oklch(62% 0.22 345) | Pink-magenta — destructive/accent | | --color-surface | #ffffff | Page/card background | | --font-slab | 'Zilla Slab', Georgia, serif | Heading/display font |

Dark mode tokens are automatically redefined when the .dark class is applied.

Fonts

The default font (Zilla Slab) is not loaded automatically. To use it, either:

@import 'lone-star-ui/fonts';

Or add a <link> tag to your HTML, or override --font-slab with your own font.

Variant utilities

CVA variant configs are exported so you can apply library styles to custom elements:

import { buttonVariants } from 'lone-star-ui';

<a href="/login" className={buttonVariants({ variant: 'primary', size: 'lg' })}>
  Log in
</a>

The cva function and VariantProps type are also re-exported for building your own variant-driven components:

import { cva, type VariantProps, cn } from 'lone-star-ui';

Development

bun install              # Install dependencies
bun run build            # Build library (Bun.build + tsc declarations)
bun run dev              # Build in watch mode
bun run storybook        # Start Storybook dev server on port 6006
bun run build-storybook  # Build static Storybook
bun run typecheck        # Type-check without emitting

Architecture

Each component lives in src/components/<Name>/ with three files:

  • <Name>.tsx — implementation using CVA for variants + cn() for class merging
  • <Name>.stories.tsx — Storybook stories with interactive play tests
  • index.ts — barrel export

Styling uses Tailwind CSS 4 with CSS custom properties in oklch color space. Consumers must import lone-star-ui/styles for Tailwind classes to work.

Contributing

See CONTRIBUTING.md for guidelines on how to get started.

License

MIT