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

@crystal-ui/core

v2.10.1

Published

Crystal, Meridian's design system: design tokens, material stylesheets, a token resolver, a headless state core, motion recipes, icons and the specification.

Readme

@crystal-ui/core

Crystal is Meridian's design system. This package is the library: design tokens, the material stylesheets, a token resolver, a headless state core, motion recipes, icons, shaders and the specification.

It is framework independent. It is the base that platform component libraries are built on, and it is not a component framework or a native renderer itself.

npm install @crystal-ui/core

Using the stylesheets

Load the theme first, then the primitives.

import '@crystal-ui/core/theme';
import '@crystal-ui/core/css';
<section class="cr-plastic">
  <section class="cr-frost">
    <article class="cr-haze">Readable product content</article>
  </section>
  <nav class="cr-resin" aria-label="Product navigation">
    <!-- The product's navigation controls -->
  </nav>
</section>

Set data-crystal-mode="dark" or "light" on the root element to choose a mode. The generated theme is the Prism palette in both modes. The resolver produces a theme for any of the six palettes and any settings within the documented ranges.

Materials

The material order is Plastic → Frost → Resin, from back to front. Products change the palette. They do not change this order.

| Material | What it is | |---|---| | Plastic | The opaque foundation, tinted by the palette. | | Frost | The intermediate panel: 40px blur, tint and fine grain. | | Resin | The floating control plane: 20px blur, a fixed 20% fill and a defined rim. | | Haze | The reading surface: an 80% fill with a 1.95px feathered edge and crisp text. | | Stone | Label backing: 55% in light mode, 60% in dark, feathered like Haze. | | Mirage | The scrim behind a modal. |

Recommended defaults: colour atmosphere 90%, Frost base tint 35%, elevation 125%, corner radius 28px. Feathering applies to an isolated paint layer only. Text, icons, hit areas and focus rings are never blurred.

What the package exports

| Import | Contents | |---|---| | @crystal-ui/core | The generated token export for TypeScript. Swift and Kotlin exports are in exports/. | | @crystal-ui/core/tokens | The token source, in W3C DTCG format. | | @crystal-ui/core/flat | The flat token file, with the runtime defaults and the palette list. | | @crystal-ui/core/css | crystal.css: the materials, the control surface and the component recipes. | | @crystal-ui/core/theme | The generated default theme. | | @crystal-ui/core/resolver | The token resolver, contrast calculation, and CSS and JSON export. | | @crystal-ui/core/core/state | State derivation for indicators, fields and ranges. | | @crystal-ui/core/core/preferences | Preference clamping and duration resolution. | | @crystal-ui/core/core/spring | Spring physics: sampling, settling time and overshoot. | | @crystal-ui/core/core/presets | Keyframes for the material motion presets, computed from tokens. | | @crystal-ui/core/motion-recipes | The 60 motion recipes, each with its spring and per-platform values. | | @crystal-ui/core/engines | The Motion and GSAP engine entry. | | @crystal-ui/core/icons | The icon manifest. There are 1022 icons on a 24px grid. | | @crystal-ui/core/shaders/* | The optical layer's shader sources and their manifest. | | @crystal-ui/core/catalogue | The component catalogue: 284 components in 14 categories. | | @crystal-ui/core/surfaces | The 23 surfaces a component can be made of, each with its recipe. | | @crystal-ui/core/docs/* | The eleven specification chapters, as Markdown. |

motion and gsap are dependencies of this package. A consumer bundles them as it prefers.

Specification

The chapters in docs/ are the specification. Start with principles.md, materials.md and components.md. adoption.md covers how a product or a library takes Crystal on, and catalogue.md lists every component with its surface, states, semantics and motion.

The rendered site, the interactive playground and the verification evidence are in crystal-preview. The approved material studies there are the visual standard. A rendering that departs from them without an approved reason is a defect, and passing token and contrast checks does not establish that a rendering is correct.

Licences

Third-party licences are in licenses/.