You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte-kit-vice/audit/components/section.md

1.7 KiB

Audit: section

audit-version: 1 audited-at: 2026-06-26 scope: eidos (eidos-only primitive) method: theming-coherence category sweep (layout), adversarially verified; roles + :Morfo lead-verified CLEAN across all eidos (no success/warning/danger/info; only alert-dialog uses :Morfo).

Summary

Counts (post-verification): CRITICAL 0 · HIGH 0 · MEDIUM 0 · LOW 1. conformance: Contract OK, size-keyed padding tokens defined locally (sm/md/lg/xl), width:100% set inline. as-const: true · roles clean: true · variants clean: true · has-recipe: false

Findings

LOW: MAGIC LITERAL calc() with hardcoded 1.5 multiplier — section-001

  • dimension: magic-literal
  • location: src/uix/eidos/components/section/section.css:17
  • evidence: 'padding-block-xl': 'calc(var(--space-16) * 1.5)'
  • impact: Multiplier 1.5 is a bespoke amplitude; breaks theming uniformity if space scale changes.
  • proposed-fix: Add --space-24 token or define --section-padding-block-xl in foundation to replace calc().
  • verify: [downgraded] base.ts:4071 / section.css:17 calc(var(--space-16) * 1.5). NOT a bare literal — it composes the canonical --space-16 token, so it stays density/scaling-aware. Spacing scale tops out at --space-16=64px (no --space-24 exists; confirmed grep), so xl=96px is legitimately off-scale and expressed via the nearest canonical token. The 1.5 multiplier is a documented amplitude (recipe + css comment: xl->9
  • fix-status: open

Theming facts (E-bis)

  • magic literals: 1.5 @ src/uix/eidos/components/section/section.css:17 -> bespoke calc() amplitude
  • magic z-index: none
  • non-canonical names: none
  • roles clean: true · variants clean: true

Powered by TurnKey Linux.