taskquoin 0.0.0-stage → 2026.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/LICENSE +55 -0
  3. package/README.md +227 -2
  4. package/SECURITY.md +26 -0
  5. package/adapters/git/src/git.js +250 -0
  6. package/adapters/git/src/index.js +1 -0
  7. package/adapters/hooks-claude/src/canonical.js +45 -0
  8. package/adapters/hooks-claude/src/index.js +2 -0
  9. package/adapters/hooks-claude/src/main.js +58 -0
  10. package/adapters/hooks-claude/src/payload.js +40 -0
  11. package/adapters/host-probe/src/index.js +2 -0
  12. package/adapters/host-probe/src/ollama.js +18 -0
  13. package/adapters/host-probe/src/probe.js +107 -0
  14. package/adapters/local-tool/src/fingerprint.js +56 -0
  15. package/adapters/local-tool/src/index.js +4 -0
  16. package/adapters/local-tool/src/local-tool.js +22 -0
  17. package/adapters/local-tool/src/sandboxed.js +105 -0
  18. package/adapters/local-tool/src/scan.js +52 -0
  19. package/adapters/memory-claude-mem/src/claude-mem.js +115 -0
  20. package/adapters/memory-claude-mem/src/index.js +1 -0
  21. package/adapters/process-runner/src/index.js +1 -0
  22. package/adapters/process-runner/src/runner.js +123 -0
  23. package/adapters/runtime-api/src/capabilities.json +116 -0
  24. package/adapters/runtime-api/src/executor.js +131 -0
  25. package/adapters/runtime-api/src/index.js +1 -0
  26. package/adapters/runtime-claude/src/capabilities.json +375 -0
  27. package/adapters/runtime-claude/src/command.js +34 -0
  28. package/adapters/runtime-claude/src/executor.js +162 -0
  29. package/adapters/runtime-claude/src/index.js +4 -0
  30. package/adapters/runtime-claude/src/permissions.js +76 -0
  31. package/adapters/runtime-claude/src/stream.js +60 -0
  32. package/adapters/runtime-codex/src/capabilities.json +192 -0
  33. package/adapters/runtime-codex/src/command.js +36 -0
  34. package/adapters/runtime-codex/src/executor.js +83 -0
  35. package/adapters/runtime-codex/src/index.js +4 -0
  36. package/adapters/runtime-codex/src/scratch.js +32 -0
  37. package/adapters/runtime-codex/src/stream.js +39 -0
  38. package/adapters/runtime-opencode/src/capabilities.json +149 -0
  39. package/adapters/runtime-opencode/src/config.js +33 -0
  40. package/adapters/runtime-opencode/src/credentials.js +130 -0
  41. package/adapters/runtime-opencode/src/executor.js +127 -0
  42. package/adapters/runtime-opencode/src/facts.js +43 -0
  43. package/adapters/runtime-opencode/src/hosts.js +16 -0
  44. package/adapters/runtime-opencode/src/hosts.json +3 -0
  45. package/adapters/runtime-opencode/src/index.js +6 -0
  46. package/adapters/runtime-opencode/src/mounts.js +58 -0
  47. package/adapters/runtime-opencode/src/stream.js +63 -0
  48. package/adapters/skill-store/src/index.js +1 -0
  49. package/adapters/skill-store/src/skill-store.js +162 -0
  50. package/adapters/store-fs/src/index.js +2 -0
  51. package/adapters/store-fs/src/store.js +201 -0
  52. package/adapters/store-fs/src/trusted-dir.js +37 -0
  53. package/apps/cli/src/console.js +432 -0
  54. package/apps/cli/src/dashboard-approve.js +259 -0
  55. package/apps/cli/src/dashboard-data.js +424 -0
  56. package/apps/cli/src/dashboard.js +500 -0
  57. package/apps/cli/src/history.js +35 -0
  58. package/apps/cli/src/home.js +18 -0
  59. package/apps/cli/src/i18n/en.js +527 -0
  60. package/apps/cli/src/i18n/index.js +90 -0
  61. package/apps/cli/src/i18n/languages.js +25 -0
  62. package/apps/cli/src/i18n/locales/ar.json +526 -0
  63. package/apps/cli/src/i18n/locales/de.json +505 -0
  64. package/apps/cli/src/i18n/locales/es.json +505 -0
  65. package/apps/cli/src/i18n/locales/fa.json +505 -0
  66. package/apps/cli/src/i18n/locales/fr.json +505 -0
  67. package/apps/cli/src/i18n/locales/he.json +505 -0
  68. package/apps/cli/src/i18n/locales/hi.json +505 -0
  69. package/apps/cli/src/i18n/locales/id.json +491 -0
  70. package/apps/cli/src/i18n/locales/it.json +505 -0
  71. package/apps/cli/src/i18n/locales/ja.json +491 -0
  72. package/apps/cli/src/i18n/locales/ko.json +491 -0
  73. package/apps/cli/src/i18n/locales/nl.json +505 -0
  74. package/apps/cli/src/i18n/locales/pl.json +512 -0
  75. package/apps/cli/src/i18n/locales/pt-BR.json +505 -0
  76. package/apps/cli/src/i18n/locales/ru.json +512 -0
  77. package/apps/cli/src/i18n/locales/th.json +491 -0
  78. package/apps/cli/src/i18n/locales/tr.json +505 -0
  79. package/apps/cli/src/i18n/locales/uk.json +512 -0
  80. package/apps/cli/src/i18n/locales/vi.json +491 -0
  81. package/apps/cli/src/i18n/locales/zh-CN.json +491 -0
  82. package/apps/cli/src/i18n/locales/zh-TW.json +491 -0
  83. package/apps/cli/src/i18n/width.js +40 -0
  84. package/apps/cli/src/layout.js +18 -0
  85. package/apps/cli/src/main.js +830 -0
  86. package/apps/cli/src/preferences.js +46 -0
  87. package/apps/cli/src/runtime-notices.js +41 -0
  88. package/apps/cli/src/safe-text.js +3 -0
  89. package/apps/cli/src/shortcut.js +82 -0
  90. package/apps/cli/src/skills-cli.js +112 -0
  91. package/apps/cli/src/tui/caps.js +31 -0
  92. package/apps/cli/src/tui/components/agent-list.js +58 -0
  93. package/apps/cli/src/tui/components/approval-center.js +145 -0
  94. package/apps/cli/src/tui/components/approval.js +95 -0
  95. package/apps/cli/src/tui/components/dashboard-frame.js +293 -0
  96. package/apps/cli/src/tui/components/diff-viewer.js +549 -0
  97. package/apps/cli/src/tui/components/event-viewer.js +46 -0
  98. package/apps/cli/src/tui/components/help-panel.js +59 -0
  99. package/apps/cli/src/tui/components/home.js +185 -0
  100. package/apps/cli/src/tui/components/logo.js +67 -0
  101. package/apps/cli/src/tui/components/panel.js +70 -0
  102. package/apps/cli/src/tui/components/status-bar.js +96 -0
  103. package/apps/cli/src/tui/components/timeline.js +120 -0
  104. package/apps/cli/src/tui/keys.js +139 -0
  105. package/apps/cli/src/tui/neutral.js +68 -0
  106. package/apps/cli/src/tui/screen.js +111 -0
  107. package/apps/cli/src/tui/text.js +165 -0
  108. package/apps/cli/src/tui/tokens.js +89 -0
  109. package/apps/cli/src/tui/view.js +64 -0
  110. package/apps/cli/src/upgrade-check.js +86 -0
  111. package/apps/cli/src/upgrade-cli.js +168 -0
  112. package/apps/cli/src/workflow-cli.js +674 -0
  113. package/package.json +29 -4
  114. package/packages/application/src/index.js +8 -0
  115. package/packages/application/src/lib/digest.js +7 -0
  116. package/packages/application/src/ports/memory.js +1 -0
  117. package/packages/application/src/ports/runtime-executor.js +1 -0
  118. package/packages/application/src/projection/run-view.js +194 -0
  119. package/packages/application/src/projection/squad-view.js +33 -0
  120. package/packages/application/src/use-cases/prepare-run.js +68 -0
  121. package/packages/application/src/workflow/feature-governed.js +420 -0
  122. package/packages/application/src/workflow/gate-signals.js +40 -0
  123. package/packages/application/src/workflow/prompts.js +81 -0
  124. package/packages/config/src/config.js +372 -0
  125. package/packages/config/src/index.js +1 -0
  126. package/packages/domain/src/capabilities.js +13 -0
  127. package/packages/domain/src/capability-matrix.js +63 -0
  128. package/packages/domain/src/enforcement.js +95 -0
  129. package/packages/domain/src/index.js +4 -0
  130. package/packages/domain/src/policy.js +32 -0
  131. package/packages/rules/src/glob.js +47 -0
  132. package/packages/rules/src/index.js +5 -0
  133. package/packages/rules/src/inherit.js +19 -0
  134. package/packages/rules/src/lists.js +41 -0
  135. package/packages/rules/src/rules.js +79 -0
  136. package/packages/rules/src/shell.js +83 -0
  137. package/packages/skills/src/index.js +1 -0
  138. package/packages/skills/src/skills.js +108 -0
  139. package/skills/code-review/SKILL.md +51 -0
  140. package/skills/egm-design/LICENSE +202 -0
  141. package/skills/egm-design/SKILL.md +68 -0
  142. package/skills/egm-design/references/feature-spec-standard.md +39 -0
  143. package/skills/egm-implementation-readiness/LICENSE +202 -0
  144. package/skills/egm-implementation-readiness/SKILL.md +67 -0
  145. package/skills/egm-implementation-readiness/references/implementation-readiness-standard.md +37 -0
  146. package/skills/first-party.lock.json +10 -0
  147. package/skills/planning-contract/SKILL.md +51 -0
  148. package/skills/ponytail/LICENSE +21 -0
  149. package/skills/ponytail/SKILL.md +56 -0
  150. package/skills/security-review/SKILL.md +58 -0
  151. package/skills/tdd/SKILL.md +52 -0
  152. package/skills/unslop/LICENSE +396 -0
  153. package/skills/unslop/SKILL.md +239 -0
  154. package/skills/unslop/references/cjk.md +34 -0
  155. package/skills/unslop/references/effects.md +113 -0
  156. package/skills/unslop/references/refs.md +17 -0
  157. package/skills/unslop/references/rtl.md +111 -0
  158. package/skills/unslop/references/signs.md +122 -0
  159. package/skills/unslop/references/tokens.md +139 -0
  160. package/skills/unslop/references/visuals.md +84 -0
