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

kaleido-ui

v0.1.46

Published

KaleidoSwap shared UI library — design tokens, web components (Tailwind + Radix), and React Native components extending WDK UI Kit

Readme

kaleido-ui

Shared UI library for KaleidoSwap — design tokens, web components (Tailwind + Radix), and React Native components extending WDK UI Kit.

Installation

npm install kaleido-ui

Entry Points

| Import | Description | |--------|-------------| | kaleido-ui | Web components (Tailwind CSS + Radix UI) | | kaleido-ui/tokens | Platform-agnostic design tokens (zero deps) | | kaleido-ui/native | React Native components (WDK + custom) | | kaleido-ui/tailwind | Tailwind CSS preset | | kaleido-ui/css | CSS custom properties, glass effects, animations |

Quick Start — Web

1. Configure Tailwind

// tailwind.config.js
module.exports = {
  content: [
    './src/**/*.{ts,tsx}',
    './node_modules/kaleido-ui/dist/web/*.js',
  ],
  presets: [require('kaleido-ui/tailwind')],
}

2. Import CSS

// main.tsx
import 'kaleido-ui/css'

3. Use Components

import { Button, Card, CardContent, StatusBadge, AssetCard } from 'kaleido-ui'

function App() {
  return (
    <Card>
      <CardContent>
        <AssetCard
          ticker="BTC"
          name="Bitcoin"
          displayBalance="0.00142000"
          networks={['L1', 'LN', 'Spark']}
        />
        <StatusBadge status="completed" />
        <Button variant="cta" size="cta">Swap Now</Button>
      </CardContent>
    </Card>
  )
}

Quick Start — React Native

1. Install peer dependencies

npm install @tetherto/wdk-uikit-react-native react-native

2. Wrap with theme provider

import { KaleidoThemeProvider } from 'kaleido-ui/native'

export default function App() {
  return (
    <KaleidoThemeProvider>
      {/* Your app */}
    </KaleidoThemeProvider>
  )
}

3. Use Components

import {
  Balance,
  AmountInput,
  AssetSelector,
  StatusBadge,
  NetworkBadge,
} from 'kaleido-ui/native'

Quick Start — Tokens Only

Works in any JS runtime (Node.js, React Native, web) with zero dependencies.

import { colors, typeScale, radius, shadow } from 'kaleido-ui/tokens'

console.log(colors.primary)        // '#2BEE79'
console.log(colors.network.bitcoin) // '#F7931A'
console.log(typeScale.body)         // ['15px', '22px']

Web Components

Primitives

| Component | Description | |-----------|-------------| | Button | 11 variants (default, destructive, outline, secondary, ghost, link, glow, surface, cta, cta-gradient, danger-subtle), 9 sizes | | Card | Compositional: Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter | | Input | Form text input with focus ring | | Dialog | Modal dialog (Radix): Dialog, DialogContent, DialogHeader, DialogTitle, etc. | | Tabs | Tab navigation (Radix): Tabs, TabsList, TabsTrigger, TabsContent | | Label | Form label (Radix) | | Toast | Toast notifications (Radix): Toast, ToastProvider, Toaster | | Icon | Material Symbols wrapper with size variants (xs-2xl) | | Icons | Named icon shortcuts (Icons.Send, Icons.Receive, Icons.Swap, etc.) |

Shared Components

| Component | Description | |-----------|-------------| | StatusBadge | Status indicator (success, pending, failed, completed, error) | | NetworkBadge | Network/layer badge (L1, LN, RGB20, RGB21, Spark, Arkade) | | AssetIcon | Circular asset icon with CDN + fallback chain | | AssetCard | Asset display with icon, name, networks, balance | | TransactionCard | Transaction row with direction, status, amount | | PageHeader | Sticky header with left/center/right slots | | SettingItem | Settings row with icon, title, description, chevron | | SectionLabel | Uppercase section heading | | AlertBanner | Alert box (error, warning, info, success variants) | | ErrorBoundary | React error boundary with retry UI |

Hooks

| Hook | Description | |------|-------------| | useToast | Toast state management + toast() function | | useAssetIcon | Resolves asset ticker to CDN icon URL |

Utilities

| Export | Description | |--------|-------------| | cn() | clsx + tailwind-merge utility |

Native Components

From WDK UI Kit (re-exported, themed)

AmountInput, AssetSelector, NetworkSelector, Balance, CryptoAddressInput, QRCode, TransactionItem, TransactionList, SeedPhrase

Custom

StatusBadge, NetworkBadge, AlertBanner, SectionLabel

Design Tokens

| Token | Values | |-------|--------| | colors | primary (#2BEE79), surfaces, text, semantic, network, transaction | | typeScale | xxs (10px) through display (36px) | | fontFamily | Geist Sans, Geist Mono | | fontWeight | normal (400) through bold (700) | | radius | sm (8px) through full (9999px) | | shadow | glow, glowStrong, glowSubtle, glowAccent | | transition | fast (150ms), default (200ms), slow (300ms) |

Development

npm install --legacy-peer-deps
npm run build    # Build all entry points
npm run dev      # Watch mode

License

MIT