npm install @idyeah/diya
GitHub
Appearance
Color scheme

Page Header

Get code

Three steps. The first two happen once per app.

Step 1: Install

Terminal, in your app’s folder
npm install @idyeah/diya

Once per app. Every component and pattern is in this one package.

Working in Claude Code or Cursor? Connect your editor once and it fetches this for you.

No app yet? npm create diya@latest sets up Next.js or Vite with the styles and provider already in place. Then skip to step 3.

Step 2: Add the styles and provider

Once, at your app’s root: app/layout.tsx in Next.js, src/main.tsx in Vite. DIYA Sans comes with it.

Root layout or entry
import '@idyeah/diya/styles.css'
import { DiyaProvider } from '@idyeah/diya'

<DiyaProvider theme="dark">
  {children}
</DiyaProvider>

theme="dark" matches the catalog as you’re viewing it. theme="system" follows each visitor’s light or dark setting instead.

Get theme

Your brand as one CSS file and a few props.

Brand
AaAaNeutral (DIYA default)
Font
DIYA Sans
Corners · Elevation
Soft · Soft
Control height · Fields
Default · Auto
Glass
Off
Motion
Match device
Status colors
DIYA defaults

Step 1: Save the theme file

diya-theme.css · 6 lines
/* diya-theme.css, made in the DIYA catalog.
   Import it after '@idyeah/diya/styles.css'. Public tokens only.
   Brand: Neutral (DIYA default). */

/* No color, corner or elevation changes: DIYA's defaults apply. */

Public tokens only: the names DIYA promises not to rename in 1.x.

Step 2: Import it after DIYA’s styles

Root layout or entry
import '@idyeah/diya/styles.css'
import './diya-theme.css'

Order matters. The theme goes second so it wins.

Options
Preview

Website launch

Bring the next version of your product to life. Keep the work, decisions, and people in one place.
In progressDesign
  • Scope approvedProject goals and ownership are agreed.
  • Design reviewThe team is reviewing the first complete flow.
  • Handoff checklistConfirm assets, behavior, and acceptance criteria.

Share project preview

Copy this local preview link. It does not grant access to a live project.

Project document

  • GoalHelp the team launch a clear, usable product experience.
  • OwnerAlex Morgan
  • Next stepComplete the design review and resolve feedback.
Built with

Hide a part to see the spacing adapt. On narrow screens, actions move below the title.

Using Page Header

A page's heading block with optional breadcrumbs, description, tags, actions and tabs. Data and actions belong to the host app. Optional slots reserve no empty space.

A Markdown brief for Claude, Cursor or v0: install, setup, props and a complete example.

When to use

For the top of a page: its title, where it sits, what it is about and its main actions.

Accessibility

Renders the page’s heading. Breadcrumbs and tabs inside keep their own navigation semantics.

Props

import { PageHeader } from '@idyeah/diya'Stable since 1.0.0

titleRequiredReactNode

The page heading; it also names the section for assistive technology.

actionsReactNode

Slot beside the heading for page-level buttons.

breadcrumbsReactNode

Slot above the heading, usually a Breadcrumbs element.

descriptionReactNode

Supporting text under the heading.

headingLevel1 | 2 | 3 | 4 | 5 | 6

Heading element level, h1 to h6; defaults to 2. Use 1 for the page's only top heading.

Default 2

navigationReactNode

Slot along the bottom edge, usually Tabs for sub-pages.

surfaceboolean

Draws the header on its own panel; defaults to true. Pass false to set it straight on the page, as an app screen's title.

Default true

tagsReactNode

Slot under the description for Tag or Badge elements.

Also takes every native <section> attribute, such as id, aria-* or data-*.