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

@stylebakery/stylebakery

v1.0.0

Published

A themeable Svelte 5 component library with a bundled CSS design system, a visual theme builder, and 12 page layouts.

Readme

StyleBakery

A themeable Svelte 5 component library with a bundled CSS design system, a light/dark theme engine, and ready-made application layouts.

Everything is built on runes ($props, $state, $derived, $bindable) and plain CSS custom properties — no Tailwind, no Sass, no CSS-in-JS.

Svelte 5 only. This is a native Svelte component library — it is not a React, Vue, or web-components package, and there are no plans to port it. The one exception is the stylesheet: the bundled CSS design system is framework-agnostic and can be used on its own in any project.

Install

npm install @stylebakery/stylebakery

svelte@^5 is a peer dependency.

Usage

Load the CSS once, globally (in your root layout or app entry):

import '@stylebakery/stylebakery/css';

Then import components anywhere:

<script>
  import { Button, Card, Field, Input } from '@stylebakery/stylebakery';

  let email = $state('');
</script>

<Card title="Welcome" subtitle="Sign in to continue">
  <Field label="Email" required>
    <Input bind:value={email} type="email" iconLeft="mail" />
  </Field>

  {#snippet footer()}
    <Button variant="primary" full>Continue</Button>
  {/snippet}
</Card>

Theming (light / dark)

The package ships a tiny reactive theme store. It respects the OS preference on first visit and persists the choice to localStorage:

<script>
  import { theme, ThemeToggle } from '@stylebakery/stylebakery';
  import { onMount } from 'svelte';

  onMount(() => theme.init());
</script>

<ThemeToggle />

<!-- or drive it yourself -->
<button onclick={() => theme.toggle()}>
  {theme.isDark ? 'Light' : 'Dark'} mode
</button>

Icons use Material Symbols Outlined; the docs site loads them (and the Inter font) via a <link> in app.html.

What's inside

  • ~30 UI components — Button, Card, Modal, ConfirmDialog, Alert, Badge, Accordion, Dropdown, Table, Pagination, Progress, Spinner, Tooltip, Divider, Collapsible, Calendar, DatePicker, and more.
  • 9 form controls — Field, Input, Select, Toggle, Checkbox, Radio, RadioGroup, Textarea, MaskedInput.
  • Layout primitivesShell, NavItem, SidebarProfile for building an app chrome, plus 10 importable app-shell layouts (top bar, sidebar, icon rail, floating dock, and variants).
  • A bundled CSS design system — resets, layout utilities, component styles, and a full set of design tokens.

CSS architecture — base + overlay

The stylesheet is split into two layers:

css/
  overlay/default.css   → CUSTOMIZABLE: every token *value* (colors, type,
                          spacing, radius, shadow) for light + dark mode.
  base.css              → STRUCTURAL: resets, layout, component styles.
                          Consumes tokens via var(); defines none.

css/index.css imports the overlay first (so tokens exist), then the base. To ship a custom theme you either replace overlay/default.css, or load index.css and then your own theme.css after it:

import '@stylebakery/stylebakery/css';   // structure + default tokens
import './my-theme.css';                 // overrides token values only

Because structural CSS only ever reads tokens through var(), re-skinning the whole system is a matter of overriding custom properties — no component changes.

Package exports

| Import | What it is | |--------|-----------| | @stylebakery/stylebakery | All components + the theme store (Svelte). | | @stylebakery/stylebakery/css | The full stylesheet (base + default overlay). | | @stylebakery/stylebakery/css/* | Individual CSS files, if you want to cherry-pick. | | @stylebakery/stylebakery/theme | The theme store on its own. |

Develop

The library is consumed from source by the docs site, which gives you instant hot-reload while iterating. Clone both repos side by side and run the docs site — see its README for details.

Build the distributable package locally:

npm install
npm run package     # svelte-package: src/lib → dist/

License

MIT