🎨 fix(theme): align UI controls with global radius tokens

Remove hard-coded and capped border radius overrides so shared controls and feature actions consistently follow the active theme radius.

- Replace fixed radius utilities with semantic theme-aware radius tokens
- Remove redundant `rounded-full` and pixel-based overrides from header, toolbar, Playground, and utility actions
- Drop unused `StatusBadge` rounded prop usage
- Keep existing component behavior intact while improving global theme consistency
This commit is contained in:
t0ng7u
2026-05-08 01:50:03 +08:00
parent c19d5aa663
commit 948780e3fa
64 changed files with 193 additions and 129 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ const mockupVariants = cva(
{
variants: {
type: {
mobile: 'rounded-[48px] max-w-[350px]',
mobile: 'rounded-4xl max-w-[350px]',
responsive: 'rounded-md',
},
},
+1 -1
View File
@@ -94,7 +94,7 @@ export function NavGroup({ title, items }: NavGroupProps) {
* Navigation badge component
*/
function NavBadge({ children }: { children: ReactNode }) {
return <Badge className='rounded-full px-1 py-0 text-xs'>{children}</Badge>
return <Badge className='px-1 py-0 text-xs'>{children}</Badge>
}
/**
@@ -195,8 +195,11 @@ export function PublicHeader(props: PublicHeaderProps) {
{showAuthButtons && !loading && isAuthenticated && (
<ProfileDropdown />
)}
<button
className='hover:bg-muted/40 flex size-9 items-center justify-center rounded-lg transition-colors'
<Button
type='button'
variant='ghost'
size='icon'
className='size-9'
onClick={() => setMobileOpen((v) => !v)}
aria-label={t('Toggle navigation menu')}
>
@@ -220,7 +223,7 @@ export function PublicHeader(props: PublicHeaderProps) {
)}
/>
</div>
</button>
</Button>
</div>
</nav>
</div>