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

figma-ui3-kit-svelte

v0.4.0

Published

A collection of Svelte 4 components that match Figma UI3 for building plugins

Readme

Figma Plugin UI3 Kit Svelte

A lightweight, modern Svelte component library for building Figma plugin interfaces that feel native to Figma's UI3 design system.

Features

  • Light/dark theme support via Figma's CSS variables
  • 25+ components matching Figma UI3
  • 700+ icons (16px and 24px sizes)
  • Svelte 4.x, no heavy dependencies

Documentation

View Storybook – Interactive component documentation with live examples and props.

Installation

npm install figma-ui3-kit-svelte

Quick Start

// Import the global CSS (required for design tokens)
import { GlobalCSS } from 'figma-ui3-kit-svelte';

// Import components
import { Button, Input, Modal, Text } from 'figma-ui3-kit-svelte';
<Button variant="primary" on:click={handleClick}>
  Create Selection
</Button>

<Input bind:value={searchQuery} placeholder="Search layers..." />

<Text variant="body-medium">
  Components that feel native to Figma
</Text>

Enable Theme Support

Pass themeColors: true when showing your UI:

figma.showUI(__html__, { 
  themeColors: true,
  width: 400,
  height: 300
});

This enables Figma's native CSS variables that automatically adapt to the user's theme preference.

Components

All components accept a class prop for custom styling.

  • Badge
  • Banner
  • Button
  • Checkbox
  • Chip
  • Disclosure / DisclosureItem
  • Dropdown
  • Icon
  • IconButton
  • Input
  • Label
  • Menu / MenuItem / MenuDivider / MenuHeading
  • Modal
  • Radio
  • Slider
  • Switch
  • Tabs
  • Text
  • Textarea
  • Tooltip

See the Storybook for detailed props, examples, and interactive demos.

Icons

The library includes 700+ icons in two sizes. Import them as SVG:

import { Icon } from 'figma-ui3-kit-svelte';

// 24px icons (default size)
import Icon24Eye from 'figma-ui3-kit-svelte/src/icons/24/icon.24.eye.small.svg';

// 16px icons (compact)
import Icon16Check from 'figma-ui3-kit-svelte/src/icons/16/icon.16.check.svg';
<Icon iconName={Icon24Eye} color="--figma-color-icon" />
<Icon iconName={Icon24Eye} color="--figma-color-icon-brand" spin />
<Icon iconText="W" color="--figma-color-text-brand" />

Design Tokens

The library uses Figma's native CSS variables for automatic theme support.

Colors

/* Text */
--figma-color-text
--figma-color-text-secondary
--figma-color-text-brand
--figma-color-text-danger
--figma-color-text-disabled

/* Backgrounds */
--figma-color-bg
--figma-color-bg-secondary
--figma-color-bg-brand
--figma-color-bg-danger

/* Borders */
--figma-color-border
--figma-color-border-selected
--figma-color-border-danger

/* Icons */
--figma-color-icon
--figma-color-icon-brand
--figma-color-icon-danger

Spacing

| Token | Value | |:------|:------| | --size-xxxsmall | 4px | | --size-xxsmall | 8px | | --size-xsmall | 16px | | --size-small | 24px | | --size-medium | 32px | | --size-large | 40px |

Border Radius

| Token | Value | |:------|:------| | --border-radius-small | 2px | | --border-radius-medium | 5px | | --border-radius-large | 13px |

Typography

Use semantic tokens for consistent text:

.custom-text {
  font-family: var(--font-stack);
  font-size: var(--body-medium-font-size);
  line-height: var(--body-medium-line-height);
  font-weight: var(--body-medium-font-weight);
  letter-spacing: var(--body-medium-letter-spacing);
}

Available scales: heading-large, heading-medium, heading-small, body-large, body-medium, body-small (plus -strong variants).

Development

# Start Storybook dev server
npm run dev

# Build Storybook
npm run build

# Lint and format
npm run lint
npm run format

Storybook runs at http://localhost:6006.

License

MIT License


Originally inspired by figma-plugin-ds-svelte by Thomas Lowry, rebuilt for Figma's UI3 design system.