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

@fastwork/xosmoz-svelte

v0.0.25

Published

Svelte 5 components for Xosmoz design system

Readme

@fastwork/xosmoz-svelte

Svelte 5 components for the Xosmoz design system.

Installation

npm install @fastwork/xosmoz-svelte @fastwork/xosmoz-theme @fastwork/xosmoz-css
# or
yarn add @fastwork/xosmoz-svelte @fastwork/xosmoz-theme @fastwork/xosmoz-css
# or
pnpm add @fastwork/xosmoz-svelte @fastwork/xosmoz-theme @fastwork/xosmoz-css

Requirements

| Package | Minimum Version | |---------|-----------------| | svelte | ^5.0.0 | | @fastwork/xosmoz-theme | >=0.0.33 | | @fastwork/xosmoz-css | >=0.0.20 |

Usage

1. Import Styles

Add the required CSS to your app entry point or layout:

<!-- In your +layout.svelte or app entry -->
<script>
  import '@fastwork/xosmoz-svelte/styles.css';
</script>

Or import styles individually for more control:

import '@fastwork/xosmoz-theme/base.css';
import '@fastwork/xosmoz-theme/themes.css';
import '@fastwork/xosmoz-css/component.css';

2. Set Theme

Add a data-theme attribute to enable theming:

<html data-theme="light">
  <!-- or "dark" -->
</html>

3. Use Components

<script>
  import { Button } from '@fastwork/xosmoz-svelte';
</script>

<Button variant="primary" size="medium">
  Click me
</Button>

Components

Button

A versatile button component with multiple variants and sizes.

<script>
  import { Button } from '@fastwork/xosmoz-svelte';
</script>

<!-- Variants -->
<Button variant="primary">Primary</Button>
<Button variant="secondary">Secondary</Button>
<Button variant="outline">Outline</Button>
<Button variant="tertiary">Tertiary</Button>
<Button variant="ghost">Ghost</Button>
<Button variant="danger">Danger</Button>
<Button variant="success">Success</Button>

<!-- Sizes -->
<Button size="small">Small</Button>
<Button size="medium">Medium</Button>
<Button size="large">Large</Button>

<!-- States -->
<Button loading>Loading</Button>
<Button disabled>Disabled</Button>

<!-- Modifiers -->
<Button fluid>Full Width</Button>
<Button pill>Pill Shape</Button>
<Button square>Square</Button>

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | variant | 'primary' \| 'secondary' \| 'outline' \| 'tertiary' \| 'ghost' \| 'danger' \| 'success' \| 'white' | 'primary' | Button style variant | | size | 'small' \| 'medium' \| 'large' | 'medium' | Button size | | disabled | boolean | false | Disable the button | | loading | boolean | false | Show loading spinner | | fluid | boolean | false | Full width button | | pill | boolean | false | Pill-shaped border radius | | square | boolean | false | Square aspect ratio | | type | 'button' \| 'submit' \| 'reset' | 'button' | Button type attribute |

Slots

| Slot | Description | |------|-------------| | children | Main button content | | startIcon | Icon before the text | | endIcon | Icon after the text |


Development (Storybook)

Run Storybook

# From monorepo root
yarn storybook

# Or using NX
nx run xosmoz-svelte:storybook

Opens Storybook at http://localhost:6006

Build Storybook

yarn storybook:build

Project Structure

src/
├── lib/
│   ├── components/        # Svelte components
│   │   ├── Button.svelte
│   │   └── Button.stories.ts
│   ├── docs/              # Documentation pages
│   └── index.ts           # Package exports
└── .storybook/            # Storybook config

License

MIT