Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

style(app): clean up button variants (#7221)

Seamus8122349251f2
diff --git a/apps/web/src/components/app/FatalError.tsx b/apps/web/src/components/app/FatalError.tsx
index 25c926a676..fca3f1c756 100644
--- a/apps/web/src/components/app/FatalError.tsx
+++ b/apps/web/src/components/app/FatalError.tsx
@@ -41,7 +41,7 @@ export function FatalError(props: FatalErrorProps) {
<div class="flex flex-row gap-3 justify-center">
<Button
- variant="accent"
+ variant="strong"
onClick={() => {
window.location.href = window.location.origin + '/app';
}}
diff --git a/apps/web/src/components/app/app-sidebar/sidebar.tsx b/apps/web/src/components/app/app-sidebar/sidebar.tsx
index 5a81f2c43d..a7a8b8f063 100644
--- a/apps/web/src/components/app/app-sidebar/sidebar.tsx
+++ b/apps/web/src/components/app/app-sidebar/sidebar.tsx
@@ -393,9 +393,9 @@ export const SidebarSettingsWidget = (props: SidebarSettingsWidgetProps) => {
onOpenChange={props.onMenuOpenChange}
>
<Dropdown.Trigger
- variant="plain"
+ variant="ghost"
class={cn(
- 'flex items-center rounded-md cursor-default text-ink-extra-muted not-disabled:hover:bg-ink/3 h-9',
+ 'flex items-center cursor-default text-ink-extra-muted not-disabled:hover:bg-ink/3 h-9',
props.compact
? 'justify-center gap-0 p-0'
: 'justify-start gap-3 px-1.5 py-1'
diff --git a/apps/web/src/components/app/mobile/ConfirmDrawer.tsx b/apps/web/src/components/app/mobile/ConfirmDrawer.tsx
index 2bed2d2801..864a92deaa 100644
--- a/apps/web/src/components/app/mobile/ConfirmDrawer.tsx
+++ b/apps/web/src/components/app/mobile/ConfirmDrawer.tsx
@@ -3,7 +3,6 @@ import CloseIcon from '@phosphor/x.svg';
import { ActionDialogShell } from '@ui/components/ActionDialogShell';
import { Button } from '@ui/components/Button';
import type { ConfirmDialogProps } from '@ui/components/ConfirmDialog';
-import { cn } from '@ui/utils/classname';
import { createUniqueId, Show } from 'solid-js';
import { MobileDrawer } from './MobileDrawer';
@@ -41,7 +40,7 @@ export function ConfirmDrawer(props: ConfirmDialogProps) {
variant="ghost"
size="icon-lg"
aria-label="Close confirmation"
- class="rounded-full bg-ink/6"
+ class="bg-ink/6"
disabled={props.pending}
onClick={close}
>
@@ -60,23 +59,16 @@ export function ConfirmDrawer(props: ConfirmDialogProps) {
<Button
variant="ghost"
size="xl"
- class="min-w-0 flex-1 rounded-full bg-ink/6"
+ class="min-w-0 flex-1"
disabled={props.pending}
onClick={close}
>
{props.cancelLabel ?? 'Cancel'}
</Button>
<Button
- variant="ghost"
+ variant="strong"
size="xl"
- class={cn(
- 'min-w-0 flex-1 rounded-full',
- props.tone === 'danger'
- ? 'bg-failure-bg text-failure'
- : props.tone === 'success'
- ? 'bg-success-bg text-success'
- : 'bg-accent-bg text-accent'
- )}
+ class="min-w-0 flex-1"
disabled={props.pending}
onClick={() => !props.pending && props.onConfirm()}
>
diff --git a/apps/web/src/components/app/side-panel/SidePanel.tsx b/apps/web/src/components/app/side-panel/SidePanel.tsx
index 6790767ba3..eb7f8c0e48 100644
--- a/apps/web/src/components/app/side-panel/SidePanel.tsx
+++ b/apps/web/src/components/app/side-panel/SidePanel.tsx
@@ -309,12 +309,11 @@ function Toggle() {
<Show when={ctx.hasSections()}>
<Button
depth={2}
- variant="plain"
+ variant="ghost"
size="icon-md"
class={cn(
- 'rounded-xl',
isTouchDevice() &&
- 'rounded-full border-0 hover:bg-transparent! active:bg-transparent! focus-visible:bg-transparent! active:text-accent',
+ 'border-0 hover:bg-transparent! active:bg-transparent! focus-visible:bg-transparent! active:text-accent',
isTouchDevice() && ctx.isOpen() && 'text-accent'
)}
tooltip={ctx.isOpen() ? 'Hide Side Panel' : 'Show Side Panel'}
diff --git a/apps/web/src/components/app/sidebar-next/create-button.tsx b/apps/web/src/components/app/sidebar-next/create-button.tsx
index b7598d3095..35343309dc 100644
--- a/apps/web/src/components/app/sidebar-next/create-button.tsx
+++ b/apps/web/src/components/app/sidebar-next/create-button.tsx
@@ -10,7 +10,7 @@ const RailCreateTrigger = (props: ButtonProps) => (
<Button
{...props}
variant="ghost"
- class="size-10 rounded-xl [&_svg]:size-5"
+ class="size-10 [&_svg]:size-5"
size="icon-md"
label="Create"
tooltipPlacement="right"
diff --git a/apps/web/src/components/app/split-layout/components/SplitHeader.tsx b/apps/web/src/components/app/split-layout/components/SplitHeader.tsx
index 8d2d3b6793..fa1a07f2fe 100644
--- a/apps/web/src/components/app/split-layout/components/SplitHeader.tsx
+++ b/apps/web/src/components/app/split-layout/components/SplitHeader.tsx
@@ -129,7 +129,7 @@ function SplitBackButton() {
<Button
square
size="sm"
- class="p-1 rounded-lg touch:active:bg-transparent"
+ class="p-1 touch:active:bg-transparent"
label="Go Back"
hotkey={TOKENS.split.go.back}
disabled={!context.handle.canGoBack()}
@@ -150,7 +150,7 @@ function _SplitSpotlightButton() {
return (
<Show when={canSpotlight(layout.manager)}>
<Button
- class="p-1 rounded-lg hidden"
+ class="p-1 hidden"
label={
context.handle.isSpotLight() ? 'Minimize Split' : 'Spotlight Split'
}
@@ -188,7 +188,6 @@ function SplitCloseButton() {
<Button
square
size="icon-sm"
- class="rounded-lg"
label={label()}
hotkey={TOKENS.split.close}
onClick={() => closeSplitOrReturnToList(layout.manager, context.handle)}
diff --git a/apps/web/src/components/app/split-panel/SplitPanel.tsx b/apps/web/src/components/app/split-panel/SplitPanel.tsx
index c127cda6a6..c45e976795 100644
--- a/apps/web/src/components/app/split-panel/SplitPanel.tsx
+++ b/apps/web/src/components/app/split-panel/SplitPanel.tsx
@@ -185,7 +185,7 @@ function BackButton(props: SplitControlButtonProps) {
square={local.square ?? true}
class={cn(
!local.size && 'p-1',
- 'rounded-lg transition-none touch:active:bg-transparent',
+ 'transition-none touch:active:bg-transparent',
local.class
)}
aria-label={local['aria-label']}
@@ -224,7 +224,7 @@ function ForwardButton(props: SplitControlButtonProps) {
square={local.square ?? true}
class={cn(
!local.size && 'p-1',
- 'rounded-lg transition-none touch:active:bg-transparent',
+ 'transition-none touch:active:bg-transparent',
local.class
)}
aria-label={local['aria-label']}
@@ -263,7 +263,7 @@ function CloseButton(props: SplitControlButtonProps) {
variant={local.variant}
size={local.size ?? 'icon-sm'}
square={local.square ?? true}
- class={cn('rounded-lg transition-none', local.class)}
+ class={cn('transition-none', local.class)}
aria-label={local['aria-label']}
label={label()}
hotkey={local.hotkey ?? TOKENS.split.close}
diff --git a/apps/web/src/components/ui/components/Button.docs.tsx b/apps/web/src/components/ui/components/Button.docs.tsx
index 58b515b8b6..f2a406d3fc 100644
--- a/apps/web/src/components/ui/components/Button.docs.tsx
+++ b/apps/web/src/components/ui/components/Button.docs.tsx
@@ -31,6 +31,15 @@ function VariantsDemo() {
<PlusIcon />
With icon
</Button>
+ <Button variant={variant} size="icon-md" label={`${variant} icon`}>
+ <PlusIcon />
+ </Button>
+ <Button variant={variant} glass>
+ Glass
+ </Button>
+ <Button variant={variant} glass={false}>
+ No glass
+ </Button>
<Button variant={variant} disabled>
Disabled
</Button>
@@ -186,7 +195,7 @@ export default defineDoc({
id: 'variants',
title: 'Variants',
description:
- '`ghost` for low-emphasis actions in dense chrome, `outline` for standard actions, `accent` for the primary action in a group, `cta` for the single most important action on a screen. `danger` is reserved for destructive work.',
+ '`ghost` for low-emphasis actions in dense chrome, `outline` for standard actions, `strong` for the same frame with bolder text, `accent` for the primary action in a group, `cta` for the single most important action on a screen. `danger` is reserved for destructive work. Framed variants use glass only on touch by default. `glass={true}` opts in on desktop; `glass={false}` removes it everywhere. Success and danger use colored ink with an unfilled outline frame; icon sizes preserve the same emphasis as text buttons.',
render: VariantsDemo,
fill: true,
},
diff --git a/apps/web/src/components/ui/components/Button.test.tsx b/apps/web/src/components/ui/components/Button.test.tsx
new file mode 100644
index 0000000000..382012b073
--- /dev/null
+++ b/apps/web/src/components/ui/components/Button.test.tsx
@@ -0,0 +1,62 @@
+import { cleanup, render, screen } from '@solidjs/testing-library';
+import { createSignal } from 'solid-js';
+import { afterEach, describe, expect, it } from 'vitest';
+import { Button, type ButtonSize, buttonClasses } from './Button';
+import { ButtonGroup } from './ButtonGroup';
+
+afterEach(cleanup);
+
+describe('Button emphasis', () => {
+ it.each(['md', 'icon-md', 'icon-composer'] satisfies ButtonSize[])(
+ 'preserves variant emphasis at size %s, including square controls',
+ (size) => {
+ for (const square of [false, true]) {
+ expect(buttonClasses({ variant: 'strong', size, square })).toContain(
+ 'bg-control'
+ );
+ expect(buttonClasses({ variant: 'strong', size, square })).toContain(
+ 'font-semibold'
+ );
+ expect(buttonClasses({ variant: 'cta', size, square })).toContain(
+ 'bg-accent '
+ );
+ expect(buttonClasses({ variant: 'outline', size, square })).toContain(
+ 'border-edge-button'
+ );
+ }
+ }
+ );
+
+ it('can disable glass reactively without changing emphasis or leaking a DOM prop', () => {
+ const [glass, setGlass] = createSignal<boolean | undefined>();
+ render(() => (
+ <Button variant="cta" glass={glass()}>
+ Create
+ </Button>
+ ));
+ const button = screen.getByRole('button', { name: 'Create' });
+ expect(button.classList.contains('glass')).toBe(false);
+ expect(button.classList.contains('touch:glass')).toBe(true);
+ setGlass(true);
+ expect(button.classList.contains('glass')).toBe(true);
+ expect(button.classList.contains('touch:glass')).toBe(false);
+ setGlass(false);
+ expect(button.classList.contains('touch:glass')).toBe(false);
+ expect(button.classList.contains('glass')).toBe(false);
+ expect(button.classList.contains('bg-accent')).toBe(true);
+ expect(button.hasAttribute('glass')).toBe(false);
+ });
+
+ it('preserves emphasis inside a group without giving each segment glass', () => {
+ render(() => (
+ <ButtonGroup variant="strong">
+ <Button>Save</Button>
+ <Button>Save all</Button>
+ </ButtonGroup>
+ ));
+ for (const button of screen.getAllByRole('button')) {
+ expect(button.classList.contains('bg-control')).toBe(true);
+ expect(button.classList.contains('glass')).toBe(false);
+ }
+ });
+});
diff --git a/apps/web/src/components/ui/components/Button.tsx b/apps/web/src/components/ui/components/Button.tsx
index ccd90e7381..d1779dc4fd 100644
--- a/apps/web/src/components/ui/components/Button.tsx
+++ b/apps/web/src/components/ui/components/Button.tsx
@@ -15,43 +15,42 @@ import { Tooltip } from './Tooltip';
const BUTTON_TOUCH_STYLES =
"touch:min-h-9 touch:min-w-9 touch:[&>svg:not([class*='size-'])]:size-6";
-// Text actions use flat frames. Icon actions and embedded controls remain
-// unframed; navigation keeps its independent quiet selection treatment.
+// Variant owns emphasis and surface; size only controls geometry.
/** Canonical variant classes for buttons and button-like elements. */
export const buttonVariants = createVariants(
cn(
'relative inline-flex shrink-0 items-center justify-center whitespace-nowrap text-sm',
- 'rounded-full border border-edge-button bg-control text-ink-muted font-medium outline-none select-none transition-colors duration-120 motion-reduce:transition-none [&_*]:select-none',
- 'not-touch:not-disabled:hover:overlay-hover not-touch:not-disabled:hover:text-ink not-disabled:active:overlay-active',
+ 'rounded-full border border-transparent font-medium outline-none select-none transition-colors duration-120 motion-reduce:transition-none [&_*]:select-none',
'focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-edge-focus',
- 'aria-pressed:overlay-active aria-pressed:text-ink',
+ 'aria-pressed:overlay-active',
'data-disabled:cursor-not-allowed data-disabled:opacity-50',
'[&_svg]:pointer-events-none [&_svg]:shrink-0'
),
{
variant: {
danger:
- 'text-failure not-touch:not-disabled:hover:text-failure aria-pressed:text-failure',
- outline: '',
- accent: 'text-ink font-semibold',
+ 'bg-transparent border-edge-button text-failure not-touch:not-disabled:hover:overlay-hover not-touch:not-disabled:active:overlay-active',
+ outline:
+ 'bg-control text-ink-muted border-edge-button not-touch:not-disabled:hover:overlay-hover not-touch:not-disabled:hover:text-ink not-touch:not-disabled:active:overlay-active',
+ accent:
+ 'bg-accent-bg not-touch:not-disabled:hover:overlay-accent-bg text-accent',
success:
- 'text-success not-touch:not-disabled:hover:text-success aria-pressed:text-success',
- // Retained for existing callers; ordinary actions always have a frame.
- ghost: '',
- plain: 'border-0 bg-transparent',
- strong: 'text-ink font-semibold',
- cta: 'text-ink font-semibold',
- navigation: 'border-transparent bg-transparent',
+ 'bg-transparent border-edge-button text-success not-touch:not-disabled:hover:overlay-hover not-touch:not-disabled:active:overlay-active',
+ ghost:
+ 'bg-transparent text-ink-muted not-touch:not-disabled:hover:overlay-hover not-touch:not-disabled:hover:text-ink not-touch:not-disabled:active:overlay-active',
+ strong:
+ 'bg-control text-ink-muted border-edge-button font-semibold not-touch:not-disabled:hover:overlay-hover not-touch:not-disabled:hover:text-ink not-touch:not-disabled:active:overlay-active',
+ cta: 'bg-accent text-accent-contrast focus-visible:ring-accent-contrast/70 [--color-edge:var(--color-accent-contrast-muted)] [--color-edge-muted:var(--color-accent-contrast-muted)] not-touch:not-disabled:hover:overlay-[color-mix(in_oklch,var(--color-surface)_12%,transparent)] not-touch:not-disabled:active:overlay-[color-mix(in_oklch,var(--color-surface)_22%,transparent)]',
},
size: {
- xs: "h-5 gap-1 px-1 text-xs [&>svg:not([class*='size-'])]:size-3",
+ xs: "h-5 gap-1 px-1.5 text-xs [&>svg:not([class*='size-'])]:size-3",
'icon-xs': "size-5 p-0.5 [&>svg:not([class*='size-'])]:size-3",
sm: CONTROL_SIZE_VARIANTS.sm,
md: CONTROL_SIZE_VARIANTS.md,
lg: CONTROL_SIZE_VARIANTS.lg,
xl: "h-12 gap-2 px-4 text-base [&>svg:not([class*='size-'])]:size-5",
'icon-lg':
- "size-9 aspect-square rounded-xl p-2 [&>svg:not([class*='size-'])]:size-5",
+ "size-9 aspect-square p-2 [&>svg:not([class*='size-'])]:size-5",
'icon-md':
"size-8 aspect-square p-1.5 [&>svg:not([class*='size-'])]:size-4",
'icon-sm':
@@ -76,6 +75,8 @@ export type ButtonClassOptions = {
size?: ButtonSize;
fullWidth?: boolean;
noTouchResize?: boolean;
+ /** Override glass: framed variants default to touch-only; true enables all devices. */
+ glass?: boolean;
square?: boolean;
class?: string;
};
@@ -91,6 +92,8 @@ export type ButtonProps = ButtonRootProps<'button'> &
*/
fullWidth?: boolean;
noTouchResize?: boolean;
+ /** Override glass: framed variants default to touch-only; true enables all devices. */
+ glass?: boolean;
square?: boolean;
variant?: ButtonVariant;
children?: JSX.Element;
@@ -122,12 +125,14 @@ export function buttonClasses(options: ButtonClassOptions = {}): string {
fullWidth = false,
noTouchResize = false,
square = false,
+ glass,
class: className,
} = options;
return cn(
buttonVariants({ variant, size }),
- (isIconSize(size ?? 'md') || square) && 'border-0 bg-transparent',
+ glass === true && 'glass',
+ glass === undefined && (variant ?? 'ghost') !== 'ghost' && 'touch:glass',
fullWidth && 'w-full',
!noTouchResize && BUTTON_TOUCH_STYLES,
square && 'aspect-square p-0',
@@ -144,10 +149,9 @@ function isIconSize(size: ButtonSize): boolean {
* `size` carries density; both are shared with Badge so button-like elements
* line up.
*
- * @do Use icon sizes (or square) for borderless icon actions.
- * @do Use plain for embedded controls such as the composer agent picker.
- * @do Use strong ink/weight for primary text actions on the flat frame.
- * @do Use `navigation` only for selectable navigation or list rows.
+ * @do Use ghost for unframed actions, at any size.
+ * @do Use strong for outline actions with bolder type and cta for accent-filled actions.
+ * @do Use glass={true} to opt in on desktop, or glass={false} to opt out on touch.
* @do Always set `label` on icon-only buttons; it is the accessible name.
* @do Use `danger` only for destructive actions, paired with a confirmation.
* @dont Do not restyle a button with utility classes when a variant already
@@ -169,6 +173,7 @@ export const Button = (props: ButtonProps) => {
'size',
'fullWidth',
'noTouchResize',
+ 'glass',
'square',
'tooltipDisabled',
'aria-label',
@@ -186,9 +191,9 @@ export const Button = (props: ButtonProps) => {
size: size(),
fullWidth: local.fullWidth,
noTouchResize: local.noTouchResize,
+ glass: group !== undefined ? false : local.glass,
square: local.square,
}),
- group && 'bg-transparent',
local.class
);
diff --git a/apps/web/src/components/ui/components/ButtonGroup.tsx b/apps/web/src/components/ui/components/ButtonGroup.tsx
index 2913f2141e..db80ade5bf 100644
--- a/apps/web/src/components/ui/components/ButtonGroup.tsx
+++ b/apps/web/src/components/ui/components/ButtonGroup.tsx
@@ -45,10 +45,8 @@ export const buttonGroupVariants = createVariants(
accent: '',
success: '',
ghost: '',
- plain: 'border-0 bg-transparent',
strong: '',
cta: '',
- navigation: 'border-transparent bg-transparent',
},
// Explicit cross-axis size so the frame matches a standalone Button of the
// same size (border-box absorbs the 1px frame); radius tracks size too.
@@ -90,10 +88,8 @@ export const buttonGroupDividerVariants = createVariants(
accent: 'bg-edge-divider',
success: 'bg-edge-divider',
ghost: 'bg-edge-divider',
- plain: 'bg-edge-divider',
strong: 'bg-edge-divider',
cta: 'bg-edge-divider',
- navigation: 'bg-edge-divider',
},
},
{
diff --git a/apps/web/src/components/ui/components/Calendar.tsx b/apps/web/src/components/ui/components/Calendar.tsx
index 4a39b401a0..522a5c985f 100644
--- a/apps/web/src/components/ui/components/Calendar.tsx
+++ b/apps/web/src/components/ui/components/Calendar.tsx
@@ -450,7 +450,7 @@ export function CalendarMonthMenu(props: CalendarMonthMenuProps) {
variant="ghost"
size="sm"
depth={3}
- class="min-h-11 rounded-[20px] bg-ink/6 px-3 text-ink"
+ class="min-h-11 bg-ink/6 px-3 text-ink"
label="Go To Today"
onClick={() => {
if (props.onToday) {
diff --git a/apps/web/src/components/ui/components/ConfirmDialog.test.tsx b/apps/web/src/components/ui/components/ConfirmDialog.test.tsx
index 7ba8f90687..64860a001a 100644
--- a/apps/web/src/components/ui/components/ConfirmDialog.test.tsx
+++ b/apps/web/src/components/ui/components/ConfirmDialog.test.tsx
@@ -32,6 +32,28 @@ afterEach(() => {
});
describe('controlled confirmation', () => {
+ it.each([false, true])(
+ 'uses ghost/strong actions with mobile=%s',
+ (isMobile) => {
+ mobile.value = isMobile;
+ render(() => (
+ <ConfirmDialog
+ title="Confirm change"
+ open
+ tone="danger"
+ onOpenChange={() => {}}
+ onConfirm={() => {}}
+ />
+ ));
+ expect(
+ screen.getByRole('button', { name: 'Cancel' }).dataset.variant
+ ).toBe('ghost');
+ expect(
+ screen.getByRole('button', { name: 'Confirm' }).dataset.variant
+ ).toBe('strong');
+ }
+ );
+
it('stays open while pending and can reopen after dismissal', () => {
const [open, setOpen] = createSignal(true);
const [pending, setPending] = createSignal(false);
diff --git a/apps/web/src/components/ui/components/ConfirmDialog.tsx b/apps/web/src/components/ui/components/ConfirmDialog.tsx
index ee52cfa5e6..0fee15647c 100644
--- a/apps/web/src/components/ui/components/ConfirmDialog.tsx
+++ b/apps/web/src/components/ui/components/ConfirmDialog.tsx
@@ -27,12 +27,6 @@ export type ConfirmDialogDisplayProps = {
class?: string;
};
-const TONE_VARIANT = {
- default: 'accent',
- danger: 'danger',
- success: 'success',
-} as const;
-
export type ConfirmDialogProps = ManagedDialogProps &
ConfirmDialogDisplayProps & {
onConfirm: () => void;
@@ -66,7 +60,6 @@ export function ConfirmDialog(props: ConfirmDialogProps) {
type="button"
variant="ghost"
depth={2}
- class="rounded-lg"
disabled={props.pending}
onClick={() => props.onOpenChange(false)}
>
@@ -74,9 +67,8 @@ export function ConfirmDialog(props: ConfirmDialogProps) {
</Button>
<Button
type="button"
- variant={TONE_VARIANT[props.tone ?? 'default']}
+ variant="strong"
depth={2}
- class="rounded-lg"
disabled={props.pending}
onClick={props.onConfirm}
>
diff --git a/apps/web/src/components/ui/components/DeleteDialog.tsx b/apps/web/src/components/ui/components/DeleteDialog.tsx
index 2ac1350dcd..87d26a6938 100644
--- a/apps/web/src/components/ui/components/DeleteDialog.tsx
+++ b/apps/web/src/components/ui/components/DeleteDialog.tsx
@@ -92,7 +92,6 @@ export function DeleteDialog(props: DeleteDialogProps) {
type="button"
variant="ghost"
depth={2}
- class="rounded-lg"
disabled={props.pending}
onClick={close}
>
@@ -100,9 +99,8 @@ export function DeleteDialog(props: DeleteDialogProps) {
</Button>
<Button
type="button"
- variant="danger"
+ variant="strong"
depth={2}
- class="rounded-lg"
disabled={!canDelete()}
onClick={deleteItem}
>
diff --git a/apps/web/src/components/ui/components/EntityComposer.tsx b/apps/web/src/components/ui/components/EntityComposer.tsx
index 06b07d411b..937cecbf4e 100644
--- a/apps/web/src/components/ui/components/EntityComposer.tsx
+++ b/apps/web/src/components/ui/components/EntityComposer.tsx
@@ -91,12 +91,11 @@ function Submit(props: ButtonProps & { hasContent: boolean }) {
return (
<Button
{...rest}
- variant={local.variant ?? (local.hasContent ? 'accent' : 'ghost')}
+ variant={local.variant ?? 'strong'}
depth={3}
class={cn(
- 'gap-3 rounded-lg',
- local.variant !== 'outline' && 'border-0',
- !isTouchDevice() && 'rounded-full h-[33.75px] px-[15px]',
+ 'gap-3',
+ !isTouchDevice() && 'h-[33.75px] px-[15px]',
local.class
)}
>
diff --git a/apps/web/src/components/ui/components/InputGroup.tsx b/apps/web/src/components/ui/components/InputGroup.tsx
index 7982555151..9d5fb48681 100644
--- a/apps/web/src/components/ui/components/InputGroup.tsx
+++ b/apps/web/src/components/ui/components/InputGroup.tsx
@@ -138,9 +138,7 @@ function InputGroupRoot(props: InputGroupProps) {
return size && !size.startsWith('icon-') ? (size as InputSize) : undefined;
};
const size = (): InputSize => local.size ?? inheritedSize() ?? 'md';
- const variant = (): InputVariant =>
- local.variant ??
- (buttonGroup?.variant === 'navigation' ? 'bare' : 'outline');
+ const variant = (): InputVariant => local.variant ?? 'outline';
const grouped = () => buttonGroup !== undefined;
const context: InputGroupContextValue = {
diff --git a/apps/web/src/components/ui/components/Item.docs.tsx b/apps/web/src/components/ui/components/Item.docs.tsx
index b4389094bd..d4055cd4f9 100644
--- a/apps/web/src/components/ui/components/Item.docs.tsx
+++ b/apps/web/src/components/ui/components/Item.docs.tsx
@@ -206,7 +206,7 @@ function TaskDemo() {
<Button
size="icon-sm"
variant="ghost"
- class="shrink-0 rounded-full text-task"
+ class="shrink-0 text-task"
aria-label="Complete review task"
aria-pressed={completed()}
onClick={() => setCompleted(!completed())}
diff --git a/apps/web/src/components/ui/components/NavRow.tsx b/apps/web/src/components/ui/components/NavRow.tsx
index e303832c93..ae90a4133c 100644
--- a/apps/web/src/components/ui/components/NavRow.tsx
+++ b/apps/web/src/components/ui/components/NavRow.tsx
@@ -3,7 +3,7 @@ import { cn } from '../utils/classname';
import { Button, type ButtonProps } from './Button';
/**
- * A vertical nav row rendered as a navigation {@link Button}: the shared base/active
+ * A vertical nav row rendered as a ghost {@link Button}: the shared base/active
* styling for sidebar-style rows (icon + label). Used by the settings `SideNav`
* and the app sidebar's row components so the row visuals live in one place.
*
@@ -17,7 +17,7 @@ export const NavRow = (props: NavRowProps) => {
const [local, rest] = splitProps(props, ['active', 'class']);
return (
<Button
- variant="navigation"
+ variant="ghost"
{...rest}
class={cn(
'flex items-center justify-start text-sm gap-2 cursor-default w-full rounded-md py-1 px-2 text-ink-extra-muted',
diff --git a/apps/web/src/components/ui/components/PillButton.tsx b/apps/web/src/components/ui/components/PillButton.tsx
index 54d7bcc328..eb9ff28b1a 100644
--- a/apps/web/src/components/ui/components/PillButton.tsx
+++ b/apps/web/src/components/ui/components/PillButton.tsx
@@ -27,7 +27,7 @@ export function PillButton(props: PillButtonProps) {
variant={subtle() ? 'outline' : 'cta'}
size="md"
class={cn(
- 'rounded-full py-1',
+ 'py-1',
subtle() ? 'px-2.5' : props.icon ? 'pl-3 pr-4' : 'px-4',
props.class
)}
diff --git a/apps/web/src/components/ui/components/SendButton.tsx b/apps/web/src/components/ui/components/SendButton.tsx
index b943a6ad8f..c45cfe3b3a 100644
--- a/apps/web/src/components/ui/components/SendButton.tsx
+++ b/apps/web/src/components/ui/components/SendButton.tsx
@@ -31,12 +31,13 @@ export function SendButton(props: SendButtonProps) {
<Button
depth={4}
variant="strong"
+ glass={false}
size={local.appearance === 'composer' ? 'icon-composer' : 'icon-sm'}
draggable={false}
aria-label={local['aria-label'] ?? 'Send'}
tooltip={local.tooltip ?? 'Send'}
class={cn(
- 'rounded-full border-0 bg-ink text-surface-4 touch:size-7.5',
+ 'border-0 bg-ink text-surface-4 touch:size-7.5',
local.appearance === 'composer'
? cn(
'not-touch:not-disabled:bg-composer-action not-touch:not-disabled:text-composer-action-ink not-touch:light-mode:shadow-none not-touch:light-mode:backdrop-filter-none not-touch:light-mode:after:hidden',
diff --git a/apps/web/src/components/ui/components/Toolbar.docs.tsx b/apps/web/src/components/ui/components/Toolbar.docs.tsx
index ba499e9215..5084d093c9 100644
--- a/apps/web/src/components/ui/components/Toolbar.docs.tsx
+++ b/apps/web/src/components/ui/components/Toolbar.docs.tsx
@@ -73,7 +73,7 @@ export default defineDoc({
name: 'Toolbar',
category: 'Actions',
description:
- 'A floating surface for compact actions. It owns the frame and shares button size and variant defaults with its children.',
+ 'A floating surface for compact actions. It owns the frame and gives contained buttons small corners, with shared size and variant defaults.',
status: 'stable',
exports: ['Toolbar'],
import: "import { Toolbar } from '@ui';",
diff --git a/apps/web/src/components/ui/components/Toolbar.tsx b/apps/web/src/components/ui/components/Toolbar.tsx
index 3c841c9206..6869914be6 100644
--- a/apps/web/src/components/ui/components/Toolbar.tsx
+++ b/apps/web/src/components/ui/components/Toolbar.tsx
@@ -33,7 +33,8 @@ export type ToolbarProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, 'style'> & {
/**
* An opinionated floating bar of controls. Owns its surface chrome
* (`rounded-xl`, padding, border, background) and sets the default
- * size/variant for its `Toolbar.Button` children, so callers compose controls
+ * size/variant for its `Toolbar.Button` children and a compact corner radius
+ * for contained buttons, so callers compose controls
* without restyling them. Pair with a positioning wrapper (e.g.
* `PopupPositioner`) when it needs to float against an anchor.
*
@@ -75,6 +76,7 @@ export function Toolbar(props: ToolbarProps) {
aria-orientation={ctx.orientation}
class={cn(
'inline-flex items-center gap-1 rounded-xl border border-edge-frame bg-control p-1.5',
+ '**:data-button:rounded-md',
'data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch',
local.class
)}
diff --git a/apps/web/src/components/view-shell/ListDropdowns.tsx b/apps/web/src/components/view-shell/ListDropdowns.tsx
index 44d53939b5..b512ee9a3f 100644
--- a/apps/web/src/components/view-shell/ListDropdowns.tsx
+++ b/apps/web/src/components/view-shell/ListDropdowns.tsx
@@ -44,7 +44,7 @@ function SingleSelectDropdown<TId extends string>(
>
<Dropdown.Trigger
ref={props.triggerRef}
- variant="outline"
+ variant="ghost"
size="md"
square
class={props.class}
@@ -192,7 +192,7 @@ export function ListFilterDropdown<
fallback={
<Dropdown.Trigger
ref={props.triggerRef}
- variant="outline"
+ variant="ghost"
size="md"
square
class={props.class}
diff --git a/apps/web/src/components/view-shell/SearchBar.tsx b/apps/web/src/components/view-shell/SearchBar.tsx
index 5767e4cc2a..ead19f3c99 100644
--- a/apps/web/src/components/view-shell/SearchBar.tsx
+++ b/apps/web/src/components/view-shell/SearchBar.tsx
@@ -129,7 +129,6 @@ export function SearchBar(props: SearchBarProps) {
size="sm"
square
label={local.onClose ? 'Close search' : 'Clear search'}
- class="rounded-lg"
onPointerDown={(event) => event.preventDefault()}
onClick={() => (local.onClose ?? clear)()}
>
diff --git a/apps/web/src/components/view-shell/ViewSidebar.tsx b/apps/web/src/components/view-shell/ViewSidebar.tsx
index 5a411509dc..bab8cae129 100644
--- a/apps/web/src/components/view-shell/ViewSidebar.tsx
+++ b/apps/web/src/components/view-shell/ViewSidebar.tsx
@@ -93,10 +93,7 @@ function Control(props: ButtonProps) {
variant="ghost"
size="icon-sm"
{...rest}
- class={cn(
- 'size-(--sidebar-control-size) shrink-0 rounded-lg',
- local.class
- )}
+ class={cn('size-(--sidebar-control-size) shrink-0', local.class)}
data-view-sidebar-control=""
/>
);
@@ -226,6 +223,7 @@ function TreeItem(props: {
<Show when={props.expanded !== undefined}>
<span class="absolute right-(--sidebar-action-inset) top-1/2 flex -translate-y-1/2">
<Control
+ class="rounded-md"
label={`${props.expanded ? 'Collapse' : 'Expand'} ${props.label}`}
aria-expanded={props.expanded}
onClick={props.onToggle}
diff --git a/apps/web/src/features/agent-changes/components/NoteAnnotation.tsx b/apps/web/src/features/agent-changes/components/NoteAnnotation.tsx
index dcbdbb752f..89d64dfdff 100644
--- a/apps/web/src/features/agent-changes/components/NoteAnnotation.tsx
+++ b/apps/web/src/features/agent-changes/components/NoteAnnotation.tsx
@@ -50,7 +50,7 @@ function NoteEditor(props: {
Add note
</Button>
<Button
- variant="outline"
+ variant="ghost"
size="xs"
class="h-6.5 px-2.5"
onClick={() => props.onCancel()}
diff --git a/apps/web/src/features/agents-view/views/AgentPicker.tsx b/apps/web/src/features/agents-view/views/AgentPicker.tsx
index 5b92c648bd..4f4f07d2c9 100644
--- a/apps/web/src/features/agents-view/views/AgentPicker.tsx
+++ b/apps/web/src/features/agents-view/views/AgentPicker.tsx
@@ -49,7 +49,7 @@ export function AgentPicker(props: {
return (
<Dropdown open={open()} onOpenChange={setOpen} placement="top-end">
<Dropdown.Trigger
- variant="plain"
+ variant="ghost"
aria-label="Agent"
title={
rawModel()
diff --git a/apps/web/src/features/block-agent/component/parts/LiveElicitation.tsx b/apps/web/src/features/block-agent/component/parts/LiveElicitation.tsx
index c89b55a7fd..c5ad9fe124 100644
--- a/apps/web/src/features/block-agent/component/parts/LiveElicitation.tsx
+++ b/apps/web/src/features/block-agent/component/parts/LiveElicitation.tsx
@@ -371,7 +371,7 @@ export function UserToolComposer(props: {
<Show when={props.cancel}>
<div class="flex items-center gap-2">
<Button
- variant="outline"
+ variant="ghost"
size="xs"
disabled={locked()}
onClick={() => void props.review.respond({ action: 'decline' })}
diff --git a/apps/web/src/features/block-agent/ui/AgentInput.tsx b/apps/web/src/features/block-agent/ui/AgentInput.tsx
index aafb128ffc..2153f1f12f 100644
--- a/apps/web/src/features/block-agent/ui/AgentInput.tsx
+++ b/apps/web/src/features/block-agent/ui/AgentInput.tsx
@@ -409,7 +409,7 @@ export function AgentInput(props: AgentInputProps) {
onClick={() => props.onStop?.()}
class={
isTouchDevice()
- ? 'rounded-full size-7.5 text-ink-extra-muted not-disabled:bg-ink/5 not-disabled:hover:bg-ink/10'
+ ? 'size-7.5 text-ink-extra-muted not-disabled:bg-ink/5 not-disabled:hover:bg-ink/10'
: undefined
}
>
diff --git a/apps/web/src/features/block-automation/component/AutomationComposer.tsx b/apps/web/src/features/block-automation/component/AutomationComposer.tsx
index 30995694eb..4e4ed2ec70 100644
--- a/apps/web/src/features/block-automation/component/AutomationComposer.tsx
+++ b/apps/web/src/features/block-automation/component/AutomationComposer.tsx
@@ -332,7 +332,7 @@ export function AutomationComposer(): JSX.Element {
<div class="flex items-center justify-end gap-2 border-t border-edge-muted px-3 py-2">
<Button
- variant="outline"
+ variant="ghost"
size="sm"
class="cursor-default"
onClick={() => setAutomationComposerOpen(false, false)}
@@ -340,7 +340,7 @@ export function AutomationComposer(): JSX.Element {
Cancel
</Button>
<Button
- variant="accent"
+ variant="strong"
size="sm"
class="cursor-default"
disabled={createMutation.isPending}
diff --git a/apps/web/src/features/block-email/component/EmailTaskButton.tsx b/apps/web/src/features/block-email/component/EmailTaskButton.tsx
index e460df9b0d..f3d1691b42 100644
--- a/apps/web/src/features/block-email/component/EmailTaskButton.tsx
+++ b/apps/web/src/features/block-email/component/EmailTaskButton.tsx
@@ -8,7 +8,7 @@ export function EmailTaskButton(props: { onClick: () => void }) {
size="sm"
onClick={props.onClick}
depth={2}
- class="gap-1.5 rounded-full border border-edge-muted px-2 text-ink-extra-muted"
+ class="gap-1.5 border border-edge-muted px-2 text-ink-extra-muted"
>
<TaskIcon />
<span class="text-xs font-semibold">Task</span>
diff --git a/apps/web/src/features/block-md/comments/CommentThreadDrawer.tsx b/apps/web/src/features/block-md/comments/CommentThreadDrawer.tsx
index b6c4da5729..e22cb4d34e 100644
--- a/apps/web/src/features/block-md/comments/CommentThreadDrawer.tsx
+++ b/apps/web/src/features/block-md/comments/CommentThreadDrawer.tsx
@@ -281,7 +281,6 @@ export function CommentThreadDrawer() {
<div class="flex shrink-0 items-center justify-center gap-2 pb-1">
<Button
size="icon-sm"
- class="rounded-md"
depth={3}
variant="ghost"
aria-label="Previous comment thread"
@@ -295,7 +294,6 @@ export function CommentThreadDrawer() {
</span>
<Button
size="icon-sm"
- class="rounded-md"
depth={3}
variant="ghost"
aria-label="Next comment thread"
diff --git a/apps/web/src/features/block-md/component/ComposeSkill.tsx b/apps/web/src/features/block-md/component/ComposeSkill.tsx
index e917193948..6a877d075c 100644
--- a/apps/web/src/features/block-md/component/ComposeSkill.tsx
+++ b/apps/web/src/features/block-md/component/ComposeSkill.tsx
@@ -436,9 +436,9 @@ export function ComposeSkill(props: ComposeSkillProps) {
<Button
onClick={handleCreateSkill}
disabled={title().trim().length === 0 || isCreating()}
- variant={title().trim().length === 0 ? 'ghost' : 'accent'}
+ variant="strong"
depth={3}
- class="gap-3 rounded-lg border-0"
+ class="gap-3"
>
Create Skill
<Hotkey shortcut="cmd+enter" theme="current" />
diff --git a/apps/web/src/features/block-md/component/ComposeTask.tsx b/apps/web/src/features/block-md/component/ComposeTask.tsx
index 51cb4a3a74..8847095e76 100644
--- a/apps/web/src/features/block-md/component/ComposeTask.tsx
+++ b/apps/web/src/features/block-md/component/ComposeTask.tsx
@@ -1033,7 +1033,7 @@ export function ComposeTask(props: ComposeTaskProps) {
label="Create More"
/>
<EntityComposer.Submit
- variant="outline"
+ variant="strong"
onClick={handleCreateTask}
disabled={title().trim().length === 0 || isCreating()}
hasContent={title().trim().length > 0}
diff --git a/apps/web/src/features/block-md/component/DocumentAiEditBar.tsx b/apps/web/src/features/block-md/component/DocumentAiEditBar.tsx
index e36ef0ca4d..9498cf94eb 100644
--- a/apps/web/src/features/block-md/component/DocumentAiEditBar.tsx
+++ b/apps/web/src/features/block-md/component/DocumentAiEditBar.tsx
@@ -96,6 +96,8 @@ export function DocumentAiEditBar(props: { documentId: string }) {
onMouseLeave={() => setHovering(false)}
tooltip={editing() ? 'Stop AI edit' : 'Ask AI to edit'}
hotkey={editing() ? undefined : TOKENS.chat.input.focus}
+ variant="outline"
+ glass={false}
size="sm"
class="gap-1.5 px-2.5"
>
diff --git a/apps/web/src/features/block-md/component/FormatTools.tsx b/apps/web/src/features/block-md/component/FormatTools.tsx
index 4ed0aac0a9..43317d375a 100644
--- a/apps/web/src/features/block-md/component/FormatTools.tsx
+++ b/apps/web/src/features/block-md/component/FormatTools.tsx
@@ -231,7 +231,6 @@ const InlineFormatButton = (props: {
shortcut={InlineShortcuts[props.format]}
size={props.size ?? 'icon-sm'}
variant={isActive() ? 'accent' : 'ghost'}
- class="rounded-md"
depth={3}
onClick={(e: MouseEvent | KeyboardEvent) =>
props.onClick(e as MouseEvent)
@@ -282,7 +281,6 @@ export const ElementFormatButton = (props: {
<Button
tooltip={name}
size={props.size ?? 'icon-sm'}
- class="rounded-md"
depth={3}
variant={
isElementFormatActive(props.selection(), props.format)
@@ -527,7 +525,6 @@ export function FormatTools(props: {
<Dropdown.Trigger
variant={isActive() ? 'accent' : 'ghost'}
size={buttonSize()}
- class="rounded-md"
depth={3}
tooltip={'Text Styles'}
disabled={buttonIsDisabled()}
@@ -591,7 +588,6 @@ export function FormatTools(props: {
<Dropdown.Trigger
variant={isActive() ? 'accent' : 'ghost'}
size={buttonSize()}
- class="rounded-md"
depth={3}
tooltip="Text Styles"
disabled={props.buttonIsDisabled()}
@@ -650,7 +646,6 @@ export function FormatTools(props: {
: 'ghost'
}
size={buttonSize()}
- class="rounded-md"
depth={3}
tooltip={props.label ?? 'More Formats'}
disabled={buttonIsDisabled()}
@@ -699,7 +694,6 @@ export function FormatTools(props: {
: 'ghost'
}
size={buttonSize()}
- class="rounded-md"
depth={3}
tooltip={props.label ?? 'More Formats'}
disabled={buttonIsDisabled()}
@@ -761,7 +755,6 @@ export function FormatTools(props: {
<Dropdown.Trigger
variant="ghost"
size={buttonSize()}
- class="rounded-md"
depth={3}
tooltip="More formatting"
disabled={buttonIsDisabled()}
@@ -828,7 +821,7 @@ export function FormatTools(props: {
<Dropdown.Trigger
variant="ghost"
size="sm"
- class="gap-1 rounded-md"
+ class="gap-1"
depth={3}
tooltip="Text style"
disabled={buttonIsDisabled()}
@@ -896,7 +889,6 @@ export function FormatTools(props: {
<Button
variant="ghost"
size={buttonSize()}
- class="rounded-md"
depth={3}
onPointerDown={(e: PointerEvent) => e.preventDefault()}
onClick={(e) => {
@@ -922,7 +914,6 @@ export function FormatTools(props: {
<Button
variant="ghost"
size={buttonSize()}
- class="rounded-md"
depth={3}
tooltip="Merge cells"
onClick={handleMergeCells}
@@ -935,7 +926,6 @@ export function FormatTools(props: {
<Button
variant="ghost"
size={buttonSize()}
- class="rounded-md"
depth={3}
tooltip="Split cell"
onClick={handleSplitCell}
@@ -1064,7 +1054,6 @@ export function FormatTools(props: {
<Button
variant="ghost"
size="icon-sm"
- class="rounded-md"
depth={3}
onPointerDown={(e: PointerEvent) => e.preventDefault()}
onClick={handleLink}
@@ -1080,7 +1069,6 @@ export function FormatTools(props: {
<Button
variant="ghost"
size="icon-sm"
- class="rounded-md"
depth={3}
tooltip="Comment"
onClick={(e) => {
@@ -1101,7 +1089,6 @@ export function FormatTools(props: {
<Dropdown.Trigger
variant="ghost"
size="icon-sm"
- class="rounded-md"
depth={3}
tooltip="More"
disabled={buttonIsDisabled()}
@@ -1178,7 +1165,6 @@ export function FormatTools(props: {
<Button
variant="ghost"
size="icon-sm"
- class="rounded-md"
depth={3}
tooltip="Comment"
onClick={(e) => {
diff --git a/apps/web/src/features/block-md/component/MarkdownPopup.tsx b/apps/web/src/features/block-md/component/MarkdownPopup.tsx
index eec4118ba0..d3816024b8 100644
--- a/apps/web/src/features/block-md/component/MarkdownPopup.tsx
+++ b/apps/web/src/features/block-md/component/MarkdownPopup.tsx
@@ -316,7 +316,6 @@ export function MarkdownPopup(props: {
fallback={
<Button
size="icon-sm"
- class="rounded-full"
variant="strong"
tooltip="Send"
disabled={!aiEditInput().trim()}
@@ -328,7 +327,6 @@ export function MarkdownPopup(props: {
>
<Button
size="icon-sm"
- class="rounded-full"
depth={3}
variant="ghost"
tooltip="Stop AI edit"
@@ -674,7 +672,6 @@ export function MarkdownPopup(props: {
<Show when={activePrompt() === 'link'}>
<Button
size="icon-sm"
- class="rounded-full"
variant="strong"
tooltip="Insert link"
disabled={!linkInput().trim()}
diff --git a/apps/web/src/features/block-md/component/TaskDuplicateMatches.tsx b/apps/web/src/features/block-md/component/TaskDuplicateMatches.tsx
index d3ddc075f6..e59eef4510 100644
--- a/apps/web/src/features/block-md/component/TaskDuplicateMatches.tsx
+++ b/apps/web/src/features/block-md/component/TaskDuplicateMatches.tsx
@@ -32,7 +32,7 @@ export function TaskDuplicateMatchPill() {
<Dropdown.Trigger
depth={2}
class={cn(
- 'h-auto min-w-0 gap-1.5 rounded-full border-failure/40 px-2 py-1 leading-tight',
+ 'h-auto min-w-0 gap-1.5 border-failure/40 px-2 py-1 leading-tight',
'bg-failure/10 text-failure-ink shadow-none',
'hover:bg-failure/15 focus-visible:bg-failure/15 focus-visible:ring-failure/60',
open() && 'bg-failure/15'
diff --git a/apps/web/src/features/block-spreadsheet/SpreadsheetDemo.tsx b/apps/web/src/features/block-spreadsheet/SpreadsheetDemo.tsx
index 902b78a96f..fdf746ce8f 100644
--- a/apps/web/src/features/block-spreadsheet/SpreadsheetDemo.tsx
+++ b/apps/web/src/features/block-spreadsheet/SpreadsheetDemo.tsx
@@ -198,12 +198,16 @@ export default function SpreadsheetDemo() {
onFocus={(event) => event.currentTarget.select()}
/>
<div class="mt-5 flex justify-end gap-2">
- <Button size="sm" onClick={() => setRenameDraft(undefined)}>
+ <Button
+ variant="ghost"
+ size="sm"
+ onClick={() => setRenameDraft(undefined)}
+ >
Cancel
</Button>
<Button
size="sm"
- variant="accent"
+ variant="strong"
type="submit"
disabled={!renameDraft()?.trim() || !canRename()}
>
diff --git a/apps/web/src/features/block-spreadsheet/components/SpreadsheetActionMenus.tsx b/apps/web/src/features/block-spreadsheet/components/SpreadsheetActionMenus.tsx
index e72126d7be..288ca0e117 100644
--- a/apps/web/src/features/block-spreadsheet/components/SpreadsheetActionMenus.tsx
+++ b/apps/web/src/features/block-spreadsheet/components/SpreadsheetActionMenus.tsx
@@ -35,7 +35,7 @@ function ActionMenu(
variant="ghost"
label={props.label}
disabled={props.disabled}
- class="h-7 w-7 min-h-7 min-w-7 shrink-0 rounded-md p-1 text-ink-muted touch:h-[44px] touch:w-[44px] touch:min-h-[44px] touch:min-w-[44px]"
+ class="h-7 w-7 min-h-7 min-w-7 shrink-0 p-1 text-ink-muted touch:h-[44px] touch:w-[44px] touch:min-h-[44px] touch:min-w-[44px]"
>
{props.icon}
</Dropdown.Trigger>
diff --git a/apps/web/src/features/block-spreadsheet/components/SpreadsheetDialogs.tsx b/apps/web/src/features/block-spreadsheet/components/SpreadsheetDialogs.tsx
index 78701ba78d..d14b84e818 100644
--- a/apps/web/src/features/block-spreadsheet/components/SpreadsheetDialogs.tsx
+++ b/apps/web/src/features/block-spreadsheet/components/SpreadsheetDialogs.tsx
@@ -132,7 +132,7 @@ export function SpreadsheetFindDialog(props: {
</Button>
<Button
size="sm"
- variant="accent"
+ variant="strong"
disabled={!props.matchCount}
onClick={() => props.onFind()}
>
diff --git a/apps/web/src/features/block-spreadsheet/components/SpreadsheetToolbar.tsx b/apps/web/src/features/block-spreadsheet/components/SpreadsheetToolbar.tsx
index 070e873d0e..5ff601b2a7 100644
--- a/apps/web/src/features/block-spreadsheet/components/SpreadsheetToolbar.tsx
+++ b/apps/web/src/features/block-spreadsheet/components/SpreadsheetToolbar.tsx
@@ -39,7 +39,7 @@ function ToolbarButton(props: ButtonProps) {
<Button
{...props}
size="icon-sm"
- class="h-7 w-7 min-h-7 min-w-7 rounded-[3px] p-1 font-normal touch:h-[44px] touch:w-[44px] touch:min-h-[44px] touch:min-w-[44px]"
+ class="h-7 w-7 min-h-7 min-w-7 p-1 font-normal touch:h-[44px] touch:w-[44px] touch:min-h-[44px] touch:min-w-[44px]"
/>
);
}
diff --git a/apps/web/src/features/block-spreadsheet/components/SpreadsheetToolbarMenus.tsx b/apps/web/src/features/block-spreadsheet/components/SpreadsheetToolbarMenus.tsx
index c6aadc3455..4205130765 100644
--- a/apps/web/src/features/block-spreadsheet/components/SpreadsheetToolbarMenus.tsx
+++ b/apps/web/src/features/block-spreadsheet/components/SpreadsheetToolbarMenus.tsx
@@ -33,7 +33,7 @@ function ToolbarMenu(
variant="ghost"
label={props.label}
disabled={props.disabled}
- class="h-7 min-h-7 gap-1 rounded-[3px] px-1.5 text-[13px] font-normal text-ink-muted touch:h-[44px] touch:min-h-[44px] touch:min-w-[44px] touch:px-2 touch:text-[max(14px,0.875rem)]"
+ class="h-7 min-h-7 gap-1 px-1.5 text-[13px] font-normal text-ink-muted touch:h-[44px] touch:min-h-[44px] touch:min-w-[44px] touch:px-2 touch:text-[max(14px,0.875rem)]"
>
{props.trigger}
<span
diff --git a/apps/web/src/features/block-spreadsheet/components/SpreadsheetWorkbookDialogs.tsx b/apps/web/src/features/block-spreadsheet/components/SpreadsheetWorkbookDialogs.tsx
index f7d0c5fa4c..023774dd2a 100644
--- a/apps/web/src/features/block-spreadsheet/components/SpreadsheetWorkbookDialogs.tsx
+++ b/apps/web/src/features/block-spreadsheet/components/SpreadsheetWorkbookDialogs.tsx
@@ -63,12 +63,17 @@ export function SpreadsheetSheetDialog(props: {
</p>
</Show>
<div class="mt-5 flex justify-end gap-2">
- <Button size="sm" type="button" onClick={props.onClose}>
+ <Button
+ variant="ghost"
+ size="sm"
+ type="button"
+ onClick={props.onClose}
+ >
Cancel
</Button>
<Button
size="sm"
- variant={props.dialog?.kind === 'delete' ? 'danger' : 'accent'}
+ variant="strong"
type="submit"
disabled={!canConfirm()}
>
@@ -176,12 +181,12 @@ export function SpreadsheetImportDialog(props: {
</p>
</Show>
<div class="mt-5 flex justify-end gap-2">
- <Button size="sm" onClick={props.onClose}>
+ <Button variant="ghost" size="sm" onClick={props.onClose}>
Cancel
</Button>
<Button
size="sm"
- variant="accent"
+ variant="strong"
disabled={props.readonly}
onClick={props.onConfirm}
>
diff --git a/apps/web/src/features/block-spreadsheet/views/SpreadsheetEditor.tsx b/apps/web/src/features/block-spreadsheet/views/SpreadsheetEditor.tsx
index 18f21b0389..ca53e0fcc8 100644
--- a/apps/web/src/features/block-spreadsheet/views/SpreadsheetEditor.tsx
+++ b/apps/web/src/features/block-spreadsheet/views/SpreadsheetEditor.tsx
@@ -500,10 +500,14 @@ export function SpreadsheetEditor(props: {
class="w-full rounded border border-edge-muted bg-input px-3 py-2 outline-none focus:border-accent"
/>
<div class="mt-4 flex justify-end gap-2">
- <Button type="button" onClick={() => setResize(undefined)}>
+ <Button
+ variant="ghost"
+ type="button"
+ onClick={() => setResize(undefined)}
+ >
Cancel
</Button>
- <Button type="submit" variant="accent">
+ <Button type="submit" variant="strong">
Apply
</Button>
</div>
diff --git a/apps/web/src/features/calendar-view/components/CalendarSearch.tsx b/apps/web/src/features/calendar-view/components/CalendarSearch.tsx
index af49f7c314..7783090fbc 100644
--- a/apps/web/src/features/calendar-view/components/CalendarSearch.tsx
+++ b/apps/web/src/features/calendar-view/components/CalendarSearch.tsx
@@ -567,16 +567,12 @@ function CalendarSearchControl(props: {
<Show when={rawQuery().trim()}>
<Button
type="button"
- variant="plain"
+ variant="ghost"
size="icon-sm"
square
aria-pressed={filters().matchType === 'exact'}
label="Exact match"
- class={
- filters().matchType === 'exact'
- ? 'rounded-full bg-active text-ink'
- : 'rounded-full'
- }
+ class={filters().matchType === 'exact' ? 'bg-active text-ink' : ''}
onPointerDown={(event) => event.preventDefault()}
onClick={() =>
setFilters((current) => ({
@@ -762,7 +758,7 @@ function CalendarSearchControl(props: {
<Show when={rawQuery()}>
<Button
type="button"
- variant="plain"
+ variant="ghost"
size="icon-sm"
square
label="Clear search"
@@ -863,11 +859,11 @@ function CalendarSearchControl(props: {
{(link) => (
<Button
type="button"
- variant="plain"
+ variant="ghost"
size="sm"
label={`Join ${link().label}`}
class={cn(
- 'rounded-full px-2',
+ 'px-2',
link().kind === 'google'
? 'bg-blue text-[white] light-mode:not-touch:not-disabled:hover:text-[white] dark-mode:bg-blue-bg dark-mode:text-blue-ink dark-mode:not-touch:not-disabled:hover:bg-blue-hover dark-mode:not-touch:not-disabled:hover:text-blue-ink'
: 'bg-hover text-ink not-touch:not-disabled:hover:bg-active not-touch:not-disabled:hover:text-ink'
diff --git a/apps/web/src/features/calendar-view/components/CalendarSearchFilters.tsx b/apps/web/src/features/calendar-view/components/CalendarSearchFilters.tsx
index cc0bb7ddee..85b3defe77 100644
--- a/apps/web/src/features/calendar-view/components/CalendarSearchFilters.tsx
+++ b/apps/web/src/features/calendar-view/components/CalendarSearchFilters.tsx
@@ -71,11 +71,10 @@ export function CalendarSearchFilters(props: {
<Dropdown placement="bottom-end" onOpenChange={setOpen}>
<Dropdown.Trigger
type="button"
- variant="plain"
+ variant="ghost"
size="icon-sm"
square
label={hasFilters() ? 'Filter events (active)' : 'Filter events'}
- class="rounded-full"
classList={{ 'text-accent': hasFilters() }}
>
<FilterIcon class="size-4" />
diff --git a/apps/web/src/features/calendar-view/components/EventRsvpSection.tsx b/apps/web/src/features/calendar-view/components/EventRsvpSection.tsx
index 1dc24cf78f..5bf905009a 100644
--- a/apps/web/src/features/calendar-view/components/EventRsvpSection.tsx
+++ b/apps/web/src/features/calendar-view/components/EventRsvpSection.tsx
@@ -63,7 +63,7 @@ export function EventRsvpSection(props: {
variant="ghost"
size={props.buttonSize ?? 'sm'}
depth={3}
- class="rounded-lg bg-ink/5 px-3 aria-pressed:bg-accent-bg aria-pressed:text-accent mobile:min-h-11 mobile:rounded-full"
+ class="bg-ink/5 px-3 aria-pressed:bg-accent-bg aria-pressed:text-accent mobile:min-h-11"
aria-pressed={
selfAttendee()?.responseStatus === option.response
}
diff --git a/apps/web/src/features/calendar-view/components/Header.tsx b/apps/web/src/features/calendar-view/components/Header.tsx
index ff565725fd..340651675e 100644
--- a/apps/web/src/features/calendar-view/components/Header.tsx
+++ b/apps/web/src/features/calendar-view/components/Header.tsx
@@ -151,7 +151,7 @@ export function Header(props: { presentation: 'workspace' | 'preview' }) {
<Button
variant="ghost"
size="icon-lg"
- class="rounded-full border-transparent bg-transparent"
+ class="border-transparent bg-transparent"
label={`Previous ${periodLabel()}`}
hotkey={TOKENS.calendar.period.previous}
onClick={() => void pager.previous()}
@@ -163,7 +163,7 @@ export function Header(props: { presentation: 'workspace' | 'preview' }) {
<Button
variant="ghost"
size="icon-lg"
- class="rounded-full border-transparent bg-transparent"
+ class="border-transparent bg-transparent"
label={`Next ${periodLabel()}`}
hotkey={TOKENS.calendar.period.next}
onClick={() => void pager.next()}
@@ -176,7 +176,6 @@ export function Header(props: { presentation: 'workspace' | 'preview' }) {
variant={mobile ? 'ghost' : 'outline'}
size={mobile ? 'icon-lg' : 'lg'}
class={cn(
- 'rounded-full',
mobile && 'relative',
!mobile && 'border-edge-button bg-transparent px-3 text-sm'
)}
@@ -205,7 +204,7 @@ export function Header(props: { presentation: 'workspace' | 'preview' }) {
<Button
variant="ghost"
size="icon-sm"
- class="shrink-0 rounded-full"
+ class="shrink-0"
label="Show calendar navigation"
aria-expanded={shell?.aside.isOverlay() ?? false}
onClick={() => shell?.aside.expand()}
diff --git a/apps/web/src/features/calendar-view/components/SelectedEventDetails.tsx b/apps/web/src/features/calendar-view/components/SelectedEventDetails.tsx
index 8d52e48a19..57d683524a 100644
--- a/apps/web/src/features/calendar-view/components/SelectedEventDetails.tsx
+++ b/apps/web/src/features/calendar-view/components/SelectedEventDetails.tsx
@@ -152,20 +152,10 @@ function EveryoneElseDeclinedNotice(props: {
</div>
<Show when={props.canModify}>
<div class="flex justify-end gap-1">
- <Button
- variant="ghost"
- size="sm"
- class="rounded-lg"
- onClick={props.onDelete}
- >
+ <Button variant="ghost" size="sm" onClick={props.onDelete}>
Delete
</Button>
- <Button
- variant="cta"
- size="sm"
- class="rounded-lg"
- onClick={props.onReschedule}
- >
+ <Button variant="cta" size="sm" onClick={props.onReschedule}>
Reschedule
</Button>
</div>
@@ -195,7 +185,7 @@ function EventGuestActions(props: {
variant="ghost"
size="icon-sm"
depth={3}
- class="rounded-md text-ink-muted [&_svg]:size-4"
+ class="text-ink-muted [&_svg]:size-4"
onClick={() => copyGuestEmails(guestEmails(props.event.attendees))}
>
<CopyIcon />
@@ -206,7 +196,7 @@ function EventGuestActions(props: {
variant="ghost"
size="icon-sm"
depth={3}
- class="rounded-md text-ink-muted [&_svg]:size-4"
+ class="text-ink-muted [&_svg]:size-4"
onClick={() => {
const event = props.event;
props.closeDetails();
@@ -267,7 +257,7 @@ function EventDetailsDrawer(props: EventDetailsOverlayProps) {
variant="ghost"
size="icon-md"
depth={3}
- class="size-11 rounded-full bg-ink/6 text-ink-muted [&_svg]:size-5"
+ class="size-11 bg-ink/6 text-ink-muted [&_svg]:size-5"
onClick={() => copyCalendarEventMention(props.event)}
>
<LinkIcon />
@@ -278,7 +268,7 @@ function EventDetailsDrawer(props: EventDetailsOverlayProps) {
variant="ghost"
size="icon-md"
depth={3}
- class="size-11 rounded-full bg-ink/6 text-ink-muted [&_svg]:size-5"
+ class="size-11 bg-ink/6 text-ink-muted [&_svg]:size-5"
onClick={openEditor}
>
<PencilSimpleIcon />
@@ -288,7 +278,7 @@ function EventDetailsDrawer(props: EventDetailsOverlayProps) {
variant="ghost"
size="icon-md"
depth={3}
- class="size-11 rounded-full bg-ink/6 text-ink-muted [&_svg]:size-5"
+ class="size-11 bg-ink/6 text-ink-muted [&_svg]:size-5"
onClick={deleteDialog.open}
>
<TrashIcon />
@@ -501,7 +491,7 @@ function EventDetailsPopover(props: EventDetailsPopoverProps) {
variant="ghost"
size="icon-sm"
depth={3}
- class="rounded-md text-ink-muted [&_svg]:size-4"
+ class="text-ink-muted [&_svg]:size-4"
onClick={() => copyCalendarEventMention(props.event)}
>
<LinkIcon />
@@ -512,7 +502,7 @@ function EventDetailsPopover(props: EventDetailsPopoverProps) {
variant="ghost"
size="icon-sm"
depth={3}
- class="rounded-md text-ink-muted [&_svg]:size-4"
+ class="text-ink-muted [&_svg]:size-4"
onClick={openEditor}
>
<PencilSimpleIcon />
@@ -522,7 +512,7 @@ function EventDetailsPopover(props: EventDetailsPopoverProps) {
variant="ghost"
size="icon-sm"
depth={3}
- class="rounded-md text-ink-muted [&_svg]:size-4"
+ class="text-ink-muted [&_svg]:size-4"
onClick={deleteDialog.open}
>
<TrashIcon />
diff --git a/apps/web/src/features/calendar/availability/CopyAvailabilityDialog.test.tsx b/apps/web/src/features/calendar/availability/CopyAvailabilityDialog.test.tsx
index 1c02fada5e..562c8e3768 100644
--- a/apps/web/src/features/calendar/availability/CopyAvailabilityDialog.test.tsx
+++ b/apps/web/src/features/calendar/availability/CopyAvailabilityDialog.test.tsx
@@ -92,7 +92,7 @@ it('keeps the button neutral after copying and colors only the check', async ()
const copied = await screen.findByRole('button', {
name: 'Today availability copied',
});
- expect(copied.getAttribute('data-variant')).toBe('outline');
+ expect(copied.getAttribute('data-variant')).toBe('strong');
expect(copied.className).not.toContain('bg-success');
expect(copied.textContent).toContain('Copied');
expect(copied.querySelector('svg.text-success')).toBeTruthy();
diff --git a/apps/web/src/features/calendar/availability/CopyAvailabilityDialog.tsx b/apps/web/src/features/calendar/availability/CopyAvailabilityDialog.tsx
index 40f9d2da1c..1b22d035cb 100644
--- a/apps/web/src/features/calendar/availability/CopyAvailabilityDialog.tsx
+++ b/apps/web/src/features/calendar/availability/CopyAvailabilityDialog.tsx
@@ -125,7 +125,7 @@ export function CopyAvailabilityDialog(props: ManagedDialogProps) {
<ActionDialogShell.Header class="flex items-start justify-between gap-3">
<ActionDialogShell.Title>Copy availability</ActionDialogShell.Title>
<Button
- variant="navigation"
+ variant="ghost"
size="icon-sm"
label="Close availability dialog"
onClick={() => props.onOpenChange(false)}
@@ -224,10 +224,10 @@ export function CopyAvailabilityDialog(props: ManagedDialogProps) {
tabIndex={unavailable() ? 0 : undefined}
>
<Button
- variant="outline"
+ variant="strong"
size="md"
class={cn(
- 'w-full rounded-full px-2 disabled:cursor-not-allowed disabled:opacity-50',
+ 'w-full px-2 disabled:cursor-not-allowed disabled:opacity-50',
isCopying() &&
'data-disabled:opacity-100 disabled:opacity-100'
)}
diff --git a/apps/web/src/features/calendar/components/CalendarSettingsDropdown.tsx b/apps/web/src/features/calendar/components/CalendarSettingsDropdown.tsx
index a2e948e11b..60dade536d 100644
--- a/apps/web/src/features/calendar/components/CalendarSettingsDropdown.tsx
+++ b/apps/web/src/features/calendar/components/CalendarSettingsDropdown.tsx
@@ -166,8 +166,8 @@ function DesktopCalendarSettings(props: {
size={props.sidebar ? 'md' : 'icon-md'}
class={
props.sidebar
- ? 'w-full rounded-full border-transparent bg-transparent'
- : 'shrink-0 rounded-full border-transparent bg-transparent'
+ ? 'w-full border-transparent bg-transparent'
+ : 'shrink-0 border-transparent bg-transparent'
}
aria-label="Calendar settings"
>
diff --git a/apps/web/src/features/calendar/components/EventDetails.tsx b/apps/web/src/features/calendar/components/EventDetails.tsx
index 30bbca28b8..3542cc0f34 100644
--- a/apps/web/src/features/calendar/components/EventDetails.tsx
+++ b/apps/web/src/features/calendar/components/EventDetails.tsx
@@ -590,7 +590,7 @@ export function EventDetails(props: {
<Button
variant="ghost"
size="sm"
- class="h-8 min-w-0 rounded-lg bg-hover text-ink not-touch:not-disabled:hover:bg-active [&_svg]:size-3.5!"
+ class="h-8 min-w-0 bg-hover text-ink not-touch:not-disabled:hover:bg-active [&_svg]:size-3.5!"
onClick={() => openExternalUrl(url())}
>
{conferenceLabel()}
diff --git a/apps/web/src/features/calendar/components/EventRsvpScopeDialog.tsx b/apps/web/src/features/calendar/components/EventRsvpScopeDialog.tsx
index a3926764c1..d74d4f787a 100644
--- a/apps/web/src/features/calendar/components/EventRsvpScopeDialog.tsx
+++ b/apps/web/src/features/calendar/components/EventRsvpScopeDialog.tsx
@@ -61,18 +61,10 @@ export function EventRsvpScopeDialog(props: {
</For>
</RadioGroup>
<div class="flex justify-end gap-1 pt-2">
- <Button
- variant="ghost"
- class="rounded-lg"
- onClick={props.onClose}
- >
+ <Button variant="ghost" onClick={props.onClose}>
Cancel
</Button>
- <Button
- variant="accent"
- class="rounded-lg"
- onClick={props.onConfirm}
- >
+ <Button variant="strong" onClick={props.onConfirm}>
OK
</Button>
</div>
@@ -148,14 +140,14 @@ export function EventRsvpScopeDialog(props: {
<div class="flex gap-3 px-6 pt-5 pb-2">
<Button
variant="ghost"
- class="min-h-11 flex-1 rounded-full bg-ink/6"
+ class="min-h-11 flex-1"
onClick={props.onClose}
>
Cancel
</Button>
<Button
- variant="cta"
- class="min-h-11 flex-1 rounded-full"
+ variant="strong"
+ class="min-h-11 flex-1"
onClick={props.onConfirm}
>
Save response
diff --git a/apps/web/src/features/calendar/components/PeriodSelector.tsx b/apps/web/src/features/calendar/components/PeriodSelector.tsx
index e21ce12c7c..4e572caa1f 100644
--- a/apps/web/src/features/calendar/components/PeriodSelector.tsx
+++ b/apps/web/src/features/calendar/components/PeriodSelector.tsx
@@ -148,7 +148,7 @@ export function PeriodSelector(props: { isNarrow?: boolean }) {
aria-label="Choose calendar view"
variant="ghost"
size="lg"
- class="shrink-0 rounded-full border-transparent bg-transparent text-sm"
+ class="shrink-0 border-transparent bg-transparent text-sm"
>
{CALENDAR_VIEWS.find((view) => view.value === controls.activeView())
?.label ?? 'Week'}
diff --git a/apps/web/src/features/calendar/components/TurnOffCalendarDialog.tsx b/apps/web/src/features/calendar/components/TurnOffCalendarDialog.tsx
index 4ef887fdcd..a2afaed91a 100644
--- a/apps/web/src/features/calendar/components/TurnOffCalendarDialog.tsx
+++ b/apps/web/src/features/calendar/components/TurnOffCalendarDialog.tsx
@@ -56,10 +56,10 @@ export function TurnOffCalendarDialog(props: {
calendar back on means granting access again.
</Dialog.Description>
<div class="pt-3 justify-end items-center gap-3 inline-flex">
- <Button variant="outline" depth={3} onClick={props.onClose}>
+ <Button variant="ghost" depth={3} onClick={props.onClose}>
Cancel
</Button>
- <Button variant="danger" depth={3} onClick={confirm}>
+ <Button variant="strong" depth={3} onClick={confirm}>
Turn off
</Button>
</div>
diff --git a/apps/web/src/features/calendar/components/composer/EventForm.tsx b/apps/web/src/features/calendar/components/composer/EventForm.tsx
index bfbc11dfc7..52a2dc7c27 100644
--- a/apps/web/src/features/calendar/components/composer/EventForm.tsx
+++ b/apps/web/src/features/calendar/components/composer/EventForm.tsx
@@ -383,7 +383,6 @@ export function EventForm(props: EventFormProps) {
<Button
type="button"
variant="ghost"
- class="rounded-lg"
disabled={formIsDisabled()}
onClick={props.onCancel}
>
@@ -391,9 +390,8 @@ export function EventForm(props: EventFormProps) {
</Button>
<Button
type="submit"
- variant={controller.canSave() ? 'accent' : 'ghost'}
+ variant="strong"
depth={3}
- class="rounded-lg border-0"
disabled={!controller.canSave() || formIsDisabled()}
aria-label={isEdit() ? 'Save' : 'Create event'}
>
diff --git a/apps/web/src/features/calendar/components/composer/RecurrenceBuilder.tsx b/apps/web/src/features/calendar/components/composer/RecurrenceBuilder.tsx
index c3869fd281..6faf97ea42 100644
--- a/apps/web/src/features/calendar/components/composer/RecurrenceBuilder.tsx
+++ b/apps/web/src/features/calendar/components/composer/RecurrenceBuilder.tsx
@@ -140,7 +140,7 @@ export function RecurrenceBuilder(props: RecurrenceBuilderProps) {
props.value.byDay.includes(code) ? 'accent' : 'ghost'
}
size="icon-sm"
- class="rounded-full text-xxs"
+ class="text-xxs"
aria-label={code}
aria-pressed={props.value.byDay.includes(code)}
disabled={props.disabled}
diff --git a/apps/web/src/features/channel-invitations/ChannelInviteAcceptance.tsx b/apps/web/src/features/channel-invitations/ChannelInviteAcceptance.tsx
index 3d4812bf10..dcf7823f63 100644
--- a/apps/web/src/features/channel-invitations/ChannelInviteAcceptance.tsx
+++ b/apps/web/src/features/channel-invitations/ChannelInviteAcceptance.tsx
@@ -91,7 +91,7 @@ function InvalidInviteLink() {
<Button
variant="outline"
size="md"
- class="w-full rounded-xs"
+ class="w-full"
onClick={() => navigate('/')}
>
Go to Home
@@ -110,7 +110,7 @@ function UnauthenticatedView(props: { onLogin: () => void }) {
<Button
variant="outline"
size="md"
- class="w-full rounded-xs"
+ class="w-full"
onClick={props.onLogin}
>
Sign In to Continue
@@ -131,12 +131,7 @@ function JoinConfirmation(props: { onJoin: () => void }) {
Confirm that you want to join this channel.
</p>
</div>
- <Button
- variant="outline"
- size="md"
- class="w-full rounded-xs"
- onClick={props.onJoin}
- >
+ <Button variant="outline" size="md" class="w-full" onClick={props.onJoin}>
Join Channel
</Button>
</div>
@@ -153,7 +148,7 @@ function ServerError(props: { onRetry: () => void }) {
<Button
variant="outline"
size="md"
- class="w-full rounded-xs"
+ class="w-full"
onClick={props.onRetry}
>
Try Again
diff --git a/apps/web/src/features/channel/Bots/BotDeleteDialog.tsx b/apps/web/src/features/channel/Bots/BotDeleteDialog.tsx
index 1b3d448b6b..09e927ba15 100644
--- a/apps/web/src/features/channel/Bots/BotDeleteDialog.tsx
+++ b/apps/web/src/features/channel/Bots/BotDeleteDialog.tsx
@@ -38,7 +38,7 @@ export function BotDeleteDialog(props: {
</Button>
<Button
type="button"
- variant="danger"
+ variant="strong"
size="sm"
disabled={props.pending}
onClick={props.onConfirm}
diff --git a/apps/web/src/features/channel/Bots/CreateBotTokenDialog.tsx b/apps/web/src/features/channel/Bots/CreateBotTokenDialog.tsx
index a0ad67a0d1..d9cad3b447 100644
--- a/apps/web/src/features/channel/Bots/CreateBotTokenDialog.tsx
+++ b/apps/web/src/features/channel/Bots/CreateBotTokenDialog.tsx
@@ -99,7 +99,7 @@ export function CreateBotTokenDialog(props: {
Cancel
</Button>
<Button
- variant="cta"
+ variant="strong"
size="sm"
disabled={isPending}
onClick={mint}
@@ -115,7 +115,7 @@ export function CreateBotTokenDialog(props: {
Store this token somewhere secure before closing.
</div>
<div class="flex justify-end border-t border-edge-muted pt-4">
- <Button variant="cta" size="sm" onClick={close}>
+ <Button variant="strong" size="sm" onClick={close}>
Done
</Button>
</div>
diff --git a/apps/web/src/features/channel/Call/CallControls/CallControlBar.tsx b/apps/web/src/features/channel/Call/CallControls/CallControlBar.tsx
index f643b89197..c944bca028 100644
--- a/apps/web/src/features/channel/Call/CallControls/CallControlBar.tsx
+++ b/apps/web/src/features/channel/Call/CallControls/CallControlBar.tsx
@@ -160,7 +160,7 @@ export function CallControlBar(props: {
<Button
size="icon-md"
tooltipDisabled
- variant="plain"
+ variant="ghost"
aria-label={settingsLabels[group.kind]}
aria-expanded={expanded()}
aria-controls={expanded() ? id : undefined}
diff --git a/apps/web/src/features/channel/Call/ChannelCallTab.tsx b/apps/web/src/features/channel/Call/ChannelCallTab.tsx
index 33ef6c93eb..35e27a1c14 100644
--- a/apps/web/src/features/channel/Call/ChannelCallTab.tsx
+++ b/apps/web/src/features/channel/Call/ChannelCallTab.tsx
@@ -78,7 +78,7 @@ function JoinCallEmptyState(props: {
<Button
variant="cta"
size="lg"
- class="rounded-lg px-5"
+ class="px-5"
onClick={props.onJoin}
disabled={props.isJoining}
>
diff --git a/apps/web/src/features/channel/Call/NewMeetingButton.tsx b/apps/web/src/features/channel/Call/NewMeetingButton.tsx
index dd97f0e896..bd07416912 100644
--- a/apps/web/src/features/channel/Call/NewMeetingButton.tsx
+++ b/apps/web/src/features/channel/Call/NewMeetingButton.tsx
@@ -31,7 +31,7 @@ function NewMeetingMenu(props: { onChannelCall: () => void }) {
<Dropdown.Trigger
variant="accent"
size="sm"
- class="gap-1.5 rounded-lg px-2"
+ class="gap-1.5 px-2"
label="New call"
>
<VideoCameraIcon class="size-3.5" />
diff --git a/apps/web/src/features/channel/Calls/ChannelCallsTab.tsx b/apps/web/src/features/channel/Calls/ChannelCallsTab.tsx
index 4e5f36701c..15075dfeb2 100644
--- a/apps/web/src/features/channel/Calls/ChannelCallsTab.tsx
+++ b/apps/web/src/features/channel/Calls/ChannelCallsTab.tsx
@@ -286,7 +286,6 @@ function ChannelCallsList(props: { channelId: string }) {
<Button
variant="outline"
size="sm"
- class="rounded-lg"
onClick={() => void source.refresh()}
>
Try again
diff --git a/apps/web/src/features/channel/Channel/create-delete-message-confirmation.tsx b/apps/web/src/features/channel/Channel/create-delete-message-confirmation.tsx
index b7ae3571a5..e56ea734e0 100644
--- a/apps/web/src/features/channel/Channel/create-delete-message-confirmation.tsx
+++ b/apps/web/src/features/channel/Channel/create-delete-message-confirmation.tsx
@@ -1,5 +1,4 @@
-import CloseIcon from '@phosphor-icons/core/regular/x.svg?component-solid';
-import { Button, Dialog, Surface } from '@ui';
+import { DeleteDialog } from '@ui';
import { createSignal, type JSX } from 'solid-js';
import type { DeleteMessageInput } from './create-channel-message-actions';
@@ -37,51 +36,19 @@ export function createDeleteMessageConfirmation(
};
const ConfirmationDialog = () => (
- <Dialog
+ <DeleteDialog
open={!!pending()}
onOpenChange={(open) => {
if (!open) close();
}}
- position="center"
- class="w-[90%] max-w-120"
- >
- <Surface depth={2} class="rounded-xl">
- <div class="shrink-0 flex flex-row items-center px-2 gap-1 border-b border-b-edge-muted h-10">
- <Dialog.CloseButton as={Button} variant="ghost" size="icon-sm">
- <CloseIcon />
- </Dialog.CloseButton>
- <Dialog.Title as="span" class="text-sm font-medium p-0 m-0">
- {isDiscussionRoot(pending()) ? 'Delete comment' : 'Delete message'}
- </Dialog.Title>
- </div>
-
- <div class="p-3 flex flex-col gap-3">
- <Dialog.Description class="text-sm text-ink-muted">
- {isDiscussionRoot(pending())
- ? 'This comment and every reply to it will be permanently deleted. This action cannot be undone.'
- : 'This message will be permanently deleted. This action cannot be undone.'}
- </Dialog.Description>
-
- <div class="flex justify-end gap-2">
- <Button variant="ghost" onClick={close}>
- Cancel
- </Button>
- <Button
- ref={(el: HTMLButtonElement) => {
- requestAnimationFrame(() =>
- requestAnimationFrame(() => el.focus())
- );
- }}
- type="button"
- variant="danger"
- onClick={confirm}
- >
- Delete
- </Button>
- </div>
- </div>
- </Surface>
- </Dialog>
+ title={isDiscussionRoot(pending()) ? 'Delete comment' : 'Delete message'}
+ body={
+ isDiscussionRoot(pending())
+ ? 'This comment and every reply to it will be permanently deleted. This action cannot be undone.'
+ : 'This message will be permanently deleted. This action cannot be undone.'
+ }
+ onDelete={confirm}
+ />
);
return { requestDelete, ConfirmationDialog };
diff --git a/apps/web/src/features/channel/Channel/tests/create-delete-message-confirmation.test.tsx b/apps/web/src/features/channel/Channel/tests/create-delete-message-confirmation.test.tsx
index 772fa6ea64..0091ec8432 100644
--- a/apps/web/src/features/channel/Channel/tests/create-delete-message-confirmation.test.tsx
+++ b/apps/web/src/features/channel/Channel/tests/create-delete-message-confirmation.test.tsx
@@ -7,10 +7,6 @@ import userEvent from '@testing-library/user-event';
import { describe, expect, it, vi } from 'vitest';
import { createDeleteMessageConfirmation } from '../create-delete-message-confirmation';
-vi.mock('@phosphor-icons/core/regular/x.svg?component-solid', () => ({
- default: () => <span data-testid="close-icon" />,
-}));
-
const deleteInput = {
parent: { type: 'channel' as const, id: 'channel-1' },
messageID: 'message-1',
diff --git a/apps/web/src/features/channel/CreateChannelModal.tsx b/apps/web/src/features/channel/CreateChannelModal.tsx
index d3a94256fe..b6edb830dd 100644
--- a/apps/web/src/features/channel/CreateChannelModal.tsx
+++ b/apps/web/src/features/channel/CreateChannelModal.tsx
@@ -454,11 +454,7 @@ export function CreateChannelModal() {
onClick={() => {
if (step() === 'invite') void finishInvites();
}}
- variant={
- step() === 'invite' && selectedRecipients().length === 0
- ? 'ghost'
- : 'accent'
- }
+ variant="strong"
disabled={
(step() !== 'invite' && !channelName()) ||
createChannelMutation.isPending ||
diff --git a/apps/web/src/features/channel/Input/ActionButton.tsx b/apps/web/src/features/channel/Input/ActionButton.tsx
index ad765e9faa..89ede04dd0 100644
--- a/apps/web/src/features/channel/Input/ActionButton.tsx
+++ b/apps/web/src/features/channel/Input/ActionButton.tsx
@@ -16,7 +16,7 @@ export function InputActionButton(props: {
disabled={props.disabled}
variant={props.active ? 'accent' : 'ghost'}
size="icon-composer"
- class={cn('rounded-full touch:size-6', props.class)}
+ class={cn('touch:size-6', props.class)}
onPointerDown={(event: PointerEvent) => event.preventDefault()}
onClick={(event) => props.onClick?.(event)}
>
diff --git a/apps/web/src/features/channel/Message/ReactionChip.tsx b/apps/web/src/features/channel/Message/ReactionChip.tsx
index bc9cdaac14..31a77a20e5 100644
--- a/apps/web/src/features/channel/Message/ReactionChip.tsx
+++ b/apps/web/src/features/channel/Message/ReactionChip.tsx
@@ -92,7 +92,7 @@ export function ReactionChip(props: ReactionChipProps) {
size="sm"
variant={props.selected ? 'accent' : 'outline'}
class={cn(
- 'flex flex-row items-center h-7 min-w-7 gap-1 rounded-full',
+ 'flex flex-row items-center h-7 min-w-7 gap-1',
!props.interactive && 'pointer-events-auto'
)}
disabled={!props.interactive}
diff --git a/apps/web/src/features/channel/Participants/ChannelJoinLinkButton.tsx b/apps/web/src/features/channel/Participants/ChannelJoinLinkButton.tsx
index 4c530cd642..e9b6fff3f7 100644
--- a/apps/web/src/features/channel/Participants/ChannelJoinLinkButton.tsx
+++ b/apps/web/src/features/channel/Participants/ChannelJoinLinkButton.tsx
@@ -73,7 +73,6 @@ export function ChannelJoinLinkButton(props: { channelId: string }) {
<Button
variant="outline"
size="sm"
- class="rounded-xs"
disabled={getJoinLinkMutation.isPending}
onClick={() => void copyJoinLink()}
>
diff --git a/apps/web/src/features/channel/views/channel-invite-modal.tsx b/apps/web/src/features/channel/views/channel-invite-modal.tsx
index c36266a404..0ca0022339 100644
--- a/apps/web/src/features/channel/views/channel-invite-modal.tsx
+++ b/apps/web/src/features/channel/views/channel-invite-modal.tsx
@@ -150,7 +150,7 @@ export function ChannelInviteModal(props: {
Cancel
</Button>
<Button
- variant="accent"
+ variant="strong"
onClick={() => void addPeople()}
disabled={!canAdd()}
>
diff --git a/apps/web/src/features/channels-view/components/rail/ChannelLabelNameDialog.tsx b/apps/web/src/features/channels-view/components/rail/ChannelLabelNameDialog.tsx
index ed1070b0ff..4c53976a4b 100644
--- a/apps/web/src/features/channels-view/components/rail/ChannelLabelNameDialog.tsx
+++ b/apps/web/src/features/channels-view/components/rail/ChannelLabelNameDialog.tsx
@@ -96,7 +96,6 @@ function LabelNameDialog(
type="button"
variant="ghost"
depth={2}
- class="rounded-lg"
disabled={pending()}
onClick={() => props.onOpenChange(false)}
>
@@ -104,9 +103,8 @@ function LabelNameDialog(
</Button>
<Button
type="submit"
- variant="accent"
+ variant="strong"
depth={2}
- class="rounded-lg"
disabled={!canSubmit() || pending()}
>
{pending() ? 'Saving…' : props.confirmLabel}
diff --git a/apps/web/src/features/channels-view/components/rail/ChannelRailItems.tsx b/apps/web/src/features/channels-view/components/rail/ChannelRailItems.tsx
index fadce5be6a..6c0bb05835 100644
--- a/apps/web/src/features/channels-view/components/rail/ChannelRailItems.tsx
+++ b/apps/web/src/features/channels-view/components/rail/ChannelRailItems.tsx
@@ -141,7 +141,7 @@ export function IncomingCallActions(props: {
variant="danger"
size={isWide() ? 'sm' : 'icon-xs'}
fullWidth={isWide()}
- class={cn('rounded-md', isWide() && 'h-7 flex-1')}
+ class={cn(isWide() && 'h-7 flex-1')}
label="Decline incoming call"
tooltipDisabled={isWide()}
onPointerDown={(event) => event.stopPropagation()}
@@ -159,7 +159,7 @@ export function IncomingCallActions(props: {
variant="success"
size={isWide() ? 'sm' : 'icon-xs'}
fullWidth={isWide()}
- class={cn('rounded-md', isWide() && 'h-7 flex-1')}
+ class={cn(isWide() && 'h-7 flex-1')}
label="Accept incoming call"
tooltipDisabled={isWide()}
onPointerDown={(event) => event.stopPropagation()}
diff --git a/apps/web/src/features/channels-view/components/rail/SmartTagDialog.tsx b/apps/web/src/features/channels-view/components/rail/SmartTagDialog.tsx
index 3fee9e3e64..b5c4ea5517 100644
--- a/apps/web/src/features/channels-view/components/rail/SmartTagDialog.tsx
+++ b/apps/web/src/features/channels-view/components/rail/SmartTagDialog.tsx
@@ -148,9 +148,9 @@ function SmartTagDialog(props: SmartTagDialogProps & ManagedDialogProps) {
</Button>
<Button
type="submit"
- variant={canSubmit() ? 'accent' : 'ghost'}
+ variant="strong"
depth={3}
- class="rounded-lg border-0 not-touch:h-[33.75px] not-touch:rounded-full not-touch:px-[15px]"
+ class="not-touch:h-[33.75px] not-touch:px-[15px]"
disabled={!canSubmit() || saving()}
>
{saving()
diff --git a/apps/web/src/features/chat/ChatWithAgentButton.tsx b/apps/web/src/features/chat/ChatWithAgentButton.tsx
index e79d87b51c..b3f222b31e 100644
--- a/apps/web/src/features/chat/ChatWithAgentButton.tsx
+++ b/apps/web/src/features/chat/ChatWithAgentButton.tsx
@@ -184,7 +184,7 @@ export function AskMacroButton(props: { entity: ChatWithAgentEntity }) {
variant="ghost"
size="sm"
depth={2}
- class="gap-1.5 rounded-full border border-edge-muted px-2"
+ class="gap-1.5 border border-edge-muted px-2"
>
<AgentIcon />
<span class="text-xs font-medium">Ask Macro</span>
diff --git a/apps/web/src/features/claude-connection/components/connection-card.tsx b/apps/web/src/features/claude-connection/components/connection-card.tsx
index 297170bcb1..023b376955 100644
--- a/apps/web/src/features/claude-connection/components/connection-card.tsx
+++ b/apps/web/src/features/claude-connection/components/connection-card.tsx
@@ -144,6 +144,7 @@ export function ConnectionCard(props: ConnectionCardProps) {
{props.busy ? 'Connecting…' : 'Finish connecting'}
</Button>
<Button
+ variant="ghost"
type="button"
size="sm"
disabled={props.busy}
diff --git a/apps/web/src/features/command/sidebar/sidebar-create-menu.tsx b/apps/web/src/features/command/sidebar/sidebar-create-menu.tsx
index cad8c9015f..7b70b26c0d 100644
--- a/apps/web/src/features/command/sidebar/sidebar-create-menu.tsx
+++ b/apps/web/src/features/command/sidebar/sidebar-create-menu.tsx
@@ -139,7 +139,7 @@ export const SidebarCreateMenu = (props: SidebarCreateMenuProps) => {
variant="outline"
size="icon-sm"
depth={1}
- class="size-[26px] rounded-full bg-surface shadow-md shadow-drop-shadow [&_svg]:size-4!"
+ class="size-[26px] bg-surface shadow-md shadow-drop-shadow [&_svg]:size-4!"
label="Create"
hotkey={TOKENS.global.createCommand}
onMouseDown={(e: MouseEvent) => {
diff --git a/apps/web/src/features/companies/CreateCompanyModal.tsx b/apps/web/src/features/companies/CreateCompanyModal.tsx
index 5c59c2d024..2eec3d8a6f 100644
--- a/apps/web/src/features/companies/CreateCompanyModal.tsx
+++ b/apps/web/src/features/companies/CreateCompanyModal.tsx
@@ -183,9 +183,8 @@ export function CreateCompanyModal() {
<div class="flex shrink-0 items-end justify-end gap-2">
<Button
type="submit"
- variant={canSubmit() ? 'accent' : 'ghost'}
+ variant="strong"
depth={3}
- class="rounded-lg border-0"
disabled={!canSubmit()}
>
{createCompanyMutation.isPending
diff --git a/apps/web/src/features/companies/CreateContactModal.tsx b/apps/web/src/features/companies/CreateContactModal.tsx
index deeaacc6bd..68c7a96524 100644
--- a/apps/web/src/features/companies/CreateContactModal.tsx
+++ b/apps/web/src/features/companies/CreateContactModal.tsx
@@ -204,9 +204,8 @@ export function CreateContactModal() {
<div class="flex shrink-0 items-end justify-end gap-2">
<Button
type="submit"
- variant={canSubmit() ? 'accent' : 'ghost'}
+ variant="strong"
depth={3}
- class="rounded-lg border-0"
disabled={!canSubmit()}
>
{createContactMutation.isPending ? 'Adding…' : 'Add Contact'}
diff --git a/apps/web/src/features/companies/components/CrmListDialog.tsx b/apps/web/src/features/companies/components/CrmListDialog.tsx
index f4364544ea..16c79ccb3c 100644
--- a/apps/web/src/features/companies/components/CrmListDialog.tsx
+++ b/apps/web/src/features/companies/components/CrmListDialog.tsx
@@ -135,7 +135,7 @@ export function CrmListDialog(props: {
</Button>
<Button
type="submit"
- variant="accent"
+ variant="strong"
disabled={pending() || !name().trim()}
>
{pending() ? 'Saving…' : 'Save list'}
diff --git a/apps/web/src/features/companies/views/CrmExport.tsx b/apps/web/src/features/companies/views/CrmExport.tsx
index 9a219f2f16..4219bb8867 100644
--- a/apps/web/src/features/companies/views/CrmExport.tsx
+++ b/apps/web/src/features/companies/views/CrmExport.tsx
@@ -394,7 +394,7 @@ export function CrmExport(props: {
Cancel
</Button>
<Button
- variant="accent"
+ variant="strong"
disabled={
pending() ||
!selectedColumns().length ||
diff --git a/apps/web/src/features/companies/views/CrmImport.tsx b/apps/web/src/features/companies/views/CrmImport.tsx
index 03231550d8..fb285b6ef4 100644
--- a/apps/web/src/features/companies/views/CrmImport.tsx
+++ b/apps/web/src/features/companies/views/CrmImport.tsx
@@ -133,7 +133,7 @@ export function CrmImport(props: { onClose: () => void }) {
Close
</Button>
<Button
- variant="accent"
+ variant="strong"
disabled={pending() || !rows().length}
onClick={() => void run()}
>
diff --git a/apps/web/src/features/companies/views/CrmWorkspace.tsx b/apps/web/src/features/companies/views/CrmWorkspace.tsx
index b3e683cb95..ebdc0e7cfe 100644
--- a/apps/web/src/features/companies/views/CrmWorkspace.tsx
+++ b/apps/web/src/features/companies/views/CrmWorkspace.tsx
@@ -75,7 +75,7 @@ function NavigationToggle(props: {
variant="ghost"
size="icon-sm"
depth={isTouchDevice() ? 3 : undefined}
- class="touch:island touch:pointer-events-auto touch:size-10 touch:shrink-0 touch:rounded-full touch:bg-chrome"
+ class="touch:island touch:pointer-events-auto touch:size-10 touch:shrink-0 touch:bg-chrome"
aria-label="Show CRM navigation"
>
<ListIcon class="size-4 touch:size-6" />
diff --git a/apps/web/src/features/dictation/components/dictation-controls.tsx b/apps/web/src/features/dictation/components/dictation-controls.tsx
index 24f1262715..9389bb2aa9 100644
--- a/apps/web/src/features/dictation/components/dictation-controls.tsx
+++ b/apps/web/src/features/dictation/components/dictation-controls.tsx
@@ -17,7 +17,7 @@ export function DictationButton(props: {
<Button
variant="ghost"
size="icon-composer"
- class="rounded-full text-ink not-touch:text-composer-ink"
+ class="text-ink not-touch:text-composer-ink"
label={props.dictation.label()}
tooltip={props.dictation.label()}
disabled={props.disabled || props.dictation.disabled()}
@@ -61,7 +61,7 @@ export function DictationPanel(props: { dictation: DictationController }) {
<Button
variant="ghost"
size="icon-composer"
- class="rounded-full text-composer-ink touch:bg-ink/5 touch:text-ink-muted"
+ class="text-composer-ink touch:bg-ink/5 touch:text-ink-muted"
label="Cancel dictation"
ref={(element) =>
queueMicrotask(() => {
@@ -77,7 +77,7 @@ export function DictationPanel(props: { dictation: DictationController }) {
<Button
variant="ghost"
size="icon-composer"
- class="rounded-full text-composer-ink touch:bg-ink touch:text-surface-4"
+ class="text-composer-ink touch:bg-ink touch:text-surface-4"
label="Use dictation"
disabled={
props.dictation.phase() === 'starting' ||
diff --git a/apps/web/src/features/email-compose/components/from-inbox-selector.tsx b/apps/web/src/features/email-compose/components/from-inbox-selector.tsx
index 453e067147..ce79280d9c 100644
--- a/apps/web/src/features/email-compose/components/from-inbox-selector.tsx
+++ b/apps/web/src/features/email-compose/components/from-inbox-selector.tsx
@@ -162,7 +162,7 @@ export function FromInboxSelector(props: {
<Dropdown.Trigger
disabled={props.disabled}
class={cn(
- 'inline-flex h-auto min-w-0 max-w-full rounded-full border-none bg-transparent p-0 not-disabled:hover:bg-transparent active:bg-transparent',
+ 'inline-flex h-auto min-w-0 max-w-full border-none bg-transparent p-0 not-disabled:hover:bg-transparent active:bg-transparent',
props.class
)}
>
diff --git a/apps/web/src/features/email-compose/components/mobile-reply-toolbar.tsx b/apps/web/src/features/email-compose/components/mobile-reply-toolbar.tsx
index 2dbb163529..cca7fdcb55 100644
--- a/apps/web/src/features/email-compose/components/mobile-reply-toolbar.tsx
+++ b/apps/web/src/features/email-compose/components/mobile-reply-toolbar.tsx
@@ -13,7 +13,7 @@ function ToolbarButton(props: ButtonProps) {
variant="ghost"
size="icon-md"
noTouchResize
- class="island size-(--mobile-chrome-button-size) rounded-full border-0 bg-chrome p-0 text-ink"
+ class="island size-(--mobile-chrome-button-size) border-0 bg-chrome p-0 text-ink"
/>
);
}
diff --git a/apps/web/src/features/email-compose/views/compose-layout.tsx b/apps/web/src/features/email-compose/views/compose-layout.tsx
index f2bf49d710..a39127a98b 100644
--- a/apps/web/src/features/email-compose/views/compose-layout.tsx
+++ b/apps/web/src/features/email-compose/views/compose-layout.tsx
@@ -245,7 +245,6 @@ export function ComposeLayout(props: {
<Show when={!isCcVisible()}>
<Button
size="sm"
- class="rounded-lg"
onClick={() => setShowCc(true)}
disabled={ctx.disabled()}
>
@@ -255,7 +254,6 @@ export function ComposeLayout(props: {
<Show when={!isBccVisible()}>
<Button
size="sm"
- class="rounded-lg"
onClick={() => setShowBcc(true)}
disabled={ctx.disabled()}
>
diff --git a/apps/web/src/features/email-compose/views/reply-envelope.tsx b/apps/web/src/features/email-compose/views/reply-envelope.tsx
index bdc91638d3..9be37c2423 100644
--- a/apps/web/src/features/email-compose/views/reply-envelope.tsx
+++ b/apps/web/src/features/email-compose/views/reply-envelope.tsx
@@ -145,7 +145,6 @@ export function ReplyEnvelope(props: ReplyEnvelopeProps) {
<Show when={!showCc()}>
<Button
size="sm"
- class="rounded-lg"
disabled={props.disabled()}
onClick={() => {
setShowCc(true);
@@ -158,7 +157,6 @@ export function ReplyEnvelope(props: ReplyEnvelopeProps) {
<Show when={!showBcc()}>
<Button
size="sm"
- class="rounded-lg"
disabled={props.disabled()}
onClick={() => {
setShowBcc(true);
@@ -254,7 +252,7 @@ export function ReplyEnvelope(props: ReplyEnvelopeProps) {
<Button
variant="ghost"
size="icon-sm"
- class="shrink-0 rounded-full bg-transparent text-ink-placeholder"
+ class="shrink-0 bg-transparent text-ink-placeholder"
tooltip={mobileDrawerCcBccOpen() ? 'Hide Cc/Bcc' : 'Show Cc/Bcc'}
aria-expanded={mobileDrawerCcBccOpen()}
onClick={toggleMobileDrawerCcBcc}
diff --git a/apps/web/src/features/email-compose/views/reply-input.tsx b/apps/web/src/features/email-compose/views/reply-input.tsx
index a2a051abb5..e40e900755 100644
--- a/apps/web/src/features/email-compose/views/reply-input.tsx
+++ b/apps/web/src/features/email-compose/views/reply-input.tsx
@@ -528,7 +528,7 @@ export function ReplyInputView(props: ReplyInputViewProps) {
<Button
variant="ghost"
size="icon-sm"
- class="rounded-md text-ink-extra-muted hover:text-ink-muted hover:bg-active"
+ class="text-ink-extra-muted hover:text-ink-muted hover:bg-active"
tooltip="Show quoted text"
onclick={(e: MouseEvent) => {
e.stopPropagation();
diff --git a/apps/web/src/features/email-message/components/calendar-invite-card.tsx b/apps/web/src/features/email-message/components/calendar-invite-card.tsx
index 4e00f34de2..aaa07ae59d 100644
--- a/apps/web/src/features/email-message/components/calendar-invite-card.tsx
+++ b/apps/web/src/features/email-message/components/calendar-invite-card.tsx
@@ -186,8 +186,8 @@ export function CalendarInviteCard(props: {
{props.actions?.notice}
<Show when={props.actions?.retryCalendar}>
<Button
- variant="plain"
- class="h-auto p-0 text-xs font-medium text-accent"
+ variant="ghost"
+ class="h-auto border-0 p-0 text-xs font-medium text-accent"
onClick={() => props.actions?.retryCalendar?.()}
>
Retry calendar
@@ -221,8 +221,8 @@ export function CalendarInviteCard(props: {
<Show when={invite().attendees.length > 3}>
{' '}
<Button
- variant="plain"
- class="h-auto p-0 align-baseline text-sm font-medium text-accent"
+ variant="ghost"
+ class="h-auto border-0 p-0 align-baseline text-sm font-medium text-accent"
aria-expanded={attendeesExpanded()}
onClick={() => setAttendeesExpanded((value) => !value)}
>
@@ -243,8 +243,8 @@ export function CalendarInviteCard(props: {
{invite().description}
</p>
<Button
- variant="plain"
- class="h-auto p-0 text-xs font-medium text-accent"
+ variant="ghost"
+ class="h-auto border-0 p-0 text-xs font-medium text-accent"
aria-expanded={descriptionExpanded()}
onClick={() => setDescriptionExpanded((value) => !value)}
>
@@ -286,7 +286,7 @@ export function CalendarInviteCard(props: {
<For each={RESPONSES}>
{(option, index) => (
<Button
- variant="plain"
+ variant="ghost"
class={`h-10 gap-1 rounded-none px-3.5 text-sm text-ink aria-pressed:bg-accent-bg aria-pressed:font-semibold aria-pressed:text-accent ${index() > 0 ? 'border-l border-edge' : ''}`}
aria-pressed={resolved()?.response === option.value}
onClick={() => props.actions?.respond?.(option.value)}
@@ -308,8 +308,8 @@ export function CalendarInviteCard(props: {
}
>
<Button
- variant="plain"
- class="h-10 rounded-lg border border-edge px-3.5 text-sm font-semibold text-ink"
+ variant="ghost"
+ class="h-10 border border-edge px-3.5 text-sm font-semibold text-ink"
onClick={() => props.actions?.connectCalendar?.()}
>
Connect calendar
@@ -317,8 +317,8 @@ export function CalendarInviteCard(props: {
</Show>
<Show when={conference() && props.actions?.openExternal}>
<Button
- variant="plain"
- class="h-10 gap-1.5 rounded-lg bg-accent px-3.5 text-sm font-semibold text-accent-contrast"
+ variant="ghost"
+ class="h-10 gap-1.5 bg-accent px-3.5 text-sm font-semibold text-accent-contrast"
aria-label="Join meeting"
onClick={() => props.actions?.openExternal?.(conference()!)}
>
@@ -328,8 +328,8 @@ export function CalendarInviteCard(props: {
</Show>
<Show when={props.actions?.openCalendar}>
<Button
- variant="plain"
- class="size-10 rounded-lg border border-edge p-0 text-ink-muted"
+ variant="ghost"
+ class="size-10 border border-edge p-0 text-ink-muted"
aria-label="Open in calendar"
onClick={() => props.actions?.openCalendar?.()}
>
@@ -350,8 +350,8 @@ export function CalendarInviteCard(props: {
</Show>
<Show when={props.actions?.showDay}>
<Button
- variant="plain"
- class="h-auto p-0 text-xs font-medium text-accent"
+ variant="ghost"
+ class="h-auto border-0 p-0 text-xs font-medium text-accent"
aria-expanded={props.actions?.dayExpanded}
onClick={() => props.actions?.showDay?.()}
>
@@ -439,8 +439,8 @@ function SchedulingNotification(props: {
</Show>
<Show when={props.actions?.showDay}>
<Button
- variant="plain"
- class="h-auto p-0 text-xs font-medium text-accent"
+ variant="ghost"
+ class="h-auto border-0 p-0 text-xs font-medium text-accent"
aria-expanded={props.actions?.dayExpanded}
onClick={() => props.actions?.showDay?.()}
>
diff --git a/apps/web/src/features/email-message/components/message-actions.tsx b/apps/web/src/features/email-message/components/message-actions.tsx
index a838d919ee..3cf6e868bf 100644
--- a/apps/web/src/features/email-message/components/message-actions.tsx
+++ b/apps/web/src/features/email-message/components/message-actions.tsx
@@ -32,8 +32,9 @@ export function MessageActions(props: {
>
<Show when={!props.hiddenActions?.includes('reply')}>
<Button
+ variant="ghost"
size="icon-sm"
- class="size-6 p-0 border-0 bg-transparent rounded text-ink-muted hover:text-ink hover:bg-ink-muted/8"
+ class="size-6 p-0"
noTouchResize
onClick={onChangeReplyType('reply-all')}
tooltip="Reply"
@@ -43,8 +44,9 @@ export function MessageActions(props: {
</Show>
<Show when={!props.hiddenActions?.includes('forward')}>
<Button
+ variant="ghost"
size="icon-sm"
- class="size-6 p-0 border-0 bg-transparent rounded text-ink-muted hover:text-ink hover:bg-ink-muted/8"
+ class="size-6 p-0"
noTouchResize
onClick={onChangeReplyType('forward')}
tooltip="Forward"
diff --git a/apps/web/src/features/email-message/views/email-message-body.tsx b/apps/web/src/features/email-message/views/email-message-body.tsx
index 1d0e3478a3..f22b5709e5 100644
--- a/apps/web/src/features/email-message/views/email-message-body.tsx
+++ b/apps/web/src/features/email-message/views/email-message-body.tsx
@@ -60,7 +60,7 @@ export function EmailMessageBody(props: EmailMessageBodyProps) {
size="icon-sm"
onClick={() => setShowFullHTML(true)}
class={cn(
- 'rounded-md text-ink-extra-muted hover:text-ink-muted',
+ 'text-ink-extra-muted hover:text-ink-muted',
props.isFocused ? 'hover:bg-surface' : 'hover:bg-active'
)}
>
diff --git a/apps/web/src/features/email-thread/views/bottom-reply-buttons.tsx b/apps/web/src/features/email-thread/views/bottom-reply-buttons.tsx
index 07ce0d6563..86c439ace0 100644
--- a/apps/web/src/features/email-thread/views/bottom-reply-buttons.tsx
+++ b/apps/web/src/features/email-thread/views/bottom-reply-buttons.tsx
@@ -37,7 +37,7 @@ function ReplyActionButton(props: {
disabled={props.disabled}
class={cn(
// Island pills when floating in the mobile/tablet accessory region.
- 'touch:island touch:h-8 touch:rounded-full touch:border-0',
+ 'touch:island touch:h-8 touch:border-0',
!props.label && 'touch:w-9 touch:p-0'
)}
onClick={props.onClick}
diff --git a/apps/web/src/features/email-view/components/EmailInboxSelector.tsx b/apps/web/src/features/email-view/components/EmailInboxSelector.tsx
index 078bb2c51e..ae077ab5f9 100644
--- a/apps/web/src/features/email-view/components/EmailInboxSelector.tsx
+++ b/apps/web/src/features/email-view/components/EmailInboxSelector.tsx
@@ -253,7 +253,7 @@ export function EmailInboxMenu(props: { class?: string }) {
depth={2}
aria-label={`Inbox: ${selection.label()}`}
tooltip={selection.label()}
- class={cn('size-8 shrink-0 rounded-full', props.class)}
+ class={cn('size-8 shrink-0', props.class)}
>
<Show
when={selection.selectedOption()}
diff --git a/apps/web/src/features/email-view/components/EmailList.tsx b/apps/web/src/features/email-view/components/EmailList.tsx
index d4dd66c508..03dc368d32 100644
--- a/apps/web/src/features/email-view/components/EmailList.tsx
+++ b/apps/web/src/features/email-view/components/EmailList.tsx
@@ -476,7 +476,6 @@ export function EmailList(props: EmailListProps) {
<Button
variant="outline"
size="sm"
- class="rounded-lg"
onClick={() => void source.refresh()}
>
Try again
diff --git a/apps/web/src/features/email-view/components/EmailRowActions.tsx b/apps/web/src/features/email-view/components/EmailRowActions.tsx
index 56c0a9f258..13e5c590b9 100644
--- a/apps/web/src/features/email-view/components/EmailRowActions.tsx
+++ b/apps/web/src/features/email-view/components/EmailRowActions.tsx
@@ -45,7 +45,7 @@ export function EmailStarAction(props: {
)}
>
<Button
- variant="plain"
+ variant="ghost"
size="icon-sm"
label={props.starred ? 'Unstar email' : 'Star email'}
class={props.starred ? 'text-ink-muted' : 'text-ink-extra-muted'}
@@ -73,7 +73,7 @@ export function EmailRowActions(props: {
return (
<EmailActionGroup onFocus={props.onFocus}>
<Button
- variant="plain"
+ variant="ghost"
size="icon-sm"
label={props.archived ? 'Unarchive email' : 'Archive email'}
class="text-ink-extra-muted"
@@ -85,7 +85,7 @@ export function EmailRowActions(props: {
</Show>
</Button>
<Button
- variant="plain"
+ variant="ghost"
size="icon-sm"
label="Open command menu"
class="text-ink-extra-muted"
diff --git a/apps/web/src/features/entity/EntitySelectionToolbarModal.tsx b/apps/web/src/features/entity/EntitySelectionToolbarModal.tsx
index 78a0c3c256..66566dcf24 100644
--- a/apps/web/src/features/entity/EntitySelectionToolbarModal.tsx
+++ b/apps/web/src/features/entity/EntitySelectionToolbarModal.tsx
@@ -38,7 +38,7 @@ export const EntitySelectionToolbarModal = (
<Button
onClick={props.onAction}
variant="outline"
- class="p-1 pl-2 rounded-md bg-surface"
+ class="p-1 pl-2 bg-surface"
depth={3}
>
<span>Actions</span>
@@ -49,7 +49,7 @@ export const EntitySelectionToolbarModal = (
<Button
onClick={props.onClose}
variant="outline"
- class="p-1 pl-2 rounded-md bg-surface"
+ class="p-1 pl-2 bg-surface"
depth={3}
>
<span>Clear</span>
diff --git a/apps/web/src/features/entity/bulk-edit/BulkDeleteView.tsx b/apps/web/src/features/entity/bulk-edit/BulkDeleteView.tsx
index 04f95a8283..6c4487fb6e 100644
--- a/apps/web/src/features/entity/bulk-edit/BulkDeleteView.tsx
+++ b/apps/web/src/features/entity/bulk-edit/BulkDeleteView.tsx
@@ -82,7 +82,7 @@ export const BulkDeleteView = (props: {
<Button variant="ghost" onClick={props.onCancel}>
Cancel
</Button>
- <Button variant="danger" onClick={() => void handleDelete()}>
+ <Button variant="strong" onClick={() => void handleDelete()}>
{multi() ? `Delete ${entities().length} items` : 'Delete item'}
</Button>
</ActionDialogShell.Footer>
diff --git a/apps/web/src/features/entity/bulk-edit/BulkMoveToProjectView.tsx b/apps/web/src/features/entity/bulk-edit/BulkMoveToProjectView.tsx
index 7b9855272c..fb37faf9ad 100644
--- a/apps/web/src/features/entity/bulk-edit/BulkMoveToProjectView.tsx
+++ b/apps/web/src/features/entity/bulk-edit/BulkMoveToProjectView.tsx
@@ -602,7 +602,7 @@ export const BulkMoveToProjectView = (props: {
<Button
size="sm"
variant="outline"
- class="rounded-xs shrink-0"
+ class="shrink-0"
disabled={!newFolderName().trim() || isSavingFolder()}
onClick={submitNewFolder}
>
diff --git a/apps/web/src/features/entity/entity-modal/EntityModal.tsx b/apps/web/src/features/entity/entity-modal/EntityModal.tsx
index 099c8dae14..e59660bbf5 100644
--- a/apps/web/src/features/entity/entity-modal/EntityModal.tsx
+++ b/apps/web/src/features/entity/entity-modal/EntityModal.tsx
@@ -4,7 +4,7 @@ import clickOutside from '@core/directive/clickOutside';
import { blockElementSignal } from '@core/signal/blockElement';
import type { EntityData } from '@entity';
import { Dialog } from '@kobalte/core/dialog';
-import { cn } from '@ui';
+import { Button } from '@ui';
import type { ComponentProps } from 'solid-js';
import {
type Accessor,
@@ -29,22 +29,17 @@ export const EntityModalActionFooter = (props: {
isDisabled?: boolean;
}) => {
return (
- <div class="flex justify-end mt-2 text-sm pt-2">
- <button class="py-1 px-3 font-mono text-sm" onClick={props.onCancel}>
+ <div class="flex justify-end gap-2 mt-2 text-sm pt-2">
+ <Button variant="ghost" onClick={props.onCancel}>
Cancel
- </button>
- <button
- class={cn(
- 'uppercase py-1 px-3 font-mono text-sm',
- props.isDisabled
- ? 'bg-edge text-ink-placeholder cursor-not-allowed'
- : 'bg-accent text-surface'
- )}
+ </Button>
+ <Button
+ variant="strong"
onClick={props.onConfirm}
disabled={props.isDisabled}
>
{props.confirmText}
- </button>
+ </Button>
</div>
);
};
diff --git a/apps/web/src/features/entity/extractors-notification/notification-content.tsx b/apps/web/src/features/entity/extractors-notification/notification-content.tsx
index c3f2984a63..19d6b6459b 100644
--- a/apps/web/src/features/entity/extractors-notification/notification-content.tsx
+++ b/apps/web/src/features/entity/extractors-notification/notification-content.tsx
@@ -69,7 +69,7 @@ export function DocumentMentionPill(props: {
<EntityIcon targetType={targetType()} size="xs" />
<span class="truncate min-w-0">{documentName()}</span>
<Button
- class="absolute -top-1.5 -right-1.5 size-5 rounded-full bg-surface border border-edge-muted/50 p-0 place-items-center hidden group-hover:grid hover:bg-accent! hover:text-surface!"
+ class="absolute -top-1.5 -right-1.5 size-5 bg-surface border border-edge-muted/50 p-0 place-items-center hidden group-hover:grid hover:bg-accent! hover:text-surface!"
tooltip="Mark as done"
onClick={(e) => {
e.stopPropagation();
diff --git a/apps/web/src/features/entity/extractors-notification/notification-row.tsx b/apps/web/src/features/entity/extractors-notification/notification-row.tsx
index 645a1a43e6..89c83bc399 100644
--- a/apps/web/src/features/entity/extractors-notification/notification-row.tsx
+++ b/apps/web/src/features/entity/extractors-notification/notification-row.tsx
@@ -194,7 +194,7 @@ function HeaderTrailing(props: {
props.onMarkAsDone();
}}
tooltip="Mark done"
- class="rounded text-ink-muted hover:text-accent hover:bg-accent/10 hidden group-hover/notif:grid p-0 place-items-center size-5"
+ class="text-ink-muted hover:text-accent hover:bg-accent/10 hidden group-hover/notif:grid p-0 place-items-center size-5"
>
<CheckIcon class="size-3" />
</Button>
diff --git a/apps/web/src/features/entity/extractors-notification/notification-stacks.tsx b/apps/web/src/features/entity/extractors-notification/notification-stacks.tsx
index a0036fa754..e5abf16378 100644
--- a/apps/web/src/features/entity/extractors-notification/notification-stacks.tsx
+++ b/apps/web/src/features/entity/extractors-notification/notification-stacks.tsx
@@ -151,7 +151,7 @@ export function NotificationStackRow(props: {
<Button
onClick={handleMarkAsDone}
tooltip={'Mark done'}
- class="rounded text-ink-muted hover:text-accent hover:bg-accent/10 hidden group-hover/notif:grid p-0 place-items-center size-5"
+ class="text-ink-muted hover:text-accent hover:bg-accent/10 hidden group-hover/notif:grid p-0 place-items-center size-5"
>
<CheckIcon class="size-3" />
</Button>
diff --git a/apps/web/src/features/inbox/AddInboxDialog.tsx b/apps/web/src/features/inbox/AddInboxDialog.tsx
index 3f3734a728..8c62877221 100644
--- a/apps/web/src/features/inbox/AddInboxDialog.tsx
+++ b/apps/web/src/features/inbox/AddInboxDialog.tsx
@@ -60,7 +60,7 @@ export function AddInboxDialog() {
</Dialog.Description>
<div class="pt-3 justify-end items-center gap-3 inline-flex">
<Button
- variant="outline"
+ variant="ghost"
depth={3}
disabled={pending()}
onClick={() => setIsOpen(false)}
@@ -68,7 +68,7 @@ export function AddInboxDialog() {
Cancel
</Button>
<Button
- variant="accent"
+ variant="strong"
depth={3}
disabled={pending()}
onClick={handleConfirm}
diff --git a/apps/web/src/features/inbox/ShareInboxConflictDialog.tsx b/apps/web/src/features/inbox/ShareInboxConflictDialog.tsx
index d9ba867d34..b52149f659 100644
--- a/apps/web/src/features/inbox/ShareInboxConflictDialog.tsx
+++ b/apps/web/src/features/inbox/ShareInboxConflictDialog.tsx
@@ -38,14 +38,10 @@ export function ShareInboxConflictDialog(props: {
it so you both manage one inbox instead of syncing a duplicate copy.
</Dialog.Description>
<div class="pt-3 justify-end items-center gap-3 inline-flex">
- <Button
- variant="outline"
- depth={3}
- onClick={() => props.onCancel()}
- >
+ <Button variant="ghost" depth={3} onClick={() => props.onCancel()}>
Cancel
</Button>
- <Button variant="accent" depth={3} onClick={() => props.onShare()}>
+ <Button variant="strong" depth={3} onClick={() => props.onShare()}>
Share inbox
</Button>
</div>
diff --git a/apps/web/src/features/meetings/components/meeting-call-heading.tsx b/apps/web/src/features/meetings/components/meeting-call-heading.tsx
index 37d8bfe165..5c6aac1010 100644
--- a/apps/web/src/features/meetings/components/meeting-call-heading.tsx
+++ b/apps/web/src/features/meetings/components/meeting-call-heading.tsx
@@ -102,6 +102,7 @@ export function MeetingCallHeading(props: {
{saving() ? 'Saving…' : 'Save'}
</Button>
<Button
+ variant="ghost"
type="button"
disabled={saving()}
onClick={() => setEditing(false)}
diff --git a/apps/web/src/features/meetings/manage-meetings-dialog.tsx b/apps/web/src/features/meetings/manage-meetings-dialog.tsx
index 09727138ee..ef15cd7d75 100644
--- a/apps/web/src/features/meetings/manage-meetings-dialog.tsx
+++ b/apps/web/src/features/meetings/manage-meetings-dialog.tsx
@@ -106,7 +106,7 @@ export function ManageMeetingsDialog(props: { onClose: () => void }) {
</Switch>
</div>
<div class="flex justify-end pt-4">
- <Button variant="ghost" onClick={props.onClose}>
+ <Button variant="strong" onClick={props.onClose}>
Done
</Button>
</div>
diff --git a/apps/web/src/features/next-soup/soup-view/NewCallButton.tsx b/apps/web/src/features/next-soup/soup-view/NewCallButton.tsx
index 5b70b0357c..454c368237 100644
--- a/apps/web/src/features/next-soup/soup-view/NewCallButton.tsx
+++ b/apps/web/src/features/next-soup/soup-view/NewCallButton.tsx
@@ -114,7 +114,7 @@ export function NewCallButton() {
/>
<div class="flex justify-end">
<Button
- variant="outline"
+ variant="strong"
size="sm"
disabled={isSubmitting()}
onClick={handleStartCall}
diff --git a/apps/web/src/features/next-soup/soup-view/filters-bar/soup-active-filters-bar.tsx b/apps/web/src/features/next-soup/soup-view/filters-bar/soup-active-filters-bar.tsx
index b800e49339..8dd5a3ad21 100644
--- a/apps/web/src/features/next-soup/soup-view/filters-bar/soup-active-filters-bar.tsx
+++ b/apps/web/src/features/next-soup/soup-view/filters-bar/soup-active-filters-bar.tsx
@@ -23,7 +23,7 @@ const AddFilterButton = () => (
variant="ghost"
size="icon-sm"
tooltip="Add filters"
- class="p-1 rounded-full"
+ class="p-1"
>
<Plus class="size-3" />
</Dropdown.Trigger>
@@ -54,7 +54,7 @@ export function SoupActiveFiltersBar(props: SoupActiveFiltersBarProps) {
onClick={() => props.onClearAll()}
variant="outline"
size="sm"
- class="h-7 rounded-md"
+ class="h-7"
tooltip="Clear active filters"
>
<XIcon />
diff --git a/apps/web/src/features/next-soup/soup-view/search-ask-ai-button.tsx b/apps/web/src/features/next-soup/soup-view/search-ask-ai-button.tsx
index 3fed1a423a..dbfd84003c 100644
--- a/apps/web/src/features/next-soup/soup-view/search-ask-ai-button.tsx
+++ b/apps/web/src/features/next-soup/soup-view/search-ask-ai-button.tsx
@@ -48,7 +48,7 @@ export function SearchAskAiButton() {
size="sm"
depth={2}
tooltip="Ask AI"
- class="shrink-0 h-7 touch:h-9 gap-1.5 rounded-lg px-2"
+ class="shrink-0 h-7 touch:h-9 gap-1.5 px-2"
disabled={isAsking()}
onClick={askAi}
>
diff --git a/apps/web/src/features/next-soup/soup-view/soup-view-create-button.tsx b/apps/web/src/features/next-soup/soup-view/soup-view-create-button.tsx
index 4126f31d16..177711e059 100644
--- a/apps/web/src/features/next-soup/soup-view/soup-view-create-button.tsx
+++ b/apps/web/src/features/next-soup/soup-view/soup-view-create-button.tsx
@@ -192,7 +192,7 @@ export const SoupViewCreateButton = () => {
<Button
variant="accent"
class={cn(
- 'border-0 rounded-full px-3 py-2 pl-1 font-semibold',
+ 'border-0 px-3 py-2 pl-1 font-semibold',
props.hideLabel && 'pr-1'
)}
size="sm"
@@ -210,7 +210,7 @@ export const SoupViewCreateButton = () => {
<Dropdown.Trigger
variant="accent"
class={cn(
- 'border-0 rounded-full px-3 py-2 pl-1 font-semibold',
+ 'border-0 px-3 py-2 pl-1 font-semibold',
props.hideLabel && 'pr-1'
)}
>
diff --git a/apps/web/src/features/next-soup/soup-view/soup-view.tsx b/apps/web/src/features/next-soup/soup-view/soup-view.tsx
index 93a3516925..18f98dfce2 100644
--- a/apps/web/src/features/next-soup/soup-view/soup-view.tsx
+++ b/apps/web/src/features/next-soup/soup-view/soup-view.tsx
@@ -511,7 +511,7 @@ export const SoupView = (props: SoupViewProps) => {
<Button
size="icon-md"
variant="ghost"
- class="p-0.5 rounded-sm text-ink-extra-muted hover:text-ink-muted @max-[380px]/split-header:hidden"
+ class="p-0.5 text-ink-extra-muted hover:text-ink-muted @max-[380px]/split-header:hidden"
label="View documentation"
onClick={() => openExternalUrl(url())}
>
@@ -612,7 +612,7 @@ export const SoupView = (props: SoupViewProps) => {
<Button
size="icon-md"
variant="outline"
- class="p-1 size-7 rounded-lg ml-2"
+ class="p-1 size-7 ml-2"
onClick={() => setNarrowSearchExpanded(true)}
depth={2}
>
diff --git a/apps/web/src/features/next-soup/soup-view/views/companies/CompanyViewsMenu.tsx b/apps/web/src/features/next-soup/soup-view/views/companies/CompanyViewsMenu.tsx
index 2916df4d87..7796a502c6 100644
--- a/apps/web/src/features/next-soup/soup-view/views/companies/CompanyViewsMenu.tsx
+++ b/apps/web/src/features/next-soup/soup-view/views/companies/CompanyViewsMenu.tsx
@@ -66,7 +66,7 @@ const SavedViewRow = (props: {
size="icon-sm"
label={props.isDefault ? 'Remove default' : 'Set as default'}
class={cn(
- 'size-6 shrink-0 rounded-md p-1 text-ink-muted',
+ 'size-6 shrink-0 p-1 text-ink-muted',
!props.isDefault &&
'opacity-0 group-hover:opacity-100 focus-visible:opacity-100'
)}
@@ -82,7 +82,7 @@ const SavedViewRow = (props: {
variant="ghost"
size="icon-sm"
label="Copy link"
- class="size-6 shrink-0 rounded-md p-1 text-ink-muted opacity-0 group-hover:opacity-100 focus-visible:opacity-100"
+ class="size-6 shrink-0 p-1 text-ink-muted opacity-0 group-hover:opacity-100 focus-visible:opacity-100"
onClick={props.onCopyLink}
>
<LinkIcon class="size-3.5" />
@@ -95,7 +95,7 @@ const SavedViewRow = (props: {
variant="ghost"
size="icon-sm"
label="Delete view"
- class="size-6 shrink-0 rounded-md p-1 text-ink-muted opacity-0 group-hover:opacity-100 focus-visible:opacity-100"
+ class="size-6 shrink-0 p-1 text-ink-muted opacity-0 group-hover:opacity-100 focus-visible:opacity-100"
onClick={() => onDelete()()}
>
<TrashIcon class="size-3.5" />
diff --git a/apps/web/src/features/notifications/components/SnoozePicker.tsx b/apps/web/src/features/notifications/components/SnoozePicker.tsx
index 2f73a03cf8..daf6bafadb 100644
--- a/apps/web/src/features/notifications/components/SnoozePicker.tsx
+++ b/apps/web/src/features/notifications/components/SnoozePicker.tsx
@@ -1,4 +1,5 @@
import {
+ Button,
CommandMenuEmptyState,
CommandMenuList,
CommandMenuSearchInput,
@@ -117,13 +118,14 @@ export function SnoozePicker(
<span class="hidden mobile:inline">Tap a time to snooze</span>
</Show>
</span>
- <button
+ <Button
+ variant="ghost"
type="button"
class="ml-auto shrink-0 text-ink-muted hover:text-ink mobile:min-h-11 mobile:px-2"
onClick={() => props.onOpenChange(false)}
>
Cancel
- </button>
+ </Button>
</CommandMenuShell.Footer>
</CommandMenuShell>
</Dialog>
diff --git a/apps/web/src/features/onboarding/InteractiveOnboardingModal.tsx b/apps/web/src/features/onboarding/InteractiveOnboardingModal.tsx
index a2f2e1eaed..c32010d343 100644
--- a/apps/web/src/features/onboarding/InteractiveOnboardingModal.tsx
+++ b/apps/web/src/features/onboarding/InteractiveOnboardingModal.tsx
@@ -86,7 +86,7 @@ function StartScreen(props: { onStart: () => void; onSkip: () => void }) {
</p>
</div>
<div class="w-full max-w-xs flex flex-col gap-2 pt-2">
- <Button variant="cta" size="xl" onClick={props.onSkip}>
+ <Button variant="strong" size="xl" onClick={props.onSkip}>
Continue
<ArrowRightIcon />
</Button>
@@ -101,7 +101,7 @@ function StartScreen(props: { onStart: () => void; onSkip: () => void }) {
</p>
</div>
<div class="w-full max-w-xs flex flex-col gap-2 pt-2">
- <Button variant="cta" size="xl" onClick={props.onStart}>
+ <Button variant="strong" size="xl" onClick={props.onStart}>
Play tutorial
<ArrowRightIcon />
</Button>
@@ -127,7 +127,7 @@ function EndScreen(props: { onFinish: () => void; onReplay: () => void }) {
</p>
</div>
<div class="w-full max-w-xs flex flex-col gap-2 pt-2">
- <Button variant="cta" size="xl" onClick={props.onFinish}>
+ <Button variant="strong" size="xl" onClick={props.onFinish}>
Let’s go
<ArrowRightIcon />
</Button>
@@ -167,7 +167,7 @@ function ModalFooter(props: { lesson: LessonState }) {
</Button>
<Button
ref={onboarding.setContinueButtonRef}
- variant="cta"
+ variant="strong"
size="xl"
onClick={onboarding.handleContinue}
disabled={!onboarding.readyToContinue()}
diff --git a/apps/web/src/features/paywall/AiUsageLimitDialog.tsx b/apps/web/src/features/paywall/AiUsageLimitDialog.tsx
index 962daae2d6..6839569f5c 100644
--- a/apps/web/src/features/paywall/AiUsageLimitDialog.tsx
+++ b/apps/web/src/features/paywall/AiUsageLimitDialog.tsx
@@ -83,7 +83,7 @@ export function AiUsageLimitDialog() {
<Button
variant="ghost"
depth={3}
- class="rounded-full px-3 py-1.5"
+ class="px-3 py-1.5"
onClick={() => {
hideUsageLimit();
navigate('/app/settings/billing');
@@ -95,7 +95,7 @@ export function AiUsageLimitDialog() {
<Button
variant="ghost"
depth={3}
- class="rounded-full px-3 py-1.5"
+ class="px-3 py-1.5"
onClick={hideUsageLimit}
>
Dismiss
@@ -110,7 +110,7 @@ export function AiUsageLimitDialog() {
}
>
<Button
- variant="cta"
+ variant="strong"
class="rounded-full px-3 py-1.5"
disabled={changePlan.isPending}
onClick={() => void upgradeToMax()}
diff --git a/apps/web/src/features/paywall/PaywallComponent.tsx b/apps/web/src/features/paywall/PaywallComponent.tsx
index fd01137b0c..1e75df18b2 100644
--- a/apps/web/src/features/paywall/PaywallComponent.tsx
+++ b/apps/web/src/features/paywall/PaywallComponent.tsx
@@ -160,7 +160,7 @@ const PaywallComponent = (props: PaywallProps) => {
<Button
variant="ghost"
depth={3}
- class="rounded-full sm:w-auto px-3 py-1.5"
+ class="sm:w-auto px-3 py-1.5"
onClick={props.cb}
>
Dismiss
@@ -170,7 +170,7 @@ const PaywallComponent = (props: PaywallProps) => {
fallback={
<Button
variant={hasPaid() ? 'outline' : 'cta'}
- class="rounded-full sm:w-auto px-3 py-1.5"
+ class="sm:w-auto px-3 py-1.5"
onClick={handleContinue}
>
{ctaLabel()}
@@ -184,7 +184,7 @@ const PaywallComponent = (props: PaywallProps) => {
<span>
<Button
variant={hasPaid() ? 'outline' : 'cta'}
- class="rounded-full sm:w-auto px-3 py-1.5"
+ class="sm:w-auto px-3 py-1.5"
disabled
>
{ctaLabel()}
diff --git a/apps/web/src/features/property/component/modal/CreatePropertyModal.tsx b/apps/web/src/features/property/component/modal/CreatePropertyModal.tsx
index 2cb135f0bd..b8b26d9381 100644
--- a/apps/web/src/features/property/component/modal/CreatePropertyModal.tsx
+++ b/apps/web/src/features/property/component/modal/CreatePropertyModal.tsx
@@ -151,7 +151,7 @@ const OptionInput: Component<OptionInputProps<string | number>> = (props) => {
size="icon-sm"
label="Remove option"
onClick={() => props.onRemove(option().id)}
- class="shrink-0 rounded-lg text-failure-ink"
+ class="shrink-0 text-failure-ink"
>
<XIcon />
</Button>
@@ -759,16 +759,15 @@ export const CreatePropertyModal: Component<CreatePropertyModalProps> = (
<Button
variant="ghost"
size="sm"
- class="rounded-lg"
onClick={close}
disabled={pending()}
>
Cancel
</Button>
<Button
- variant={canSubmit() ? 'accent' : 'ghost'}
+ variant="strong"
depth={3}
- class={cn('gap-3 rounded-lg border-0', pending() && 'gap-1.5')}
+ class={cn('gap-3 ', pending() && 'gap-1.5')}
onClick={handleCreateProperty}
disabled={!canSubmit()}
>
diff --git a/apps/web/src/features/property/side-panel/properties/EntityPropertiesSection.tsx b/apps/web/src/features/property/side-panel/properties/EntityPropertiesSection.tsx
index e99480140c..940a6aff55 100644
--- a/apps/web/src/features/property/side-panel/properties/EntityPropertiesSection.tsx
+++ b/apps/web/src/features/property/side-panel/properties/EntityPropertiesSection.tsx
@@ -393,7 +393,7 @@ function AddPinnedPropertyButton() {
size="sm"
noTouchResize
onClick={openPropertySelector}
- class="m-px rounded-full"
+ class="m-px"
>
<Plus class="size-3" />
<span>Add property</span>
@@ -798,7 +798,6 @@ function NonUserEntityValue(props: { property: Property }) {
variant="ghost"
depth={0}
size="icon-sm"
- class="rounded-full"
aria-label={`Add ${props.property.displayName}`}
onClick={(event) => {
event.stopPropagation();
@@ -880,7 +879,7 @@ function EntityCollectionPropertyBody(props: {
variant="ghost"
depth={0}
size="icon-sm"
- class="size-5 rounded-full"
+ class="size-5"
aria-label={`Add ${props.property.displayName}`}
onClick={(event) => {
event.stopPropagation();
diff --git a/apps/web/src/features/property/tags/TagEditorDialog.tsx b/apps/web/src/features/property/tags/TagEditorDialog.tsx
index 68804303d4..77ce620a53 100644
--- a/apps/web/src/features/property/tags/TagEditorDialog.tsx
+++ b/apps/web/src/features/property/tags/TagEditorDialog.tsx
@@ -270,7 +270,6 @@ export function TagEditorDialog(props: {
<Button
variant="danger"
size="sm"
- class="rounded-lg"
disabled={pending()}
onClick={remove}
>
@@ -282,16 +281,15 @@ export function TagEditorDialog(props: {
<Button
variant="ghost"
size="sm"
- class="rounded-lg"
disabled={pending()}
onClick={close}
>
Cancel
</Button>
<Button
- variant={canSubmit() ? 'accent' : 'ghost'}
+ variant="strong"
depth={3}
- class="gap-3 rounded-lg border-0"
+ class="gap-3 "
disabled={!canSubmit() || pending()}
onClick={submit}
>
diff --git a/apps/web/src/features/settings/Account.tsx b/apps/web/src/features/settings/Account.tsx
index 89097a5407..a665d74d9e 100644
--- a/apps/web/src/features/settings/Account.tsx
+++ b/apps/web/src/features/settings/Account.tsx
@@ -233,7 +233,7 @@ function ProfilePictureRow(props: { userId: string }) {
as="div"
tabindex="0"
aria-label="Edit profile picture"
- class="group block size-full rounded-full outline-none focus-visible:ring-2 focus-visible:ring-accent"
+ class="group block size-full outline-none focus-visible:ring-2 focus-visible:ring-accent"
>
<div class="size-full overflow-hidden rounded-full">
<UserIcon
@@ -286,7 +286,7 @@ function ProfilePictureRow(props: { userId: string }) {
</Dialog.Description>
<div class="pt-3 justify-end items-center gap-3 inline-flex">
<Button
- variant="outline"
+ variant="ghost"
depth={3}
disabled={isRemoving()}
onClick={() => setShowRemoveConfirmModal(false)}
@@ -294,7 +294,7 @@ function ProfilePictureRow(props: { userId: string }) {
Cancel
</Button>
<Button
- variant="danger"
+ variant="strong"
depth={3}
disabled={isRemoving()}
onClick={handleRemove}
@@ -571,7 +571,7 @@ export function Account() {
</div>
<div class="pt-3 justify-end items-center gap-3 inline-flex">
<Button
- variant="outline"
+ variant="ghost"
depth={3}
onClick={() => {
setShowDeleteModal(false);
@@ -581,7 +581,7 @@ export function Account() {
Cancel
</Button>
<Button
- variant="danger"
+ variant="strong"
depth={3}
onClick={() => {
setShowDeleteConfirmModal(true);
@@ -616,7 +616,7 @@ export function Account() {
</Dialog.Description>
<div class="pt-3 justify-end items-center gap-3 inline-flex">
<Button
- variant="outline"
+ variant="ghost"
depth={3}
disabled={isDeleting()}
onClick={() => {
@@ -627,7 +627,7 @@ export function Account() {
Cancel
</Button>
<Button
- variant="danger"
+ variant="strong"
depth={3}
disabled={isDeleting()}
onClick={deleteAccountHandler}
diff --git a/apps/web/src/features/settings/Agents.tsx b/apps/web/src/features/settings/Agents.tsx
index bebb4d4bcd..d867e4a55f 100644
--- a/apps/web/src/features/settings/Agents.tsx
+++ b/apps/web/src/features/settings/Agents.tsx
@@ -534,7 +534,7 @@ function AgentDeleteDialog(props: {
</Button>
<Button
type="button"
- variant="danger"
+ variant="strong"
size="sm"
disabled={props.pending}
onClick={props.onConfirm}
@@ -1188,7 +1188,7 @@ function AgentEditorPage(props: {
<Button
type="submit"
form="agent-form"
- variant="cta"
+ variant="strong"
size="sm"
disabled={!canCreate()}
>
diff --git a/apps/web/src/features/settings/AiUsage.tsx b/apps/web/src/features/settings/AiUsage.tsx
index 4b331d29ed..495d002bfc 100644
--- a/apps/web/src/features/settings/AiUsage.tsx
+++ b/apps/web/src/features/settings/AiUsage.tsx
@@ -212,7 +212,6 @@ export function AiUsageControls(props: {
variant="outline"
size="sm"
depth={2}
- class="rounded-full"
disabled={busy()}
onClick={() => void buyCredits(cents)}
>
@@ -255,7 +254,7 @@ export function AiUsageControls(props: {
variant={selectedLimit() === cents ? 'accent' : 'outline'}
size="xs"
depth={2}
- class="rounded-full px-2"
+ class="px-2"
disabled={busy()}
onClick={() => {
setPendingLimit(cents);
diff --git a/apps/web/src/features/settings/ApiKeys.tsx b/apps/web/src/features/settings/ApiKeys.tsx
index 3943370ffc..f4450533dc 100644
--- a/apps/web/src/features/settings/ApiKeys.tsx
+++ b/apps/web/src/features/settings/ApiKeys.tsx
@@ -317,7 +317,7 @@ function CreateApiKeyDialog(props: {
Cancel
</Button>
<Button
- variant="cta"
+ variant="strong"
size="sm"
disabled={props.pending}
onClick={() => void submit()}
@@ -340,7 +340,7 @@ function CreateApiKeyDialog(props: {
<code class="font-mono">{USER_API_KEY_HEADER}</code>.
</div>
<div class="flex justify-end border-t border-edge-muted pt-4">
- <Button variant="cta" size="sm" onClick={close}>
+ <Button variant="strong" size="sm" onClick={close}>
Done
</Button>
</div>
@@ -387,15 +387,13 @@ function ConfirmDialog(props: {
<div class="flex justify-end gap-1 pt-2">
<Button
variant="ghost"
- class="rounded-xs"
disabled={props.pending}
onClick={props.onClose}
>
Cancel
</Button>
<Button
- variant={props.danger ? 'danger' : 'accent'}
- class="rounded-xs"
+ variant="strong"
disabled={props.pending}
onClick={props.onConfirm}
>
diff --git a/apps/web/src/features/settings/Billing.tsx b/apps/web/src/features/settings/Billing.tsx
index cfea265afa..41286ab932 100644
--- a/apps/web/src/features/settings/Billing.tsx
+++ b/apps/web/src/features/settings/Billing.tsx
@@ -236,7 +236,7 @@ export const Billing = () => {
when={canManageSubscription() && hasPaid() && isOwnerOrSolo()}
>
<Button
- class="ml-auto rounded-full bg-active"
+ class="ml-auto bg-active"
size="sm"
depth={2}
variant="outline"
@@ -297,7 +297,7 @@ export const Billing = () => {
<PlanPrice tier="premium" />
</div>
<Button
- class="ml-auto rounded-full py-1.5 px-3"
+ class="ml-auto py-1.5 px-3"
depth={2}
variant="cta"
onClick={() => void handleCheckout('premium')}
diff --git a/apps/web/src/features/settings/Crm.tsx b/apps/web/src/features/settings/Crm.tsx
index a092219b50..822018eea3 100644
--- a/apps/web/src/features/settings/Crm.tsx
+++ b/apps/web/src/features/settings/Crm.tsx
@@ -90,15 +90,13 @@ function ConfirmDialog(props: {
<div class="flex justify-end gap-1 pt-2">
<Button
variant="ghost"
- class="rounded-xs"
disabled={props.pending}
onClick={props.onClose}
>
Cancel
</Button>
<Button
- variant="danger"
- class="rounded-xs"
+ variant="strong"
disabled={props.pending || props.confirmDisabled}
onClick={props.onConfirm}
>
@@ -202,12 +200,7 @@ function CrmEnablementSection() {
fallback={
<Tooltip label="Only team admins can change CRM settings.">
<span>
- <Button
- variant="outline"
- size="sm"
- class="rounded-xs"
- disabled
- >
+ <Button variant="outline" size="sm" disabled>
Admins only
</Button>
</span>
@@ -221,7 +214,6 @@ function CrmEnablementSection() {
<Button
variant={crmEnabled() ? 'danger' : 'accent'}
size="sm"
- class="rounded-xs"
disabled={patchCrmMutation.isPending}
onClick={() => handleToggle(!crmEnabled())}
>
@@ -253,7 +245,6 @@ function CrmEnablementSection() {
<div class="flex justify-end gap-1 pt-2">
<Button
variant="ghost"
- class="rounded-xs"
disabled={patchCrmMutation.isPending}
onClick={() => setShowEnableModal(false)}
>
@@ -261,7 +252,6 @@ function CrmEnablementSection() {
</Button>
<Button
variant="outline"
- class="rounded-xs"
disabled={patchCrmMutation.isPending}
onClick={() => handleEnable(false)}
>
@@ -275,8 +265,7 @@ function CrmEnablementSection() {
</Show>
</Button>
<Button
- variant="accent"
- class="rounded-xs"
+ variant="strong"
disabled={patchCrmMutation.isPending}
onClick={() => handleEnable(true)}
>
@@ -436,7 +425,7 @@ function StageEditorRow(props: {
aria-label={`Reorder ${props.label}. Press the up or down arrow keys to move it.`}
variant="ghost"
size="icon-sm"
- class="rounded-xs -ml-1.5 cursor-grab touch-none active:cursor-grabbing"
+ class="-ml-1.5 cursor-grab touch-none active:cursor-grabbing"
onKeyDown={handleKeyDown}
>
<DotsSixVerticalIcon class="size-4" />
@@ -465,7 +454,7 @@ function StageEditorRow(props: {
aria-label="Save stage name"
variant="accent"
size="icon-sm"
- class="rounded-xs shrink-0"
+ class="shrink-0"
disabled={props.pending || !hasChanged()}
onClick={commit}
>
@@ -479,7 +468,7 @@ function StageEditorRow(props: {
aria-label="Cancel rename"
variant="ghost"
size="icon-sm"
- class="rounded-xs shrink-0"
+ class="shrink-0"
disabled={props.pending}
onClick={cancel}
>
@@ -494,7 +483,6 @@ function StageEditorRow(props: {
aria-label={`Move ${props.label} up`}
variant="ghost"
size="icon-sm"
- class="rounded-xs"
disabled={!canMove() || isFirst()}
onClick={() => props.onMove(-1)}
>
@@ -506,7 +494,6 @@ function StageEditorRow(props: {
aria-label={`Move ${props.label} down`}
variant="ghost"
size="icon-sm"
- class="rounded-xs"
disabled={!canMove() || isLast()}
onClick={() => props.onMove(1)}
>
@@ -523,7 +510,6 @@ function StageEditorRow(props: {
aria-label={`Delete ${props.label}`}
variant="ghost"
size="icon-sm"
- class="rounded-xs"
disabled={props.disabled || props.pending || isLastStage()}
onClick={() => props.onDelete()}
>
@@ -718,7 +704,6 @@ function DealStagesSection() {
<Button
variant="outline"
size="sm"
- class="rounded-xs"
disabled={blocked()}
onClick={() => setShowResetModal(true)}
>
@@ -766,7 +751,7 @@ function DealStagesSection() {
<Button
variant="outline"
size="sm"
- class="rounded-xs shrink-0"
+ class="shrink-0"
disabled={busy()}
onClick={handleCustomize}
>
@@ -815,7 +800,7 @@ function DealStagesSection() {
<Button
variant="outline"
size="sm"
- class="rounded-xs shrink-0"
+ class="shrink-0"
disabled={newStageName().trim() === '' || busy()}
onClick={handleAddStage}
>
diff --git a/apps/web/src/features/settings/Email.tsx b/apps/web/src/features/settings/Email.tsx
index 4dd3775de7..04a59300fa 100644
--- a/apps/web/src/features/settings/Email.tsx
+++ b/apps/web/src/features/settings/Email.tsx
@@ -297,13 +297,13 @@ export function EmailCard() {
</Dialog.Description>
<div class="pt-3 justify-end items-center gap-3 inline-flex">
<Button
- variant="outline"
+ variant="ghost"
depth={3}
onClick={() => setRemoveTarget(null)}
>
Cancel
</Button>
- <Button variant="danger" depth={3} onClick={handleRemoveInbox}>
+ <Button variant="strong" depth={3} onClick={handleRemoveInbox}>
Remove
</Button>
</div>
diff --git a/apps/web/src/features/settings/Harness.tsx b/apps/web/src/features/settings/Harness.tsx
index b2b650452d..61ee284769 100644
--- a/apps/web/src/features/settings/Harness.tsx
+++ b/apps/web/src/features/settings/Harness.tsx
@@ -531,7 +531,7 @@ function HarnessRemoveDialog(props: {
</Button>
<Button
type="button"
- variant="danger"
+ variant="strong"
size="sm"
disabled={props.pending}
onClick={props.onConfirm}
diff --git a/apps/web/src/features/settings/Integrations.tsx b/apps/web/src/features/settings/Integrations.tsx
index adc3d30996..9deccacad0 100644
--- a/apps/web/src/features/settings/Integrations.tsx
+++ b/apps/web/src/features/settings/Integrations.tsx
@@ -134,7 +134,7 @@ function AddServerForm(props: {
<div class="flex justify-end gap-2 pt-1">
<Button
- variant="outline"
+ variant="ghost"
size="sm"
depth={3}
onClick={() => {
@@ -145,7 +145,7 @@ function AddServerForm(props: {
Cancel
</Button>
<Button
- variant="accent"
+ variant="strong"
size="sm"
depth={3}
disabled={
@@ -311,7 +311,7 @@ function ServerRow(props: { server: ServerResponse }) {
fallback={
<div class="flex items-center gap-1">
<Button
- variant="danger"
+ variant="strong"
size="sm"
depth={3}
disabled={deleteMutation.isPending}
@@ -320,7 +320,7 @@ function ServerRow(props: { server: ServerResponse }) {
{deleteMutation.isPending ? 'Removing...' : 'Confirm'}
</Button>
<Button
- variant="outline"
+ variant="ghost"
size="sm"
depth={3}
onClick={() => setConfirmDelete(false)}
diff --git a/apps/web/src/features/settings/MobileSettingsSheet.tsx b/apps/web/src/features/settings/MobileSettingsSheet.tsx
index df45bce51e..8140362a04 100644
--- a/apps/web/src/features/settings/MobileSettingsSheet.tsx
+++ b/apps/web/src/features/settings/MobileSettingsSheet.tsx
@@ -75,7 +75,7 @@ export function MobileSettingsSheet(props: MobileSettingsSheetProps) {
variant="ghost"
size="icon-sm"
aria-label="Back to settings"
- class="size-11 rounded-full bg-ink/6"
+ class="size-11 bg-ink/6"
onClick={() => navigate()}
>
<CaretLeftIcon class="size-5" />
diff --git a/apps/web/src/features/settings/Settings.tsx b/apps/web/src/features/settings/Settings.tsx
index 43deb43713..8c399188b2 100644
--- a/apps/web/src/features/settings/Settings.tsx
+++ b/apps/web/src/features/settings/Settings.tsx
@@ -243,7 +243,7 @@ export function SettingsPanel(props: SettingsPanelProps) {
const moveToSplitButton = () => (
<Button
- class="p-1 rounded-md"
+ class="p-1"
label="Move to split"
onClick={() => moveSettingsToSplit()}
>
@@ -306,7 +306,7 @@ export function SettingsPanel(props: SettingsPanelProps) {
<Show when={!isMobile()}>
<SplitHeaderRight>
<Button
- class="p-1 rounded-lg"
+ class="p-1"
label="Open fullscreen"
onClick={() => moveSettingsToSolo()}
>
diff --git a/apps/web/src/features/settings/Tags.tsx b/apps/web/src/features/settings/Tags.tsx
index 0c29677e6f..93d516cbf0 100644
--- a/apps/web/src/features/settings/Tags.tsx
+++ b/apps/web/src/features/settings/Tags.tsx
@@ -86,7 +86,6 @@ function TagListSection(props: {
<Button
variant="outline"
size="sm"
- class="rounded-xs"
onClick={() => props.onCreate(props.scope)}
>
<PlusIcon class="size-4" />
@@ -205,15 +204,13 @@ function ConfirmDialog(props: {
<div class="flex justify-end gap-1 pt-2">
<Button
variant="ghost"
- class="rounded-xs"
disabled={props.pending}
onClick={props.onClose}
>
Cancel
</Button>
<Button
- variant="accent"
- class="rounded-xs"
+ variant="strong"
disabled={props.pending}
onClick={props.onConfirm}
>
diff --git a/apps/web/src/features/settings/Team.tsx b/apps/web/src/features/settings/Team.tsx
index df38d86496..83efb13143 100644
--- a/apps/web/src/features/settings/Team.tsx
+++ b/apps/web/src/features/settings/Team.tsx
@@ -286,7 +286,7 @@ function InviteEntryRow(props: {
<Button
variant="outline"
size="icon-sm"
- class="rounded-xs shrink-0 focus:border-accent"
+ class="shrink-0 focus:border-accent"
tabIndex={0}
onClick={props.onRemove}
>
@@ -403,7 +403,7 @@ function InviteEmailsInput(props: {
</Show>
<Button
variant="outline"
- class="rounded-xs w-full justify-center focus:border-accent"
+ class="w-full justify-center focus:border-accent"
tabIndex={0}
disabled={!canAddRow()}
onClick={addRow}
@@ -500,7 +500,7 @@ function MemberRow(props: {
variant="ghost"
size="sm"
disabled
- class="rounded-xs opacity-50 cursor-not-allowed"
+ class="opacity-50 cursor-not-allowed"
>
<TrashIcon class="size-4" />
</Button>
@@ -619,7 +619,7 @@ function UserInviteRow(props: {
<div class="flex items-center gap-2 shrink-0">
<Button
variant="outline"
- class="px-2 py-1 rounded-xs"
+ class="px-2 py-1"
disabled={props.isAccepting || props.isDeclining}
onClick={props.onDecline}
>
@@ -629,7 +629,7 @@ function UserInviteRow(props: {
</Button>
<Button
variant="accent"
- class="px-2 py-1 rounded-xs"
+ class="px-2 py-1"
disabled={props.isAccepting || props.isDeclining}
onClick={props.onAccept}
>
@@ -816,15 +816,13 @@ function CreateTeamDialog(props: { open: boolean; onClose: () => void }) {
<div class="flex justify-end gap-1 pt-2">
<Button
variant="ghost"
- class="rounded-xs"
disabled={createTeamMutation.isPending}
onClick={props.onClose}
>
Cancel
</Button>
<Button
- variant="accent"
- class="rounded-xs"
+ variant="strong"
disabled={
createTeamMutation.isPending ||
!!teamNameError() ||
@@ -859,11 +857,7 @@ function EmptyTeamState() {
Create a team to collaborate with others and manage access
together.
</p>
- <Button
- variant="accent"
- class="rounded-xs"
- onClick={() => setShowCreateModal(true)}
- >
+ <Button variant="accent" onClick={() => setShowCreateModal(true)}>
<PlusIcon class="size-4" />
Create Team
</Button>
@@ -915,7 +909,6 @@ function SaveCancelButtons(props: {
<Button
variant="accent"
size="icon-sm"
- class="rounded-xs"
disabled={props.saveDisabled}
onClick={props.onSave}
>
@@ -928,7 +921,6 @@ function SaveCancelButtons(props: {
<Button
variant="ghost"
size="icon-sm"
- class="rounded-xs"
disabled={props.pending}
onClick={props.onCancel}
>
@@ -1306,7 +1298,6 @@ function TeamManagement(props: {
<Button
variant="danger"
size="sm"
- class="rounded-xs"
onClick={() => setShowDeleteTeamModal(true)}
>
<TrashIcon class="size-4" />
@@ -1434,7 +1425,6 @@ function TeamManagement(props: {
<Button
variant="outline"
size="sm"
- class="rounded-xs"
onClick={handleCopyGithubAutolinkUrl}
>
<CopyIcon class="size-4" />
@@ -1538,7 +1528,6 @@ function TeamManagement(props: {
<Button
variant="outline"
size="sm"
- class="rounded-xs"
onClick={() => setShowInviteModal(true)}
>
<PlusIcon class="size-4" />
@@ -1694,15 +1683,13 @@ function TeamManagement(props: {
<div class="flex justify-end gap-1 pt-2">
<Button
variant="ghost"
- class="rounded-xs"
disabled={deleteTeamMutation.isPending}
onClick={() => handleDeleteTeamModalClose(false)}
>
Cancel
</Button>
<Button
- variant="danger"
- class="rounded-xs"
+ variant="strong"
disabled={!canDeleteTeam() || deleteTeamMutation.isPending}
onClick={handleDeleteTeam}
>
@@ -1774,15 +1761,13 @@ function TeamManagement(props: {
<div class="flex justify-end gap-1 pt-2">
<Button
variant="ghost"
- class="rounded-xs"
disabled={inviteToTeamMutation.isPending}
onClick={() => handleInviteModalClose(false)}
>
Cancel
</Button>
<Button
- variant={hasValidInvites() ? 'accent' : 'ghost'}
- class="rounded-xs"
+ variant="strong"
disabled={!hasValidInvites() || inviteToTeamMutation.isPending}
onClick={handleInvite}
>
diff --git a/apps/web/src/features/settings/connections/add-custom-mcp-dialog.tsx b/apps/web/src/features/settings/connections/add-custom-mcp-dialog.tsx
index b8cf72a702..ea24c83c8e 100644
--- a/apps/web/src/features/settings/connections/add-custom-mcp-dialog.tsx
+++ b/apps/web/src/features/settings/connections/add-custom-mcp-dialog.tsx
@@ -89,11 +89,11 @@ export function AddCustomMcpDialog(props: {
</div>
<div class="flex justify-end gap-2 pt-1">
- <Button variant="outline" size="sm" depth={3} onClick={close}>
+ <Button variant="ghost" size="sm" depth={3} onClick={close}>
Cancel
</Button>
<Button
- variant="accent"
+ variant="strong"
size="sm"
depth={3}
disabled={
diff --git a/apps/web/src/features/settings/connections/connection-more.tsx b/apps/web/src/features/settings/connections/connection-more.tsx
index be6f435d15..fdb0b88390 100644
--- a/apps/web/src/features/settings/connections/connection-more.tsx
+++ b/apps/web/src/features/settings/connections/connection-more.tsx
@@ -38,7 +38,7 @@ export function ConnectionMore(props: {
<Dropdown>
<Dropdown.Trigger
aria-label="More"
- class="relative inline-flex size-6 items-center justify-center rounded-md border-1 border-edge bg-transparent text-ink-muted outline-none hover:bg-hover hover:text-ink"
+ class="relative inline-flex size-6 items-center justify-center border-1 border-edge bg-transparent text-ink-muted outline-none hover:bg-hover hover:text-ink"
>
<DotsThreeIcon class="size-4" />
</Dropdown.Trigger>
diff --git a/apps/web/src/features/settings/connections/leftover-row.tsx b/apps/web/src/features/settings/connections/leftover-row.tsx
index b1ebeec83d..8ca3903f9d 100644
--- a/apps/web/src/features/settings/connections/leftover-row.tsx
+++ b/apps/web/src/features/settings/connections/leftover-row.tsx
@@ -349,7 +349,7 @@ export function LeftoverRow(props: { leftover: Leftover }) {
</label>
<div class="flex justify-end gap-2">
<Button
- variant="outline"
+ variant="ghost"
size="sm"
depth={3}
onClick={() => setRenaming(false)}
@@ -357,7 +357,7 @@ export function LeftoverRow(props: { leftover: Leftover }) {
Cancel
</Button>
<Button
- variant="accent"
+ variant="strong"
size="sm"
depth={3}
disabled={!nameDraft().trim() || native.update.isPending}
diff --git a/apps/web/src/features/tasks-view/components/task-list/TaskList.tsx b/apps/web/src/features/tasks-view/components/task-list/TaskList.tsx
index 6f27e7857d..7cfed9306b 100644
--- a/apps/web/src/features/tasks-view/components/task-list/TaskList.tsx
+++ b/apps/web/src/features/tasks-view/components/task-list/TaskList.tsx
@@ -429,7 +429,6 @@ export function TaskList(props: TaskListProps) {
<Button
variant="outline"
size="sm"
- class="rounded-lg"
onClick={() => void source.refresh()}
>
Try again
@@ -444,7 +443,6 @@ export function TaskList(props: TaskListProps) {
<Button
variant="outline"
size="sm"
- class="rounded-lg"
disabled={source.isLoadingMore()}
onClick={() => void source.loadMore()}
>
diff --git a/apps/web/src/features/team-invitations/TeamInviteAcceptance.tsx b/apps/web/src/features/team-invitations/TeamInviteAcceptance.tsx
index de4f8440e3..fc143027e2 100644
--- a/apps/web/src/features/team-invitations/TeamInviteAcceptance.tsx
+++ b/apps/web/src/features/team-invitations/TeamInviteAcceptance.tsx
@@ -152,7 +152,7 @@ function NoInviteId() {
<Button
variant="outline"
size="md"
- class="w-full rounded-xs"
+ class="w-full"
onClick={() => navigate('/')}
>
Go to Home
@@ -174,7 +174,7 @@ function UnauthenticatedView(props: { onLogin: () => void }) {
<Button
variant="outline"
size="md"
- class="w-full rounded-xs"
+ class="w-full"
onClick={props.onLogin}
>
Sign In to Continue
@@ -199,7 +199,7 @@ function AlreadyOnTeam(props: { teamName: string }) {
<Button
variant="outline"
size="md"
- class="w-full rounded-xs"
+ class="w-full"
onClick={() => navigate('/')}
>
Go to Home
@@ -220,7 +220,7 @@ function InviteNotFound() {
<Button
variant="outline"
size="md"
- class="w-full rounded-xs"
+ class="w-full"
onClick={() => navigate('/')}
>
Go to Home
@@ -264,7 +264,7 @@ function InviteDetails(props: {
<Button
variant="outline"
size="md"
- class="w-full rounded-xs"
+ class="w-full"
onClick={props.onAccept}
disabled={isDisabled()}
>
@@ -275,7 +275,7 @@ function InviteDetails(props: {
<Button
variant="ghost"
size="md"
- class="w-full rounded-xs"
+ class="w-full"
onClick={props.onDecline}
disabled={isDisabled()}
>
diff --git a/apps/web/src/features/team-invitations/invite-modal.tsx b/apps/web/src/features/team-invitations/invite-modal.tsx
index 256a0f505d..34f75b35b2 100644
--- a/apps/web/src/features/team-invitations/invite-modal.tsx
+++ b/apps/web/src/features/team-invitations/invite-modal.tsx
@@ -98,16 +98,14 @@ export const InviteModal = () => {
</div>
<div class="flex justify-end gap-1 pt-2">
- <Button variant="ghost" class="rounded-xs" onClick={handleClose}>
+ <Button variant="ghost" onClick={handleClose}>
Cancel
</Button>
<Button
onClick={handleSend}
- variant={
- sending() || !parseEmails(value()).length ? 'ghost' : 'accent'
- }
+ variant="strong"
disabled={sending() || !parseEmails(value()).length}
- class="rounded-xs font-semibold"
+ class="font-semibold"
>
{sending() ? 'Sending…' : 'Send Invites'}
</Button>
@@ -132,7 +130,7 @@ export const InviteModal = () => {
onClick={handleCopy}
size="md"
variant="outline"
- class="font-medium rounded-xs border px-2"
+ class="font-medium border px-2"
>
<ClipboardIcon class="size-3" />
{copied() ? 'Copied!' : 'Copy'}
diff --git a/apps/web/src/index.css b/apps/web/src/index.css
index b6302c980e..3af9b4bea0 100644
--- a/apps/web/src/index.css
+++ b/apps/web/src/index.css
@@ -794,8 +794,8 @@ html[data-theme-light='false'] {
islands own their controls' chrome (the compose island's filled send button,
say), so the flattening stops at an island boundary. */
@utility header-actions {
- & [data-button]:not([data-header-island] *) {
- @apply rounded-xl border-0 bg-transparent;
+ & [data-button]:is([data-variant="ghost"], [data-variant="outline"]):not([data-header-island] *) {
+ @apply glass-none rounded-xl border-0 bg-transparent;
&:not(:hover):not(:active) {
background-image: none;
diff --git a/apps/web/src/lib/core/comments/Inputs.tsx b/apps/web/src/lib/core/comments/Inputs.tsx
index 83a0986403..ddd275c385 100644
--- a/apps/web/src/lib/core/comments/Inputs.tsx
+++ b/apps/web/src/lib/core/comments/Inputs.tsx
@@ -18,7 +18,7 @@ function EditBottomRow(props: {
<Button
tooltip="Delete Draft"
size="icon-sm"
- class="size-7 rounded-full"
+ class="size-7"
variant="ghost"
on:click={props.handleCancel}
>
diff --git a/apps/web/src/lib/core/component/AI/component/input/ChatInput.tsx b/apps/web/src/lib/core/component/AI/component/input/ChatInput.tsx
index e8b308bfab..d35db0ffbf 100644
--- a/apps/web/src/lib/core/component/AI/component/input/ChatInput.tsx
+++ b/apps/web/src/lib/core/component/AI/component/input/ChatInput.tsx
@@ -261,7 +261,7 @@ export function ChatInput(props: ChatInputComponentProps) {
<Button
variant="ghost"
size="icon-composer"
- class="rounded-full text-ink not-touch:text-composer-ink touch:size-6"
+ class="text-ink not-touch:text-composer-ink touch:size-6"
label="Attach files"
aria-label="Attach files"
onClick={() => {
@@ -281,7 +281,7 @@ export function ChatInput(props: ChatInputComponentProps) {
hotkey={TOKENS.chat.stop}
onClick={() => props.onStop?.()}
class={cn(
- 'rounded-full touch:size-7.5 [&_svg]:stroke-[4px]',
+ 'touch:size-7.5 [&_svg]:stroke-[4px]',
isTouchDevice() &&
'text-ink-extra-muted not-disabled:bg-ink/5 not-disabled:hover:bg-ink/10',
'data-disabled:opacity-100 data-disabled:text-ink-extra-muted data-disabled:bg-ink-muted/5'
diff --git a/apps/web/src/lib/core/component/AI/component/input/ModelCatalogPicker.tsx b/apps/web/src/lib/core/component/AI/component/input/ModelCatalogPicker.tsx
index 4e5890cc85..7b46fda173 100644
--- a/apps/web/src/lib/core/component/AI/component/input/ModelCatalogPicker.tsx
+++ b/apps/web/src/lib/core/component/AI/component/input/ModelCatalogPicker.tsx
@@ -154,7 +154,7 @@ export function ModelCatalogPicker(props: ModelCatalogPickerProps) {
variant="ghost"
size="sm"
class={cn(
- 'h-9 justify-between rounded-lg border border-edge-muted bg-transparent px-3 text-left text-sm text-ink hover:bg-ink/3',
+ 'h-9 justify-between border border-edge-muted bg-transparent px-3 text-left text-sm text-ink hover:bg-ink/3',
props.triggerClass
)}
aria-label={props.ariaLabel}
diff --git a/apps/web/src/lib/core/component/AI/component/input/ModelSelector.tsx b/apps/web/src/lib/core/component/AI/component/input/ModelSelector.tsx
index c6f8546e3b..572075cdd0 100644
--- a/apps/web/src/lib/core/component/AI/component/input/ModelSelector.tsx
+++ b/apps/web/src/lib/core/component/AI/component/input/ModelSelector.tsx
@@ -71,9 +71,9 @@ export function ModelSelector(props: ModelSelectorProps) {
variant="ghost"
size={props.compact ? 'icon-sm' : 'sm'}
class={cn(
- 'rounded-lg text-sm text-ink-subtle',
+ 'text-sm text-ink-subtle',
!props.compact && 'gap-1.5',
- 'not-touch:h-[33.75px] not-touch:rounded-full not-touch:text-base not-touch:gap-[5.625px] not-touch:px-[7.5px] not-touch:[&_svg]:size-[15px] not-touch:light-mode:text-composer-placeholder not-touch:light-mode:font-normal',
+ 'not-touch:h-[33.75px] not-touch:text-base not-touch:gap-[5.625px] not-touch:px-[7.5px] not-touch:[&_svg]:size-[15px] not-touch:light-mode:text-composer-placeholder not-touch:light-mode:font-normal',
props.compact && 'not-touch:p-[3.75px]'
)}
label={props.compact ? MODEL_PRETTYNAME[model()] : undefined}
diff --git a/apps/web/src/lib/core/component/AI/component/input/useAiDataConsent.tsx b/apps/web/src/lib/core/component/AI/component/input/useAiDataConsent.tsx
index e34fd802d3..b34919f775 100644
--- a/apps/web/src/lib/core/component/AI/component/input/useAiDataConsent.tsx
+++ b/apps/web/src/lib/core/component/AI/component/input/useAiDataConsent.tsx
@@ -56,10 +56,10 @@ export function useAiDataConsentGate() {
data is not retained or used for training.
</p>
<div class="flex justify-end mt-4 gap-2">
- <Button variant="outline" onClick={denyConsent}>
+ <Button variant="ghost" onClick={denyConsent}>
Cancel
</Button>
- <Button variant="outline" onClick={grantConsent}>
+ <Button variant="strong" onClick={grantConsent}>
Accept
</Button>
</div>
diff --git a/apps/web/src/lib/core/component/AI/component/tool/calendar/EventPreview.tsx b/apps/web/src/lib/core/component/AI/component/tool/calendar/EventPreview.tsx
index 396fa56987..06faef062c 100644
--- a/apps/web/src/lib/core/component/AI/component/tool/calendar/EventPreview.tsx
+++ b/apps/web/src/lib/core/component/AI/component/tool/calendar/EventPreview.tsx
@@ -307,7 +307,7 @@ export function CalendarToolEventPreview(props: CalendarToolEventPreviewProps) {
<Button
variant="ghost"
size="sm"
- class="rounded-lg px-2"
+ class="px-2"
onClick={goToEvent}
>
<CalendarIcon class="size-3.5" />
@@ -317,7 +317,6 @@ export function CalendarToolEventPreview(props: CalendarToolEventPreviewProps) {
<Button
variant="ghost"
size="icon-sm"
- class="rounded-lg"
label={`Previous ${previewView() === 'dayGridMonth' ? 'month' : 'week'}`}
onClick={() => navigate('previous')}
>
@@ -326,7 +325,6 @@ export function CalendarToolEventPreview(props: CalendarToolEventPreviewProps) {
<Button
variant="ghost"
size="icon-sm"
- class="rounded-lg"
label={`Next ${previewView() === 'dayGridMonth' ? 'month' : 'week'}`}
onClick={() => navigate('next')}
>
diff --git a/apps/web/src/lib/core/component/ForwardToChannel.tsx b/apps/web/src/lib/core/component/ForwardToChannel.tsx
index 48743f1b8d..bf2c12989a 100644
--- a/apps/web/src/lib/core/component/ForwardToChannel.tsx
+++ b/apps/web/src/lib/core/component/ForwardToChannel.tsx
@@ -657,9 +657,8 @@ export function ForwardToChannel(props: ForwardToChannelProps) {
Cancel
</Button>
<Button
- variant={selectedOptions().length > 0 ? 'accent' : 'ghost'}
+ variant="strong"
depth={3}
- class="rounded-lg border-0"
disabled={selectedOptions().length === 0 || isSubmitting()}
onClick={() => {
const options = selectedOptions();
diff --git a/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/MagicChipPullRequest.tsx b/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/MagicChipPullRequest.tsx
index dd45a2c207..37dcc42bc4 100644
--- a/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/MagicChipPullRequest.tsx
+++ b/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/MagicChipPullRequest.tsx
@@ -89,7 +89,7 @@ export const MagicChipPullRequest: Component<{ url: string }> = (props) => {
rel="noreferrer"
aria-label={label()}
class={buttonClasses({
- variant: 'plain',
+ variant: 'ghost',
size: 'sm',
fullWidth: true,
noTouchResize: true,
@@ -105,7 +105,7 @@ export const MagicChipPullRequest: Component<{ url: string }> = (props) => {
>
{(pr) => (
<Button
- variant="plain"
+ variant="ghost"
size="sm"
fullWidth
noTouchResize
diff --git a/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/MagicChipView.tsx b/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/MagicChipView.tsx
index f511e68cba..9df140a95b 100644
--- a/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/MagicChipView.tsx
+++ b/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/MagicChipView.tsx
@@ -198,7 +198,7 @@ export const MagicChipView: Component<{
<div class="min-w-0 flex-1" />
<Show when={props.onCollapse}>
<Button
- variant="plain"
+ variant="ghost"
size="icon-sm"
noTouchResize
aria-label="Collapse to mention"
@@ -215,7 +215,7 @@ export const MagicChipView: Component<{
variant="outline"
size="sm"
noTouchResize
- class="aspect-square rounded-full bg-transparent p-0 font-normal @[600px]:aspect-auto @[600px]:px-2"
+ class="aspect-square bg-transparent p-0 font-normal @[600px]:aspect-auto @[600px]:px-2"
aria-label="Open session"
disabled={props.loading || !props.onOpen}
on:click={(event) => {
diff --git a/apps/web/src/lib/core/component/LexicalMarkdown/component/menu/FloatingFormatMenu.tsx b/apps/web/src/lib/core/component/LexicalMarkdown/component/menu/FloatingFormatMenu.tsx
index 6815041802..b48e76dd20 100644
--- a/apps/web/src/lib/core/component/LexicalMarkdown/component/menu/FloatingFormatMenu.tsx
+++ b/apps/web/src/lib/core/component/LexicalMarkdown/component/menu/FloatingFormatMenu.tsx
@@ -269,7 +269,6 @@ export function FloatingFormatMenu(props: {
label={buttonProps.item.label}
shortcut={buttonProps.item.shortcut}
size="icon-sm"
- class="rounded-md"
depth={3}
variant={selection()?.[buttonProps.item.format] ? 'accent' : 'ghost'}
onPointerDown={(e: PointerEvent) => e.preventDefault()}
@@ -291,7 +290,6 @@ export function FloatingFormatMenu(props: {
<Dropdown.Trigger
variant="ghost"
size="icon-sm"
- class="rounded-md"
depth={3}
tooltip="More formatting"
tabIndex={-1}
@@ -326,7 +324,7 @@ export function FloatingFormatMenu(props: {
<Dropdown.Trigger
variant="ghost"
size="sm"
- class="gap-1 rounded-md"
+ class="gap-1"
depth={3}
tooltip="Text style"
tabIndex={-1}
@@ -386,7 +384,6 @@ export function FloatingFormatMenu(props: {
<Button
variant="ghost"
size="icon-sm"
- class="rounded-md"
depth={3}
onPointerDown={(e: PointerEvent) => e.preventDefault()}
onClick={handleLink}
diff --git a/apps/web/src/lib/core/component/TopBar/LoginButton.tsx b/apps/web/src/lib/core/component/TopBar/LoginButton.tsx
index 50e6656d3b..516f971200 100644
--- a/apps/web/src/lib/core/component/TopBar/LoginButton.tsx
+++ b/apps/web/src/lib/core/component/TopBar/LoginButton.tsx
@@ -18,7 +18,6 @@ export function LoginButton() {
<Button
variant="outline"
size="sm"
- class="rounded-xs"
onClick={() => navigate(`/login${window.location.search}`)}
>
Login
@@ -27,7 +26,6 @@ export function LoginButton() {
<Button
variant="accent"
size="sm"
- class="rounded-xs"
onClick={() => navigate(`/welcome${window.location.search}`)}
>
Sign Up
diff --git a/apps/web/src/lib/core/component/TopBar/ShareButton.tsx b/apps/web/src/lib/core/component/TopBar/ShareButton.tsx
index 3729b98353..662349e6e4 100644
--- a/apps/web/src/lib/core/component/TopBar/ShareButton.tsx
+++ b/apps/web/src/lib/core/component/TopBar/ShareButton.tsx
@@ -380,7 +380,7 @@ function TeamAccessSection(props: { teamShare: TeamShareControls }) {
<Dropdown.Trigger
variant="outline"
aria-label="Team access"
- class="min-w-16.75 py-1 pl-2 pr-1 rounded-md flex items-center gap-1"
+ class="min-w-16.75 py-1 pl-2 pr-1 flex items-center gap-1"
>
{getTeamShareScopeCopy(teamShareScope())}
<ChevronDownIcon class="size-4 text-ink-extra-muted" />
@@ -1657,9 +1657,8 @@ export function ShareTrigger(props: {
}
>
<Button
- variant="plain"
+ variant="ghost"
size="md"
- class="rounded-xl"
onClick={() => {
if (!isAuthenticated()) {
openLoginModal();
@@ -1675,10 +1674,9 @@ export function ShareTrigger(props: {
</Tooltip>
<Button
- variant="plain"
+ variant="ghost"
tooltip="Copy Share Link"
size="icon-md"
- class="rounded-xl"
onClick={ShareLinkAction().action}
>
<Dynamic component={ShareLinkAction().icon} class="size-3.5!" />
@@ -1775,7 +1773,7 @@ export function ShareOptions(props: {
<Dropdown.Trigger
variant="outline"
disabled={props.disabled}
- class={`min-w-16.75 py-1 pl-2 pr-1 rounded-md flex items-center gap-1 ${props.noBorder ? 'border-0 sm:border' : ''}`}
+ class={`min-w-16.75 py-1 pl-2 pr-1 flex items-center gap-1 ${props.noBorder ? 'border-0 sm:border' : ''}`}
on:keydown={(e: KeyboardEvent) => {
if (e.key === 'Enter' || e.key === ' ') {
e.stopPropagation();
diff --git a/apps/web/src/lib/core/internal/ThemeDebug.tsx b/apps/web/src/lib/core/internal/ThemeDebug.tsx
index 9a4c38465e..60cf853d89 100644
--- a/apps/web/src/lib/core/internal/ThemeDebug.tsx
+++ b/apps/web/src/lib/core/internal/ThemeDebug.tsx
@@ -461,7 +461,7 @@ function ThemeDebug() {
<Button variant="ghost" size="sm">
Cancel
</Button>
- <Button variant="accent" size="sm">
+ <Button variant="strong" size="sm">
Confirm
</Button>
</Panel.Footer>
diff --git a/apps/web/src/lib/core/mobile/IosPushNotificationModal.tsx b/apps/web/src/lib/core/mobile/IosPushNotificationModal.tsx
index d7e30e1a50..c9f121e64b 100644
--- a/apps/web/src/lib/core/mobile/IosPushNotificationModal.tsx
+++ b/apps/web/src/lib/core/mobile/IosPushNotificationModal.tsx
@@ -45,7 +45,7 @@ export function IosPushNotificationModal() {
Later
</button>
<Button
- variant="accent"
+ variant="strong"
size="sm"
class="text-sm"
onClick={async () => {
diff --git a/apps/web/src/lib/core/mobile/IpadUnsupportedDialog.tsx b/apps/web/src/lib/core/mobile/IpadUnsupportedDialog.tsx
index 04052f9091..6621880d6b 100644
--- a/apps/web/src/lib/core/mobile/IpadUnsupportedDialog.tsx
+++ b/apps/web/src/lib/core/mobile/IpadUnsupportedDialog.tsx
@@ -53,7 +53,7 @@ export function IpadUnsupportedDialog() {
</Dialog.Description>
</div>
<div class="flex justify-end">
- <Dialog.CloseButton as={Button} variant="accent" size="sm">
+ <Dialog.CloseButton as={Button} variant="strong" size="sm">
Got it
</Dialog.CloseButton>
</div>
diff --git a/apps/web/src/lib/core/mobile/NativeAppUpdateRequiredDialog.tsx b/apps/web/src/lib/core/mobile/NativeAppUpdateRequiredDialog.tsx
index 73be61eb3c..18c5123054 100644
--- a/apps/web/src/lib/core/mobile/NativeAppUpdateRequiredDialog.tsx
+++ b/apps/web/src/lib/core/mobile/NativeAppUpdateRequiredDialog.tsx
@@ -28,7 +28,7 @@ export function NativeAppUpdateRequiredDialog(props: {
</Dialog.Description>
</div>
<div class="flex justify-end">
- <Dialog.CloseButton as={Button} variant="accent" size="sm">
+ <Dialog.CloseButton as={Button} variant="strong" size="sm">
OK
</Dialog.CloseButton>
</div>
diff --git a/docs/AGENT_GUIDE/surfaces.md b/docs/AGENT_GUIDE/surfaces.md
index 9726f793cc..20689cea80 100644
--- a/docs/AGENT_GUIDE/surfaces.md
+++ b/docs/AGENT_GUIDE/surfaces.md
@@ -9,9 +9,22 @@ keeps loaded items visible. Wait for real rows before navigating or selecting.
## Top bars
-Right-aligned split-header actions (including Calendar's touch/preview New event
-and Channel's Call and Ask Macro) are borderless with a rounded-xl background on
-hover. Channel header tabs use fully rounded tracks and selected pills.
+Low-emphasis right-aligned split-header actions (including Calendar's touch/preview
+New event and Channel's idle Call and Ask Macro) are borderless with a rounded-xl
+background on hover. Emphasized variants retain their treatment, including an
+active call's green ink and outline frame. Channel header tabs use fully rounded tracks and
+selected pills. Button sizes do not change variant colors or framing; individual
+framed controls default to glass on touch and flat on desktop. Use `glass={true}`
+to enable glass on all devices, or `glass={false}` to disable it everywhere.
+Embedded and low-emphasis actions use `ghost`; inline calendar-invitation text
+actions remove the transparent border to keep their text alignment.
+
+## Dialog actions
+
+Cancel uses a ghost button. Confirm, save, and create actions use strong: the
+outline surface and border with semibold text, without inverted colors. Disabled
+and pending primary actions retain the strong variant. Mobile confirmation drawers
+use the same action hierarchy.
## User cards