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

@flood-md/tokens

v0.2.10

Published

Flood semantic design tokens and light/dark themes.

Readme

@flood-md/tokens

Typed reference values and semantic CSS roles for Flood 0.2.10. Keep Flood package versions aligned. Existing 0.1.1 installs use their earlier token contract.

React consumers import @flood-md/react/styles.css and use FloodRoot. Token-only consumers import @flood-md/tokens/foundations.css and set both attributes on the same scope element: data-flood-foundations="neutral" data-flood-theme="dark". Only the neutral/dark foundations profile is supplied.

Exports include ./foundations (typed tokenNames lookup), ./foundations.css, ./foundations.manifest.json and ./neutral.dark.tokens.json. Values are authored only in src/tokens.json. Generated artifacts must not be edited.

Roles cover surfaces/content, primary/subtle/contextual actions, fields, selection/feedback/focus, Inter typography, relative spacing/radii, control/icon sizes, motion and local layer order. Override public semantic --flood-sys-* roles on their scope; repeat both attributes for nested scopes. See the foundations guide for supported types and limits.

The React package bundles Inter and its OFL license. Token-only consumers provide their own font setup. Version 0.2.3 maps the quiet field.border role to the container-outline tone. field.boundary remains a stronger opt-in; the quiet default does not establish 3:1 non-text contrast. Evaluate actual recognition and accessibility for the host composition.

Legacy ./tokens.css and JSON retain the earlier shared/light/dark contract and --flood-* names. Legacy controls outside FloodRoot remain compatible; legacy overrides do not automatically change separately scoped foundations roles.

Version 0.2.3 adds scrollbar size/inset/min-thumb roles and semantic thumb/hover colors, expanding the profile to 168 roles. Install matching package versions.

Version 0.2.5 adds twenty-five semantic roles, bringing the dark profile to 193 roles. Existing role values remain unchanged:

  • sys.color.accent.content and sys.color.loading.placeholder separate accent text and loading fills from focus and action states.

  • sys.color.indicator.track/fill/accent and sys.size.indicator.sm/md/lg control bounded indicators without borrowing control or focus roles.

  • sys.color.action.danger.content styles destructive actions independently from validation messages and keyboard focus.

  • sys.size.keycap.sm/md/lg provide independent relative heights for keyboard hints.

  • sys.size.container.sm/md/lg and sys.size.grid.min-item supply relative layout bounds.

Version 0.2.5 separates floating surfaces from modal surfaces. The floating material uses nine of those new semantic roles; previous token values remain intact. surface.floating is the opaque fallback; surface.floating-translucent, border.floating, selection.floating, shadow.floating and effect.floating blur/saturation/shadow-offset/shadow-blur define the floating material. Select, Combobox, MultiSelect, Menu, Popover and Tooltip share it; Dialog and Drawer retain surface.overlay. Backdrop filtering is progressive enhancement; reduced transparency uses the opaque fill and forced colors use system colors. Keep text opaque and evaluate it against the actual composited background.

Version 0.2.10 adds field-label, group-title and dialog-title type roles. They separate form hierarchy without changing generic body/label roles or the host root font. Runtime values are compiled only from src/tokens.json.