Foundations

Every value the sites share, with what it is for. The same names are custom properties in tokens.css.

Colour

  • Set running text in text on card; headings and the wordmark in heading; secondary text (row details, captions, header links at rest) in muted.
  • Separate rows with rule hairlines. A border that marks a control (an input, the outline button) is rule-strong, which holds 3:1 on card.
  • accent (deli red) is for text selection and the highlighter. It is never body text.
  • Money uses credit and debit. They share a lightness, so the + and − signs are required; colour only repeats them.
  • card-sunken is for code wells. page shows only where the paper is thin or still fading in.
  • There is a dark theme for app screens that want one. The paper darkens itself (×0.8) under it; the card becomes card dark.

Surfaces and text

  • page#e7e6e2 · #0f0f0e darkThe ground under the paper. Shows only where the paper is thin or still fading in.
  • card#fcfcfb · #1a1a18 darkThe sheet everything sits on: the one card on the paper, menus, dialogs.
  • card-sunken#efefeb · #242421 darkCode blocks, inline code, quiet wells inside the card.
  • text#0a0a0a · #f2f1ed darkRunning text on card and card-sunken. 19:1 light, 15:1 dark.
  • heading#171717 · #fafaf7 darkHeadings, the wordmark, links in the header on hover, the ink button's fill.
  • muted#6b6b66 · #a5a49d darkSecondary text: row details, captions, header links at rest. On card 5.2:1 light, 7.0:1 dark; on card-sunken 4.6:1 and 6.2:1.
  • rule#e6e6e1 · #2e2e2b darkHairlines between rows and under the pinned nav (1.2:1, decorative). Use rule-strong where a border marks a control.
  • rule-strong#8f8e88 · #6b6a64 darkBorders that mark a control (inputs, the outline button): 3.2:1 on card in both themes.
  • on-ink#fcfcfb · #1a1a18 darkText on a heading-coloured fill, such as the ink button's label.
  • focus#0a0a0a · #f2f1ed darkThe 2px keyboard focus outline, 3px off the element. Matches text so it reads on every surface.

Highlights

  • accent#d6402f · #f0705f darkDeli red: text selection and the highlighter only. Never body text: 4.4:1 on card in light.
  • on-accent#fcfcfb · #1a1a18 darkSelected text on an accent fill (4.4:1 light, 6.0:1 dark).
  • marker-redrgba(214, 64, 47, 0.42) · rgba(240, 112, 95, 0.4) darkThe highlighter stroke behind the one line that matters on a page.
  • marker-yellowrgba(247, 214, 74, 0.6) · rgba(247, 214, 74, 0.32) darkThe stroke that paints in behind a link on hover.
  • marker-bluergba(150, 195, 238, 0.7) · rgba(120, 170, 230, 0.45) darkThe pastel blue stroke for a name in running text.
  • hook-accent#5b8def · #7ea6f2 darkmhook's highlighter and the console's active-tab underline. Marks, never text.

Money

  • credit#1e7a4c · #4cc38a darkMoney coming back to you, on card (5.2:1 light, 7.9:1 dark). Same lightness as debit, so always write the + sign; colour never carries it alone.
  • debit#c4302b · #ff7a6e darkMoney you owe, on card (5.4:1 light, 6.9:1 dark). Always write the − sign; colour never carries it alone.

Paper colourways

  • deli-ink#111111Deli paper, the portfolio's colourway: the dark checks.
  • deli-paper#f7f7f7Deli paper, the portfolio's colourway: the light checks.
  • ledger-credit#bae0c4Ledger paper (splitova): the pastel green checks, where + amounts are printed.
  • ledger-debit#f4c9c3Ledger paper (splitova): the pastel red checks, where − amounts are printed.
  • ledger-credit-ink#267046The + amounts printed on ledger-credit checks, at 72% opacity. Decorative (4.1:1) and hidden from assistive tech.
  • ledger-debit-ink#a83e32The − amounts printed on ledger-debit checks, at 68% opacity. Decorative (4.1:1) and hidden from assistive tech.
  • hook-ink#b3c8f1Hook paper (mhook): the pastel blue checks.
  • hook-paper#f9f5edHook paper (mhook): the cream checks.

Type

  • One family, Manrope (variable, 200–800), from fonts/manrope-latin-wght-normal.woff2; mono is the system monospace.
  • display for the one hero headline, set as clamp(2.1rem, 5vw, 3rem), max 15ch, balanced.
  • title (24px / 400) for page and section headings. subhead (20px / 600) for h3 in long text.
  • body (20px / 32px / 500) for everything else in the card, stepping to body-compact (18px / 28px) under 720px.
  • nav for header links; caption under figures; ui and ui-small for dense app screens such as the mhook console; figure for money.
  • Turn on tabular figures (font-variant-numeric: tabular-nums) wherever numbers line up.

