Biswarup Mondal
Bengaluru
Foundation

The system behind the site you’re reading

Not a separate showcase. Every page, hairline and red-pen mark in this portfolio is built from what is documented here. I designed it in code rather than in a design file, then built the site on it — so the decisions are live, and you can switch them off.

Why it’s built in code

A design file

shows how it should look

one screen, one size, one state

The codebase

shows what it does

  • on a phone
  • with a keyboard
  • with motion off
  • after the fifth change
  1. a corner
  2. a token
  3. a primitive
  4. a page
  5. production

The same path a product, an app or a team’s component library takes.

Read the desk

A design tool’s canvas, marked up by hand. Three marks tell you what you’re looking at.

Cool grey
interface
Warmth
a thing you could touch
A wobbling line
a person drew it

Take it apart

Every decision on this site is a token. Point at a switch to see what it reaches, flip it to take it away — from the desk, and from the rails, ruler and bar around it.

Desk
warm paper, written on
Tile

A raised surface: its corners, edge, shadow and blue are all tokens.

chip

a tick, in my hand

no slop. circled in red

Decisions
tokens.cssas writtenflip a switch to rewrite it

6 of 6 decisions on

One card, four layers

Each layer may only depend on the one below it. Scroll, and the card comes apart.

  1. 4Page Places the card in a three-column grid. A page may lay things out; it may not restyle them.
  2. 3Primitive Tile, Kicker, Chip: the surface, its edge and shadow, the label voice.
  3. 2Base Element defaults from app.css: what a heading, a paragraph and a link look like on their own.
  4. 1Tokens Named values from tokens.css. The only layer allowed a literal.

Five kinds of token

Not every token is for everyone. Core values are shared; the rest belong to one part of the site and are read only there.

407 tokens in one file, counted from the file itself on every build.

  • Core96Shared by everything: surfaces, ink, the accent, space, type, radius, shadow, speed.--font- --surface- --ink- --rule- --accent- --texture- …
  • Canvas chrome49The design tool around the page: ruler, rails, top bar, selection frame, dimension lines.--ruler- --rail- --topnav- --frame- --dimension-
  • Feature154Owned by one piece — the dig, the sky, the cookie, a case study — and read only there.--visit- --sky- --print- --cookie- --foundry- --lock- …
  • Replica68Another product's palette, for its mock only: Gmail looks like Gmail and never leaks out.--gm- --entera-
  • Brand5Colours that belong to someone else — an employer, an app store — used only on their marks.--brand-
  • Unsorted35Prefixes this page does not classify yet.

Where the metaphors live

One idea per page, borrowed whole from a real practice and carried all the way.

Rules that hold everywhere

  • Both viewports, every time. Nothing ships without being checked at ~375px and ≥1280px together.
  • 44px under a finger. Every control reaches the touch minimum on a coarse pointer, however small it is drawn.
  • Hover is an enhancement. Hover styling lives behind @media (hover: hover), so a touch device never inherits a state it cannot leave.
  • Focus is never removed. Every interactive primitive styles :focus-visible.
  • Reduced motion is respected. Duration tokens collapse to 0ms; GSAP opts in separately via useReducedMotion.
  • Contrast is measured, not judged. Every ink clears WCAG AA on the surface it sits on.
  • Handwriting only on things. The hand face is for what is written on an object — a print, a margin, a correction — never for interface.
  • The drawn edge is one dial. Every hairline is roughened through --rough-edge; set it to none and the whole site goes crisp.
  • Content is not code. Words live in MDX, validated by a schema; components only set them.
  • Every page is prerendered. The reader gets finished HTML; only the chat answers at request time.

The pages