Skip to main content

For engineers

The shape of the package​

Prism is distributed as a shadcn-style registry. One command copies a component's source, its styles and the token layer into your app, and you own the code:

npx shadcn@latest add @prism/button

You then import three stylesheets once at the app root: the tokens and themes, every component's styles, and the fonts. Installation has the full steps.

A pre-compiled bundle on a single global also exists, for prototypes and static pages with no build step. Python and Django apps use the prismds package; see Python & Django.

Using a component​

Components are plain React components, imported from where the registry copied them:

import { Button } from '@/components/prism/Button';

<Button variant="accent" onPress={save}>Save</Button>

In a no-build prototype, read them from the global instead: const { Button } = window.PrismDesignSystem_39d121;

In Next.js, wrap the app once in <LinkProvider component={Link}> so Prism links use next/link. Interactive components already ship with "use client".

Each component page in Components lists its full prop table — types, whether a prop is required, and what it does — generated directly from the component's type definitions, so it matches the code you are calling.

Theming​

Do not override component internals. To re-skin, set a product signature or remap the brand ramp on a container:

<div data-signature="commerce">…</div>

Everything inside re-skins. Set the theme with data-theme: light, dark or system; industry, industry-dark or industry-system; enterprise, enterprise-dark or enterprise-system. For density, data-density="compact|neutral|relaxed"; for the ten-foot tier, data-scale="cinema". These attributes cascade, so you can scope them to a subtree.

Accessibility you get for free​

Focus rings, keyboard interaction, ARIA roles and reduced-motion handling are built into the components. Your job is to not undo them: keep labels real, keep focus visible, and don't trap keyboard users.

What else ships​

Beside the registry, the packages/ workspace holds the tokens npm package (a Tailwind v3 preset and a Tailwind v4 theme, needed only if you write Tailwind utilities), the Python package prismds, and a React Native proof of concept. See Installation.