@greenrenge/skills 0.0.0-stage → 0.1.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.
- package/LICENSE +21 -0
- package/README.md +63 -2
- package/bin/cli.mjs +349 -0
- package/catalog.json +201 -0
- package/package.json +49 -4
- package/skills/deck-story/SKILL.md +258 -0
- package/skills/deck-story/check-svg-text.mjs +94 -0
- package/skills/deck-story/check.mjs +348 -0
- package/skills/diagram-router/LICENSE +21 -0
- package/skills/diagram-router/SKILL.md +193 -0
- package/skills/diagram-router/THIRD_PARTY_NOTICES.md +15 -0
- package/skills/diagram-router/references/channels.md +213 -0
- package/skills/diagram-router/references/evals.md +85 -0
- package/skills/diagram-router/references/gathering.md +101 -0
- package/skills/diagram-router/references/prior-art.md +65 -0
- package/skills/diagram-router/references/routing.md +166 -0
- package/skills/diagram-router/skill-release.json +17 -0
- package/skills/frontend-design/SKILL.md +443 -0
- package/skills/frontend-design/references/rtl.md +72 -0
- package/skills/frontend-design/scripts/.upstream-sha +1 -0
- package/skills/frontend-design/scripts/LICENSE +21 -0
- package/skills/frontend-design/scripts/README.md +24 -0
- package/skills/frontend-design/scripts/gates.md +243 -0
- package/skills/frontend-design/scripts/sloplint-render.mjs +1283 -0
- package/skills/frontend-design/scripts/sloplint.mjs +4426 -0
- package/skills/open-code-review-rules/SKILL.md +59 -0
- package/skills/open-code-review-rules/references/ocr-allowlists.json +161 -0
- package/skills/open-code-review-rules/references/ocr-rule-semantics.md +39 -0
- package/skills/open-code-review-rules/scripts/verify_ocr_rules.py +836 -0
- package/skills/plain-english-mode/SKILL.md +41 -0
- package/skills/pr-diagram-portfolio/SKILL.md +75 -0
- package/skills/pr-diagram-portfolio/references/angle-framework.md +124 -0
- package/skills/pr-diagram-portfolio/references/portfolio-delivery.md +79 -0
- package/skills/pr-diagram-portfolio/scripts/restore_still_css.py +180 -0
- package/skills/pr-lens/LICENSE-upstream +21 -0
- package/skills/pr-lens/SKILL.md +99 -0
- package/skills/pr-lens/VENDOR.md +47 -0
- package/skills/pr-lens/package-lock.json +91 -0
- package/skills/pr-lens/package.json +9 -0
- package/skills/pr-lens/references/config.md +90 -0
- package/skills/pr-lens/references/example.graph.json +580 -0
- package/skills/pr-lens/references/graph-document.md +233 -0
- package/skills/pr-lens/skill-release.json +16 -0
- package/skills/security-remediation-epic/SKILL.md +316 -0
- package/skills/security-remediation-epic/prompt-template.md +33 -0
- package/skills/skill-maintainer/SKILL.md +99 -0
- package/skills/skill-maintainer/references/placement-and-coupling.md +43 -0
- package/skills/skill-maintainer/scripts/audit_skills.py +297 -0
- package/skills/t3-successor-handoff/SKILL.md +141 -0
- package/skills/t3-thread-bridge/SKILL.md +175 -0
- package/skills/t3-thread-bridge/references/launch-recipes.md +123 -0
- package/skills/t3-thread-bridge/references/ping-back.md +108 -0
- package/skills/t3-thread-bridge/scripts/thread_ledger.py +203 -0
- package/skills/t3-ticket-orchestrator/SKILL.md +304 -0
- package/skills/t3-ticket-orchestrator/references/proving-the-gates.md +63 -0
- package/skills/ulw-plan/SKILL.md +98 -0
- package/skills/ulw-plan/references/full-workflow.md +255 -0
- package/skills/ulw-plan/references/intent-clear.md +44 -0
- package/skills/ulw-plan/references/intent-unclear.md +44 -0
- package/skills/ulw-plan/scripts/plan-templates.mjs +180 -0
- package/skills/ulw-plan/scripts/scaffold-plan.mjs +187 -0
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: frontend-design
|
|
3
|
+
description: "Build or fix web UI without the generic AI look: a product-specific direction written before any code, a 4–6 colour token system with type and spacing rails, tiered anti-slop gates, a nine-pass refactor order for existing screens, microcopy rules that strip AI tone, and render verification with a fresh-context review, plus the vendored sloplint gate checker when Node is available. Use when asked to design or build a page, app screen, dashboard or landing page, to redesign or restyle existing UI, or to fix vibecoded, template-looking or AI-slop interfaces and their copy."
|
|
4
|
+
metadata:
|
|
5
|
+
short-description: Direction before code, token discipline, anti-slop gates, nine-pass refactor, de-AI'd copy, render-verified
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Frontend Design
|
|
9
|
+
|
|
10
|
+
Slop is not a skill problem, it is a defaults problem. A model under-specified produces the
|
|
11
|
+
same page for every product: purple-to-blue gradients, a pill above the headline, identical
|
|
12
|
+
rounded cards, glowing chrome, copy that shouts. Those are not choices, they are the absence
|
|
13
|
+
of choices. The brief's own words always win, including when they ask for one of these looks;
|
|
14
|
+
this skill governs every axis the brief leaves free.
|
|
15
|
+
|
|
16
|
+
The difference between slop and craft is where the richness goes. Slop spreads colour and
|
|
17
|
+
effects over the chrome: backgrounds, buttons, borders, labels. Craft keeps the chrome quiet
|
|
18
|
+
and puts the richness into one or two moments of content people remember. Each screen gets
|
|
19
|
+
**one bright element**, quiet chrome, a clear idea, text on calm space, and real product
|
|
20
|
+
material. Everything below serves that.
|
|
21
|
+
|
|
22
|
+
## 1. Triage
|
|
23
|
+
|
|
24
|
+
Before anything else, work out what kind of job this is.
|
|
25
|
+
|
|
26
|
+
| Signal | Job | Path |
|
|
27
|
+
| --- | --- | --- |
|
|
28
|
+
| Nothing exists yet | Greenfield build | §2 direction, §3 tokens, §4 build |
|
|
29
|
+
| Glow, gradients, emoji icons, hype copy, arbitrary spacing | Heavy slop | Full refactor: §2 direction, then §5 nine passes |
|
|
30
|
+
| Works, but reads template-ish | Light slop | Polish mode: take direction from the existing brand, fix audited signs only, bigger ideas become suggestions |
|
|
31
|
+
| Nothing wrong | No slop | Say so plainly. At most three refinements with exact values; apply only with agreement |
|
|
32
|
+
|
|
33
|
+
Ground in the real product first: screenshots, live URL, real data, real brand assets. Screenshot
|
|
34
|
+
the actual thing before designing for it. Never invent metrics, testimonials, logo walls or
|
|
35
|
+
case-study counts; unverifiable claims become quiet and specific if the user confirms they are
|
|
36
|
+
real, and are removed otherwise. Ask.
|
|
37
|
+
|
|
38
|
+
## 2. Direction, before any code
|
|
39
|
+
|
|
40
|
+
Write five short lines. Derive them from what the page says the product does and who it is
|
|
41
|
+
for. Never from what is trending.
|
|
42
|
+
|
|
43
|
+
- **Product.** What it does and for whom, in one plain sentence.
|
|
44
|
+
- **Character.** Two or three concrete words: `calm, exact, a little warm`; `fast, technical, playful`. The words *clean, modern, sleek, minimal, premium* are banned; they describe every template.
|
|
45
|
+
- **World.** The material the product naturally belongs to. A note app lives near paper and ink, a monitoring tool near instruments and night shifts. The world sets the tint of the neutrals, the accent, and the visual.
|
|
46
|
+
- **Moments.** One or two places where the screen gets rich colour, material and detail. Name them.
|
|
47
|
+
- **Signature.** One small detail only this product would have, used consistently: a live status dot for a monitor, keycaps for a dev tool, a route line for a delivery app. One detail, not five.
|
|
48
|
+
|
|
49
|
+
Then stop and check the direction before building:
|
|
50
|
+
|
|
51
|
+
- **Similar-prompt test.** Imagine a brief for a comparable product. If your plan would come out the same, it is the generic default, not a choice; revise the part that reads default, and say what changed and why.
|
|
52
|
+
- **Mirror test.** If a project log (`design.md`, below) exists from recent runs, differ from the last builds on at least three structural axes: palette posture, layout shape, hero treatment, type character.
|
|
53
|
+
- **Theme deal.** Stuck for a direction? Deal three themes from Hallmark's upstream 50-theme corpus (`references/themes/` at github.com/nutlope/hallmark): pick three whose material fits the World, choose by picture, and adapt the *material* (paper, accent posture, display character) — never the layout, which a theme never ships anyway.
|
|
54
|
+
- **Pre-emit critique.** Score the plan 1–5 on Philosophy (an argument, not a tone), Hierarchy (survives the squint test), Execution, Specificity (could belong to no other product), Restraint, Variety. Anything under 3 is revised first. Name the weakest axis and the fix taken; never invent a weakness to fill the field.
|
|
55
|
+
|
|
56
|
+
On a refactor, show the audit plus the direction to the user and **wait** before editing:
|
|
57
|
+
changing the direction later means redoing everything. Skip the wait only when the user
|
|
58
|
+
already said to just do it.
|
|
59
|
+
|
|
60
|
+
Write the direction into a `design.md` in the project. It is the build log: the five lines,
|
|
61
|
+
the tokens, the waivers (§6). Read it back at the start of any follow-up run on the same
|
|
62
|
+
project, and read sibling `design.md` files when starting a new one, so sessions do not
|
|
63
|
+
converge on one house look.
|
|
64
|
+
|
|
65
|
+
### The calibration list
|
|
66
|
+
|
|
67
|
+
These looks read as generated because models produce them regardless of subject. Where the
|
|
68
|
+
brief leaves an axis free, do not spend that freedom on one of these:
|
|
69
|
+
|
|
70
|
+
| The look | The tells |
|
|
71
|
+
| --- | --- |
|
|
72
|
+
| The cream editorial | Warm cream paper near `#F4F1EA`, high-contrast serif display, terracotta accent near `#D97757` |
|
|
73
|
+
| The acid terminal | Near-black background, one bright acid-green or vermilion accent, and nothing else |
|
|
74
|
+
| The broadsheet | Hairline rules everywhere, zero border-radius, dense newspaper columns |
|
|
75
|
+
| The SaaS-card kit | Content chopped into identical rounded cards, one radius on everything regardless of hierarchy, the same soft grey shadow under each, gradient washes as decoration |
|
|
76
|
+
| The template chrome | ALL-CAPS eyebrow above every heading, meta strings joined with middle dots (`A · B · C`), `WORD — fragment` labels with a spaced em dash, tinted near-black (`#0B0B0B`) standing in for black, monospace for small data labels, a `→` glued to link text |
|
|
77
|
+
|
|
78
|
+
All are legitimate for some briefs. They are defaults rather than choices, and a direction
|
|
79
|
+
that lands on one of them unasked has failed the similar-prompt test.
|
|
80
|
+
|
|
81
|
+
## 3. The token plan
|
|
82
|
+
|
|
83
|
+
One block, declared at `:root`, before any component. Every colour and every font goes
|
|
84
|
+
through a token; no literal colour or `font-family` past the token block. Raw `#000`/`#fff`
|
|
85
|
+
never appear as colours: tint toward the anchor hue.
|
|
86
|
+
|
|
87
|
+
The block opens with the stamp on its first non-empty line — `/* Hallmark · pre-emit
|
|
88
|
+
critique: P4 H4 E4 S5 R5 V4 · weakest: <axis>, <the fix taken> */` — carrying the §2
|
|
89
|
+
critique result. sloplint (§8) reads it, and Reflex waivers go directly below it (§6).
|
|
90
|
+
|
|
91
|
+
**Colour (4–6 named tokens).** One anchor hue. Neutrals are one ramp tinted toward the World,
|
|
92
|
+
not five near-identical tints of the same hue. Exactly three text roles from that ramp. One
|
|
93
|
+
accent, used rarely: in apps and dashboards the backgrounds, surfaces, borders and text stay
|
|
94
|
+
neutral, and a screen whose background reads as orange, brown, blue or green has gone too
|
|
95
|
+
far. Accent contrast 4.5:1 against what it sits on. Hairlines are the text colour at 6–10%
|
|
96
|
+
alpha. A gradient is allowed only as a small tone shift inside one neutral, never from one
|
|
97
|
+
hue to another. Mix colours in OKLCH, not a framework's stock swatches (Tailwind's
|
|
98
|
+
indigo-500/violet-600/slate-900 read as unmodified defaults). The Moments from the direction
|
|
99
|
+
are the exception: inside them colour can be rich.
|
|
100
|
+
|
|
101
|
+
**Type.** A display face chosen for the Character, a body face, at most one outlier; never
|
|
102
|
+
more than three families. Inter, Roboto, Open Sans, Poppins, Lato or the system face as the
|
|
103
|
+
*display* face is the stock default; the body face may be quiet. Hierarchy from size and
|
|
104
|
+
colour, not weight: 400/500 for running text, 600 at most for headings; no 700–900 headings,
|
|
105
|
+
no gradient text. Sentence case everywhere; no ALL-CAPS or tracked-caps labels at 15px or
|
|
106
|
+
under, no small-caps labels. Monospace is for code and real data, not costume labels. One
|
|
107
|
+
number format with tabular figures. Small text never gets negative letter-spacing.
|
|
108
|
+
|
|
109
|
+
| Role | Value |
|
|
110
|
+
| --- | --- |
|
|
111
|
+
| Body | 14–15px, line-height 20–22, measure 45–75ch (default 65) |
|
|
112
|
+
| Hero headline | 56–72 desktop, 36–44 mobile, line-height 1.02–1.08, left-aligned when long |
|
|
113
|
+
| Section head | Distinct steps; a head that needs a second look to rank has failed |
|
|
114
|
+
| Labels | Body face, a step smaller, sentence case, untracked |
|
|
115
|
+
|
|
116
|
+
Serif body text takes slightly more line-height than sans and may run a touch past the sans measure; Latin hero leading (1.02–1.08) never applies to Arabic, which needs 1.3–1.4 even on heads (see §5, RTL).
|
|
117
|
+
|
|
118
|
+
**Spacing.** Steps on the 4px scale only: `4 8 12 16 20 24 32 40 48 64 96 128`. No one-offs
|
|
119
|
+
(`mt-[13px]`). Same thing, same size: one height per list row, one gap per group. Space shows
|
|
120
|
+
grouping: gaps inside a group are smaller than gaps between groups. Density: compact padding
|
|
121
|
+
16, cards 20–24, page 24–32; navigation is the densest part of an app, rows 32–36 tall;
|
|
122
|
+
section labels 24 above, 8 below. Measure the sidebar after the spacing pass; it is where
|
|
123
|
+
spacing breaks most often.
|
|
124
|
+
|
|
125
|
+
**Layout constants.** Container capped and centred (1440–1600); at 1920 the gutters grow, the
|
|
126
|
+
measure and the grids do not. App sidebars 240–280; never shrink an app into a narrow centred
|
|
127
|
+
column. Image-bearing grid tracks use `minmax(0, 1fr)`; display heads carry
|
|
128
|
+
`overflow-wrap: break-word; min-width: 0`. `overflow-x: clip` on `html` and `body`.
|
|
129
|
+
|
|
130
|
+
**Radius.** One radius per nesting level: controls 8–10, cards 12–16, panels 14–20, keycaps
|
|
131
|
+
4–6; inner radius = outer radius minus padding, minimum 4.
|
|
132
|
+
|
|
133
|
+
**Motion.** One easing, `cubic-bezier(0.22, 1, 0.36, 1)`. Hover 120–180ms, menus 160–220,
|
|
134
|
+
entrances 300–500; stagger at most 40–60ms across at most six items. Press = scale to
|
|
135
|
+
0.97–0.98. At most one entrance on load; not every card flying in from a different side.
|
|
136
|
+
|
|
137
|
+
## 4. Greenfield: build order
|
|
138
|
+
|
|
139
|
+
1. Sketch the layout as ASCII wireframes first, and decide alignment explicitly (left,
|
|
140
|
+
centre, justified, and why) before writing code. Icon-above-heading tile columns are the
|
|
141
|
+
stock shape; the hero, three features, CTA, footer sequence is the AI template. If the
|
|
142
|
+
content is genuinely a sequence, numbering is right; if not, numbered markers (01/02/03)
|
|
143
|
+
are decoration pretending to be structure.
|
|
144
|
+
2. Tokens first (`tokens` + `base` layers), then the hero. The hero's headline, one sentence
|
|
145
|
+
and primary action fit above the fold at 1280×800 without scrolling. About 80 words on any
|
|
146
|
+
one screen; the hero's text is the headline, one sentence and its actions.
|
|
147
|
+
3. The strongest hero is a scene or the real product view with the headline on its calm
|
|
148
|
+
part, or an asymmetric split; everything stacked and centred is the default. One primary
|
|
149
|
+
action, at most one secondary, and never a stock second action (*Learn more*, *Get
|
|
150
|
+
started*, *Book a demo*) beside it.
|
|
151
|
+
4. Sections below the fold, each with one big thing that is its reason to exist. A screen of
|
|
152
|
+
small things on a wide canvas is a dead band.
|
|
153
|
+
5. Structural devices (borders, eyebrows, dividers, labels) must encode information, not
|
|
154
|
+
decorate. Copy length is written before type and layout: the length of the headline
|
|
155
|
+
decides its size and where it sits.
|
|
156
|
+
6. Verify per §8 after the hero, before building all sections.
|
|
157
|
+
|
|
158
|
+
## 5. Refactor: nine passes, in order
|
|
159
|
+
|
|
160
|
+
Fix an existing screen one layer at a time, across the whole screen, in this order. The
|
|
161
|
+
order is causal: spacing first because everything else reads differently once the rhythm is
|
|
162
|
+
right; copy before type and layout because headline length decides its size and position;
|
|
163
|
+
visuals and motion last because they must fit a screen that already works without them.
|
|
164
|
+
Finish each pass across the whole screen before starting the next. Keep the product: same
|
|
165
|
+
features, same content, same section order. Audit first (walk the gates table, §6), one line
|
|
166
|
+
per sign with where it lives.
|
|
167
|
+
|
|
168
|
+
1. **Spacing** — the 4px scale, grouping, alignment columns (icons, labels, right-aligned
|
|
169
|
+
numbers), density rails. Kill every one-off value.
|
|
170
|
+
2. **Colour** — collapse to the token plan: one neutral ramp, three text roles, one accent,
|
|
171
|
+
gradients only as neutral tone shifts. Remove coloured glows, coloured shadows, radial
|
|
172
|
+
washes and blobs behind content, neon borders. Dark-mode depth comes from surface steps,
|
|
173
|
+
not glow.
|
|
174
|
+
3. **Icons** — every emoji becomes a line icon from one set (lucide default) or nothing. One
|
|
175
|
+
size and stroke (16/18px, 1.5); icons take their text role's colour; fixed icon-box widths
|
|
176
|
+
so labels align; a sparkle ✨ for anything AI is removed. Drop icons that add nothing.
|
|
177
|
+
4. **Copy** — §7 in full. Headlines that could not fit another product; no exclamation marks;
|
|
178
|
+
no greeting headlines (`Welcome back, Damir! 👋` becomes `October 2026`); short labels
|
|
179
|
+
(`Search`, not `Search anything...`); changes state their comparison (`+12% vs last
|
|
180
|
+
month`); no trailing periods on short strings; kill `PRO`, `New ✨`, `Beta 🚀` badges.
|
|
181
|
+
5. **Type** — the §3 type table applied: weights down, hierarchy from size and colour,
|
|
182
|
+
sentence case, `NAVIGATION` with wide tracking becomes `Navigation`, tabular numbers in one
|
|
183
|
+
format.
|
|
184
|
+
6. **Layout** — keep proportions real: sidebar and container widths per §3; the hero becomes
|
|
185
|
+
a scene, an asymmetric split, or text over a large product view; long headlines align
|
|
186
|
+
left; quiet nav.
|
|
187
|
+
7. **Details** — nested radius math; keycaps for shortcuts; charts to discipline (muted grid,
|
|
188
|
+
mono labels, one or two series, one highlight on the thing that matters; one main chart is
|
|
189
|
+
clearly the biggest thing on the screen, never a second chart of the same size); stat
|
|
190
|
+
cards are numbers only, no sparklines or mini bars added to fill them; vary card sizes,
|
|
191
|
+
equal-width rows read as a template; the Signature appears where it belongs and nowhere
|
|
192
|
+
else.
|
|
193
|
+
8. **Visuals** — decorative filler goes: glossy blobs, orbs, nebulas, floating cubes, glowing
|
|
194
|
+
grids, holographic brains, hand-drawn browser windows. Dashboards almost never need
|
|
195
|
+
generated images. A landing hero may take one generated scene from the World with calm
|
|
196
|
+
space for text; the product preview is built in code with plausible data. If no image
|
|
197
|
+
generation is available, leave empty slots of the right size with written prompts.
|
|
198
|
+
9. **Motion** — remove purposeless loops (`animate-pulse`, shimmer, breathing glows on things
|
|
199
|
+
that are not live, parallax), `transition-all`, bouncy springs, `hover:scale`. Keep
|
|
200
|
+
explanatory motion: hover = colour change, press = tiny scale down, number tweens. Named
|
|
201
|
+
transitions only (`transition-colors`); never animate width, height, top, left, margins
|
|
202
|
+
or large blurs; one easing curve.
|
|
203
|
+
|
|
204
|
+
Do not rename the product, even when the name has AI in it. Do not replace removed
|
|
205
|
+
decoration with new decoration, and do not swap one trend for another: glass, grain, noise,
|
|
206
|
+
neon and bento grids are the next defaults, not fixes. A violet-to-blue gradient, sparkles
|
|
207
|
+
and glow are slop even inside the logo, so they do not count as brand unless the user says
|
|
208
|
+
they do; when the logo itself is slop, redraw it flat: the wordmark alone in the new type.
|
|
209
|
+
|
|
210
|
+
### Right to left
|
|
211
|
+
|
|
212
|
+
Most RTL slop is not decoration: it is a left-to-right screen with the words swapped, so the
|
|
213
|
+
text runs one way and everything around it runs the other. Fix direction first, then run the
|
|
214
|
+
passes as usual. The full rules live in `references/rtl.md`; the load-bearing ones:
|
|
215
|
+
|
|
216
|
+
- `<html lang="ar" dir="rtl">` on the root, and logical properties everywhere
|
|
217
|
+
(`margin-inline-start`, `text-align: start`; Tailwind `ms-*`, `ps-*`, `start-*`), so the
|
|
218
|
+
layout mirrors itself. A hard `left`/`right`/`ml-*` is a bug waiting for the other
|
|
219
|
+
direction. Never flip whole containers with `transform: scaleX(-1)` — it mirrors the text
|
|
220
|
+
too. The whole screen mirrors: sidebar right, logo top-right, back arrow points right,
|
|
221
|
+
progress fills from the right.
|
|
222
|
+
- Mirror icons that show direction (arrows, chevrons, undo, reply, send, indent); never
|
|
223
|
+
mirror media controls, clocks, checkmarks, download arrows, logos or anything with Latin
|
|
224
|
+
letters. Mirror the icon only, or pick the opposite glyph from the set.
|
|
225
|
+
- Latin words, numbers, code and links inside RTL text go in `<bdi>`; signed numbers
|
|
226
|
+
(`+12%`) go in `<bdi dir="ltr">` or the sign jumps to the far side; user-typed content
|
|
227
|
+
gets `dir="auto"` on an inline element only, never on a block or table cell. Email, URL
|
|
228
|
+
and phone inputs stay `dir="ltr"` with `text-align: end`.
|
|
229
|
+
- One digit system for the whole screen (Western 0–9 or Arabic-Indic ٠–٩; Persian ۰–۹),
|
|
230
|
+
formatted with `Intl.NumberFormat`, never hand-built strings. Tabular figures still
|
|
231
|
+
align, to the column's end edge — the left edge in RTL.
|
|
232
|
+
- Type drawn for the script with real weights, paired with its Latin sibling so mixed lines
|
|
233
|
+
keep one texture (IBM Plex Sans Arabic, Noto Sans Arabic, Readex Pro, Vazirmatn; Hebrew:
|
|
234
|
+
Noto Sans Hebrew, Heebo, Rubik). Cairo and Tajawal on everything are the Arabic Inter.
|
|
235
|
+
Letter-spacing is always 0 — tracking pulls joined letters apart. No italics: the browser
|
|
236
|
+
fakes a slant and it reads broken. Arabic body is 15–17px at line-height 1.6–1.8.
|
|
237
|
+
- Arabic punctuation (، ؛ ؟), Arabic hype words count as hype (ثوري، سحري، بلا حدود), short
|
|
238
|
+
labels (`بحث`, not `ابحث عن أي شيء...`). Scripture and quoted text are copied exactly from
|
|
239
|
+
a source the user names, set in a reading face, never restyled, shortened or invented; no
|
|
240
|
+
glow or gradient on it, verse ends marked with and the number.
|
|
241
|
+
|
|
242
|
+
## 6. Gates
|
|
243
|
+
|
|
244
|
+
Two tiers. **Floor** gates are never broken; no admired page breaks them on purpose, or they
|
|
245
|
+
are house rules against reflexes so reliable that the strictness is the point. **Reflex**
|
|
246
|
+
gates are defaults a model falls into; a build with a real reason may waive one, on the
|
|
247
|
+
record. A Reflex gate is waived in the CSS stamp block, directly below the critique line —
|
|
248
|
+
`/* Hallmark · waive 47b · <the guard evidence> · <reason about this page> */` — because the
|
|
249
|
+
linter re-derives the guard: a build that cannot state its guard usually finds it does not
|
|
250
|
+
hold. The reason shares a word with the page; boilerplate is rejected. A waiver you cannot
|
|
251
|
+
state is a waiver you do not have; waive a Floor gate and it is not a waiver, it is a
|
|
252
|
+
failure. Mirror waivers in `design.md`, and the same gate waived on three consecutive builds
|
|
253
|
+
is a house style, not an exception — record it as one. Words the user insists on are
|
|
254
|
+
material, not output: `copy: verbatim` in the stamp reports the copy gates as notes. Nothing
|
|
255
|
+
ships with an open Floor break or an unwaived Reflex.
|
|
256
|
+
|
|
257
|
+
### Colour and surface
|
|
258
|
+
|
|
259
|
+
| Tier | The sign | The fix |
|
|
260
|
+
| --- | --- | --- |
|
|
261
|
+
| Floor | Purple-to-blue, purple-to-pink or cyan-on-dark gradient anywhere, `background-clip: text` included | One anchor hue, solid ink |
|
|
262
|
+
| Floor | Raw `#000`/`#fff` outside the token block | Tint toward the anchor hue |
|
|
263
|
+
| Reflex | Any other gradient text, accent paint past ~5% of the viewport without a declared posture | Solid ink; weight or a display face; declare the posture in `design.md` if the moment earns it |
|
|
264
|
+
| Reflex | Aurora or mesh blobs behind text, floating blurred orbs, chromatic halos, glass cards with a white inner highlight and coloured shadow | Solid or grained surface; plain raised surface with a hairline; elevation by lightness |
|
|
265
|
+
| Reflex | A framework's stock palette used unmodified (indigo-500, violet-600, slate-900) | Colours mixed for this page in OKLCH |
|
|
266
|
+
| Reflex | Five near-identical tints of one hue as text colours | Three text roles from one neutral ramp |
|
|
267
|
+
|
|
268
|
+
### Type
|
|
269
|
+
|
|
270
|
+
| Tier | The sign | The fix |
|
|
271
|
+
| --- | --- | --- |
|
|
272
|
+
| Floor | One word or phrase in a heading set apart by italic, colour, weight, highlight or underline | The whole head one way |
|
|
273
|
+
| Reflex | Inter, Roboto, Open Sans, Poppins, Lato or the system face as the display face | A display face chosen for the Character |
|
|
274
|
+
| Reflex | More than three font families | Display, body, one outlier |
|
|
275
|
+
| Reflex | Prose measure outside 45–75ch | `max-width: 65ch` |
|
|
276
|
+
| Reflex | Headings at weight 800–900 | 400–500, size for hierarchy |
|
|
277
|
+
| Reflex | Monospace as costume on labels, captions and meta rows when the content is not code | Body face, sentence case |
|
|
278
|
+
| Floor | Any label in tracked capitals or small caps | Body face, a step smaller, sentence case, untracked |
|
|
279
|
+
|
|
280
|
+
### Layout and structure
|
|
281
|
+
|
|
282
|
+
| Tier | The sign | The fix |
|
|
283
|
+
| --- | --- | --- |
|
|
284
|
+
| Floor | Horizontal scroll anywhere from 320 to 1920 | `overflow-x: clip`; test the edges |
|
|
285
|
+
| Floor | Hero headline, one sentence and primary action not all visible at 1280×800 | Cut words, raise the fold |
|
|
286
|
+
| Floor | Card inside a card | One surface per level; separate with hairlines or space |
|
|
287
|
+
| Floor | About 80 words on one screen; a visitor takes one idea per screen or leaves | Cut to the idea |
|
|
288
|
+
| Reflex | The AI template shape: hero, three features, CTA, footer | A shape decided by the content |
|
|
289
|
+
| Reflex | Icon-above-heading tile columns; equal-width card rows | Vary the sizes; decide the grid from the content |
|
|
290
|
+
| Reflex | Dead bands and thin sections: small things scattered on a wide canvas | One big thing per section, or merge sections |
|
|
291
|
+
| Reflex | Drawn illustrations, empty coloured boxes where a picture should be, rows of counting marks | The real product, a real image, or nothing |
|
|
292
|
+
|
|
293
|
+
### Chrome and components
|
|
294
|
+
|
|
295
|
+
| Tier | The sign | The fix |
|
|
296
|
+
| --- | --- | --- |
|
|
297
|
+
| Floor | An eyebrow: short inert type above a heading that announces it, in any geometry (stacked, beside, pill, ordinal, `TRUSTED BY` over logos). Delete the line; if nothing was lost but a name for what comes next, it was an eyebrow | Open the section another way: the head itself, a fact, a change of material |
|
|
298
|
+
| Floor | Meta strings joined with middle dots (`A · B · C`), arrows glued to link text (`Learn more →`), decorative status dots | Line breaks, columns, hairlines; a verb as the label |
|
|
299
|
+
| Floor | An emoji as an icon, in nav, labels or status | One line icon set, or nothing |
|
|
300
|
+
| Floor | A fake browser or OS window drawn around content | The real product capture |
|
|
301
|
+
| Floor | A form or control that prints success ("Sent", "Reserved") with no request behind it | No success state until wired |
|
|
302
|
+
| Reflex | A pill badge above the headline (`✨ Introducing X 2.0`) | Remove, or a quiet text link if it is real news |
|
|
303
|
+
| Reflex | Charts with rainbow bars, glowing bars, pill-shaped bars, uppercase labels | One or two series, muted grid, mono labels, one highlight |
|
|
304
|
+
| Reflex | Logo mark as a glossy orb, gradient ball or glowing dot | Flat glyph in one solid colour, or the wordmark alone |
|
|
305
|
+
| Reflex | Mixed number formats (`$48,210` next to `$124,860.40`) | One format, tabular figures |
|
|
306
|
+
| Reflex | The reflex nav (wordmark left, inline links, button right, hairline under) or reflex footer (four link columns, social row, copyright) | Decide it and name it in the stamp (`nav:`, `footer:`), or build another shape |
|
|
307
|
+
| Reflex | The stock close: the page ends in an email sign-up when no mailing list is native to the job | End on what the visitor came to do — the booking, the buy box, the download, the next date — or the last strong section |
|
|
308
|
+
|
|
309
|
+
### Motion and access
|
|
310
|
+
|
|
311
|
+
| Tier | The sign | The fix |
|
|
312
|
+
| --- | --- | --- |
|
|
313
|
+
| Floor | `transition: all`; animating `width`, `height`, `top`, `left`, margins | Named properties, transforms and opacity |
|
|
314
|
+
| Floor | An interactive element without an instantly visible `:focus-visible` style | Focus ring that appears at 3:1 on first Tab |
|
|
315
|
+
| Floor | No `prefers-reduced-motion: reduce` fallback; content invisible with scripting off | Reduced-motion fallbacks; content at rest |
|
|
316
|
+
| Reflex | The same lift on every card on hover; fade-and-slide-up entrances on each section | One orchestrated moment, one entrance |
|
|
317
|
+
| Reflex | Bounce or overshoot easing; `animate-pulse`/`animate-ping` on things that are not live | The single easing; static |
|
|
318
|
+
| Reflex | An auto-rotating carousel or slider with no pause | Pause on hover and focus; still under reduced motion |
|
|
319
|
+
| Reflex | Controls styled in one state | Every state designed: default, hover, focus, filled, error, disabled, active |
|
|
320
|
+
|
|
321
|
+
### Copy tells
|
|
322
|
+
|
|
323
|
+
| Tier | The sign | The fix |
|
|
324
|
+
| --- | --- | --- |
|
|
325
|
+
| Floor | Placeholder names (Jane Doe, Acme, Nexus), buzzwords (seamless, robust, empower, supercharge, elevate, effortless, unlock, unleash, next-generation, world-class, best-in-class, industry-leading, mission-critical, future-proof), the rebuttal cadence three or more times ("Not a feature. A platform."), "quietly trusted by", filler openers, a stock second action beside the primary | What the product does, in its own nouns |
|
|
326
|
+
| Floor | An invented metric, testimonial, logo wall or case-study count | The user's number, or nothing |
|
|
327
|
+
| Reflex | Greeting headlines, exclamation marks, `PRO`/`Beta 🚀` badges, unverifiable claims | Plain headings; ask; remove |
|
|
328
|
+
|
|
329
|
+
**Finish checks** are craft detail, invisible at arm's length: reported and answered
|
|
330
|
+
(`answered F3 · <reason>` in the stamp), never blocking. The ones a human eye adds after
|
|
331
|
+
the linter: consistent quotes; `text-wrap: balance` on display heads; no orphan word alone
|
|
332
|
+
on a head's last line; page invariants (one primary button recipe, one container width, one
|
|
333
|
+
radius per nesting level); tabular numerals on changing figures; `::selection` and
|
|
334
|
+
`caret-color` themed once the palette is committed. **Ledger:** repetition reports at NOTE
|
|
335
|
+
and never counts toward the verdict — but a build sharing more than three of six structural
|
|
336
|
+
axes with a logged one has not varied enough; change a composition and say the delta.
|
|
337
|
+
|
|
338
|
+
## 7. Copy
|
|
339
|
+
|
|
340
|
+
Words appear in a design for one reason: to make it easier to understand and use. Bring the
|
|
341
|
+
same intentionality to copy that you bring to spacing and colour.
|
|
342
|
+
|
|
343
|
+
**Microcopy rules.**
|
|
344
|
+
|
|
345
|
+
- Write from the end user's perspective, in the user's nouns: a user manages notifications,
|
|
346
|
+
not webhook config. Being specific and legible beats being clever.
|
|
347
|
+
- A CTA says exactly what happens: "Save changes", not "Submit". An action keeps its name
|
|
348
|
+
through the flow: the button that says "Publish" produces a toast that says "Published".
|
|
349
|
+
That continuity is how people learn their way around.
|
|
350
|
+
- Errors don't apologize and are never vague. State what broke and how to fix it: "Card
|
|
351
|
+
declined — check the expiration date", never "Oops! Something went wrong". An empty screen
|
|
352
|
+
is an invitation to act, not an apology.
|
|
353
|
+
- Plain verbs, sentence case everywhere (no Title Case headings, no ALL-CAPS eyebrows), no
|
|
354
|
+
filler. Each element does exactly one job. Active voice as default.
|
|
355
|
+
|
|
356
|
+
**The hunt list.** On every pass over copy, hunt these patterns and fix or cut them:
|
|
357
|
+
|
|
358
|
+
- **Significance inflation:** "pivotal moment", "transformative", "landscape" without concrete
|
|
359
|
+
detail → facts, dates, or cut.
|
|
360
|
+
- **Vague attribution:** "experts believe", "studies show" → name the source or soften honestly.
|
|
361
|
+
- **Notability stacking:** lists of outlets or credentials as proof → one concrete citation, or remove.
|
|
362
|
+
- **Promotional geography:** "nestled", "breathtaking" → neutral description.
|
|
363
|
+
- **Formulaic adversity:** "despite challenges… continues to thrive" → the actual tradeoff, or cut.
|
|
364
|
+
- **AI vocabulary clusters:** additionally, testament, showcasing, underscores, fostering →
|
|
365
|
+
shows, helps, is.
|
|
366
|
+
- **Copula avoidance:** "serves as a catalyst" → "helps" / "is".
|
|
367
|
+
- **False range:** "from X to Y" covering everything → list what you actually mean.
|
|
368
|
+
- **Rule of three** where two items or one would do; **synonym cycling** (rotating labels for
|
|
369
|
+
one noun) → the one clearest term.
|
|
370
|
+
- **Em-dash pile-ups:** prefer commas, periods, parentheses.
|
|
371
|
+
- **Signposting openers:** "Let's dive in", "Here's what you need to know" → start with the
|
|
372
|
+
substance. **Chatbot residue:** "Great question", "I hope this helps" → delete.
|
|
373
|
+
- **Filler and hedges:** "in order to", "due to the fact that", "could potentially" → shorter
|
|
374
|
+
equivalents, one honest modal.
|
|
375
|
+
|
|
376
|
+
**Guardrails.** Do not fix into new problems: no fake specificity ("a 2021 study" invented to
|
|
377
|
+
order), no new clichés ("at the end of the day", "north star"), no reversing or softening
|
|
378
|
+
the author's stance, and clarity is never sacrificed to sound casual. Re-read the rewritten
|
|
379
|
+
copy once as a skeptic — "any remaining stock phrase, triple parallelism, or anonymous
|
|
380
|
+
authority?" — tighten what still sounds synthetic, and leave alone what already reads human.
|
|
381
|
+
|
|
382
|
+
**Voice.** When the user supplies a writing sample, calibrate to it instead of cleaning it:
|
|
383
|
+
average sentence length, contractions or their absence, hedging level, first or third
|
|
384
|
+
person, humour, prose versus lists. Extract the cues silently and apply them; do not paste
|
|
385
|
+
the analysis unless asked. With no sample, the interface's voice is the direction's
|
|
386
|
+
Character line, held in one register on every surface — never a different voice per label.
|
|
387
|
+
|
|
388
|
+
## 8. Verify
|
|
389
|
+
|
|
390
|
+
Nothing ships on assertion; the thread that built the page is its weakest reviewer.
|
|
391
|
+
|
|
392
|
+
1. **Render.** Screenshot the result with the browser tools (on this host, Chromium is at
|
|
393
|
+
`~/.local/bin/chromium`). Minimum set: full page at 375 and 1440, the fold at 1280×800,
|
|
394
|
+
and a spill check at 320 and 1920. The vendored linter's full sweep is 320, 375, 414, 768, 1024,
|
|
395
|
+
1280, 1440, 1920; use it when the layout is novel or fragile.
|
|
396
|
+
2. **Lint.** If Node 18+ is available, run `node scripts/sloplint.mjs <files-or-dirs>` from
|
|
397
|
+
this skill's directory against the built output (`.html`/`.css`, plus `.jsx`/`.tsx`/
|
|
398
|
+
`.vue`/`.svelte`/`.astro` markup and Tailwind class strings). Fix every `FAIL`; fix or
|
|
399
|
+
waive every `REFLEX` in the stamp. Gate numbers resolve against `scripts/gates.md`,
|
|
400
|
+
which wins on any disagreement. `--render` adds the live-DOM tier (the eight widths,
|
|
401
|
+
pixel-sampled contrast, accent coverage, a 16-Tab focus walk) when a Playwright Chromium
|
|
402
|
+
is available; `--url` lints a running dev server; `--scope app` skips the landing-page
|
|
403
|
+
gates on app screens; `--before`/`--kept` diff a redesign against a recorded baseline.
|
|
404
|
+
3. **Check the renders, not the source.** Horizontal spill at every width; fold geometry at
|
|
405
|
+
1280×800; text contrast where text actually sits (4.5:1), focus rings at 3:1; accent
|
|
406
|
+
coverage sanity (an accent that paints >8% of a viewport is a posture, declare it or
|
|
407
|
+
retreat); content visible with scripting off; reduced motion respected; walk 8–16 Tabs
|
|
408
|
+
and watch every ring appear; words-per-screen at ~80; anything readable at 1440 but
|
|
409
|
+
missing at 375.
|
|
410
|
+
4. **Fresh-context review.** Send the screenshots plus the five direction lines (nothing
|
|
411
|
+
else, no transcript) to a subagent that has not read this conversation, with this
|
|
412
|
+
charter: first word `ship` or `fix`; then at most five findings ranked by cost, each
|
|
413
|
+
naming where it lives. It checks: does the headline say something only this product
|
|
414
|
+
could say; does anything read as template (centred stack, pill above the headline,
|
|
415
|
+
gradient blob, empty box where a picture should be, two filled buttons side by side); is
|
|
416
|
+
the page's signature, its strongest real thing, on the first screen. Act on the first
|
|
417
|
+
word: fix what is real, re-render, and score each finding yourself (resolved / partial /
|
|
418
|
+
unresolved). One scoring round; the review is not a loop.
|
|
419
|
+
5. **Template check, last.** Swap the product name for another product's: if the screen
|
|
420
|
+
still fits, push the direction harder in the copy, the visual and the signature detail.
|
|
421
|
+
6. Budget the whole verification: one batched inspection, one fix batch, at most one
|
|
422
|
+
confirming round.
|
|
423
|
+
|
|
424
|
+
## 9. Hand back
|
|
425
|
+
|
|
426
|
+
Report the direction's five lines, the tokens, per-pass or per-section notes for what
|
|
427
|
+
changed, any waivers with their guards, and where the screenshots live. Show the user the
|
|
428
|
+
render, not a description of it.
|
|
429
|
+
|
|
430
|
+
---
|
|
431
|
+
|
|
432
|
+
*Lineage: the direction gate, nine passes, sign→fix audit and token rails from
|
|
433
|
+
[unslop](https://github.com/heydamir/unslop); tiered gates, waivers, fold geometry, word
|
|
434
|
+
budget, viewport sweep and fresh-context review from [hallmark](https://github.com/nutlope/hallmark);
|
|
435
|
+
the calibration list, two-pass plan and copy continuity rules from
|
|
436
|
+
[anthropics/frontend-design](https://github.com/anthropics/skills/tree/main/skills/frontend-design);
|
|
437
|
+
the copy hunt list and skeptic audit from [humaniser](https://github.com/kvokov/oh-my-ai).*
|
|
438
|
+
|
|
439
|
+
Vendored into this skill: `scripts/sloplint.mjs`, `scripts/sloplint-render.mjs` and
|
|
440
|
+
`scripts/gates.md` from [hallmark](https://github.com/nutlope/hallmark) at `04977e15`
|
|
441
|
+
(MIT — `scripts/LICENSE`); `references/rtl.md` from
|
|
442
|
+
[unslop](https://github.com/heydamir/unslop) (CC BY 4.0, credit kept in the file).
|
|
443
|
+
Update procedure: `scripts/README.md`.
|
|
@@ -0,0 +1,72 @@
|
|
|
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 screens use Noto Sans Hebrew, Heebo or Rubik with the same rules, and 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
|
+
## Scripture and quoted text
|
|
64
|
+
|
|
65
|
+
- 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.
|
|
66
|
+
- Set it in a face made for reading it, like Amiri Quran or a mushaf font for Quranic text, separate from the interface family.
|
|
67
|
+
- 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.
|
|
68
|
+
- The end of a verse is marked with (U+06DD) and its number in the digits of the screen, not with a glowing pill.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
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 @@
|
|
|
1
|
+
04977e15f3dfd6ee4b74c887dac3eb52665d6c92
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Hallmark contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Vendored tooling
|
|
2
|
+
|
|
3
|
+
| File | What it is |
|
|
4
|
+
| --- | --- |
|
|
5
|
+
| `sloplint.mjs` | Static anti-slop gate checker: reads `.html`/`.css` plus `.jsx`/`.tsx`/`.vue`/`.svelte`/`.astro` (markup, copy, Tailwind class strings). Zero dependencies, Node 18+. |
|
|
6
|
+
| `sloplint-render.mjs` | Render tier: live-DOM checks at 320/375/414/768/1024/1280/1440/1920 — horizontal spill, fold geometry, pixel-sampled contrast, accent coverage, a 16-Tab focus walk, screenshots. Requires Playwright with Chromium (on this host: `~/.local/bin/chromium`). |
|
|
7
|
+
| `gates.md` | The gate reference. Gate IDs in linter output resolve here; it wins on any disagreement between docs and tool. |
|
|
8
|
+
| `LICENSE` | Upstream MIT license. |
|
|
9
|
+
| `.upstream-sha` | The pinned upstream commit. |
|
|
10
|
+
|
|
11
|
+
- Source: https://github.com/nutlope/hallmark — `skills/hallmark/scripts/sloplint.mjs`, `skills/hallmark/scripts/sloplint-render.mjs`, `skills/hallmark/references/gates.md`, root `LICENSE`.
|
|
12
|
+
- Pinned commit: `04977e15f3dfd6ee4b74c887dac3eb52665d6c92` (main, 2026-11-11).
|
|
13
|
+
- Vendored: 2026-11-22.
|
|
14
|
+
|
|
15
|
+
**Not vendored:** the 50-theme corpus (`references/themes/`, ~50 `.md` + 50 `.jpg`), `theme.mjs`, `capture.mjs` and the fresh-context review prompts — the skill references the theme corpus upstream (theme deal, SKILL.md §2). Fetch from the same commit if a deal needs them locally.
|
|
16
|
+
|
|
17
|
+
**Update procedure:**
|
|
18
|
+
|
|
19
|
+
1. `git ls-remote https://github.com/nutlope/hallmark main` for the new SHA.
|
|
20
|
+
2. Re-download the four files from that SHA into this directory (paths above).
|
|
21
|
+
3. Update the SHA here, in `.upstream-sha`, and in SKILL.md's lineage footer.
|
|
22
|
+
4. Sanity-check: `node sloplint.mjs --help`, then a run against a small slop fixture — expect `FAIL` lines and exit 1; a clean stamped page should drop gate 20 and the Floor colour/literal gates.
|
|
23
|
+
|
|
24
|
+
The sibling `references/rtl.md` is vendored separately from https://github.com/heydamir/unslop (CC BY 4.0; credit line kept in the file).
|