Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

MUL-7154: unify the global radius system (#8175)

Jiayuan Zhang378e3bd24b1b
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c820dfa359..070be0caf6 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -91,6 +91,8 @@ jobs:
- 'server/internal/handler/reserved_slugs.json'
- 'scripts/check-ui-wildcard-exports.mjs'
- 'scripts/check-ui-wildcard-exports.test.sh'
+ - 'scripts/check-ui-radius-tokens.mjs'
+ - 'scripts/check-ui-radius-tokens.test.mjs'
- 'scripts/selfhost-config.test.sh'
- 'scripts/drop-database.sh'
- 'scripts/remove-worktree.sh'
@@ -323,6 +325,12 @@ jobs:
bash scripts/check-ui-wildcard-exports.test.sh
node scripts/check-ui-wildcard-exports.mjs
+ - name: Check UI radius tokens
+ if: ${{ needs.changes.outputs.frontend == 'true' }}
+ run: |
+ node --test scripts/check-ui-radius-tokens.test.mjs
+ node scripts/check-ui-radius-tokens.mjs
+
# WARN PHASE — reports, never blocks. `shamefully-hoist=true` in .npmrc
# hides both halves of the drift this catches: an undeclared import still
# resolves, and an obsolete declaration still installs. Neither shows up
diff --git a/.github/workflows/mobile-verify.yml b/.github/workflows/mobile-verify.yml
index 4734e487de..22b9ef7cfc 100644
--- a/.github/workflows/mobile-verify.yml
+++ b/.github/workflows/mobile-verify.yml
@@ -27,6 +27,8 @@ on:
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
- "turbo.json"
+ - "scripts/check-ui-radius-tokens.mjs"
+ - "scripts/check-ui-radius-tokens.test.mjs"
- ".github/workflows/mobile-verify.yml"
pull_request:
branches: [main]
@@ -37,6 +39,8 @@ on:
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
- "turbo.json"
+ - "scripts/check-ui-radius-tokens.mjs"
+ - "scripts/check-ui-radius-tokens.test.mjs"
- ".github/workflows/mobile-verify.yml"
concurrency:
@@ -64,3 +68,8 @@ jobs:
- name: Type check, lint, and test
run: pnpm exec turbo typecheck lint test --filter=@multica/mobile
+
+ - name: Check UI radius tokens
+ run: |
+ node --test scripts/check-ui-radius-tokens.test.mjs
+ node scripts/check-ui-radius-tokens.mjs
diff --git a/apps/desktop/src/renderer/src/components/daemon-panel.tsx b/apps/desktop/src/renderer/src/components/daemon-panel.tsx
index 99f4315b8a..5f63c05d5b 100644
--- a/apps/desktop/src/renderer/src/components/daemon-panel.tsx
+++ b/apps/desktop/src/renderer/src/components/daemon-panel.tsx
@@ -477,7 +477,7 @@ function LevelBadge({ level }: { level: LogLevel }) {
return (
<span
className={cn(
- "inline-flex h-4 shrink-0 items-center rounded border px-1 text-micro font-medium uppercase tracking-wide",
+ "inline-flex h-4 shrink-0 items-center rounded-xs border px-1 text-micro font-medium uppercase tracking-wide",
LEVEL_BADGE_CLASS[level],
)}
>
@@ -513,7 +513,7 @@ function LogLineRow({
return (
<div
className={cn(
- "grid grid-cols-[auto_auto_minmax(0,1fr)] items-baseline gap-2 rounded px-2 py-0.5 hover:bg-accent/30",
+ "grid grid-cols-[auto_auto_minmax(0,1fr)] items-baseline gap-2 rounded-xs px-2 py-0.5 hover:bg-accent/30",
hasFields && "cursor-pointer",
)}
onClick={hasFields ? onToggle : undefined}
@@ -582,7 +582,7 @@ function GroupRows({
<button
type="button"
onClick={onToggle}
- className="my-0.5 ml-2 inline-flex w-fit items-center gap-2 rounded border border-dashed border-muted-foreground/25 bg-muted/30 px-2 py-0.5 text-micro italic text-muted-foreground hover:bg-muted/60 hover:text-foreground"
+ className="my-0.5 ml-2 inline-flex w-fit items-center gap-2 rounded-xs border border-dashed border-muted-foreground/25 bg-muted/30 px-2 py-0.5 text-micro italic text-muted-foreground hover:bg-muted/60 hover:text-foreground"
>
<span>···</span>
<span>
@@ -618,7 +618,7 @@ function GroupRows({
<button
type="button"
onClick={onToggle}
- className="my-0.5 ml-2 inline-flex w-fit items-center gap-2 rounded border border-dashed border-muted-foreground/25 px-2 py-0.5 text-micro italic text-muted-foreground hover:text-foreground"
+ className="my-0.5 ml-2 inline-flex w-fit items-center gap-2 rounded-xs border border-dashed border-muted-foreground/25 px-2 py-0.5 text-micro italic text-muted-foreground hover:text-foreground"
>
<span>···</span>
<span>
@@ -685,7 +685,7 @@ function highlight(text: string, query: string): ReactNode {
return (
<>
{text.slice(0, idx)}
- <mark className="rounded bg-warning/30 px-0.5 text-foreground">
+ <mark className="rounded-xs bg-warning/30 px-0.5 text-foreground">
{text.slice(idx, idx + query.length)}
</mark>
{text.slice(idx + query.length)}
diff --git a/apps/mobile/app/(app)/[workspace]/more/pins.tsx b/apps/mobile/app/(app)/[workspace]/more/pins.tsx
index 5b4e60164a..60bd2970a7 100644
--- a/apps/mobile/app/(app)/[workspace]/more/pins.tsx
+++ b/apps/mobile/app/(app)/[workspace]/more/pins.tsx
@@ -195,8 +195,8 @@ function ProjectPinRow({
function SkeletonRow() {
return (
<View className="px-4 py-3 flex-row items-center gap-3">
- <View className="size-5 rounded bg-muted" />
- <View className="flex-1 h-4 rounded bg-muted" />
+ <View className="size-5 rounded-xs bg-muted" />
+ <View className="flex-1 h-4 rounded-xs bg-muted" />
</View>
);
}
diff --git a/apps/mobile/components/chat/agent-picker-sheet.tsx b/apps/mobile/components/chat/agent-picker-sheet.tsx
index 27f3af300c..fe0d276f0b 100644
--- a/apps/mobile/components/chat/agent-picker-sheet.tsx
+++ b/apps/mobile/components/chat/agent-picker-sheet.tsx
@@ -19,6 +19,7 @@ import { Text } from "@/components/ui/text";
import { ActorAvatar } from "@/components/ui/actor-avatar";
import { cn } from "@/lib/utils";
import { isAgentRuntimeBound } from "@/lib/is-agent-runtime-bound";
+import { continuousCorners } from "@/lib/radius";
interface Props {
visible: boolean;
@@ -45,7 +46,10 @@ export function AgentPickerSheet({
<Pressable className="flex-1 bg-black/40" onPress={onClose}>
<View className="flex-1 items-center justify-center px-6">
<Pressable onPress={() => {}} className="w-full max-w-sm">
- <View className="bg-popover rounded-2xl overflow-hidden">
+ <View
+ className="bg-popover rounded-xl overflow-hidden"
+ style={continuousCorners}
+ >
<View className="px-4 py-3 border-b border-border">
<Text className="text-base font-semibold text-foreground">
Choose an agent
diff --git a/apps/mobile/components/chat/chat-message-list.tsx b/apps/mobile/components/chat/chat-message-list.tsx
index c347ff0fef..92bff06819 100644
--- a/apps/mobile/components/chat/chat-message-list.tsx
+++ b/apps/mobile/components/chat/chat-message-list.tsx
@@ -53,6 +53,7 @@ import type {
TaskMessagePayload,
} from "@multica/core/types";
import type { AgentAvailability } from "@multica/core/agents";
+import { continuousCorners } from "@/lib/radius";
import { taskMessagesOptions } from "@/data/queries/chat";
import { Text } from "@/components/ui/text";
import { Markdown } from "@/lib/markdown";
@@ -300,13 +301,14 @@ function MessageRow({
const body = (
<View
className={cn(
- "self-end max-w-[80%] gap-1.5 rounded-2xl border-2 px-3.5 py-2 transition-colors",
+ "self-end max-w-[80%] gap-1.5 rounded-xl border-2 px-3.5 py-2 transition-colors",
isSelecting
? "bg-primary/5 border-primary/30"
: longPress.isPressed
? "bg-muted border-primary/30"
: "bg-muted border-transparent",
)}
+ style={continuousCorners}
>
<Markdown
content={message.content}
@@ -544,11 +546,12 @@ function FailureBubble({
<View className="self-start max-w-[80%]">
<View
className={cn(
- "rounded-2xl border-2 bg-destructive/10 px-3.5 py-2 transition-colors",
+ "rounded-xl border-2 bg-destructive/10 px-3.5 py-2 transition-colors",
isSelecting || longPress.isPressed
? "border-primary/30"
: "border-destructive/30",
)}
+ style={continuousCorners}
>
<Text className="text-xs font-semibold text-destructive">
{reasonLabel}
@@ -572,7 +575,7 @@ function FailureBubble({
</View>
</CollapsibleTrigger>
<CollapsibleContent>
- <View className="mt-1 rounded bg-muted/40 px-2 py-1.5">
+ <View className="mt-1 rounded-xs bg-muted/40 px-2 py-1.5">
<Text
className="text-xs text-muted-foreground"
selectable={isSelecting}
diff --git a/apps/mobile/components/chat/chat-timeline.tsx b/apps/mobile/components/chat/chat-timeline.tsx
index b939d39e9b..c001d8de45 100644
--- a/apps/mobile/components/chat/chat-timeline.tsx
+++ b/apps/mobile/components/chat/chat-timeline.tsx
@@ -164,7 +164,7 @@ function ToolCallRow({ item }: { item: TaskMessagePayload }) {
</View>
</CollapsibleTrigger>
<CollapsibleContent>
- <View className="ml-4 mt-1 rounded bg-muted/40 px-2 py-1.5">
+ <View className="ml-4 mt-1 rounded-xs bg-muted/40 px-2 py-1.5">
<Text className="text-xs text-muted-foreground">
{JSON.stringify(item.input, null, 2)}
</Text>
@@ -199,7 +199,7 @@ function ToolResultRow({ item }: { item: TaskMessagePayload }) {
</View>
</CollapsibleTrigger>
<CollapsibleContent>
- <View className="ml-4 mt-1 rounded bg-muted/40 px-2 py-1.5">
+ <View className="ml-4 mt-1 rounded-xs bg-muted/40 px-2 py-1.5">
<Text className="text-xs text-muted-foreground">
{output.length > 4000
? `${output.slice(0, 4000)}\n…(truncated)`
diff --git a/apps/mobile/components/composer/message-composer.tsx b/apps/mobile/components/composer/message-composer.tsx
index 896a491222..8e7c98d9b3 100644
--- a/apps/mobile/components/composer/message-composer.tsx
+++ b/apps/mobile/components/composer/message-composer.tsx
@@ -57,6 +57,7 @@ import { useMentionDraftStore } from "@/data/stores/mention-draft-store";
import { useColorScheme } from "@/lib/use-color-scheme";
import { stripMarkdown } from "@/lib/strip-markdown";
import { THEME } from "@/lib/theme";
+import { continuousCorners } from "@/lib/radius";
import { Text } from "@/components/ui/text";
import { IconButton } from "@/components/ui/icon-button";
import {
@@ -518,8 +519,8 @@ export function MessageComposer({
)}
<View
- className="rounded-3xl border border-border bg-secondary"
- style={{ borderCurve: "continuous" }}
+ className="rounded-2xl border border-border bg-secondary"
+ style={continuousCorners}
>
{(mentions.length > 0 || attachments.length > 0) ? (
<View className="px-2 pt-2 pb-1">
diff --git a/apps/mobile/components/issue/activity-row.tsx b/apps/mobile/components/issue/activity-row.tsx
index 9549dea9af..f1fd40810e 100644
--- a/apps/mobile/components/issue/activity-row.tsx
+++ b/apps/mobile/components/issue/activity-row.tsx
@@ -152,7 +152,7 @@ export function ActivityRow({ entry }: { entry: TimelineEntry }) {
) : null}
</Text>
{showCoalesceBadge ? (
- <View className="bg-muted rounded px-1.5 py-0.5 shrink-0">
+ <View className="bg-muted rounded-xs px-1.5 py-0.5 shrink-0">
<Text className="text-xs font-medium text-muted-foreground tabular-nums">
×{entry.coalesced_count}
</Text>
diff --git a/apps/mobile/components/issue/comment-card.tsx b/apps/mobile/components/issue/comment-card.tsx
index 007219f8e9..ccf4b338cf 100644
--- a/apps/mobile/components/issue/comment-card.tsx
+++ b/apps/mobile/components/issue/comment-card.tsx
@@ -52,6 +52,7 @@ import { useFailedCommentsStore } from "@/data/stores/failed-comments-store";
import { useColorScheme } from "@/lib/use-color-scheme";
import { THEME } from "@/lib/theme";
import { cn } from "@/lib/utils";
+import { continuousCorners } from "@/lib/radius";
import { ReactionBar } from "./reaction-bar";
import { useCommentLongPress } from "./comment-context-menu";
import { useCommentSelectStore } from "@/data/comment-select-store";
@@ -137,7 +138,7 @@ export function CommentCard({
return (
<View className="px-4">
- <View className="rounded-2xl">
+ <View className="rounded-xl" style={continuousCorners}>
{/* Bubble uses `surface-1` (L 98%) — extremely subtle elevation
* above the page, visible mostly through the rounded edge rather
* than the fill (iOS settings cell feel; see Refactoring UI #4
@@ -153,11 +154,12 @@ export function CommentCard({
* body — mirrors web's muted resolved card visual. */}
<View
className={cn(
- "bg-surface-1 rounded-2xl px-4 py-3 gap-3 border-2 border-transparent transition-colors",
+ "bg-surface-1 rounded-xl px-4 py-3 gap-3 border-2 border-transparent transition-colors",
resolved && "opacity-70",
isHighlighted && "border-primary/30",
isSelectingHere && "bg-primary/5 border-primary/30",
)}
+ style={continuousCorners}
>
{resolved ? (
<ResolvedIndicator
@@ -245,7 +247,8 @@ function ResolvedThreadBar({
<View className="px-4">
<Pressable
onPress={onExpand}
- className="flex-row items-center gap-2.5 px-4 py-3 rounded-2xl bg-surface-1 active:opacity-70"
+ className="flex-row items-center gap-2.5 px-4 py-3 rounded-xl bg-surface-1 active:opacity-70"
+ style={continuousCorners}
accessibilityRole="button"
accessibilityLabel={`Resolved thread by ${authorsLabel}, ${total} ${total === 1 ? "message" : "messages"}. Tap to expand.`}
>
@@ -310,7 +313,7 @@ function ResolvedIndicator({
/**
* Animated highlight overlay for a root comment bubble. Sits absolute-
- * positioned over the parent <View className="rounded-2xl">, no pointer
+ * positioned over the parent <View className="rounded-xl">, no pointer
* capture (long-press still works through it). Border + background wash
* — equivalent to web's `ring-2 ring-brand/50 bg-brand/5`.
*
@@ -340,8 +343,8 @@ function RootHighlightOverlay({ active }: { active: boolean }) {
return (
<Animated.View
pointerEvents="none"
- className="absolute inset-0 rounded-2xl border-2 border-brand/50 bg-brand/5"
- style={style}
+ className="absolute inset-0 rounded-xl border-2 border-brand/50 bg-brand/5"
+ style={[continuousCorners, style]}
/>
);
}
diff --git a/apps/mobile/components/issue/description-field.tsx b/apps/mobile/components/issue/description-field.tsx
index 4ffc829a99..8fafedc2a4 100644
--- a/apps/mobile/components/issue/description-field.tsx
+++ b/apps/mobile/components/issue/description-field.tsx
@@ -1,7 +1,7 @@
/**
* Description input block shared by `new-issue.tsx` and `issue/[id]/edit.tsx`.
*
- * Focus-tinted `rounded-2xl` container wrapping the `AutosizeTextArea` —
+ * Focus-tinted `rounded-xl` container wrapping the `AutosizeTextArea` —
* matches the "write markdown body" treatment used by the comment composer
* so all three surfaces feel like the same control.
*
@@ -16,6 +16,7 @@ import { AutosizeTextArea } from "@/components/ui/autosize-textarea";
import { MIN_BODY_INPUT_HEIGHT_PX } from "@/components/ui/input-tokens";
import { cn } from "@/lib/utils";
import type { UseMentionInputReturn } from "@/lib/use-mention-input";
+import { continuousCorners } from "@/lib/radius";
export function DescriptionField({
description,
@@ -30,11 +31,12 @@ export function DescriptionField({
return (
<View
className={cn(
- "rounded-2xl border px-3",
+ "rounded-xl border px-3",
focused
? "border-primary/30 bg-secondary"
: "border-transparent bg-secondary/40",
)}
+ style={continuousCorners}
>
<AutosizeTextArea
value={description.text}
diff --git a/apps/mobile/components/issue/mention-suggestion-bar.tsx b/apps/mobile/components/issue/mention-suggestion-bar.tsx
index fda6c1d055..7d95666b72 100644
--- a/apps/mobile/components/issue/mention-suggestion-bar.tsx
+++ b/apps/mobile/components/issue/mention-suggestion-bar.tsx
@@ -413,7 +413,7 @@ function Badge({
return (
<View
className={cn(
- "px-1.5 py-0.5 rounded",
+ "px-1.5 py-0.5 rounded-xs",
tone === "brand"
? "bg-brand/10"
: tone === "outline"
diff --git a/apps/mobile/components/project/project-resources-section.tsx b/apps/mobile/components/project/project-resources-section.tsx
index ae8c797ca2..ac171b6ab8 100644
--- a/apps/mobile/components/project/project-resources-section.tsx
+++ b/apps/mobile/components/project/project-resources-section.tsx
@@ -64,7 +64,7 @@ export function ProjectResourcesSection({ projectId, onAdd }: Props) {
<Text className="text-xs uppercase tracking-wider text-muted-foreground font-medium">
Resources
</Text>
- <Pressable onPress={onAdd} className="px-2 py-1 active:bg-secondary rounded">
+ <Pressable onPress={onAdd} className="px-2 py-1 active:bg-secondary rounded-xs">
<Text className="text-xs text-brand">Add</Text>
</Pressable>
</View>
diff --git a/apps/mobile/components/ui/card.tsx b/apps/mobile/components/ui/card.tsx
index 914b7c775e..c38836729d 100644
--- a/apps/mobile/components/ui/card.tsx
+++ b/apps/mobile/components/ui/card.tsx
@@ -1,15 +1,17 @@
import * as React from "react";
import { Pressable, View, type PressableProps, type ViewProps } from "react-native";
import { cn } from "@/lib/utils";
+import { continuousCorners } from "@/lib/radius";
const Card = React.forwardRef<View, ViewProps & { className?: string }>(
- ({ className, ...props }, ref) => (
+ ({ className, style, ...props }, ref) => (
<View
ref={ref}
className={cn(
- "rounded-md border border-border bg-card p-4",
+ "rounded-xl border border-border bg-card p-4",
className,
)}
+ style={[continuousCorners, style]}
{...props}
/>
),
@@ -19,13 +21,18 @@ Card.displayName = "Card";
const CardPressable = React.forwardRef<
View,
PressableProps & { className?: string; children?: React.ReactNode }
->(({ className, children, ...props }, ref) => (
+>(({ className, children, style, ...props }, ref) => (
<Pressable
ref={ref as React.Ref<View>}
className={cn(
- "rounded-md border border-border bg-card p-4 active:bg-secondary",
+ "rounded-xl border border-border bg-card p-4 active:bg-secondary",
className,
)}
+ style={
+ typeof style === "function"
+ ? (state) => [continuousCorners, style(state)]
+ : [continuousCorners, style]
+ }
{...props}
>
{children as React.ReactNode}
diff --git a/apps/mobile/components/ui/text.tsx b/apps/mobile/components/ui/text.tsx
index 1f4c881481..a32ce3d85d 100644
--- a/apps/mobile/components/ui/text.tsx
+++ b/apps/mobile/components/ui/text.tsx
@@ -28,7 +28,7 @@ const textVariants = cva(
p: 'mt-3 leading-7 sm:mt-6',
blockquote: 'mt-4 border-l-2 pl-3 italic sm:mt-6 sm:pl-6',
code: cn(
- 'bg-muted relative rounded px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold'
+ 'bg-muted relative rounded-xs px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold'
),
lead: 'text-muted-foreground text-xl',
large: 'text-lg font-semibold',
diff --git a/apps/mobile/global.css b/apps/mobile/global.css
index 6aba6926e7..15df4346cd 100644
--- a/apps/mobile/global.css
+++ b/apps/mobile/global.css
@@ -39,7 +39,6 @@
--border: 0 0% 84%;
--input: 0 0% 84%;
--ring: 0 0% 63%;
- --radius: 0.625rem;
--chart-1: 12 76% 61%;
--chart-2: 173 58% 39%;
--chart-3: 197 37% 24%;
diff --git a/apps/mobile/lib/markdown/markdown-style.ts b/apps/mobile/lib/markdown/markdown-style.ts
index 727712d179..2f3342e506 100644
--- a/apps/mobile/lib/markdown/markdown-style.ts
+++ b/apps/mobile/lib/markdown/markdown-style.ts
@@ -20,6 +20,7 @@
* code incident.
*/
import { useMemo } from "react";
+import { MOBILE_RADIUS } from "@/lib/radius";
import { THEME } from "@/lib/theme";
import { useColorScheme } from "@/lib/use-color-scheme";
@@ -249,7 +250,7 @@ export function useMarkdownStyle() {
backgroundColor: t.surface2,
borderColor: t.border,
padding: 12,
- borderRadius: 8,
+ borderRadius: MOBILE_RADIUS.md,
marginBottom: MD_GAP.paragraph,
},
// Blockquote — `color` is REQUIRED: enriched's default is a hardcoded
@@ -285,7 +286,7 @@ export function useMarkdownStyle() {
marginLeft: 16,
},
image: {
- borderRadius: 8,
+ borderRadius: MOBILE_RADIUS.md,
marginBottom: MD_GAP.paragraph,
},
// Task lists. `checkedTextColor` REQUIRED: enriched default is `#000000`,
@@ -308,9 +309,8 @@ export function useMarkdownStyle() {
fontSize: MD_FONT.body,
lineHeight: MD_LINE.body,
borderColor: t.border,
- // borderRadius: 8 (was 6) — aligns with codeBlock and image (both 8).
- // No reason for table to be the odd one out.
- borderRadius: 8,
+ // Match the compact medium radius used by codeBlock and image.
+ borderRadius: MOBILE_RADIUS.md,
headerBackgroundColor: t.surface2,
headerTextColor: t.foreground,
// Transparent rows let the page background show through — works in
diff --git a/apps/mobile/lib/radius-tokens.json b/apps/mobile/lib/radius-tokens.json
new file mode 100644
index 0000000000..79b4f52ac3
--- /dev/null
+++ b/apps/mobile/lib/radius-tokens.json
@@ -0,0 +1,10 @@
+{
+ "xs": 3,
+ "sm": 4,
+ "md": 6,
+ "lg": 8,
+ "xl": 12,
+ "2xl": 16,
+ "3xl": 20,
+ "4xl": 24
+}
diff --git a/apps/mobile/lib/radius.ts b/apps/mobile/lib/radius.ts
new file mode 100644
index 0000000000..7c5f248d45
--- /dev/null
+++ b/apps/mobile/lib/radius.ts
@@ -0,0 +1,10 @@
+import type { ViewStyle } from "react-native";
+import radiusTokens from "./radius-tokens.json";
+
+/** Shared by NativeWind utilities and inline React Native styles. */
+export const MOBILE_RADIUS = radiusTokens;
+
+/** iOS-style continuous curves for mobile surfaces with large corner radii. */
+export const continuousCorners = {
+ borderCurve: "continuous",
+} satisfies ViewStyle;
diff --git a/apps/mobile/tailwind.config.js b/apps/mobile/tailwind.config.js
index 94bd45c966..27e1ea4fbd 100644
--- a/apps/mobile/tailwind.config.js
+++ b/apps/mobile/tailwind.config.js
@@ -7,6 +7,11 @@
* See apps/mobile/docs/rnr-migration.md §5 for the sync rule.
*/
const { hairlineWidth } = require("nativewind/theme");
+const radiusTokens = require("./lib/radius-tokens.json");
+
+const borderRadius = Object.fromEntries(
+ Object.entries(radiusTokens).map(([name, value]) => [name, `${value}px`]),
+);
/** @type {import('tailwindcss').Config} */
module.exports = {
@@ -68,11 +73,10 @@ module.exports = {
"surface-1": "hsl(var(--surface-1))",
"surface-2": "hsl(var(--surface-2))",
},
- borderRadius: {
- lg: "var(--radius)",
- md: "calc(var(--radius) - 2px)",
- sm: "calc(var(--radius) - 4px)",
- },
+ // React Native cannot consume the web package's CSS custom properties.
+ // Keep one mobile source for both NativeWind and inline RN styles; the
+ // radius guard verifies these resolved values against the web ladder.
+ borderRadius,
borderWidth: {
hairline: hairlineWidth(),
},
diff --git a/apps/mobile/tsconfig.json b/apps/mobile/tsconfig.json
index 057987c8fa..537752e435 100644
--- a/apps/mobile/tsconfig.json
+++ b/apps/mobile/tsconfig.json
@@ -1,6 +1,7 @@
{
"extends": "expo/tsconfig.base",
"compilerOptions": {
+ "resolveJsonModule": true,
"strict": true,
"paths": {
"@/*": [
diff --git a/apps/web/app/(landing)/usecases/[slug]/page.tsx b/apps/web/app/(landing)/usecases/[slug]/page.tsx
index c70fa088f1..c0b02df3ce 100644
--- a/apps/web/app/(landing)/usecases/[slug]/page.tsx
+++ b/apps/web/app/(landing)/usecases/[slug]/page.tsx
@@ -76,7 +76,7 @@ function MDXCTA({
<Link
href={href}
className={cn(
- "inline-flex items-center gap-2 rounded-[12px] px-5 py-3 text-body font-semibold not-italic transition-colors",
+ "inline-flex items-center gap-2 rounded-(--landing-radius-action) px-5 py-3 text-body font-semibold not-italic transition-colors",
variant === "primary"
? "bg-[#0a0d12] text-white hover:bg-[#0a0d12]/88"
: "border border-[#0a0d12]/15 text-[#0a0d12] hover:bg-[#0a0d12]/[0.04]",
@@ -191,7 +191,7 @@ function createMdxComponents(locale: SupportedLocale) {
},
code: (props: ComponentPropsWithoutRef<"code">) => (
<code
- className="rounded bg-[#0a0d12]/[0.06] px-1.5 py-0.5 font-mono text-[0.88em] text-[#0a0d12]"
+ className="rounded-xs bg-[#0a0d12]/[0.06] px-1.5 py-0.5 font-mono text-[0.88em] text-[#0a0d12]"
{...props}
/>
),
diff --git a/apps/web/app/custom.css b/apps/web/app/custom.css
index a2d83ceb60..7ba66de96d 100644
--- a/apps/web/app/custom.css
+++ b/apps/web/app/custom.css
@@ -16,6 +16,17 @@
color-scheme: light;
}
.landing-light {
+ /* Landing has an editorial radius language independent from product UI.
+ Components consume these by role, so a redesign does not require
+ rediscovering scattered one-off pixel values. */
+ --landing-radius-checkbox: 4px;
+ --landing-radius-menu-item: 6px;
+ --landing-radius-nav-item: 9px;
+ --landing-radius-control: 10px;
+ --landing-radius-button: 11px;
+ --landing-radius-action: 12px;
+ --landing-radius-menu: 14px;
+ --landing-radius-card: 16px;
--app-shell: oklch(0.964435 0.001327 286.375);
--page-canvas: oklch(0.988087 0 0);
--surface: oklch(1 0 0);
diff --git a/apps/web/app/global-error.tsx b/apps/web/app/global-error.tsx
index 24701bfdfd..55841ed0b6 100644
--- a/apps/web/app/global-error.tsx
+++ b/apps/web/app/global-error.tsx
@@ -51,6 +51,9 @@ export default function GlobalError({
<button
type="button"
onClick={reset}
+ // This boundary replaces the root layout, so neither design
+ // tokens nor utility classes are available here. Keep this 6px
+ // fallback aligned with the resolved product `radius-md`.
style={{
marginTop: 16,
padding: "8px 16px",
diff --git a/apps/web/features/landing/components/about-page-client.tsx b/apps/web/features/landing/components/about-page-client.tsx
index 2308c2a46e..9eebf7b23d 100644
--- a/apps/web/features/landing/components/about-page-client.tsx
+++ b/apps/web/features/landing/components/about-page-client.tsx
@@ -48,7 +48,7 @@ export function AboutPageClient() {
href={githubUrl}
target="_blank"
rel="noreferrer"
- className="inline-flex items-center gap-2.5 rounded-[12px] bg-[#0a0d12] px-5 py-3 text-body font-semibold text-white transition-colors hover:bg-[#0a0d12]/88"
+ className="inline-flex items-center gap-2.5 rounded-(--landing-radius-action) bg-[#0a0d12] px-5 py-3 text-body font-semibold text-white transition-colors hover:bg-[#0a0d12]/88"
>
<GitHubMark className="size-4" />
{t.about.cta}
diff --git a/apps/web/features/landing/components/contact-sales-page-client.tsx b/apps/web/features/landing/components/contact-sales-page-client.tsx
index 19909ee265..0d8eada2f5 100644
--- a/apps/web/features/landing/components/contact-sales-page-client.tsx
+++ b/apps/web/features/landing/components/contact-sales-page-client.tsx
@@ -205,7 +205,7 @@ function SuccessCard({
cta: string;
}) {
return (
- <div className="rounded-[16px] border border-[#0a0d12]/8 bg-white p-8 shadow-[0_1px_2px_rgba(10,13,18,0.04)] sm:p-10">
+ <div className="rounded-(--landing-radius-card) border border-[#0a0d12]/8 bg-white p-8 shadow-[0_1px_2px_rgba(10,13,18,0.04)] sm:p-10">
<h2 className="landing-serif text-[1.8rem] leading-[1.15] tracking-[-0.02em]">
{title}
</h2>
@@ -215,7 +215,7 @@ function SuccessCard({
<div className="mt-6">
<Link
href="/"
- className="inline-flex items-center gap-2 rounded-[11px] bg-[#0a0d12] px-5 py-2.5 text-label font-semibold text-white transition-colors hover:bg-[#0a0d12]/88"
+ className="inline-flex items-center gap-2 rounded-(--landing-radius-button) bg-[#0a0d12] px-5 py-2.5 text-label font-semibold text-white transition-colors hover:bg-[#0a0d12]/88"
>
{cta}
</Link>
@@ -259,9 +259,9 @@ function FormCard({
return (
<form
onSubmit={onSubmit}
- className="space-y-8 rounded-[16px] border border-[#0a0d12]/8 bg-white p-6 shadow-[0_1px_2px_rgba(10,13,18,0.04)] sm:p-10"
+ className="space-y-8 rounded-(--landing-radius-card) border border-[#0a0d12]/8 bg-white p-6 shadow-[0_1px_2px_rgba(10,13,18,0.04)] sm:p-10"
>
- <div className="rounded-[12px] border border-[#0a0d12]/8 bg-[#f7f8fa] p-4 text-label leading-[1.6] text-[#0a0d12]/72">
+ <div className="rounded-(--landing-radius-action) border border-[#0a0d12]/8 bg-[#f7f8fa] p-4 text-label leading-[1.6] text-[#0a0d12]/72">
<p className="font-semibold text-[#0a0d12]">
<span aria-hidden className="mr-1.5">📌</span>
{dict.notice.badge}
@@ -379,7 +379,7 @@ function FormCard({
maxLength={2000}
disabled={busy}
aria-describedby={goalsHintId}
- className="block w-full rounded-[10px] border border-[#0a0d12]/14 bg-white px-3.5 py-2.5 text-body text-[#0a0d12] placeholder:text-[#0a0d12]/35 transition-colors focus:border-[#0a0d12]/40 focus:outline-none focus:ring-2 focus:ring-[#0a0d12]/10 disabled:opacity-60"
+ className="block w-full rounded-(--landing-radius-control) border border-[#0a0d12]/14 bg-white px-3.5 py-2.5 text-body text-[#0a0d12] placeholder:text-[#0a0d12]/35 transition-colors focus:border-[#0a0d12]/40 focus:outline-none focus:ring-2 focus:ring-[#0a0d12]/10 disabled:opacity-60"
/>
</Field>
@@ -395,7 +395,7 @@ function FormCard({
{error ? (
<p
role="alert"
- className="rounded-[10px] border border-[#c83a3a]/24 bg-[#fdecec] px-4 py-3 text-label leading-[1.6] text-[#7a1d1d]"
+ className="rounded-(--landing-radius-control) border border-[#c83a3a]/24 bg-[#fdecec] px-4 py-3 text-label leading-[1.6] text-[#7a1d1d]"
>
{error}
</p>
@@ -404,7 +404,7 @@ function FormCard({
<button
type="submit"
disabled={busy}
- className="inline-flex w-full items-center justify-center rounded-[12px] bg-[#f04a2f] px-5 py-3 text-body font-semibold text-white transition-colors hover:bg-[#d63d24] disabled:cursor-not-allowed disabled:opacity-60 sm:w-auto"
+ className="inline-flex w-full items-center justify-center rounded-(--landing-radius-action) bg-[#f04a2f] px-5 py-3 text-body font-semibold text-white transition-colors hover:bg-[#d63d24] disabled:cursor-not-allowed disabled:opacity-60 sm:w-auto"
>
{busy ? dict.fields.submitting : dict.fields.submit}
</button>
@@ -490,7 +490,7 @@ function TextInput({
disabled={disabled}
aria-describedby={ariaDescribedBy}
aria-invalid={ariaInvalid}
- className="block w-full rounded-[10px] border border-[#0a0d12]/14 bg-white px-3.5 py-2.5 text-body text-[#0a0d12] placeholder:text-[#0a0d12]/35 transition-colors focus:border-[#0a0d12]/40 focus:outline-none focus:ring-2 focus:ring-[#0a0d12]/10 disabled:opacity-60 aria-[invalid=true]:border-[#c83a3a]/60 aria-[invalid=true]:focus:ring-[#c83a3a]/15"
+ className="block w-full rounded-(--landing-radius-control) border border-[#0a0d12]/14 bg-white px-3.5 py-2.5 text-body text-[#0a0d12] placeholder:text-[#0a0d12]/35 transition-colors focus:border-[#0a0d12]/40 focus:outline-none focus:ring-2 focus:ring-[#0a0d12]/10 disabled:opacity-60 aria-[invalid=true]:border-[#c83a3a]/60 aria-[invalid=true]:focus:ring-[#c83a3a]/15"
/>
);
}
@@ -519,7 +519,7 @@ function SelectInput({
onChange={(e) => onChange(e.target.value)}
required={required}
disabled={disabled}
- className="block w-full appearance-none rounded-[10px] border border-[#0a0d12]/14 bg-white bg-[url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%228%22%20viewBox%3D%220%200%2012%208%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M1%201.5L6%206.5L11%201.5%22%20stroke%3D%22%230a0d12%22%20stroke-opacity%3D%220.5%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E')] bg-[length:12px_8px] bg-[right_14px_center] bg-no-repeat px-3.5 py-2.5 pr-10 text-body text-[#0a0d12] transition-colors focus:border-[#0a0d12]/40 focus:outline-none focus:ring-2 focus:ring-[#0a0d12]/10 disabled:opacity-60"
+ className="block w-full appearance-none rounded-(--landing-radius-control) border border-[#0a0d12]/14 bg-white bg-[url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%228%22%20viewBox%3D%220%200%2012%208%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M1%201.5L6%206.5L11%201.5%22%20stroke%3D%22%230a0d12%22%20stroke-opacity%3D%220.5%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E')] bg-[length:12px_8px] bg-[right_14px_center] bg-no-repeat px-3.5 py-2.5 pr-10 text-body text-[#0a0d12] transition-colors focus:border-[#0a0d12]/40 focus:outline-none focus:ring-2 focus:ring-[#0a0d12]/10 disabled:opacity-60"
>
<option value="" disabled>
{placeholder}
@@ -602,7 +602,7 @@ function ConsentCheckbox({
checked={checked}
onChange={(e) => onChange(e.target.checked)}
disabled={disabled}
- className="mt-0.5 size-4 shrink-0 rounded-[4px] border-[#0a0d12]/30 text-[#0a0d12] focus:ring-[#0a0d12]/20 disabled:opacity-60"
+ className="mt-0.5 size-4 shrink-0 rounded-(--landing-radius-checkbox) border-[#0a0d12]/30 text-[#0a0d12] focus:ring-[#0a0d12]/20 disabled:opacity-60"
/>
<span>{label}</span>
</label>
diff --git a/apps/web/features/landing/components/download/hero.tsx b/apps/web/features/landing/components/download/hero.tsx
index 889b1bfb52..0f35eb6966 100644
--- a/apps/web/features/landing/components/download/hero.tsx
+++ b/apps/web/features/landing/components/download/hero.tsx
@@ -224,7 +224,7 @@ function PrimaryCta({
return (
<span
aria-disabled="true"
- className="inline-flex cursor-not-allowed items-center justify-center gap-2 rounded-[12px] border border-white/15 bg-white/8 px-5 py-3 text-body font-semibold text-white/60"
+ className="inline-flex cursor-not-allowed items-center justify-center gap-2 rounded-(--landing-radius-action) border border-white/15 bg-white/8 px-5 py-3 text-body font-semibold text-white/60"
>
{children}
</span>
diff --git a/apps/web/features/landing/components/features-section.tsx b/apps/web/features/landing/components/features-section.tsx
index 310db61190..0cd044f0df 100644
--- a/apps/web/features/landing/components/features-section.tsx
+++ b/apps/web/features/landing/components/features-section.tsx
@@ -239,7 +239,7 @@ function TeammatesVisual() {
<PropRow label="Status">
<button
type="button"
- className="flex items-center gap-1.5 cursor-pointer rounded px-1 -mx-1 hover:bg-accent/30 transition-colors"
+ className="flex items-center gap-1.5 cursor-pointer rounded-xs px-1 -mx-1 hover:bg-accent/30 transition-colors"
onClick={() => { setStatusOpen(!statusOpen); setPriorityOpen(false); }}
>
<StatusIcon status={status} className="h-3.5 w-3.5 shrink-0" />
@@ -272,7 +272,7 @@ function TeammatesVisual() {
<PropRow label="Priority">
<button
type="button"
- className="flex items-center gap-1.5 cursor-pointer rounded px-1 -mx-1 hover:bg-accent/30 transition-colors"
+ className="flex items-center gap-1.5 cursor-pointer rounded-xs px-1 -mx-1 hover:bg-accent/30 transition-colors"
onClick={() => { setPriorityOpen(!priorityOpen); setStatusOpen(false); }}
>
<PriorityIcon priority={priority} />
@@ -304,7 +304,7 @@ function TeammatesVisual() {
<PropRow label="Assignee">
<button
type="button"
- className="flex items-center gap-1.5 cursor-pointer rounded px-1 -mx-1 hover:bg-accent/30 transition-colors"
+ className="flex items-center gap-1.5 cursor-pointer rounded-xs px-1 -mx-1 hover:bg-accent/30 transition-colors"
onClick={() => { setPickerOpen(!pickerOpen); setStatusOpen(false); setPriorityOpen(false); }}
>
{assignee.type ? (
@@ -456,7 +456,7 @@ function AutonomousVisual() {
<button
type="button"
key={i}
- className="flex w-full items-center gap-2 rounded px-2 py-1 text-caption hover:bg-info/5 transition-colors"
+ className="flex w-full items-center gap-2 rounded-xs px-2 py-1 text-caption hover:bg-info/5 transition-colors"
onClick={() => setExpanded(isExpanded ? null : i)}
>
<ChevronRight className={cn("h-3 w-3 shrink-0 text-muted-foreground transition-transform", isExpanded && "rotate-90")} />
@@ -471,7 +471,7 @@ function AutonomousVisual() {
<button
type="button"
key={i}
- className="flex w-full items-center gap-2 rounded px-2 py-1 text-caption hover:bg-info/5 transition-colors"
+ className="flex w-full items-center gap-2 rounded-xs px-2 py-1 text-caption hover:bg-info/5 transition-colors"
onClick={() => setExpanded(isExpanded ? null : i)}
>
<ChevronRight className={cn("h-3 w-3 shrink-0 text-muted-foreground transition-transform", isExpanded && "rotate-90")} />
@@ -486,7 +486,7 @@ function AutonomousVisual() {
<button
type="button"
key={i}
- className="flex w-full items-center gap-2 rounded px-2 py-1 text-caption hover:bg-accent/50 transition-colors"
+ className="flex w-full items-center gap-2 rounded-xs px-2 py-1 text-caption hover:bg-accent/50 transition-colors"
onClick={() => setExpanded(isExpanded ? null : i)}
>
<ChevronRight className={cn("h-3 w-3 shrink-0 text-muted-foreground transition-transform", isExpanded && "rotate-90")} />
@@ -551,7 +551,7 @@ function SkillsVisual() {
<div className="w-[200px] shrink-0 border-r flex flex-col">
<div className="flex items-center justify-between border-b px-3 py-2">
<span className="text-caption font-semibold">Skills</span>
- <button type="button" className="rounded p-0.5 text-muted-foreground hover:bg-accent transition-colors">
+ <button type="button" className="rounded-xs p-0.5 text-muted-foreground hover:bg-accent transition-colors">
<Sparkles className="h-3.5 w-3.5" />
</button>
</div>
diff --git a/apps/web/features/landing/components/landing-footer.tsx b/apps/web/features/landing/components/landing-footer.tsx
index 8222c22ca4..f59bd3c7d3 100644
--- a/apps/web/features/landing/components/landing-footer.tsx
+++ b/apps/web/features/landing/components/landing-footer.tsx
@@ -67,7 +67,7 @@ export function LandingFooter() {
<div className="mt-6">
<Link
href={ctaHref}
- className="inline-flex items-center justify-center rounded-[11px] bg-white px-5 py-2.5 text-label font-semibold text-[#0a0d12] transition-colors hover:bg-white/88"
+ className="inline-flex items-center justify-center rounded-(--landing-radius-button) bg-white px-5 py-2.5 text-label font-semibold text-[#0a0d12] transition-colors hover:bg-white/88"
>
{user ? t.header.dashboard : t.footer.cta}
</Link>
diff --git a/apps/web/features/landing/components/landing-header.tsx b/apps/web/features/landing/components/landing-header.tsx
index b325013716..74ac4436bd 100644
--- a/apps/web/features/landing/components/landing-header.tsx
+++ b/apps/web/features/landing/components/landing-header.tsx
@@ -117,7 +117,7 @@ export function LandingHeader({
{isMenuOpen ? (
<div
className={cn(
- "absolute left-4 right-4 top-[calc(100%+8px)] z-50 rounded-[14px] border p-2 shadow-[0_18px_60px_rgba(0,0,0,0.18)] backdrop-blur-xl md:hidden",
+ "absolute left-4 right-4 top-[calc(100%+8px)] z-50 rounded-(--landing-radius-menu) border p-2 shadow-[0_18px_60px_rgba(0,0,0,0.18)] backdrop-blur-xl md:hidden",
variant === "dark"
? "border-white/14 bg-[#070a10]/95 text-white"
: "border-[#0a0d12]/10 bg-white text-[#0a0d12]",
@@ -175,7 +175,7 @@ function GitHubStarsBadge({ label }: { label: string }) {
function navLinkClassName(variant: "dark" | "light") {
return cn(
- "inline-flex h-9 items-center rounded-[9px] px-3 text-label font-medium transition-colors",
+ "inline-flex h-9 items-center rounded-(--landing-radius-nav-item) px-3 text-label font-medium transition-colors",
variant === "dark"
? "text-white/72 hover:bg-white/8 hover:text-white"
: "text-[#0a0d12]/62 hover:bg-[#0a0d12]/5 hover:text-[#0a0d12]",
@@ -184,7 +184,7 @@ function navLinkClassName(variant: "dark" | "light") {
function mobileNavLinkClassName(variant: "dark" | "light") {
return cn(
- "flex min-h-11 items-center gap-2 rounded-[10px] px-3 text-body font-medium transition-colors",
+ "flex min-h-11 items-center gap-2 rounded-(--landing-radius-menu-item) px-3 text-body font-medium transition-colors",
variant === "dark"
? "text-white/76 hover:bg-white/8 hover:text-white"
: "text-[#0a0d12]/68 hover:bg-[#0a0d12]/5 hover:text-[#0a0d12]",
diff --git a/apps/web/features/landing/components/landing-hero.tsx b/apps/web/features/landing/components/landing-hero.tsx
index bdb2906fe6..31839a157f 100644
--- a/apps/web/features/landing/components/landing-hero.tsx
+++ b/apps/web/features/landing/components/landing-hero.tsx
@@ -47,7 +47,7 @@ export function LandingHero() {
</Link>
<Link
href="/contact-sales"
- className="group inline-flex items-center justify-center gap-1.5 rounded-[12px] px-3 py-3 text-body font-semibold text-white/80 transition-colors hover:text-white"
+ className="group inline-flex items-center justify-center gap-1.5 rounded-(--landing-radius-action) px-3 py-3 text-body font-semibold text-white/80 transition-colors hover:text-white"
>
{t.hero.talkToSales}
<ArrowRight
diff --git a/apps/web/features/landing/components/open-source-section.tsx b/apps/web/features/landing/components/open-source-section.tsx
index b3b784b33c..3e28a36fb3 100644
--- a/apps/web/features/landing/components/open-source-section.tsx
+++ b/apps/web/features/landing/components/open-source-section.tsx
@@ -29,7 +29,7 @@ export function OpenSourceSection() {
href={githubUrl}
target="_blank"
rel="noreferrer"
- className="inline-flex items-center justify-center gap-2.5 rounded-[12px] bg-[#0a0d12] px-5 py-3 text-body font-semibold text-white transition-colors hover:bg-[#0a0d12]/88"
+ className="inline-flex items-center justify-center gap-2.5 rounded-(--landing-radius-action) bg-[#0a0d12] px-5 py-3 text-body font-semibold text-white transition-colors hover:bg-[#0a0d12]/88"
>
<GitHubMark className="size-4" />
{t.openSource.cta}
diff --git a/apps/web/features/landing/components/shared.tsx b/apps/web/features/landing/components/shared.tsx
index ca4b06c4fd..78d799d801 100644
--- a/apps/web/features/landing/components/shared.tsx
+++ b/apps/web/features/landing/components/shared.tsx
@@ -68,7 +68,7 @@ export function headerButtonClassName(
variant: "dark" | "light" = "dark",
) {
return cn(
- "inline-flex items-center justify-center gap-2 rounded-[11px] px-4 py-2.5 text-label font-semibold transition-colors",
+ "inline-flex items-center justify-center gap-2 rounded-(--landing-radius-button) px-4 py-2.5 text-label font-semibold transition-colors",
variant === "dark"
? tone === "solid"
? "bg-white text-[#0a0d12] hover:bg-white/92"
@@ -81,7 +81,7 @@ export function headerButtonClassName(
export function heroButtonClassName(tone: "ghost" | "solid") {
return cn(
- "inline-flex items-center justify-center gap-2 rounded-[12px] px-5 py-3 text-body font-semibold transition-colors",
+ "inline-flex items-center justify-center gap-2 rounded-(--landing-radius-action) px-5 py-3 text-body font-semibold transition-colors",
tone === "solid"
? "bg-white text-[#0a0d12] hover:bg-white/92"
: "border border-white/18 bg-black/16 text-white backdrop-blur-sm hover:bg-black/24",
diff --git a/package.json b/package.json
index 82fc2d75dc..217bf8a9de 100644
--- a/package.json
+++ b/package.json
@@ -25,6 +25,7 @@
"lint": "turbo lint --filter=!@multica/mobile",
"knip": "knip",
"check:ui-exports": "node scripts/check-ui-wildcard-exports.mjs",
+ "check:ui-radii": "node scripts/check-ui-radius-tokens.mjs",
"clean": "turbo clean && rm -rf node_modules",
"ui:add": "cd packages/ui && npx shadcn@latest add",
"generate:reserved-slugs": "node scripts/generate-reserved-slugs.mjs"
diff --git a/packages/ui/components/common/quick-emoji-picker.tsx b/packages/ui/components/common/quick-emoji-picker.tsx
index 1fc654f18d..42d9ff63ad 100644
--- a/packages/ui/components/common/quick-emoji-picker.tsx
+++ b/packages/ui/components/common/quick-emoji-picker.tsx
@@ -60,7 +60,7 @@ function QuickEmojiPicker({ onSelect, align = "start", className, ariaLabel = "A
key={emoji}
type="button"
onClick={() => handleSelect(emoji)}
- className="h-8 w-8 flex items-center justify-center rounded hover:bg-accent text-title-sm transition-colors"
+ className="h-8 w-8 flex items-center justify-center rounded-xs hover:bg-accent text-title-sm transition-colors"
>
{emoji}
</button>
@@ -69,7 +69,7 @@ function QuickEmojiPicker({ onSelect, align = "start", className, ariaLabel = "A
<button
type="button"
onClick={() => setShowFull(true)}
- className="mt-1.5 w-full text-caption text-muted-foreground hover:text-foreground text-center py-1 rounded hover:bg-accent transition-colors"
+ className="mt-1.5 w-full text-caption text-muted-foreground hover:text-foreground text-center py-1 rounded-xs hover:bg-accent transition-colors"
>
More emojis...
</button>
diff --git a/packages/ui/components/ui/badge.tsx b/packages/ui/components/ui/badge.tsx
index f03966621f..509894c68f 100644
--- a/packages/ui/components/ui/badge.tsx
+++ b/packages/ui/components/ui/badge.tsx
@@ -5,7 +5,7 @@ import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@multica/ui/lib/utils"
const badgeVariants = cva(
- "group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-caption font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
+ "group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-caption font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
{
variants: {
variant: {
diff --git a/packages/ui/components/ui/button.tsx b/packages/ui/components/ui/button.tsx
index e943afc13b..8cbaeaf9b4 100644
--- a/packages/ui/components/ui/button.tsx
+++ b/packages/ui/components/ui/button.tsx
@@ -45,14 +45,14 @@ const buttonVariants = cva(
size: {
default:
"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
- xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-caption in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
- sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-label in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
+ xs: "h-6 gap-1 rounded-md px-2 text-caption in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
+ sm: "h-7 gap-1 rounded-md px-2.5 text-label in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
icon: "size-8",
"icon-xs":
- "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
+ "size-6 rounded-md in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
"icon-sm":
- "size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg",
+ "size-7 rounded-md in-data-[slot=button-group]:rounded-lg",
"icon-lg": "size-9",
},
},
diff --git a/packages/ui/components/ui/card.tsx b/packages/ui/components/ui/card.tsx
index 9ab08940ec..a68c9799fa 100644
--- a/packages/ui/components/ui/card.tsx
+++ b/packages/ui/components/ui/card.tsx
@@ -12,7 +12,7 @@ function Card({
data-slot="card"
data-size={size}
className={cn(
- "group/card flex flex-col gap-4 overflow-hidden rounded-xl border border-surface-border bg-surface py-4 text-body text-surface-foreground shadow-[var(--surface-shadow)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
+ "group/card flex flex-col gap-4 overflow-hidden rounded-xl border border-surface-border bg-surface py-4 text-body text-surface-foreground shadow-[var(--surface-shadow)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:rounded-lg data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl data-[size=sm]:*:[img:first-child]:rounded-t-lg data-[size=sm]:*:[img:last-child]:rounded-b-lg",
className
)}
{...props}
@@ -25,7 +25,7 @@ function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
<div
data-slot="card-header"
className={cn(
- "group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",
+ "group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:rounded-t-lg group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",
className
)}
{...props}
@@ -84,7 +84,7 @@ function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
<div
data-slot="card-footer"
className={cn(
- "flex items-center rounded-b-xl border-t border-surface-border bg-surface-hover/70 p-4 group-data-[size=sm]/card:p-3",
+ "flex items-center rounded-b-xl border-t border-surface-border bg-surface-hover/70 p-4 group-data-[size=sm]/card:rounded-b-lg group-data-[size=sm]/card:p-3",
className
)}
{...props}
diff --git a/packages/ui/components/ui/checkbox.tsx b/packages/ui/components/ui/checkbox.tsx
index 3986766d2f..ffcf296930 100644
--- a/packages/ui/components/ui/checkbox.tsx
+++ b/packages/ui/components/ui/checkbox.tsx
@@ -11,7 +11,7 @@ function Checkbox({ className, indeterminate, ...props }: CheckboxPrimitive.Root
data-slot="checkbox"
indeterminate={indeterminate}
className={cn(
- "peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-indeterminate:border-primary data-indeterminate:bg-primary data-indeterminate:text-primary-foreground dark:data-indeterminate:bg-primary",
+ "peer relative flex size-4 shrink-0 items-center justify-center rounded-xs border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-indeterminate:border-primary data-indeterminate:bg-primary data-indeterminate:text-primary-foreground dark:data-indeterminate:bg-primary",
className
)}
{...props}
diff --git a/packages/ui/components/ui/select.tsx b/packages/ui/components/ui/select.tsx
index 0c1c966645..63d3c0ecf1 100644
--- a/packages/ui/components/ui/select.tsx
+++ b/packages/ui/components/ui/select.tsx
@@ -56,7 +56,7 @@ function SelectTrigger({
data-slot="select-trigger"
data-size={size}
className={cn(
- "flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-body whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-body whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-md *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className
)}
{...props}
diff --git a/packages/ui/components/ui/tabs.tsx b/packages/ui/components/ui/tabs.tsx
index 6c47dfbcfe..2e7947ee29 100644
--- a/packages/ui/components/ui/tabs.tsx
+++ b/packages/ui/components/ui/tabs.tsx
@@ -58,7 +58,7 @@ function TabsTrigger({ className, ...props }: TabsPrimitive.Tab.Props) {
<TabsPrimitive.Tab
data-slot="tabs-trigger"
className={cn(
- "relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-body font-medium whitespace-nowrap text-muted-foreground transition-[color,background-color,border-color,box-shadow] group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-[calc(var(--radius)-3px)] border border-transparent px-1.5 py-0.5 text-body font-medium whitespace-nowrap text-muted-foreground transition-[color,background-color,border-color,box-shadow] group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
"group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent",
"data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground",
"after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",
diff --git a/packages/ui/components/ui/toggle.tsx b/packages/ui/components/ui/toggle.tsx
index 68b43b0202..6b4b5c4efc 100644
--- a/packages/ui/components/ui/toggle.tsx
+++ b/packages/ui/components/ui/toggle.tsx
@@ -15,7 +15,7 @@ const toggleVariants = cva(
},
size: {
default: "h-8 min-w-8 px-2",
- sm: "h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-1.5 text-label",
+ sm: "h-7 min-w-7 rounded-md px-1.5 text-label",
lg: "h-9 min-w-9 px-2.5",
},
},
diff --git a/packages/ui/markdown/CodeBlock.tsx b/packages/ui/markdown/CodeBlock.tsx
index 41b3dde441..a310fef124 100644
--- a/packages/ui/markdown/CodeBlock.tsx
+++ b/packages/ui/markdown/CodeBlock.tsx
@@ -243,7 +243,7 @@ export function InlineCode({
return (
<code
className={cn(
- 'px-1.5 py-0.5 rounded bg-foreground/[0.03] border border-foreground/[0.05] font-mono text-body text-foreground',
+ 'px-1.5 py-0.5 rounded-xs bg-foreground/[0.03] border border-foreground/[0.05] font-mono text-body text-foreground',
CODE_LIGATURE_CLASS,
className
)}
diff --git a/packages/ui/markdown/Markdown.tsx b/packages/ui/markdown/Markdown.tsx
index 30fb7f1889..675b55badf 100644
--- a/packages/ui/markdown/Markdown.tsx
+++ b/packages/ui/markdown/Markdown.tsx
@@ -360,7 +360,7 @@ function createComponents(
type="checkbox"
checked={checked}
readOnly
- className="mr-2 rounded border-muted-foreground"
+ className="mr-2 rounded-xs border-muted-foreground"
/>
)
}
diff --git a/packages/ui/styles/tokens.css b/packages/ui/styles/tokens.css
index cba754f12c..dfe94e37df 100644
--- a/packages/ui/styles/tokens.css
+++ b/packages/ui/styles/tokens.css
@@ -51,13 +51,17 @@
--color-card: var(--card);
--color-foreground: var(--foreground);
--color-background: var(--background);
- --radius-sm: calc(var(--radius) * 0.6);
- --radius-md: calc(var(--radius) * 0.8);
+ /* Compact product radius ladder. Keep the roles stable even when the base
+ value changes: xs=micro controls, sm=nested surfaces, md=rows/menus,
+ lg=controls/compact surfaces, xl=cards/dialogs. */
+ --radius-xs: calc(var(--radius) * 0.375);
+ --radius-sm: calc(var(--radius) * 0.5);
+ --radius-md: calc(var(--radius) * 0.75);
--radius-lg: var(--radius);
- --radius-xl: calc(var(--radius) * 1.4);
- --radius-2xl: calc(var(--radius) * 1.8);
- --radius-3xl: calc(var(--radius) * 2.2);
- --radius-4xl: calc(var(--radius) * 2.6);
+ --radius-xl: calc(var(--radius) * 1.5);
+ --radius-2xl: calc(var(--radius) * 2);
+ --radius-3xl: calc(var(--radius) * 2.5);
+ --radius-4xl: calc(var(--radius) * 3);
}
/* Type scale — the only font sizes product UI may use.
@@ -196,7 +200,7 @@
--chart-3: oklch(0.76 0.10 255);
--chart-4: oklch(0.85 0.06 255);
--chart-5: oklch(0.92 0.03 255);
- --radius: 0.625rem;
+ --radius: 0.5rem;
--sidebar: oklch(0.964435 0.001327 286.375);
--sidebar-foreground: oklch(0.141 0.005 285.823);
--sidebar-primary: oklch(0.21 0.006 285.885);
diff --git a/packages/views/agents/components/agent-batch-toolbar.tsx b/packages/views/agents/components/agent-batch-toolbar.tsx
index 1a33384ce4..dbd4c89cc4 100644
--- a/packages/views/agents/components/agent-batch-toolbar.tsx
+++ b/packages/views/agents/components/agent-batch-toolbar.tsx
@@ -179,7 +179,7 @@ export function AgentBatchToolbar({
type="button"
aria-label={t(($) => $.actions.clear_selection)}
onClick={onClear}
- className="rounded p-0.5 transition-colors hover:bg-accent"
+ className="rounded-xs p-0.5 transition-colors hover:bg-accent"
>
<X className="size-3.5 text-muted-foreground" />
</button>
diff --git a/packages/views/agents/components/agent-live-peek-card.tsx b/packages/views/agents/components/agent-live-peek-card.tsx
index 510fd07f54..be7ddbd067 100644
--- a/packages/views/agents/components/agent-live-peek-card.tsx
+++ b/packages/views/agents/components/agent-live-peek-card.tsx
@@ -230,7 +230,7 @@ function LastActivityRow({
// matching the project's deliberate split between current and
// historical state.
<span
- className="inline-flex items-center gap-0.5 rounded bg-warning/10 px-1 py-0.5 text-micro font-medium text-warning"
+ className="inline-flex items-center gap-0.5 rounded-xs bg-warning/10 px-1 py-0.5 text-micro font-medium text-warning"
title={failedLabel}
>
<AlertTriangle className="h-2.5 w-2.5" />
diff --git a/packages/views/agents/components/agent-presence-indicator.tsx b/packages/views/agents/components/agent-presence-indicator.tsx
index 2e6871be27..d028ebc8fb 100644
--- a/packages/views/agents/components/agent-presence-indicator.tsx
+++ b/packages/views/agents/components/agent-presence-indicator.tsx
@@ -39,7 +39,7 @@ export function AgentPresenceIndicator({
return compact ? (
<Skeleton className="h-1.5 w-1.5 rounded-full" />
) : (
- <Skeleton className="h-3 w-24 rounded" />
+ <Skeleton className="h-3 w-24 rounded-xs" />
);
}
diff --git a/packages/views/agents/components/agents-page.tsx b/packages/views/agents/components/agents-page.tsx
index 32a877113a..71d4141931 100644
--- a/packages/views/agents/components/agents-page.tsx
+++ b/packages/views/agents/components/agents-page.tsx
@@ -399,7 +399,7 @@ function NameCell({ row }: { row: AgentListRow }) {
</Tooltip>
)}
{isOwnedByMe && (
- <span className="shrink-0 rounded bg-muted px-1 text-micro font-medium text-muted-foreground">
+ <span className="shrink-0 rounded-xs bg-muted px-1 text-micro font-medium text-muted-foreground">
{t(($) => $.row.you)}
</span>
)}
diff --git a/packages/views/agents/components/inspector/chip.ts b/packages/views/agents/components/inspector/chip.ts
index 227215d610..a7e003626c 100644
--- a/packages/views/agents/components/inspector/chip.ts
+++ b/packages/views/agents/components/inspector/chip.ts
@@ -3,7 +3,8 @@
* Concurrency).
*
* The defining choices:
- * - `rounded-md` (6px) — soft enough to feel like a button, not a tab.
+ * - `rounded-md` — the shared row/menu radius, soft enough to feel like a
+ * button rather than a tab.
* - `hover:bg-accent` — single hover layer carries the entire "this is a
* button" signal. We tried adding a hover-border on top, but layered hover
* states (border + bg) made the chip outline busier without adding info.
diff --git a/packages/views/agents/components/inspector/runtime-picker.tsx b/packages/views/agents/components/inspector/runtime-picker.tsx
index 0cdb1eb667..b22480ceef 100644
--- a/packages/views/agents/components/inspector/runtime-picker.tsx
+++ b/packages/views/agents/components/inspector/runtime-picker.tsx
@@ -383,12 +383,12 @@ export function RuntimePicker({
{label}
</span>
{rt.runtime_mode === "cloud" && (
- <span className="shrink-0 rounded bg-info/10 px-1 text-micro font-medium text-info">
+ <span className="shrink-0 rounded-xs bg-info/10 px-1 text-micro font-medium text-info">
{t(($) => $.create_dialog.runtime_cloud_badge)}
</span>
)}
{locked && (
- <span className="shrink-0 inline-flex items-center gap-0.5 rounded bg-muted px-1 text-micro font-medium text-muted-foreground">
+ <span className="shrink-0 inline-flex items-center gap-0.5 rounded-xs bg-muted px-1 text-micro font-medium text-muted-foreground">
<Lock className="h-2.5 w-2.5" />
{t(($) => $.create_dialog.runtime_private_badge)}
</span>
@@ -428,7 +428,7 @@ export function RuntimePicker({
{machine.title}
</span>
{machine.mode === "cloud" && (
- <span className="shrink-0 rounded bg-info/10 px-1 text-micro font-medium text-info">
+ <span className="shrink-0 rounded-xs bg-info/10 px-1 text-micro font-medium text-info">
{t(($) => $.create_dialog.runtime_cloud_badge)}
</span>
)}
@@ -507,7 +507,7 @@ function FilterButton({
<button
type="button"
onClick={onClick}
- className={`flex-1 rounded px-2 py-0.5 text-caption font-medium transition-colors ${
+ className={`flex-1 rounded-xs px-2 py-0.5 text-caption font-medium transition-colors ${
active
? "bg-background text-foreground shadow-sm"
: "text-muted-foreground hover:text-foreground"
diff --git a/packages/views/agents/components/runtime-picker.tsx b/packages/views/agents/components/runtime-picker.tsx
index 352032b0c4..0de60d4744 100644
--- a/packages/views/agents/components/runtime-picker.tsx
+++ b/packages/views/agents/components/runtime-picker.tsx
@@ -124,7 +124,7 @@ export function RuntimePicker({
type="button"
disabled={disabled}
onClick={() => handleFilterChange("mine")}
- className={`rounded px-2 py-0.5 text-caption font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 ${
+ className={`rounded-xs px-2 py-0.5 text-caption font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 ${
filter === "mine"
? "bg-background text-foreground shadow-sm"
: "text-muted-foreground hover:text-foreground"
@@ -136,7 +136,7 @@ export function RuntimePicker({
type="button"
disabled={disabled}
onClick={() => handleFilterChange("all")}
- className={`rounded px-2 py-0.5 text-caption font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 ${
+ className={`rounded-xs px-2 py-0.5 text-caption font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 ${
filter === "all"
? "bg-background text-foreground shadow-sm"
: "text-muted-foreground hover:text-foreground"
@@ -179,7 +179,7 @@ export function RuntimePicker({
: t(($) => $.create_dialog.runtime_none)}
</span>
{selectedRuntime?.runtime_mode === "cloud" && (
- <span className="shrink-0 rounded bg-info/10 px-1.5 py-0.5 text-caption font-medium text-info">
+ <span className="shrink-0 rounded-xs bg-info/10 px-1.5 py-0.5 text-caption font-medium text-info">
{t(($) => $.create_dialog.runtime_cloud_badge)}
</span>
)}
@@ -273,12 +273,12 @@ export function RuntimePicker({
{runtimeRowLabel(device, machine.title)}
</span>
{device.runtime_mode === "cloud" && (
- <span className="shrink-0 rounded bg-info/10 px-1.5 py-0.5 text-caption font-medium text-info">
+ <span className="shrink-0 rounded-xs bg-info/10 px-1.5 py-0.5 text-caption font-medium text-info">
{t(($) => $.create_dialog.runtime_cloud_badge)}
</span>
)}
{disabled && (
- <span className="shrink-0 inline-flex items-center gap-1 rounded bg-muted px-1.5 py-0.5 text-micro font-medium text-muted-foreground">
+ <span className="shrink-0 inline-flex items-center gap-1 rounded-xs bg-muted px-1.5 py-0.5 text-micro font-medium text-muted-foreground">
<Lock className="h-3 w-3" />
{t(($) => $.create_dialog.runtime_private_badge)}
</span>
diff --git a/packages/views/agents/components/tabs/activity-tab.tsx b/packages/views/agents/components/tabs/activity-tab.tsx
index a76b8d0745..2273bf34d1 100644
--- a/packages/views/agents/components/tabs/activity-tab.tsx
+++ b/packages/views/agents/components/tabs/activity-tab.tsx
@@ -429,7 +429,7 @@ function RecentWorkSection({
<button
type="button"
onClick={onShowMore}
- className="mt-2 self-start rounded text-caption text-muted-foreground transition-colors hover:text-foreground"
+ className="mt-2 self-start rounded-xs text-caption text-muted-foreground transition-colors hover:text-foreground"
>
{t(($) => $.tab_body.activity.show_more)}
</button>
@@ -720,7 +720,7 @@ function TaskRow({
<TooltipTrigger
render={<AppLink href={paths.issueDetail(task.issue_id)} />}
aria-label={t(($) => $.tab_body.activity.open_issue_aria)}
- className="flex items-center justify-center rounded p-1 text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors"
+ className="flex items-center justify-center rounded-xs p-1 text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors"
>
<ArrowUpRight className="h-3.5 w-3.5" aria-hidden="true" />
</TooltipTrigger>
@@ -746,7 +746,7 @@ function TaskRow({
aria-label={t(($) => $.tab_body.activity.cancel_task_aria)}
/>
}
- className="flex items-center justify-center rounded p-1 text-muted-foreground transition-colors hover:bg-destructive/10 hover:text-destructive disabled:cursor-not-allowed disabled:opacity-50"
+ className="flex items-center justify-center rounded-xs p-1 text-muted-foreground transition-colors hover:bg-destructive/10 hover:text-destructive disabled:cursor-not-allowed disabled:opacity-50"
>
<X className="h-3.5 w-3.5" aria-hidden="true" />
</TooltipTrigger>
diff --git a/packages/views/agents/components/tabs/env-tab.tsx b/packages/views/agents/components/tabs/env-tab.tsx
index de5512c1c0..b52abd5f19 100644
--- a/packages/views/agents/components/tabs/env-tab.tsx
+++ b/packages/views/agents/components/tabs/env-tab.tsx
@@ -368,11 +368,11 @@ export function EnvTab({
<div className="space-y-1 text-caption text-muted-foreground">
<p>
{t(($) => $.tab_body.env.intro_prefix)}
- <code className="rounded bg-muted px-1 py-0.5 font-mono text-micro">
+ <code className="rounded-xs bg-muted px-1 py-0.5 font-mono text-micro">
{"ANTHROPIC_API_KEY"}
</code>
{t(($) => $.tab_body.env.intro_separator)}
- <code className="rounded bg-muted px-1 py-0.5 font-mono text-micro">
+ <code className="rounded-xs bg-muted px-1 py-0.5 font-mono text-micro">
{"ANTHROPIC_BASE_URL"}
</code>
{t(($) => $.tab_body.env.intro_suffix)}
diff --git a/packages/views/autopilots/components/autopilot-detail-page.tsx b/packages/views/autopilots/components/autopilot-detail-page.tsx
index 954497d2b6..fc59d56675 100644
--- a/packages/views/autopilots/components/autopilot-detail-page.tsx
+++ b/packages/views/autopilots/components/autopilot-detail-page.tsx
@@ -345,12 +345,12 @@ function TriggerRow({ trigger, autopilotId, canWrite }: { trigger: AutopilotTrig
<span className="text-caption text-muted-foreground">({trigger.label})</span>
)}
{!trigger.enabled && (
- <span className="text-caption bg-muted px-1.5 py-0.5 rounded">
+ <span className="text-caption bg-muted px-1.5 py-0.5 rounded-xs">
{t(($) => $.trigger_row.disabled_badge)}
</span>
)}
{isApi && (
- <span className="text-caption bg-muted px-1.5 py-0.5 rounded">
+ <span className="text-caption bg-muted px-1.5 py-0.5 rounded-xs">
{t(($) => $.trigger_row.deprecated_badge)}
</span>
)}
diff --git a/packages/views/autopilots/components/autopilot-list-actions.tsx b/packages/views/autopilots/components/autopilot-list-actions.tsx
index c41fbe1f63..8de93be201 100644
--- a/packages/views/autopilots/components/autopilot-list-actions.tsx
+++ b/packages/views/autopilots/components/autopilot-list-actions.tsx
@@ -254,7 +254,7 @@ export function AutopilotBatchToolbar({
type="button"
aria-label={t(($) => $.actions.clear_selection)}
onClick={onClear}
- className="rounded p-0.5 transition-colors hover:bg-accent"
+ className="rounded-xs p-0.5 transition-colors hover:bg-accent"
>
<X className="size-3.5 text-muted-foreground" />
</button>
diff --git a/packages/views/autopilots/components/webhook-deliveries-section.tsx b/packages/views/autopilots/components/webhook-deliveries-section.tsx
index c60928a375..70b66fe708 100644
--- a/packages/views/autopilots/components/webhook-deliveries-section.tsx
+++ b/packages/views/autopilots/components/webhook-deliveries-section.tsx
@@ -275,7 +275,7 @@ function DeliveryDetailDialog({
</span>
</div>
<Badge variant="outline">{full.provider || "—"}</Badge>
- <code className="rounded bg-muted px-2 py-0.5 text-caption font-mono">
+ <code className="rounded-xs bg-muted px-2 py-0.5 text-caption font-mono">
{full.event || t(($) => $.webhook_payload.unknown_event)}
</code>
<SignatureBadge status={full.signature_status as WebhookSignatureStatus} />
@@ -471,7 +471,7 @@ function CodeBlock({ label, value }: { label: string; value: string }) {
<button
type="button"
onClick={handleCopy}
- className="flex items-center gap-1 rounded px-2 py-0.5 hover:bg-accent transition-colors"
+ className="flex items-center gap-1 rounded-xs px-2 py-0.5 hover:bg-accent transition-colors"
>
{copied ? (
<Check className="h-3 w-3 text-emerald-500" />
diff --git a/packages/views/autopilots/components/webhook-event-filter-section.tsx b/packages/views/autopilots/components/webhook-event-filter-section.tsx
index 6a97023c10..a451c61f38 100644
--- a/packages/views/autopilots/components/webhook-event-filter-section.tsx
+++ b/packages/views/autopilots/components/webhook-event-filter-section.tsx
@@ -77,7 +77,7 @@ export function WebhookEventFilterSection({
onClick={() => removeFilter(idx)}
aria-label={t(($) => $.dialog.event_filter_remove_label)}
title={t(($) => $.dialog.event_filter_remove_label)}
- className="ml-auto rounded p-0.5 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors"
+ className="ml-auto rounded-xs p-0.5 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors"
>
<X className="size-3" />
</button>
diff --git a/packages/views/autopilots/components/webhook-payload-preview.tsx b/packages/views/autopilots/components/webhook-payload-preview.tsx
index 575457fe96..51fd09c7b7 100644
--- a/packages/views/autopilots/components/webhook-payload-preview.tsx
+++ b/packages/views/autopilots/components/webhook-payload-preview.tsx
@@ -113,7 +113,7 @@ export function WebhookPayloadPreview({
type="button"
onClick={handleCopy}
className={cn(
- "flex items-center gap-1 rounded px-2 py-0.5 hover:bg-accent transition-colors",
+ "flex items-center gap-1 rounded-xs px-2 py-0.5 hover:bg-accent transition-colors",
)}
>
{copied ? (
diff --git a/packages/views/autopilots/components/webhook-url-field.tsx b/packages/views/autopilots/components/webhook-url-field.tsx
index 562c567feb..c65b01b3c0 100644
--- a/packages/views/autopilots/components/webhook-url-field.tsx
+++ b/packages/views/autopilots/components/webhook-url-field.tsx
@@ -13,7 +13,7 @@ const SIZES = {
// Trigger row on the detail page — compact, sits inline with the row actions.
sm: {
row: "items-center",
- value: "rounded bg-muted px-2 py-1 text-caption",
+ value: "rounded-xs bg-muted px-2 py-1 text-caption",
button: "h-7 w-7",
buttonVariant: "ghost",
icon: "h-3.5 w-3.5",
diff --git a/packages/views/billing/billing-test-page.tsx b/packages/views/billing/billing-test-page.tsx
index db45e58760..11c23e6e6e 100644
--- a/packages/views/billing/billing-test-page.tsx
+++ b/packages/views/billing/billing-test-page.tsx
@@ -460,7 +460,7 @@ function TransactionRow({ row }: { row: BillingTransaction }) {
<div className="flex items-center justify-between gap-2">
<span className="text-caption font-medium">
{row.tx_type}
- <span className="ml-1.5 rounded bg-muted px-1.5 py-0.5 font-mono text-micro text-muted-foreground">
+ <span className="ml-1.5 rounded-xs bg-muted px-1.5 py-0.5 font-mono text-micro text-muted-foreground">
{row.source}
</span>
</span>
@@ -613,7 +613,7 @@ function TopupRow({ row }: { row: BillingTopup }) {
<span className="text-caption font-medium">
{row.tier_id || row.id.slice(0, 8)}
<span
- className={`ml-1.5 rounded px-1.5 py-0.5 font-mono text-micro ${
+ className={`ml-1.5 rounded-xs px-1.5 py-0.5 font-mono text-micro ${
row.status === "credited"
? "bg-green-500/10 text-green-700 dark:text-green-400"
: row.status === "failed" || row.status === "canceled"
diff --git a/packages/views/chat/components/chat-message-list.tsx b/packages/views/chat/components/chat-message-list.tsx
index 5677ecbdd7..6af5b8c14b 100644
--- a/packages/views/chat/components/chat-message-list.tsx
+++ b/packages/views/chat/components/chat-message-list.tsx
@@ -1025,7 +1025,7 @@ function FailureBubble({
<span>{t(($) => $.message_list.show_details)}</span>
</CollapsibleTrigger>
<CollapsibleContent>
- <pre className="mt-1 max-h-40 overflow-auto rounded bg-muted/40 p-2 text-caption text-muted-foreground whitespace-pre-wrap break-all">
+ <pre className="mt-1 max-h-40 overflow-auto rounded-xs bg-muted/40 p-2 text-caption text-muted-foreground whitespace-pre-wrap break-all">
{rawError}
</pre>
</CollapsibleContent>
@@ -1229,7 +1229,7 @@ function ToolCallRow({ item }: { item: ChatTimelineItem }) {
return (
<Collapsible open={open} onOpenChange={setOpen}>
- <CollapsibleTrigger className="flex w-full items-center gap-1.5 rounded px-1 -mx-1 py-0.5 text-caption hover:bg-accent/30 transition-colors">
+ <CollapsibleTrigger className="flex w-full items-center gap-1.5 rounded-xs px-1 -mx-1 py-0.5 text-caption hover:bg-accent/30 transition-colors">
<ChevronRight
className={cn(
"h-3 w-3 shrink-0 text-muted-foreground transition-transform",
@@ -1242,7 +1242,7 @@ function ToolCallRow({ item }: { item: ChatTimelineItem }) {
</CollapsibleTrigger>
{hasInput && (
<CollapsibleContent>
- <pre className="ml-[18px] mt-0.5 max-h-32 overflow-auto rounded bg-muted/50 p-2 text-caption text-muted-foreground whitespace-pre-wrap break-all">
+ <pre className="ml-[18px] mt-0.5 max-h-32 overflow-auto rounded-xs bg-muted/50 p-2 text-caption text-muted-foreground whitespace-pre-wrap break-all">
{JSON.stringify(item.input, null, 2)}
</pre>
</CollapsibleContent>
@@ -1264,7 +1264,7 @@ function ToolResultRow({ item }: { item: ChatTimelineItem }) {
return (
<Collapsible open={open} onOpenChange={setOpen}>
- <CollapsibleTrigger className="flex w-full items-start gap-1.5 rounded px-1 -mx-1 py-0.5 text-caption hover:bg-accent/30 transition-colors">
+ <CollapsibleTrigger className="flex w-full items-start gap-1.5 rounded-xs px-1 -mx-1 py-0.5 text-caption hover:bg-accent/30 transition-colors">
<ChevronRight
className={cn("h-3 w-3 shrink-0 text-muted-foreground transition-transform mt-0.5", open && "rotate-90")}
/>
@@ -1273,7 +1273,7 @@ function ToolResultRow({ item }: { item: ChatTimelineItem }) {
</span>
</CollapsibleTrigger>
<CollapsibleContent>
- <pre className="ml-[18px] mt-0.5 max-h-40 overflow-auto rounded bg-muted/50 p-2 text-caption text-muted-foreground whitespace-pre-wrap break-all">
+ <pre className="ml-[18px] mt-0.5 max-h-40 overflow-auto rounded-xs bg-muted/50 p-2 text-caption text-muted-foreground whitespace-pre-wrap break-all">
{output.length > 4000 ? output.slice(0, 4000) + "\n... (truncated)" : output}
</pre>
</CollapsibleContent>
@@ -1290,12 +1290,12 @@ function ThinkingRow({ item }: { item: ChatTimelineItem }) {
return (
<Collapsible open={open} onOpenChange={setOpen}>
- <CollapsibleTrigger className="flex w-full items-start gap-1.5 rounded px-1 -mx-1 py-0.5 text-caption hover:bg-accent/30 transition-colors">
+ <CollapsibleTrigger className="flex w-full items-start gap-1.5 rounded-xs px-1 -mx-1 py-0.5 text-caption hover:bg-accent/30 transition-colors">
<Brain className="h-3 w-3 shrink-0 text-faint-foreground mt-0.5" />
<span className="text-muted-foreground italic truncate">{preview}</span>
</CollapsibleTrigger>
<CollapsibleContent>
- <pre className="ml-[18px] mt-0.5 max-h-40 overflow-auto rounded bg-muted/30 p-2 text-caption text-muted-foreground whitespace-pre-wrap break-words">
+ <pre className="ml-[18px] mt-0.5 max-h-40 overflow-auto rounded-xs bg-muted/30 p-2 text-caption text-muted-foreground whitespace-pre-wrap break-words">
{text}
</pre>
</CollapsibleContent>
diff --git a/packages/views/chat/components/chat-thread-list.tsx b/packages/views/chat/components/chat-thread-list.tsx
index c1ed886009..3ddd2eed86 100644
--- a/packages/views/chat/components/chat-thread-list.tsx
+++ b/packages/views/chat/components/chat-thread-list.tsx
@@ -559,7 +559,7 @@ function RowAction({
onClick();
}}
className={cn(
- "inline-flex size-7 items-center justify-center rounded text-muted-foreground transition-colors focus-visible:outline-none",
+ "inline-flex size-7 items-center justify-center rounded-xs text-muted-foreground transition-colors focus-visible:outline-none",
danger
? "hover:bg-destructive/10 hover:text-destructive focus-visible:bg-destructive/10 focus-visible:text-destructive"
: "hover:bg-accent hover:text-foreground focus-visible:bg-accent focus-visible:text-foreground",
@@ -601,7 +601,7 @@ function ConfirmRow({
onCancel();
}}
disabled={pending}
- className="inline-flex h-6 items-center rounded px-2 text-micro font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:opacity-50"
+ className="inline-flex h-6 items-center rounded-xs px-2 text-micro font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:opacity-50"
>
{cancelText}
</button>
@@ -617,7 +617,7 @@ function ConfirmRow({
onConfirm();
}}
disabled={pending}
- className="inline-flex h-6 items-center rounded px-2 text-micro font-medium text-destructive transition-colors hover:bg-destructive/10 disabled:opacity-50"
+ className="inline-flex h-6 items-center rounded-xs px-2 text-micro font-medium text-destructive transition-colors hover:bg-destructive/10 disabled:opacity-50"
>
{confirmText}
</button>
diff --git a/packages/views/chat/components/chat-window.tsx b/packages/views/chat/components/chat-window.tsx
index bc1895279b..1366924e9d 100644
--- a/packages/views/chat/components/chat-window.tsx
+++ b/packages/views/chat/components/chat-window.tsx
@@ -1494,7 +1494,7 @@ function SessionDropdown({
setConfirmingStopId(null);
}}
disabled={stoppingTaskId === pendingTask.task_id}
- className="inline-flex h-7 items-center rounded px-2 text-micro font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:opacity-50"
+ className="inline-flex h-7 items-center rounded-xs px-2 text-micro font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:opacity-50"
>
{t(($) => $.session_history.stop_dialog.cancel)}
</button>
@@ -1510,7 +1510,7 @@ function SessionDropdown({
handleConfirmStop(session, pendingTask);
}}
disabled={stoppingTaskId === pendingTask.task_id}
- className="inline-flex h-7 items-center rounded px-2 text-micro font-medium text-destructive transition-colors hover:bg-destructive/10 disabled:opacity-50"
+ className="inline-flex h-7 items-center rounded-xs px-2 text-micro font-medium text-destructive transition-colors hover:bg-destructive/10 disabled:opacity-50"
>
{stoppingTaskId === pendingTask.task_id
? t(($) => $.session_history.stop_dialog.confirming)
@@ -1553,8 +1553,8 @@ function SessionDropdown({
}}
className={
action.danger
- ? "inline-flex h-7 items-center gap-1 rounded px-1.5 text-micro font-medium text-muted-foreground transition-colors hover:bg-destructive/10 hover:text-destructive focus-visible:bg-destructive/10 focus-visible:text-destructive focus-visible:outline-none"
- : "inline-flex size-7 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:bg-accent focus-visible:text-foreground focus-visible:outline-none"
+ ? "inline-flex h-7 items-center gap-1 rounded-xs px-1.5 text-micro font-medium text-muted-foreground transition-colors hover:bg-destructive/10 hover:text-destructive focus-visible:bg-destructive/10 focus-visible:text-destructive focus-visible:outline-none"
+ : "inline-flex size-7 items-center justify-center rounded-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:bg-accent focus-visible:text-foreground focus-visible:outline-none"
}
aria-label={action.label}
title={action.label}
diff --git a/packages/views/chat/components/onboarding-starter-cards.tsx b/packages/views/chat/components/onboarding-starter-cards.tsx
index bf983bd2d9..39f0881141 100644
--- a/packages/views/chat/components/onboarding-starter-cards.tsx
+++ b/packages/views/chat/components/onboarding-starter-cards.tsx
@@ -141,7 +141,7 @@ function MiniCard({
return (
<div
className={cn(
- "flex flex-col gap-1 rounded-[4px] border border-border bg-card px-1.5 py-1",
+ "flex flex-col gap-1 rounded-xs border border-border bg-card px-1.5 py-1",
className,
)}
>
diff --git a/packages/views/common/composio-toolkit-logo.tsx b/packages/views/common/composio-toolkit-logo.tsx
index ce4ccf94a9..dbde472c95 100644
--- a/packages/views/common/composio-toolkit-logo.tsx
+++ b/packages/views/common/composio-toolkit-logo.tsx
@@ -49,9 +49,9 @@ export function ComposioToolkitLogo({
setFailedDarkSources(0);
}, [slug, fallbackLogo]);
- const imgClassName = cn("h-8 w-8 shrink-0 rounded bg-muted object-contain", className);
+ const imgClassName = cn("h-8 w-8 shrink-0 rounded-xs bg-muted object-contain", className);
const fallbackClassName = cn(
- "h-8 w-8 shrink-0 items-center justify-center rounded bg-muted text-caption font-semibold text-muted-foreground",
+ "h-8 w-8 shrink-0 items-center justify-center rounded-xs bg-muted text-caption font-semibold text-muted-foreground",
className,
);
const lightSrc = lightSources[failedLightSources];
diff --git a/packages/views/common/date-only-picker.tsx b/packages/views/common/date-only-picker.tsx
index c23174df5d..aa89982762 100644
--- a/packages/views/common/date-only-picker.tsx
+++ b/packages/views/common/date-only-picker.tsx
@@ -22,7 +22,7 @@ import { useLocale } from "../i18n";
* trigger so the swap on first interaction is pixel-identical.
*/
const DATE_TRIGGER_CLASS =
- "flex items-center gap-1.5 cursor-pointer rounded px-1 -mx-1 hover:bg-accent/30 transition-colors";
+ "flex items-center gap-1.5 cursor-pointer rounded-xs px-1 -mx-1 hover:bg-accent/30 transition-colors";
interface DateOnlyPickerProps {
/** Selected calendar day ("YYYY-MM-DD") or null. */
diff --git a/packages/views/common/expandable-description.tsx b/packages/views/common/expandable-description.tsx
index 4c71f27a8a..5bf0295b29 100644
--- a/packages/views/common/expandable-description.tsx
+++ b/packages/views/common/expandable-description.tsx
@@ -69,7 +69,7 @@ export function ExpandableDescription({
<button
type="button"
onClick={() => setExpanded((value) => !value)}
- className="mt-0.5 rounded text-caption text-muted-foreground transition-colors hover:text-foreground focus-visible:text-foreground focus-visible:outline-none"
+ className="mt-0.5 rounded-xs text-caption text-muted-foreground transition-colors hover:text-foreground focus-visible:text-foreground focus-visible:outline-none"
>
{expanded
? t(($) => $.expandable_description.collapse)
diff --git a/packages/views/common/hover-check.tsx b/packages/views/common/hover-check.tsx
index 57a5792dfb..69db68cbd1 100644
--- a/packages/views/common/hover-check.tsx
+++ b/packages/views/common/hover-check.tsx
@@ -14,7 +14,7 @@ export const FILTER_ITEM_CLASS =
export function HoverCheck({ checked }: { checked: boolean }) {
return (
<div
- className="border-input data-[selected=true]:border-primary data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground pointer-events-none size-4 shrink-0 rounded-[4px] border transition-all select-none *:[svg]:opacity-0 data-[selected=true]:*:[svg]:opacity-100 opacity-0 group-hover/fitem:opacity-100 group-focus/fitem:opacity-100 data-[selected=true]:opacity-100"
+ className="border-input data-[selected=true]:border-primary data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground pointer-events-none size-4 shrink-0 rounded-xs border transition-all select-none *:[svg]:opacity-0 data-[selected=true]:*:[svg]:opacity-100 opacity-0 group-hover/fitem:opacity-100 group-focus/fitem:opacity-100 data-[selected=true]:opacity-100"
data-selected={checked}
>
<Check className="size-3.5 text-current" />
diff --git a/packages/views/common/row-actions-menu.tsx b/packages/views/common/row-actions-menu.tsx
index 71fcc8dc23..4a4c8d2d87 100644
--- a/packages/views/common/row-actions-menu.tsx
+++ b/packages/views/common/row-actions-menu.tsx
@@ -69,7 +69,7 @@ export function RowActionsMenu({
// The row owns click-to-select; opening the menu must not select it.
onPointerDown={(e) => e.stopPropagation()}
onClick={(e) => e.stopPropagation()}
- className="inline-flex size-8 shrink-0 items-center justify-center rounded text-muted-foreground outline-none transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-1 focus-visible:ring-ring data-popup-open:bg-accent data-popup-open:text-foreground [@media(hover:hover)]:hidden"
+ className="inline-flex size-8 shrink-0 items-center justify-center rounded-xs text-muted-foreground outline-none transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-1 focus-visible:ring-ring data-popup-open:bg-accent data-popup-open:text-foreground [@media(hover:hover)]:hidden"
>
<MoreHorizontal className="size-4" />
</button>
diff --git a/packages/views/common/task-transcript/agent-transcript-dialog.tsx b/packages/views/common/task-transcript/agent-transcript-dialog.tsx
index 3bda785746..f778f3801e 100644
--- a/packages/views/common/task-transcript/agent-transcript-dialog.tsx
+++ b/packages/views/common/task-transcript/agent-transcript-dialog.tsx
@@ -244,7 +244,7 @@ function RunDetailRow({
type="button"
onClick={onCopy}
title={copyTitle}
- className="group -mx-1 grid w-[calc(100%+0.5rem)] grid-cols-[4.5rem_minmax(0,1fr)] items-start gap-3 rounded px-1 py-0.5 text-left transition-colors hover:bg-accent/60"
+ className="group -mx-1 grid w-[calc(100%+0.5rem)] grid-cols-[4.5rem_minmax(0,1fr)] items-start gap-3 rounded-xs px-1 py-0.5 text-left transition-colors hover:bg-accent/60"
>
<span className="text-muted-foreground">{label}</span>
<span className="flex min-w-0 items-start gap-1.5">
@@ -1600,7 +1600,7 @@ function GroupRow({
type="button"
onClick={() => onSelect(step.seq)}
className={cn(
- "flex w-full items-baseline gap-2 rounded px-2 py-1 text-left text-micro transition-colors",
+ "flex w-full items-baseline gap-2 rounded-xs px-2 py-1 text-left text-micro transition-colors",
selectedSeq === step.seq ? "bg-brand/10" : "hover:bg-accent/40",
)}
>
diff --git a/packages/views/common/task-transcript/detail-surfaces.tsx b/packages/views/common/task-transcript/detail-surfaces.tsx
index 7eeb876b55..4d060c7885 100644
--- a/packages/views/common/task-transcript/detail-surfaces.tsx
+++ b/packages/views/common/task-transcript/detail-surfaces.tsx
@@ -219,7 +219,7 @@ export function DiffDetailSurface({ lines, path }: { lines: TraceDiffLine[]; pat
onClick={() => setShowAll(true)}
// Opaque: the gradient alone does not clear the clipped line, so a
// transparent label lands on top of it and both become unreadable.
- className="mb-1.5 rounded border bg-background px-2 py-0.5 text-micro text-muted-foreground shadow-sm transition-colors hover:bg-accent hover:text-foreground"
+ className="mb-1.5 rounded-xs border bg-background px-2 py-0.5 text-micro text-muted-foreground shadow-sm transition-colors hover:bg-accent hover:text-foreground"
>
{t(($) => $.transcript.show_all)}
</button>
@@ -273,7 +273,7 @@ export function ToolDetailSurface({
onClick={() => setShowAll(true)}
// Opaque: the gradient alone does not clear the clipped line, so a
// transparent label lands on top of it and both become unreadable.
- className="mb-1.5 rounded border bg-background px-2 py-0.5 text-micro text-muted-foreground shadow-sm transition-colors hover:bg-accent hover:text-foreground"
+ className="mb-1.5 rounded-xs border bg-background px-2 py-0.5 text-micro text-muted-foreground shadow-sm transition-colors hover:bg-accent hover:text-foreground"
>
{t(($) => $.transcript.show_all)}
</button>
diff --git a/packages/views/common/task-transcript/run-timeline.tsx b/packages/views/common/task-transcript/run-timeline.tsx
index e666546dfc..86c667050e 100644
--- a/packages/views/common/task-transcript/run-timeline.tsx
+++ b/packages/views/common/task-transcript/run-timeline.tsx
@@ -266,7 +266,7 @@ export function RunTimeline({
disabled={!canZoomOut}
onClick={() => setZoomAround(ZOOM_STEPS[zoomIndex - 1] ?? 1)}
aria-label={t(($) => $.transcript.timeline_zoom_out)}
- className="flex h-5 w-5 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-accent disabled:opacity-40"
+ className="flex h-5 w-5 items-center justify-center rounded-xs text-muted-foreground transition-colors hover:bg-accent disabled:opacity-40"
>
<Minus className="h-3 w-3" />
</button>
@@ -278,7 +278,7 @@ export function RunTimeline({
disabled={!canZoomIn}
onClick={() => setZoomAround(ZOOM_STEPS[zoomIndex + 1] ?? zoom)}
aria-label={t(($) => $.transcript.timeline_zoom_in)}
- className="flex h-5 w-5 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-accent disabled:opacity-40"
+ className="flex h-5 w-5 items-center justify-center rounded-xs text-muted-foreground transition-colors hover:bg-accent disabled:opacity-40"
>
<Plus className="h-3 w-3" />
</button>
diff --git a/packages/views/common/task-transcript/transcript-button.tsx b/packages/views/common/task-transcript/transcript-button.tsx
index 9116c6e760..55985364bd 100644
--- a/packages/views/common/task-transcript/transcript-button.tsx
+++ b/packages/views/common/task-transcript/transcript-button.tsx
@@ -174,7 +174,7 @@ export function TranscriptButton({
disabled={loading}
aria-label={title}
className={cn(
- "flex items-center justify-center rounded p-1 text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors disabled:opacity-50",
+ "flex items-center justify-center rounded-xs p-1 text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors disabled:opacity-50",
className,
)}
>
diff --git a/packages/views/editor/extensions/code-block-view.tsx b/packages/views/editor/extensions/code-block-view.tsx
index cb23baee33..44bd823fb2 100644
--- a/packages/views/editor/extensions/code-block-view.tsx
+++ b/packages/views/editor/extensions/code-block-view.tsx
@@ -91,7 +91,7 @@ function CodeBlockView({ node }: NodeViewProps) {
<button
type="button"
onClick={toggleView}
- className="flex h-6 w-6 items-center justify-center rounded text-muted-foreground hover:bg-muted hover:text-foreground transition-colors"
+ className="flex h-6 w-6 items-center justify-center rounded-xs text-muted-foreground hover:bg-muted hover:text-foreground transition-colors"
title={
view === "preview"
? t(($) => $.code_block.show_source)
@@ -113,7 +113,7 @@ function CodeBlockView({ node }: NodeViewProps) {
<button
type="button"
onClick={handleCopy}
- className="flex h-6 w-6 items-center justify-center rounded text-muted-foreground hover:bg-muted hover:text-foreground transition-colors"
+ className="flex h-6 w-6 items-center justify-center rounded-xs text-muted-foreground hover:bg-muted hover:text-foreground transition-colors"
title={t(($) => $.code_block.copy_code)}
aria-label={t(($) => $.code_block.copy_code)}
>
diff --git a/packages/views/editor/html-attachment-preview.tsx b/packages/views/editor/html-attachment-preview.tsx
index c7356bef64..1cada423c6 100644
--- a/packages/views/editor/html-attachment-preview.tsx
+++ b/packages/views/editor/html-attachment-preview.tsx
@@ -106,7 +106,7 @@ export function HtmlAttachmentPreview({
>
<button
type="button"
- className="flex h-6 w-6 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"
+ className="flex h-6 w-6 items-center justify-center rounded-xs text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"
title={t(($) => $.attachment.preview)}
aria-label={t(($) => $.attachment.preview)}
onMouseDown={(e) => {
@@ -120,7 +120,7 @@ export function HtmlAttachmentPreview({
{canOpenInNewTab && (
<button
type="button"
- className="flex h-6 w-6 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"
+ className="flex h-6 w-6 items-center justify-center rounded-xs text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"
title={t(($) => $.attachment.open_in_new_tab)}
aria-label={t(($) => $.attachment.open_in_new_tab)}
onMouseDown={(e) => {
@@ -134,7 +134,7 @@ export function HtmlAttachmentPreview({
)}
<button
type="button"
- className="flex h-6 w-6 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"
+ className="flex h-6 w-6 items-center justify-center rounded-xs text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"
title={t(($) => $.image.download)}
aria-label={t(($) => $.image.download)}
onMouseDown={(e) => {
@@ -148,7 +148,7 @@ export function HtmlAttachmentPreview({
{onDelete && (
<button
type="button"
- className="flex h-6 w-6 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-destructive/10 hover:text-destructive"
+ className="flex h-6 w-6 items-center justify-center rounded-xs text-muted-foreground transition-colors hover:bg-destructive/10 hover:text-destructive"
title={t(($) => $.attachment.remove)}
aria-label={t(($) => $.attachment.remove)}
onMouseDown={(e) => {
diff --git a/packages/views/editor/html-block-preview.tsx b/packages/views/editor/html-block-preview.tsx
index 6f93eaa4ad..4726fbfd39 100644
--- a/packages/views/editor/html-block-preview.tsx
+++ b/packages/views/editor/html-block-preview.tsx
@@ -79,7 +79,7 @@ export function HtmlBlockPreview({ html, className }: HtmlBlockPreviewProps) {
<button
type="button"
onClick={toggleView}
- className="flex h-6 w-6 items-center justify-center rounded text-muted-foreground hover:bg-muted hover:text-foreground transition-colors"
+ className="flex h-6 w-6 items-center justify-center rounded-xs text-muted-foreground hover:bg-muted hover:text-foreground transition-colors"
title={
view === "preview"
? t(($) => $.code_block.show_source)
@@ -101,7 +101,7 @@ export function HtmlBlockPreview({ html, className }: HtmlBlockPreviewProps) {
<button
type="button"
onClick={() => setFullscreen(true)}
- className="flex h-6 w-6 items-center justify-center rounded text-muted-foreground hover:bg-muted hover:text-foreground transition-colors"
+ className="flex h-6 w-6 items-center justify-center rounded-xs text-muted-foreground hover:bg-muted hover:text-foreground transition-colors"
title={t(($) => $.code_block.fullscreen)}
aria-label={t(($) => $.code_block.fullscreen)}
>
@@ -111,7 +111,7 @@ export function HtmlBlockPreview({ html, className }: HtmlBlockPreviewProps) {
<button
type="button"
onClick={handleCopy}
- className="flex h-6 w-6 items-center justify-center rounded text-muted-foreground hover:bg-muted hover:text-foreground transition-colors"
+ className="flex h-6 w-6 items-center justify-center rounded-xs text-muted-foreground hover:bg-muted hover:text-foreground transition-colors"
title={t(($) => $.code_block.copy_code)}
aria-label={t(($) => $.code_block.copy_code)}
>
diff --git a/packages/views/inbox/components/inbox-list-item.tsx b/packages/views/inbox/components/inbox-list-item.tsx
index d76c0b5ca8..a7afe00767 100644
--- a/packages/views/inbox/components/inbox-list-item.tsx
+++ b/packages/views/inbox/components/inbox-list-item.tsx
@@ -162,7 +162,7 @@ export function InboxListItem({
e.stopPropagation();
onAction();
}}
- className="hidden rounded p-0.5 text-muted-foreground outline-none hover:bg-accent hover:text-foreground focus-visible:ring-1 focus-visible:ring-ring [@media(hover:hover)]:group-hover:inline-flex [@media(hover:hover)]:group-focus-within:inline-flex"
+ className="hidden rounded-xs p-0.5 text-muted-foreground outline-none hover:bg-accent hover:text-foreground focus-visible:ring-1 focus-visible:ring-ring [@media(hover:hover)]:group-hover:inline-flex [@media(hover:hover)]:group-focus-within:inline-flex"
>
<ActionIcon className="h-3.5 w-3.5" />
</button>
diff --git a/packages/views/issues/actions/issue-actions-menu-items.tsx b/packages/views/issues/actions/issue-actions-menu-items.tsx
index cf6e0fb7c1..4be0f1fecf 100644
--- a/packages/views/issues/actions/issue-actions-menu-items.tsx
+++ b/packages/views/issues/actions/issue-actions-menu-items.tsx
@@ -217,7 +217,7 @@ export function IssueActionsMenuItems({
{PRIORITY_DISPLAY_ORDER.map((p) => (
<P.Item key={p} onClick={() => updateField({ priority: p })}>
<span
- className={`inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-caption font-medium ${PRIORITY_CONFIG[p].badgeBg} ${PRIORITY_CONFIG[p].badgeText}`}
+ className={`inline-flex items-center gap-1 rounded-xs px-1.5 py-0.5 text-caption font-medium ${PRIORITY_CONFIG[p].badgeBg} ${PRIORITY_CONFIG[p].badgeText}`}
>
<PriorityIcon priority={p} className="h-3 w-3" inheritColor />
{t(($) => $.priority[p])}
diff --git a/packages/views/issues/components/batch-action-toolbar.tsx b/packages/views/issues/components/batch-action-toolbar.tsx
index 7d51ac5d68..37f67d7d31 100644
--- a/packages/views/issues/components/batch-action-toolbar.tsx
+++ b/packages/views/issues/components/batch-action-toolbar.tsx
@@ -215,7 +215,7 @@ export function BatchActionToolbar({
<button
type="button"
onClick={clear}
- className="rounded p-0.5 hover:bg-accent transition-colors"
+ className="rounded-xs p-0.5 hover:bg-accent transition-colors"
>
<X className="size-3.5 text-muted-foreground" />
</button>
diff --git a/packages/views/issues/components/board-card.tsx b/packages/views/issues/components/board-card.tsx
index a49daf629d..79942cd494 100644
--- a/packages/views/issues/components/board-card.tsx
+++ b/packages/views/issues/components/board-card.tsx
@@ -130,7 +130,7 @@ export const BoardCardContent = memo(function BoardCardContent({
<button
type="button"
aria-label={priorityLabel}
- className="inline-flex size-5 shrink-0 items-center justify-center rounded hover:bg-muted/60"
+ className="inline-flex size-5 shrink-0 items-center justify-center rounded-xs hover:bg-muted/60"
>
<PriorityIcon priority={issue.priority} />
</button>
diff --git a/packages/views/issues/components/execution-log-section.tsx b/packages/views/issues/components/execution-log-section.tsx
index 21afc73246..9b964b0dcc 100644
--- a/packages/views/issues/components/execution-log-section.tsx
+++ b/packages/views/issues/components/execution-log-section.tsx
@@ -177,7 +177,7 @@ export function ExecutionLogSection({ issueId, identifier }: ExecutionLogSection
<button
type="button"
onClick={() => setShowPast(!showPast)}
- className="flex w-full items-center gap-1 rounded px-1 py-1 text-caption text-muted-foreground transition-colors hover:bg-accent/40 hover:text-foreground"
+ className="flex w-full items-center gap-1 rounded-xs px-1 py-1 text-caption text-muted-foreground transition-colors hover:bg-accent/40 hover:text-foreground"
>
<ChevronRight
className={`!size-3 shrink-0 stroke-[2.5] transition-transform ${
@@ -394,7 +394,7 @@ export function ActiveTaskRow({
aria-label={t(($) => $.execution_log.cancel_task_aria)}
/>
}
- className="flex items-center justify-center rounded p-1 text-destructive transition-colors hover:bg-destructive/10 disabled:cursor-not-allowed disabled:opacity-50"
+ className="flex items-center justify-center rounded-xs p-1 text-destructive transition-colors hover:bg-destructive/10 disabled:cursor-not-allowed disabled:opacity-50"
>
{cancelling ? (
<Loader2 className="h-3.5 w-3.5 animate-spin" />
@@ -530,7 +530,7 @@ function PastRow({ task, issueId }: { task: AgentTask; issueId: string }) {
aria-label={t(($) => $.execution_log.retry_task_aria)}
/>
}
- className="flex items-center justify-center rounded p-1 text-muted-foreground transition-colors hover:bg-accent/50 hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"
+ className="flex items-center justify-center rounded-xs p-1 text-muted-foreground transition-colors hover:bg-accent/50 hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"
>
{retrying ? (
<Loader2 className="h-3.5 w-3.5 animate-spin" />
@@ -564,7 +564,7 @@ function RowShell({
return (
<div
title={title || undefined}
- className="group/execution-log-row flex items-center gap-2 overflow-hidden rounded px-1 py-1.5 transition-colors hover:bg-accent/40"
+ className="group/execution-log-row flex items-center gap-2 overflow-hidden rounded-xs px-1 py-1.5 transition-colors hover:bg-accent/40"
>
{task.agent_id ? (
<ActorAvatar
diff --git a/packages/views/issues/components/inline-comment-run.tsx b/packages/views/issues/components/inline-comment-run.tsx
index 1213218725..f583cf7059 100644
--- a/packages/views/issues/components/inline-comment-run.tsx
+++ b/packages/views/issues/components/inline-comment-run.tsx
@@ -152,7 +152,7 @@ export function InlineCommentRun({ run, className, viewState, showIdentity = fal
<TaskStatusIcon status={task.status} /><span className="truncate" title={statusText}>{statusText}</span>
</span>
<button type="button"
- className={cn("flex min-w-0 items-center gap-1.5 rounded py-1 text-left text-caption text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
+ className={cn("flex min-w-0 items-center gap-1.5 rounded-xs py-1 text-left text-caption text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
showProgress ? "flex-1 text-body" : "order-last ml-auto shrink-0",
showIdentity && !showProgress && "@max-[32rem]/run:min-w-7 @max-[32rem]/run:justify-center")}
aria-label={stepLabel ? `${activityLabel} · ${stepLabel}` : activityLabel}
@@ -186,7 +186,7 @@ export function InlineCommentRun({ run, className, viewState, showIdentity = fal
{rows.length > visibleCount && <button type="button" className="py-1 text-caption text-muted-foreground hover:text-foreground"
onClick={() => setVisibleCount((count) => count + 12)}>{t(($) => $.inline_run.show_earlier, { count: rows.length - visibleCount })}</button>}
{rows.slice(-visibleCount).map((row) => <InlineStep key={row.seq} row={row} live={active} formatText={formatText} />)}
- <button type="button" className="flex items-center gap-1.5 rounded py-2 text-caption text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
+ <button type="button" className="flex items-center gap-1.5 rounded-xs py-2 text-caption text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
onClick={openFullLog}>{t(($) => $.inline_run.full_log)}<ExternalLink className="size-3" /></button>
</div>}
</div>
@@ -214,7 +214,7 @@ function InlineStep({ row, live, formatText }: { row: TraceRow; live: boolean; f
: row.kind === "thinking" ? t(($) => $.inline_run.thinking)
: t(($) => $.inline_run.error);
return <details className="min-w-0 text-caption" onToggle={onToggle}>
- <summary onClick={disclosure.onTrigger} className="flex cursor-pointer list-none items-center gap-2 rounded py-1.5 hover:bg-accent/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring [&::-webkit-details-marker]:hidden">
+ <summary onClick={disclosure.onTrigger} className="flex cursor-pointer list-none items-center gap-2 rounded-xs py-1.5 hover:bg-accent/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring [&::-webkit-details-marker]:hidden">
{pending ? <Loader2 aria-hidden className="size-3.5 shrink-0 animate-spin text-info motion-reduce:animate-none" />
: <Icon aria-hidden className={cn("size-3.5 shrink-0", error ? "text-destructive" : "text-muted-foreground")} />}
<span className={cn("min-w-0 flex-1 truncate", error && "text-destructive")} title={summary}>{summary}</span>
diff --git a/packages/views/issues/components/issue-detail.tsx b/packages/views/issues/components/issue-detail.tsx
index 7ae68a0b80..022e749c10 100644
--- a/packages/views/issues/components/issue-detail.tsx
+++ b/packages/views/issues/components/issue-detail.tsx
@@ -655,7 +655,7 @@ function ActivityBlock({
{(entry.coalesced_count ?? 1) > 1 &&
entry.action !== "task_completed" &&
entry.action !== "task_failed" && (
- <span className="shrink-0 rounded bg-muted px-1.5 py-0.5 text-caption font-medium tabular-nums text-muted-foreground">
+ <span className="shrink-0 rounded-xs bg-muted px-1.5 py-0.5 text-caption font-medium tabular-nums text-muted-foreground">
{t(($) => $.activity.coalesced_badge, { count: entry.coalesced_count ?? 1 })}
</span>
)}
@@ -2509,7 +2509,7 @@ export function IssueDetail({ issueId, onDelete, onDone, defaultSidebarOpen = tr
title={t(($) => $.actions.remove_parent_issue)}
aria-label={t(($) => $.actions.remove_parent_issue)}
onClick={() => actions.removeParent()}
- className="shrink-0 rounded p-1 text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-foreground focus-visible:opacity-100 group-hover:opacity-100"
+ className="shrink-0 rounded-xs p-1 text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-foreground focus-visible:opacity-100 group-hover:opacity-100"
>
<Unlink className="h-3.5 w-3.5" />
</button>
diff --git a/packages/views/issues/components/pickers/custom-property-picker.tsx b/packages/views/issues/components/pickers/custom-property-picker.tsx
index 5eea4cca1d..17a5236912 100644
--- a/packages/views/issues/components/pickers/custom-property-picker.tsx
+++ b/packages/views/issues/components/pickers/custom-property-picker.tsx
@@ -279,7 +279,7 @@ export function CustomPropertyValueInput({
return (
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger
- className={triggerRender ? undefined : "flex items-center gap-1.5 cursor-pointer rounded px-1 -mx-1 hover:bg-accent/30 transition-colors overflow-hidden"}
+ className={triggerRender ? undefined : "flex items-center gap-1.5 cursor-pointer rounded-xs px-1 -mx-1 hover:bg-accent/30 transition-colors overflow-hidden"}
render={triggerRender}
>
{valueTrigger}
@@ -415,7 +415,7 @@ function TextishPropertyEditor({
return (
<Popover open={open} onOpenChange={onOpenChange}>
<PopoverTrigger
- className={triggerRender ? undefined : "flex items-center gap-1.5 cursor-pointer rounded px-1 -mx-1 hover:bg-accent/30 transition-colors overflow-hidden"}
+ className={triggerRender ? undefined : "flex items-center gap-1.5 cursor-pointer rounded-xs px-1 -mx-1 hover:bg-accent/30 transition-colors overflow-hidden"}
render={triggerRender}
>
{trigger ?? (value === undefined ? (
diff --git a/packages/views/issues/components/pickers/label-picker.tsx b/packages/views/issues/components/pickers/label-picker.tsx
index 3049a13186..ba1619c330 100644
--- a/packages/views/issues/components/pickers/label-picker.tsx
+++ b/packages/views/issues/components/pickers/label-picker.tsx
@@ -209,7 +209,7 @@ export function LabelPicker({
const resolvedTriggerRender =
triggerRender ??
(hasLabels ? (
- <div className="flex flex-wrap items-center gap-1 cursor-pointer rounded px-1 -mx-1 hover:bg-accent/30 transition-colors" />
+ <div className="flex flex-wrap items-center gap-1 cursor-pointer rounded-xs px-1 -mx-1 hover:bg-accent/30 transition-colors" />
) : undefined);
return (
diff --git a/packages/views/issues/components/pickers/priority-picker.tsx b/packages/views/issues/components/pickers/priority-picker.tsx
index 5ce0354d4a..b398b02855 100644
--- a/packages/views/issues/components/pickers/priority-picker.tsx
+++ b/packages/views/issues/components/pickers/priority-picker.tsx
@@ -100,7 +100,7 @@ function PriorityPickerImpl({
setOpen(false);
}}
>
- <span className={`inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-caption font-medium ${c.badgeBg} ${c.badgeText}`}>
+ <span className={`inline-flex items-center gap-1 rounded-xs px-1.5 py-0.5 text-caption font-medium ${c.badgeBg} ${c.badgeText}`}>
<PriorityIcon priority={p} className="h-3 w-3" inheritColor />
{t(($) => $.priority[p])}
</span>
diff --git a/packages/views/issues/components/pickers/property-picker.tsx b/packages/views/issues/components/pickers/property-picker.tsx
index f0326d7d3f..aa268c620e 100644
--- a/packages/views/issues/components/pickers/property-picker.tsx
+++ b/packages/views/issues/components/pickers/property-picker.tsx
@@ -33,7 +33,7 @@ const isEmptyItem = (el: HTMLButtonElement | undefined) =>
* first interaction is pixel-identical.
*/
export const PICKER_TRIGGER_CLASS =
- "flex items-center gap-1.5 cursor-pointer rounded px-1 -mx-1 hover:bg-accent/30 transition-colors overflow-hidden";
+ "flex items-center gap-1.5 cursor-pointer rounded-xs px-1 -mx-1 hover:bg-accent/30 transition-colors overflow-hidden";
// ---------------------------------------------------------------------------
// PropertyPicker — generic Popover shell with optional search
diff --git a/packages/views/issues/components/source-context-comment-list.tsx b/packages/views/issues/components/source-context-comment-list.tsx
index 6b443e7543..0ccd17ed8a 100644
--- a/packages/views/issues/components/source-context-comment-list.tsx
+++ b/packages/views/issues/components/source-context-comment-list.tsx
@@ -75,7 +75,7 @@ export function SourceContextCommentList({
: getAuthorLabel?.(comment) ?? comment.author.name}
</span>
{comment.id === anchorCommentId && (
- <span className="shrink-0 rounded bg-info/10 px-1.5 py-0.5 text-info">
+ <span className="shrink-0 rounded-xs bg-info/10 px-1.5 py-0.5 text-info">
{t(($) => $.source_context.source_comment)}
</span>
)}
diff --git a/packages/views/issues/components/source-context-viewer.test.tsx b/packages/views/issues/components/source-context-viewer.test.tsx
index 03fcc7eadf..bbcddc3d8d 100644
--- a/packages/views/issues/components/source-context-viewer.test.tsx
+++ b/packages/views/issues/components/source-context-viewer.test.tsx
@@ -139,7 +139,7 @@ describe("SourceContextBadge", () => {
expect(dialog).toHaveClass("h-[min(82dvh,56rem)]", "sm:max-w-4xl");
expect(dialog).not.toHaveClass("h-[calc(100dvh-2rem)]", "sm:max-w-[calc(100%-2rem)]");
expect(screen.getByText("Source comment")).toHaveClass(
- "rounded",
+ "rounded-xs",
"bg-info/10",
"text-info",
);
diff --git a/packages/views/issues/components/swimlane-view.tsx b/packages/views/issues/components/swimlane-view.tsx
index e3daab00d1..c29eff6387 100644
--- a/packages/views/issues/components/swimlane-view.tsx
+++ b/packages/views/issues/components/swimlane-view.tsx
@@ -1766,7 +1766,7 @@ function SwimLaneCell({
<div className={`flex min-h-[120px] flex-col rounded-xl ${cfg?.columnBg ?? "bg-muted/40"} p-2`}>
<div
ref={setNodeRef}
- className={`flex-1 space-y-2 rounded-lg p-1 transition-colors ${
+ className={`flex-1 space-y-2 rounded-sm p-1 transition-colors ${
isOver ? "bg-accent/60" : ""
}`}
>
diff --git a/packages/views/issues/components/table-view.tsx b/packages/views/issues/components/table-view.tsx
index 7dc34a1052..233ebc056c 100644
--- a/packages/views/issues/components/table-view.tsx
+++ b/packages/views/issues/components/table-view.tsx
@@ -443,7 +443,7 @@ function SortableColumnHeader({
type="button"
aria-label={reorderLabel}
className={cn(
- "-ml-2 mr-0.5 rounded p-0.5 text-muted-foreground opacity-0 hover:bg-accent hover:text-muted-foreground group-hover/header:opacity-100 focus-visible:opacity-100",
+ "-ml-2 mr-0.5 rounded-xs p-0.5 text-muted-foreground opacity-0 hover:bg-accent hover:text-muted-foreground group-hover/header:opacity-100 focus-visible:opacity-100",
isDragging ? "cursor-grabbing opacity-100" : "cursor-grab",
)}
{...attributes}
@@ -453,7 +453,7 @@ function SortableColumnHeader({
</button>
)}
<DropdownMenu>
- <DropdownMenuTrigger className="flex min-w-0 items-center gap-1 rounded px-1.5 py-1 hover:bg-accent">
+ <DropdownMenuTrigger className="flex min-w-0 items-center gap-1 rounded-xs px-1.5 py-1 hover:bg-accent">
<span className="truncate">{label}</span>
{active &&
(sortDirection === "asc" ? (
@@ -699,7 +699,7 @@ export function InlineTitle({
<button
type="button"
aria-label={toggleLabel}
- className="rounded p-0.5 text-muted-foreground hover:bg-accent"
+ className="rounded-xs p-0.5 text-muted-foreground hover:bg-accent"
onClick={(event) => {
event.stopPropagation();
onToggleParent();
@@ -767,7 +767,7 @@ export function InlineTitle({
<button
type="button"
aria-label={createSubIssueLabel}
- className="rounded p-1 text-muted-foreground hover:bg-accent hover:text-foreground"
+ className="rounded-xs p-1 text-muted-foreground hover:bg-accent hover:text-foreground"
onClick={(event) => {
event.stopPropagation();
onCreateSubIssue();
@@ -779,7 +779,7 @@ export function InlineTitle({
<button
type="button"
aria-label={renameLabel}
- className="rounded p-1 text-muted-foreground hover:bg-accent hover:text-foreground"
+ className="rounded-xs p-1 text-muted-foreground hover:bg-accent hover:text-foreground"
onClick={(event) => {
event.stopPropagation();
setDraft(row.issue.title);
@@ -824,7 +824,7 @@ function LazyLabelCell({
return (
<button
type="button"
- className="flex max-w-full items-center gap-1 overflow-hidden rounded px-1 py-0.5 hover:bg-accent"
+ className="flex max-w-full items-center gap-1 overflow-hidden rounded-xs px-1 py-0.5 hover:bg-accent"
onClick={(event) => {
event.stopPropagation();
onOpenChange(true);
@@ -1039,7 +1039,7 @@ function IssueTableAddColumnHeader({
<button
type="button"
aria-label={t(($) => $.table.columns.add)}
- className="rounded p-1 text-muted-foreground hover:bg-accent hover:text-foreground"
+ className="rounded-xs p-1 text-muted-foreground hover:bg-accent hover:text-foreground"
>
<Plus className="size-3.5" />
</button>
@@ -1208,7 +1208,7 @@ function IssueTableBodyCell({
triggerRender={
<button
type="button"
- className="flex max-w-full items-center gap-1.5 rounded px-1 py-0.5 hover:bg-accent"
+ className="flex max-w-full items-center gap-1.5 rounded-xs px-1 py-0.5 hover:bg-accent"
/>
}
/>
diff --git a/packages/views/layout/app-sidebar.tsx b/packages/views/layout/app-sidebar.tsx
index e70ebe4f79..a062f1c3bd 100644
--- a/packages/views/layout/app-sidebar.tsx
+++ b/packages/views/layout/app-sidebar.tsx
@@ -412,7 +412,7 @@ function PinSkeleton() {
<SidebarMenuItem>
<div className="flex h-7 w-full items-center gap-2 px-2">
<div className="size-3.5 shrink-0 rounded-sm bg-sidebar-accent/40" />
- <div className="h-3 w-24 rounded bg-sidebar-accent/40" />
+ <div className="h-3 w-24 rounded-xs bg-sidebar-accent/40" />
</div>
</SidebarMenuItem>
);
@@ -700,7 +700,7 @@ export function AppSidebar({ topSlot, searchSlot, headerClassName, headerStyle }
<span className="flex-1 truncate text-body">{inv.workspace_name ?? t(($) => $.sidebar.invitation_workspace_fallback)}</span>
<button
type="button"
- className="text-caption px-2 py-0.5 rounded bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-50"
+ className="text-caption px-2 py-0.5 rounded-xs bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-50"
disabled={acceptInvitationMut.isPending}
onClick={(e) => {
e.stopPropagation();
@@ -711,7 +711,7 @@ export function AppSidebar({ topSlot, searchSlot, headerClassName, headerStyle }
</button>
<button
type="button"
- className="text-caption px-2 py-0.5 rounded bg-muted text-muted-foreground hover:bg-muted/80 disabled:opacity-50"
+ className="text-caption px-2 py-0.5 rounded-xs bg-muted text-muted-foreground hover:bg-muted/80 disabled:opacity-50"
disabled={declineInvitationMut.isPending}
onClick={(e) => {
e.stopPropagation();
diff --git a/packages/views/modals/create-project.tsx b/packages/views/modals/create-project.tsx
index 0d1e8292fc..87c2db54f6 100644
--- a/packages/views/modals/create-project.tsx
+++ b/packages/views/modals/create-project.tsx
@@ -699,7 +699,7 @@ export function CreateProjectModal({ onClose }: { onClose: () => void }) {
type="button"
onClick={() => handleSourceModeChange("repos")}
className={cn(
- "rounded px-2 py-1 text-caption transition-colors",
+ "rounded-xs px-2 py-1 text-caption transition-colors",
sourceMode === "repos"
? "bg-background shadow-sm font-medium"
: "text-muted-foreground hover:text-foreground",
@@ -711,7 +711,7 @@ export function CreateProjectModal({ onClose }: { onClose: () => void }) {
type="button"
onClick={() => handleSourceModeChange("local")}
className={cn(
- "rounded px-2 py-1 text-caption transition-colors",
+ "rounded-xs px-2 py-1 text-caption transition-colors",
sourceMode === "local"
? "bg-background shadow-sm font-medium"
: "text-muted-foreground hover:text-foreground",
diff --git a/packages/views/onboarding/steps/cli-install-instructions.tsx b/packages/views/onboarding/steps/cli-install-instructions.tsx
index fa3f19c38e..a11ac6e939 100644
--- a/packages/views/onboarding/steps/cli-install-instructions.tsx
+++ b/packages/views/onboarding/steps/cli-install-instructions.tsx
@@ -28,7 +28,7 @@ function CopyButton({ text }: { text: string }) {
<button
type="button"
onClick={handleCopy}
- className="shrink-0 rounded p-1 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground"
+ className="shrink-0 rounded-xs p-1 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground"
aria-label={t(($) => $.cli_install.copy_aria)}
>
{copied ? (
diff --git a/packages/views/onboarding/steps/step-runtime-connect.tsx b/packages/views/onboarding/steps/step-runtime-connect.tsx
index a0a13eac19..92aa3b7d9f 100644
--- a/packages/views/onboarding/steps/step-runtime-connect.tsx
+++ b/packages/views/onboarding/steps/step-runtime-connect.tsx
@@ -566,8 +566,8 @@ function SkeletonRuntimeCard() {
>
<div className="h-7 w-7 shrink-0 rounded-md bg-muted" />
<div className="flex-1 space-y-2">
- <div className="h-3 w-28 rounded bg-muted" />
- <div className="h-2.5 w-16 rounded bg-muted/70" />
+ <div className="h-3 w-28 rounded-xs bg-muted" />
+ <div className="h-2.5 w-16 rounded-xs bg-muted/70" />
</div>
<div className="h-4 w-4 shrink-0 rounded-full border-[1.5px] border-muted" />
</div>
diff --git a/packages/views/projects/components/project-badge.tsx b/packages/views/projects/components/project-badge.tsx
index 69426077fc..63facd1b32 100644
--- a/packages/views/projects/components/project-badge.tsx
+++ b/packages/views/projects/components/project-badge.tsx
@@ -27,7 +27,7 @@ export function ProjectStatusBadge({ project, handleUpdate, triggerClassName, al
<DropdownMenuTrigger
render={
<button type="button" className={cn(
- "inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-caption font-medium cursor-pointer hover:opacity-80 transition-opacity",
+ "inline-flex items-center gap-1 rounded-xs px-1.5 py-0.5 text-caption font-medium cursor-pointer hover:opacity-80 transition-opacity",
statusCfg.badgeBg, statusCfg.badgeText,
triggerClassName
)}>
@@ -57,7 +57,7 @@ export function ProjectPriorityBadge({ project, handleUpdate, triggerClassName,
<DropdownMenuTrigger
render={
<button type="button" className={cn(
- "inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-caption font-medium hover:bg-accent/60 transition-colors cursor-pointer",
+ "inline-flex items-center gap-1 rounded-xs px-1.5 py-0.5 text-caption font-medium hover:bg-accent/60 transition-colors cursor-pointer",
triggerClassName
)}>
<PriorityIcon priority={project.priority} />
diff --git a/packages/views/projects/components/projects-page.tsx b/packages/views/projects/components/projects-page.tsx
index 30bd9768e9..cb4076b8b1 100644
--- a/packages/views/projects/components/projects-page.tsx
+++ b/packages/views/projects/components/projects-page.tsx
@@ -431,7 +431,7 @@ function ProjectTableRow({
renderTrigger={(leadName) => (
<button
type="button"
- className="flex min-w-0 items-center gap-1.5 rounded px-1 py-0.5 transition-colors hover:bg-accent/60"
+ className="flex min-w-0 items-center gap-1.5 rounded-xs px-1 py-0.5 transition-colors hover:bg-accent/60"
>
{project.lead_type && project.lead_id ? (
<ActorAvatar actorType={project.lead_type} actorId={project.lead_id} size="sm" enableHoverCard />
@@ -647,7 +647,7 @@ function ProjectCard({
project={project}
handleUpdate={handleUpdate}
renderTrigger={(leadName) => (
- <button type="button" className="-mx-1.5 flex items-center gap-1.5 rounded px-1.5 py-0.5 transition-colors hover:bg-accent/60">
+ <button type="button" className="-mx-1.5 flex items-center gap-1.5 rounded-xs px-1.5 py-0.5 transition-colors hover:bg-accent/60">
{project.lead_type && project.lead_id ? (
<ActorAvatar actorType={project.lead_type} actorId={project.lead_id} size="sm" enableHoverCard />
) : (
@@ -726,7 +726,7 @@ function ProjectBatchToolbar({
type="button"
aria-label={t(($) => $.page.clear_selection)}
onClick={onClear}
- className="rounded p-0.5 transition-colors hover:bg-accent"
+ className="rounded-xs p-0.5 transition-colors hover:bg-accent"
>
<X className="size-3.5 text-muted-foreground" />
</button>
@@ -1312,12 +1312,12 @@ function LoadingState({ isCompact }: { isCompact: boolean }) {
{Array.from({ length: 8 }).map((_, i) => (
<div key={i} className="flex flex-col gap-2 rounded-md border p-3">
<div className="flex items-center gap-2">
- <Skeleton className="h-8 w-8 rounded" />
+ <Skeleton className="h-8 w-8 rounded-xs" />
<Skeleton className="h-4 w-3/4" />
</div>
<div className="flex gap-1.5">
- <Skeleton className="h-5 w-16 rounded" />
- <Skeleton className="h-5 w-20 rounded" />
+ <Skeleton className="h-5 w-16 rounded-xs" />
+ <Skeleton className="h-5 w-20 rounded-xs" />
</div>
</div>
))}
diff --git a/packages/views/rich-content/rich-code-block.tsx b/packages/views/rich-content/rich-code-block.tsx
index f2177b1e0d..5af1015b88 100644
--- a/packages/views/rich-content/rich-code-block.tsx
+++ b/packages/views/rich-content/rich-code-block.tsx
@@ -144,7 +144,7 @@ export function CodeBlockShell({
<button
type="button"
onClick={handleCopy}
- className="flex h-6 w-6 items-center justify-center rounded text-muted-foreground hover:bg-muted hover:text-foreground transition-colors"
+ className="flex h-6 w-6 items-center justify-center rounded-xs text-muted-foreground hover:bg-muted hover:text-foreground transition-colors"
title={copyLabel}
aria-label={copyLabel}
>
diff --git a/packages/views/runtimes/components/connect-remote-dialog.tsx b/packages/views/runtimes/components/connect-remote-dialog.tsx
index 6be58202d3..a49b8c5f77 100644
--- a/packages/views/runtimes/components/connect-remote-dialog.tsx
+++ b/packages/views/runtimes/components/connect-remote-dialog.tsx
@@ -180,7 +180,7 @@ function CopyButton({ text, ariaLabel }: { text: string; ariaLabel: string }) {
type="button"
onClick={handleCopy}
aria-label={ariaLabel}
- className="shrink-0 rounded p-1 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
+ className="shrink-0 rounded-xs p-1 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
>
{copied ? (
<Check className="h-3.5 w-3.5 text-success" aria-hidden />
@@ -314,7 +314,7 @@ function TroubleshootingDetails({ tokenCmd }: { tokenCmd: string }) {
{/* CLI command — literal shell string, not i18n content. */}
<code
className={cn(
- "rounded bg-muted px-1.5 py-0.5 font-mono text-micro text-foreground",
+ "rounded-xs bg-muted px-1.5 py-0.5 font-mono text-micro text-foreground",
CODE_LIGATURE_CLASS,
)}
>
@@ -326,7 +326,7 @@ function TroubleshootingDetails({ tokenCmd }: { tokenCmd: string }) {
{/* CLI command — literal shell string, not i18n content. */}
<code
className={cn(
- "rounded bg-muted px-1.5 py-0.5 font-mono text-micro text-foreground",
+ "rounded-xs bg-muted px-1.5 py-0.5 font-mono text-micro text-foreground",
CODE_LIGATURE_CLASS,
)}
>
diff --git a/packages/views/runtimes/components/delete-runtime-dialog.tsx b/packages/views/runtimes/components/delete-runtime-dialog.tsx
index fa8a321c31..3a1d94000b 100644
--- a/packages/views/runtimes/components/delete-runtime-dialog.tsx
+++ b/packages/views/runtimes/components/delete-runtime-dialog.tsx
@@ -200,8 +200,8 @@ export function DeleteRuntimeDialog({
<AlertDialogContent
className={
cascade
- ? "w-[calc(100vw-2rem)] !max-w-[640px] gap-0 overflow-hidden rounded-lg p-0"
- : "w-[calc(100vw-2rem)] !max-w-[440px] gap-0 overflow-hidden rounded-lg p-0"
+ ? "w-[calc(100vw-2rem)] !max-w-[640px] gap-0 overflow-hidden p-0"
+ : "w-[calc(100vw-2rem)] !max-w-[440px] gap-0 overflow-hidden p-0"
}
onClick={(e) => e.stopPropagation()}
>
diff --git a/packages/views/runtimes/components/delete-runtime-profile-dialog.tsx b/packages/views/runtimes/components/delete-runtime-profile-dialog.tsx
index 1cf6c8fb16..2007d5fbec 100644
--- a/packages/views/runtimes/components/delete-runtime-profile-dialog.tsx
+++ b/packages/views/runtimes/components/delete-runtime-profile-dialog.tsx
@@ -84,7 +84,7 @@ export function DeleteRuntimeProfileDialog({
return (
<AlertDialog open={open} onOpenChange={handleOpenChange}>
<AlertDialogContent
- className="w-[calc(100vw-2rem)] !max-w-[440px] gap-0 overflow-hidden rounded-lg p-0"
+ className="w-[calc(100vw-2rem)] !max-w-[440px] gap-0 overflow-hidden p-0"
onClick={(e) => e.stopPropagation()}
>
<div className="px-5 pb-4 pt-5">
diff --git a/packages/views/runtimes/components/rename-machine-dialog.tsx b/packages/views/runtimes/components/rename-machine-dialog.tsx
index ca22fed4f8..802cecf753 100644
--- a/packages/views/runtimes/components/rename-machine-dialog.tsx
+++ b/packages/views/runtimes/components/rename-machine-dialog.tsx
@@ -83,7 +83,7 @@ export function RenameMachineDialog({
return (
<AlertDialog open={open} onOpenChange={handleOpenChange}>
<AlertDialogContent
- className="w-[calc(100vw-2rem)] !max-w-[440px] gap-0 overflow-hidden rounded-lg p-0"
+ className="w-[calc(100vw-2rem)] !max-w-[440px] gap-0 overflow-hidden p-0"
onClick={(e) => e.stopPropagation()}
>
<div className="px-5 pb-4 pt-5">
diff --git a/packages/views/runtimes/components/runtime-detail-page.tsx b/packages/views/runtimes/components/runtime-detail-page.tsx
index 623140cc35..93f24ea735 100644
--- a/packages/views/runtimes/components/runtime-detail-page.tsx
+++ b/packages/views/runtimes/components/runtime-detail-page.tsx
@@ -239,7 +239,7 @@ export function RuntimeDetailPage({
{healthLabel(machine.health)}
</span>
{machine.isCurrent && (
- <span className="rounded bg-foreground px-1.5 py-0.5 text-micro font-medium text-background">
+ <span className="rounded-xs bg-foreground px-1.5 py-0.5 text-micro font-medium text-background">
{t(($) => $.machine.this_machine)}
</span>
)}
diff --git a/packages/views/runtimes/components/runtime-detail.tsx b/packages/views/runtimes/components/runtime-detail.tsx
index 07adaa894b..e0fdbc0933 100644
--- a/packages/views/runtimes/components/runtime-detail.tsx
+++ b/packages/views/runtimes/components/runtime-detail.tsx
@@ -639,7 +639,7 @@ function VisibilityChoice({
type="button"
onClick={onClick}
disabled={disabled}
- className={`inline-flex items-center gap-1.5 rounded px-2 py-1 text-caption font-medium transition-colors ${
+ className={`inline-flex items-center gap-1.5 rounded-xs px-2 py-1 text-caption font-medium transition-colors ${
active
? "bg-background text-foreground shadow-sm"
: "text-muted-foreground hover:text-foreground"
diff --git a/packages/views/runtimes/components/runtime-list.tsx b/packages/views/runtimes/components/runtime-list.tsx
index 66551cbd93..8b7b37e225 100644
--- a/packages/views/runtimes/components/runtime-list.tsx
+++ b/packages/views/runtimes/components/runtime-list.tsx
@@ -231,8 +231,8 @@ function RuntimeKindBadge({ runtime }: { runtime: AgentRuntime }) {
<span
className={
isCustom
- ? "inline-flex shrink-0 items-center rounded bg-info/10 px-1 text-micro font-medium text-info"
- : "inline-flex shrink-0 items-center rounded bg-muted px-1 text-micro font-medium text-muted-foreground"
+ ? "inline-flex shrink-0 items-center rounded-xs bg-info/10 px-1 text-micro font-medium text-info"
+ : "inline-flex shrink-0 items-center rounded-xs bg-muted px-1 text-micro font-medium text-muted-foreground"
}
>
{isCustom
@@ -247,13 +247,13 @@ function PendingRuntimeBadge({ runtime }: { runtime: AgentRuntime }) {
if (!isPendingCustomRuntime(runtime)) return null;
if (isDisabledCustomRuntime(runtime)) {
return (
- <span className="inline-flex shrink-0 items-center rounded bg-muted px-1 text-micro font-medium text-muted-foreground">
+ <span className="inline-flex shrink-0 items-center rounded-xs bg-muted px-1 text-micro font-medium text-muted-foreground">
{t(($) => $.list.badge_disabled)}
</span>
);
}
return (
- <span className="inline-flex shrink-0 items-center rounded bg-warning/10 px-1 text-micro font-medium text-warning">
+ <span className="inline-flex shrink-0 items-center rounded-xs bg-warning/10 px-1 text-micro font-medium text-warning">
{t(($) => $.list.badge_registering)}
</span>
);
@@ -268,7 +268,7 @@ function VisibilityBadge({ runtime }: { runtime: AgentRuntime }) {
<Tooltip>
<TooltipTrigger
render={
- <span className="inline-flex shrink-0 items-center gap-0.5 rounded bg-info/10 px-1 text-micro font-medium text-info">
+ <span className="inline-flex shrink-0 items-center gap-0.5 rounded-xs bg-info/10 px-1 text-micro font-medium text-info">
<Globe className="h-2.5 w-2.5" />
{t(($) => $.detail.visibility_label.public)}
</span>
diff --git a/packages/views/runtimes/components/runtime-profiles-dialog.tsx b/packages/views/runtimes/components/runtime-profiles-dialog.tsx
index 0f52d2a810..c801e4c281 100644
--- a/packages/views/runtimes/components/runtime-profiles-dialog.tsx
+++ b/packages/views/runtimes/components/runtime-profiles-dialog.tsx
@@ -446,7 +446,7 @@ function CatalogRow({
{label}
</span>
{disabled && (
- <span className="shrink-0 rounded bg-muted px-1 text-micro font-medium text-muted-foreground">
+ <span className="shrink-0 rounded-xs bg-muted px-1 text-micro font-medium text-muted-foreground">
{t(($) => $.profiles.badge_disabled)}
</span>
)}
@@ -957,7 +957,7 @@ function ProfileDetailsForm({
{parsedCommand.fixedArgs.map((arg, index) => (
<span
key={`${arg}-${index}`}
- className="rounded bg-background px-1 font-mono text-foreground"
+ className="rounded-xs bg-background px-1 font-mono text-foreground"
>
{arg}
</span>
diff --git a/packages/views/runtimes/components/runtimes-page.tsx b/packages/views/runtimes/components/runtimes-page.tsx
index d25fbf63bb..218835044d 100644
--- a/packages/views/runtimes/components/runtimes-page.tsx
+++ b/packages/views/runtimes/components/runtimes-page.tsx
@@ -481,7 +481,7 @@ function MachineRow({ machine }: { machine: RuntimeMachine }) {
: t(($) => $.machine.metrics.local_daemon))}
</span>
{machine.isCurrent && (
- <span className="shrink-0 rounded bg-muted px-1.5 py-0.5 text-micro font-medium text-muted-foreground">
+ <span className="shrink-0 rounded-xs bg-muted px-1.5 py-0.5 text-micro font-medium text-muted-foreground">
{t(($) => $.machine.this_machine)}
</span>
)}
@@ -539,13 +539,13 @@ function ProviderIconStack({ providers }: { providers: string[] }) {
{visible.map((provider) => (
<span
key={provider}
- className="inline-flex h-5 w-5 items-center justify-center rounded bg-background ring-1 ring-border"
+ className="inline-flex h-5 w-5 items-center justify-center rounded-xs bg-background ring-1 ring-border"
>
<ProviderLogo provider={provider} className="h-3.5 w-3.5" />
</span>
))}
{extra > 0 && (
- <span className="inline-flex h-5 min-w-5 items-center justify-center rounded bg-muted px-1 text-micro font-medium text-muted-foreground ring-1 ring-border">
+ <span className="inline-flex h-5 min-w-5 items-center justify-center rounded-xs bg-muted px-1 text-micro font-medium text-muted-foreground ring-1 ring-border">
+{extra}
</span>
)}
diff --git a/packages/views/settings/components/delete-workspace-dialog.tsx b/packages/views/settings/components/delete-workspace-dialog.tsx
index af04cc0291..7c4affb2b4 100644
--- a/packages/views/settings/components/delete-workspace-dialog.tsx
+++ b/packages/views/settings/components/delete-workspace-dialog.tsx
@@ -74,7 +74,7 @@ export function DeleteWorkspaceDialog({
<div className="space-y-2">
<Label htmlFor="delete-workspace-confirm" className="text-caption">
{t(($) => $.delete_workspace_dialog.type_to_confirm_prefix)}{" "}
- <code className="rounded bg-muted px-1 py-0.5 font-mono text-caption">
+ <code className="rounded-xs bg-muted px-1 py-0.5 font-mono text-caption">
{workspaceName}
</code>{" "}
{t(($) => $.delete_workspace_dialog.type_to_confirm_suffix)}
diff --git a/packages/views/settings/components/dingtalk-tab.tsx b/packages/views/settings/components/dingtalk-tab.tsx
index 1095f50188..c74c821139 100644
--- a/packages/views/settings/components/dingtalk-tab.tsx
+++ b/packages/views/settings/components/dingtalk-tab.tsx
@@ -189,7 +189,7 @@ export function DingTalkConnectionLabel({
<span className="leading-relaxed">
{permissionTooltipPrefix}{" "}
<code
- className="rounded bg-muted px-1.5 py-0.5 font-mono text-micro text-foreground ring-1 ring-border"
+ className="rounded-xs bg-muted px-1.5 py-0.5 font-mono text-micro text-foreground ring-1 ring-border"
translate="no"
>
{dingTalkChatManagePermission}
@@ -587,7 +587,7 @@ export function DingTalkTab() {
<p className="text-body font-medium">{t(($) => $.dingtalk.not_enabled_title)}</p>
<p className="text-caption text-muted-foreground">
{t(($) => $.dingtalk.not_enabled_description_prefix)}{" "}
- <code className="rounded bg-muted px-1 py-0.5 text-micro">
+ <code className="rounded-xs bg-muted px-1 py-0.5 text-micro">
MULTICA_DINGTALK_SECRET_KEY
</code>{" "}
{t(($) => $.dingtalk.not_enabled_description_suffix)}{" "}
@@ -739,7 +739,7 @@ function InstallationRow({
<h3 className="truncate text-title-sm font-medium text-pretty">
{agentName}
{!isActive && (
- <span className="ml-2 rounded bg-muted px-1.5 py-0.5 text-micro text-muted-foreground">
+ <span className="ml-2 rounded-xs bg-muted px-1.5 py-0.5 text-micro text-muted-foreground">
{t(($) => $.dingtalk.revoked_badge)}
</span>
)}
diff --git a/packages/views/settings/components/github-tab.tsx b/packages/views/settings/components/github-tab.tsx
index 809b22aa3d..efce11750d 100644
--- a/packages/views/settings/components/github-tab.tsx
+++ b/packages/views/settings/components/github-tab.tsx
@@ -190,7 +190,7 @@ export function GitHubTab() {
) : canManage ? (
<p className="text-caption text-muted-foreground">
{t(($) => $.github.connection_description_prefix)}{" "}
- <code className="rounded bg-muted px-1 py-0.5 text-micro">
+ <code className="rounded-xs bg-muted px-1 py-0.5 text-micro">
{t(($) => $.github.connection_identifier_example)}
</code>{" "}
{t(($) => $.github.connection_description_suffix)}{" "}
@@ -239,9 +239,9 @@ export function GitHubTab() {
{canManage && !configured && (
<p className="text-caption text-muted-foreground">
{t(($) => $.github.not_configured)}{" "}
- <code className="rounded bg-muted px-1 py-0.5 text-micro">GITHUB_APP_SLUG</code>{" "}
+ <code className="rounded-xs bg-muted px-1 py-0.5 text-micro">GITHUB_APP_SLUG</code>{" "}
{t(($) => $.github.not_configured_and)}{" "}
- <code className="rounded bg-muted px-1 py-0.5 text-micro">GITHUB_WEBHOOK_SECRET</code>.
+ <code className="rounded-xs bg-muted px-1 py-0.5 text-micro">GITHUB_WEBHOOK_SECRET</code>.
</p>
)}
@@ -279,7 +279,7 @@ export function GitHubTab() {
description={
<p className="text-body text-muted-foreground">
{t(($) => $.github.feature_co_author_description_prefix)}{" "}
- <code className="rounded bg-muted px-1 py-0.5 text-caption">
+ <code className="rounded-xs bg-muted px-1 py-0.5 text-caption">
{"Co-authored-by: multica-agent <[email protected]>"}
</code>{" "}
{t(($) => $.github.feature_co_author_description_suffix)}
diff --git a/packages/views/settings/components/lark-tab.tsx b/packages/views/settings/components/lark-tab.tsx
index 9e95594417..8e46cebf8d 100644
--- a/packages/views/settings/components/lark-tab.tsx
+++ b/packages/views/settings/components/lark-tab.tsx
@@ -113,7 +113,7 @@ export function LarkTab() {
<p className="text-body font-medium">{t(($) => $.lark.not_enabled_title)}</p>
<p className="text-caption text-muted-foreground">
{t(($) => $.lark.not_enabled_description_prefix)}{" "}
- <code className="rounded bg-muted px-1 py-0.5 text-micro">
+ <code className="rounded-xs bg-muted px-1 py-0.5 text-micro">
MULTICA_LARK_SECRET_KEY
</code>{" "}
{t(($) => $.lark.not_enabled_description_suffix)}{" "}
@@ -237,13 +237,13 @@ function InstallationRow({
<div className="space-y-1">
<p className="text-body font-medium">
{agentName}
- <span className="ml-2 rounded bg-muted px-1.5 py-0.5 text-micro text-muted-foreground">
+ <span className="ml-2 rounded-xs bg-muted px-1.5 py-0.5 text-micro text-muted-foreground">
{installation.region === "lark"
? t(($) => $.lark.region_lark)
: t(($) => $.lark.region_feishu)}
</span>
{!isActive && (
- <span className="ml-2 rounded bg-muted px-1.5 py-0.5 text-micro text-muted-foreground">
+ <span className="ml-2 rounded-xs bg-muted px-1.5 py-0.5 text-micro text-muted-foreground">
{t(($) => $.lark.revoked_badge)}
</span>
)}
@@ -469,7 +469,7 @@ function LarkAgentBotStatusRow({
data-testid="lark-agent-bot-status"
>
<span className="inline-block h-1.5 w-1.5 shrink-0 rounded-full bg-emerald-500" />
- <span className="rounded bg-muted px-1.5 py-0.5 text-micro text-muted-foreground">
+ <span className="rounded-xs bg-muted px-1.5 py-0.5 text-micro text-muted-foreground">
{installation.region === "lark"
? t(($) => $.lark.region_lark)
: t(($) => $.lark.region_feishu)}
@@ -560,7 +560,7 @@ function LarkAgentBotConnectedBadge({
<div className="flex items-center justify-between gap-3">
<span className="inline-flex min-w-0 items-center gap-2 text-caption text-muted-foreground">
<span className="inline-block h-1.5 w-1.5 shrink-0 rounded-full bg-emerald-500" />
- <span className="rounded bg-muted px-1.5 py-0.5 text-micro text-muted-foreground">
+ <span className="rounded-xs bg-muted px-1.5 py-0.5 text-micro text-muted-foreground">
{installation.region === "lark"
? t(($) => $.lark.region_lark)
: t(($) => $.lark.region_feishu)}
diff --git a/packages/views/settings/components/plugins-tab.tsx b/packages/views/settings/components/plugins-tab.tsx
index f28b3557c3..f81d10088f 100644
--- a/packages/views/settings/components/plugins-tab.tsx
+++ b/packages/views/settings/components/plugins-tab.tsx
@@ -54,7 +54,7 @@ function ScopeList({ scopes, highlighted }: { scopes: string[]; highlighted?: st
<ul className="space-y-1.5">
{scopes.map((scope) => (
<li key={scope} className="flex items-baseline gap-2 text-caption">
- <code className="shrink-0 rounded bg-muted px-1.5 py-0.5 font-mono">{scope}</code>
+ <code className="shrink-0 rounded-xs bg-muted px-1.5 py-0.5 font-mono">{scope}</code>
<span className="text-muted-foreground">{scopeDescription(scope, t)}</span>
{added.has(scope) ? (
<Badge variant="secondary">{t(($) => $.plugins.consent.new_scope)}</Badge>
@@ -80,7 +80,7 @@ function ScheduleList({ hooks, showNextRun = false }: { hooks: ScheduledHook[];
<li key={hook.key} className="flex flex-wrap items-baseline gap-2 text-caption">
<span className="font-medium">{hook.name}</span>
<span>{scheduleFrequency(hook.schedule?.cron ?? "", t)}</span>
- <code className="rounded bg-muted px-1.5 py-0.5 font-mono">{hook.schedule?.cron ?? ""}</code>
+ <code className="rounded-xs bg-muted px-1.5 py-0.5 font-mono">{hook.schedule?.cron ?? ""}</code>
<span className="text-muted-foreground">{hook.schedule?.timezone ?? ""}</span>
{showNextRun && hook.schedule?.next_run_at ? (
<span className="text-muted-foreground">
@@ -516,7 +516,7 @@ function PublishedPackage({
<ul className="space-y-1.5">
{pluginPackage.versions.map((version) => (
<li key={version.id} className="flex flex-wrap items-center gap-2 text-caption">
- <code className="rounded bg-muted px-1.5 py-0.5 font-mono">{version.version}</code>
+ <code className="rounded-xs bg-muted px-1.5 py-0.5 font-mono">{version.version}</code>
{version.installed === true ? (
<Badge variant="secondary">{t(($) => $.plugins.publish.installed_version)}</Badge>
) : null}
diff --git a/packages/views/settings/components/slack-tab.tsx b/packages/views/settings/components/slack-tab.tsx
index db600dce0a..b0eab08d5e 100644
--- a/packages/views/settings/components/slack-tab.tsx
+++ b/packages/views/settings/components/slack-tab.tsx
@@ -97,7 +97,7 @@ export function SlackTab() {
<p className="text-body font-medium">{t(($) => $.slack.not_enabled_title)}</p>
<p className="text-caption text-muted-foreground">
{t(($) => $.slack.not_enabled_description_prefix)}{" "}
- <code className="rounded bg-muted px-1 py-0.5 text-micro">
+ <code className="rounded-xs bg-muted px-1 py-0.5 text-micro">
MULTICA_SLACK_SECRET_KEY
</code>{" "}
{t(($) => $.slack.not_enabled_description_suffix)}{" "}
@@ -210,7 +210,7 @@ function InstallationRow({
<p className="text-body font-medium">
{agentName}
{!isActive && (
- <span className="ml-2 rounded bg-muted px-1.5 py-0.5 text-micro text-muted-foreground">
+ <span className="ml-2 rounded-xs bg-muted px-1.5 py-0.5 text-micro text-muted-foreground">
{t(($) => $.slack.revoked_badge)}
</span>
)}
diff --git a/packages/views/settings/components/telegram-tab.tsx b/packages/views/settings/components/telegram-tab.tsx
index 130a9f9ba0..f6798ccebb 100644
--- a/packages/views/settings/components/telegram-tab.tsx
+++ b/packages/views/settings/components/telegram-tab.tsx
@@ -106,7 +106,7 @@ export function TelegramTab() {
<p className="text-body font-medium">{t(($) => $.telegram.not_enabled_title)}</p>
<p className="text-caption text-muted-foreground">
{t(($) => $.telegram.not_enabled_description_prefix)}{" "}
- <code className="rounded bg-muted px-1 py-0.5 text-micro">
+ <code className="rounded-xs bg-muted px-1 py-0.5 text-micro">
MULTICA_TELEGRAM_SECRET_KEY
</code>{" "}
{t(($) => $.telegram.not_enabled_description_suffix)}{" "}
@@ -209,7 +209,7 @@ function InstallationRow({
</span>
) : null}
{!isActive && (
- <span className="ml-2 rounded bg-muted px-1.5 py-0.5 text-micro text-muted-foreground">
+ <span className="ml-2 rounded-xs bg-muted px-1.5 py-0.5 text-micro text-muted-foreground">
{t(($) => $.telegram.revoked_badge)}
</span>
)}
diff --git a/packages/views/settings/components/tokens-tab.tsx b/packages/views/settings/components/tokens-tab.tsx
index 91056bb107..0c1dccc124 100644
--- a/packages/views/settings/components/tokens-tab.tsx
+++ b/packages/views/settings/components/tokens-tab.tsx
@@ -183,7 +183,7 @@ export function TokensTab() {
<Skeleton className="h-4 w-32" />
<Skeleton className="h-3 w-48" />
</div>
- <Skeleton className="h-8 w-8 rounded" />
+ <Skeleton className="h-8 w-8 rounded-xs" />
</CardContent>
</Card>
))}
diff --git a/packages/views/settings/components/vcs-tab.tsx b/packages/views/settings/components/vcs-tab.tsx
index 37adb17566..188c735b3f 100644
--- a/packages/views/settings/components/vcs-tab.tsx
+++ b/packages/views/settings/components/vcs-tab.tsx
@@ -205,7 +205,7 @@ export function VCSTab() {
{!configured ? (
<p className="text-caption text-muted-foreground">
{t(($) => $.vcs.not_configured)}{" "}
- <code className="rounded bg-muted px-1 py-0.5 text-micro">
+ <code className="rounded-xs bg-muted px-1 py-0.5 text-micro">
MULTICA_VCS_SECRET_KEY
</code>
.
diff --git a/packages/views/settings/components/wecom-tab.tsx b/packages/views/settings/components/wecom-tab.tsx
index abe3ff6434..72631433e1 100644
--- a/packages/views/settings/components/wecom-tab.tsx
+++ b/packages/views/settings/components/wecom-tab.tsx
@@ -94,7 +94,7 @@ export function WecomTab() {
<p className="text-body font-medium">{t(($) => $.wecom.not_enabled_title)}</p>
<p className="text-caption text-muted-foreground">
{t(($) => $.wecom.not_enabled_description_prefix)}{" "}
- <code className="rounded bg-muted px-1 py-0.5 text-micro">
+ <code className="rounded-xs bg-muted px-1 py-0.5 text-micro">
MULTICA_WECOM_SECRET_KEY
</code>{" "}
{t(($) => $.wecom.not_enabled_description_suffix)}{" "}
@@ -206,7 +206,7 @@ function InstallationRow({
<p className="text-body font-medium">
{agentName}
{!isActive && (
- <span className="ml-2 rounded bg-muted px-1.5 py-0.5 text-micro text-muted-foreground">
+ <span className="ml-2 rounded-xs bg-muted px-1.5 py-0.5 text-micro text-muted-foreground">
{t(($) => $.wecom.revoked_badge)}
</span>
)}
diff --git a/packages/views/skills/components/file-tree.tsx b/packages/views/skills/components/file-tree.tsx
index 839360f02c..c5bb01c214 100644
--- a/packages/views/skills/components/file-tree.tsx
+++ b/packages/views/skills/components/file-tree.tsx
@@ -242,7 +242,7 @@ function TreeNodeItem({
// file name. Selecting a supporting file opened this menu
// instead (MUL-5654). opacity-0 does not opt out of hit
// testing, so the row was unclickable even before hover.
- className="relative mr-1 shrink-0 rounded p-0.5 text-faint-foreground opacity-0 transition-opacity after:absolute after:-inset-1 hover:text-foreground group-hover/row:opacity-100 focus-visible:opacity-100 aria-expanded:opacity-100"
+ className="relative mr-1 shrink-0 rounded-xs p-0.5 text-faint-foreground opacity-0 transition-opacity after:absolute after:-inset-1 hover:text-foreground group-hover/row:opacity-100 focus-visible:opacity-100 aria-expanded:opacity-100"
onClick={(event) => event.stopPropagation()}
>
<MoreHorizontal className="h-3.5 w-3.5" />
diff --git a/packages/views/skills/components/runtime-local-skill-import-panel.tsx b/packages/views/skills/components/runtime-local-skill-import-panel.tsx
index f00946bd08..87c49ae3a8 100644
--- a/packages/views/skills/components/runtime-local-skill-import-panel.tsx
+++ b/packages/views/skills/components/runtime-local-skill-import-panel.tsx
@@ -311,7 +311,7 @@ function BulkImportSummary({ results }: { results: BulkImportResult[] }) {
{results.map((r) => (
<div
key={r.key}
- className="flex items-center gap-2 rounded px-2 py-1.5 text-caption"
+ className="flex items-center gap-2 rounded-xs px-2 py-1.5 text-caption"
>
<ResultIcon status={r.status} />
<span className="min-w-0 flex-1 truncate">{r.name}</span>
@@ -953,7 +953,7 @@ export function RuntimeLocalSkillImportPanel({
{bulkState.results.map((r) => (
<div
key={r.key}
- className="flex items-center gap-2 rounded px-2 py-1 text-caption"
+ className="flex items-center gap-2 rounded-xs px-2 py-1 text-caption"
>
<ResultIcon status={r.status} />
<span className="truncate">{r.name}</span>
diff --git a/packages/views/skills/components/skill-detail-page.tsx b/packages/views/skills/components/skill-detail-page.tsx
index 04be0b0fc3..5514ed4cad 100644
--- a/packages/views/skills/components/skill-detail-page.tsx
+++ b/packages/views/skills/components/skill-detail-page.tsx
@@ -698,7 +698,7 @@ function FilesTab({
aria-pressed={mode === value}
onClick={() => onModeChange(value)}
className={cn(
- "h-6 rounded px-2 text-caption font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
+ "h-6 rounded-xs px-2 text-caption font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
mode === value
? "bg-surface text-foreground shadow-sm"
: "text-muted-foreground hover:text-foreground",
@@ -1097,7 +1097,7 @@ export function SkillDetailPage({ skillId }: { skillId: string }) {
<div className="flex flex-1 min-h-0 flex-col">
<div className="flex h-12 shrink-0 items-center gap-2 border-b px-4">
<Skeleton className="h-4 w-16" />
- <Skeleton className="h-3 w-3 rounded" />
+ <Skeleton className="h-3 w-3 rounded-xs" />
<Skeleton className="h-4 w-40" />
</div>
<div className={cn(PAGE_RAIL, PAGE_GUTTER, "space-y-3 py-6")}>
diff --git a/packages/views/skills/components/skill-list-actions.tsx b/packages/views/skills/components/skill-list-actions.tsx
index 6a48615a59..4b2d582381 100644
--- a/packages/views/skills/components/skill-list-actions.tsx
+++ b/packages/views/skills/components/skill-list-actions.tsx
@@ -155,7 +155,7 @@ function SkillChips({ skills }: { skills: SkillSummary[] }) {
const visible = skills.slice(0, MAX_SKILL_CHIPS);
const overflow = skills.slice(MAX_SKILL_CHIPS);
const chipClass =
- "max-w-[10rem] truncate rounded bg-muted px-1.5 py-0.5 text-caption text-muted-foreground";
+ "max-w-[10rem] truncate rounded-xs bg-muted px-1.5 py-0.5 text-caption text-muted-foreground";
return (
<div className="flex flex-wrap items-center gap-1">
{visible.map((s) => (
@@ -820,7 +820,7 @@ export function SkillBatchToolbar({
type="button"
aria-label={t(($) => $.actions.clear_selection)}
onClick={onClear}
- className="rounded p-0.5 transition-colors hover:bg-accent"
+ className="rounded-xs p-0.5 transition-colors hover:bg-accent"
>
<X className="size-3.5 text-muted-foreground" />
</button>
diff --git a/packages/views/squads/components/squad-detail-page.tsx b/packages/views/squads/components/squad-detail-page.tsx
index 7d66ed4333..cba6e9c492 100644
--- a/packages/views/squads/components/squad-detail-page.tsx
+++ b/packages/views/squads/components/squad-detail-page.tsx
@@ -393,7 +393,7 @@ function SquadNameEditor({
<button
type="button"
{...triggerProps}
- className="group -mx-1 inline-flex items-center gap-1.5 self-start rounded px-1 text-left text-title font-semibold leading-tight transition-colors hover:bg-accent/50"
+ className="group -mx-1 inline-flex items-center gap-1.5 self-start rounded-xs px-1 text-left text-title font-semibold leading-tight transition-colors hover:bg-accent/50"
>
<span>{value}</span>
<Pencil className="h-3.5 w-3.5 shrink-0 text-transparent transition-colors group-hover:text-muted-foreground" />
@@ -844,7 +844,7 @@ function SquadDescriptionEditor({
<button
type="button"
onClick={() => setOpen(true)}
- className="group -mx-1 inline-flex items-start gap-1.5 self-start rounded px-1 text-left text-caption leading-relaxed transition-colors hover:bg-accent/50"
+ className="group -mx-1 inline-flex items-start gap-1.5 self-start rounded-xs px-1 text-left text-caption leading-relaxed transition-colors hover:bg-accent/50"
>
{value ? (
<span className="text-muted-foreground">{value}</span>
@@ -1190,7 +1190,7 @@ function SquadMembersTab({
{t(($) => $.member_type[m.member_type])}
</span>
{isLeader(m) && (
- <span className="inline-flex items-center gap-0.5 text-caption bg-amber-100 dark:bg-amber-900/30 text-amber-700 dark:text-amber-400 px-1.5 py-0.5 rounded">
+ <span className="inline-flex items-center gap-0.5 text-caption bg-amber-100 dark:bg-amber-900/30 text-amber-700 dark:text-amber-400 px-1.5 py-0.5 rounded-xs">
<Crown className="size-3" />
{t(($) => $.members_tab.leader_chip)}
</span>
diff --git a/scripts/check-ui-radius-tokens.mjs b/scripts/check-ui-radius-tokens.mjs
new file mode 100644
index 0000000000..e00336786f
--- /dev/null
+++ b/scripts/check-ui-radius-tokens.mjs
@@ -0,0 +1,161 @@
+#!/usr/bin/env node
+/**
+ * Keeps product radii on the shared taxonomy.
+ *
+ * Bare Tailwind radius utilities are hidden constants in Tailwind v4,
+ * bypassing our `--radius-*` scale. Fixed arbitrary lengths create the same
+ * drift. The few 2–3px data-visualization marks below are intentional
+ * micro-geometry, not product surfaces, and are allowlisted by exact file so
+ * the exception cannot spread silently.
+ *
+ * Run: node scripts/check-ui-radius-tokens.mjs
+ */
+
+import { readdirSync, readFileSync } from "node:fs";
+import { extname, join, relative, resolve, sep } from "node:path";
+import { fileURLToPath } from "node:url";
+import ts from "typescript";
+
+const repoRoot = resolve(import.meta.dirname, "..");
+const roots = ["apps/web", "apps/desktop", "apps/mobile", "packages/ui", "packages/views"];
+const extensions = new Set([".ts", ".tsx", ".js", ".jsx", ".mjs", ".mdx"]);
+const skippedDirectories = new Set(["node_modules", ".next", ".turbo", "dist", "build", "out"]);
+const radiusNames = ["xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl"];
+const directionalRadius = "(?:t|r|b|l|s|e|x|y|tl|tr|br|bl|ss|se|es|ee)";
+const fixedCssLength = /^(?:\d+(?:\.\d+)?|\.\d+)(?:px|rem|em|%|cm|mm|in|pt|pc|q|vh|vw|vmin|vmax|ch|ex|lh|rlh|cap|ic)$/;
+
+const microGeometryAllowlist = new Set([
+ "apps/web/features/landing/components/features-section.tsx:rounded-[2px]",
+ "packages/ui/components/ui/chart.tsx:rounded-[2px]",
+ "packages/views/common/task-transcript/run-timeline.tsx:rounded-[3px]",
+ "packages/views/dashboard/components/errors-tab.tsx:rounded-[2px]",
+ "packages/views/issues/components/gantt-view.tsx:rounded-[2px]",
+ "packages/views/runtimes/components/charts/activity-heatmap.tsx:rounded-[2px]",
+]);
+
+function walk(directory, files = []) {
+ for (const entry of readdirSync(directory, { withFileTypes: true })) {
+ if (entry.name.startsWith(".") || skippedDirectories.has(entry.name)) continue;
+ const path = join(directory, entry.name);
+ if (entry.isDirectory()) walk(path, files);
+ else if (extensions.has(extname(entry.name))) files.push(path);
+ }
+ return files;
+}
+
+function isStringSegment(node) {
+ return (
+ ts.isStringLiteral(node) ||
+ ts.isNoSubstitutionTemplateLiteral(node) ||
+ node.kind === ts.SyntaxKind.TemplateHead ||
+ node.kind === ts.SyntaxKind.TemplateMiddle ||
+ node.kind === ts.SyntaxKind.TemplateTail
+ );
+}
+
+function utilityName(token) {
+ const withoutVariant = token.slice(token.lastIndexOf(":") + 1);
+ return withoutVariant.replace(/^!/, "").replace(/!$/, "");
+}
+
+export function radiusViolations(sourceText, filePath) {
+ const source = ts.createSourceFile(filePath, sourceText, ts.ScriptTarget.Latest, true);
+ const relativePath = relative(repoRoot, filePath).split(sep).join("/");
+ const violations = [];
+
+ const visit = (node) => {
+ if (isStringSegment(node)) {
+ for (const token of node.text.split(/\s+/)) {
+ const utility = utilityName(token);
+ const bare = new RegExp(`^rounded(?:-${directionalRadius})?$`).test(utility);
+ const arbitrary = utility.match(
+ new RegExp(`^rounded(?:-${directionalRadius})?-\\[([^\\]]+)\\]$`),
+ );
+ const fixedArbitrary = arbitrary && fixedCssLength.test(arbitrary[1]);
+ const allowKey = `${relativePath}:${utility}`;
+ if (bare || (fixedArbitrary && !microGeometryAllowlist.has(allowKey))) {
+ const { line, character } = source.getLineAndCharacterOfPosition(node.getStart(source));
+ violations.push({
+ file: relativePath,
+ line: line + 1,
+ column: character + 1,
+ token,
+ });
+ }
+ }
+ }
+ ts.forEachChild(node, visit);
+ };
+ visit(source);
+ return violations;
+}
+
+/** Ensure NativeWind resolves every named radius to the web token value. */
+export function radiusScaleViolations(webTokensSource, mobileRadiusTokens) {
+ const baseMatch = webTokensSource.match(/--radius:\s*(\d+(?:\.\d+)?)rem\s*;/);
+ if (!baseMatch) return ["web base radius is missing"];
+
+ const basePx = Number(baseMatch[1]) * 16;
+ const violations = [];
+ for (const name of radiusNames) {
+ const declaration = webTokensSource.match(
+ new RegExp(`--radius-${name}:\\s*([^;]+);`),
+ )?.[1].trim();
+ if (!declaration) {
+ violations.push(`${name}: web token is missing`);
+ continue;
+ }
+
+ const multiplier = declaration === "var(--radius)"
+ ? 1
+ : Number(declaration.match(
+ /^calc\(var\(--radius\) \* (\d+(?:\.\d+)?)\)$/,
+ )?.[1]);
+ if (!Number.isFinite(multiplier)) {
+ violations.push(`${name}: unsupported web declaration ${declaration}`);
+ continue;
+ }
+
+ const webValue = basePx * multiplier;
+ const mobileValue = mobileRadiusTokens[name];
+ if (mobileValue !== webValue) {
+ violations.push(`${name}: web=${webValue}px mobile=${String(mobileValue)}px`);
+ }
+ }
+ return violations;
+}
+
+function main() {
+ const files = roots.flatMap((root) => walk(join(repoRoot, root)));
+ const violations = files.flatMap((file) =>
+ radiusViolations(readFileSync(file, "utf8"), file),
+ );
+
+ const scaleViolations = radiusScaleViolations(
+ readFileSync(join(repoRoot, "packages/ui/styles/tokens.css"), "utf8"),
+ JSON.parse(readFileSync(join(repoRoot, "apps/mobile/lib/radius-tokens.json"), "utf8")),
+ );
+
+ if (scaleViolations.length > 0) {
+ console.error(`Web/mobile radius scale drift (${scaleViolations.length})`);
+ for (const violation of scaleViolations) console.error(` ${violation}`);
+ }
+
+ if (violations.length > 0) {
+ console.error(`Un-tokenized product radius utilities (${violations.length})`);
+ for (const violation of violations) {
+ console.error(
+ ` ${violation.file}:${violation.line}:${violation.column} ${violation.token}`,
+ );
+ }
+ console.error(
+ "\nUse a named `rounded-*` token. Add a narrowly scoped allowlist only for genuine data-visualization micro-geometry.",
+ );
+ }
+
+ if (scaleViolations.length > 0 || violations.length > 0) process.exit(1);
+
+ console.log(`UI radius tokens clean (${files.length} source files checked).`);
+}
+
+if (resolve(process.argv[1] ?? "") === fileURLToPath(import.meta.url)) main();
diff --git a/scripts/check-ui-radius-tokens.test.mjs b/scripts/check-ui-radius-tokens.test.mjs
new file mode 100644
index 0000000000..6baf650611
--- /dev/null
+++ b/scripts/check-ui-radius-tokens.test.mjs
@@ -0,0 +1,69 @@
+import assert from "node:assert/strict";
+import test from "node:test";
+import { resolve } from "node:path";
+
+import {
+ radiusScaleViolations,
+ radiusViolations,
+} from "./check-ui-radius-tokens.mjs";
+
+const probe = resolve("packages/views/zz-radius-probe.tsx");
+
+test("rejects bare radius utilities, including directions, variants, and templates", () => {
+ const source = `
+ const plain = "rounded border";
+ const variant = \`hover:rounded data-open:rounded-t \${active ? "rounded-bl" : ""}\`;
+ `;
+ assert.deepEqual(
+ radiusViolations(source, probe).map((finding) => finding.token),
+ ["rounded", "hover:rounded", "data-open:rounded-t", "rounded-bl"],
+ );
+});
+
+test("rejects fixed arbitrary product radii regardless of CSS unit", () => {
+ const findings = radiusViolations(
+ `const classes = "rounded-[4px] data-open:rounded-t-[0.75rem] rounded-b-[1em]";`,
+ probe,
+ );
+ assert.deepEqual(
+ findings.map((finding) => finding.token),
+ ["rounded-[4px]", "data-open:rounded-t-[0.75rem]", "rounded-b-[1em]"],
+ );
+});
+
+test("accepts named, computed, and explicitly allowlisted micro-geometry", () => {
+ assert.equal(
+ radiusViolations(
+ `const classes = "rounded-xs rounded-lg rounded-[calc(var(--radius)-3px)]";`,
+ probe,
+ ).length,
+ 0,
+ );
+ assert.equal(
+ radiusViolations(
+ `const mark = "rounded-[2px]";`,
+ resolve("packages/ui/components/ui/chart.tsx"),
+ ).length,
+ 0,
+ );
+});
+
+test("keeps the mobile radius scale aligned with resolved web tokens", () => {
+ const webTokens = `
+ --radius-xs: calc(var(--radius) * 0.375);
+ --radius-sm: calc(var(--radius) * 0.5);
+ --radius-md: calc(var(--radius) * 0.75);
+ --radius-lg: var(--radius);
+ --radius-xl: calc(var(--radius) * 1.5);
+ --radius-2xl: calc(var(--radius) * 2);
+ --radius-3xl: calc(var(--radius) * 2.5);
+ --radius-4xl: calc(var(--radius) * 3);
+ --radius: 0.5rem;
+ `;
+ const aligned = { xs: 3, sm: 4, md: 6, lg: 8, xl: 12, "2xl": 16, "3xl": 20, "4xl": 24 };
+ assert.deepEqual(radiusScaleViolations(webTokens, aligned), []);
+ assert.deepEqual(
+ radiusScaleViolations(webTokens, { ...aligned, xl: 10 }),
+ ["xl: web=12px mobile=10px"],
+ );
+});