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

@bigtablet/design-system

v1.24.1

Published

Bigtablet Design System UI Components

Readme

Bigtablet Design System

npm version License Test Coverage CI

🇰🇷 한국어 · 🇺🇸 English

The official design system of Bigtablet — a unified UI library composed of Foundation (design tokens) and UI Components.

Note: This is Bigtablet's in-house design system, open-sourced for community reference. External use is welcome, but minor versions may include breaking changes without prior notice.

GitHub · NPM


Features

| Feature | Description | |---------|-------------| | ⚛️ React 19 | Full support for the latest React version | | 🔷 TypeScript | Complete type definitions for all components | | 📦 Dual Bundle | Separate bundles optimized for Pure React and Next.js | | 🌐 Vanilla JS | Supports non-React environments (Thymeleaf, JSP, PHP, etc.) | | 🎨 Design Tokens | Consistent token-based system for colors, typography, spacing | | ♿ Accessibility | Keyboard navigation, screen reader support, full ARIA attributes | | 🧪 86% Coverage | Stable test coverage powered by Vitest | | 🎭 Storybook | Interactive component documentation (run locally via pnpm storybook) | | 🎯 Zero Dependencies | No bundled runtime dependencies — peer deps only |


Installation

One-line setup (recommended)

Auto-detects your package manager (npm / yarn / pnpm / bun) and environment (React / Next.js), installs the package + peer deps, and prints CSS/Provider setup instructions.

curl -fsSL https://raw.githubusercontent.com/Bigtablet/bigtablet-design-system/main/scripts/setup.sh | sh

Manual

# npm
npm install @bigtablet/design-system react@^19 react-dom@^19 lucide-react

# yarn
yarn add @bigtablet/design-system react@^19 react-dom@^19 lucide-react

# pnpm
pnpm add @bigtablet/design-system react@^19 react-dom@^19 lucide-react

Requires React 19 and lucide-react ≥ 0.552.0. Compatible with Next.js 13+.


Quick Start

⚠️ Alert and Toast require Providers at the root of your app — see Provider Setup below.

Pure React

import { Button, TextField, Modal } from '@bigtablet/design-system';
import '@bigtablet/design-system/style.css';

function App() {
  const [open, setOpen] = React.useState(false);

  return (
    <div>
      <TextField
        label="Email"
        placeholder="[email protected]"
        helperText="Please enter your work email."
      />
      <Button variant="primary" onClick={() => setOpen(true)}>Confirm</Button>
      <Modal open={open} onClose={() => setOpen(false)} title="Notice">
        Hello!
      </Modal>
    </div>
  );
}

Next.js

In a Next.js environment, import from the /next path. Sidebar uses next/link, so always use this path.

// app/layout.tsx
import { Sidebar } from '@bigtablet/design-system/next';
import '@bigtablet/design-system/style.css';

const navItems = [
  { label: 'Home', href: '/home', icon: HomeIcon },
  {
    type: 'group' as const,
    id: 'settings',
    label: 'Settings',
    icon: SettingsIcon,
    children: [
      { label: 'Profile', href: '/settings/profile' },
      { label: 'Security', href: '/settings/security' },
    ],
  },
];

export default function Layout({ children }: { children: React.ReactNode }) {
  return (
    <div style={{ display: 'flex' }}>
      <Sidebar items={navItems} activePath="/home" />
      <main style={{ flex: 1 }}>{children}</main>
    </div>
  );
}

Provider Setup

Alert and Toast require Providers to be added at the root of your app.

// app/layout.tsx or _app.tsx
import { AlertProvider, ToastProvider } from '@bigtablet/design-system';

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        <AlertProvider>
          <ToastProvider>
            {children}
          </ToastProvider>
        </AlertProvider>
      </body>
    </html>
  );
}

Alert usage

import { useAlert } from '@bigtablet/design-system';

function MyComponent() {
  const { showAlert } = useAlert();

  return (
    <Button
      onClick={() =>
        showAlert({
          title: 'Delete',
          message: 'Are you sure you want to delete this?',
          showCancel: true,
          onConfirm: () => console.log('Deleted'),
        })
      }
    >
      Delete
    </Button>
  );
}

Toast usage

import { useToast } from '@bigtablet/design-system';

function MyComponent() {
  const toast = useToast();

  return (
    <div>
      <Button onClick={() => toast.success('Saved successfully!')}>Save</Button>
      <Button onClick={() => toast.error('An error occurred.')}>Error</Button>
      <Button onClick={() => toast.warning('Session expiring soon.')}>Warning</Button>
      <Button onClick={() => toast.info('New version available.')}>Info</Button>
      {/* Custom duration (ms) as second argument */}
      <Button onClick={() => toast.success('Saved!', 5000)}>Save (5s)</Button>
    </div>
  );
}

Vanilla JS (HTML/CSS/JS)

For non-React environments (Thymeleaf, JSP, PHP, etc.), use directly via CDN.

<link rel="stylesheet" href="https://unpkg.com/@bigtablet/design-system/dist/vanilla/bigtablet.min.css">
<script src="https://unpkg.com/@bigtablet/design-system/dist/vanilla/bigtablet.min.js"></script>

<!-- Button -->
<button class="bt-button bt-button--md bt-button--primary">Primary</button>
<button class="bt-button bt-button--md bt-button--secondary">Secondary</button>

<!-- TextField -->
<div class="bt-text-field">
  <label class="bt-text-field__label">Name</label>
  <div class="bt-text-field__wrap">
    <input type="text" class="bt-text-field__input bt-text-field__input--outline bt-text-field__input--md" placeholder="Enter text...">
  </div>
</div>

<!-- Alert (JS API) -->
<script>
  Bigtablet.Alert({
    title: 'Confirm',
    message: 'Do you want to continue?',
    showCancel: true,
    onConfirm: () => console.log('Confirmed'),
  });
</script>

Components

| Category | Components | |----------|------------| | General | Button, Select | | Form | TextField, Checkbox, Radio, Switch, DatePicker, FileInput | | Feedback | Alert, Toast, Spinner, TopLoading | | Navigation | Pagination, Sidebar | | Overlay | Modal | | Display | Card |

👉 Full Component Docs


Design Tokens

SCSS tokens and CSS custom properties are provided for a consistent design.

// SCSS
@use "src/styles/scss/token" as token;

.my-component {
  color: token.$color_text_primary;
  padding: token.$spacing_md;
  border-radius: token.$radius_md;
}
/* CSS Custom Properties */
.my-component {
  color: var(--bt-color-text-primary);
  padding: var(--bt-spacing-md);
  border-radius: var(--bt-radius-md);
}

Main token categories: colors, spacing, typography, radius, shadows, motion, z-index, breakpoints


Documentation

| Document | Description | |----------|-------------| | Components | Component Props API & usage examples | | Vanilla JS | Integration guide for non-React environments | | Architecture | Project structure & design principles | | Contributing | Dev setup & contribution guide | | Testing | Test writing patterns & guide |


Development

pnpm install       # Install dependencies
pnpm storybook     # Start Storybook (port 6006)
pnpm build         # Build library
pnpm dev           # Watch mode
pnpm test          # Run tests
pnpm test:coverage # Coverage report

Detailed dev setup guide → Contributing


Browser Support

| Browser | Version | |---------|---------| | Chrome | 80+ | | Firefox | 75+ | | Safari | 13+ | | Edge | 80+ |


License

Bigtablet License


GitHub · NPM · Issues