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

@metatoy/bootstrap-styled

v0.1.0

Published

Bootstrap 5 components implemented in styled-components, theme-driven. A modern rewrite of bootstrap-styled/v4.

Readme

@metatoy/bootstrap-styled

Bootstrap 5 components implemented in styled-components, theme-driven — a modern rewrite of the abandoned bootstrap-styled/v4 targeting Bootstrap 5.3 · React 18 · styled-components 6 · TypeScript.

Status: pre-release (0.1.0, not yet on npm). Full component surface, browser-verified, with a Vitest suite:

  • Core — Button, Badge, Alert, Card (+sub-parts), Spinner, Grid (Container/Row/Col), Stack, CloseButton.
  • Forms — FormControl, FormSelect, FormCheck (checkbox/radio/switch), FormLabel/FormText/FormGroup, InputGroup.
  • Navigation & feedback — Nav/Navbar, Breadcrumb, Pagination, Progress, Tabs, Accordion.
  • Overlays — Modal, Offcanvas, Dropdown, Tooltip, Popover (on @floating-ui/react).

Known limitation: Dropdown keyboard arrow-key navigation is not yet implemented (click + outside/Escape dismiss + Tab-focusable items work). See CHANGELOG.md.

Why

bootstrap-styled/v4 is Bootstrap 4 / React 16 / sc 4–5 and unmaintained since 2020. There's no modern successor. This is a fresh, TypeScript implementation that leans on Bootstrap 5.3's runtime CSS variables (--bs-*), so theming — including color modes and live token overrides — cascades at runtime.

Install

npm i @metatoy/bootstrap-styled styled-components react react-dom

Usage

import { BootstrapStyledProvider, Button, createTheme } from '@metatoy/bootstrap-styled'

const theme = createTheme({ colors: { primary: '#7c3aed' } })

export function App() {
  return (
    <BootstrapStyledProvider theme={theme} colorMode="light">
      <Button variant="primary">Save</Button>
      <Button variant="outline-danger">Delete</Button>
    </BootstrapStyledProvider>
  )
}

The provider injects GlobalStyles, which projects the theme onto --bs-* CSS variables; components read those vars, so overriding them at runtime (color mode, or a Figtree preview) re-skins everything.

Develop

npm install
npm run typecheck     # tsc --noEmit
npm run build         # tsup → dist (ESM + CJS + .d.ts)
npm run dev           # tsup --watch

Review the components (visual)

A dev-only Vite playground renders every component (imports straight from src/) with a live primary-color picker and a light/dark toggle — so you can confirm theming, color-mix hover/active, and contrast actually work:

npm install
npm run play          # → http://localhost:5174

What to check:

  • Buttons — variants, outline-*, sizes, disabled, as="a"; hover/active shading; text stays legible on every variant (contrast).
  • Change the Primary color picker → all primary surfaces re-skin live, and button/badge text recolors for contrast.
  • Toggle Mode → dark mode via data-bs-theme.
  • Forms — focus rings, isInvalid/isValid, switch toggle, input-group radii.

The playground is dev-only (not in the published files).

License

MIT. Derived in part from bootstrap-styled/v4 (© 2017–18 Yeutech, MIT) — see NOTICE.