feat(design): sweep off-system styles and add the check:design gate

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-30 20:39:44 +08:00
co-authored by Claude Haiku 4.5
parent ba9eeefe47
commit c5a98eed06
56 changed files with 335 additions and 216 deletions
+7 -7
View File
@@ -31,15 +31,15 @@ export function AdminPanel({ users, sites, siteOptions, trucks }: Props) {
key={t.id}
onClick={() => setTab(t.id)}
className={`px-4 py-2.5 text-sm font-medium border-b-2 -mb-px transition-colors cursor-pointer ${
tab === t.id
? 'border-green-600 text-green-700'
: 'border-transparent text-gray-500 hover:text-gray-700'
}`}
tab === t.id
? 'border-accent text-ink'
: 'border-transparent text-gray-500 hover:text-gray-700'
}`}
>
{t.label}
<span className={`ml-1.5 text-xs px-1.5 py-0.5 rounded-full ${
tab === t.id ? 'bg-green-100 text-green-700' : 'bg-gray-100 text-gray-500'
}`}>{t.count}</span>
<span className={`ml-1.5 text-xs px-1.5 py-0.5 ${
tab === t.id ? 'bg-neutral-100 text-ink' : 'bg-gray-100 text-gray-500'
}`}>{t.count}</span>
</button>
))}
</div>