- New page: Motion principles. When to use motion (Infinum), realtime vs non-realtime and the four usability pillars, the 12 principles of UX in motion with live demos (Willenskomer), and Disney's 12 principles translated to UI.
- New AI prompt: Review motion, which lists every animation with its purpose and principle, then checks it against the motion rules.
- Added the three motion sources to Standards & sources.
Every screen follows one set of rules.
This is how we build interfaces at DC Builds: which values we use, how components behave, and why. Each rule is shown live. Click any colour, spacing step, icon or snippet to copy it. Press Ctrl K to search.
One job per screen
Every screen has one main action. Everything else on it supports that action or moves out of the way.
Tokens, not numbers
Spacing, colour, type and radius come from the scales. If a value isn't on a scale, don't use it.
Always answer back
Every tap gets a response within 100 ms. Every wait shows progress. Every error explains how to fix it.
Works for everyone
Keyboard, screen reader, phone, slow network and reduced motion all work from day one, not as a later fix.
Browse the rules
Changelog
Every change to the rules goes here, newest first. Bump the version in the header when you add an entry.
- Propose it. Use "Suggest a change to this page" at the bottom of any page. Say what you'd change and why, with a screenshot or a source if you have one.
- Agree it. The rulebook owner reviews it within a week. Changes that affect accessibility or the tokens need a second person to agree.
- Update it. Edit the rule on its page; the AI prompts pick it up automatically. Token changes go in
tokens.cssand dcbuildsglobals.css, then runnode scripts/check-tokens.mjs. - Record it. Add a changelog entry and bump the version: patch for wording, minor for a new or changed rule, major if existing screens need rework.
- Renamed to DC Blueprints. This site is the UI volume; future guides (code, security, delivery) will sit beside it.
- New pages: Images & media, Charts & data viz, Performance and Mobile apps. New section: Telugu and other scripts, with Noto Sans Telugu as the fallback font.
- The AI prompts are now built from the rule lists on each page, so there is one source for every rule.
- Sections number themselves from the sidebar order.
- Added "How a rule changes" and a "Suggest a change to this page" link at the bottom of every page.
- dcbuilds now has automatic checks: off-scale spacing and raw colours, accessibility and layout tests at 320, 390 and 1440px, and Lighthouse budgets in CI.
- New page: Credits & licences, with a copyright notice and what can be reused.
- Replaced a real brand used as a fake client in the examples with a fictional one (Sunrise Bakery).
- Checked all 17 core rules against WCAG 2.2, WAI-ARIA APG, Apple, Android, NN/g, GOV.UK, Carbon and Baymard. See Standards & sources.
- Forms now validate on submit, not on blur (GOV.UK). Placeholders no longer hold examples.
- Ease-in is allowed for exits. Most motion is 100–400ms.
- Line length is 50–75 characters. Added focus-not-covered, tabs keyboard and tap-target floor details.
- New page: AI check, with prompts to review code, review a screen, or build a new screen with your own AI agent.
- Fixed 20 of 21 dcbuilds audit findings: services tabs (44px targets, tokens, visible focus, no height or blur animation, reduced motion), body text to 16px, motion durations, spacing on the scale, colour tokens, and clearer labels.
- New token
--device-framefor the phone screenshot frame. - Removed the dcbuilds audit page; the fixes are in the dcbuilds repo.
- Moved tokens into
tokens.csswith dcbuilds names.node scripts/check-tokens.mjsreports any drift. - Click to copy colours, spacing, radii, icons and component snippets.
- New sections: Icons, Navigation, Cards & data, Overlays, Page patterns.
- Each section opens as its own page with a shareable link.
- Stress test mode, Ctrl K search, share image.
- First release: colour, typography, spacing, layout, radius, buttons, forms, states, motion, accessibility, writing and the ship checklist.
Standards & sources
Every rule here was checked against the published standards on 22 Nov 2026: WCAG 2.2, the WAI-ARIA Authoring Practices, Apple, Android, Nielsen Norman Group, GOV.UK, IBM Carbon and Baymard. Where they disagree, we follow the stricter one.
Rule by rule
Contrast
4.5:1 for text and 3:1 for large text (24px, or 18.5px bold). 3:1 for icons, focus rings and the parts of a control you need to see. Disabled controls are exempt.
Colour is never the only signal
Level A. Links that differ only by colour need another cue, or 3:1 contrast with the text around them.
Reduced motion
WCAG 2.3.3 (AAA): motion triggered by interaction can be turned off. MDN: reduce or replace motion, for example swap a scale for a fade.
Form validation
We used to check fields when someone left them. GOV.UK says to check on submit and "do not validate when the user moves away from a field". The rule and the live demo now check on submit.
Placeholders
Not only for labels: placeholders shouldn't hold hints or examples either, because they disappear while typing and are often too faint. Examples moved into hint text.
Easing
We had banned ease-in. NN/g recommends ease-out for things entering and ease-in for things leaving. Most motion takes 100–400ms, and 500ms or more feels like a drag.
Tap targets
Our 44px stays as the studio rule. Now noted: WCAG 2.2 AA's hard minimum is 24px, WCAG AAA and Apple use 44, and Android uses 48dp.
Focus
Added: sticky headers must never cover the focused element (2.4.11, AA). Aim for a 2px indicator with 3:1 contrast (2.4.13, AAA).
Reflow and zoom
No page scroll at 320px wide (that's 400% zoom). Tables, maps and diagrams are exempt. At 200% text zoom nothing is lost.
Text size and iOS zoom
No standard sets a minimum body size; 16px is our studio rule (GOV.UK uses 19px). The iOS input zoom under 16px is widely observed, but Apple doesn't document it.
Tabs keyboard
Added: Tab enters the tab list and then goes to the panel; the arrow keys wrap around; Home and End are recommended.
Response times
0.1s feels instant, 1s keeps the flow, and at 10s people lose attention. Added: over 10s, show progress.
Button labels
Start with a verb "where possible", and name the action, never "OK". GOV.UK also advises against more than one primary button on a page.
Sentence case
Sentence case on the web (GOV.UK). Native Apple apps use title case on buttons, so follow the platform there.
Spacing scale
Our 4px scale lines up with IBM Carbon's (2, 4, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96, 160). Use 40 and 80 only if a layout needs them.
Motion sources
Infinum: How Motion Design Applies to UI Design
André Ferreira, 2020. When motion helps (feedback, transitions, loading, micro-interactions, personality, delight) and when to leave it out. It gives no timings and doesn't cover reduced motion; our Motion page fills those gaps.
Creating Usability with Motion: The UX in Motion Manifesto
Issara Willenskomer, 2017. Realtime vs non-realtime motion, four ways motion supports usability, and the 12 principles of UX in motion.
How to use Disney's 12 principles of animation
Tammy Coron, Creative Bloq. The article text couldn't be loaded. The Disney table follows the original source, Thomas and Johnston's The Illusion of Life (1981).
How other design systems compare
| Topic | DC Blueprints | Others | Standard |
|---|---|---|---|
| Tap target | 44px | Apple 44pt · Android 48dp | WCAG AA 24px · AAA 44px |
| Body text | 17px (min 16) | GOV.UK 19px | No minimum; must zoom to 200% |
| Spacing | 4px scale, 4–128 | Carbon 2–160 | None |
| Motion | 150 / 260 / 420ms | Carbon 70–700ms | NN/g 100–400ms |
| Validation | On submit | GOV.UK on submit | WCAG 3.3.1, 3.3.3 |
| Primary buttons | One per view | GOV.UK one per page | None |
- We couldn't check Material 3's own site (it needs JavaScript to load), so the Android number comes from Android's developer docs.
- Re-check these sources once a year, or whenever WCAG publishes a new version, and record any changes in the Changelog.
Credits & licences
Who owns what on this site, and what you can reuse. The short version: almost everything here is ours, and the few outside pieces are fine to use as long as we keep the notes below.
© 2026 DC Builds. All rights reserved.
The rules, writing, examples, page designs, design tokens, code snippets and AI prompts on this site were made by DC Builds. The team can use them freely in DC Builds and client projects. Anyone outside the team should ask first.
What you can reuse
| What | Owner | Can we use it? | Conditions |
|---|---|---|---|
| Rules, text, prompts, page designs | DC Builds | Yes | In DC Builds and client work. Outsiders should ask. |
| Design tokens and code snippets | DC Builds | Yes | Copy them into any DC Builds or client project. |
| Icons on the Icons page | DC Builds | Yes | Drawn for this site in an outline style. If you switch to the Lucide library, it's ISC-licensed: keep its licence file. |
| DC Builds name and logo | DC Builds | Ours only | For DC Builds itself. Don't put it on client work unless it's a "built by" credit. |
| Satoshi font | Indian Type Foundry, via Fontshare | Yes | Free for commercial use under the Fontshare licence, and already self-hosted on dcbuilds.in. Read the licence that comes with the download before sending the font files to anyone else. |
| Noto Sans Telugu font | Google (Noto project) | Yes | SIL Open Font License 1.1: free to use, embed and share. Don't sell the font on its own. |
| GOV.UK quote (Sources page) | Crown copyright | Yes | Open Government Licence v3.0. Keep the attribution line below. |
| WCAG, WAI-ARIA, MDN, NN/g, Apple, Android, Carbon, Baymard | Their publishers | Link only | We link to them and sum them up in our own words. Don't copy their pages, diagrams or screenshots here. |
| Example names (Sunrise Bakery, Ravi Kumar…) | Made up | Yes | Fictional. Never use real brands as fake clients in examples. |
Required notices
Contains public sector information licensed under the Open Government Licence v3.0 (GOV.UK Design System).
Satoshi is designed by Indian Type Foundry and distributed free by Fontshare.
Noto Sans Telugu is part of Google's Noto project and is licensed under the SIL Open Font License 1.1. It's self-hosted here, Telugu characters only.
Apple, Android, Google, IBM Carbon, GOV.UK, Nielsen Norman Group, Baymard, Claude, ChatGPT, Gemini and Cursor are trademarks of their owners. They're named only to point to their guidelines or tools, and none of them endorses this site.
Not on this site, but in dcbuilds
- The services tabs, logo carousel, sticky feature section, copy button and browser mockup started from cult-ui. Keep their licence notice in the dcbuilds repo.
- The 3D desk objects on the About page come from NVIDIA SimReady Assets (CC BY 4.0). The credit line on that page must stay while the models are used.
This page is a practical summary, not legal advice. If a client contract or a licence says something different, follow that.
Colour
Mostly neutrals, with lime used sparingly. Lime means "act here" or "this is ours". When everything is lime, nothing stands out.
Click a swatch to copy its token.
The 70 / 20 / 10 split
Roughly how much of any screen each colour should cover.
Contrast, measured live in the current theme
- Body text needs a contrast ratio of at least 4.5:1. Large text (24px and up, or 18.5px bold and up) needs 3:1. Icons, focus rings and input borders need 3:1 against what is around them. A border only counts when it is the only thing showing where the field is. Disabled controls are exempt.
- In light mode, lime is a fill, never text colour. Use
--accent-textfor green text. - Don't rely on colour alone to show meaning. Pair red with an icon or a word, and green with "Saved".
- Every colour is a token that switches with the theme. Never put a raw hex value or a Tailwind palette colour (such as
neutral-600orwhite) in a component. - Create hierarchy with size and weight first, colour second.
Typography
One family (Satoshi), three weights, seven sizes. Create hierarchy with size and weight before reaching for colour.
−0.035em
−0.03em
+0.06em
Line length
Readers' eyes find the start of the next line easily when lines are about 50–75 characters. Set max-width: 65ch on text blocks.
Readers' eyes find the start of the next line easily when lines are about 50–75 characters, but this paragraph runs edge to edge in tiny, tight, justified type, which makes every line a chore to track and leaves rivers of white space running through it in a way nobody enjoys reading.
Telugu and other scripts
మీ వ్యాపారానికి వెబ్సైట్లు మరియు యాప్లు. మేము డిజైన్ చేసి, నిర్మించి, నడుపుతాము.
Noto Sans Telugu · line height 1.8lang="te" on the text.మీ వ్యాపారానికి వెబ్సైట్లు మరియు యాప్లు. మేము డిజైన్ చేసి, నిర్మించి, నడుపుతాము.
Device fallback · line height 1.1- Use at most two sizes in one component, for example a 17px title and 14px meta text.
- Tighten letter spacing on large headings (−0.02 to −0.035em). Body text keeps the default spacing.
- Inputs use 16px or larger. iOS Safari zooms in on smaller inputs when they get focus. This is widely observed, but Apple doesn't document it.
- Use
text-wrap: balanceon headings andprettyon paragraphs. - The font stack includes Noto Sans Telugu right after Satoshi, so Telugu text gets a designed font instead of whatever the device has.
- Telugu body text needs a line height of about 1.7–1.8, because vowel signs sit above and below the letters.
- Set
lang="te"on Telugu content so screen readers pronounce it correctly. Never uppercase or letter-space non-Latin text. - Leave room in buttons and labels: Telugu text often runs longer than the English version.
Spacing & padding
Every gap, margin and padding is a step on a 4px scale. The space between elements tells people what belongs together.
Click a row to copy its token.
Proximity: related things sit closer
Padding anatomy
| Button | 0 24 · sm 0 16 |
| Input | 0 16 |
| Card | 24 · large 32 |
| Modal | 24 |
| Section, vertical | 96 · mobile 64 |
| Page gutter | 16 → 48 |
- Related items sit closer together than unrelated ones. The gap grows as things become less related.
- A component's inner padding is never bigger than the space around it.
- Use
gapon flex and grid containers instead of margins on the children. - Padding inside a card is the same on all four sides unless a design reason is written down.
- Spacing between sections is always larger than spacing inside a section.
- In Tailwind, stick to steps that land on the scale:
1 2 3 4 6 8 12 16 24 32. Avoid7,9and arbitrary[13px]values.
Layout & grid
A 12-column grid inside a 1280px container, with gutters that grow with the screen. Design for mobile first, then let the layout open up.
Breakpoints
- Content sits inside the
.wrapcontainer. Only backgrounds and images go full-bleed. - No horizontal page scroll at 320px wide, which is how a 1280px screen looks at 400% zoom (WCAG 1.4.10). Tables, maps and diagrams may scroll inside their own box. Test at 320, 375, 768, 1024 and 1440.
- Each section follows one pattern: eyebrow, heading, lead, content, then an action. See Page patterns.
- Keep primary actions within thumb reach on mobile and never hide them behind a hover.
Radius & depth
Soft corners and flat surfaces. Depth comes from changes in surface colour; shadows are for things that float above the page.
Click a shape to copy its token.
Nested corners: inner = outer − padding
Elevation
surface step, no shadow
1px edge
menus, modals, toasts
Icons
One outline set, drawn on a 24px grid with a 2px stroke and round ends. Icons support a label; they rarely replace it.
Click an icon to copy its SVG.
Sizes: match the text next to it
- Use one icon set across the product (Lucide-style outline). Don't mix in filled or emoji icons.
- Icon-only buttons need an
aria-labeland a tooltip, and are only for universal actions (close, menu, search). - Decorative icons get
aria-hidden="true". Icons usecurrentColorso they follow the text colour.
Buttons
One shape (the pill), four looks, three sizes. How strong a button looks shows how important its action is.
- Height 48 / 40 / 56. Padding is fixed, so the width follows the label.
- 15px semibold label. 10px gap to the icon.
- Press scales to 0.97. Hover changes the colour in 200 ms.
- Focus ring 2px, offset 3px. Never remove it.
Variants × states
Sizes
sm40px · inside cards, tables · 44px tap areamd48px · defaultlg56px · hero, closing CTATry it: the loading state
Hierarchy: one primary per view
Delete this project?
"Sunrise Bakery" and its 14 screenshots will be removed. You can't undo this.
Are you sure?
This action cannot be undone.
- One primary button per view. Everything else is quiet or ghost.
- Small buttons are 40px tall but keep a 44px tap area, using an invisible 2px extension (
::beforewithinset: -2px). - Every button has hover, keyboard focus, pressed and disabled states, and a loading state when its action takes time.
- Labels start with a verb where possible and name the result: "Send message", "Delete project". Never "OK", "Submit" or "Click here".
- A link takes you somewhere (
<a>). A button does something (<button>). Don't mix them up. - Only disable a button if a hint explains why. It's usually better to allow the click and show what's missing.
- Destructive actions get red, a specific label, and a confirm step or an undo.
Forms
Ask for less. Put labels above fields, check the answers when the form is submitted, and show each error right next to its field.
Layout
Try it
- Check the answers when the form is submitted, not when someone leaves a field or while they type. Once an error is showing, check that field again as they fix it, and clear the error as soon as it's right.
- Placeholders disappear as people type, so never use them for labels, hints or examples. Put hints and examples in hint text under the label.
- Error messages say how to fix the problem, not just that something is wrong.
- Use the right
type,inputmodeandautocompleteso phones show the right keyboard and can autofill. - Mark optional fields, not required ones. Better still, remove optional fields.
- Never clear what someone typed after an error.
Cards & data
Cards group one thing. Tables compare many things. Badges label status. Each must survive long and missing content; turn on Stress test to check.
Project card
Sunrise Bakery website
A small-business site with online orders.
Examshala
Exams, assignments and results for schools.
Link in bio
One page with every link a creator needs.
Status badges
Table
| Project | Client | Status | Budget |
|---|---|---|---|
| Sunrise Bakery site | Sunrise Bakery | Live | ₹1,20,000 |
| Examshala | In-house | In progress | ₹4,50,000 |
| Link in bio | In-house | Paused | ₹35,000 |
- A card links to one place. Make the whole card clickable through its title link, and don't put a second link inside it.
- Card text is clamped (2 lines here). Titles wrap; they never push the layout wider.
- Numbers in tables are right-aligned with
tabular-nums. Text is left-aligned. Long cells truncate with an ellipsis and show the full value on hover. - On small screens a table scrolls sideways inside its own box. The page itself never scrolls sideways.
- Plan for missing data: show "—", not a blank cell or "null".
Overlays
Modals, menus and tooltips sit above the page. Use them sparingly; every overlay interrupts. Try each one below with the mouse and the keyboard.
Opens a real <dialog>: the page behind is blocked, Esc closes it, and focus returns to this button.
Arrow keys move, Enter picks, Esc closes, and clicking outside closes. Destructive items sit last, in red, after a divider.
Shows after 300 ms on hover and straight away on keyboard focus. It names the action; it never holds essential information.
Layer order
0Page content10Sticky elements (section nav, table headers)20Site header30Menus, popovers, tooltips40Modals and their backdrop50Toasts (always on top)- Use a modal only when the person must decide before continuing. Otherwise, show it inline on the page.
- Modals have a title and a close button. Focus moves inside when they open, Tab stays inside while they're open, Esc closes them, and focus goes back to whatever opened them.
- Use the native
<dialog>element withshowModal(). It blocks the page and handles Esc for you. - Only use the z-index values above. Never invent
z-index: 9999.
States & feedback
Every screen that shows data has four states besides "full". Design all of them, not only the one where everything works.
Skeletons match the shape of the real content. Use a spinner only for actions.
No projects yet
Projects you add show up here with their screenshots.
We couldn't load projects
Your connection dropped. Nothing was lost.
Message sent
We reply within one working day.
Response time
- Every screen that shows data has loading, empty, error and success states.
- Anything that takes over 1 second shows a spinner or skeleton. Anything over 10 seconds shows progress and lets people do something else.
- An empty state explains what will appear here and offers the action that fills it.
- An error says what happened, reassures people about their data, and offers a way out.
- Toasts are for confirmations that don't need action. They disappear after 4 seconds. Anything that needs a decision goes in the page, not a toast.
Motion
Motion explains a change: where something came from and where it went. If it doesn't explain anything, leave it out.
Curves
- Animate only
transformandopacity(andclip-pathfor masks). Never width, height, top or left. - Before adding any animation, check it against the Motion principles: what problem it solves, and which principle it uses.
- Most UI motion takes 100–400 ms: about 100 ms for feedback such as a press, and 200–300 ms for menus and modals. Nothing goes over 500 ms. Exits are faster than entrances. Decorative hero motion may run longer if it never blocks reading.
- Don't animate things people trigger with the keyboard or do dozens of times a day.
- Under
prefers-reduced-motion, movement is switched off; fades are allowed (WCAG 2.3.3). Replace motion with a fade rather than removing the feedback. With Motion, wrap the app in<MotionConfig reducedMotion="user">.
Motion principles
Why and how things move. Motion is a usability tool, not a finishing coat of paint: every animation should help someone understand what happened, where things went, or what to do next. Press Play on each principle to see it.
First: should it move at all?
- Answers an action. A press, a save, a send: people expect a reaction, like an elevator button lighting up.
- Connects screens. A short transition shows how one view leads to the next.
- Covers a wait. A loader or skeleton makes waiting feel shorter.
- Explains a micro-interaction. A trigger, then a small visible reaction.
- Carries the brand's personality. Calm, playful or precise, applied consistently.
- Adds delight where it costs nothing. A 404 page, an empty state.
- It doesn't solve a user problem. Find the problem first, then decide if motion helps.
- Everything is moving. Animating everything "will not work". Motion only means something when it's rare.
- It's flashy. People get tired of showy motion quickly.
- It slows people down. Long transitions make people lose focus.
- It causes more problems than it solves. Then remove it.
Source: Infinum, "How Motion Design Applies to UI Design" (André Ferreira, 2020).
How to think about motion
Realtime is direct manipulation: dragging, swiping, scrolling, sliding. The interface moves while the person moves it, so it must follow 1:1 with no delay.
Non-realtime happens after an action: a transition, a confirmation. It briefly locks people out until it finishes, so it must be short.
- Expectation
- Close the gap between what people expect and what happens.
- Continuity
- Keep the flow unbroken, within a screen and across screens.
- Narrative
- Events connect into a clear sequence: this, then that.
- Relationship
- Show how objects relate in space, time and hierarchy.
Source: Issara Willenskomer, "Creating Usability with Motion: The UX in Motion Manifesto" (2017).
The 12 principles of UX in motion
Grouped by what they do: timing (1–2), relationship (3), object continuity (4–8), spatial continuity (9, 11, 12) and hierarchy (10). They can be combined.
1Easing
WhatEvery moving object speeds up and slows down instead of moving at a constant rate.
WhyEased motion feels natural and goes unnoticed. Linear motion looks unfinished, jarring and distracting.
HowAlways ease. Use --ease-out for entering and reacting and --ease-in-out for moving on screen. Linear only for things that loop, like spinners.
2Offset & delay
WhatItems enter at slightly different times instead of all at once.
WhyTiming tells people what belongs together before they've read anything. Here the top two arrive together (one unit) and the button arrives after (separate).
HowThings that belong together move together. Stagger separate items by 30–60ms, and keep the whole group under about 300ms.
3Parenting
WhatOne object's movement is linked to another's: when the parent moves, the child follows.
WhyIt shows how objects are connected while people use them. It works best in realtime.
HowDrag the slider: the value bubble is parented to the handle's position. Link properties directly in code, with no delay, so the child never lags behind the finger.
4Transformation
WhatAn object changes what it is, in place: a button becomes a progress indicator, then a check mark.
WhyIt joins separate moments (press, wait, done) into one continuous story, so people see the outcome of their action.
HowMorph the same element rather than swapping it for a new one. Animate its shape with clip-path or transform, and its content with opacity.
5Value change
WhatNumbers and text animate from one value to the next instead of snapping.
WhyIt shows that the number reflects something live and changing, which connects people to the real data behind it.
HowCount up over 400ms or less, with tabular-nums so digits don't jump. Don't animate numbers people need to read instantly, or ones that update every second.
6Masking
WhatRevealing or hiding parts of an object changes what it is, while its content stays put.
WhyThe content stays continuous, so people never lose track of it. Here a wide banner becomes an album cover.
HowAnimate clip-path (an inset with rounded corners) rather than width and height, so the content doesn't reflow.
7Overlay
WhatA layer slides aside to show what sits behind it.
WhyOn a flat screen people can't see what's underneath. Motion shows that there's a layer behind, and where it is.
HowSlide the front layer with transform along the edge the hidden content lives on, the same way every time. Swipe-to-reveal rows and drawers work like this.
8Cloning
WhatA new object grows out of the object that created it.
WhyIt makes cause and effect unmistakable: this action made that. A plain fade-in doesn't say where something came from.
HowStart the new element at the source's position and size (scaled down, with transform-origin at the source), then move it into place while attention is still on the source.
9Obscuration
WhatThe background is frosted or dimmed while something sits on top of it.
WhyPeople can tell there's a world behind the current task, and that they can go back to it.
HowPut a static backdrop-filter blur on an overlay and fade the overlay's opacity. Don't animate the blur amount itself; it's expensive.
Scroll inside this box.
The text moves at full speed.
The blobs behind move at half speed, so they feel further away.
Background recedes; content stays in front.
10Parallax
WhatLayers move at different speeds as people scroll.
WhyFaster layers feel closer, slower ones further away. That separates the main content from the background.
HowKeep it subtle (background at 0.3–0.6× speed). Never use it on text people need to read, and switch it off under reduced motion.
11Dimensionality
WhatObjects have depth: they fold, float or flip in 3D space.
WhyPeople navigate well with a spatial model. A card that flips tells them the details are "on the back".
HowUse perspective with rotateY or rotateX. Use it sparingly, only when the spatial model is real, and fall back to a fade under reduced motion.
12Dolly & zoom
WhatMoving towards or into an object, like a camera, to navigate.
WhyIt says the detail lives "inside" the thing you tapped, which builds a clear mental map of the app.
HowScale the tapped item from its own position up to fill the view (a shared-element transition), and reverse it on the way back. 300–400ms with --ease-in-out.
Disney's 12 principles, translated to UI
The original principles of character animation. Some carry over to interfaces directly, some only in small doses, and some rarely. The manifesto argues that UI motion needs its own principles (above) because the goal is usability, not appeal.
| Principle | What it is | In UI | Use |
|---|---|---|---|
| Squash and stretch | Objects deform to show weight and flexibility. | A subtle press: buttons scale to 0.97. Never distort text. | A little |
| Anticipation | A small move that prepares for the main action. | Pull-to-refresh stretching before it triggers; a hold-to-confirm filling up. | A little |
| Staging | Present one idea clearly so the eye knows where to look. | Only one thing moves at a time; dim everything else for a modal. | Always |
| Straight ahead and pose to pose | Drawing frame by frame vs. key poses with in-betweens. | Keyframes (start and end states) for transitions; physics springs for gestures. | Yes |
| Follow through and overlapping action | Parts keep moving and settle at different times. | Offset & delay: staggered lists, a spring that settles. | Yes |
| Slow in and slow out | Motion speeds up and slows down at the ends. | Easing. Every animation. | Always |
| Arcs | Natural movement follows curved paths. | A floating button expanding into a sheet; shared elements travelling between screens. | Sometimes |
| Secondary action | A smaller action that supports the main one. | The arrow in "Start a project →" nudging on hover. | Yes |
| Timing | The number of frames sets speed, weight and mood. | Our scale: 150 exit, 260 enter, 420 move. Nothing over 500ms. | Always |
| Exaggeration | Push movement past realism for clarity. | A short shake on a wrong password. Otherwise avoid it. | Rarely |
| Solid drawing | Forms have consistent volume, weight and light. | Consistent depth: shadows and layers that agree with the elevation scale. | Yes |
| Appeal | Characters people want to watch. | Motion with a consistent personality that matches the brand. | Yes |
The list follows Frank Thomas and Ollie Johnston, The Illusion of Life: Disney Animation (1981). We couldn't load the text of the Creative Bloq article "How to use Disney's 12 principles of animation", so its wording isn't checked here.
Rules
- Every animation solves a user problem: it answers an action, connects screens, covers a wait, or shows how things relate. If it causes more problems than it solves, remove it.
- Never animate everything. Motion means something only when most of the screen stays still. Only one thing should draw the eye at a time.
- Ease every movement. Linear timing is only for things that loop, such as spinners and progress bars.
- Realtime motion (dragging, swiping, scrolling) follows the finger 1:1 with no delay. Non-realtime transitions lock people out while they run, so keep them short.
- Things that belong together move together. Separate items are offset by 30–60ms, and the whole stagger stays under about 300ms.
- When something new appears, show where it came from: grow it from the button or item that created it rather than fading it in from nowhere.
- When a control changes role (Send → sending → sent), transform it in place instead of swapping it for a different element.
- Changing numbers count to their new value in 400ms or less, with tabular numbers. Don't animate values that update every second.
- Drawers, sheets and swipe actions slide from the edge they live behind, the same way every time. What's behind a modal is dimmed or frosted by fading an overlay, never by animating blur.
- Parallax, 3D flips and zooms are only for real spatial meaning (opening a card into its detail), stay subtle, and become a simple fade under reduced motion.
- Describe motion in four levels when you hand it off: principle (why), technique (style), property (what changes) and value (the numbers).
Accessibility
If it doesn't work with a keyboard, a screen reader or a thumb, it isn't finished.
The icon can be small, but the area you can tap must be at least 44px (Apple uses 44pt, Android 48dp). WCAG AA's hard minimum is 24px. Leave 8px or more between targets.
The focus ring only shows for keyboard users (:focus-visible). Tab order follows the visual order.
- The focus indicator is at least 2px with 3:1 contrast, and is never removed without a visible replacement.
- Use real elements:
<button>,<a>,<label>,<nav>. Only reach for ARIA when no element does the job. - Every image has
alttext, oralt=""if it's decoration. Icon-only buttons get anaria-label. - Each page has one
h1, and heading levels never skip. - Modals trap focus while open, close on Esc, and return focus to the button that opened them.
- Sticky headers and banners never cover the focused element (WCAG 2.4.11). Set
scroll-padding-topto the header height. - Pages still work when zoomed to 200% and when text is resized.
Writing
Plain, specific and short. Write the way you'd explain it to a client across the table.
- Use sentence case on the web: "Start a project", not "Start A Project". Native iOS and Mac apps follow Apple, which uses title case on buttons.
- Address the reader as "you". Use "we" for DC Builds.
- No exclamation marks in the interface, and no jargon or filler like "seamless" or "leverage".
- A label says what actually happens. If a button opens the mail app, say "Write the email", not "Start a project".
- Numbers are digits ("3 projects"). Dates read "22 Nov 2026".
Images & media
Real screenshots and photos, in a few fixed shapes, sized for the screen they're shown on. Media should never shift the layout or make noise on its own.
Shapes
Alt text
alt="" (screen readers skip it)- Use real screenshots and photos of the actual product. No stock photos of people pointing at laptops.
- Serve AVIF with a WebP fallback, in at least two widths (for example 960 and 1920), with
srcsetandsizes. - Every image has
widthandheight(or a CSSaspect-ratio) so the page doesn't jump while it loads. - Load images below the first screen lazily. Load the main hero image eagerly, with high priority.
- Alt text describes what the image tells the reader, not what it is. Don't start with "Image of". Decorative images get
alt="". - Video never plays sound on its own. A muted looping video that runs longer than 5 seconds needs a pause button (WCAG 2.2.2), and doesn't autoplay under reduced motion.
- Videos with speech have captions (WCAG 1.2.2), and every video has a poster image.
Charts & data viz
A chart answers one question. Its title says the answer, its colours come from the chart tokens, and the numbers are readable without the colours.
Honest bars
- Pick the chart for the question: bars to compare, lines for change over time, a single big number for one value. Avoid pie charts with more than three slices.
- Colours come from
--chart-1to--chart-5. Use at most 5 series; group the rest as "Other". - Bar charts start at zero. Label values or lines directly rather than relying on a legend.
- Colour is never the only way to tell series apart (WCAG 1.4.1). Add labels, markers or line styles.
- Numbers use
tabular-nums, with units in the axis title or label ("₹ lakh", "orders per month"). - Every chart has a text alternative: an
aria-labelthat summarises it, or a data table next to it. Tooltips add detail; they never hold the only copy of a number.
Performance
Speed is part of the design. Every page meets Google's Core Web Vitals on a mid-range phone, and the build checks it before anything ships.
Measured at the 75th percentile of real visits. Source: web.dev Core Web Vitals.
Studio budgets
| Check | Budget | How it's checked |
|---|---|---|
| Lighthouse accessibility | 95 or more | Fails the build (lighthouserc.json) |
| Layout shift (CLS) | 0.1 or less | Fails the build |
| Lighthouse performance | 90 or more | Warning |
| LCP in the lab | 2.5s or less | Warning |
| Total blocking time | 200ms or less | Warning |
| Fonts | 2 files on first load | Code review |
| JavaScript | As small as next build allows; no new library without a reason | Code review |
- Pages are static by default. Only fetch data on the client when it has to be live.
- Heavy extras (3D scenes, maps, video players) load after the page is idle or when they scroll into view, never before the main content.
- Fonts are self-hosted WOFF2 with
font-display: swap. Preload only the main text font. - Images follow the Images & media rules: AVIF/WebP, sized with
srcset, lazy below the first screen, with width and height set. - No third-party scripts (chat widgets, tag managers, trackers) unless the client asks, and then load them after the page is interactive.
- Test on a mid-range Android phone over a slow connection, not only on a fast laptop.
Mobile apps
The same rules apply in our Expo and React Native apps, plus the habits each platform expects. An app should feel like it belongs on the phone it's running on.
- Content stays inside the safe areas (
react-native-safe-area-context), clear of notches and the home indicator. - Main navigation is a bottom tab bar with 3–5 items, each at least 48dp tall.
- Each screen has one clear primary action, within thumb reach.
- Touch targets are at least 48dp on Android and 44pt on iOS. Use
hitSlopto enlarge small icons without changing how they look. - The Android back button and back gesture always do what people expect. Never block them without asking first, for example "Discard this order?".
- Don't take over the screen-edge swipes the system uses for back and home.
- Text follows the phone's font-size setting. Don't turn off
allowFontScalingfor body text, and test at the largest size. - Haptics (
expo-haptics) only for confirmations, selections and errors, not on every tap. - Forms set
autoComplete, the rightkeyboardTypeandreturnKeyType, and the keyboard never covers the field being typed in. - Follow the system light or dark mode (
useColorScheme) and respect reduce motion (AccessibilityInfoor Reanimated'suseReducedMotion). - Give every touchable an
accessibilityRoleand anaccessibilityLabelwhen it has no visible text. - Design offline and slow-network states: show what's cached, say what failed, and offer to try again.
- Test on a real mid-range Android phone, not only an emulator or a new iPhone.
Page patterns
The building blocks put together. Each pattern lists the rules it uses, so you can rebuild it on any page.
Hero
The first screen of a landing pageWebsites and apps that work.
A small team of engineers. We design, build and look after your site, so you can get back to running your business.
Services grid
Three offers, equal weightWhat we build
Pick one, or let us help you choose.
Websites
Marketing sites that load fast and rank well.
Web apps
Dashboards and portals with accounts and real data.
Mobile apps
iOS and Android from one codebase.
Case study
One project pageA bakery site built in three weeks
The brief
Sunrise Bakery needed a site for its new shop, live before opening day, with online orders and pages that load fast on mobile data.
Contact
The page that turns visitors into clientsTell us what you're building
We reply within one working day. No sales calls unless you ask for one.
hello@dcbuilds.inCheck with your AI agent
Paste one of these prompts into your own AI agent to check a screen against every rule on this site. Each prompt includes all the rules, so the agent doesn't need access to this page.
[square brackets] with the folder, page or screen.Where to use it
Open the project folder and paste the prompt. To reuse it, save it as .claude/commands/ui-review.md and run /ui-review.
Paste it into agent chat with the folder open. To apply the rules every time, save the rules part as a project rule (for example .cursor/rules/ui.mdc).
Use "Review a screen" and attach screenshots at desktop (1440px) and phone (390px) width. Add the page URL if it's public.
- Check the agent's findings yourself before acting on them. Ask it to show the exact line or area for each one.
- Run "Review code" before every release, and on any screen that changed a lot.
- When a rule on this site changes, the prompts change with it. Copy a fresh one rather than reusing an old saved copy.
Before you ship a screen
Go through this for every new screen. Your ticks are saved in this browser.