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

fcontreras2-ui

v0.10.0

Published

UI component library and design system

Downloads

52

Readme

fcontreras2-ui

A modern, accessible, and fully customizable React component library built with Tailwind CSS v4.

Installation

npm install fcontreras2-ui

Peer dependencies

npm install react react-dom

Import styles

Add the following import once at the root of your application (e.g. main.tsx or _app.tsx):

import 'fcontreras2-ui/styles.css'

Usage

import { Button, Input, Card } from 'fcontreras2-ui'

export function Example() {
  return (
    <Card title="Welcome">
      <Input label="Name" placeholder="John Doe" />
      <Button>Submit</Button>
    </Card>
  )
}

Toast notifications

Render ToastProvider once at your app root, then call toast() anywhere:

// main.tsx
import { ToastProvider } from 'fcontreras2-ui'

<ToastProvider position="top-right" />

// anywhere in your app
import { toast } from 'fcontreras2-ui'

toast.success('Saved!')
toast.error('Something went wrong.')

Theming

The library uses a primary color scale. Override it in your global CSS using Tailwind v4 theme variables:

@import 'tailwindcss';

@theme {
  --color-primary-50:  #fdf4ff;
  --color-primary-100: #fae8ff;
  --color-primary-200: #f5d0fe;
  --color-primary-300: #f0abfc;
  --color-primary-400: #e879f9;
  --color-primary-500: #d946ef;
  --color-primary-600: #c026d3;  /* main brand color */
  --color-primary-700: #a21caf;
  --color-primary-800: #86198f;
  --color-primary-900: #701a75;
  --color-primary-950: #4a044e;
}

Components

Form

| Component | Import | |---|---| | Button | import { Button } from 'fcontreras2-ui' | | Input | import { Input } from 'fcontreras2-ui' | | Textarea | import { Textarea } from 'fcontreras2-ui' | | Select | import { Select } from 'fcontreras2-ui' | | Checkbox | import { Checkbox } from 'fcontreras2-ui' | | RadioGroup, Radio | import { RadioGroup, Radio } from 'fcontreras2-ui' | | Switch | import { Switch } from 'fcontreras2-ui' |

Feedback

| Component | Import | |---|---| | Alert | import { Alert } from 'fcontreras2-ui' | | toast, ToastProvider | import { toast, ToastProvider } from 'fcontreras2-ui' | | Modal | import { Modal } from 'fcontreras2-ui' | | Tooltip | import { Tooltip } from 'fcontreras2-ui' | | Spinner | import { Spinner } from 'fcontreras2-ui' | | Progress | import { Progress } from 'fcontreras2-ui' | | Skeleton | import { Skeleton } from 'fcontreras2-ui' |

Display

| Component | Import | |---|---| | Badge | import { Badge } from 'fcontreras2-ui' | | BadgeDot | import { BadgeDot } from 'fcontreras2-ui' | | Avatar | import { Avatar } from 'fcontreras2-ui' | | Text | import { Text } from 'fcontreras2-ui' | | Card | import { Card } from 'fcontreras2-ui' |

Navigation & Layout

| Component | Import | |---|---| | Tabs, Tab, TabList, TabPanel | import { Tabs, Tab, TabList, TabPanel } from 'fcontreras2-ui' | | Breadcrumb | import { Breadcrumb } from 'fcontreras2-ui' | | Pagination | import { Pagination } from 'fcontreras2-ui' | | Divider | import { Divider } from 'fcontreras2-ui' |

Data

| Component | Import | |---|---| | Table | import { Table } from 'fcontreras2-ui' |


API conventions

Every component shares the same prop patterns:

// Size
size?: 'sm' | 'md' | 'lg'

// Semantic color intent
variant?: 'default' | 'success' | 'warning' | 'danger' | 'info'

// Form components
label?: string
error?: string
helperText?: string
fullWidth?: boolean

// Granular class overrides per slot
classNames?: {
  root?: string
  label?: string
  // ... component-specific slots
}

Development

# Install dependencies
npm install

# Start Storybook
npm run dev

# Build library
npm run build

# Run tests
npm test

# Type check
npm run typecheck

Requirements

  • React 18 or 19
  • Tailwind CSS v4 (in the consuming app)

License

MIT