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

@ekkolyth/ui

v0.1.17

Published

Shared UI Library for my personal projects

Readme

Ekko UI

Shared UI component library.

Installation

npm install @ekkolyth/ui

Peer Dependencies

  • react ^19.2.3
  • react-dom ^19.2.3
  • next-themes ^0.4.6 (optional, for Next.js theme support)
  • @tanstack/react-router ^1.150.0 (optional, for TanStack Router theme support)

Exports

Main Export (@ekkolyth/ui)

All UI components, hooks, and utilities.

import { Button, Card, Dialog, useIsMobile, cn } from '@ekkolyth/ui'

Components: Built on top of shadcn@latest.

Next.js Theme Provider (@ekkolyth/ui/next)

Theme provider for Next.js applications using next-themes.

import { ThemeProvider, useTheme, Toaster } from '@ekkolyth/ui/next'
import type { ThemeProviderProps, SystemTheme, ThemeName } from '@ekkolyth/ui/next'

ThemeProvider Props:

  • defaultTheme?: SystemTheme - Default system theme ("light" | "dark" | "system" | "normal")
  • lightTheme?: ThemeName | ThemeName[] - Light theme(s) to make available.
  • darkTheme?: ThemeName | ThemeName[] - Dark theme(s) to make available.
  • storageKey?: string - localStorage key prefix (default: "ekko-ui") - most people won't need this, but if you're running something like "Micro-Frontends", it might be useful to customize per-frontend, despite running on the same domain.

useTheme Hook: Returns:

  • systemTheme: SystemTheme - Current system theme mode
  • resolvedTheme: ThemeName - Currently applied theme name
  • availableThemes: { light: ThemeName[], dark: ThemeName[] } - Available themes
  • setSystemTheme: (theme: SystemTheme) => void - Set system theme mode
  • setSpecificTheme: (mode: "light" | "dark", theme: ThemeName) => void - Set specific theme

ThemeName Types:

  • "mocha" | "frappe" | "macchiato" | "latte" - Catppuccin themes
  • "tokyo-night" - Tokyo Night theme
  • "ekkoos-light" | "ekkoos-dark" - Ekko OS themes
  • "ekkolyth-light" | "ekkolyth-dark" - Ekkolyth themes
  • "ekko-playlist-light" | "ekko-playlist-dark" - Ekko Playlist themes

TanStack Router Theme Provider (@ekkolyth/ui/tanstack)

Theme provider for TanStack Router applications.

import { ThemeProvider, useTheme, Toaster } from '@ekkolyth/ui/tanstack'
import type { SystemTheme, ThemeName } from '@ekkolyth/ui/tanstack'

API matches Next.js provider 1:1

Note: The Toaster component is exported from the theme provider entries (/next and /tanstack) and is automatically theme-aware. If you import Toaster from the main entry point (@ekkolyth/ui), it will be theme-agnostic and you'll need to pass a theme prop manually.

Theme Components

Theme Toggle (@ekkolyth/ui/themes/theme-toggle)

import { ThemeToggle } from '@ekkolyth/ui/themes/theme-toggle'
import type { ThemeToggleProps } from '@ekkolyth/ui/themes/theme-toggle'

Theme Select (@ekkolyth/ui/themes/theme-select)

import { ThemeSelect } from '@ekkolyth/ui/themes/theme-select'
import type { ThemeSelectProps } from '@ekkolyth/ui/themes/theme-select'

Theme Styles

Import theme CSS files:

// All themes
import '@ekkolyth/ui/themes'

// Catppuccin themes
import '@ekkolyth/ui/catpuccin/latte'
import '@ekkolyth/ui/catpuccin/frappe'
import '@ekkolyth/ui/catpuccin/macchiato'
import '@ekkolyth/ui/catpuccin/mocha'

// Other themes
import '@ekkolyth/ui/tokyo-night'
import '@ekkolyth/ui/ekko-os'
import '@ekkolyth/ui/ekkolyth'
import '@ekkolyth/ui/ekko-playlist'

Usage Example

Next.js Setup

// app/layout.tsx
import { ThemeProvider, Toaster } from '@ekkolyth/ui/next'
import '@ekkolyth/ui/themes'

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        <ThemeProvider
          defaultTheme="system"
          lightTheme={["latte", "ekkolyth-light"]}
          darkTheme={["mocha", "ekkolyth-dark"]}
        >
          {children}
          <Toaster />
        </ThemeProvider>
      </body>
    </html>
  )
}

// app/page.tsx
'use client'
import { Button } from '@ekkolyth/ui'
import { ThemeToggle } from '@ekkolyth/ui/themes/theme-toggle'
import { useTheme } from '@ekkolyth/ui/next'

export default function Page() {
  const { systemTheme, setSystemTheme } = useTheme()
  
  return (
    <div>
      <ThemeToggle />
      <Button onClick={() => setSystemTheme('dark')}>
        Set Dark Mode
      </Button>
    </div>
  )
}

TanStack Router Setup

// __root.tsx
import { ThemeProvider, Toaster } from '@ekkolyth/ui/tanstack'
import '@ekkolyth/ui/themes'

function App() {
  return (
    <ThemeProvider
      defaultTheme="system"
      lightTheme={["latte"]}
      darkTheme={["mocha"]}
    >
        <Outlet />
      <Toaster />
    </ThemeProvider>
  )
}