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

@molecule/app-theme-css-variables-liquid-glass

v1.0.2

Published

Liquid glass theme preset with translucent surfaces for molecule.dev

Readme

@molecule/app-theme-css-variables-liquid-glass

Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit src/index.ts JSDoc, not this file.

Liquid glass theme preset for molecule.dev.

Provides translucent, frosted-glass-inspired light and dark themes designed to pair with backdrop-filter blur effects. Uses the standard CSS custom properties provider from @molecule/app-theme-css-variables.

Quick Start

import {
  createCSSVariablesThemeProvider,
  lightTheme,
  darkTheme,
} from '@molecule/app-theme-css-variables-liquid-glass'
import { setProvider } from '@molecule/app-theme'

const provider = createCSSVariablesThemeProvider({
  themes: [lightTheme, darkTheme],
  defaultTheme: 'dark',
  persistKey: 'molecule-theme',
})

setProvider(provider)

Type

provider

Installation

npm install @molecule/app-theme-css-variables-liquid-glass @molecule/app-theme @molecule/app-theme-css-variables

API

Interfaces

CSSVariablesThemeConfig

Configuration for css variables theme.

interface CSSVariablesThemeConfig {
  /** Available themes. */
  themes: Theme[]
  /** Name of the default theme to use. */
  defaultTheme?: string
  /** CSS variable prefix (default: 'mol'). */
  prefix?: string
  /** Whether to auto-apply CSS variables to :root (default: true). */
  applyToDocument?: boolean
  /**
   * Key for persisting the selected theme name across reloads. When `storage`
   * is omitted, persistence falls back to `window.localStorage` in browser
   * environments; in SSR / non-browser environments persistence is skipped.
   */
  persistKey?: string
  /**
   * Storage adapter for persisting theme preference. Optional — when omitted
   * and `persistKey` is set, `window.localStorage` is used when available.
   * Provide an adapter for React Native (AsyncStorage wrapper) or custom stores.
   */
  storage?: ThemeStorageAdapter
  /**
   * With no persisted choice, start on the theme whose `mode` matches the
   * OS preference (`prefers-color-scheme`) instead of `defaultTheme`.
   * Browser-only: a render without a window — a server, a build-time
   * prerender — starts on `defaultTheme`, which `getServerTheme()` reports
   * so a hydrating client renders the markup it was sent before switching.
   * Default: false.
   */
  systemDefault?: boolean
}

ThemeStorageAdapter

Minimal storage adapter for theme persistence. Compatible with localStorage, sessionStorage, or any custom implementation (e.g., React Native AsyncStorage wrapper, SSR no-op).

interface ThemeStorageAdapter {
  getItem(key: string): string | null
  setItem(key: string, value: string): void
}

Functions

createCSSVariablesThemeProvider(config)

Creates a framework-agnostic ThemeProvider that applies theme tokens as CSS custom properties on the document root element.

function createCSSVariablesThemeProvider(config: CSSVariablesThemeConfig): ThemeProvider
  • config — Theme provider configuration (available themes, default theme, CSS variable prefix, persistence).

Returns: A ThemeProvider that applies themes as CSS custom properties on the document root.

Constants

darkTheme

Liquid glass dark theme.

Translucent dark surfaces over blurred backgrounds.

const darkTheme: Theme

lightTheme

Liquid glass light theme.

Translucent white surfaces over blurred backgrounds.

const lightTheme: Theme

Core Interface

Implements @molecule/app-theme interface.

Injection Notes

Requirements

Peer dependencies:

  • @molecule/app-theme ^1.0.1
  • @molecule/app-theme-css-variables ^1.0.1

Runtime Dependencies

  • @molecule/app-theme

  • @molecule/app-theme-css-variables

  • The frosted BLUR comes from the ClassMap, not from these themes: pair with @molecule/app-ui-tailwind-glass (setClassMap(classMap)), which layers backdrop-filter onto surface components. These themes alone give translucent colors with no blur.

  • Same precedence trap as the base bond: template-based apps ship app/src/theme.css whose --color-* variables SHADOW these theme colors — when theme.css defines colors, wiring this preset changes nothing visible; port the glass palette into theme.css instead (see @molecule/app-theme-css-variables remarks for the full mechanism).