Display

  • Split bills in rupees. Settle up with UPI.
    display 48px / 52px · 600 · -2.16px
    The hero headline, once per page. Set as clamp(2.1rem, 5vw, 3rem) with max-width 15ch.
  • Projects
    title 24px / 28px · 400 · -0.4px
    Page and section headings (h1, h2). Light weight; size does the work.

Text

  • I enjoy building cool stuff on the internet.
    body 20px / 32px · 500
    All running text and row text. 18px/28px under 720px wide.
  • Groups for the flat and the trip.
    body-compact 18px / 28px · 500
    Body under 720px wide.
  • Information mhook uses
    subhead 20px / 28px · 600
    h3 inside posts and legal pages.
  • Index
    nav 20px / 24px · 500
    Header links, stacked or pinned. Muted at rest, heading on hover and when current.
  • Every group, where you stand
    caption 16px / 24px · 500
    Under phone frames and figures, in muted.

Interface

  • Recent notifications
    ui 14px / 20px · 500
    Dense app screens such as the mhook console: tables, menus, forms.
  • Has hooks
    ui-small 12px / 16px · 500
    Badges, table heads, timestamps.
  • +₹1,240
    figure 20px / 24px · 600
    Money and counts. Use tabular figures where numbers line up.

Code

  • curl -X POST "$HOOK_URL"
    code 14px / 22px · 400
    Code blocks at 0.9rem / 1.55, inline code at 0.85em.

Space and layout

  • The card is card-width (51.2rem) wide at most and space-16 inside: two equal Columns with a space-8 gutter.
  • Sections are space-30 apart (space-18 under 720px); the header is space-30 above the first one. Paragraphs are space-5 apart; rows are space-3 tall on each side.
  • Below breakpoint (720px) columns stack, rows drop their detail under the title, and the card's padding is 32px by space-6.
  • Radii: the card is radius-none. Things you hold get corners: radius-pill buttons and badges, radius-md code blocks and inputs, radius-phone screenshots.

Spacing

  • space-312pxRow padding above and below; gap inside a row.
  • space-520pxBetween paragraphs; between a phone and the next.
  • space-624pxUnder a section heading; card padding sideways under 720px.
  • space-832pxThe gutter between the card's two columns.
  • space-1456pxBetween blog entries; the pinned nav strip's height.
  • space-1664pxThe card's padding on every side.
  • space-1872pxBetween sections under 720px wide.
  • space-30120pxBetween sections, and under the header.

Radii

  • radius-none0pxThe card. Paper and card are square; corners belong to things you hold.
  • radius-sm4pxInline code.
  • radius-md8pxCode blocks, inputs and console controls.
  • radius-phone12%Phone screenshots (12% / 5.5% of the frame).
  • radius-pill999pxThe ink button and badges.

Sizes and shadow

  • card-width51.2remThe card's max width: two 330px columns, a 32px gutter and 64px padding.
  • measure32remMax width of a hero lede.
  • breakpoint720pxBelow this the card's columns stack and type steps down.
  • shadow-phone0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 36px -18px rgba(0, 0, 0, 0.28)Phone frames only. Nothing else on the card casts a shadow.

Motion

Motion has to earn its place. Each animation answers one question, "what would be jarring or unclear without it?", or it goes. The rules follow Emil Kowalski's animation standards.

  • Should it move at all? Nothing moves on keyboard actions or anything people do many times a day. Hovers stay small and quick. The delight goes on rare moments: a page's first screen and its one highlighted line.
  • Under 300ms. Interface motion stays under 300ms. Only the highlighter (duration-draw) and the ledger paper (duration-ledger) take longer, because they explain something once per visit.
  • Strong curves. Anything arriving or leaving uses ease-out. Something crossing the screen uses ease-in-out. Hover and colour use ease-hover. Never ease-in: it starts slow, at the moment people are watching.
  • Transform and opacity only, so motion stays smooth on a busy page. The highlighter and the link marker are the exceptions: each paints one small element.
  • Leaving is faster than arriving. Arriving shows where something went; leaving only answers the person, so it gets out of the way (duration-leave).
  • Interruptible. Anything that can be retriggered uses transitions or the Web Animations API, which retarget, never keyframes, which restart. A reversal starts from where the element is on screen, not from where it was going.
  • Nothing loops. Everything arrives once and stops, and nothing runs a frame loop once it has stopped: the paper draws only when its size or theme changes.

