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

@precisa-saude/themes

v1.8.0

Published

Shared CSS design tokens (colors, grid, typography scaffolding, status semantics) for Precisa Saúde repositories.

Downloads

2,035

Readme

@precisa-saude/themes

Shared CSS design tokens for Precisa Saúde repositories. Ships OKLCh color palettes, a responsive 14/16-column grid, typography scaffolding, status semantics, and shared animations — all as CSS custom properties.

No JavaScript. No bundler needed. Works with Tailwind v3, Tailwind v4, vanilla CSS, or anything that honors @import.

Install

pnpm add @precisa-saude/themes

Use

Everything at once (recommended for most sites):

/* your-app/src/index.css */
@import 'tailwindcss';
@import '@precisa-saude/themes';

Cherry-pick modules:

@import '@precisa-saude/themes/base.css'; /* typography scaffolding + spacing + shadows */
@import '@precisa-saude/themes/colors.css'; /* palette + shadcn semantic tokens */
@import '@precisa-saude/themes/grid.css'; /* 14/16-col responsive grid */
@import '@precisa-saude/themes/status.css'; /* success/warning/elevated/critical/info */
@import '@precisa-saude/themes/animations.css'; /* marquee + reduced-motion */

What's inside

base.css

  • --font-sans, --font-serif, --font-mono — default fallback chains (system UI fonts). Override on :root to inject custom fonts.
  • --spacing, --radius, --tracking-* — spacing unit, border radius, letter-spacing scale
  • --shadow-* — shadow ramp (2xs → 2xl), light + dark variants

colors.css

  • Brand palette: --ps-violet, --ps-mint, --ps-amber, --ps-green (plus dark variants)
  • Surface: --background, --foreground, --card, --popover
  • Semantic: --primary, --secondary, --muted, --accent, --destructive (each with -foreground)
  • Borders / focus: --border, --input, --ring
  • Charts: --chart-1 through --chart-5
  • Sidebar: --sidebar, --sidebar-* (for app shells with a sidebar)
  • Gradient: --gradient-from, --gradient-to (defaults: primary → ps-mint)

All values in OKLCh. Dark mode triggers under .dark — add class="dark" on <html> or use a theme toggle.

grid.css

  • 14 columns below 1440px, 16 columns above
  • --grid-cols, --grid-gaps, --grid-max-w, --col-w
  • Use with Tailwind's arbitrary-grid syntax: grid grid-cols-[repeat(var(--grid-cols),1fr)] gap-4

status.css

Generic status palette (success / warning / elevated / critical / info). Each exposes a base color, foreground, and tint. Light + dark variants.

.pill-success {
  background: var(--status-success-tint);
  color: var(--status-success);
}

animations.css

  • .animate-marquee-left / .animate-marquee-right — horizontal scroll keyframes
  • --marquee-duration — override per element (default 300s)
  • Honors prefers-reduced-motion

Custom fonts

The default --font-sans / --font-serif / --font-mono chains use system fonts so sites render without any extra setup. To swap in custom fonts:

@import '@precisa-saude/themes';

@font-face {
  font-family: 'YourFont';
  src: url('/fonts/YourFont.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-sans: 'YourFont', system-ui, sans-serif;
}

Dark mode

Toggle by adding class="dark" on <html> (or any parent element). All token values cascade automatically.

document.documentElement.classList.toggle('dark');

Tailwind v4

The tokens are designed for Tailwind v4's @theme extraction. In your Tailwind config:

@theme {
  --color-primary: var(--primary);
  --color-background: var(--background);
  /* ...or use @theme inline to map directly */
}

License

Apache-2.0