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

@lime-soda/button

v0.1.0

Published

A customizable button web component for the Lime Soda design system.

Readme

@lime-soda/button

A customizable button web component for the Lime Soda design system.

Installation

npm install @lime-soda/button

Usage

HTML

<script type="module">
  import '@lime-soda/button'
</script>

<ls-button>Click me</ls-button>
<ls-button size="lg" color="primary">Large Primary Button</ls-button>
<ls-button size="sm">Small Button</ls-button>

JavaScript/TypeScript

import '@lime-soda/button'
import { LsButton } from '@lime-soda/button'

// Use in HTML templates
const button = document.createElement('ls-button')
button.textContent = 'Click me'
button.size = 'lg'
button.color = 'primary'

// Type-safe access to properties
const button = document.querySelector('ls-button') as LsButton
button.size = 'md'

Lit Templates

import { html } from 'lit'
import '@lime-soda/button'

const template = html`
  <ls-button @click=${handleClick} size="lg" color="primary">
    Save Changes
  </ls-button>
`

API

Attributes/Properties

| Property | Attribute | Type | Default | Description | | -------- | --------- | -------------------------- | ----------- | -------------------- | | size | size | 'sm' \| 'md' \| 'lg' | 'sm' | Button size variant | | color | color | 'primary' \| 'secondary' | 'primary' | Button color variant |

CSS Custom Properties

The button component uses design tokens for consistent styling:

| Property | Description | | ----------------------------------------- | ------------------------------------------ | | --button-transition | Transition timing for button state changes | | --button-sm-font | Typography scale for small button | | --button-sm-padding | Internal spacing for small button | | --button-sm-border-radius | Corner radius for small button | | --button-md-font | Typography scale for medium button | | --button-md-padding | Internal spacing for medium button | | --button-md-border-radius | Corner radius for medium button | | --button-lg-font | Typography scale for large button | | --button-lg-padding | Internal spacing for large button | | --button-lg-border-radius | Corner radius for large button | | --button-primary-background-color | Primary button background color | | --button-primary-background-color-hover | Primary button background color on hover | | --button-primary-color | Primary button text color |

CSS Parts

| Part | Description | | -------- | --------------------------- | | button | The internal button element |

Events

| Event | Description | | ------- | -------------------------------- | | click | Fired when the button is clicked |

Styling

Using CSS Custom Properties

You can customize the button appearance by overriding design token CSS custom properties:

ls-button {
  /* Override primary button colors */
  --button-primary-background-color: #007bff;
  --button-primary-color: white;

  /* Customize size-specific styles */
  --button-lg-border-radius: 12px;
  --button-lg-padding: 1rem 1.5rem;
}

Using CSS Parts

ls-button::part(button) {
  font-weight: bold;
  text-transform: uppercase;
}

Accessibility

The button component includes:

  • Proper ARIA attributes
  • Keyboard navigation support
  • Focus management
  • Screen reader support
  • High contrast mode support

Examples

Basic Usage

<ls-button>Default Button</ls-button>

Size Variants

<ls-button size="sm">Small Button</ls-button>
<ls-button size="md">Medium Button</ls-button>
<ls-button size="lg">Large Button</ls-button>

Color Variants

<ls-button color="primary">Primary Button</ls-button>
<ls-button color="secondary">Secondary Button</ls-button>

Custom Styling

<ls-button style="--button-primary-background-color: #28a745;">
  Custom Green Button
</ls-button>