npm install @idyeah/diya
GitHub
Appearance
Color scheme

Prose

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.

Size

Send your first invoice

Invoices go out from Billing. Each one gets a number, a due date and a link your client can pay from. Drafts save as you type.

  1. Choose a client, or add one with their billing email.
  2. Add line items. Amounts are in cents, so 12500 is $125.00.
  3. Press ⌘ Enter to send it, or save it as a draft.

Payment terms

Terms set the due date from the day you send. Most teams start with Net 30 and change it for a client when they need to.

TermDueFirst reminder
Due on receiptThe same dayAfter 3 days
Net 1515 days after sending3 days before
Net 3030 days after sending5 days before

Send reminders from the invoice, not your inbox. Each one is logged, so nobody is chased twice.

Format amounts

Use one helper wherever amounts appear, so totals round the same way on every screen. Currencies lists the rest.

lib/format.ts
export const formatAmount = (cents: number, currency = 'USD') =>
  new Intl.NumberFormat('en-US', { style: 'currency', currency })
    .format(cents / 100)

Using Prose

Gives the plain HTML inside it DIYA's type and rhythm, for articles, docs pages, changelogs and legal pages. DIYA components placed inside keep their own styles. Needs no provider context, so it renders in Server Components.

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

When to use

For writing people read from top to bottom: articles, docs pages, changelog entries, terms and privacy pages. Put your own headings, paragraphs, lists, tables and quotes inside, or HTML rendered from Markdown.

A line of text with a link? Text Link. Code people copy? Code Block, which Prose spaces like the rest of the page.

Accessibility

Prose styles your markup and leaves its structure to you: one h1, headings in order and alt text on images. Links are underlined, not marked by color alone, and keep DIYA’s focus ring. A wide table scrolls in a region you name with aria-label and give tabIndex={0}.

Props

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

childrenReactNode

Your own HTML content: headings, paragraphs, links, lists, quotes, code, tables and images. Rendered HTML can come in through dangerouslySetInnerHTML instead.

size"small" | "medium" | "large"

Text size, with headings, tables and captions in step: 'small' (15px) for writing inside an app, such as a drawer or a card; 'medium' (17px) for articles and docs pages; 'large' (20px) for long reads. Defaults to 'medium'.

Default 'medium'

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