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

@mihcm/theme

v0.2.11

Published

Tailwind 4 + NativeWind v5 preset, CSS variables, and RN ThemeProvider for the MiHCM Design System.

Readme

@mihcm/theme

Theme integration for the MiHCM Design System.

This package turns raw tokens from @mihcm/tokens into consumable CSS variables, Tailwind 4 theme mappings, reset styles, animation styles, and React Native theme helpers.

Current release

Current published version: 0.2.10.

This release adds the NATIVE_PLACEHOLDER_COLOR constant so React Native form fields share a single muted-foreground placeholder colour, exposes shadow-mi-input through globals.css and the Tailwind preset, keeps current date UI on the shared DayPicker v10 path, and preserves datepicker.css only as a legacy compatibility import.

Install

pnpm add @mihcm/theme @mihcm/tokens

Web usage

Import globals once in the app root:

import '@mihcm/theme/globals.css';

Date UI now uses the MiHCM Calendar and DatePicker primitives backed by @daypicker/react v10. No separate react-datepicker CSS import is required for current MiHCM date, date-time, time-only, or range pickers.

Tailwind usage

Use the preset when a project needs explicit Tailwind configuration:

import mihcmPreset from '@mihcm/theme/tailwind.preset';

export default {
  presets: [mihcmPreset],
};

Tailwind classes should use MiHCM semantic tokens and standard utilities:

<section className="bg-background text-foreground border border-border shadow-mi-card" />

What is included

  • globals.css: token variables, reset styles, base typography, light/dark theme surfaces, and component CSS hooks.
  • datepicker.css: legacy compatibility layer for older consumers that still import it. Current MiHCM DatePicker styling lives in component-level token classes and globals.css.
  • tailwind.preset: Tailwind 4 mapping for color, type, spacing, radius, shadow, and motion tokens.
  • React Native theme helpers exported from the package root.

Recent additions and fixes

  • Exposes NATIVE_PLACEHOLDER_COLOR so React Native form fields (Combobox, CheckboxGrid, TransferList) share one muted-foreground placeholder colour instead of inlining hex literals per component.
  • Exposes the latest 60/30/10 composition token aliases through globals.css and the Tailwind preset.
  • Added CSS reset coverage for app surfaces that Tailwind does not fully normalize.
  • Normalized form field background, border, and reduced shadow-mi-input styles across first-party and React Select controls.
  • Added date picker trigger/clear-slot spacing fixes and calendar-friendly date picker theme overrides.
  • Current DatePicker styling follows the shared DayPicker v10 Calendar component, so new apps should not add react-datepicker styling.
  • Added smoother shared motion variables for disclosure, sheet, toast, and overlay animation.
  • Added TopBar dark-mode token support through fixed component-level variables.

Maintainer checklist

When changing theme behavior:

  1. Confirm the change is token-driven and not a raw one-off value.
  2. Check light mode and dark mode.
  3. Check form fields, overlays, and app-shell examples because they rely heavily on shared globals.
  4. Run docs and Storybook visual verification where the changed CSS appears.
  5. Add a changeset before publishing.

Build

cd src
pnpm -F @mihcm/theme build
pnpm -F @mihcm/theme typecheck

Related docs

  • src/apps/docs/app/tokens/
  • docs/CONVENTIONS.md
  • docs/security-playbook.md