@@ -0,0 +1,239 @@
1
+ ---
2
+ name: unslop
3
+ description: Turns vibecoded, AI-looking UI into a designed interface with its own character. Finds a direction from the product itself, then fixes spacing, color, icons, copy, type, layout, details, visuals and motion in that order, and can generate a real hero visual with an image tool when one is available. Use when the user asks to unslop, polish, clean up or redesign a screen so it stops looking AI-generated, or when a UI shows the usual tells like purple gradients, glows, gradient text, emoji labels, "New ✨" badges, glossy blobs, uppercase tracked labels, pulsing elements or uneven spacing. Works on React, Tailwind, HTML and CSS, for dashboards, apps and landing pages.
4
+ license: CC-BY-4.0
5
+ metadata:
6
+ author: Damir Sokolovsky
7
+ x: https://x.com/heydamir
8
+ site: https://heydamir.design/unslop
9
+ upstream: "heydamir/unslop@8091f22aaf303843caf45528541f746b4767e3de"
10
+ changes: "Taskquoin copy: SKILL.md body and references/*.md verbatim; metadata.upstream and metadata.changes added; scripts/, references/refs/*.webp and agents/openai.yaml not shipped (Taskquoin never runs skill scripts and gives agents text only)"
11
+ ---
12
+
13
+ # Unslop
14
+
15
+ unslop was created by Damir Sokolovsky ([@heydamir](https://x.com/heydamir)), who started the Unslopping series on X. It is licensed under CC BY 4.0, so keep this credit in any copy or adaptation.
16
+
17
+ Vibecoded UI fails in the same predictable ways. Every surface glows, every label has an emoji, spacing is whatever the model typed that day, and the copy shouts. Unslopping fixes the craft and keeps the product. The features, content and order of sections stay. What changes is that every size, color, word and image becomes deliberate.
18
+
19
+ Removing slop is only half the job. A screen that is clean but could belong to any product is the next template. Every run ends with a screen that only this product could have.
20
+
21
+ The difference between slop and craft is where the richness goes. Slop spreads color and effects over the chrome, the backgrounds, buttons, borders and labels. Craft keeps the chrome quiet and puts the richness into one or two moments of content that people remember, like a rendered object, a beautiful chart or an image from the product's world.
22
+
23
+ Work like a designer doing a redline pass, one layer at a time, across the whole screen.
24
+
25
+ ## What good looks like
26
+
27
+ - **One bright element.** Each screen has one polished thing that carries the color and the craft, a rendered object, a painted scene or a rich chart. Everything around it is quiet, so it reads instantly.
28
+ - **Quiet chrome.** Navigation, buttons and text use the tinted neutrals and one accent. Nothing glows, nothing competes with the bright element.
29
+ - **A clear idea.** You can say in one sentence what the visual shows and why it belongs to this product.
30
+ - **Text on calm space.** The headline sits on a part of the image or layout that was left empty for it, short and specific, with one primary and one secondary action and nothing stacked under them.
31
+ - **Real product, real material.** Previews look like the real app with plausible data, and objects look like real things with weight, light and shadow.
32
+
33
+ Which visual styles tend to work, and which fail, is in [references/visuals.md](references/visuals.md). Finished examples to learn from are in [references/refs.md](references/refs.md), and code treatments like drawing an image in glyphs are in [references/effects.md](references/effects.md).
34
+
35
+ ## Run it
36
+
37
+ 1. **Look at the screen.** Find the files that render it. If you can run the app or open the file in a browser and take a screenshot, do it, so you judge what people see and not only the code.
38
+ - Only a link to a live site, no code? Save the page with `node <skill folder>/scripts/snapshot.mjs <url> unslop/original.html` and work on a copy of that file. A local HTML file works in place of the URL. Add `--dark` or `--light` to match the theme the user sees. It also saves `original.live.png`, a screenshot of the live page, so render the saved copy and compare the two before you start. The script scrolls through the page first, so lazy-loaded sections and images are captured. Animated backgrounds drawn by scripts do not survive, so describe them in the audit from the live page.
39
+ - Only a screenshot? Rebuild the screen as one static HTML file first, matching it closely, and treat that as the original.
40
+ - In both cases the result is a redesigned page in code that the user can hand to whoever owns the real site, so say that in the report.
41
+ 2. **Audit.** Go through [references/signs.md](references/signs.md) and list every sign you find, one line each with where it lives. If the screen is in Arabic, Persian, Urdu or Hebrew, or should be, read [references/rtl.md](references/rtl.md) first. Its rules win where they differ from the passes. If it is in Korean, Japanese or Chinese, read [references/cjk.md](references/cjk.md) first, the same way.
42
+ 3. **Decide how much to change.** Read the audit honestly before planning anything.
43
+ - **Heavy slop**, many signs across color, type, icons and copy. Run the full process below.
44
+ - **Light slop**, a screen that is mostly designed with a few signs left. Polish mode. Fix only what the audit found, take the direction from the existing brand instead of inventing a new one, and keep the palette, type, layout and visual. Bigger ideas, like a moment that is missing or a scene for the hero, go into the report as suggestions, not changes.
45
+ - **No slop.** Say so plainly and suggest two or three small refinements at most, with exact values. Apply them only if the user agrees, and stop there. Never change a good screen just to make it different.
46
+ 4. **Set the direction and stop.** Write the five lines described below. Show the audit and the direction to the user and wait for their answer before editing, since changing the direction later means redoing everything. If you have a tool for asking the user questions, ask through it, otherwise ask in plain text and stop. Skip the wait only when the user already said to just do it.
47
+ 5. **Fix in nine passes, in order.** Finish a pass across the whole screen before starting the next. When nearly every line changes, plan the passes in order and then write the new screen in one go, as long as every pass is applied. Spacing comes first because everything else reads differently once the rhythm is right. Copy comes before type and layout because the length of the headline decides its size and where it sits. Visuals and motion come last because they should fit a screen that already works without them.
48
+ 6. **Check.** Run the checklist at the end of this file, render again and compare with the audit list. Anything still on the list gets fixed.
49
+ 7. **Report** the direction, a few lines per pass about what changed, and any image prompt you wrote.
50
+ 8. **Record, when asked or when the user wants something to share.** Build the story file and render the video described in [Story video](#story-video). If the user asks for it at the start, write each pass into the story file as you go.
51
+
52
+ Keep a run quick. Render the screen to check it at most three times. When you generate an image, start it right after the direction is confirmed and keep doing the first passes while it runs, instead of waiting for it.
53
+
54
+ Exact values for every pass live in [references/tokens.md](references/tokens.md).
55
+
56
+ ## Direction
57
+
58
+ Before touching anything, write five short lines. Derive them from what the page says the product does and who it is for. Never from what is trending.
59
+
60
+ - **Product.** What it does and for whom, in one plain sentence.
61
+ - **Character.** Two or three concrete words, like `calm, exact, a little warm` or `fast, technical, playful`. Words like clean, modern, sleek, minimal and premium are not allowed, because they describe every template.
62
+ - **World.** The place or material the product naturally belongs to. A note app lives near paper and ink, a monitoring tool near instruments and night shifts, a travel app near maps and window light. This world sets the tint of the neutrals, the accent and the visual.
63
+ - **Moments.** One or two places where the screen gets rich color, material and detail, chosen from what the product shows. A rendered card or device inside the preview, a chart whose colors each mean a series, an object from the world placed next to the content. Write what they are.
64
+ - **Signature.** One small detail only this product would have, used consistently. A live status dot for a monitoring tool, keycaps for a developer tool, hand drawn underlines for a teaching app, a route line for a delivery app. One detail, not five.
65
+
66
+ The examples here only show the shape of an answer. Derive yours from the product in front of you, even when an example happens to fit.
67
+
68
+ If the product already has a real brand, like a logo file, a color or a typeface that is not slop, keep it and build the direction around it. A violet to blue gradient, sparkles and glow are slop even when they sit in the logo, so they do not count as brand unless the user says they do.
69
+
70
+ ## 1. Spacing
71
+
72
+ - Everything sits on a 4px grid. Margins, paddings, gaps and fixed heights are multiples of 4, so 28 or 104 are fine even though they are not in the token list. A 2px step is fine for nudges inside small controls, and an odd value that exactly centers something stays.
73
+ - Same thing, same size. All rows in a list share one height and one gap, all cards in a row share one padding.
74
+ - Space shows grouping. Space inside a group is smaller than space between groups, so a list reads as one block and sections read as separate ones.
75
+ - Things line up. Icons sit in one column, labels start on one line, numbers align right in one column. Nothing is nudged off the line with a stray translate or odd margin.
76
+ - Padding follows density. Compact panels and sidebars around 16, cards 20 to 24, page edges 24 to 32.
77
+ - Navigation is the densest part of an app. Rows are 32 to 36 tall with 2 to 4 between them, icons in one column, labels on one line. A section label sits closer to its own items than to the section above it, like 24 above and 8 below. Measure the sidebar after the pass, it is where spacing breaks most often.
78
+ - Remove one-off values that break the rhythm, like `mt-[13px]` or `py-[11px]`, and replace them with steps from the scale.
79
+
80
+ ## 2. Color
81
+
82
+ - Build from one neutral ramp, tinted toward the world from the direction. Pick graphite, warm or ink from the tokens, or tint your own the same way. Background, raised surfaces, borders and text all come from that ramp.
83
+ - In apps and dashboards the backgrounds, surfaces, borders and text stay neutral, the graphite ramp or something just as grey. People look at them for hours and the content has to carry the color. A screen whose background reads as orange, brown, blue or green has gone too far. The world shows in the accent, the charts and the moments, not in the surfaces. Landing pages can tint their surfaces further toward the world.
84
+ - Three text roles, primary, secondary and muted. Not ten slightly different lavenders.
85
+ - In the chrome, one accent, used rarely. It marks the primary action, the selection or the one number that matters.
86
+ - The moments from the direction are the exception. Inside them color can be rich, several hues in a chart, a rendered object with real materials, an image with its own light, as long as it stays inside the world and each color means something.
87
+ - If the brand has a real color, it becomes the accent and leaves the surfaces. If there is no real brand color, take the accent from the world.
88
+ - Accent with text on it reaches 4.5 to 1 contrast. If it does not, darken it or put dark text on it. Accent used as text or ink on a light surface needs the same contrast, so use a darker shade of it there.
89
+ - On dark themes the primary button can be an off white from the ramp with dark text, and the accent can live in a smaller place like the selection or a key figure. This often looks more deliberate than a colored button.
90
+ - Semantic colors only carry meaning, like green for a good change and red for an error, and they are toned down to sit inside the palette.
91
+ - Remove hue gradients on surfaces, gradient text, colored glows and colored shadows, radial color washes and blobs behind content, and neon borders.
92
+ - Borders are quiet hairlines, the text color of the ramp at 6 to 10% opacity.
93
+ - On dark themes depth comes from surface steps and hairlines, not from shadows. A window or object floating over an image may keep a soft neutral shadow. On light themes shadows are neutral, soft and small.
94
+ - A gradient is allowed only as a small tone shift inside one neutral, like an active row going from #2b2b2b to #1f1f1f. Never from one hue to another.
95
+
96
+ ## 3. Icons
97
+
98
+ - Every emoji used as an icon or as decoration in a label becomes a line icon from one set. Use the set the project already has, otherwise lucide.
99
+ - One size and one stroke everywhere, 16 or 18px with a 1.5 stroke.
100
+ - Icons take the color of their text role, usually secondary or muted. They never get their own colors.
101
+ - The icon box has the same width in every row and the gap to the label is fixed, 8 or 10, so labels align.
102
+ - Drop icons that add nothing, like an emoji in every card title or before every section label. Categories that need color get a small status dot.
103
+
104
+ ## 4. Copy
105
+
106
+ - Headlines say what the product does for whom, in plain words, so they could not fit another product. Use the facts already on the page and do not invent new ones.
107
+ - No exclamation marks in interface text, and never `!!`.
108
+ - No greeting headlines like `Welcome back, Damir! 👋`. The title names the context, like the page name or the period, for example `October 2026`.
109
+ - Short labels. `Search`, not `Search anything...`.
110
+ - A change says what it compares to, like `+12% vs last month` or `3 fewer vs last month`.
111
+ - Headlines, subheads, labels, buttons and captions end without a period. Only paragraphs of several sentences keep their periods.
112
+ - No hype words like supercharge, seamless, unlock, magic, revolutionize or game-changing, and no `AI-powered` on everything.
113
+ - Claims that cannot be checked, like `Loved by 10,000+ teams` or `10x faster`, become quiet and specific if the user confirms they are real, and are removed otherwise. Ask, and list them in the report.
114
+ - Mock data looks real, with plausible numbers and names, never `[X]` or `123,456`.
115
+ - Badges like `PRO`, `New ✨` or `Beta 🚀` go away unless the product really needs them, and then they are quiet text.
116
+
117
+ ## 5. Type
118
+
119
+ - Choose type for the character in the direction, from the families in the tokens. Keep the project's font when it is part of a real brand. A default like Inter that nobody chose may be swapped when another family fits the character better. One family for the interface, plus at most one partner from any row of the tokens, a mono for figures and meta or a display face for large headlines.
120
+ - A few sizes from a scale and two weights, 400 and 500, with 600 at most for rare emphasis. No 700 to 900 headings, no gradient text.
121
+ - Hierarchy comes from size and color, not from weight.
122
+ - Sentence case everywhere. Labels like `NAVIGATION` or `PAID THIS MONTH` with wide tracking become `Navigation` and `Paid this month`.
123
+ - Small text never gets negative letter spacing. Readability on small text means bigger, a bit bolder or slightly looser. Tight tracking is only for large display text.
124
+ - Numbers use `tabular-nums` and one format across the screen. If one figure is `$48,210`, the next is not `$124,860.40`.
125
+ - No italic for emphasis.
126
+
127
+ ## 6. Layout
128
+
129
+ - Keep the sections and their order. Inside a section, alignment and proportions may change when that makes the screen clearer.
130
+ - Apps and dashboards keep real app proportions. The shell fills the viewport, a sidebar of 240 to 280 and fluid content, usually capped around 1440 to 1600 wide, and the page is as long as its content, with more sections below the first screen. Never shrink an app into a narrow centered column. If the original was drawn as a small window on a backdrop, keep it visibly a window, with its frame and backdrop, and still give it desktop proportions inside.
131
+ - The strongest landing hero is a scene. One generated image fills the hero from edge to edge, its subject sits on one side, and the headline sits on the calm empty part of the same image, with the product view rising from the bottom edge. Look at the hero in the references to see it.
132
+ - Without a scene, use an asymmetric split, text on one side and the visual given at least half the width, or text over a large product view below it. Everything stacked and centered is the template default, keep it only for a short hero with no visual.
133
+ - In a scene hero, the text block sits in the upper part, in the space between the navigation and the top of the product view, at its optical center, a little above the true middle.
134
+ - In a split, center the text block vertically against the visual, so neither side leaves a big empty corner. If the visual is much taller, shorten it instead of pushing the text down. Floating cards and devices next to the text are hard to balance, prefer one solid visual. The spacing token from the navigation to the headline applies to stacked heroes, a split hero is centered instead.
135
+ - Long headlines align left. Centered text works for one or two short lines.
136
+ - One primary action and at most one secondary action next to it. Anything else moves out of the hero.
137
+ - Navigation stays quiet. Logo, the existing links, one button. Log in is a quiet text link next to it, not a second button. A floating pill header is not required. On small screens the links collapse into one menu button.
138
+ - Compose the first screen as a whole. The hero fills the viewport height without a dead empty band. If the content is shorter, center it or let the product view start low and run past the bottom edge, so the page invites a scroll.
139
+ - On small screens everything stacks in reading order, the headline drops to the mobile size from the tokens and the visual comes after the actions. A dense preview gets simpler on mobile, with fewer rows and columns, instead of being zoomed down. No text in it goes below 11px.
140
+
141
+ ## 7. Details
142
+
143
+ - Nested radius. An inner radius equals the outer radius minus the padding between them, never less than 4. Controls 8 to 10, cards 12 to 16, panels 14 to 20. Not everything is a pill.
144
+ - Counts and meta become quiet text, often mono and muted, instead of glowing pills.
145
+ - Keyboard shortcuts become small keycaps.
146
+ - Charts sit on a muted grid with muted mono labels. No rainbow bars inside one series, no glowing bars, no uppercase day labels. If the chart is placeholder noise, replace it with data that tells something real.
147
+ - Charts have a hierarchy, like text. One main chart is clearly the biggest thing on the screen, drawn with care, like smooth lines or a mirrored comparison. Anything else that shows data is smaller and different in kind, like a ranked list with thin bars or a short table, never a second chart of the same size.
148
+ - One accent per chart. The thing that matters, like the current month, the line you are tracking or the plan that grew, gets the accent, and everything else sits in neutral steps of the ramp. Several hues only when the chart really has to tell series apart, and even then one leads and the rest are quiet.
149
+ - Stat cards are numbers. A label, a big figure and a change with what it compares to. No sparklines, tallies, mini bars or icons added to fill them, they read as decoration. A card can hold a real looking object when it is the very thing its number counts, like a paid receipt next to paid revenue or bank cards next to spend. Use as many as make sense for that dashboard, as long as each one reads on its own and none of them is a mini chart.
150
+ - Vary the sizes. Cards of equal width side by side, each with the same kind of content, read as a template. Give the grid a rhythm, like three or four compact stats in a row above one wide chart, or a wide chart next to a narrow list.
151
+ - Pick the chart type for the data. A trend is a line, a comparison is bars, a share is one stacked bar or a list with bars, a single goal is a progress bar.
152
+ - The active state is a small surface step with a hairline highlight, not a gradient with a glow.
153
+ - Hover and focus states exist and stay inside the palette. A visible focus ring for keyboard users.
154
+ - The logo is the product name in the main family, plus a simple mark if there is one. No gradient wordmark and no sparkle tile.
155
+ - The signature detail from the direction appears where it belongs and nowhere else.
156
+
157
+ ## 8. Visuals
158
+
159
+ - Decorative filler goes. Glossy blobs, orbs, nebulas, floating cubes, glowing grids, holographic brains and robots say nothing about the product.
160
+ - A landing hero gets a visual that shows something true.
161
+ - Dashboards and app screens almost never need generated images. Their moments come from the product itself: a chart drawn with care, figures set beautifully, real content like product photos or avatars, a status that feels alive. A physical thing the product deals with, like a payment card in a finance app, is usually better built in code with real materials, a soft gradient, a chip, a number.
162
+ - Generate images for an app only for empty states, onboarding and marketing moments, or when the user asks for it.
163
+ - With an image generation tool, the first choice for a landing hero is a scene from the world in the direction, generated wide enough to sit behind the whole hero, with calm empty space where the text goes. It carries the color and the mood, and the chrome stays quiet over it.
164
+ - Under the scene, or as the visual when there is no tool, show the product. Build a preview in code of what the page already promises, with the project's components or careful HTML and plausible data, like the main screen, one key card or the result the product produces. Showing what the copy already claims is not inventing a feature. In a scene hero it rises from the bottom edge and runs past it.
165
+ - The product view carries a moment, not just a plain card. A rendered object inside it, like a payment card on a figure, a rich chart or a small object from the world. These are kinds of objects, so using one that fits is fine.
166
+ - Before this pass, look at the references in [references/refs.md](references/refs.md). Take qualities from them, like composition, light, restraint and how the moment is placed, never their subject or layout.
167
+ - Rendered objects and scenes come from an image generation tool when you have one. If you do not, build what you can in code, write the prompts for the rest and leave empty slots of the right size.
168
+ - How to pick the subject, the prompt recipe and how to place the image are in [references/visuals.md](references/visuals.md). Read it before this pass.
169
+
170
+ ## 9. Motion
171
+
172
+ - Remove motion that loops for no reason, like `animate-pulse` or `animate-ping` on things that are not live, shimmer on headings, breathing glows, floating elements and parallax.
173
+ - Remove `transition-all`, bouncy springs, `hover:scale` on cards and anything that moves more than a few pixels on hover.
174
+ - Keep motion that explains something. A hover is a quick color or surface change, a press is a tiny scale down, a menu fades and rises a few pixels from where it opens, a changed number tweens.
175
+ - Transition color, background, border, opacity and transform, and name them, like `transition-colors` or `transition-[transform,opacity]` in Tailwind, instead of a catch all. Never animate width, height, top, left, margins or large blurs, they stutter on weak devices.
176
+ - One easing curve and a few durations across the screen, from the tokens. Short for feedback, a little longer for things that enter.
177
+ - At most one entrance on load, a short fade and rise for the main content with a small stagger. Not every card flying in from a different side.
178
+
179
+ ## Story video
180
+
181
+ A short video where the screen unslops itself step by step, with red redlines on the slop. Look at [refs/story-dashboard-frames.webp](references/refs/story-dashboard-frames.webp) before you build it, eight frames from it in order. That video went viral, and this is how it works:
182
+
183
+ - **Nothing is swapped, everything morphs.** One page, and each step only changes CSS, so padding, gaps, sizes, colors, radii and shadows tween from the old value to the new one in place. You see the spacing open up, the purple drain out, the corners soften.
184
+ - **A wave.** Elements start a few dozen milliseconds apart from the top left down, so a change runs across the screen instead of everything flipping at once.
185
+ - **Text rolls.** Copy that changes blurs out, and the new words rise in letter by letter.
186
+ - **Redlines first.** The slop gets red selection boxes with tags, a spacing step shows red measurements that turn white once fixed, a details step outlines corners with their radius.
187
+ - **Close and short.** Square, cropped close on the part that changes most, so it reads on a phone, and about 10 seconds.
188
+
189
+ It adds a few minutes, so make it only when the user wants it.
190
+
191
+ 1. **One story file.** Build `unslop-story/story.html`, a standalone copy of the original screen with its styles in the file. Keep the original rules as they are, they are step 0.
192
+ 2. **Steps.** Three to five, merging passes so each one changes something you can see, like `Spacing`, `Color and icons`, `Type and copy`, `Details`. A new chart or visual goes into the last step. List them in the head as `<meta name="unslop-steps" content="Spacing, Color and icons, Type and copy, Details">`. A name containing Spacing shows spacing measurements, one containing Details shows corner outlines.
193
+ 3. **Each step is CSS on top.** Write the changes of step 1 under `.s1`, step 2 under `.s2` and so on, like `.s1 .card { padding: 24px }` or `.s2 body { background-color: #141415 }`. The classes add up, so step 3 still has the rules of steps 1 and 2. Change values, never structure, so the browser can tween them.
194
+ 4. **What cannot tween, and how to handle it.**
195
+ - Gradients, glows and washes: put them on their own layer and fade its `opacity` to 0, with the solid color underneath changing. Gradient text goes on the `.from` span only, never on the swap or its parent, because a text clip also catches the hidden new text.
196
+ - Pills: write their radius as half the height, like `23px`, not `9999px`, or the corner only changes in the last frame.
197
+ - Use swaps sparingly, only where the words change, at most eight in a story. Twenty swaps blurring at once read as a cut between two pictures, which is exactly what the video must not look like. Weight, size, tracking and color changes tween on their own, so they never need a swap. A new font family switches directly in its step, without swaps.
198
+ - Text that changes, a new font family, an emoji that becomes an icon: `<span class="swap" data-at="3"><span class="from">Welcome back, Damir! 👋</span><span class="to">October 2026</span></span>`. At step 3 the old part blurs out and the new one rolls in.
199
+ - Emoji that become icons: put the new icon next to the emoji inside the same box, both absolutely stacked, and crossfade their `opacity` in the step. That is not a swap and does not count toward the limit.
200
+ - Things that disappear, like a `New ✨` badge: `data-out="2"` collapses them at step 2.
201
+ - Things that appear, like a legend: `data-in="4"` fades them in at step 4. Reserve their space so nothing jumps.
202
+ 5. **Redlines.** The measurements follow the elements live, so their numbers count from the old value to the new one while things move. That is the moment people watch, so choose them well.
203
+ - `data-gap` goes on the blocks of a vertical stack, like the brand row, the search, the navigation group and the plans group in a sidebar, or the headline, the stat row and the chart in the main column. Not on every row, or the screen fills with tiny 2px tags. Aim for four to six measured gaps per stack, and give each stack its own name if there is more than one, like `data-gap="sidebar"` and `data-gap="main"`.
204
+ - `data-radius` goes on two to four buttons and cards whose corners change.
205
+ - `data-slop="Gradient text"` and so on marks the slop for a short first beat, at most five, on the clearest examples that sit apart from each other, with short tags. It is optional, the reference video has none.
206
+ 6. **Only the screen and its background.** The video shows the story page as it is, with no extra window, border or shadow around it, so the page's own background fills the frame and the screen is the only box. If the screen sits in a window that grows to desktop proportions, anchor it to the left in the story so it widens to the right instead of gliding sideways. The story page renders 1440 wide and at least 900 tall, so do not size things from `100vh`, and keep `position: fixed` for background layers only.
207
+ 7. **Camera.** `<meta name="unslop-frame" content="0 0 960">` sets which part of the page fills the frame, as x, y and width in page pixels. Point x and y at the screen's own top left corner, so the frame starts with the page background around it, and crop close on where the most visible change happens, usually the sidebar or headline and the first cards.
208
+ 8. **Render.** `node <skill folder>/scripts/story.mjs unslop-story/story.html unslop-story.mp4`, square by default, `--wide` for 16:9. It needs Playwright and ffmpeg, so if either is missing, tell the user the one command that installs it. To watch it live first, run it with `--play` instead of the output path, and it loops in a browser window until closed. Pull a few frames with ffmpeg and look at them before you hand it over. Checking the story file and the video does not count toward the render limit of a run.
209
+ 9. **The story file is a presentation piece.** The clean result still ships as normal code in the project's own stack, without `.s` classes or story attributes. Every video carries a small `unslop by @heydamir` credit, as the license asks.
210
+
211
+ ## Do not
212
+
213
+ - Do not rename the product, even when the name has AI in it. Keep a real logo as it is. When the logo itself is slop, like an emoji or a sparkle in a gradient tile, redraw it flat: the wordmark alone in the new type, or a simple glyph from the product's idea in one solid color. Never a glossy or gradient ball, a glow or a gradient tile, those read as AI at first sight.
214
+ - Do not change what the product is. Keep its features, content and the order of sections unless the user asks for more. Placeholder content that means nothing may be replaced with content that does.
215
+ - Do not replace removed decoration with new decoration, and do not swap one trend for another like glass, grain, noise, neon or bento grids.
216
+ - Do not invent features, claims or data.
217
+ - Do not fall back to the same look for every product. The direction decides the palette tint, type and visual, not habit.
218
+
219
+ ## Checklist
220
+
221
+ - [ ] The direction is written and every pass follows it
222
+ - [ ] Every spacing value is on the 4px scale and equal things have equal sizes
223
+ - [ ] Icons, labels and numbers each sit in one aligned column
224
+ - [ ] One tinted neutral ramp, three text roles, one accent with enough contrast
225
+ - [ ] No hue gradients, gradient text, glows, colored shadows or color blobs
226
+ - [ ] No emoji left in the interface
227
+ - [ ] One icon set at one size and stroke
228
+ - [ ] Type chosen for the character, weights 400 to 600, no uppercase tracked labels, no italic, no negative tracking on small text
229
+ - [ ] Right to left screens follow [references/rtl.md](references/rtl.md): `dir` and `lang` set, logical properties, the layout mirrored, directional icons flipped, mixed text isolated, one digit system, zero letter spacing on Arabic
230
+ - [ ] Korean, Japanese and Chinese screens follow [references/cjk.md](references/cjk.md): `lang` set, a family drawn for the script and loaded, no italic, line breaking set for the script
231
+ - [ ] No exclamation marks, no trailing periods on short strings, no greeting headline, no unverified claims
232
+ - [ ] Numbers in one format with tabular figures
233
+ - [ ] Nested radii add up
234
+ - [ ] Table row states read apart: header, value in use, selection and keyboard focus are each recognizable
235
+ - [ ] Buttons share the control radius, no square corners against the component style
236
+ - [ ] A hero has a real visual or a product preview with at least one moment, never filler and never a labeled placeholder
237
+ - [ ] The first screen is composed as a whole with no dead empty band
238
+ - [ ] No looping or bouncy motion, one easing curve, no animated layout properties
239
+ - [ ] Template check. If you swapped the product name for another product's, would the screen still fit? If yes, push the direction harder in the copy, the visual and the signature detail
@@ -0,0 +1,34 @@
1
+ # Korean, Japanese and Chinese
2
+
3
+ Rules for screens in Korean, Japanese or Chinese. Read this before the passes when the screen is in one of these languages. Where a rule here differs from the passes in the skill, this one wins.
4
+
5
+ Most CJK slop is a Latin screen with the words swapped. The type rules were made for Latin, and a Latin font leaves the browser to pick a system fallback for every Hangul, Kana or Han glyph, so weights and widths change from line to line.
6
+
7
+ ## Fonts
8
+
9
+ - Pick a family drawn for the script, with real weights. For example Pretendard, Noto Sans KR or IBM Plex Sans KR for Korean, Noto Sans JP or Zen Kaku Gothic New for Japanese, Noto Sans SC or Noto Sans TC for Chinese. A Latin family alone, like Inter or Geist, is not a choice for these screens.
10
+ - Set `lang` on the root, like `<html lang="ko">`, `ja`, `zh-Hans` or `zh-Hant`. Han characters are shared across the three languages, and the browser uses `lang` to pick glyph shapes and line breaking.
11
+ - Check that the web font actually loads. A screen that falls back to the system font is the most common reason a CJK page looks cheap.
12
+
13
+ ## Type
14
+
15
+ - Headings at 600 to 700 are normal. CJK strokes are dense, so a 500 heading barely separates from 400 body text. Keep to three weights, like 400, 500 and 700. The 400 and 500 rule in the type pass is for Latin.
16
+ - No italic. CJK fonts have no real italic, so the browser slants the glyphs. Use weight or color.
17
+ - Body line height 1.5 to 1.7, a little looser than Latin, because the glyphs fill the whole em box.
18
+ - Letter spacing 0 for body and small text. Large headings can go to -0.01em or -0.02em.
19
+
20
+ ## Line breaking
21
+
22
+ - Korean breaks between words. `word-break: keep-all` keeps a word from splitting across two lines, and `overflow-wrap: anywhere` still lets long links and numbers wrap.
23
+ - Japanese and Chinese break between characters. `line-break: strict` keeps small kana and closing punctuation from starting a line.
24
+ - Short headings get `text-wrap: balance`, so the last line is not a single syllable or character.
25
+
26
+ ## Copy
27
+
28
+ - Sentence case does not apply. The same habit as uppercase tracked labels shows up as a small bold label above every heading. Keep one only where it says something the heading does not.
29
+ - A full sentence keeps its period even in a caption: a polite Korean sentence ending in 요 or 다, or a Japanese or Chinese sentence ending in 。. Labels, buttons and titles still have none.
30
+ - Japanese and Chinese use full-width punctuation. Japanese and Traditional Chinese quote with corner brackets (、。「」), Simplified Chinese with curly quotes (,。“”‘’). Korean uses Latin punctuation. Do not mix the two on one screen.
31
+
32
+ ---
33
+
34
+ Part of unslop by Damir Sokolovsky ([@heydamir](https://x.com/heydamir)), CC BY 4.0. Keep this credit in copies and adaptations.
@@ -0,0 +1,113 @@
1
+ # Effects
2
+
3
+ Code treatments that turn an image into something made for this page. They are optional. Use one only when it fits the character in the direction, on the main visual only, and never as decoration on other elements.
4
+
5
+ ## Glyphs
6
+
7
+ Draw the image as a grid of characters, brightness picking the character. It works best when the characters come from the product's own material, so the image is literally made of what the product deals with.
8
+
9
+ - Money, invoices, finance: `. : 1 7 4 0 8 $ %`
10
+ - Code, developer tools: `. : / { } < > = #`
11
+ - Music: note names like `c d e g a` and `♭ ♯`
12
+ - Writing, reading: lowercase letters of a word from the product
13
+ - Data, monitoring: `. · : | + ▪`
14
+
15
+ Keep the cell between 6 and 10px, use the mono from the type choice, and color the glyphs from the image or from the ramp. Let a few cells change slowly over time so the picture feels alive.
16
+
17
+ ### Implementation
18
+
19
+ ```js
20
+ function glyphs(canvas, image, { cell = 8, chars = ".:17408$%", font = "Geist Mono", fps = 8 } = {}) {
21
+ const ctx = canvas.getContext("2d");
22
+ const columns = Math.floor(canvas.width / cell);
23
+ const rows = Math.floor(canvas.height / cell);
24
+
25
+ const sample = document.createElement("canvas");
26
+ sample.width = columns;
27
+ sample.height = rows;
28
+ const sampler = sample.getContext("2d", { willReadFrequently: true });
29
+ sampler.drawImage(image, 0, 0, columns, rows);
30
+ const pixels = sampler.getImageData(0, 0, columns, rows).data;
31
+
32
+ const atlas = document.createElement("canvas");
33
+ atlas.width = cell * chars.length;
34
+ atlas.height = cell;
35
+ const pen = atlas.getContext("2d");
36
+ pen.font = `500 ${cell + 1}px ${font}`;
37
+ pen.textAlign = "center";
38
+ pen.textBaseline = "middle";
39
+ pen.fillStyle = "#fff";
40
+ [...chars].forEach((char, index) => pen.fillText(char, index * cell + cell / 2, cell / 2));
41
+
42
+ const cells = [];
43
+ for (let y = 0; y < rows; y++) {
44
+ for (let x = 0; x < columns; x++) {
45
+ const i = (y * columns + x) * 4;
46
+ const light = (0.2126 * pixels[i] + 0.7152 * pixels[i + 1] + 0.0722 * pixels[i + 2]) / 255;
47
+ cells.push({ x, y, light, color: `rgb(${pixels[i]},${pixels[i + 1]},${pixels[i + 2]})`, seed: Math.random() });
48
+ }
49
+ }
50
+
51
+ const tinted = document.createElement("canvas");
52
+ tinted.width = cell;
53
+ tinted.height = cell;
54
+ const tint = tinted.getContext("2d");
55
+
56
+ const draw = (step) => {
57
+ ctx.clearRect(0, 0, canvas.width, canvas.height);
58
+ for (const c of cells) {
59
+ if (c.light < 0.06) continue;
60
+ const jitter = Math.sin(c.seed * 999 + step) > 0.92 ? 1 : 0;
61
+ const pick = Math.min(chars.length - 1, Math.floor(c.light * chars.length) + jitter);
62
+ tint.globalCompositeOperation = "copy";
63
+ tint.drawImage(atlas, pick * cell, 0, cell, cell, 0, 0, cell, cell);
64
+ tint.globalCompositeOperation = "source-in";
65
+ tint.fillStyle = c.color;
66
+ tint.fillRect(0, 0, cell, cell);
67
+ ctx.drawImage(tinted, c.x * cell, c.y * cell);
68
+ }
69
+ };
70
+
71
+ let frame = 0;
72
+ let last = 0;
73
+ let step = 0;
74
+ let visible = true;
75
+ new IntersectionObserver(([entry]) => (visible = entry.isIntersecting)).observe(canvas);
76
+ const loop = (now) => {
77
+ frame = requestAnimationFrame(loop);
78
+ if (!visible || now - last < 1000 / fps) return;
79
+ last = now;
80
+ draw(step++);
81
+ };
82
+ frame = requestAnimationFrame(loop);
83
+ return () => cancelAnimationFrame(frame);
84
+ }
85
+ ```
86
+
87
+ For a large canvas, bake the tinted glyphs for each cell once into an offscreen canvas and only redraw the cells that change on a step.
88
+
89
+ ## Halftone dots
90
+
91
+ Dots on a grid whose size follows brightness. Suits editorial, print and crafted characters. Same sampling as glyphs, but draw `arc` circles with a radius of `light * cell / 2` in one ink color on the page color.
92
+
93
+ ## Dithering
94
+
95
+ An ordered or error diffusion dither into two or three colors from the ramp. Suits retro, technical and playful characters. Do it once when the image loads, not on every frame.
96
+
97
+ ## Duotone
98
+
99
+ Map the image's brightness onto two colors, the darkest surface of the ramp and the accent or the primary text color. The simplest way to make any generated image belong to the palette. In CSS, a grayscale image under a `mix-blend-mode: color` layer of the accent, or an SVG `feColorMatrix` filter.
100
+
101
+ ## Performance
102
+
103
+ These effects broke on weak laptops before, so keep to these rules.
104
+
105
+ - Read pixels once when the image loads. Never call `getImageData` inside the animation loop, it stalls the GPU and drops frames to single digits.
106
+ - Prepare glyph atlases and tinted cells ahead of time and draw them with `drawImage`.
107
+ - Animate at 8 to 12 steps per second, not 60, and change only a small share of cells per step.
108
+ - Pause when the canvas is off screen.
109
+ - Size the canvas for the device pixel ratio, but cap it at 2.
110
+
111
+ ---
112
+
113
+ Part of unslop by Damir Sokolovsky ([@heydamir](https://x.com/heydamir)), CC BY 4.0. Keep this credit in copies and adaptations.
@@ -0,0 +1,17 @@
1
+ # References
2
+
3
+ Finished screens by Damir Sokolovsky ([@heydamir](https://x.com/heydamir)). Look at them before the Visuals pass. Take their qualities, never their subject, palette or layout, so every product still gets its own screen. `unslop-dashboard-after` is the finished version of `examples/dashboard.html`, so when you unslop that example, find your own answer instead of rebuilding it.
4
+
5
+ | File | What it shows | Why it works |
6
+ | --- | --- | --- |
7
+ | [unslop-hero-after.webp](refs/unslop-hero-after.webp) | An invoicing hero with a paper plane drawn in digits and currency signs, small notes pinned to it, and the product rising from below | The visual is made of the product's own material, money, so it is the moment and the signature at once. Text sits on calm sky, the chrome is quiet, and the product view invites a scroll |
8
+ | [unslop-dashboard-after.webp](refs/unslop-dashboard-after.webp) | A finance dashboard with two rendered payment cards and a revenue chart drawn as soft colored curves over a mirrored grey comparison | Quiet graphite chrome, and all the color lives in two moments, a real looking object and a chart where every color means a series |
9
+ | [beacon-engraving.webp](refs/beacon-engraving.webp) | An incident monitoring hero drawn as one blue engraving of a lighthouse on a rocky coast, with a serif headline in the same ink | A print style working because the whole page is in it. One ink, one paper tone, and the headline sits in the calm sky the drawing leaves for it |
10
+ | [meadow-3d.webp](refs/meadow-3d.webp) | A footer as a soft 3D meadow with a few matte crystal shapes and a huge wordmark standing behind the hills | Friendly stylized 3D with a restrained palette, type that becomes part of the scene, and quiet links on the open sky |
11
+ | [story-dashboard-frames.webp](refs/story-dashboard-frames.webp) | Eight frames from the viral story video, a vibecoded dashboard unslopping itself in about 10 seconds | Everything morphs in place in a wave, red redlines measure the slop and turn white when fixed, copy rolls letter by letter, and the frame is square and cropped close on the sidebar and first cards |
12
+
13
+ What they share: one bright element per screen, quiet chrome around it, a visual that can be explained in one sentence, and headlines placed on space that was left empty for them.
14
+
15
+ ---
16
+
17
+ Part of unslop by Damir Sokolovsky ([@heydamir](https://x.com/heydamir)), CC BY 4.0. Keep this credit in copies and adaptations.
@@ -0,0 +1,111 @@
1
+ # Right to left
2
+
3
+ Rules for screens in Arabic, Persian, Urdu or Hebrew, or any screen with `dir="rtl"`. Read this before the passes when the screen is right to left, or when the user asks for an Arabic or Hebrew version. Where a rule here differs from the passes in the skill, this one wins.
4
+
5
+ Most RTL slop is not decoration. It is a left to right screen with the words swapped, so the text runs one way and everything around it runs the other. Fix the direction first, then run the passes as usual.
6
+
7
+ ## Direction
8
+
9
+ - The root carries `dir="rtl"` and the right `lang`, like `<html lang="ar" dir="rtl">`. Without them the browser aligns text left, picks the wrong fallback fonts and breaks punctuation at the ends of lines.
10
+ - Use logical properties everywhere, so the layout flips by itself. `margin-inline-start`, `padding-inline-end`, `inset-inline-start`, `text-align: start`, `border-start-start-radius`. In Tailwind that is `ms-*`, `me-*`, `ps-*`, `pe-*`, `start-*`, `end-*`, `text-start` and `rounded-s-*`. A hard `left` or `right`, `ml-*`, `mr-*` or `text-left` is a bug waiting for the other direction.
11
+ - The whole screen mirrors. The sidebar moves to the right, the logo sits at the top right, the primary action of a pair comes first from the right, and a back arrow points right.
12
+ - Progress bars, sliders and steppers fill from the right.
13
+ - Do not flip with `transform: scaleX(-1)` on whole containers. It mirrors the text inside too.
14
+
15
+ ## Icons
16
+
17
+ - Mirror icons that show direction or order: back and forward arrows, chevrons in breadcrumbs and next buttons, undo and redo, a list indent, a reply arrow, a send icon, a sidebar toggle.
18
+ - Do not mirror icons that show a real object or a universal sign: play, pause and the media controls, a clock, a checkmark, a search glass, a phone, a download arrow pointing down, logos, and anything with Latin letters in it.
19
+ - Mirror with `[dir="rtl"] .icon-directional { transform: scaleX(-1) }` on the icon only, or pick the opposite icon from the set.
20
+
21
+ ## Mixed text
22
+
23
+ - Latin words, numbers, code, emails and links inside an Arabic sentence go in `<bdi>` or get `unicode-bidi: isolate`, so `Al-Fatiha` or `v2.1` does not drag the punctuation around it to the wrong side.
24
+ - Signed numbers and changes, like `+12%` or `-3`, go in `<bdi dir="ltr">`. Otherwise the sign jumps to the far side and reads `12%+`.
25
+ - Content the user typed, like names, titles and search queries, goes in `<bdi>`, which picks its direction from its own first strong letter. Put `dir="auto"` on an inline element, not on a table cell or a block, or the whole cell flips its alignment and runs into the next column.
26
+ - Inputs for email, URLs, phone numbers and codes stay `dir="ltr"` with `text-align: end`, so they read left to right but sit on the right edge with the other fields.
27
+
28
+ ## Numbers
29
+
30
+ - Choose Western digits (0 to 9) or Arabic-Indic digits (٠ to ٩) for the whole screen and never mix them. Western digits are common in North Africa and in technical products. Arabic-Indic digits suit the Gulf, Egypt and anything traditional or religious. Persian uses its own forms (۰ to ۹).
31
+ - Format with `Intl.NumberFormat("ar-EG")`, `"ar-SA"` or `"ar"` with `numberingSystem: "latn"`, instead of building strings by hand.
32
+ - Numbers still use `tabular-nums`, and figures in a column align to the end of the column, which is the left edge in RTL.
33
+
34
+ ## Type
35
+
36
+ - Choose a family that was drawn for the script, with real weights, not a Latin family that falls back to a system Arabic font. Pair it with a Latin family from the same design, so mixed lines keep one texture.
37
+
38
+ | Character | Arabic interface family | Latin partner | Optional display |
39
+ | --- | --- | --- | --- |
40
+ | Precise, technical, calm | IBM Plex Sans Arabic | IBM Plex Sans | IBM Plex Mono for figures |
41
+ | Neutral, everyday | Noto Sans Arabic | Noto Sans | Noto Kufi Arabic for large headlines |
42
+ | Warm, friendly, modern | Readex Pro | Readex Pro | Reem Kufi for the hero headline only |
43
+ | Persian first | Vazirmatn | Vazirmatn | |
44
+ | Literary, traditional, religious | Noto Sans Arabic or IBM Plex Sans Arabic for the interface | the matching Latin | Noto Naskh Arabic or Amiri for headlines and reading text |
45
+
46
+ - Hebrew has its own rules for type, punctuation and copy, in [Hebrew](#hebrew) below. Urdu reading text uses Noto Nastaliq Urdu.
47
+ - Cairo and Tajawal on every element, at every weight, are the Arabic equivalent of Inter that nobody chose. Keep them when they are part of a real brand, otherwise pick for the character.
48
+ - Letter spacing on Arabic is always 0. Any tracking, positive or negative, pulls the joined letters apart and breaks the word. This includes large display text.
49
+ - Arabic has no capitals, so there is no uppercase or sentence case to fix. Labels get hierarchy from size, weight and color only.
50
+ - Arabic has no italic. A browser fakes it by slanting the glyphs, which reads as broken. Use weight or color.
51
+ - Arabic looks smaller than Latin at the same size. Body text is 15 to 17, captions no smaller than 13.
52
+ - Arabic needs more line height, because dots and vowel marks sit above and below the line. Body 1.6 to 1.8, headings 1.3 to 1.4. The tight 1.02 to 1.08 for Latin heroes clips marks on Arabic.
53
+ - Do not justify short interface text and do not stretch words with tatweel (ـ) to fill a line. Align to the start.
54
+
55
+ ## Copy
56
+
57
+ - Arabic punctuation: the comma `،`, the semicolon `؛` and the question mark `؟`. No space before punctuation and one after it. Quotes are `«»` or `""`, chosen once.
58
+ - The rules from the Copy pass hold. No exclamation marks, no greeting headline like `أهلاً بعودتك يا أحمد! 👋`, no trailing period on labels and buttons.
59
+ - Arabic hype words count as hype: ثوري، سحري، مذهل، بلا حدود، الأفضل على الإطلاق، بضغطة زر، مدعوم بالذكاء الاصطناعي. Say what the thing does.
60
+ - Copy that reads translated, with English word order, `ال` stuck onto English words, or a different register in every label, gets rewritten in one register. Modern Standard Arabic for most products, a dialect only when the brand really speaks it.
61
+ - Short labels: `بحث`, not `ابحث عن أي شيء...`.
62
+
63
+ ## Hebrew
64
+
65
+ The direction, icon, mixed text and number rules above hold for Hebrew. Type, punctuation and copy work differently, so they follow here.
66
+
67
+ ### Type
68
+
69
+ | Character | Hebrew interface family | Latin partner | Optional display |
70
+ | --- | --- | --- | --- |
71
+ | Precise, technical, calm, or neutral and everyday | Noto Sans Hebrew | Noto Sans | Noto Sans Mono for figures |
72
+ | Warm, friendly, modern | Rubik | Rubik | |
73
+ | Literary, editorial, traditional | Noto Sans Hebrew for the interface | the matching Latin | Frank Ruhl Libre for headlines and reading text |
74
+
75
+ - Heebo and Open Sans on every element are the Hebrew equivalent of Inter that nobody chose. Keep them when they are part of a real brand, otherwise pick for the character.
76
+ - Hebrew letters do not join, so tracking does not break words the way it does in Arabic. Still keep letter spacing at 0 on interface text. Hebrew has no capitals, so there are no uppercase tracked labels to fix, and tracking adds nothing.
77
+ - Hebrew has no italic. A browser fakes it by slanting the glyphs, which reads as broken. Use weight or color.
78
+ - Final letters like ק, ך, ן, ף and ץ drop below the baseline. The tight 1.02 to 1.08 line height for Latin heroes lets them touch the line below, so Hebrew headlines need 1.15 to 1.25.
79
+ - Body text without vowel points runs at 1.5 to 1.6. Text with nikud, like children's, learning or liturgical content, needs 1.7 to 1.9, because the points sit above and below the letters.
80
+
81
+ ### Punctuation
82
+
83
+ - Abbreviations and acronyms use the geresh `׳` (U+05F3) and gershayim `״` (U+05F4), like `צה״ל`, `ע״י` or `ג׳`. Straight `'` and `"` are acceptable in body text if used consistently, but never let a smart quote replacement turn them into `’` or `”`, which read as stray quotes.
84
+ - A one letter prefix before a Latin word or a number attaches with a hyphen, like `ב-2026` or `ה-API`. Never with a space, and never glued straight to the Latin, like `הAPI`.
85
+ - Quotes are `""` or `„”`, chosen once for the whole screen.
86
+ - A regular hyphen is fine in interface text. Keep the maqaf `־` for editorial and literary content.
87
+
88
+ ### Numbers and dates
89
+
90
+ - Hebrew uses Western digits. Hebrew letter numerals like `א׳` or `תשפ״ז` belong only to the Hebrew calendar and traditional lists.
91
+ - Format money with `Intl.NumberFormat("he-IL", { style: "currency", currency: "ILS" })` and dates with `Intl.DateTimeFormat("he-IL")`, so the shekel sign and the day, month, year order come out right. One format across the screen.
92
+
93
+ ### Copy
94
+
95
+ - Hebrew verbs and adjectives carry gender. Slash forms like `הירשם/י` or `לחץ/י כאן` read as clumsy, and the masculine imperative alone leaves part of the audience out. Buttons and labels use the noun or infinitive, like `הרשמה`, `שמירה`, `חיפוש` or `להמשך`. Longer text addresses the reader in a way that does not need gender, or in the plural.
96
+ - The rules from the Copy pass hold. No exclamation marks, no greeting headline like `ברוך שובך, דמיר! 👋`, no trailing period on labels and buttons.
97
+ - Hebrew hype words count as hype: מהפכני, פורץ דרך, קסום, חוויה חלקה, בלחיצת כפתור, ללא מאמץ, הדור הבא, משנה את כללי המשחק, מבוסס בינה מלאכותית. Say what the thing does.
98
+ - Copy that reads translated, like `קח את העסק שלך לשלב הבא` or `בוא נתחיל!`, gets rewritten as plain Hebrew in one register.
99
+ - Short labels: `חיפוש`, not `חפש כל דבר...`.
100
+
101
+ ## Scripture and quoted text
102
+
103
+ - Quranic verses, hadith, poetry and other quoted text are copied exactly from a verified source, with their marks, and never rewritten, shortened mid verse or invented. If the screen has placeholder scripture, replace it with real text from a source the user names, or leave the exact slot and say so in the report.
104
+ - Set it in a face made for reading it, like Amiri Quran or a mushaf font for Quranic text, separate from the interface family.
105
+ - The same holds for Hebrew scripture and liturgy. Copy it with its nikud and cantillation marks from a verified source, and set it in a face drawn for those marks, like Taamey Frank or SBL Hebrew.
106
+ - No gradient, glow, outline or animation on scripture. It carries the screen through the type, the space around it and the paper it sits on.
107
+ - The end of a verse is marked with ۝ (U+06DD) and its number in the digits of the screen, not with a glowing pill.
108
+
109
+ ---
110
+
111
+ Part of unslop by Damir Sokolovsky ([@heydamir](https://x.com/heydamir)), CC BY 4.0. Keep this credit in copies and adaptations.