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 🙏

© 2025 – Pkg Stats / Ryan Hefner

css-app-ui

v1.4.2

Published

Shared UI components library for CSS Support Systems applications

Readme

css-app-ui

Shared UI components library for CSS Support Systems applications.

This package provides a complete set of reusable UI components, hooks, utilities, and unified Tailwind CSS configuration built with React, TypeScript, Tailwind CSS, and shadcn/ui.

Features

  • 🎨 Unified Design System: Centralized Tailwind configuration and CSS variables
  • 📦 Complete Component Library: 40+ React components with consistent styling
  • 🎯 TypeScript First: Full type safety and excellent developer experience
  • 🌙 Dark Mode Support: Built-in light/dark theme switching
  • 📱 Responsive Design: Mobile-first responsive components
  • Accessibility: ARIA-compliant components using Radix UI primitives

Installation

npm install css-app-ui

Usage

Unified Tailwind Configuration

Import the shared Tailwind configuration in your tailwind.config.ts:

import type { Config } from 'tailwindcss';
import { tailwindConfig } from 'css-app-ui/tailwind-config';

export default {
  ...tailwindConfig,
  content: [
    "./index.html",
    "./src/**/*.{js,ts,jsx,tsx}",
    "./node_modules/css-app-ui/dist/**/*.js",
  ],
} satisfies Config;

CSS Variables and Styling

Import CSS variables in your main CSS file:

@import 'css-app-ui/variables';

@tailwind base;
@tailwind components;
@tailwind utilities;

Components

import { Button, Card, Input, Layout } from 'css-app-ui';

function App() {
  return (
    <Layout sidebar={MySidebar} title="My App">
      <Card>
        <Input placeholder="Enter text..." />
        <Button>Submit</Button>
      </Card>
    </Layout>
  );
}

Hooks

import { useToast, useIsMobile } from 'css-app-ui';

function MyComponent() {
  const { toast } = useToast();
  const isMobile = useIsMobile();
  
  return (
    <div>
      <button onClick={() => toast({ title: "Hello!" })}>
        Show toast
      </button>
      {isMobile && <p>Mobile view</p>}
    </div>
  );
}

Utilities

import { cn } from 'css-app-ui';

function MyComponent({ className }) {
  return (
    <div className={cn("base-styles", className)}>
      Content
    </div>
  );
}

Components Included

  • Accordion
  • Alert & Alert Dialog
  • Avatar
  • Badge
  • Breadcrumb
  • Button
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Collapsible
  • Command
  • Context Menu
  • Dialog
  • Drawer
  • Dropdown Menu
  • Form
  • Hover Card
  • Input & Input OTP
  • Label
  • Layout
  • Menubar
  • Navigation Menu
  • Pagination
  • Popover
  • Progress
  • Radio Group
  • Resizable
  • Scroll Area
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Skeleton
  • Slider
  • Sonner & Toast
  • Switch
  • Table
  • Tabs
  • Textarea
  • Toggle & Toggle Group
  • Tooltip

Hooks Included

  • useIsMobile - Detect mobile viewport
  • useToast - Toast notification management

Package Exports

The package provides multiple exports for different use cases:

// Components and utilities
import { Button, cn, useToast } from 'css-app-ui';

// Tailwind configuration
import { tailwindConfig } from 'css-app-ui/tailwind-config';

// CSS variables only
// @import 'css-app-ui/variables'

// Complete styles (variables + components)
// @import 'css-app-ui/styles'

PostCSS Configuration

For Tailwind CSS processing, ensure you have a postcss.config.js:

export default {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  },
}

Requirements

  • React >= 16.8.0
  • React DOM >= 16.8.0
  • Tailwind CSS >= 3.4.0
  • PostCSS (for CSS processing)

Version History

  • v1.2.1: Added CSS variables export, fixed styling issues
  • v1.2.0: Added unified Tailwind configuration export
  • v1.1.x: Component library with basic styling

License

MIT