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

azucar-ui

v0.0.5

Published

Svelte component library that makes your app sweet.

Readme

Azucar UI

The design system that makes your app sweet.

This design system aims to brings comfort and accessibility to apps. Made for customizability and ease of use, it brings a strong color palette system and multiple settings.

Installation

npm install azucar-ui

Usage

First, import the CSS files in your app (for example in src/routes/+layout.svelte):

import "azucar-ui/tokens.css"
import "azucar-ui/base.css"

Then you can start using the components and the design tokens in your app. For example:

<script lang="ts">
    import { Button } from "azucar-ui"
</script>

<Button>Click me</Button>

Or using the color tokens (to create new custom components or custom styles):

<div style="background-color: var(--color-bg-subtle); color: var(--color-fg-high); padding: var(--size-md); border-radius: var(--corner-radius)">
    This is a card with the background and foreground colors from the color palette.
</div>

To change the base color of the app, you can override the --base-color token in your global CSS:

:root {
    --base-color: oklch(80.45% 0.1666 72.92); /* Change the base color to the nice Churros orange */
}

Read more about the color palette system and the design tokens in the next sections.

Color system

The library provides a color palette system that allows you to easily generate a wide range of colors based on a single base color. It uses the OKLCH color space, which is a perceptually uniform color space that allows for more accurate color manipulation and generation.

  • Read more about why OKLCH here: https://evilmartians.com/chronicles/oklch-in-css-why-quit-rgb-hsl
  • Inspiration for the color palette system: https://www.radix-ui.com/colors

From one color, the library generates 4 palettes of 14 colors each:

  • Light Accent
  • Dark Accent
  • Light Neutral
  • Dark Neutral

| Color name | Usage | | ----------------- | ----- | | bg-app | Background color of the app. | | bg-subtle | Background color for subtle elements, such as cards or modals. | | bg-hover | Background color for hover states. | | bg-active | Background color for active states. | | border-subtle | Border color for subtle elements or separators. | | border | Border color for general use. | | border-focus | Border color for focused elements. | | bg-solid | Background color for solid elements, such as buttons. This is also the base color | | bg-solid-hover | Background color for solid elements on hover. | | bg-solid-active | Background color for solid elements on active state. | | fg-low | Foreground/text color low contrast. | | fg-high | Foreground/text color high contrast. | | fg-solid | Foreground/text color on top of solid backgrounds, is dark or light based on the contrast between background/foreground |

Prefix the color names by --color to get the associated token.

Tokens

The library provides a set of design tokens that can be used to maintain consistency across your app. These include sizes, spacings, corner radii and colors.

You can find the full list of tokens in the tokens file.

Components

Components are self-documented, here is a list of the ones currently available:

🚧 = Design done, implementation in progress. ⌛ = Design in progress.

You can easily create custom components that fits with Azucar UI using the design tokens and the color palette system.