[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6D2H5R5KRAE524C8QX0T7Q0":3,"skill-same:01M6D2H5R5KRAE524C8QX0T7Q0":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":49,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M6D2H5R5KRAE524C8QX0T7Q0","ui-structure",null,"Structure before styling: the blueprint written before any interface code (the screen's job, the regions its kind of page needs, their order and why, the layout skeleton in numbers, the components and their states), the anatomy and order of a homepage, a dashboard, a list, a detail page, settings, a form, sign-in, pricing, docs, an article and a checkout, and how to turn the blueprint into code (tokens, layout primitives, components, sections, page). Read first, before building or rebuilding any page or screen.","enowdev\u002Fenowxcli","enowdev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F179420349?v=4","01M6D1MVX2KC0X3Z9NESE7P22K","Enow Dev.","01M6D1MW1FMZGBDKWAJY4GQX81",67,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-structure\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"ui structure","ui","structure","list","article","anatomy","layout","tokens","Blueprint","styling","primitives","dashboard","read","before building","page","why","how","code","components","pricing","2026-11-10 10:12:30",false,"---\nname: ui-structure\ndescription: \"Structure before styling: the blueprint written before any interface code (the screen's job, the regions its kind of page needs, their order and why, the layout skeleton in numbers, the components and their states), the anatomy and order of a homepage, a dashboard, a list, a detail page, settings, a form, sign-in, pricing, docs, an article and a checkout, and how to turn the blueprint into code (tokens, layout primitives, components, sections, page). Read first, before building or rebuilding any page or screen.\"\n---\n\n# Structure before styling\n\nA page built from impressions looks like this: a header whose text touches\nthe window's edge, a strip of figures with no container, a chart in a card\nbeside a form in another card, a summary floating between them with no\nsurface at all, a table that bleeds to both edges, three left edges on one\npage, controls with no visible state, and a phone width where half of it is\ncut off. Every part was made; nothing was decided. Good interfaces are\ndecided in order: what the screen is for, what it must hold, in what order,\non what grid, from which components, and only then how it looks.\n\nThis skill is that order. `ui` sets the look, `ui-layout` and\n`ui-layout-grid` go deeper on space, `ui-anatomy` holds each component's\ncontract, and the `ui-page-*` and `ui-part-*` skills go deeper on one page\nor part.\n\n## 1. Write the blueprint first\n\nBefore the first file, write the blueprint in your message (and keep the\nlayout numbers in DESIGN.md so the next change uses them). Short, concrete,\nno adjectives:\n\n```\nSCREEN    Trading workspace (app screen, signed in, desktop first)\nJOB       See one market's price and act on it; know my positions.\nPRIMARY   Place an order. One primary button on the screen: \"Buy BTC\".\nREGIONS   (in order, with why)\n  1 App header: product, market switcher, theme (icon), account\n  2 Page header: instrument, price, 24h change, last update   - what am I looking at\n  3 Main: chart (2\u002F3) + order ticket (1\u002F3, sticky)             - see, then act, side by side\n  4 Positions summary: 4 KPIs                                  - result of acting\n  5 Tabs: Holdings | Orders | History (table)                  - detail, last\nSKELETON  container max 1440, gutters 16\u002F24\u002F32, 12 columns gap 24,\n          section gap 32 (app), card padding 20, header 56 sticky\n          \u003C1024: ticket moves under the chart; \u003C768: KPIs 2x2, table -> rows\nCOMPONENTS button (primary, secondary, ghost; 32\u002F40), segmented (range,\n          buy\u002Fsell), tabs, stat, field (number with unit), table, badge,\n          icon button (theme), empty state for no orders\nSTATES    loading (skeleton per region), empty (no holdings), error (quote failed),\n          disabled buy until quantity is valid\n```\n\nIf you cannot fill a line, you are not ready to write code for it. If a\nregion has no \"why\", it does not go on the page.\n\n## 2. Page anatomies\n\nThe regions each kind of page needs, top to bottom, and why that order:\neach region answers the question the reader has at that moment. Required\nregions are marked; the rest earn their place from real content (never a\nlogo strip without real customers, never a testimonial without a real\nperson, never a stat without a source).\n\n### Homepage \u002F landing page (product, SaaS, developer tool)\n\nThe reader arrives asking, in order: what is this, is it for me, does it\nwork, how does it work, what does it cost, what do I do now.\n\n1. **Header** (required): logo left; 3 to 6 links (Product, Pricing, Docs,\n   Blog); one secondary action (Sign in) and one primary (Start free \u002F\n   Install). Sticky or not, never two rows.\n2. **Hero** (required): headline that names the outcome (not the\n   category), one sentence that says how, the primary action and at most\n   one secondary, and the product itself (a real screenshot, a working\n   demo, the install command). Above the fold at 1440x900 and at 390x844.\n3. **Proof strip** (optional, real only): customer logos, a real number\n   with its source, or a well-known user quote.\n4. **Problem or outcomes**: 3 to 6 things the product changes, each with\n   what it replaces. Short.\n5. **How it works**: the real steps, as many as there are (2, 3, 5), with\n   the product shown at each.\n6. **Feature detail**: one section per major capability, text beside a\n   product visual, alternating sides only if the content is parallel.\n7. **Social proof** (real only): testimonials with name, role, company.\n8. **Pricing** (when self-serve): the plans that exist, the recommended\n   one marked only if it is truly the default.\n9. **FAQ** (real objections only: data, lock-in, price, setup time).\n10. **Final call to action**: the same primary action as the hero.\n11. **Footer** (required): link groups that exist, legal, contact.\n\nVariants: a **developer tool** puts the install command and a code sample\nin the hero and Docs in the header; a **local business** puts hours,\naddress, phone and booking above the fold; a **portfolio** leads with work,\nnot a bio; a **store** leads with products and search, not a slogan.\n\n### Dashboard \u002F application overview\n\nThe user arrives asking: is everything all right, what changed, what needs\nme, and where is the detail.\n\n1. **App shell** (required): navigation (a sidebar of 5 to 9 sections, or a\n   top bar for 3 to 5), the product, global search, notifications, account.\n   The shell never scrolls with the content.\n2. **Page header** (required): page title, the scope (date range, account,\n   environment), filters that apply to the whole page, the page's one\n   primary action on the right.\n3. **KPI row**: 3 to 5 stats that answer \"is it all right\": label, value,\n   change against a named period (\"+12% vs last week\"), and a link to the\n   detail. Not 8, not decorative.\n4. **Primary visualization**: the one chart that answers the main\n   question, full width or two thirds.\n5. **Secondary panels**: breakdowns that explain the primary (by channel,\n   by region), in a 2 or 3 column grid of equal-height cards.\n6. **Activity or worklist**: what needs the user (the latest items, the\n   queue), as a table or list with a \"View all\" link to the list page.\n\nFor a tool where the user acts on what they see (trading, editing,\nscheduling): the object and its state first, the action panel beside it\n(right, sticky) on desktop and below it on a phone, the consequences\n(positions, history) after.\n\n### List \u002F table page\n\nPage header (title, count, primary \"New\"), toolbar (search, filters,\nsort, view), active filter chips, the table or grid, pagination or \"load\nmore\", and an empty state for no results that offers clearing filters.\nBulk actions appear in place of the toolbar when rows are selected.\n\n### Detail page\n\nBreadcrumbs, the object's header (name, status badge, key facts, actions:\nprimary right, the rest in an overflow menu), tabs or sections for its\nparts (overview first), and a side column for metadata on desktop.\nDestructive actions last, behind confirmation.\n\n### Settings\n\nSections in a left list (or tabs) by what they configure, not by\ntechnical module: Profile, Account, Notifications, Billing, Team, Danger\nzone last. Each section is a form with its own save, or saves on change\nwith confirmation; a field's description says what it changes.\n\n### Form or wizard\n\nTitle and why; the fields in the order a person answers them (who, what,\nwhen, how much); one column; groups with headings; the primary action at\nthe end, aligned with the fields; errors inline at the field and summarized\nat the top on submit. A wizard shows the steps and where you are, keeps\nwhat was entered when you go back.\n\n### Sign-in \u002F sign-up\n\nThe product's mark, one heading, the fields (email first), the primary\nbutton full width of the form, the alternative (SSO buttons) above or\nbelow with a divider, the link to the other form, nothing else on the page.\n\n### Pricing\n\nThe plans that exist side by side (one column on a phone), each: name, who\nit is for, price with period, the primary action, what it includes (the\ndifferences first). A comparison table below for detail, then FAQ.\n\n### Docs\n\nHeader with search (Cmd+K), left navigation by section, the article with\nits title, a short lede, headings, and code blocks with copy; on the\nright, the page's contents; previous and next at the end.\n\n### Article \u002F blog post\n\nTitle, author and date, reading time, the lead image if it adds\nsomething, the body at 60 to 75 characters a line, headings, then author,\nrelated posts.\n\n### Checkout\n\nSteps (cart, details, payment, review), the form on the left, the order\nsummary on the right (sticky on desktop, collapsible on a phone), the total\nand the primary action visible without scrolling at the last step, trust\ndetails (secure payment, returns) near the button.\n\n## 3. The skeleton, in numbers\n\nDecide these once, write them into DESIGN.md, and build every section on\nthem. A page without them gets a different edge per section.\n\n- **Container**: one container component for every section's content.\n  Marketing: max 1200 to 1280px. App screens: fluid with a max of 1440 to\n  1600px. Text columns: max 65 to 75 characters.\n- **Gutters**: the space between the window's edge and any content: 16px\n  on a phone, 24px on a tablet, 32px on a desktop. Content never starts at\n  x=0. Full-bleed backgrounds may reach the edge; their content may not.\n- **One left edge**: every section's content starts on the container's\n  edge. Cards align to the grid, not to each other by eye.\n- **Grid**: 12 columns with 24px gaps (16 on a phone), or a fixed sidebar\n  plus a fluid main. Spans: 12, 8+4, 6+6, 4+4+4, 3x4.\n- **Spacing scale** (4px base): 4, 8, 12, 16, 24, 32, 48, 64, 96. Inside a\n  component 4 to 16; between components in a group 16 to 24; between\n  sections 32 to 48 in an app, 64 to 128 on a marketing page. Never two\n  different gaps for the same relation.\n- **Surfaces**: decide what is a card. In an app, every panel of the same\n  level is the same surface (all cards, or none with dividers). A region\n  without a surface beside regions with one reads as an accident.\n- **Heights**: controls share a height scale: 32 (compact), 40 (default),\n  48 (large). A button beside an input has the input's height.\n- **Type scale**: body 14 to 16px in an app, 16 to 18 on a marketing page;\n  labels and captions 12 to 13 at the smallest, never the main text.\n  Numbers that change use tabular figures.\n- **Breakpoints**: 640, 768, 1024, 1280. For each, say what changes: a side\n  panel moves below, a grid goes from 4 to 2 to 1, navigation collapses to\n  a menu, a table becomes rows or scrolls inside its own container. The\n  page itself never scrolls sideways.\n\n## 4. From the blueprint to code\n\nBuild in this order; each step uses only what the steps before it made.\n\n1. **Tokens**: colours (by role: background, surface, text, muted, border,\n   accent, success, warning, danger), the spacing scale, radii, type sizes,\n   control heights, shadows, both themes. CSS custom properties, or the\n   Tailwind theme mapped to them. No literal colour or size below this.\n2. **Layout primitives**: `Container` (max width + gutters), `Stack`\n   (vertical gap), `Cluster` (wrapping row with gap), `Grid` (columns and\n   spans), `Section` (vertical spacing between sections). Every page\n   composes these; no section invents its own padding.\n3. **Components** from `ui-anatomy`, each with all its variants, sizes and\n   states (hover, focus-visible, active, disabled, loading, selected,\n   error) and its keyboard behaviour. Variants through one function (`cva`\n   or a variant map), not booleans scattered across call sites.\n4. **Sections**: one component per region of the blueprint, fed by data\n   (arrays of items), not copy-pasted markup.\n5. **The page**: the regions in the blueprint's order, inside `Container`,\n   spaced by `Section`, nothing else.\n6. **States**: loading (a skeleton the shape of the content), empty (what\n   it is, why it is empty, the action), error (what failed, retry), per\n   region, not one spinner for the page.\n7. **Responsive**: the breakpoint changes from the skeleton, then check\n   360, 768 and 1440.\n\n```tsx\n\u002F\u002F Layout primitives: every section uses these and nothing else for space.\nexport function Container({ children, className }: Props) {\n  return \u003Cdiv className={cn(\"mx-auto w-full max-w-[1440px] px-4 md:px-6 lg:px-8\", className)}>{children}\u003C\u002Fdiv>;\n}\nexport function Section({ children }: Props) {\n  return \u003Csection className=\"py-8 lg:py-12\">{children}\u003C\u002Fsection>;\n}\n\n\u002F\u002F The page is the blueprint, in order.\nexport function TradingPage() {\n  return (\n    \u003C>\n      \u003CAppHeader \u002F>\n      \u003CContainer>\n        \u003CStack gap=\"8\">\n          \u003CInstrumentHeader \u002F>\n          \u003CGrid cols={12} gap=\"6\">\n            \u003CPanel className=\"col-span-12 lg:col-span-8\">\u003CPriceChart \u002F>\u003C\u002FPanel>\n            \u003CPanel className=\"col-span-12 lg:col-span-4 lg:sticky lg:top-20\">\u003COrderTicket \u002F>\u003C\u002FPanel>\n          \u003C\u002FGrid>\n          \u003CPositionsSummary \u002F>\n          \u003CPositionsTabs \u002F>\n        \u003C\u002FStack>\n      \u003C\u002FContainer>\n    \u003C\u002F>\n  );\n}\n```\n\n## 5. Check before you say it is done\n\nMeasure; do not eyeball. With `preview` on, run it and fix what it reports\nat 360, 768 and 1440. Then check these against the page:\n\n- Nothing touches the window's edge at any width; nothing is cut off or\n  scrolls sideways at 360.\n- Every section starts on one left edge; the same relation has the same\n  gap everywhere.\n- Panels of one level share one surface treatment.\n- One primary action per screen (or per card in a list of choices).\n- Every control shows hover, focus-visible, active, disabled and selected;\n  a segmented control or tab shows which is selected without colour alone.\n- A form's submit is disabled or explains itself until the input is valid;\n  inputs have labels, units and help where needed.\n- Text is 14px or more for reading, 12px only for captions; no more than\n  the token colours.\n- Loading, empty and error exist for every region that loads.\n- The blueprint's order is the page's order.\n\nWhen `preview` is off, say in your report that the page was not seen in a\nbrowser, and which of these you could only check in the code.\n","# Structure before styling\n\nA page built from impressions looks like this: a header whose text touches\nthe window's edge, a strip of figures with no container, a chart in a card\nbeside a form in another card, a summary floating between them with no\nsurface at all, a table that bleeds to both edges, three left edges on one\npage, controls with no visible state, and a phone width where half of it is\ncut off. Every part was made; nothing was decided. Good interfaces are\ndecided in order: what the screen is for, what it must hold, in what order,\non what grid, from which components, and only then how it looks.\n\nThis skill is that order. `ui` sets the look, `ui-layout` and\n`ui-layout-grid` go deeper on space, `ui-anatomy` holds each component's\ncontract, and the `ui-page-*` and `ui-part-*` skills go deeper on one page\nor part.\n\n## 1. Write the blueprint first\n\nBefore the first file, write the blueprint in your message (and keep the\nlayout numbers in DESIGN.md so the next change uses them). Short, concrete,\nno adjectives:\n\n```\nSCREEN    Trading workspace (app screen, signed in, desktop first)\nJOB       See one market's price and act on it; know my positions.\nPRIMARY   Place an order. One primary button on the screen: \"Buy BTC\".\nREGIONS   (in order, with why)\n  1 App header: product, market switcher, theme (icon), account\n  2 Page header: instrument, price, 24h change, last update   - what am I looking at\n  3 Main: chart (2\u002F3) + order ticket (1\u002F3, sticky)             - see, then act, side by side\n  4 Positions summary: 4 KPIs                                  - result of acting\n  5 Tabs: Holdings | Orders | History (table)                  - detail, last\nSKELETON  container max 1440, gutters 16\u002F24\u002F32, 12 columns gap 24,\n          section gap 32 (app), card padding 20, header 56 sticky\n          \u003C1024: ticket moves under the chart; \u003C768: KPIs 2x2, table -> rows\nCOMPONENTS button (primary, secondary, ghost; 32\u002F40), segmented (range,\n          buy\u002Fsell), tabs, stat, field (number with unit), table, badge,\n          icon button (theme), empty state for no orders\nSTATES    loading (skeleton per region), empty (no holdings), error (quote failed),\n          disabled buy until quantity is valid\n```\n\nIf you cannot fill a line, you are not ready to write code for it. If a\nregion has no \"why\", it does not go on the page.\n\n## 2. Page anatomies\n\nThe regions each kind of page needs, top to bottom, and why that order:\neach region answers the question the reader has at that moment. Required\nregions are marked; the rest earn their place from real content (never a\nlogo strip without real customers, never a testimonial without a real\nperson, never a stat without a source).\n\n### Homepage \u002F landing page (product, SaaS, developer tool)\n\nThe reader arrives asking, in order: what is this, is it for me, does it\nwork, how does it work, what does it cost, what do I do now.\n\n1. **Header** (required): logo left; 3 to 6 links (Product, Pricing, Docs,\n   Blog); one secondary action (Sign in) and one primary (Start free \u002F\n   Install). Sticky or not, never two rows.\n2. **Hero** (required): headline that names the outcome (not the\n   category), one sentence that says how, the primary action and at most\n   one secondary, and the product itself (a real screenshot, a working\n   demo, the install command). Above the fold at 1440x900 and at 390x844.\n3. **Proof strip** (optional, real only): customer logos, a real number\n   with its source, or a well-known user quote.\n4. **Problem or outcomes**: 3 to 6 things the product changes, each with\n   what it replaces. Short.\n5. **How it works**: the real steps, as many as there are (2, 3, 5), with\n   the product shown at each.\n6. **Feature detail**: one section per major capability, text beside a\n   product visual, alternating sides only if the content is parallel.\n7. **Social proof** (real only): testimonials with name, role, company.\n8. **Pricing** (when self-serve): the plans that exist, the recommended\n   one marked only if it is truly the default.\n9. **FAQ** (real objections only: data, lock-in, price, setup time).\n10. **Final call to action**: the same primary action as the hero.\n11. **Footer** (required): link groups that exist, legal, contact.\n\nVariants: a **developer tool** puts the install command and a code sample\nin the hero and Docs in the header; a **local business** puts hours,\naddress, phone and booking above the fold; a **portfolio** leads with work,\nnot a bio; a **store** leads with products and search, not a slogan.\n\n### Dashboard \u002F application overview\n\nThe user arrives asking: is everything all right, what changed, what needs\nme, and where is the detail.\n\n1. **App shell** (required): navigation (a sidebar of 5 to 9 sections, or a\n   top bar for 3 to 5), the product, global search, notifications, account.\n   The shell never scrolls with the content.\n2. **Page header** (required): page title, the scope (date range, account,\n   environment), filters that apply to the whole page, the page's one\n   primary action on the right.\n3. **KPI row**: 3 to 5 stats that answer \"is it all right\": label, value,\n   change against a named period (\"+12% vs last week\"), and a link to the\n   detail. Not 8, not decorative.\n4. **Primary visualization**: the one chart that answers the main\n   question, full width or two thirds.\n5. **Secondary panels**: breakdowns that explain the primary (by channel,\n   by region), in a 2 or 3 column grid of equal-height cards.\n6. **Activity or worklist**: what needs the user (the latest items, the\n   queue), as a table or list with a \"View all\" link to the list page.\n\nFor a tool where the user acts on what they see (trading, editing,\nscheduling): the object and its state first, the action panel beside it\n(right, sticky) on desktop and below it on a phone, the consequences\n(positions, history) after.\n\n### List \u002F table page\n\nPage header (title, count, primary \"New\"), toolbar (search, filters,\nsort, view), active filter chips, the table or grid, pagination or \"load\nmore\", and an empty state for no results that offers clearing filters.\nBulk actions appear in place of the toolbar when rows are selected.\n\n### Detail page\n\nBreadcrumbs, the object's header (name, status badge, key facts, actions:\nprimary right, the rest in an overflow menu), tabs or sections for its\nparts (overview first), and a side column for metadata on desktop.\nDestructive actions last, behind confirmation.\n\n### Settings\n\nSections in a left list (or tabs) by what they configure, not by\ntechnical module: Profile, Account, Notifications, Billing, Team, Danger\nzone last. Each section is a form with its own save, or saves on change\nwith confirmation; a field's description says what it changes.\n\n### Form or wizard\n\nTitle and why; the fields in the order a person answers them (who, what,\nwhen, how much); one column; groups with headings; the primary action at\nthe end, aligned with the fields; errors inline at the field and summarized\nat the top on submit. A wizard shows the steps and where you are, keeps\nwhat was entered when you go back.\n\n### Sign-in \u002F sign-up\n\nThe product's mark, one heading, the fields (email first), the primary\nbutton full width of the form, the alternative (SSO buttons) above or\nbelow with a divider, the link to the other form, nothing else on the page.\n\n### Pricing\n\nThe plans that exist side by side (one column on a phone), each: name, who\nit is for, price with period, the primary action, what it includes (the\ndifferences first). A comparison table below for detail, then FAQ.\n\n### Docs\n\nHeader with search (Cmd+K), left navigation by section, the article with\nits title, a short lede, headings, and code blocks with copy; on the\nright, the page's contents; previous and next at the end.\n\n### Article \u002F blog post\n\nTitle, author and date, reading time, the lead image if it adds\nsomething, the body at 60 to 75 characters a line, headings, then author,\nrelated posts.\n\n### Checkout\n\nSteps (cart, details, payment, review), the form on the left, the order\nsummary on the right (sticky on desktop, collapsible on a phone), the total\nand the primary action visible without scrolling at the last step, trust\ndetails (secure payment, returns) near the button.\n\n## 3. The skeleton, in numbers\n\nDecide these once, write them into DESIGN.md, and build every section on\nthem. A page without them gets a different edge per section.\n\n- **Container**: one container component for every section's content.\n  Marketing: max 1200 to 1280px. App screens: fluid with a max of 1440 to\n  1600px. Text columns: max 65 to 75 characters.\n- **Gutters**: the space between the window's edge and any content: 16px\n  on a phone, 24px on a tablet, 32px on a desktop. Content never starts at\n  x=0. Full-bleed backgrounds may reach the edge; their content may not.\n- **One left edge**: every section's content starts on the container's\n  edge. Cards align to the grid, not to each other by eye.\n- **Grid**: 12 columns with 24px gaps (16 on a phone), or a fixed sidebar\n  plus a fluid main. Spans: 12, 8+4, 6+6, 4+4+4, 3x4.\n- **Spacing scale** (4px base): 4, 8, 12, 16, 24, 32, 48, 64, 96. Inside a\n  component 4 to 16; between components in a group 16 to 24; between\n  sections 32 to 48 in an app, 64 to 128 on a marketing page. Never two\n  different gaps for the same relation.\n- **Surfaces**: decide what is a card. In an app, every panel of the same\n  level is the same surface (all cards, or none with dividers). A region\n  without a surface beside regions with one reads as an accident.\n- **Heights**: controls share a height scale: 32 (compact), 40 (default),\n  48 (large). A button beside an input has the input's height.\n- **Type scale**: body 14 to 16px in an app, 16 to 18 on a marketing page;\n  labels and captions 12 to 13 at the smallest, never the main text.\n  Numbers that change use tabular figures.\n- **Breakpoints**: 640, 768, 1024, 1280. For each, say what changes: a side\n  panel moves below, a grid goes from 4 to 2 to 1, navigation collapses to\n  a menu, a table becomes rows or scrolls inside its own container. The\n  page itself never scrolls sideways.\n\n## 4. From the blueprint to code\n\nBuild in this order; each step uses only what the steps before it made.\n\n1. **Tokens**: colours (by role: background, surface, text, muted, border,\n   accent, success, warning, danger), the spacing scale, radii, type sizes,\n   control heights, shadows, both themes. CSS custom properties, or the\n   Tailwind theme mapped to them. No literal colour or size below this.\n2. **Layout primitives**: `Container` (max width + gutters), `Stack`\n   (vertical gap), `Cluster` (wrapping row with gap), `Grid` (columns and\n   spans), `Section` (vertical spacing between sections). Every page\n   composes these; no section invents its own padding.\n3. **Components** from `ui-anatomy`, each with all its variants, sizes and\n   states (hover, focus-visible, active, disabled, loading, selected,\n   error) and its keyboard behaviour. Variants through one function (`cva`\n   or a variant map), not booleans scattered across call sites.\n4. **Sections**: one component per region of the blueprint, fed by data\n   (arrays of items), not copy-pasted markup.\n5. **The page**: the regions in the blueprint's order, inside `Container`,\n   spaced by `Section`, nothing else.\n6. **States**: loading (a skeleton the shape of the content), empty (what\n   it is, why it is empty, the action), error (what failed, retry), per\n   region, not one spinner for the page.\n7. **Responsive**: the breakpoint changes from the skeleton, then check\n   360, 768 and 1440.\n\n```tsx\n\u002F\u002F Layout primitives: every section uses these and nothing else for space.\nexport function Container({ children, className }: Props) {\n  return \u003Cdiv className={cn(\"mx-auto w-full max-w-[1440px] px-4 md:px-6 lg:px-8\", className)}>{children}\u003C\u002Fdiv>;\n}\nexport function Section({ children }: Props) {\n  return \u003Csection className=\"py-8 lg:py-12\">{children}\u003C\u002Fsection>;\n}\n\n\u002F\u002F The page is the blueprint, in order.\nexport function TradingPage() {\n  return (\n    \u003C>\n      \u003CAppHeader \u002F>\n      \u003CContainer>\n        \u003CStack gap=\"8\">\n          \u003CInstrumentHeader \u002F>\n          \u003CGrid cols={12} gap=\"6\">\n            \u003CPanel className=\"col-span-12 lg:col-span-8\">\u003CPriceChart \u002F>\u003C\u002FPanel>\n            \u003CPanel className=\"col-span-12 lg:col-span-4 lg:sticky lg:top-20\">\u003COrderTicket \u002F>\u003C\u002FPanel>\n          \u003C\u002FGrid>\n          \u003CPositionsSummary \u002F>\n          \u003CPositionsTabs \u002F>\n        \u003C\u002FStack>\n      \u003C\u002FContainer>\n    \u003C\u002F>\n  );\n}\n```\n\n## 5. Check before you say it is done\n\nMeasure; do not eyeball. With `preview` on, run it and fix what it reports\nat 360, 768 and 1440. Then check these against the page:\n\n- Nothing touches the window's edge at any width; nothing is cut off or\n  scrolls sideways at 360.\n- Every section starts on one left edge; the same relation has the same\n  gap everywhere.\n- Panels of one level share one surface treatment.\n- One primary action per screen (or per card in a list of choices).\n- Every control shows hover, focus-visible, active, disabled and selected;\n  a segmented control or tab shows which is selected without colour alone.\n- A form's submit is disabled or explains itself until the input is valid;\n  inputs have labels, units and help where needed.\n- Text is 14px or more for reading, 12px only for captions; no more than\n  the token colours.\n- Loading, empty and error exist for every region that loads.\n- The blueprint's order is the page's order.\n\nWhen `preview` is off, say in your report that the page was not seen in a\nbrowser, and which of these you could only check in the code.\n",{"name":5,"description":7},"main","38293fe1b096e6bf3646c7344c38786ed688f464","crates\u002Fenowx-core\u002Fskills\u002Fui-structure",21,"https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli","https:\u002F\u002Fenowx.ai","https:\u002F\u002Fgithub.com\u002Fenowdev","Pretending to be a Developer","2026-10-06 02:05:35",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add enowdev\u002Fenowxcli --skill ui-structure",{"tool":59,"command":60},"bunx","bunx skills add enowdev\u002Fenowxcli --skill ui-structure",{"tool":62,"command":63},"pnpm","pnpm dlx skills add enowdev\u002Fenowxcli --skill ui-structure","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-structure\u002FSKILL.md",true,[],[68,79,95,104,123,146],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":39},"01M6D2HQYSQD9N7MTNDT4A7CBM","demo-skill","Project-scope demo skill for tests.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fworkspace\u002F.agents\u002Fskills\u002Fdemo-skill\u002FSKILL.md",[],[75,76,77,78,31],"demo","demo skill","tests","project",{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":39},"01M6D2HM0GCPM0TM2HPG9HHR2R","writing","Writing words people read: the specific thing instead of claims, words to drop, sentences, interface copy (buttons, labels, errors, empty states, confirmations), page copy, notifications and emails, alt text and link text, numbers and dates, words that translate well, documentation and voice. Read before writing a page's copy, an interface's text or a document.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fwriting\u002FSKILL.md",[],[81,33,86,87,88,89,31,90,91,92,93,94],"emails","empty","drop","document","text","voice","notifications","documentation","translate",{"skillNo":96,"name":20,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":39},"01M6D2HG07YS49NM196Q0R3AZ8","Designing or restyling an interface: direction, layout, type, colour, icons, components, states, responsive behaviour. Read before building a page, a screen or a set of components.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui\u002FSKILL.md",[],[20,101,37,102,33,32,25,103,31],"icons","SET","responsive",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":39},"01M6D2HB59HZHWG1RYZDV4SJ91","ui-themes","Light and dark themes, and colour that holds in both: tokens with a value per theme, and what each kind of content needs to stay visible (icons, SVG drawings and line art, logos, photos, screenshots, charts, code, maps, borders, shadows, focus, form controls), switching without a flash, and checking both. Read before building a second theme or a theme toggle, and before any drawing, logo or chart on a page that has two themes.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-themes\u002FSKILL.md",[],[111,20,112,113,26,114,115,116,117,118,31,32,36,119,120,121,101,122,33],"ui themes","focus","switching","drawing","flash","photos","maps","Art","logo","Charts","content","screenshots",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":39},"01M6D2H0ZZBJG77MBGPZHA6MWD","ui-stack-vue","Building interfaces in Vue 3 and Nuxt: project layout, script setup with typed defineProps, defineEmits and defineModel, attribute fallthrough, slots and scoped slots, template refs, ref, reactive and computed, watch versus watchEffect, composables and VueUse, provide and inject, Pinia, keyed v-for, transitions, Nuxt 4 (app directory, pages, layouts, useFetch and useAsyncData keys, $fetch in handlers, server routes, runtime config, useSeoMeta, NuxtImg, middleware), VeeValidate forms, Reka UI and Nuxt UI, testing, vue-tsc, and the traps. Read when the project uses Vue or Nuxt.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-stack-vue\u002FSKILL.md",[],[130,131,20,132,133,134,135,136,25,137,138,139,78,140,141,142,31,143,144,145],"stack","ui stack vue","vue","config","directory","testing","server","pages","watch","runtime","transitions","forms","fetch","pinia","nuxt","template",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":39},"01M6D2GW10WYJMQ5MP0YWWX00Y","ui-stack-tailwind","Building with Tailwind CSS v4 (and v3) without the Tailwind-default look: setup per framework (Vite, Next.js, Astro, Laravel, monorepos), @theme tokens in OKLCH named by role, dark mode with @custom-variant, the layout system as tokens (one container, section spacing, a type scale, stretched rows) and how to fix each preview layout line with classes, state, aria, data, group, peer, has, motion and container-query variants, component recipes (button, field, card, navigation, table, dialog) with every state, motion with --animate-* and starting:, cn with tailwind-merge, cva, class order, @utility, arbitrary values, typography, v3 to v4 migration, and the generated look. Read when the project uses Tailwind.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-stack-tailwind\u002FSKILL.md",[],[153,130,154,20,155,25,78,156,157,158,159,160,161,162,163,35,164,165,166,167],"ui stack tailwind","Tailwind","default","preview","next","query","aria","fix","generated","dialog","laravel","astro","merge","component","css"]