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

@paradox-design/styles

v0.1.2

Published

Paradox Design System global styles — reset, base, typography, layout, utilities, a11y

Readme

@paradox-design/styles

The global style layer of Paradox Design System — reset, base, typography, layout primitives, utilities and a11y. Works independently of the components — you can use it in a project without a single web component.

Installation

npm install @paradox-design/tokens @paradox-design/styles

Install @paradox-design/tokens explicitly, even though it is already a dependency of this package. Styles do not import the tokens themselves — your code does (below), and strict package managers such as pnpm only resolve imports of direct dependencies.

Upgrade all @paradox-design/* packages together, to their latest versions. In 0.x a minor release may rename tokens; mixing minors leaves some variables undefined.

Import order

@import '@paradox-design/tokens/css'; /* 1. primitive + semantic tokens */
@import '@paradox-design/themes/css/default'; /* 2. theme                        */
@import '@paradox-design/styles'; /* 3. styles                       */

⚠️ Styles must come after tokens and the theme. They contain only var(--pdx-…); without the earlier definitions they resolve to empty values.

Use @paradox-design/tokens/css, not tokens/css/primitive alone. Styles rely on semantic tokens — spacing, typography, radius, elevation, focus — that a theme does not define, because a theme overrides only colors.

Layers

| File | What it does | When to skip it | | ---------------- | ------------------------------------------------------------ | ------------------------------------ | | reset.css | normalizes browsers | when you have your own reset | | base.css | styles HTML elements using tokens | when you style with classes only | | typography.css | .pdx-heading-*, .pdx-body-* classes | rarely | | layout.css | .pdx-stack, .pdx-cluster, .pdx-grid, .pdx-sidebar | when you have your own layout system | | utilities.css | spacing, flex and radius classes — generated from tokens | when you use Tailwind | | a11y.css | .pdx-visually-hidden, .pdx-skip-link, focus ring | never |

Selective import:

@import '@paradox-design/styles/reset';
@import '@paradox-design/styles/a11y';

Why there is no 12-column grid

Column grids were a workaround for the lack of flexbox and grid. Today .pdx-grid does the same with repeat(auto-fit, minmax(…)) — no classes in the HTML and no hard-coded breakpoints. The number of columns follows the available width, not whatever someone typed into col-md-4 six months ago.

Logical properties, not physical ones

Utilities use margin-inline-start, not margin-left:

| Class | Property | | ------------- | --------------------- | | .pdx-mi-md | margin-inline | | .pdx-mis-md | margin-inline-start | | .pdx-mbs-md | margin-block-start | | .pdx-pie-sm | padding-inline-end |

In RTL languages the layout flips by itself — no separate stylesheet and no [dir='rtl'] in the code.

Layout primitives

Each one is configured with a variable instead of piling up modifier classes:

.my-section {
  --pdx-stack-gap: var(--pdx-spacing-xl);
}

| Class | Variables | | -------------- | ----------------------------------------------------------------------- | | .pdx-stack | --pdx-stack-gap | | .pdx-cluster | --pdx-cluster-gap, --pdx-cluster-align | | .pdx-grid | --pdx-grid-min, --pdx-grid-gap | | .pdx-sidebar | --pdx-sidebar-width, --pdx-sidebar-gap, --pdx-sidebar-content-min | | .pdx-ratio | --pdx-ratio | | .pdx-clamp | --pdx-clamp-lines |

Accessibility

<a class="pdx-skip-link" href="#main">Skip to content</a> <span class="pdx-visually-hidden">Opens in a new tab</span>

🔴 Do not replace .pdx-visually-hidden with display: none. That also removes the element from the accessibility tree — the exact opposite of the intent.

The focus ring uses :focus-visible, not :focus — otherwise the outline would appear after a mouse click, users would report it as a bug, and someone would "fix" it with outline: none.

Quality checks

pnpm build validates every use of var(--pdx-…) against the real tokens.

ℹ️ A typo in a CSS variable name does not cause an error — it causes an empty style. Without this validation --pdx-color-text-link-hovr would pass review and surface in production. Variables with a fallback value (var(--pdx-stack-gap, …)) are user configuration points and do not have to be tokens.

Utilities are generated from the token scale — add a spacing step and the class appears on its own; remove it and the class disappears. A hand-written list would drift at the first change.

License

MIT © Paradox Software