Scan your whole stack
Are you using @puzzle-ui/theme?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.19.1
@puzzle-ui/theme was last scanned on 24 Nov 2026 at version 0.19.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.19.1 LATEST | 24 Nov 2026 | No rules fired |
| 0.19.0 | 24 Nov 2026 | No rules fired |
| 0.18.0 | 23 Nov 2026 | No rules fired |
| 0.17.0 | 22 Nov 2026 | Not shown |
| 0.16.0 | 21 Nov 2026 | Not shown |
Findings for v0.19.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.19.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Design tokens, color themes, typography, fonts, and theme scoping for Puzzle.
Documentation: https://puzzle-ui.com/docs/theme
See the theme documentation for API maturity and compatibility details.
@puzzle-ui/theme is the source of truth for Puzzle's visual design. Its
Theme provider turns a typed token object into CSS custom properties
(--puzzle-*), loads configured fonts, resolves light, dark, and system color
schemes, and can scope a theme to the whole document or a single subtree.
All @puzzle-ui/ui components consume these
variables, so a single provider styles your application.
npm install @puzzle-ui/theme
# or
bun add @puzzle-ui/theme
# or
pnpm add @puzzle-ui/theme
# or
yarn add @puzzle-ui/theme
React and React DOM 19 are peer dependencies.
Wrap your application once at the root:
import { Theme } from "@puzzle-ui/theme";
export const App = () => (
<Theme>
<YourApp />
</Theme>
);
Customize the color scheme, color theme, fonts, and tokens:
<Theme
theme="system"
colorTheme="cobalt-sky"
fonts={{
heading: { family: "Sora" },
body: { family: "Inter" },
}}
tokens={{
radius: { md: "0.5rem" },
}}
>
<YourApp />
</Theme>
COLOR_THEMES is the read-only registry of built-in color themes. Its keys
are the identifiers accepted by Theme's colorTheme prop, and each value
contains the actual light colors and dark-mode brand overrides:
import { COLOR_THEMES } from "@puzzle-ui/theme";
const presets = Object.entries(COLOR_THEMES);
When colorTheme is omitted, Theme uses its package defaults. The
DEFAULT_COLOR_SCHEME export exposes those default light and dark color values
for tools that need to preview them without defining a second palette.
THEME_TOKEN_REGISTRY provides read-only metadata for every non-color token
and named typography-role value, including its default and generated CSS
variable. It is intended for tools that need to inspect or edit supported
tokens without duplicating the package's token definitions:
import { THEME_TOKEN_REGISTRY } from "@puzzle-ui/theme";
const spacing = THEME_TOKEN_REGISTRY.filter(
(token) => token.group === "spacing",
);
| Area | Description | Docs |
|---|---|---|
| Theme provider | Injects token CSS variables, loads fonts, and applies global styles at root or local scope. | Theme Provider |
| Design tokens | Typed token groups for spacing, radius, shadows, elevation, borders, layout, motion, and z-index. | Design Tokens |
| Colors | Semantic color roles, light/dark color schemes, and built-in color themes. | Colors |
| Typography and fonts | Named typography roles, fluid font sizes, Google Fonts, and self-hosted fonts. | Typography and Fonts |
| Breakpoints | Shared responsive breakpoints for JavaScript and CSS. | Breakpoints |
| Component overrides | Global link and image components for router and framework integration. | Component Overrides |
The @puzzle-ui/theme package includes the puzzle-theme executable.
It requires Node.js 20.19 or later.
npm install @puzzle-ui/theme
npm exec -- puzzle-theme --help
Create puzzle-fonts.json in your application's working directory:
{
"body": {
"family": "Inter",
"weights": [400, 700]
}
}
Download the fonts with either package manager:
npm exec -- puzzle-theme fonts download
# Or, with the package installed using Bun:
bun run puzzle-theme fonts download
The command writes WOFF2 files and puzzle-fonts.css to public/fonts.
Use --config <path> or --out-dir <path> to change these locations.
Unchanged downloads are skipped; --force downloads them again.
For variable fonts, use "weightRange": [300, 700] instead of weights
to request a continuous range. Only use ranges supported by the font family.
Discrete weights remain supported; when both are provided, the range is used.
The downloader keeps all language subsets by default. Pass
--subsets latin,latin-ext to retain only Latin and Latin Extended;
missing requested subsets produce an error. Other scripts will use fallback
fonts. Subset choices are included in the download cache key.
To load the generated stylesheet, set fontSource="local" on Theme
and pass the same configuration to its fonts prop. The default local
stylesheet URL is /fonts/puzzle-fonts.css.
When using local fonts, Puzzle automatically preloads the normal Latin
variant of the body font. Use fontPreload="heading" or
fontPreload="accent" to preload another configured role, or
fontPreload={false} to disable preloading.
The generated stylesheet and preload link use the same font URL, avoiding duplicate downloads. Preloading only applies to local fonts and only one font is preloaded per Theme instance.
With a Nitro server, such as TanStack Start with nitro/vite, pass
createFontRouteRules() from @puzzle-ui/theme/nitro to routeRules.
Versioned font files are then cached for a year as immutable, and
puzzle-fonts.css and preload fonts for a day with background revalidation:
import { nitro } from "nitro/vite";
import { createFontRouteRules } from "@puzzle-ui/theme/nitro";
nitro({ routeRules: createFontRouteRules() });
@puzzle-ui/ui — components styled by this theme.@puzzle-ui/core — shared utilities such as cn and responsive helpers.Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.