What moves:

  • Paper fades in over duration-paper once painted, so it never pops in.
  • First screen: what is in view on load fades in and rises 8px over duration-enter (ease-out), 50ms apart, six steps at most (Reveal). Content further down is already there when you scroll to it. The header never moves.
  • Highlighter: the marker draws left to right over duration-draw (ease-in-out), 200ms after its line comes into view (Marker).
  • Link hover: a yellow stroke paints in from the left over duration-hover (ease-hover), only on pointers that can hover (TextLink).
  • Pinned nav: the strip slides down over duration-nav; each link glides to its pinned place, 30ms apart, and the app's logo arrives at the strip's left end. Unpinning takes duration-leave (Masthead).
  • Press: buttons press in to 97% over duration-press (ease-out) the moment a finger lands (Button).
  • Field errors fade in over duration-hover as the border turns debit. Nothing shakes (Field).
  • Amounts tick from the old value to the new one over duration-count when they change. They never count up from zero on load: money is data, not decoration (Amount). The ledger paper's background amounts count up once over duration-ledger and stop.
  • Reduced motion means less movement, not no feedback. Under prefers-reduced-motion, nothing changes position. Fades and colour changes stay, the highlighter shows already drawn, and amounts change at once. Script-driven motion reads the same numbers from DeliPaper.motion.

Durations

  • duration-press160msA button pressing in to scale(0.97) on :active, with ease-out. The release uses the same.
  • duration-hover150msHover and colour changes: the link marker painting in, header links, button fills. With ease-hover, on pointers that can hover only.
  • duration-leave150msAnything leaving: the pinned strip sliding away, the brand going. Faster than it arrived, because the system is answering, not showing. With ease-out.
  • duration-nav250msThe pinned nav arriving: the strip sliding down, each link gliding to its place 30ms apart, the brand arriving. With ease-out. It leaves over duration-leave.
  • duration-enter300msThe first screen arriving on load: opacity and 8px, 50ms apart, six steps at most. Nothing below the fold animates.
  • duration-count400msAn amount ticking from its old value to its new one when it changes. Never from zero on load.
  • duration-paper400msThe paper fading in once painted, so it never pops in. Opacity only.
  • duration-draw600msThe highlighter drawing across its one line, 200ms after the line comes into view. With ease-in-out.
  • duration-ledger900msThe ledger paper’s amounts counting up once on load, spreading from the middle. It never loops.

Easings

  • ease-outcubic-bezier(0.23, 1, 0.32, 1)Everything that arrives or leaves: the first screen, the pinned nav, the paper, a button press, a ticking amount. Starts fast, so it feels immediate.
  • ease-in-outcubic-bezier(0.77, 0, 0.175, 1)Something moving across the screen: the highlighter drawing over its line.
  • ease-hovereaseHover and colour changes. Never ease-in anywhere: it starts slow, at the moment people are watching.

States and focus

  • Header links go muted → heading over duration-hover. On hover the ink button dims to 85% and the outline button fills with card-sunken. Both press in to 97% while held.
  • Hover effects apply only under (hover: hover) and (pointer: fine), because a tap would trigger them on a phone. Every control also has a pressed state, which works on touch: a header link turns heading, a text link's marker paints in.
  • Under prefers-contrast: more, hairlines take rule-strong and link underlines go solid.
  • Keyboard focus is a 2px focus outline 3px off the element (2px on inputs), on every surface.
  • Disabled is 45% opacity. Errors are debit, under the field, saying what to do.

Marks and images

  • Marks sit straight on the page in heading, never in a coloured tile: assets/Logos/. The portfolio's mark (a white sphere with a glare) is its favicon.
  • App screenshots are iPhone-sized captures of real working screens with sample data, 640px wide JPEG, in a Phone frame. Never sign-in screens or test copy.
  • Link previews are 1200×630: the card on the app's paper with the mark, two lines and the page's marker line.

Logos

  • portfolio-mark.svg
  • splitova-mark.svg
  • mhook-mark.svg

Marks sit straight on the page, never in a coloured tile.

  • portfolio-mark.svg: the portfolio's mark and favicon, a white sphere with a glare and a heading rim at 28%. Multicolour; use as is.
  • splitova-mark.svg: splitova's divide mark, two dots and a tilted bar. Single ink, #171717 (heading); set it beside the lowercase wordmark "splitova" in heading, weight 600. On a dark theme, inline the SVG with fill: currentColor so it follows heading.
  • mhook-mark.svg: mhook's hook mark. Single ink, #171717 (heading); beside the lowercase wordmark "mhook". Inline it with stroke: currentColor on a dark theme.

The app stores and home screens keep the filled app icons (white mark on ink); those are app assets, not page marks.

Screens

Real app screens with sample data, 640px wide JPEG, for Phone and Phones.

  • splitova-groups.jpg, splitova-split.jpg: splitova's groups and a payment ready to split, from its sample mode at iPhone size (1179×2556).
  • mhook-inbox.jpg, mhook-approval.jpg: mhook's inbox and an approval, from the iOS simulator (1206×2622).
splitova’s groups, with where you stand in each
splitova-groups.jpg
A payment in splitova, ready to split
splitova-split.jpg
The mhook inbox
mhook-inbox.jpg
An approval in mhook with Approve and Deny
mhook-approval.jpg