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

@ibis-design/svelte

v0.2.0

Published

Svelte component library for the IBIS design system.

Downloads

156

Readme

@ibis-design/svelte

Svelte 5 component library for the IBIS design system. Provides primitives (Button, Card) and full layout shells (AuthLayout, AppLayout, DashboardLayout) styled via CSS custom properties from @ibis-design/css.

Requirements

  • Svelte 5 (runes and snippets; no slots).
  • @ibis-design/css — design tokens. The consuming application must load the token stylesheet once so :root variables are available.

Installation

npm install @ibis-design/svelte @ibis-design/css

Token CSS

Import the design tokens in your application entry or root layout so all components receive the correct variables:

// e.g. in your app entry (main.ts, +layout.svelte, or App.svelte)
import '@ibis-design/css';
// or
import '@ibis-design/css/ibis-design.css';

Without this import, components will not have colors, spacing, or typography from the design system.

Usage

Primitives

Button — use the children snippet for the label:

<script>
  import { Button } from '@ibis-design/svelte';
</script>

<Button variant="primary" size="md">Submit</Button>
<Button variant="secondary" size="sm">Cancel</Button>

Card — use the children snippet for content:

<script>
  import { Card } from '@ibis-design/svelte';
</script>

<Card>
  <p>Card content</p>
</Card>

Layouts

Layouts use snippets (Svelte 5). Pass snippet props for header, sidebar, and main content. Content between the component tags is the children snippet.

AppLayout — generic app shell with optional header, sidebar, main, and footer:

<script>
  import { AppLayout } from '@ibis-design/svelte';

  // Define snippets and pass as props; content between tags is children
</script>

<AppLayout
  header={headerSnippet}
  sidebar={sidebarSnippet}
  footer={footerSnippet}
>
  <p>Main page content</p>
</AppLayout>

With inline snippets:

<script>
  import { AppLayout } from '@ibis-design/svelte';
</script>

{#snippet header()}
  <nav>App header</nav>
{/snippet}
{#snippet sidebar()}
  <aside>Sidebar</aside>
{/snippet}

<AppLayout header={header} sidebar={sidebar}>
  <p>Main content</p>
</AppLayout>

AuthLayout — centered single-column layout for login/signup:

<script>
  import { AuthLayout } from '@ibis-design/svelte';
</script>

<AuthLayout logo={logoSnippet} footer={footerSnippet}>
  <form>Login form</form>
</AuthLayout>

DashboardLayout — dashboard shell with themed header and sidebar (same snippet props as AppLayout).

Exports

  • Components: Button, Card, AuthLayout, AppLayout, DashboardLayout
  • Types: ButtonVariant, ButtonSize, AuthLayoutProps, AppLayoutProps, DashboardLayoutProps (from @ibis-design/svelte)

Build

From the package directory:

npm run build

From the monorepo root:

npm run build --workspaces

Type checking

npm run check

Runs svelte-check with the package tsconfig.json.