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

@hadi_gunawan/md3-expressive-ds

v0.2.3

Published

A React + TypeScript component library implementing Google's Material Design 3 Expressive patterns - 40+ components, 6 preset themes, and a CSS custom property token system.

Readme

@hadi_gunawan/md3-expressive-ds

A React + TypeScript component library inspired by Google's Material Design 3 Expressive direction: dynamic color, expressive motion, flexible shapes, and adaptive component patterns for modern product UIs.

The package includes 40+ components, six preset themes (Purple / Ocean / Forest, light + dark), and a CSS custom property token system.

Install

npm install @hadi_gunawan/md3-expressive-ds

Peer dependencies: react@^18.3.1 || ^19 and react-dom@^18.3.1 || ^19.

Usage

Import the stylesheet at your entry point, wrap your application root with ThemeProvider, and use components/hooks anywhere inside:

import React from 'react';
import ReactDOM from 'react-dom/client';
import { ThemeProvider, Button, Card, CardContent, CardTitle, useTheme } from '@hadi_gunawan/md3-expressive-ds';
import '@hadi_gunawan/md3-expressive-ds/style.css';

function MainApp() {
  const { theme, toggleMode } = useTheme(); // Retrieves state from provider context

  return (
    <Card variant="filled">
      <CardContent>
        <CardTitle>Hello MD3 (Theme: {theme})</CardTitle>
        <Button variant="filled" onClick={toggleMode}>
          Toggle Dark Mode
        </Button>
      </CardContent>
    </Card>
  );
}

export function App() {
  return (
    <ThemeProvider>
      <MainApp />
    </ThemeProvider>
  );
}

Required Icon Font

Components that render icons expect Google's Material Symbols Rounded font to be available. Add this to your HTML shell or self-host the font in your app:

<link
  href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,[email protected],100..700,0..1,-50..200&display=swap"
  rel="stylesheet"
/>

Theming

Use the built-in themes with attributes on the root element:

<html data-theme="ocean" data-mode="dark">

Themes: purple (default), ocean, forest, custom. Modes: light, dark.

The stylesheet exposes Material-style CSS variables such as:

--md-sys-color-primary
--md-sys-color-on-primary
--md-sys-color-surface-container
--md-sys-shape-corner-lg
--md-sys-motion-duration-medium2
--md-sys-typescale-body-medium

useTheme().setSeedColor('#6750a4') generates a custom HSL-based palette and writes CSS variables to <html>. This is intentionally lightweight; if you need exact Android dynamic color parity, wire your palette through Material Color Utilities and set the same CSS variables.

SSR Notes

useTheme is safe to import during SSR, but it applies attributes and local storage only in the browser. In Next.js/Remix, call it from a client component or set data-theme and data-mode in your document shell to avoid a flash before hydration.

What's Inside

  • Buttons & actions: Button, IconButton, FAB, FABMenu, SplitButton, SegmentedButton
  • Containment: Card, Chip, Banner, Divider, Accordion
  • Selection: Checkbox, Radio, Switch, Slider, Rating
  • Input: TextField, Search, Select, Combobox, NumberInput, DatePicker, TimePicker
  • Navigation: TopAppBar, Toolbar, Tabs, NavigationBar, NavigationRail, NavigationDrawer, Breadcrumbs, Pagination, Stepper
  • Communication: Snackbar, Dialog, BottomSheet, SideSheet, Tooltip, Menu, Badge, ProgressIndicator, LoadingIndicator, EmptyState
  • Content: List, Avatar, AvatarGroup, Skeleton, Carousel, DataTable, Timeline, Tree, Icon

Hooks: useTheme, useRipple, useFocusTrap. Utility: cn.

Quality Checks

npm run typecheck
npm run audit:docs
npm test
npm run build:lib

audit:docs verifies that every demo component has explicit documentation metadata.

License

MIT (c) hadi_gunawan