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

@lucrii/app-components

v0.1.2

Published

Svelte component library + design tokens for Lucrii app UIs. Importing the tokens stylesheet matches the Lucrii host's palette, typography, and dark mode automatically — your app looks native without bespoke styling.

Downloads

337

Readme

@lucrii/app-components

Svelte component library + design tokens for Lucrii app UIs. Importing the tokens stylesheet matches the Lucrii host's palette, typography, and dark mode automatically — your app looks native without bespoke styling.

Install

npm install @lucrii/app-components

Peer deps (also need to be installed in your app):

npm install svelte @lucide/svelte

Setup

  1. Import components from the package root.
  2. Import the tokens CSS once (in your entry stylesheet) so dark mode and the colour palette are wired up:
/* app.css */
@import '@lucrii/app-components/tokens.css';
@import 'tailwindcss';

The tokens stylesheet defines CSS custom properties consumed by every component. Tailwind classes (bg-card, text-muted-foreground, etc.) resolve against those tokens — so the same component library renders correctly in both light and dark mode without per-component overrides.

<script lang="ts">
	import { Button, Card, CardContent, CardHeader, CardTitle, Input } from '@lucrii/app-components';
</script>

<Card>
	<CardHeader>
		<CardTitle>Settings</CardTitle>
	</CardHeader>
	<CardContent>
		<Input placeholder="Enter a value..." />
		<Button>Save</Button>
	</CardContent>
</Card>

Components

Layout

| Export | Notes | | ----------------------------------------------------------------------------------------------- | ------------------------------------- | | Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, CardAction | Composable card with structured slots | | Separator | Visual divider | | Tabs, TabsList, TabsTrigger, TabsContent | Tabbed sections |

Forms

| Export | Notes | | ------------------------------------------------------------------------------ | -------------------------------------------------------------------------- | | Button (+ buttonVariants, ButtonProps, ButtonVariant, ButtonSize) | Primary action; supports variants + sizes; pass href to render as a link | | Input | Text input | | Textarea | Multi-line input | | Label | Form label | | Checkbox | Checkbox control | | Switch | Toggle switch | | RadioGroup, RadioGroupItem | Radio button group | | Toggle (+ toggleVariants, ToggleVariant, ToggleSize, ToggleVariants) | Toggle button (single, not a switch) |

Feedback

| Export | Notes | | ----------------------------------------------------------------------------- | ------------------------------- | | Alert, AlertTitle, AlertDescription (+ alertVariants, AlertVariant) | Alert banner with variants | | Badge (+ badgeVariants, BadgeVariant) | Status pill | | Progress | Linear progress bar | | Spinner | Indeterminate loading indicator | | Skeleton | Placeholder block while loading |

Utilities

| Export | Notes | | ---------------- | ---------------------------------------------------------------------------------------------- | | cn(...classes) | clsx + tailwind-merge — the standard className combiner used internally by every component |

Variant examples

<Button variant="default">Primary</Button>
<Button variant="secondary">Secondary</Button>
<Button variant="destructive">Delete</Button>
<Button variant="outline">Outlined</Button>
<Button variant="ghost">Ghost</Button>
<Button variant="link">Link</Button>

<Button size="sm">Small</Button>
<Button size="lg">Large</Button>
<Button size="icon"><MyIcon /></Button>

<Button href="/settings">
	Renders as <a></a>
</Button>

Alert, Badge, Toggle follow the same variant + (where relevant) size prop pattern. Variant prop unions are exported as types so consumers can constrain their own props (e.g. let kind: ButtonVariant).

Dark mode

Driven entirely by the dark class on document.documentElement. The Lucrii host toggles it; @lucrii/app-bridge keeps the iframe in sync. No per-component setup needed — the tokens CSS handles the colour swap.

Scripts

npm run build    # svelte-package → dist/
npm run check    # svelte-check + tsc
npm test         # vitest
npm run lint     # prettier --check + eslint
npm run format   # prettier --write

License

See the repository root.