Skip to content
Back to skills

Second Nature

ASecurity

Design, build, improve and review anything visual: interfaces on any stack, and identity, print, editorial, packaging, signage, presentations, documents, social media, ads, email, photography, illustration and motion, with the craft behind Apple's platforms (simplicity, physics-based motion, continuous geometry, haptic-grade feedback, low cognitive load, zero lag). Gives graded rules from design research, exact format specs, tokens for every stack, templates, components (calendars, pickers, s...

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
designjavascriptrustgojavaswiftshellreactvueangularnode

Works with

  • cli

Security analysis

A100/100

Pro scans all 19 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add nirmalkcse/second-nature --skill second-nature --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Second Nature?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Second Nature
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nirmalkcse-second-nature/badge)](https://www.skillsdirectory.com/skills/nirmalkcse-second-nature)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: second-nature
description: "Design, build, improve and review anything visual: interfaces on any stack, and identity, print, editorial, packaging, signage, presentations, documents, social media, ads, email, photography, illustration and motion, with the craft behind Apple's platforms (simplicity, physics-based motion, continuous geometry, haptic-grade feedback, low cognitive load, zero lag). Gives graded rules from design research, exact format specs, tokens for every stack, templates, components (calendars, pickers, smooth scrolling) and tools that measure and fix. Use for ANY design task; when someone asks to design, build, restyle, animate, critique or fix a screen, a flow, a deck, a poster, a logo, a brand or a palette; says Apple-like, premium, polished, minimal, intuitive, original or on-brand; mentions springs, haptics, tokens, grids or typography; or says something feels cheap, generic, cluttered or janky. Also use when design is requested with no quality bar stated, because this skill is the quality bar."
---

# Second Nature

A design has succeeded when people stop noticing it and simply get what they came for: the screen answers before they wonder, the poster reads in a second, the deck makes its point on the first slide, the brand is recognised before the name. This skill is how to build that on purpose, for anything that is designed.

It distils how the best work earns that feeling (Apple's platforms and design talks, the studios and brand builders whose work lasts, and the research on how people see, decide and act) into decisions you can make and defend, plus tokens, code, templates, format specifications and tools that measure. It applies to any medium, any platform and any stack.

## How to hold this skill

**Principles, not costume.** The goal is work made with this level of care, not one that looks like an Apple product. Keep the project's own brand, design system and platform conventions; apply these rules inside them. Do not reproduce Apple's trademarks, app icons or wallpapers, do not ship the San Francisco fonts outside Apple platforms (their licence forbids it; `system-ui` resolves to them where it is allowed), and do not imitate Liquid Glass on a product that has no reason to be made of glass. An Android app should feel like the best Android app, a Windows app like it belongs on Windows.

**Match the effort to the request.** A one-line fix to a button needs one rule from here, not a redesign. A new product surface deserves the whole loop below. Read what already exists before changing anything: existing tokens, components and motion values outrank the defaults in this skill.

**Every rule has a reason. Use the reason.** The numbers here are starting points that came from somewhere; the reasoning is what transfers. When a rule and its reason disagree in a specific case, follow the reason and say so.

**You cannot feel what you build.** You can verify structure, maths and performance from code; you cannot verify feel. Run it when you can, record it and step through frame by frame when you can, and tell the person plainly which parts need their hands on a real device.

## What to read

**This file is the working set.** It holds the decision rules, the numbers, the floor and the tells, and for most tasks it is all you need. The other files are depth, for when a task turns on one topic or you are stuck on a specific question.

Reading everything is the expensive mistake. In testing, agents that opened a dozen reference files to build a single page spent nearly twice the tokens of agents working with no skill at all, and passed exactly the same checks. Choose by the task:

| The task | Read beyond this file |
| --- | --- |
| A tweak, a fix, a question | Nothing |
| Improving existing UI, in any stack | Run `scripts/improve.mjs <paths> --diff` (CSS, SCSS, Less, HTML, React, Vue, Svelte, Angular, Tailwind), then [improve.md](references/improve.md). For a scored critique: [critique.md](references/critique.md) |
| Grading finished work in any medium | [rubrics.md](references/rubrics.md) |
| Starting a deliverable from nothing | Its procedure in [workflows.md](references/workflows.md); exact size, bleed and safe area from `scripts/format.mjs <words>`; a starting file in `templates/` |
| A page or a screen | Nothing, or its anatomy: [marketing](references/screens/marketing.md) · [product](references/screens/product.md) · [commerce](references/screens/commerce.md) |
| One component, built completely | Its entry in [actions](references/components/actions.md) · [selection](references/components/selection.md) · [forms](references/components/forms.md) · [navigation](references/components/navigation.md) · [overlays](references/components/overlays.md) · [data](references/components/data.md) · [feedback](references/components/feedback.md) · [content](references/components/content.md). Unsure which, or whether it exists: [inventory](references/components/inventory.md) |
| A calendar, date, range or time picker | [dates-times.md](references/components/dates-times.md); `assets/calendar.js` |
| Long lists, carousels, headers that collapse, scrolling that must feel smooth | [scrolling.md](references/scrolling.md); `assets/scroll.js` |
| Something dragged, swiped, flicked or snapped | [gestures.md](references/gestures.md) |
| A small state change that should feel right | [microinteractions.md](references/microinteractions.md); copy from `assets/micro.css` |
| A sign-up, checkout, onboarding or any multi-step task | [flows.md](references/flows.md); [guidance.md](references/guidance.md) for pacing one decision at a time |
| Where things live and how people find them | [navigation.md](references/navigation.md); what to show first: [disclosure.md](references/disclosure.md) |
| A palette, a theme, dark mode | Run `scripts/palette.mjs`; [color.md](references/color.md) only for a question it does not answer |
| Choosing and setting type | [typography.md](references/typography.md); custom lettering and licences: [type-design](references/disciplines/type-design.md) |
| Form, composition and grids in any medium | [form](references/foundations/form.md) · [composition](references/foundations/composition.md) |
| A concept, a direction, work that must not look templated | [creativity](references/foundations/creativity.md) · [originality.md](references/originality.md), then `node scripts/direction.mjs deal` |
| Making it feel expensive, calm, finished | [premium.md](references/premium.md); premium and luxury brands: [premium-brands](references/media/premium-brands.md) |
| A logo, an app icon, an icon set, a favicon | [identity.md](references/identity.md) |
| A brand: positioning, guidelines, what it means | [brand-strategy](references/foundations/brand-strategy.md) · [brand-guidelines](references/media/brand-guidelines.md) · [meaning](references/foundations/meaning.md) |
| A deck, a pitch, a board presentation | [presentations](references/media/presentations.md); `templates/slides/deck.html` |
| A report, case study, proposal, CV, PDF | [documents](references/media/documents.md); `templates/docs/`, `templates/print/report.html` |
| Anything printed: cards, stationery, invitations, certificates, menus | [stationery-occasions](references/media/stationery-occasions.md) · [print-production](references/media/print-production.md); `templates/print/` |
| Books, magazines, brochures, annual reports | [editorial](references/media/editorial.md) |
| Posters, banners, billboards | [posters-outdoor](references/media/posters-outdoor.md) |
| Packaging, labels, merchandise | [packaging](references/media/packaging.md) |
| Signs, wayfinding, exhibitions | [environmental](references/media/environmental.md) |
| Social posts, thumbnails, ads, email | [social](references/media/social.md) · [advertising-email](references/media/advertising-email.md); `templates/social/`, `templates/email/` |
| Photography, illustration, AI images, motion graphics | [photography](references/media/photography.md) · [illustration](references/media/illustration.md) · [motion-graphics](references/media/motion-graphics.md) |
| A control that is a pleasure to operate; an easter egg | [delight.md](references/delight.md); `assets/tactile.js`, `assets/fidget.js` |
| Charts, tables of numbers, a dashboard | [dataviz.md](references/dataviz.md) |
| A product with a model in it: chat, copilot, agent | [ai-interfaces.md](references/ai-interfaces.md); dialogue: [conversation](references/disciplines/conversation.md) |
| Services, systems, groups, games, learning, content, vehicles and wearables | The file in [disciplines/](references/INDEX.md) for it |
| The words | [writing.md](references/writing.md) |
| Checking that everyone can use it | [accessibility.md](references/accessibility.md); other languages and scripts: [internationalization.md](references/internationalization.md) |
| Ethics, privacy, sustainability, children, older people, cultures | The file in [responsibility/](references/INDEX.md) for it |
| A scroll-told page, 3D, a product film | [immersion.md](references/immersion.md) · [video.md](references/video.md) |
| A design system, tokens, a Figma file, a particular stack | [systems.md](references/systems.md) · [figma.md](references/figma.md) · [stacks.md](references/stacks.md); `scripts/tokens.mjs`, `scripts/figma-audit.mjs` |
| Research, testing, numbers, leading a team, handing work over | [methods](references/methods.md) · [quantitative-ux](references/quantitative-ux.md) · [leadership](references/leadership.md) · [briefs-handoff](references/briefs-handoff.md) |
| Justifying a decision with research | One entry from [principles/INDEX.md](references/principles/INDEX.md): 568 named effects, each graded |
| Anything else | [references/INDEX.md](references/INDEX.md) lists every file in one line |

- **Open a file to answer a question you can state** ("how should a sheet decide where to land?"), never to be thorough.
- **Three is the ceiling.** About to open a fourth? Build instead, and come back only for something specific.
- **Do not read `assets/` to learn the rules.** The rules are here. Open an asset when you are about to copy from it; the summary under *What ships with this skill* is enough to call the JavaScript.
- **Read in part.** Every reference opens with a contents list. Go to the section that answers your question.

## The eight pillars

Each is a question to ask of the work. The file beside it is depth; open it only for the reason given.

| # | Pillar | The question | Depth, and when it is worth opening |
| --- | --- | --- | --- |
| 1 | **Simplicity** | What here does the person not need right now? | [simplicity.md](references/simplicity.md): a screen with too much on it, a dense tool or dashboard |
| 2 | **Physics** | Does it move the way a real object would if I did that to it? | [gestures.md](references/gestures.md): anything dragged or swiped. [motion.md](references/motion.md): tuning springs past the defaults here, or choreographing several moving parts |
| 3 | **Geometry** | Are the shapes, spacing and alignment decided by a system, or by accident? | [geometry.md](references/geometry.md): drawing continuous corners on a specific platform, or setting up a shape and spacing system |
| 4 | **Feedback** | Does every action get an immediate, proportionate answer? | [feedback.md](references/feedback.md): haptics or sound, loading and progress, a custom control's full set of states |
| 5 | **Consistency** | Does the same thing look and behave the same everywhere? | [consistency.md](references/consistency.md): creating or extending a token system; one product on several platforms |
| 6 | **Cognition** | How much does the person have to remember, decide or decode? | [cognition.md](references/cognition.md): navigation and information architecture, long forms, many screen sizes |
| 7 | **Details** | Would the smallest part of this survive being looked at closely? | [details.md](references/details.md): a final polish pass on something that matters |
| 8 | **Performance** | Is there any moment where the person waits and nothing tells them why? | [performance.md](references/performance.md): something is janky or slow |

**Beyond the pillars** the library has a guide for each job (people, principles, visual craft, interaction craft, structure, components, screens, platforms, practice). The table above names the usual one; [references/INDEX.md](references/INDEX.md) lists them all in a line each. The history and sources ([apple-craft.md](references/apple-craft.md), [apple-lineage.md](references/apple-lineage.md), [sources.md](references/sources.md)) are for when someone asks where a rule comes from.

Platform guides, for conventions you are unsure of: [web](references/platforms/web.md) · [Apple native](references/platforms/apple.md) · [React Native, Flutter, Android, desktop](references/platforms/cross-platform.md) · [games, consoles, TV and OS shells](references/platforms/games-consoles-os.md) · [spatial, wearables, cars, voice](references/platforms/emerging.md).

## The loop

Work through these in order for anything larger than a tweak. Each step removes work from the ones after it, which is why subtraction comes before styling and motion comes after structure.

1. **Frame.** One sentence: who is here, what are they trying to do, how often, on what device, in what state of mind (*when…, I want to…, so I can…*). Name the single most important action on the screen and the feeling the product should leave (calm, capable, energised). For anything with a face of its own (a marketing page, a brand, a new product), also write the point of view: what is true only of this subject, and what it should feel like in physical terms. If you cannot write these, ask before designing.
2. **Subtract.** List every element, option and step. For each: remove it, merge it, defer it one level deeper, or replace the choice with a good default. Keep only what serves the sentence. Stop when removing one more thing would make the task harder; that point is simplicity, and it is not always the emptiest version.
3. **Structure.** Order by importance. Group by proximity. One primary action per view. Make the answers to *where am I, what can I do, how do I get back* visible without reading.
4. **Shape.** Apply one scale each for space, radius, type, colour and elevation. Make nested corners concentric. Let empty space do the separating before lines and boxes do.
5. **Move.** Decide what animates by how often it is seen and what it explains. Springs for anything a person touches; short decelerating curves for everything else; nothing at all for what happens a hundred times a day.
6. **Answer.** Give every interactive element all of its states (rest, hover, focus, pressed, busy, done, failed, disabled). Respond on the way down, within 100 ms. Add sound and haptics only where a physical thing would make them.
7. **Finish.** The details pass: empty, loading and error states, long and short content, dark mode, large text, reduced motion, keyboard, right-to-left, the corners and the hairlines.
8. **Verify.** Run it and look at it: phone and desktop widths, light and dark. Find the weakest part and fix that. Check the slowest device you can. Run `scripts/audit.mjs` over the code. Report what you verified and what needs a human hand.

## The floor

What every interface gets, whatever else the task asks for. None of it needs a reference.

**Any platform**

- Every value comes from a token: one scale each for space, radius, type, colour, elevation and motion. Colours are named for their role (`label`, `bg`, `accent`, `separator`), so light, dark and high contrast are the same components with different values.
- It follows the system: light and dark, larger text, reduced motion (keep fades, drop travel and bounce), reduced transparency (solid surfaces), increased contrast (firmer text and edges).
- Every control has all its states, a hit area of at least 44 pt, a visible keyboard focus ring and an accessible name.
- One accent colour, one primary action per view, text at 4.5:1 or better. A colour tuned as a fill is too light for words on a light surface: use its `-text` token.
- Space inside a group is smaller than the space around it. Every gap is a step on the scale.
- Nothing untrue: no invented numbers, reviews or logos, no fake urgency, no "sent" when nothing was sent. A missing fact is a labelled gap. Leaving is as easy as joining.

**Web**

- `<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">`, and never disable zoom. `color-scheme: light dark` with colours written as `light-dark(…)`.
- Tap highlight off and your own `:active` state; `touch-action: manipulation` on controls; form fields at 16 px or more.
- `dvh` / `svh` instead of `vh`; `env(safe-area-inset-*)` on edge-pinned bars; `overscroll-behavior: contain` on panels.
- Hover styles inside `@media (hover: hover) and (pointer: fine)`; `:focus-visible` for the focus ring.
- `prefers-reduced-motion`, `prefers-reduced-transparency` and `prefers-contrast` each handled.
- Real elements before any `div` with a handler: `<button>`, `<a>`, `<dialog>`, `<details>`, `<input type="range">`.
- Continuous corners with `corner-shape` inside `@supports`; `text-wrap: balance` on headings; `tabular-nums` on figures that change.

**Apple native:** standard components first; text styles, not fixed sizes; semantic colours; `.continuous` corners; springs; `sensoryFeedback` from the standard vocabulary.

**Anywhere else:** the host platform's own controls, type and conventions, with the same floor applied.

## Decisions you will make constantly

**Should this exist?** Ask in this order: can it be removed · can the system decide instead (a default, an inference) · can it wait until asked for (progressive disclosure) · can it merge with its neighbour. Adding is allowed when it removes a question from the person's head: a scrubber that shows time remaining is simpler than one that does not.

**Should this animate?**

| How often it is seen | Treatment |
| --- | --- |
| Constantly, or triggered from the keyboard (command palette, shortcuts, typing) | None. Motion here is latency. |
| Many times a day (hover, tabs, list navigation) | Almost none: ≤120 ms, colour or opacity only |
| Sometimes (menus, sheets, dialogs, toasts) | A short spring or decelerating curve, 150–350 ms |
| Rarely or once (onboarding, success, first run) | Room for character |

Animate only for a reason you can state: to show where something came from or went, to connect cause and effect, to confirm an action, or to soften a change that would otherwise startle.

**Spring or curve?** A person is or was touching it, or it can be interrupted: spring. It has a fixed start and end and nobody can grab it: a decelerating (ease-out) curve or a spring baked into CSS. It represents time itself (progress, hold-to-confirm): linear. Never ease-in for anything entering or responding; a slow start is a late answer.

**Bounce or not?** Default to none (`bounce: 0`). Overshoot belongs only where the person supplied the energy: releasing a drag, flicking, throwing. The same sheet opened by a button press gets no bounce, because nothing pushed it. Keep it at or under 0.3; above 0.4 it reads as a toy.

**Where does a gesture land?** Where it was *going*, never where the finger happened to lift. Project the release velocity forward, then choose the destination from the projection. Commit an action when the projected position crosses the threshold; raise the threshold for consequential actions.

**Which control?** One of 2–5, all visible: radios, or a segmented control if it switches a view at once. One of many: a select up to about 15, then a type-to-filter combobox. Several of many: checkboxes. Takes effect immediately: a switch; applied on Save: a checkbox. An approximate value: a slider with a number beside it; an exact one: a field. For anything overlaid, use the lowest rung that works: inline, popover, side panel, sheet, modal dialog, new page. Prefer undo to "Are you sure?".

**What does this cost the person?** Count it: thinking (about 1.35 s per decision) outweighs clicking (0.2 s), and moving a hand between keyboard and pointer (0.4 s) outweighs a keystroke. So remove a decision before removing a click: a default, a remembered choice, a clearer label. Put the result of an action where the pointer or thumb already is. `scripts/effort.mjs` compares two designs.

**What makes it this product's?** Discard the first idea and its obvious twist. Derive type, colour and composition from something true about the subject. Keep navigation, forms and affordances conventional; spend the originality on typography, proportion, imagery, motion character and words. One memorable element; everything else quieter. If a competitor's name would fit the page, keep going.

**Does this deserve a moment?** Done hundreds of times a day: no, speed is the delight. Done often: make it tactile (answer on press, 1:1 while held, detents, a clean stop). Done rarely and meaningfully: one signature moment. Errors, money and destructive actions: calm, never playful. Reward actions people chose; never manufacture the urge to act.

**Which corner radius?** If the shape sits inside another rounded shape: `inner = outer − gap`. If it is a standalone control in a touch layout: a capsule. Otherwise the nearest step on the radius scale. Use continuous corners wherever the platform can draw them.

**Material or solid?** Translucency is for chrome that floats over content that moves beneath it (bars, sheets, popovers). Content itself is solid. Never stack one translucent layer on another, and always honour reduced-transparency and increased-contrast settings.

**Which feedback?** Visual always. Haptic when a physical counterpart would click, thud or snap, and only on the causal frame. Sound rarely, quiet, and never uninvited on the web. If turning the feedback off would not be noticed, it was decoration.

## Numbers that matter

Starting points with a provenance. Tune by feel, then keep them as tokens.

| What | Value |
| --- | --- |
| Hit target | 44×44 pt touch (28 min) · 28×28 pt pointer (20 min) · 60 pt spatial · 66 pt TV · 48 dp Android |
| Body text | 17 pt iOS · 13 pt macOS · 16 pt watchOS · 29 pt tvOS · 16–17 px web · never below 11 pt |
| Text contrast | ≥ 4.5:1 up to 17 pt · ≥ 3:1 at 18 pt+ or bold |
| Measure | 45–75 characters per line (`max-width: 65ch`) |
| Spacing | a 4 pt base; most gaps are 8, 12, 16, 24, 32 |
| Response | < 100 ms feels caused by me · by 1 s show that something is happening · by 10 s show progress and let the person leave |
| Frame budget | 16.7 ms at 60 Hz · 8.3 ms at 120 Hz. Design for the smaller one |
| Spring | duration 0.3–0.5 s · bounce 0 by default · 0.15–0.3 after a gesture |
| Press | scale 0.96–0.98 on the way down, ~100 ms; spring back on release |
| Durations | press 100–160 ms · menus and popovers 150–250 ms · sheets and pages 300–500 ms |
| Stagger | 30–80 ms between items, whole group done in ≤ 300 ms |
| Enter from | scale ≥ 0.9 with opacity 0. Never from scale 0: nothing appears from nothing |
| Rubber band | `(1 − 1 / (x·0.55/d + 1)) · d` — follows less the further you pull, never beyond `d` |
| Momentum | rest ≈ position + velocity × 0.5 (deceleration about 0.998 per ms, 0.99 for a tighter stop: reported from UIScrollView, not published by Apple) |
| Commit | projected = (distance + 0.3 s × velocity) ÷ track; commit at 0.5 (harmless) to 0.85 (consequential) |
| Continuous corner | curve begins ≈ 1.6 × r from the corner; CSS `superellipse(1.8)` at radius × 1.6 |
| Concentric | inner radius = outer radius − gap |
| Material | blur 20–30 px + saturate 180%; 35% dim behind clear glass over bright media |
| Choices | 3–5 tabs · ≤ 7 options before grouping · 1 primary action per view |

## What ships with this skill

Use these instead of re-deriving them. Paths are relative to this file. Open one when you are about to copy from it, not to learn the rules.

| File | Use it for |
| --- | --- |
| `assets/tokens.css` | Design tokens: space, radius, type, semantic colour (light, dark, high contrast), depth, materials, motion. Adapt names to the project's system; keep the structure. |
| `assets/base.css` | The web floor as working CSS, plus reference primitives to copy: button, switch, segmented control, grouped list, field, skeleton. |
| `assets/kit.css` | About forty components on the same tokens, every state included: checkbox, radio, select, slider, input group, card, tabs, accordion, dialog and sheet, popover and menu, tooltip, toast, alert, progress, breadcrumbs, pagination, table, stepper, navigation bars. `demo/kit.html` shows them all. |
| `assets/micro.css` · `assets/micro.js` | Twenty-eight small state changes on ordinary controls (press, like, drawn tick, copy, busy to done, error shake, rolling number, list enter and exit, toast, save indicator), and the behaviour CSS cannot do. |
| `assets/physics.js` | Zero-dependency ES module: exact spring solver, `animate()` (interruptible, velocity-preserving), `draggable()` (the whole two-phase gesture), rubber-banding, momentum projection, velocity tracking, intent projection, adaptive thresholds, display filtering, organic jiggle, spring → CSS `linear()`. |
| `assets/tactile.js` | Controls people enjoy operating: a press that sinks, a rotary dial with detents, a scrubbable number, hold-to-confirm, a magnetic target, a tilting surface, a key-sequence easter egg. Keyboard and reduced motion handled. |
| `assets/fidget.js` | Things to fiddle with, each a correct control: a spinner with momentum, a slider with felt steps, an elastic pull, a grid of bubbles, swipe-to-act rows, a reorderable list. |
| `assets/color.js` | Colour as arithmetic: OKLCH conversion and gamut fitting, WCAG and APCA contrast, twelve-step scales, a whole checked palette from one colour, harmony. |
| `assets/squircle.js` | Continuous-corner and superellipse SVG paths, concentric radius, a resize-aware clip helper. |
| `assets/shapes.js` | Geometry generators returning path data and points: superformula, rounded polygon, star, seeded blob, phyllotaxis, hex and triangle grids, lattice, Truchet tiles, wave, spiral, morph between shapes. |
| `assets/directions.json` | Sixteen fully specified aesthetic directions (type, colour seed, shape, space, motion, signature ideas, their own clichés). Read through `scripts/direction.mjs`. |
| `assets/feedback.js` | One feedback vocabulary (selection / impact / notification) across vibration, synthesised sound and gamepad rumble. |
| `assets/SecondNature.swift` | The same vocabulary for SwiftUI: springs, press styles, haptics, rubber band, projection, concentric shapes. |
| `scripts/spring.mjs` | `node scripts/spring.mjs --duration 0.4 --bounce 0.2` prints one spring in every platform's dialect (CSS, Motion, SwiftUI, UIKit, Reanimated, Compose, Flutter). |
| `scripts/palette.mjs` | `node scripts/palette.mjs "#D11F41"` prints neutral, accent and status scales as `light-dark()` custom properties with their contrast checks. `--check <text> <background>` measures one pair. |
| `scripts/direction.mjs` | `deal` picks three directions that differ in kind; `show <id> --css` prints one as token overrides with its palette. |
| `scripts/tokens.mjs` | `node scripts/tokens.mjs "#D11F41" --format dtcg` exports the palette as design-token JSON (add `--srgb` for Figma), or as `css`, `tailwind`, `swift`, `android`. |
| `scripts/effort.mjs` | `node scripts/effort.mjs --compare "M P B M P B" "M K"` times two flows with the Keystroke-Level Model; `--fitts`, `--hick`, `--steer` for single targets, menus and tracks. |
| `scripts/mark.mjs` | `grid` draws a construction grid with keylines for a logo, app icon or 24-unit icon; `check logo.svg` tests an SVG against the authoring rules; `kit` prints the icon markup and manifest a site needs. |
| `scripts/audit.mjs` | `node scripts/audit.mjs <dir>` scans a codebase for the tells below, and for marks of generic design, and reports `file:line` with the reason and the fix. Run it in step 8 and at the start of any review. |
| `scripts/improve.mjs` | `node scripts/improve.mjs <paths> --diff` finds what makes existing UI feel unfinished in CSS, SCSS, Less, HTML, JSX/TSX, Vue, Svelte, Angular and Tailwind, and fixes what is safe (contrast, focus, reduced motion, transitions, leading, measure, spacing, tokens, zoom). `--write --yes` applies; everything else is a suggestion with its reason. |
| `assets/calendar.js` · `calendar.css` | Dates as ISO strings in every locale: `calendarGrid`, `dateField`, `dateRangePicker` with presets, `timeField`, `timeWheel`, `timeZoneSelect`, plus pure date helpers. Keyboard, screen reader and right-to-left handled. |
| `assets/scroll.js` · `scroll.css` | Scrolling that stays native: `virtualList` (thousands of rows), `snapCarousel`, `collapsingHeader`, `pullToRefresh`, `rememberScroll`, `frameMonitor` (measured refresh rate and long frames). Never hijacks the wheel. |
| `assets/keywords.css` | The most used treatments as words in one attribute: `data-sn="press glass reveal lift squircle"`. |
| `assets/formats.json` · `scripts/format.mjs` | 312 formats (paper, cards, posters, slides, social, ads, email, app stores, video) with size, bleed, safe area, colour and source. `node scripts/format.mjs "instagram story"`; `--svg` writes a canvas with trim, bleed and safe guides; `--css` an `@page` rule. |
| `scripts/figma-audit.mjs` | Audits a Figma file from JSON the person exported: contrast, small text, sprawl of sizes and colours, off-scale gaps, touch targets, unbound fills. |
| `templates/` | Ready-to-fill files: print (business card, letterheads, certificate, invitation, greeting card, poster, flyer, menu, CV, report), an HTML slide deck, social posts, an email, and Markdown kits (briefs, case study, proposal, brand book, handoff). |
| `sn` (npm package `second-nature-design`) | The same tools as one command line (`sn palette`, `sn format`, `sn improve`, `sn new`, `sn render` and more) and as importable functions. `INVENTORY.md` at the repository root lists everything. |

When the project already has a motion library, a token system or a component kit, map these onto it. Copy the code in only when there is nothing to map onto.

Enough to call the JavaScript without opening it:

```js
// physics.js
springFromBounce(duration, bounce)                  // → spring. Presets: SPRINGS.micro | swift | smooth | snappy | bouncy | release
animate({ from, to, velocity, spring, onUpdate })   // → { value, velocity, retarget(to), stop() }, interruptible
draggable(el, { axis, bounds, snap, initial, onUpdate, onRelease, onSettle })
                                                    // → { value, animateTo(v, { spring }), set(v), destroy() }, the whole gesture
rubberbandClamp(value, min, max, dimension)         // resistance past an edge
project(velocity)                                   // how far momentum carries; nearest(points, value) picks the stop
projectedProgress(distance, velocity, track)        // commit on intent, for sliders and swipes
new VelocityTracker()                               // .add(value, timeMs), .velocity(timeMs)
springToCSS(spring)                                 // → { easing, durationMs } for a CSS transition
jiggle(el, { size })                                // organic idle motion; displayFilter({ maxChange, intervalMs, monotonic })

// tactile.js — each returns { destroy() }
pressable(el) · dial(el, { min, max, step, value, onChange }) · scrubber(el, { min, max, step, value, onChange })
holdToConfirm(el, { duration, onConfirm })          // paints --hold 0…1 on the element
magnetic(el, { strength, radius }) · tilt(el, { max }) · secret(KONAMI, fn)

// fidget.js — each returns { destroy() } and has a keyboard path
spinnable(el, { detents, onSpin, onRest }) · detentSlider(el, { min, max, step, value, onChange })
elastic(el, { threshold, onRelease }) · popGrid(container) · swipeAction(row, …) · reorderable(list, { onReorder })

// micro.js
asyncButton(el, action) · copyButton(el, getText) · rollNumber(el, value) · toast(message, { action })
autosaveIndicator(el) · tooltipGroup(container) · highlightChange(el)

// shapes.js — points are [x, y]; pointsToPath(points) or smoothPath(points) makes path data
blob(seed, complexity, contrast, radius) · superformula({ m, n1, n2, n3 }) · roundedPolygon(sides, radius, cornerRadius)
phyllotaxis(count, spacing) · hexGrid(cols, rows, size) · latticeHoles(cols, rows, size) · morph(a, b, t) · cssPolygon(points, w, h)

// color.js — colours are '#hex', 'oklch(L C H)' or { l, c, h }
parse(c) · toHex(c) · toCSS(c) · fit(c)             // fit(): reduce chroma until displayable
contrast(text, bg)                                  // WCAG ratio;  apca(text, bg) → Lc
onColor(bg)                                         // black or white label that passes
scale({ hue, chroma })                              // → { light: [12], dark: [12] }
palette({ accent }) → { scales, checks, onAccent }  // paletteToCSS(result) to print it

// squircle.js
continuousCornerPath(width, height, radius)         // SVG path data; concentricRadius(outer, gap, minimum)

// feedback.js
feedback.play('selection' | 'light' | 'medium' | 'heavy' | 'success' | 'warning' | 'error')

// calendar.js: dates are 'YYYY-MM-DD', times 'HH:mm'; each widget returns { destroy() } and more
calendarGrid(el, { value, min, max, mode: 'single' | 'range', locale, onChange })
dateField(el, { value, locale, onChange }) · dateRangePicker(el, { presets, onChange })
timeField(el, { value, locale, onChange }) · timeWheel(el, { value, step, onChange }) · timeZoneSelect(select, { value })
monthGrid(year, month, { firstDay }) · weekInfo(locale) · parseDate(text, locale) · formatDate(iso, locale) · addMonths(iso, n)

// scroll.js
virtualList(el, { count, itemSize | estimateSize, render }) · snapCarousel(track, { prev, next, indicators })
collapsingHeader(header, { distance }) · pullToRefresh(el, { onRefresh, button }) · rememberScroll(el, key)
frameMonitor({ onUpdate })                         // { fps, rate, longFrames } for development
```

Token names follow one pattern: `--sn-space-*`, `--sn-radius-*`, `--sn-text-*`, `--sn-label` (`-2`, `-3`, `-4`), `--sn-bg` (`-2`, `-3`), `--sn-fill-*`, `--sn-separator`, `--sn-accent`, `--sn-shadow-*`, `--sn-material`, `--sn-dur-*`, `--sn-ease-out`, `--sn-spring-*` with a matching `-duration`, and `--sn-motion` (1, or 0 under reduced motion: multiply distances by it).

## The tells

Things that make an interface read as unfinished within a second. Fix these before anything subtle.

| Tell | Why it reads as cheap | Instead |
| --- | --- | --- |
| Feedback on release, not on press | The interface seems to think before answering | `:active` / pointer-down state within 100 ms |
| `ease-in`, or `linear` on movement | Starts slow: the moment the eye is watching is the dead one | Decelerate (`ease-out`) or spring |
| `transition: all` | Animates layout by accident; stutters | Name the properties; prefer `transform` and `opacity` |
| Appearing from `scale(0)` or from nowhere | Objects do not materialise from a point | From ≥ 0.9 scale + fade, from the element that caused it |
| An animation that cannot be interrupted | The person has to wait for the software | Springs, or transitions that retarget; never lock input |
| A drag that eases, or lags the finger | The object is being told about the finger rather than held by it | 1:1 tracking while down; physics only after release |
| Hard stop at an edge | Reads as frozen, not finished | Rubber-band |
| Same radius on parent and child | Gap pinches at the corners | Concentric radii |
| Borders everywhere | Structure drawn instead of composed | Space and grouping first, then tone, then hairlines |
| Five things shouting | Nothing is primary, so the person has to decide | One accent, one primary action |
| Pure-opacity crossfade between layouts | Two ghosts overlap | Move/scale shared elements; add 2–4 px blur if needed |
| Uniform stagger on everything | Mechanical, and it delays use | Stagger only first-run content, 30–80 ms, never controls |
| Hover styles on touch | They stick after the tap | Gate with `(hover: hover) and (pointer: fine)` |
| `100vh` on mobile, 12 px inputs, disabled zoom | The page jumps, zooms, or traps | `dvh`/`svh`, 16 px inputs, never disable zoom |
| No reduced-motion path | Excludes people and fails review | Keep fades, drop travel and overshoot |
| Spinner for a known shape | The layout jumps when content lands | Skeleton in the final shape; nothing at all under ~300 ms |
| Numbers that jitter | Looks like a fault | Tabular figures; filter and rate-limit the value |
| Success shown for something that did not happen | The first time it is noticed, nothing else on the page is believed | Say what is true: "not connected yet", a labelled gap |
| Gradient headline, purple-to-blue wash, emoji icons, three identical cards | Reads as a template nobody decided on | A palette and type derived from the subject; a layout that follows the content |
| Copy that fits any company ("seamless", "supercharge", "unlock") | Says nothing, so trust drops | A line that can be pictured, could be false, and only this product could say |
| Equal spacing everywhere | Grouping disappears; the eye has to work it out | Less space inside a group than around it |
| Text set by default | Wide tracking on big type, long lines, orphans | Tighten large type, cap the measure, `text-wrap: balance` |

## Reviewing existing work

Run `scripts/improve.mjs --diff` (it includes the audit) first, then read the work against the eight questions. For work that is not code (a deck, a poster, a brand), grade it with the rubric for its medium in [rubrics.md](references/rubrics.md). Report in a table, most damaging first, and say what you could not judge from code:

| Where | What | Why it matters | Change to |
| --- | --- | --- | --- |
| `Sheet.tsx:42` | closes with `ease-in 400ms`, input blocked until done | slow start, and the person waits on the software | spring `duration 0.35, bounce 0`, interruptible |

That is enough for most reviews. For a formal written one with severity levels, see [review.md](references/review.md); for a score across ten dimensions, [critique.md](references/critique.md).

When the plugin is installed and a deep critique is asked for, `/second-nature:critique` runs specialist reviewers in parallel, one lens each (simplicity, disclosure, mental model, flow, feedback, visual craft, originality, accessibility, performance, evidence), and merges what they find. It costs several times a normal review, so use it when asked, not by default.

## Reporting back

Keep it short and concrete: what changed and why in the person's terms, which values you chose and where they live as tokens, what you verified (ran it, tests, audit output) and what you could not (feel on a real device, haptics, 120 Hz behaviour). Never describe something as smooth, native or polished on the strength of reading the code.

Files in this skill

  • SKILL.md38.4 KB
  • assets/SecondNature.swift10.8 KB
  • assets/base.css14.5 KB
  • assets/calendar.css20.9 KB
  • assets/calendar.js90.5 KB
  • assets/color.js14.2 KB
  • assets/directions.json49.9 KB
  • assets/feedback.js5.2 KB
  • assets/fidget.js48.4 KB
  • assets/keywords.css5.8 KB
  • assets/kit.css60.1 KB
  • assets/micro.css51.3 KB
  • assets/micro.js29.9 KB
  • assets/physics.js28.6 KB
  • assets/scroll.css8.6 KB
  • assets/scroll.js36.5 KB
  • assets/shapes.js20.5 KB
  • assets/squircle.js5.9 KB
  • assets/tactile.js22.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in design →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.