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

@coston/ui

v0.2.2

Published

React UI component library built on Radix UI and Tailwind CSS

Readme

@coston/ui

React UI components built on Radix UI and Tailwind CSS.

Install

npm install @coston/ui @coston/design-tokens

Peer dependencies: react, react-dom

Setup

1. CSS

Add to your root CSS file, after @import "tailwindcss":

@import 'tailwindcss';
@import '@coston/design-tokens/tailwind.css';
@import '@coston/ui/source.css';

2. Use components

Every component is a named export from its own entry point:

import { Button } from '@coston/ui/button';
import { Card, CardHeader, CardTitle, CardContent } from '@coston/ui/card';
import { Input } from '@coston/ui/input';

export function Example() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Example</CardTitle>
      </CardHeader>
      <CardContent className="flex gap-2">
        <Input placeholder="Enter text" />
        <Button>Submit</Button>
      </CardContent>
    </Card>
  );
}

LLM Usage Instructions

Correct import pattern

// Each component is a named export from a separate entry point
import { Button } from '@coston/ui/button';
import { Card, CardHeader, CardTitle, CardContent } from '@coston/ui/card';
import { cn } from '@coston/ui/lib/utils';
import { useIsMobile } from '@coston/ui/hooks/use-mobile';

Required CSS setup

Components render unstyled without the CSS imports. The setup in your root CSS is mandatory:

@import 'tailwindcss';
@import '@coston/design-tokens/tailwind.css';
@import '@coston/ui/source.css';

Do NOT

  • Do not import from the package root: import { Button } from '@coston/ui' — there is no root export
  • Do not use default imports: import Button from '@coston/ui/button' — all exports are named
  • Do not skip the CSS setup — components will render without styles
  • Do not import @coston/ui/source.css without also importing @coston/design-tokens/tailwind.css — components depend on the design token CSS variables

Optional peer dependencies

Some components require additional packages:

| Component | Package | | --------- | ------------------------------ | | Chart | recharts | | Carousel | embla-carousel-react | | Sonner | sonner | | Drawer | vaul | | Command | cmdk | | Resizable | react-resizable-panels | | Calendar | react-day-picker, date-fns |

Install only what you use.

Components

| Component | Import | | --------------- | ---------------------------- | | Accordion | @coston/ui/accordion | | Alert | @coston/ui/alert | | Alert Dialog | @coston/ui/alert-dialog | | Aspect Ratio | @coston/ui/aspect-ratio | | Avatar | @coston/ui/avatar | | Badge | @coston/ui/badge | | Breadcrumb | @coston/ui/breadcrumb | | Button | @coston/ui/button | | Calendar | @coston/ui/calendar | | Card | @coston/ui/card | | Carousel | @coston/ui/carousel | | Chart | @coston/ui/chart | | Checkbox | @coston/ui/checkbox | | Collapsible | @coston/ui/collapsible | | Command | @coston/ui/command | | Context Menu | @coston/ui/context-menu | | Dialog | @coston/ui/dialog | | Drawer | @coston/ui/drawer | | Dropdown Menu | @coston/ui/dropdown-menu | | Hover Card | @coston/ui/hover-card | | Input | @coston/ui/input | | Label | @coston/ui/label | | Menubar | @coston/ui/menubar | | Navigation Menu | @coston/ui/navigation-menu | | Pagination | @coston/ui/pagination | | Popover | @coston/ui/popover | | Progress | @coston/ui/progress | | Radio Group | @coston/ui/radio-group | | Resizable | @coston/ui/resizable | | Scroll Area | @coston/ui/scroll-area | | Select | @coston/ui/select | | Separator | @coston/ui/separator | | Sheet | @coston/ui/sheet | | Sidebar | @coston/ui/sidebar | | Skeleton | @coston/ui/skeleton | | Slider | @coston/ui/slider | | Sonner | @coston/ui/sonner | | Switch | @coston/ui/switch | | Table | @coston/ui/table | | Tabs | @coston/ui/tabs | | Textarea | @coston/ui/textarea | | Toggle | @coston/ui/toggle | | Toggle Group | @coston/ui/toggle-group | | Tooltip | @coston/ui/tooltip |

Utilities

| Export | Import | | --------------- | ----------------------------- | | cn() | @coston/ui/lib/utils | | useIsMobile() | @coston/ui/hooks/use-mobile |

License

MIT