Setting the file. One moment.
Subchapter 1.6
references/best-practices-strict-rules.mdMarkdown5 KBView on GitHub
bg-base, border-base, color-base, color-active, btn-action).z-top-nav, z-panel-content, z-drawer-content) and use those names in markup.class="...").// @unocss-include when needed).font-mono + tabular-nums for technical values (counts, SHAs, timestamps, percentages).title.prefers-reduced-motion for any non-trivial motion.border-base/60 is invalid); define a new token for a new variation.transition: all; specify exact properties.<div class="w-screen h-screen flex flex-col of-hidden bg-base color-base font-sans">
<header class="h-nav shrink-0 flex items-center gap-2 px-3 border-b border-base bg-base z-top-nav">
<button class="btn-action-icon" aria-label="Open menu">
<span class="i-ph-list-duotone"></span>
</button>
<span class="font-mono text-xs truncate" title="workspace-name">workspace-name</span>
</header>
<main class="flex-1 min-h-0 of-auto">
<div class="p-4 flex items-center gap-2">
<span class="inline-flex items-center gap-1 px-1.5 py-px rounded border border-active bg-active color-active text-micro uppercase tracking-wide">
active
</span>
<span class="text-micro font-mono tabular-nums op-fade">12,480</span>
</div>
</main>
</div>Run before returning UI code. If a box cannot be ticked honestly, it is not done.
Foundations
Data and type
titlePolish
transition: allprefers-reduced-motionAnti-slop
Redesign (if applicable)