{
  "language": {
    "id": "en",
    "tag": "en",
    "name": "English"
  },
  "note": "To suggest corrections, download the text of this language, edit it, and send the file to i@kubai.design.",
  "contact": "i@kubai.design",
  "interface": {
    "colon": ": ",
    "all": "All",
    "saved": "Saved",
    "filterLabel": "Filter by category",
    "savedNone": "No saved tips yet",
    "savedSignIn": "Sign in to see the tips you saved",
    "marksTitle": "(n) => `${n} ${n === 1 ? \"highlight\" : \"highlights\"}`",
    "marksExport": "Export as Markdown",
    "ellipsis": "…",
    "marksExported": "Highlights exported",
    "marksFile": "My highlights · Vibe Design Tips",
    "signInClosed": "Sign-in is not open yet",
    "signIn": "Sign in",
    "save": "Save",
    "unsave": "Remove from saved",
    "savedState": "Saved",
    "copy": "Copy",
    "copied": "Copied",
    "promptNote": "Paste it into an agent such as Claude Code or Cursor",
    "install": "Copy install prompt",
    "installTitle": "Give this prompt to your agent: it installs the Skill, and can update it later",
    "installCopied": "Copied. Give it to your agent to install",
    "installPrompt": "(name, guide, mirror) => [\n\t\t`Please install the ${name} Skill for me, from Vibe Design Tips, so it works in every project and can be updated later.`,\n\t\t\"\",\n\t\t`Follow the steps in ${guide} and install ${name}.`,\n\t\t`If GitHub cannot be reached, use ${mirror} instead.`,\n\t\t\"\",\n\t\t\"If it is already installed, follow the update steps there. Then tell me the version and where you installed it.\"\n\t].join(\"\\n\")",
    "copyFailed": "Copy failed",
    "demo": "(name) => `${name} demo`",
    "reset": "Reset",
    "loadFailed": [
      "Could not load this tip. ",
      "Reload the page",
      " to try again."
    ],
    "viewOnX": "View the post on X",
    "privacy": "Privacy",
    "close": "Close",
    "themeToggle": "Dark mode",
    "themeTip": "Dark mode",
    "themeTipDark": "Light mode",
    "autoplayToggle": "Autoplay videos",
    "autoplayTip": "Pause autoplay",
    "autoplayTipOff": "Autoplay videos",
    "langSwitch": "Language",
    "sideCollapse": "Collapse sidebar",
    "sideExpand": "Expand sidebar",
    "menu": "Menu",
    "community": "Join the community",
    "projects": "Related work",
    "projectPrev": "Previous project",
    "projectNext": "Next project",
    "readingTools": "Reading tools",
    "textSize": "Text size",
    "focus": "Focus mode",
    "exitFocus": "Show the demo",
    "prev": "Previous",
    "next": "Next",
    "moreTips": "Previous and next tips",
    "seriesStats": "(views, likes, bookmarks) => `The series on X: ${views} views, ${likes} likes, ${bookmarks} bookmarks`",
    "reads": "reads",
    "likesSaves": "likes & saves",
    "follow": "Follow @kubai087 on X",
    "readsAcross": "(n) => `Reads across ${n} posts`",
    "likesCount": [
      "",
      " likes"
    ],
    "savesCount": [
      "",
      " saves"
    ],
    "improve": "Improve translation",
    "improveNote": "To suggest corrections, download the text of this language, edit it, and send the file to {email}.",
    "improveDone": "Download complete. Please send your corrections to i@kubai.design."
  },
  "reader": {
    "size": "Text size",
    "sizes": [
      "Default",
      "Large",
      "Larger"
    ],
    "marks": "Selected text",
    "highlight": "Highlight",
    "unhighlight": "Remove highlight",
    "marked": "Highlighted and saved. Find your highlights under Saved",
    "unmarked": "Highlight removed",
    "copy": "Copy",
    "quote": "Quote",
    "copied": "Copied",
    "quoted": "Quote copied",
    "copyFailed": "Copy failed",
    "colon": ": ",
    "quoteText": "(words, title, url) => `“${words}”\\n— ${title}\\n${url}`"
  },
  "account": {
    "saved": "Saved",
    "unsaved": "Removed from saved",
    "save": "Save",
    "savedState": "Saved",
    "unsave": "Remove from saved",
    "tooMany": "Too many requests. Try again in a moment.",
    "saveFailed": "Could not save. Try again in a moment.",
    "going": "(p) => `Going to ${p}…`",
    "signedOut": "Signed out",
    "account": "(name) => `Account: ${name}`",
    "signIn": "Sign in",
    "signInTitle": "Sign in to vibedesign.tips",
    "signInLeads": {
      "save": "Signing in saves this tip.",
      "mark": "Signing in keeps this highlight and saves this tip.",
      "install": "Sign in to copy the install prompt.",
      "saved": "Sign in to see the tips you saved."
    },
    "expiredTitle": "Your sign-in has expired",
    "expiredLeads": {
      "save": "Please sign in again. This tip will then be saved.",
      "bundle": "Please sign in again to keep downloading the Skill.",
      "archive": "Please sign in again to keep downloading the full package.",
      "install": "Please sign in again to copy the install prompt.",
      "rename": "Please sign in again to edit your name."
    },
    "signInWith": "(p) => `Sign in with ${p}`",
    "lastUsed": "Last used",
    "recommended": "Recommended",
    "inAppNote": "(github) => `Google sign-in continues in your browser. If it doesn’t open, choose “Open in browser” from this app’s ··· menu${github ? ', or sign in with GitHub' : ''}.`",
    "openingBrowser": "Opening your browser…",
    "browserNotOpened": "Could not open your browser",
    "member": "(n) => `Early member No. ${n}`",
    "plateTitle": "Early member plate",
    "plateNote": "(max, n) => `A keepsake for the first ${max} people to support vibedesign.tips. You are No. ${n}.`",
    "plateOpen": "Click to see the member list",
    "membersOpen": "See the member list",
    "membersTitle": [
      "The first ",
      " members"
    ],
    "membersLead": "(count, max) => (count >= max ? `All ${max} places are taken` : `${count} taken, ${max - count} left`)",
    "membersYou": "(n) => `You are No. ${n}`",
    "membersSelf": "You",
    "membersShow": "Show me on the list",
    "membersShown": "You are on the list",
    "membersHidden": "You are off the list",
    "membersPrivate": "Only you can see this",
    "membersJoin": "Sign in to take a place",
    "membersAnonymous": "Anonymous kind soul",
    "membersFailed": "Could not load the list. Try again in a moment.",
    "getAll": "Get all tips",
    "getAllTitle": "Sign in to vibedesign.tips",
    "perks": [
      [
        "download",
        "Download every tip in one go"
      ],
      [
        "save",
        "Save the tips you like and highlight what matters"
      ],
      [
        "badge",
        "Join early and get an exclusive badge"
      ]
    ],
    "consent": [
      "Free, keeps only your name and avatar. Signing in accepts the ",
      "Privacy Policy",
      "."
    ],
    "separate": "Accounts from different sign-in methods don’t share saves",
    "accountMenu": "Account",
    "providerAccount": "(p) => `Signed in with ${p}`",
    "mySaved": "Saved",
    "signOut": "Sign out",
    "editName": "Edit name",
    "nameField": "Name",
    "nameSaved": "Name updated",
    "nameInvalid": "(max) => `Use 1 to ${max} characters`",
    "nameFailed": "Could not change the name. Try again in a moment.",
    "closed": "Sign-in is not open yet",
    "savedSignIn": "Sign in to see the tips you saved",
    "savedCount": "(n) => `${n} saved ${n === 1 ? 'tip' : 'tips'}`",
    "seeAll": "See all",
    "loginError": "Sign-in did not work. Please try again.",
    "loginCancelled": "Sign-in cancelled",
    "loginLimited": "Too many sign-ins. Try again in a moment.",
    "loginBusy": "Sign-in with X has reached its limit for now. Please sign in another way.",
    "loginSaved": "Signed in, and this tip is saved",
    "signedIn": "(name) => `Signed in as ${name}`",
    "colon": ": ",
    "downloads": "Download everything",
    "downloading": "Preparing…",
    "downloadFailed": "Could not download. Try again in a moment.",
    "skillTile": "Skill",
    "skillTileNote": "Everything",
    "skillZip": "Or download the Skill as a ZIP",
    "skillVersion": "(v) => `Version ${v}`",
    "changelog": "Changelog",
    "changelogTitle": "Skill changelog",
    "changelogLead": "Every release of the Skill that holds everything. Each tip’s own Skill is on its page.",
    "changelogAdded": "Added",
    "changelogUpdated": "Updated",
    "installCopied": "Install prompt copied. Give it to your agent",
    "installPrompt": "(guide, mirror) => [\n        'Please install the kubai-design-tips Skill for me (every design tip from Vibe Design Tips), so it works in every project and can be updated later.',\n        '',\n        `Follow the steps in ${guide}`,\n        `If GitHub cannot be reached, use ${mirror} instead.`,\n        '',\n        'If it is already installed, follow the update steps there. Then tell me the version and where you installed it.',\n      ].join('\\n')",
    "copyFailed": "Could not copy. Try again in a moment.",
    "skillStarted": "Download started",
    "archiveTile": "Full package",
    "archiveTileNote": "Videos and posts",
    "archiveNew": "(n) => `Or only the ${n} ${n === 1 ? 'tip' : 'tips'} added or updated since your last download`",
    "archiveUpToDate": "You already have every tip in the full package",
    "archiveStarted": "(size) => `Downloading the full package (${size}). Each tip has its video and its text in Chinese and English.`",
    "close": "Close",
    "community": "Join the community",
    "communityKind": "Paid community",
    "communityTitle": [
      "Join Vibe Design ",
      ""
    ],
    "communityLead": "Good design friends, waiting for you to come and chat",
    "communityFree": "Every tutorial on this site is free for good, with careful updates to come. The community offers no extra lessons, but joining lets you:",
    "communityPerks": [
      [
        "support",
        "Keep the free tips coming, and give me a little boost ✨"
      ],
      [
        "ask",
        "Ask Kubai anytime for free icon and product design advice"
      ],
      [
        "share",
        "More everyday design knowledge and resources"
      ],
      [
        "talk",
        "Meet great people building products, content and design"
      ],
      [
        "treat",
        "Buy Shubing the cat a can of treats 🐱"
      ]
    ],
    "communityCat": [
      "Hi! I’m ",
      "Shubing",
      ". Thanks for the treats~"
    ],
    "communityCurrency": "CN¥",
    "communityEarly": "Early bird",
    "communityWas": "Regular price ",
    "communityEnds": "(date) => `Ends ${date}`",
    "communityDaysLeft": "(n) => `${n} ${n === 1 ? 'day' : 'days'} left`",
    "communityLastDay": "Ends today",
    "communityOnce": "Pay once, yours to keep",
    "communityScan": "Scan with WeChat to add me",
    "communityHow": "Add Kubai on WeChat, send the payment once accepted, and you’ll be invited to the group",
    "communityHowTouch": "Press and hold to save the code, then open it from your photos in WeChat’s Scan to add Kubai. Once accepted, send the payment and you’ll be invited to the group",
    "communityQr": "WeChat QR code"
  },
  "tags": {
    "motion": "Motion",
    "interaction": "Interaction",
    "components": "Components",
    "type": "Type & Layout",
    "effects": "Effects"
  },
  "stats": {
    "views": "views",
    "likes": "likes",
    "bookmarks": "bookmarks",
    "replies": "replies",
    "source": "Post on X"
  },
  "titles": {
    "021-ring-cards": "Ring cards with depth and a fluid gradient",
    "020-choice-controls": "Diagnosing and fixing choice controls",
    "019-scroll-cards": "Five card interactions driven by scrolling",
    "018-holo-card": "Holographic cards that tilt and turn over",
    "017-loading-states": "Diagnosing and fixing loading states",
    "016-toast-or-notification": "Toasts or notifications: how to choose",
    "015-ui-continuity": "Diagnosing and fixing UI continuity",
    "014-card-delete": "Four ways for a deleted card to disappear",
    "013-shockwave-glow": "A shockwave halo",
    "012-message-bubbles": "Material and motion for message bubbles",
    "011-easing-curves": "Choosing easing curves by situation",
    "010-liquid-glass": "Liquid glass",
    "009-overlays": "Rules for choosing an overlay",
    "008-wiki-layout": "A wiki layout for desktop and mobile",
    "007-type-switches": "CSS for mixed Chinese and English type",
    "006-book-cards": "Cards that open like a book on hover",
    "005-drag-ripple": "Drag to reorder, with items making way",
    "004-continuous-corners": "Nested corners and continuous corners",
    "003-ascii-dither": "ASCII and dither effects",
    "002-cascade-menu": "Safe areas and delays for cascading menus",
    "001-skeuomorphic-buttons": "Skeuomorphic buttons that press in"
  },
  "tips": {
    "001-skeuomorphic-buttons": {
      "summary": "Tactile skeuomorphic buttons: five variants, five material layers, and lighting that changes on hover and press. For dashboards and tools.",
      "notes": "<p>A flat button usually just turns slightly darker when pressed, which is barely visible during a quick click. A skeuomorphic button sinks when pressed, with its position, gradient and shadows changing together, so the user can tell the press registered. The key points are these five:</p>\n        <ol>\n        <li><strong>Five variants</strong>: For dashboards, editors and settings pages with many buttons and few colors, where primary and secondary can only be told apart by light, shade and material. From strongest to weakest: primary is a dark slate key, secondary a raised white key, tertiary a light gray key, ghost has no face at rest, and text is just a label with a thin underline. Use only one primary per area.</li>\n        <li><strong>Five material layers</strong>: The three filled variants are built from the same five layers: a gradient face 6–8% lighter at the top, a 1px border one step darker than the bottom of the gradient, a white highlight along the top, a dark line along the bottom, and a two-layer shadow made of a contact shadow and a soft drop shadow. The variants differ only in their values, so define the five layers as one set of tokens and let each variant assign its own.</li>\n        <li><strong>Hover and press</strong>: On hover the face gets one step lighter and the drop shadow grows. On press the button moves down 1px, the gradient flips, the drop shadow tightens until it almost touches the surface, and the top highlight becomes an inner shadow. The rest and pressed states need the same number of inset shadow layers, with transparent shadows filling any gap, for the shadows to change smoothly.</li>\n        <li><strong>Light and color</strong>: The light source is fixed straight above, so the highlight is always at the top and the dark line always at the bottom, and the whole set looks as if it sits in the same space. Use only neutral grays, no brand colors, and separate the variants by light and shade; no gloss, outer glow or large blurs either.</li>\n        <li><strong>Scale with the label</strong>: Height, padding, radius, border, and the offset and blur of every shadow layer are all written as multiples of the unit u = label size / 14. With a 14px label u = 1px and the button is 40px tall; with a 16px label u ≈ 1.14px, the button is about 45.7px tall, and the shadows grow in the same proportion.</li>\n        </ol>\n        <h2>Parameters</h2>\n        <dl class=\"params\">\n        <dt>Size</dt><dd>Label 14px; height 40px; radius 10px; horizontal padding 18px</dd>\n        <dt>Pressed</dt><dd>Moves down 1px; drop shadow collapses to 0 1px 1px</dd>\n        <dt>Timing</dt><dd>Transform 120ms; shadows 140ms; colors 160ms</dd>\n        </dl>\n        <p>The included prompt restyles the project’s existing button component first, keeping its API and accessibility settings; it creates a new one only if the project has no button component.</p>"
    },
    "002-cascade-menu": {
      "summary": "A safe triangle and three delays for cascading menus, so a diagonal move toward a submenu does not switch or close it by mistake.",
      "notes": "<p>On its way diagonally from a parent menu to a submenu, the pointer inevitably crosses the rows below. A plain menu switches to whichever row the pointer crosses, the submenu disappears, and the user has to go back and open it again. Four rules solve this:</p>\n        <ol>\n        <li><strong>Safe triangle</strong>: Used while a submenu is open and the pointer is moving toward it. Take the pointer’s previous position as one corner and connect it to the top and bottom corners of the submenu’s near side to form a triangle. While the pointer is inside, the rows it crosses do not highlight or open their own submenus; only when it leaves the triangle does the menu switch to the current row.</li>\n        <li><strong>Switch delay</strong>: If the pointer rests on a row inside the triangle, the user wants that row. After it stays there for more than 1.2 seconds, the menu switches to that row, so the submenu does not stay unchanged for too long.</li>\n        <li><strong>Open delay</strong>: For a pointer sweeping quickly down a menu. A submenu opens only after 220ms of hover and is canceled if the pointer leaves earlier, so a string of submenus does not open one after another; a tap on a touchscreen takes effect immediately.</li>\n        <li><strong>Close delay</strong>: For a pointer that slips slightly past the menu’s edge. The menu closes only 360ms after the pointer leaves, and stays as it is if the pointer comes back in time; a click outside the menu closes it immediately.</li>\n        </ol>\n        <p>Also, row highlighting is controlled by component state, not CSS <code>:hover</code>; otherwise the rows crossed inside the triangle still light up even when the menu does not switch.</p>\n        <p>The included prompt adds these rules to the project’s existing menu component, keeping its API and keyboard support; it creates a new one only if the project has no menu component.</p>"
    },
    "003-ascii-dither": {
      "summary": "ASCII and Dither effects for images and videos on login pages, websites or cards, with a strength you can adjust at any time.",
      "notes": "<p>ASCII and Dither redraw an image as characters or a pixel texture by brightness, keeping its light and dark structure and dropping the photo’s detail. Every parameter can be adjusted, so the same image can serve as the main visual or recede into the background as a texture. The key points are these five:</p>\n        <ol>\n        <li><strong>ASCII</strong>: Suits a terminal or code look, such as the login page of a developer tool. The image is cut into a grid, and each cell is replaced by a character according to its brightness, from “.” to “@” as it gets denser; size is the font size, spacing is how dense the grid is, and sampling strength is the contrast.</li>\n        <li><strong>Dither</strong>: Suits the look of halftone print or pixel grain. The image is cut into pixel blocks, and a 4×4 Bayer matrix serves as the thresholds that reduce each color to a few levels, which blend into intermediate tones from a distance; size is the pixel block, spacing is the scale of the texture, and the higher the sampling strength, the fewer the color levels and the heavier the grain.</li>\n        <li><strong>Mask</strong>: Applies to both effects. A vertical gradient laid over the image pushes it back, so the effect reads more as texture than as noise; when the effect gets in the way of the text on top, raise the mask first.</li>\n        <li><strong>Sample tones</strong>: ASCII only. It decides whether characters are drawn in the shadows or the highlights; choose by the tones where the subject sits. In a city at night the subject is the lights, so sample the highlights; for a dark product photo on white, sample the shadows.</li>\n        <li><strong>Color</strong>: Keep the original colors, or pick one of five palettes. The image’s light and dark are first mapped onto that palette before the effect is generated, so different images keep a consistent style.</li>\n        </ol>\n        <h2>Parameters</h2>\n        <dl class=\"params\">\n        <dt>ASCII</dt><dd>Mask 90; sample tones Shadows; sampling strength 100; size 37; spacing 0</dd>\n        <dt>Dither</dt><dd>Mask 88; sampling strength 100; size 15; spacing 0</dd>\n        </dl>\n        <p>The included prompt first confirms which image or video to process, then generates the effect for it and adds a panel beside it for adjusting the parameters live.</p>"
    },
    "004-continuous-corners": {
      "summary": "How to work out nested corner radii level by level, and when to switch to continuous corners, so corners on cards and forms look neater.",
      "notes": "<p>Take a card with a 16px radius and 8px padding: if the button inside also has a 16px radius, the gap between the two borders is wider at the corner than along the straight edges, and the button does not look like it fits the card. Where a larger radius meets a straight edge, a crease also shows. Four rules:</p>\n        <ol>\n        <li><strong>Even inset</strong>: For places with an inner and an outer layer of rounded corners, such as forms, nested cards and dialogs. Calculate every layer as “inner radius = outer radius − padding”, so the inner and outer corners share a center and the gap at the corner matches the gap along the straight edges. With a card radius of 16 and padding of 8, the button inside gets a radius of 8.</li>\n        <li><strong>Several levels</strong>: With three or more levels, calculate from the outside in, one level at a time. For a dialog with radius 32 and padding 16, the panels and buttons inside get 16; a tag inset by another 8 inside a panel gets 8. Elements at the same level share one radius, and no radius goes below 4.</li>\n        <li><strong>Pills and circles</strong>: Pill-shaped and circular elements nested in a container are left out of the calculation and always stay fully round.</li>\n        <li><strong>Continuous corners</strong>: For large radii where a crease shows at the join, or when you want something close to the look of iOS corners. A plain rounded corner changes curvature abruptly where it meets the straight edge; a continuous corner (superellipse) increases the curvature gradually, for a smoother transition. Write it as <code>border-radius: 32px; corner-shape: superellipse(1.25);</code></li>\n        </ol>\n        <p>Also, <code>corner-shape</code> is currently supported only in Chrome and Edge 139 and later; Safari and Firefox fall back to plain rounded corners on their own, with nothing extra to handle.</p>\n        <p>The included prompt recalculates the radii of the interface you specify, from the outside in; if the project has radius tokens, it changes the tokens directly.</p>"
    },
    "005-drag-ripple": {
      "summary": "The cursor, drop line and the way nearby items make room in drag to reorder, for lists, kanban boards and horizontal rows.",
      "notes": "<p>In many drag-to-reorder lists the other items stay still during the drag and the list rearranges abruptly on release, so the user can only check which two items it landed between afterward. These five rules let the user see the result before releasing:</p>\n        <ol>\n        <li><strong>Cursor</strong>: Set it on every draggable element. Show a hand on hover and a grabbing hand while dragging, so the user knows the element can be dragged before pressing.</li>\n        <li><strong>Dragged item</strong>: Follows the pointer while staying clear of the drop point, so it does not cover the drop line. In a horizontal row it lifts upward; in a vertical list it moves to one side and shrinks to about 90%. Its original slot closes up.</li>\n        <li><strong>Drop line</strong>: Marks the drop point. It is a very faint thin line at about 15% of the text color, vertical in a row and horizontal in a list. It grows from the middle out to both ends when it appears, slides over when the drop point changes, and is not shown at the item’s original position.</li>\n        <li><strong>Making way</strong>: The items on both sides of the drop line move outward, and the closer they are, the further and earlier they move: offset = 10px × 0.7ⁿ, delay = 24ms × n, where n is the number of items between an item and the drop line, 0 for the ones right next to it. Icons start from 10px, cards from 8px.</li>\n        <li><strong>Drop and cancel</strong>: On release, the item moves into the gap and the other items spring to their new positions; pressing Esc or releasing outside the list cancels, and every item returns to where it was.</li>\n        </ol>\n        <p>Also, move items only with transform, without changing the layout; reordering must also be possible from the keyboard; with “Reduce motion” on, keep only the drop line.</p>\n        <h2>Parameters</h2>\n        <dl class=\"params\">\n        <dt>Offset</dt><dd>Icons 10px; cards 8px; × 0.7 for each item further out</dd>\n        <dt>Delay</dt><dd>+24ms for each item further out</dd>\n        <dt>Spring</dt><dd>Barely overshoots; settles in about 0.25s</dd>\n        <dt>Drop line</dt><dd>About 15% of the text color</dd>\n        </dl>\n        <p>The included prompt reuses the project’s existing drag logic and adds these effects to the lists, rows and docks you specify.</p>"
    },
    "006-book-cards": {
      "summary": "Cards that open like a book: ordinary cards at rest that open slightly on hover to show the pages inside, in three styles.",
      "notes": "<p>In AI-generated products, cards are the element most likely to look alike. A book card keeps its usual look at rest and, on hover or focus, opens slightly like a small book to show a few pages inside. The key points are these four:</p>\n        <ol>\n        <li><strong>Structure</strong>: Suits cards that stand for content, such as documents, knowledge-base articles, templates and portfolio items; a card like “Settings” that is only an entry point has no pages inside and does not fit. The card is a stack of a cover, 4 pages and a back board that opens around its left edge; at rest all layers line up exactly.</li>\n        <li><strong>Timing</strong>: The cover opens the most, and each layer further in opens less and later: angle = 42° × 0.7ⁿ, delay = 28ms × n. The layers come to about 42°, 29°, 21° and 14°; when the pointer leaves, they close in reverse order, innermost page first.</li>\n        <li><strong>Light and shading</strong>: Light comes from above, and the shadow falls below the card. The shadow is two solid shapes that stretch downward and soften as the card opens; each page casts a shadow on the next until the two separate. Do not use <code>box-shadow</code>: it is a hollow ring, and its outline shows once the cover opens.</li>\n        <li><strong>Three styles</strong>: Default keeps the product’s existing card style and suits ordinary product cards; Skeuomorphic looks like a hardcover book on a gallery wall, with a book-cloth texture and a warm gray shadow; Minimal looks like a set of technical documents, with a flat light cover and thin line illustrations.</li>\n        </ol>\n        <p>Also, opening affects only the card itself: its size and position stay the same, and the surrounding cards and layout do not move.</p>\n        <h2>Parameters</h2>\n        <dl class=\"params\">\n        <dt>Angle</dt><dd>Cover 42°; × 0.7 for each layer further in</dd>\n        <dt>Delay</dt><dd>+28ms for each layer further in</dd>\n        <dt>Pages</dt><dd>4; hinged on the left edge</dd>\n        </dl>\n        <p>The included prompt first confirms the style, number of pages and opening direction, then restyles the project’s existing cards.</p>"
    },
    "007-type-switches": {
      "summary": "How to handle heading line breaks, shifting numbers, truncation, Chinese details and translation length in Chinese and English type.",
      "notes": "<p>The second line of a homepage headline holds a single word, the text next to a countdown shifts left and right with every tick, and a button label is squeezed onto two lines after switching to German. These problems come from line breaking and character widths, and most can be fixed with a few lines of CSS. The common ones fall into these groups:</p>\n        <ol>\n        <li><strong>Line breaks</strong>: Use <code>text-wrap: balance</code> on headings so the lines are about the same length and the last line never holds just one or two words; use <code>text-wrap: pretty</code> on body text so a paragraph does not end with a lone word; use <code>white-space: nowrap</code> on button labels so they always stay on one line.</li>\n        <li><strong>Numbers</strong>: For numbers that change, such as timers, prices and counts, use <code>font-variant-numeric: tabular-nums</code> so every digit has the same width. Otherwise, when 11 changes to 10, the “1” is narrower than the “0” and the text after it moves.</li>\n        <li><strong>Truncation</strong>: When long text needs an ellipsis, add <code>min-width: 0</code> to the element in a flex layout as well as <code>text-overflow: ellipsis</code>. A flex item’s minimum width defaults to its content width, so without this rule the text stretches the container and the ellipsis never appears.</li>\n        <li><strong>Chinese body text</strong>: Justify it with <code>text-align: justify</code> and set the line length to a whole number of characters, so the right edge is even; <code>text-autospace: normal</code> automatically adds space between Chinese and Latin letters or numbers; <code>text-spacing-trim: trim-start</code> removes the half-width blank before an opening bracket at the start of a line.</li>\n        <li><strong>Chinese headings and line-start and line-end rules</strong>: Mark the word boundaries in headings with BudouX and add <code>word-break: keep-all</code>, so lines break between words, never in the middle of one. Leave the line-start and line-end rules to the browser, and remove <code>line-break: anywhere</code>, which turns them off.</li>\n        <li><strong>Multiple languages</strong>: The same spot has to fit translations of different lengths. German words are usually longer than English ones, so a button that just fits on one line in English may not fit in German. When translating, have the agent choose translations whose length suits the page layout, so that no word is split across two lines and no excess blank space is left.</li>\n        </ol>\n        <p>The included prompt writes these rules into the global styles for every page to inherit, adjusting only line breaks, spacing, alignment and truncation, without changing copy, fonts or colors; afterward it lists the changed files and compares your pages before and after.</p>"
    },
    "008-wiki-layout": {
      "summary": "How to arrange the navigation bar, page list, end-of-article links, footer and mobile section switching in a wiki or help center.",
      "notes": "<p>When a product grows complex and its website needs many SEO articles, a reliable wiki can answer users’ questions and also bring in search traffic. The most common problems are that the page list cannot be found on a phone and that readers do not know where to go after an article. The layout needs to handle these five places:</p>\n        <ol>\n        <li><strong>Mobile section bar</strong>: Most phones are non-folding, with screens too narrow for a sidebar page list. Keep a section bar fixed at the bottom; tapping it opens a full-screen menu listing every section, one per row, easy to tap, with no need to scroll back to the top.</li>\n        <li><strong>Page list</strong>: When there are many sections and the list runs longer than one screen, give it its own height so it scrolls separately from the article, and cut off the overflow at the top and bottom. Add a gradient mask to the cut edges to show there is more above or below, plus a centered arrow button for scrolling with a click.</li>\n        <li><strong>End-of-article links</strong>: Below articles that answer questions, add links to the community and social media accounts. Whether the reader is a person or an AI, this brings conversions, like a free contextual ad for the conversion goal. Style the cards close to the article’s own components so they look like part of the article.</li>\n        <li><strong>Footer</strong>: Use an attractive background image to make the footer more than half a screen tall, drawing readers to scroll to the end and stay. Put genuinely useful information in the footer that helps readers solve their problems; otherwise it only puts them off.</li>\n        <li><strong>Navigation bar</strong>: Holds the logo (linking back to the main website), dropdown menus for key pages and the main CTA button, and sticks to the top on scroll. Safari and other browsers tint the address bar with the navigation bar’s color, so its background color should fit the brand.</li>\n        </ol>\n        <p>The included prompt finds the layout shared by the docs pages and adjusts only the position, scrolling and responsive behavior of the navigation bar, page list, outline and end-of-article area, leaving content, copy, colors and fonts unchanged; afterward it takes screenshots at the top, middle and end of a page and at phone width for you to check.</p>"
    },
    "009-overlays": {
      "summary": "When to use a tooltip, cursor tip, popconfirm, dialog, drawer or separate page.",
      "notes": "<p>Many dashboard products use dialogs everywhere: for the explanation behind a question mark, the confirmation before archiving, the edit form; each time, the user has to deal with the dialog before going on. A tooltip barely interrupts the user, while a dialog covers the whole page. The common overlays are these:</p>\n        <ol>\n        <li><strong>Tooltip</strong>: Adds text to whatever the pointer is on, often for truncated long text, such as a long file name in a table. It disappears when the pointer leaves, so it holds text only; for buttons or links, use a popover that opens on click instead.</li>\n        <li><strong>Cursor tip</strong>: Gives information continuously across a whole area, often in charts and fairly self-contained elements. It appears only when the pointer enters and moves with the pointer, such as showing the date and value of the data point under the pointer on a line chart.</li>\n        <li><strong>Popconfirm</strong>: For most actions that cannot be undone, such as deleting a comment. The confirmation appears next to the button, so the user does not have to look away; the path is short and it does not get in the way.</li>\n        <li><strong>Dialog</strong>: For confirmations with a big impact, bulk actions, or anything the user must stop and think about, such as permanently deleting a whole project; also for short forms that do not need other information on the page, such as renaming a file.</li>\n        <li><strong>Drawer</strong>: For longer forms, or forms that need the page content for reference while filling them in, such as editing a customer’s details next to the customer list. A drawer slides in from the side, so the main page stays visible, and it makes better use of the horizontal space on wide screens.</li>\n        <li><strong>Separate page</strong>: When the form is itself the main task, such as the full setup for a new project, make it a separate page with its own URL and a way back.</li>\n        </ol>\n        <p>Also, actions that can be undone, such as archiving, need no confirmation: do them right away and leave an “Undo” option. On phones, tooltips and cursor tips both show on tap instead.</p>\n        <p>The included prompt first finds every overlay in the product, decides which kind each one should use, and lists them in a table for you to decide; once you confirm, it changes only the parts you agreed to and keeps the visual style as it is.</p>"
    },
    "010-liquid-glass": {
      "summary": "The six layers of liquid glass, and how to adapt the tint and text color to the background, for cards and players over images or video.",
      "notes": "<p>Ordinary frosted glass has only a translucent background and blur, so text is hard to read over a busy background and the glass turns grayish on dark ones. Liquid glass adds refraction at the rim and a tint that changes with the background, so it looks thick and the text always stays clear. The material came out of building Lumno and is made of six stacked layers, from bottom to top:</p>\n        <ol>\n        <li><strong>Shadow</strong>: Gives the card a sense of volume.</li>\n        <li><strong>Blur and brightening</strong>: Blurs the background while raising its saturation and brightness, so the glass looks clearer. Light glass: saturation 180%, brightness 1.06; dark glass: saturation 160%, brightness 0.8.</li>\n        <li><strong>Rim refraction</strong>: An SVG displacement map shifts the background in a band around the rim inward, more the closer it is to the edge, while the middle stays flat; red light bends a little more than blue, creating a color split. Rim width 44px, color split ±15%.</li>\n        <li><strong>Tint</strong>: A layer of translucent color whose opacity adjusts automatically to how busy the background is: the busier the background, the stronger the tint and the easier the text is to read. Light glass uses white at 6%–22%, dark glass 16%–38%.</li>\n        <li><strong>Rim light</strong>: One line at the top left and one at the bottom right, plus one more inset further in, to make the whole piece look thicker.</li>\n        <li><strong>Ink</strong>: Text uses multiply on light glass and a brightening overlay on dark glass, so it picks up a little of the background’s color.</li>\n        </ol>\n        <p>Also, the material reads several sample points on the background and works out their average brightness; below 0.5 it switches to light automatically. Liquid glass suits covers, videos, wallpapers and other images with rich variation in brightness or color; on a solid background it looks almost the same as an ordinary translucent block. When checking the text, look at both the brightest and the darkest parts of the background.</p>\n        <h2>Parameters</h2>\n        <dl class=\"params\">\n        <dt>Light</dt><dd>Tint white 6%–22%; blur 2px; saturation 180%; brightness 1.06</dd>\n        <dt>Dark</dt><dd>Tint rgb(20 20 24) 16%–38%; blur 2px; saturation 160%; brightness 0.8</dd>\n        <dt>Refraction</dt><dd>Rim width 44px; shift at the edge 1.1 × rim width; color split ±15%</dd>\n        </dl>\n        <p>I have also released this material as an open-source playground, <a href=\"https://www.kubai.design/glasswork/\">Glasswork</a>: the tint, blur, rim refraction, rim light and text color can each be adjusted from a panel and checked over different wallpapers, photos and videos, and the result can be copied as CSS.</p>\n        <p>The included prompt first lists the cards, players and search boxes in the product that sit on images, video or busy backgrounds, and says which become glass and which stay as they are; it then writes the material into color tokens, with one set of tint strengths each for light and dark mode, and keeps the layout unchanged.</p>"
    },
    "011-easing-curves": {
      "summary": "Seven common animation easing curves, from Linear to Spring, and the kind of motion each one suits.",
      "notes": "<p>The rhythm of an animation is described by its easing curve: the steeper the curve, the sharper the change in speed and the faster it looks. If a menu popping up, a dialog closing and an indicator sliding all use the default <code>ease</code>, users cannot tell whether an element is appearing, disappearing or changing place. The common curves are these:</p>\n        <ol>\n        <li><strong>Linear</strong>: For things like progress bars and loading that only need to look like they are “running”. Constant speed, abrupt at the start and end, <code>linear</code>.</li>\n        <li><strong>Ease-out and Strong ease-out</strong>: For overlays and modal elements entering, such as toasts, menus, dialogs and drawers, use Ease-out, fast then slow, <code>cubic-bezier(0, 0, .58, 1)</code>. For small elements that settle into place right after a click, such as icons, text and a selected pill, use Strong ease-out, which starts faster and settles longer, <code>cubic-bezier(.22, 1, .36, 1)</code>, for the most immediate response.</li>\n        <li><strong>Ease-in</strong>: For elements leaving, such as a dialog closing or a toast disappearing. Slow then fast, for a clean exit, <code>cubic-bezier(.42, 0, 1, 1)</code>. Do not use it for entrances: the slow start makes the interface look sluggish.</li>\n        <li><strong>Ease-in-out</strong>: For elements changing place within the interface, such as the indicator sliding under tabs, a carousel turning pages or a table of contents scrolling smoothly. Slow at both ends and fastest in the middle, <code>cubic-bezier(.42, 0, .58, 1)</code>.</li>\n        <li><strong>Overshoot</strong>: For small, playful confirmations, such as a check mark, a like or a badge popping up. Goes about 10% past the end and comes back, <code>cubic-bezier(.34, 1.56, .64, 1)</code>. Do not use it on large panels, or the whole block of interface will wobble.</li>\n        <li><strong>Spring</strong>: For settling back after release, such as a drawer springing back, pull to refresh, or an item landing after drag to reorder. It wobbles gently once or twice at the end before coming to rest, more like a real object than Overshoot; the element already has velocity when the user lets go, and a spring can carry that velocity on.</li>\n        </ol>\n        <p>Also, define these curves as motion tokens and use them by role, so the rhythm stays consistent across the whole product.</p>\n        <p>The included prompt first lists every transition and animation in the project, marking the places that still use the default ease or use ease-in for an entrance, and the curve each one should change to; it then adds motion tokens and adjusts the curves and durations one by one.</p>"
    },
    "012-message-bubbles": {
      "summary": "Six message bubble materials with matching thinking, sending and deleting motion, for products that want to stand out from typical AI chats.",
      "notes": "<p>Typical AI assistant interfaces look almost the same: blue bubbles on the right, gray bubbles on the left, three bouncing dots while waiting. Bubbles appear more than anything else in a conversation, so changing their material and pairing it with matching motion gives the interface a style of its own. This is an exploratory version with six materials:</p>\n        <ol>\n        <li><strong>Cirrus</strong>: Suits light, clean products. A thin frosted glass with no border, with blue sky and white clouds behind it.</li>\n        <li><strong>Pixel</strong>: Has a retro game feel. The bubble is drawn on a pixel grid, its edges change one cell at a time, and it leaves a slight pixel trail as it moves.</li>\n        <li><strong>Aqua</strong>: Nostalgic and lively. The jelly-like look of the old Mac, with a layer of highlight on the surface.</li>\n        <li><strong>Gradient</strong>: Suits products that want to emphasize the brand. As in Telegram, the whole conversation shares one gradient, so bubbles at different heights have different colors.</li>\n        <li><strong>Skeuomorphic</strong>: Warm and tactile. Uses the same recipe as <a href=\"/001-skeuomorphic-buttons/\">001 Skeuomorphic buttons</a>.</li>\n        <li><strong>Solid</strong>: The basic control group. Easiest to read in long conversations with long reading time, and the lightest on performance.</li>\n        </ol>\n        <p>Also, the motion has to change along with the material, or the styles clash, as with pixel bubbles and a soft fade in and out. The whole conversation moves as one, and each material has its own spring values: on send, a new bubble rises from about 40px below, entering in a way that depends on the material; while the AI writes a long reply, a small dot matrix shows first and expands into a bubble once the reply starts; after a message in the middle is deleted, the messages above move down one after another to fill the gap.</p>\n        <p>The included prompt first asks whether to restyle your existing chat interface or build a standalone demo, and which materials to use; once you confirm, it adjusts the bubble materials and motion together, and asks you item by item before changing the input box, message menu and typing indicator.</p>"
    },
    "013-shockwave-glow": {
      "summary": "A shockwave halo that spreads from where it is triggered, with lens distortion and a color split, to play when an AI assistant is called up.",
      "notes": "<p>This effect combines the marquee light around the screen edge in iOS 27.3 with the halo burst the Dia browser plays when it opens its home page: the halo spreads from the trigger point, and the page it passes over bends and splits in color, which gives it a physical feel. The effect is made of these six layers:</p>\n        <ol>\n        <li><strong>Page snapshot</strong>: Turns the current page into an image as the basis for the layers that follow; Chrome’s new HTML-in-Canvas can help with this.</li>\n        <li><strong>Lens bend</strong>: The halo as a whole acts as a lens, stretching on the outside and compressing on the inside, so space looks pushed apart.</li>\n        <li><strong>Channel split</strong>: The red and blue channels shift 8% more and 8% less than the green channel, creating a slight color split where the page is displaced, while text stays sharp.</li>\n        <li><strong>Color rings</strong>: Four color rings blend smoothly and fade out as the halo spreads, setting its color and brightness. In light mode they tint the page; in dark mode they add light to it with a screen blend.</li>\n        <li><strong>Edge refraction</strong>: The halo spreads only within the content area and does not cover the browser’s or app’s toolbar. When it reaches the edge, the content stretches slightly toward the edge as if seen through the bevel of a piece of glass, while the window frame stays as it is.</li>\n        <li><strong>Glints on lines</strong>: As the halo passes, dividers and borders brighten briefly, more faintly in dark mode, so the page’s structure also takes part in the effect.</li>\n        </ol>\n        <p>Also, the halo is eye-catching and suits only infrequent actions such as calling up an AI; on a button that is clicked often it soon gets annoying. With “Reduce motion” on, drop the bend and the color split, and the halo only fades in and out in place.</p>\n        <h2>Parameters</h2>\n        <dl class=\"params\">\n        <dt>Duration</dt><dd>Spreads over 1000ms; fast, then slow</dd>\n        <dt>Color split</dt><dd>Red at 1.08 times; blue at 0.92 times the offset</dd>\n        <dt>Aurora</dt><dd>Blue, violet, pink, peach</dd>\n        <dt>Halo</dt><dd>Orange, yellow</dd>\n        <dt>Frost</dt><dd>Mint</dd>\n        <dt>Spark</dt><dd>Violet, gold</dd>\n        </dl>\n        <p>The included prompt first confirms the trigger, where the halo spreads from, whether to enable the bend and edge refraction, and the palette; once you confirm, it proposes an implementation based on the project’s tech stack.</p>"
    },
    "014-card-delete": {
      "summary": "Which kind of deletion the Burn, Plume, Blocks and Peel card effects each suit, and how the remaining cards close the gap.",
      "notes": "<p>In lists such as to-dos, a deleted item often vanishes instantly and the item below jumps up at once to fill the gap, before the user can see which one was deleted. The four effects below make the deletion visible, and handle how neighboring cards react and close the gap:</p>\n        <ol>\n        <li><strong>Burn</strong>: Suits thorough, formal deletions. Fire spreads from the delete button, and the paper chars until only an edge of ash remains, with sparks and paper flakes drifting upward; neighboring cards light up on the side facing the fire and warp slightly in the heat.</li>\n        <li><strong>Plume</strong>: Suits gentle or positive actions, such as completing a to-do or archiving a note. A soft flame rises from the bottom of the card and carries it away from the bottom up; neighboring cards light up too and warp slightly.</li>\n        <li><strong>Blocks</strong>: Suits casual contexts. The card breaks into blocks of different sizes that scatter outward, fall to the bottom of the list, bounce once and disappear; neighboring cards take the impact, get pushed away and spring back.</li>\n        <li><strong>Peel</strong>: Suits elements that look like physical objects, such as stickers and sticky notes. The card lifts from the corner nearest the delete button, showing a white die-cut border on its back, and flies off once peeled; neighboring cards are pulled toward the sticker and spring back once it comes off.</li>\n        <li><strong>Closing the gap</strong>: The remaining cards start closing the gap on a spring before the effect ends, changing only their position, not their height, so there is no jump and no pause between the deletion and the gap closing.</li>\n        </ol>\n        <p>Also, before the deletion takes effect, read the card’s position and capture its image; the effect’s first frame must match the real card exactly, rounded corners included, or the card will jump first. When the user undoes, the effect stops at once and the card comes back the way the product already restores items.</p>\n        <h2>Parameters</h2>\n        <dl class=\"params\">\n        <dt>Duration</dt><dd>Burn 2s; Plume 1.4s; Blocks 1.5s; Peel 1.2s</dd>\n        <dt>Closing the gap</dt><dd>Spring 520ms; transforms only</dd>\n        <dt>At once</dt><dd>Up to 3 at a time; beyond that, a fade</dd>\n        </dl>\n        <p>The included prompt first reads the project and confirms the delete entry points, the effects, how neighboring elements react and the colors; once you confirm, it makes the changes to fit the existing tech stack and interface.</p>"
    },
    "015-ui-continuity": {
      "summary": "Using seven common iOS cases, how to carry the element you tapped straight into the next state when the interface changes.",
      "notes": "<p>When the user taps the mini player, if the bar simply disappears and the player pops up as a whole page, the user has to look for the cover and buttons all over again on the new page. Continuity means the element you tapped carries straight into the next state, so people always know where they came from and where they are now. The common cases in iOS are these:</p>\n        <ol>\n        <li><strong>Navigation</strong>: When going from a list to the next level, the title of the tapped row carries on as the page title, and the old page title shrinks into the back button; on scroll, the title moves into the top bar.</li>\n        <li><strong>Card and Chart</strong>: When a card opens into its details, such as an article card or a data card. The card expands into the article, the image extends into the header image, and the small bars on the card carry on as the chart’s bars; pulling down retraces the same path back.</li>\n        <li><strong>Player</strong>: When the mini player expands into the full player, the small cover grows straight into its place on the player page, and the title and buttons each move to their new positions instead of disappearing first and fading back in.</li>\n        <li><strong>Search</strong>: When the search field is tapped, it moves to the top, matching items move up as the user types, and the rest fade out.</li>\n        <li><strong>Menu</strong>: When a menu opens from a button, it expands from the button’s position; a new item drops into the first place, and the others move back one after another.</li>\n        <li><strong>Tab Bar</strong>: When switching tabs, the selected pill first stretches, then settles into its new position.</li>\n        </ol>\n        <p>Also, content that exists only in the end state, such as the player’s progress bar and lyrics, fades in after half of the move, not at the same time as the shared elements, so it does not pull the eye away. When collapsing or going back, elements return along the same path.</p>\n        <h2>Parameters</h2>\n        <dl class=\"params\">\n        <dt>Curve</dt><dd>cubic-bezier(.32, .72, 0, 1); fast start, long settle</dd>\n        <dt>Duration</dt><dd>Phones: 450–700ms to open a full screen; 350–500ms for menus and bottom sheets; desktop about two thirds of that</dd>\n        <dt>Fade-in</dt><dd>Content that exists only in the end state fades in after half of the move</dd>\n        </dl>\n        <p>The included prompt first reads the project, finds the places where continuity fits, and proposes a plan ranked by how often each is used and how much it costs to change; once you confirm, it carries out the changes.</p>"
    },
    "016-toast-or-notification": {
      "summary": "Which messages suit a Toast and which suit a Notification, and when to use neither.",
      "notes": "<p>Toasts and Notifications are both small cards floating over the page, and they are often mixed up: important information disappears after a few seconds, while an ordinary confirmation like “Saved” stays on screen. The common kinds of message are these five:</p>\n        <ol>\n        <li><strong>Status Toast</strong>: Confirms the result of an action that the user only needs to know about, such as copying a link or moving a task. Just an icon and a short line of text, with no buttons; it disappears after 3 seconds.</li>\n        <li><strong>Action Toast</strong>: For actions that can be undone. Run the action right away without asking first; the Toast keeps an Undo button for 5 seconds, with a ring showing the time left, and after an undo it changes in place to “Task restored”.</li>\n        <li><strong>Progress Toast</strong>: For actions that take a while, such as uploading a file. It shows progress first, changes in place into the result when done, and offers a button to view it.</li>\n        <li><strong>Notification</strong>: For information from other people or the system that needs to be seen but not handled right away, such as a mention, a task coming due or a weekly report being generated. It appears in the top right and stays until the user handles or dismisses it; up to three stack up, and they expand into a list on hover.</li>\n        <li><strong>Dialogs and inline messages</strong>: Anything the user must deal with suits neither a Toast nor a Notification. Confirm actions that cannot be undone with a dialog before running them; failures that need handling stay where they occur until resolved, and form errors appear next to their fields.</li>\n        </ol>\n        <h2>Parameters</h2>\n        <dl class=\"params\">\n        <dt>Toast enter</dt><dd>500ms; cubic-bezier(.25, .1, .25, 1); down 10px; clears from an 8px blur</dd>\n        <dt>Sheen</dt><dd>Only when something is done: a status toast entering, progress turning into its result, Undo completed</dd>\n        <dt>Notification enter</dt><dd>Drops from 56px above; 560ms; cubic-bezier(.32, .72, 0, 1)</dd>\n        <dt>Notification stack</dt><dd>Each layer peeks out 12px; at most three layers</dd>\n        </dl>\n        <p>The included prompt first reads the product and decides for each message whether it should use a Toast, a Notification or neither, listing them in a table for you to decide; once you confirm, it can also restyle the Toast and Notification to match the demo.</p>"
    },
    "017-loading-states": {
      "summary": "Spinner, Skeleton, Progress and optimistic updates: which kind of wait each of these four loading states suits.",
      "notes": "<p>Waiting is unavoidable. How users are told they are waiting affects how they feel and whether their work flows smoothly; sometimes the result should be shown first and then corrected if needed. The common ones are these four:</p>\n        <ol>\n        <li><strong>Spinner</strong>: For a single action that finishes within a few seconds, such as refreshing or syncing. After the press, the button’s own icon spins in place while its label and width stay the same; even if the result comes back at once, it turns at least one full circle and stops on a whole turn, and a Toast reports the result when it ends.</li>\n        <li><strong>Skeleton</strong>: When the page structure is known, such as a feed, a list or a chart. The title and filters appear first, and after 300ms a skeleton shows at the real row height; as content arrives it replaces the skeleton row by row in place, so the page does not jump. Do not put a lone spinning icon in the middle of a blank page.</li>\n        <li><strong>Progress</strong>: For long tasks that can be counted, such as uploading, importing or running diagnostics. A notification card shows the count, a progress bar and the time left, and the page stays usable; when done, the card changes in place into the result and stays until the user handles it.</li>\n        <li><strong>Optimistic</strong>: For actions that will very likely succeed and are easy to roll back, such as checking off a task, liking or renaming. Show the result first and save in the background; if the save fails, the change goes back to where it was, with the reason explained and a retry offered. Strictly speaking this is a strategy rather than a pattern, and it is not used for payments, permanent deletion or content sent to other people.</li>\n        </ol>\n        <p>Also, waits under 300ms get no separate loading state; otherwise it vanishes as soon as it appears and looks like a flicker. Once shown, it stays for at least 500ms. Use only one loading state per wait.</p>\n        <h2>Parameters</h2>\n        <dl class=\"params\">\n        <dt>Threshold</dt><dd>Nothing under 300ms; once shown, at least 500ms</dd>\n        <dt>Button icon</dt><dd>Turns from the press; at least one turn (640ms); ends on a whole turn</dd>\n        <dt>Skeleton</dt><dd>After 300ms; the light band crosses every 1.2s; rows replace it 40ms apart, each fading in over 200ms</dd>\n        <dt>Progress</dt><dd>Shows after about 0.5s; the time left after 1s of data</dd>\n        <dt>Optimistic</dt><dd>Shown at once; when the save fails, the row shakes 6px twice over 360ms</dd>\n        </dl>\n        <p>The included prompt first finds every place in the product where users wait, decides which approach each one should use, and lists them in a table for you to decide; once you confirm, it makes the changes to match the demo.</p>"
    },
    "018-holo-card": {
      "summary": "A 3D holographic card that tilts and turns over, for cards that stand for status or ownership, such as member cards, tickets and badges.",
      "notes": "<p>When a real holographic card turns, color flows across its face. On screen, the pointer position stands in for the angle in your hand: a light spot that follows the pointer sets where the foil, glare and rim light up, and at rest the spot sits at the top left. The key points in building it:</p>\n        <ol>\n        <li><strong>Tilt</strong>: The card tilts toward the pointer, up to 12°, on a spring, and springs back slightly when the pointer leaves; when no one is using it, it keeps a slow 2–3° sway, as if held in a hand.</li>\n        <li><strong>Foil layer</strong>: Sits on top of the card’s base color and is brighter closer to the light spot. Text is printed above the foil layer, so it stays readable at any angle.</li>\n        <li><strong>Finishes</strong>: Six presets in all. Everyday products suit a quiet finish such as Pearl, or a tilt reduced to 6°; save Rainbow and Sparkle for moments worth celebrating, such as upgrading a membership or unlocking a rare achievement.</li>\n        <li><strong>Glare and rim</strong>: The glare spreads softly outward from the light spot; the rim is faint overall and only the part near the light spot is lit, so it comes and goes.</li>\n        <li><strong>Depth</strong>: The artwork on the card is spread across different depths, with offset = depth × sin(angle); as the card turns, the layers shift against each other, giving a real sense of three-dimensional space.</li>\n        <li><strong>Turning over</strong>: On click, the card turns 180° to its back on a spring, lifting slightly as it turns to show a 10px edge; the front content changes at the moment the card is edge-on, so the change cannot be seen.</li>\n        </ol>\n        <p>Also, put only one holographic card on a screen; when everything glows, nothing stands out. With “Reduce motion” on, the card does not tilt or sway, and turning over is not animated.</p>\n        <h2>Parameters</h2>\n        <dl class=\"params\">\n        <dt>Tilt</dt><dd>Up to 12° (6° for a quiet finish); spring stiffness 140, damping 15</dd>\n        <dt>Sway at rest</dt><dd>2 to 3°, slow; the light moves with it</dd>\n        <dt>Turning over</dt><dd>Spring stiffness 70, damping 11; lifts 40px; a 10px edge of 10 layers</dd>\n        <dt>Depth</dt><dd>Picture 90px behind, dial 50px, needle 12px in front</dd>\n        <dt>Rim</dt><dd>1.5px; lit near the light, fading out by 42%</dd>\n        <dt>Finishes</dt><dd>Prism, Rainbow, Pearl, Sparkle, Chrome, Etched</dd>\n        </dl>\n        <p>The included prompt first asks item by item which card to restyle, and about the finish, feel, interaction, depth and background, giving recommended values and a few presets for each; once you confirm, it builds the card with the project’s existing tech stack.</p>"
    },
    "019-scroll-cards": {
      "summary": "Five scroll-driven card interactions (stacked cards, card deck, pinned gallery, cover flow, image expand) for product sites and portfolios.",
      "notes": "<p>When scrolling a page, users expect elements to move vertically; these effects turn scrolling into sideways, rotating or irregular motion, which is why they feel fresh. They are all driven directly by the scroll position: stop halfway and the effect stops halfway; scroll back and the effect plays in reverse.</p>\n        <ol>\n        <li><strong>Stacked cards</strong>: Suits three to five parallel items that each take up a screen. Cards stack one on another as the page scrolls, each sticking 16px lower than the one before; each layer of covered cards shrinks by 0.05 and darkens by 12%, and the thin strips showing at the top are the content already seen.</li>\n        <li><strong>Card deck</strong>: Suits a small amount of content shown one item at a time. Every 420px of scrolling, the top card is flung to one side along an arc, alternating left and right and turning up to 16°; the cards below each move up one place.</li>\n        <li><strong>Pinned gallery</strong>: Suits a row of work wider than the screen. The page holds still for a while, and each 1px scrolled down moves the row 1px to the left, with no easing; a counter and a progress bar show how far the reader has got.</li>\n        <li><strong>Cover flow</strong>: Suits content of the same shape that is viewed one item at a time. Every 320px of scrolling, the next cover moves to the middle; the covers on either side shrink, turn up to 30° and darken step by step, drawing the eye to the middle.</li>\n        <li><strong>Image expand</strong>: Suits a main image that leads into the next chapter. The small image grows to fill the screen as the page scrolls, while scaling back from 1.2× to 1×; the title hides behind the mountain (cut out as a separate layer) and rises at a quarter of the speed, creating depth.</li>\n        </ol>\n        <p>Also, use each effect at most once on a page, with ordinary sections in between; do not change the scroll speed or force snapping, and change only transform, opacity and clip-path. With “Reduce motion” on, or when the viewport is shorter than 560px, every effect falls back to an ordinary section.</p>\n        <h2>Parameters</h2>\n        <dl class=\"params\">\n        <dt>Stacked cards</dt><dd>Sticky top 40px + i × 16px; scale 1 − k × 0.05, shade k × 0.12; k rises by 1 every 752px</dd>\n        <dt>Card deck</dt><dd>420px per card; x = side × t² × 1000px, rotate side × t × 16°; 18px and 0.05 per place below</dd>\n        <dt>Pinned gallery</dt><dd>Height 100vh + row overflow (1520px); 1px down = 1px sideways</dd>\n        <dt>Cover flow</dt><dd>320px per cover; 260px apart, 30° turn, scale down to 0.6, shade 0.15 per place</dd>\n        <dt>Image expand</dt><dd>Grows over 900px, holds 300px; frame 584 × 352 to full screen; picture 1.2× to 1×</dd>\n        </dl>\n        <p>The included prompt is for restyling an existing page: it first asks which sections to change, and about length, phones and short screens, reduced motion and the implementation, giving recommended values and a few presets for each; once you confirm, it builds them with the project’s existing tech stack.</p>"
    },
    "020-choice-controls": {
      "summary": "When to use a switch, checkbox, radio button, segmented control, select or dropdown menu.",
      "notes": "<p>These controls look alike and are often mixed up. For example, a settings page has a switch to flip, yet there is also a Save button below it, and the setting does not take effect once the user leaves the page. The differences are explained below in four pairs:</p>\n        <ol>\n        <li><strong>Switches and checkboxes</strong>: The difference is when the change takes effect. A switch takes effect as soon as it is flipped and suits auto-saving contexts such as settings pages, with no Save button next to it; checkboxes are submitted with a form and need a submit button. Represent turning one thing on and off with a single switch, not two radio buttons for “On” and “Off”.</li>\n        <li><strong>Selects and dropdown menus</strong>: A select holds values, and the chosen one shows in the box, such as a language; a dropdown menu holds actions, which run as soon as they are clicked while the button label stays the same, and is often used to tuck away buttons in a toolbar or at the top of a page. The most used action can be the main button, with an icon button beside it opening the rest, such as “Schedule send” and “Save as draft” next to “Send”.</li>\n        <li><strong>Segmented controls and selects</strong>: Both are for picking one. Use a segmented control for 2–5 short options, which can be taken in at a glance; when each option needs a line of explanation, use radio buttons stacked vertically instead. Use a select when there are more options, the text is long, or the options change (names, dates, items users add), so the interface does not jump; for up to hundreds (time zones, countries), add a search box at the top of the list and a clear message for when nothing matches.</li>\n        <li><strong>Radio buttons and checkboxes</strong>: Radio buttons suit single-choice questions where all options should be read, as in a survey; once a choice is made it cannot be cleared, so provide an option such as “Not sure yet”; when several can be picked, use checkboxes. The same goes inside a select: for a single choice, put a check mark after the chosen item instead of drawing a radio circle; for multiple choice, put a checkbox before each item.</li>\n        </ol>\n        <p>Also, the result of every control must be visible right away: turning on desktop notifications immediately shows a notification; after “Export data” runs from a dropdown menu, a Toast reports the result.</p>\n        <h2>Parameters</h2>\n        <dl class=\"params\">\n        <dt>Number of options</dt><dd>2–5 short options: segmented control; 2–5 that each need explaining: radio buttons; 6 or more: select; hundreds: select with search</dd>\n        <dt>Switch</dt><dd>40×24px, 8px corners; 18px thumb; 220ms, cubic-bezier(.32, .72, 0, 1)</dd>\n        <dt>Segmented control</dt><dd>36px tall, 4px padding; 28px thumb, 8px corners; 280ms</dd>\n        <dt>Option list</dt><dd>36px options; 14px corners; opens in 180ms, closes in 120ms</dd>\n        <dt>Radio buttons and checkboxes</dt><dd>18px; radio buttons round, checkboxes with 5px corners</dd>\n        </dl>\n        <p>The included prompt first finds every selection control in the product, decides whether each one is used correctly and what it should change to, and lists them in a table for you to decide; once you confirm, it changes them one by one according to these rules.</p>"
    },
    "021-ring-cards": {
      "summary": "A set of cards arranged in a ring: seen from inside, their edges pass through glass with a color fringe; seen from outside, they have depth of field; on the cards, a flowing fluid gradient.",
      "notes": "<p>A typical card carousel is just a row of cards sliding left and right. Lay the same row out on a ring and the cards gain distance: from inside, the side cards wrap around the viewer; from outside, the middle is sharp and the farther cards blur. The key points:</p>\n        <ol>\n        <li><strong>Two views</strong>: The cards sit along one arc. With a positive curvature the viewer is inside the ring, with a negative one outside. Change the curvature continuously when switching, and the whole row bends smoothly from one ring into the other.</li>\n        <li><strong>Inside</strong>: Suits content people browse at leisure, like portfolios and galleries. The viewer stands a little behind the ring’s center, perspective 860px; the side cards are closer and larger, and five cards fit on screen.</li>\n        <li><strong>Glass rim</strong>: A 160px band of glass at each side of the frame. The closer to the outer edge, the further toward the middle it samples, so the cards’ top and bottom edges flare out; red shifts more than blue, giving a soft color fringe.</li>\n        <li><strong>Outside and depth of field</strong>: Suits places where people look at one item at a time, like picking a cover. The ring is seen at eye level, perspective 1500px; the middle stays sharp, and the sides and the far side blur and fade. The blur is worked out per pixel, so nothing shimmers as the ring turns.</li>\n        <li><strong>Fluid gradient and turning over</strong>: Each card’s front is a fluid gradient of four colors that flows slowly around a circle and loops seamlessly. Switching to outside turns the cards over one after another, from the middle out, to show the picture on the back.</li>\n        </ol>\n        <p>Also, the cards have no shadow or reflection, which looks dirty on a white page; distance comes only from size, blur and fade. With “Reduce motion” on, the gradients stop flowing and the view switches at once.</p>\n        <h2>Parameters</h2>\n        <dl class=\"params\">\n        <dt>Cards</dt><dd>180 × 300px, 18px apart, 22 in all; ring radius about 693px</dd>\n        <dt>Inside</dt><dd>perspective 860px; glass rim 160px, offset 0.4 × its width, falloff exponent 2.4; dispersion 25%</dd>\n        <dt>Outside</dt><dd>perspective 1500px; blur starts 110px from the center, up to 14px; far side faded 50%</dd>\n        <dt>Fluid</dt><dd>4 colors, 3 layers of noise warped twice; flows 0.2 noise cells per second</dd>\n        <dt>Corners</dt><dd>continuous corners, superellipse(2), 32px</dd>\n        <dt>Switching</dt><dd>view 1100ms; turning over 1800ms, from the middle out</dd>\n        </dl>\n        <p>The included prompt first asks where it goes, what the cards hold, which view it opens in and who sees the settings panel; once confirmed, it builds the effect with the values in the video, plus a slider panel for tuning them live.</p>"
    }
  },
  "privacy": "<h1>Privacy Policy</h1>\n    <p class=\"policy-date\">Last updated and effective: November 18, 2026</p>\n    <p class=\"policy-lead\">Vibe Design Tips (vibedesign.tips, “the site”, “we” or “us”) is a free website of design tips, run by an independent developer. You can read everything on the site without signing in; signing in is needed only to save tips, highlight passages and download Skills. This policy explains what information we collect, how we use and keep it, and the rights you have. Please read it before signing in.</p>\n\n    <h2>1. Information we collect</h2>\n    <h3>1.1 When you sign in</h3>\n    <p>When you sign in with Google, GitHub or X, we ask only to read your public profile, and we store:</p>\n    <ul>\n      <li>Your account identifier: the user ID that Google, GitHub or X provides, used to recognise the same account;</li>\n      <li>Your display name and the address of your profile picture, and, if you sign in with GitHub or X, your username (@handle).</li>\n    </ul>\n    <p>This information is refreshed from your Google, GitHub or X profile each time you sign in.</p>\n    <h3>1.2 When you use the site’s features</h3>\n    <p>Once you are signed in, the following is stored with your account:</p>\n    <ul>\n      <li>the tips you save;</li>\n      <li>the passages you highlight;</li>\n      <li>records of your reader keys: a hash of each key and its last four characters, when it was created, when it was last used, and how many reads it made that day. We do not store the keys themselves.</li>\n    </ul>\n    <h3>1.3 Information we do not collect</h3>\n    <p>We do not read your email address, we do not keep access tokens from Google, GitHub or X (the GitHub token is revoked as soon as your profile has been read), and we never post anything on your behalf. X’s consent screen lists permission to read posts; X requires it together with access to your profile, and the site does not use it.</p>\n\n    <h2>2. How we use information</h2>\n    <p>We use the information above only to:</p>\n    <ul>\n      <li>recognise your account and keep you signed in;</li>\n      <li>provide saving, highlighting and reader keys, and keep them in sync across your devices;</li>\n      <li>show the first 999 accounts (early members) in the site’s public member list, by display name and profile picture and in the order they signed up, unless the member turns this off;</li>\n      <li>prevent abuse and protect the site and your account;</li>\n      <li>count visits so that we can improve the site’s content.</li>\n    </ul>\n    <p>We do not use your information for advertising or profiling.</p>\n\n    <h2>3. Cookies and local storage</h2>\n    <ul>\n      <li>Sign-in cookie: keeps you signed in. It expires after 30 days and is cleared when you sign out;</li>\n      <li>Sign-in marker cookie: contains no personal information and only tells the page that this device may be signed in, so that visitors who are not signed in make no account request;</li>\n      <li>Your browser’s local storage: keeps preferences such as theme, language and the sign-in method you used last. It stays on your device and is not sent to us.</li>\n    </ul>\n    <p>The site uses no advertising or cross-site tracking cookies.</p>\n\n    <h2>4. Third-party services</h2>\n    <p>We rely on the following services to run the site. Each handles information only as far as needed to provide its service:</p>\n    <ul>\n      <li>Cloudflare: hosts the site and its database and handles network requests;</li>\n      <li>Google, GitHub and X: verify your identity when you choose to sign in with them;</li>\n      <li>Umami: counts page views and feature use. It uses no cookies, records only totals, and does not identify anyone.</li>\n    </ul>\n    <p>We do not sell your information or give it to anyone else, except where the law requires it.</p>\n\n    <h2>5. Storage and retention</h2>\n    <ul>\n      <li>Your profile, saves, highlights and reader key records are kept in Cloudflare’s database until you delete your account;</li>\n      <li>Sign-in sessions expire after 30 days;</li>\n      <li>To prevent abuse, sign-ins and API requests are counted per IP address. The counts are used only for rate limits, lapse by the next midnight (UTC) at the latest, and are then deleted.</li>\n    </ul>\n    <p>Cloudflare operates its network in many regions, so your information may be processed outside the country or region where you live.</p>\n\n    <h2>6. Security</h2>\n    <p>All traffic to the site is encrypted with HTTPS. Sign-in session tokens and reader keys are stored only as hashes, so a leak of the database could not be used to sign in or to read. No online service can promise absolute security, however; if a security incident occurs, we will announce it promptly on the site and on X.</p>\n\n    <h2>7. Your rights</h2>\n    <ul>\n      <li>Access: once signed in, you can see your profile, saves and reader keys in the account menu;</li>\n      <li>Correction: your name and picture follow your Google, GitHub or X profile; change them there and sign in again;</li>\n      <li>Deleting content: you can remove saves, delete highlights or revoke reader keys at any time;</li>\n      <li>Member list: if you are an early member, you can leave your name and picture out of the public member list at any time with the switch in the list, which opens from the 999 nameplate in the account menu. Your place then shows only as taken;</li>\n      <li>Signing out: clears the sign-in on this device;</li>\n      <li>Deleting your account: send a direct message to <a href=\"https://x.com/kubai087\">@kubai087</a> on X with how you signed in and your display name. Deleting your account removes your profile, saves, highlights and reader keys together, and cannot be undone.</li>\n    </ul>\n\n    <h2>8. About the ways to sign in</h2>\n    <div class=\"policy-callout\">\n      <p>Signing in with Google, with GitHub and with X creates three separate accounts. Saves, highlights and reader keys belong to one account and do not carry over to the others; they cannot be merged at present.</p>\n      <p>We recommend signing in the same way each time. The sign-in dialog marks the method this device used last.</p>\n    </div>\n\n    <h2>9. Children</h2>\n    <p>The site is intended for a general audience and is not directed at children under 14. We do not knowingly collect personal information from children; if you believe a child has signed in without a parent’s or guardian’s consent, please contact us and we will delete the account.</p>\n\n    <h2>10. Changes to this policy</h2>\n    <p>We may update this policy as the site’s features change. When we do, we will update this page and the date above, and for significant changes we will also give notice in a prominent place on the site.</p>\n\n    <h2>11. Contact us</h2>\n    <p>If you have any questions about this policy or your personal information, please contact <a href=\"https://x.com/kubai087\">@kubai087</a> on X.</p>"
}
