fix(design-lint): mark line-length, cream-palette and the caps leading rules page-only

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-10-26 05:50:05 +00:00
1 parent 56ce4aeb0d
commit ab8bb491ac
1 file changed
+4 -4
+4 -4
View File
@@ -42,17 +42,17 @@ export const RULES: Record<string, RuleMeta> = {
'zero-chroma-neutrals': { tier: 'ask', gate: '22', title: 'zero-chroma neutrals on a page with an anchor hue', fix: 'give the neutrals chroma 0.005 or more' },
'accent-footprint': { tier: 'ask', gate: '23', title: 'accent colour past about 5% of a viewport', fix: 'retreat the accent to actions and one signal' },
'glow-wash': { tier: 'ask', gate: '29', title: 'glow and wash: blurred orbs, a radial halo or a zero-offset coloured glow', fix: 'a solid or grained surface; elevation by lightness, shadows with offset and blur' },
'cream-palette': { tier: 'ask', gate: '65', title: 'the cream paper, serif display and terracotta accent look', fix: 'move one axis: the accent first, the paper second, the display last' },
'cream-palette': { tier: 'ask', gate: '65', title: 'the cream paper, serif display and terracotta accent look', fix: 'move one axis: the accent first, the paper second, the display last', pageOnly: true },
'framework-palette': { tier: 'ask', gate: '74', title: 'a framework default palette (Tailwind indigo-500, slate-900 and kin) as a token or utility', fix: 'a colour mixed for the page in OKLCH' },
// ── Type ──
'overused-font': { tier: 'ask', gate: '1', title: 'Inter, Roboto, Open Sans, Poppins, Lato or a system face as the display', fix: 'a display face chosen for the page' },
'line-length': { tier: 'ask', gate: '25', title: 'running prose outside 45 to 75 characters a line', fix: 'max-width: 65ch' },
'line-length': { tier: 'ask', gate: '25', title: 'running prose outside 45 to 75 characters a line', fix: 'max-width: 65ch', pageOnly: true },
'font-family-count': { tier: 'ask', gate: '37', title: 'more than three font families', fix: 'display, body and one outlier' },
'italic-word-in-heading': { tier: 'blocks', gate: '38i', title: 'one italic word inside an otherwise roman heading', fix: 'a line break, or the whole head set one way' },
'italic-serif-display': { tier: 'ask', gate: '38ii', title: 'an italic display system', fix: 'roman display, or declare it on --font-display with font-synthesis: none' },
'accented-word': { tier: 'ask', gate: '38iii', title: 'one word in a heading set apart by colour, weight, a highlight or an underline', fix: 'the whole head one way; a line break; a second line at a second size' },
'caps-leading': { tier: 'blocks', gate: '55a', title: 'an uppercase display head that can wrap with line-height under 1.0', fix: 'line-height 1.0 at least (1.02 to 1.08 recommended)' },
'caps-lockup-leading': { tier: 'ask', gate: '55b', title: 'a single-line caps lockup under 1.02', fix: 'line-height 1.02, or make sure it cannot wrap at 320px' },
'caps-leading': { tier: 'blocks', gate: '55a', title: 'an uppercase display head that can wrap with line-height under 1.0', fix: 'line-height 1.0 at least (1.02 to 1.08 recommended)', pageOnly: true },
'caps-lockup-leading': { tier: 'ask', gate: '55b', title: 'a single-line caps lockup under 1.02', fix: 'line-height 1.02, or make sure it cannot wrap at 320px', pageOnly: true },
'monospace-costume': { tier: 'ask', gate: '64', title: 'monospace on labels, captions or small type when the content is not code', fix: 'labels in the body face, a step smaller, normal case' },
'tiny-text': { tier: 'ask', gate: '75', title: 'running text under 12px, functional text under 11px, or prose leaded under 1.3', fix: 'body 16px at 1.5 to 1.65; labels one step smaller', render: true },
'wide-tracking': { tier: 'blocks', gate: '67', title: 'the tracked-caps label: small text set uppercase or letter-spaced past 0.03em', fix: 'the body face, a step smaller, sentence case, untracked' },