Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(web): icon size scale as utilities, raw icon sizes linted (#18017)

Trang Nguyenb48f5563c200
diff --git a/.agents/skills/react-component-guidelines/SKILL.md b/.agents/skills/react-component-guidelines/SKILL.md
index 5a9cd67a35..ee9790b4d6 100644
--- a/.agents/skills/react-component-guidelines/SKILL.md
+++ b/.agents/skills/react-component-guidelines/SKILL.md
@@ -37,6 +37,13 @@ Components are useful because they act as an encapsulated unit and therefore pro
- Margin should be applied by the parent component, not contained in a component. The child component should only define the inner spacing of itself and its contents.
- It's bad practice to have a component that returns `null` or `undefined`. Most of the time this suggests that the condition that leads to this state should be handled by the parent component instead, often this can be done in a way close to the current component by using a hook or a HOC.
+## Icons
+
+- Icon sizes come only from the scale: `icon-sm` (12px), `icon-base` (14px), `icon-lg` (20px), `icon-xl` (28px). `icon-lg` is for headers, toasts and illustrations; icons inside buttons and menu rows are `icon-base`. No raw `h-*`/`w-*`/`size-*` classes or `size` props on icons, and no `strokeWidth`; every icon uses the lucide default stroke.
+- Size and colour go on the icon element itself, never on a container through `[&_svg]:` selectors. Every icon carries an `icon-*` class; the lint rule reports icons without one. Components that take an `icon` prop (design-system Button, IconButton, DropdownMenu items) render it with the size and `text-icon-foreground` for their variant; icons written as children of legacy primitives set both at the call site.
+- An icon paired with a short single-line label is centre-aligned with that label, not baseline-aligned. Geometric centring is the start, not the end: some glyphs need a nudge of a pixel or two so the pair reads balanced. Icons beside multi-line text, such as a title with a subtitle, follow the layout of that block.
+- An icon paired with text is the same colour as the text or one step lighter, never darker; `text-icon-foreground` is the default, status colours are the only exception.
+
## Overlays
- Compose overlays with `DropdownMenuController`, `PopoverController`, or `DialogController`. Trigger presentation should remain in the caller and not be abstracted. If additional behavior is needed, add a feature-specific wrapper that handles things such as permissions, analytics, mutations, or other workflow behavior that should be shared.
diff --git a/packages/eslint-plugin/src/index.ts b/packages/eslint-plugin/src/index.ts
index 5ea578189e..6f18c8d78f 100644
--- a/packages/eslint-plugin/src/index.ts
+++ b/packages/eslint-plugin/src/index.ts
@@ -9,6 +9,7 @@ import { default as noNullRender } from "./rules/no-null-render.js";
import { default as noLetAssignInReact } from "./rules/no-let-assign-in-react.js";
import { default as noOverlayZindex } from "./rules/no-overlay-zindex.js";
import { default as noRawFontWeight } from "./rules/no-raw-font-weight.js";
+import { default as noRawIconSize } from "./rules/no-raw-icon-size.js";
import { default as requireTitleWithTruncate } from "./rules/require-title-with-truncate.js";
import { default as noStyleProps } from "./rules/no-style-props.js";
import { default as noSwitchStatements } from "./rules/no-switch-statements.js";
@@ -28,6 +29,7 @@ const plugin = {
"no-let-assign-in-react": noLetAssignInReact,
"no-overlay-zindex": noOverlayZindex,
"no-raw-font-weight": noRawFontWeight,
+ "no-raw-icon-size": noRawIconSize,
"no-style-props": noStyleProps,
"no-switch-statements": noSwitchStatements,
"no-tailwind-overflow-scroll": noTailwindOverflowScroll,
diff --git a/packages/eslint-plugin/src/rules/no-raw-icon-size.test.ts b/packages/eslint-plugin/src/rules/no-raw-icon-size.test.ts
new file mode 100644
index 0000000000..62f1aca47f
--- /dev/null
+++ b/packages/eslint-plugin/src/rules/no-raw-icon-size.test.ts
@@ -0,0 +1,551 @@
+import { RuleTester } from "@typescript-eslint/rule-tester";
+import * as typescriptEslintParser from "@typescript-eslint/parser";
+import rule from "./no-raw-icon-size.js";
+
+const ruleTester = new RuleTester({
+ languageOptions: {
+ parser: typescriptEslintParser,
+ parserOptions: {
+ ecmaFeatures: {
+ jsx: true,
+ },
+ },
+ },
+});
+
+ruleTester.run("no-raw-icon-size", rule, {
+ valid: [
+ // Icon size scale token is allowed.
+ `import { Info } from "lucide-react";
+ const x = <Info className="icon-base" />;`,
+ `import { Info } from "lucide-react";
+ const x = <Info className="icon-sm" />;`,
+ `import { Info } from "lucide-react";
+ const x = <Info className="icon-lg" />;`,
+ `import { Info } from "lucide-react";
+ const x = <Info className="icon-xl" />;`,
+ // Non-numeric dimension utilities are not icon sizes.
+ `import { Info } from "lucide-react";
+ const x = <Info className="size-full h-auto" />;`,
+ // Illustrations at 40px and above keep raw sizes.
+ `import { Info } from "lucide-react";
+ const x = <Info className="size-10" />;`,
+ `import { Info } from "lucide-react";
+ const x = <Info className="h-10 w-10" />;`,
+ `import { Info } from "lucide-react";
+ const x = <Info className="h-16 w-16 text-muted-foreground" />;`,
+ `import { Info } from "lucide-react";
+ const x = <Info className="size-[40px]" />;`,
+ `import { Info } from "lucide-react";
+ const x = <Info className="size-[2.5rem]" />;`,
+ `import { Info } from "lucide-react";
+ const x = <Info size={40} />;`,
+ `import { Info } from "lucide-react";
+ const x = <Info size="64" />;`,
+ `const x = <div className="[&_svg]:size-10" />;`,
+ // Non-lucide element with the same raw classes is not reported.
+ `import { Info } from "lucide-react";
+ const x = <div className="h-4 w-4" />;`,
+ // className expression that is neither a literal, template literal, nor
+ // a cn(...) call is left alone.
+ `import { Info } from "lucide-react";
+ const x = <Info className={someVar} />;`,
+ // Empty expression container does not crash the rule.
+ `import { Info } from "lucide-react";
+ const x = <Info size={} />;`,
+ `import { Info } from "lucide-react";
+ const x = <Info className={} />;`,
+ // A boolean className attribute (no value) is not a forbidden size.
+ `import { Info } from "lucide-react";
+ const x = <Info className />;`,
+ // Files listed in `exceptions` are skipped entirely.
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className="h-4 w-4" strokeWidth={1.5} />;`,
+ filename: "src/components/legacy/Foo.tsx",
+ options: [{ exceptions: ["components/legacy/"] }],
+ },
+ // Non-numeric size string and non-string/number size literal are not
+ // on the banned list.
+ `import { Info } from "lucide-react";
+ const x = <Info size="1em" />;`,
+ `import { Info } from "lucide-react";
+ const x = <Info size={true} />;`,
+ // Non-literal size expression is not a forbidden size.
+ `import { Info } from "lucide-react";
+ const x = <Info size={someVar} />;`,
+ // An import of the same name from a different module is not a
+ // lucide-react icon.
+ `import { Info } from "other-icons";
+ const x = <Info className="h-4 w-4" />;`,
+ // A namespace import produces a JSXMemberExpression tag name, which is
+ // never tracked as a lucide-react local name.
+ `import * as Icons from "lucide-react";
+ const x = <Icons.Info className="h-4 w-4" />;`,
+ // A boolean attribute (no value) is not a forbidden size.
+ `import { Info } from "lucide-react";
+ const x = <Info size />;`,
+ // A JSXElement attribute value is neither a literal nor an expression
+ // container.
+ `import { Info } from "lucide-react";
+ const x = <Info className=<span /> />;`,
+ `import { Info } from "lucide-react";
+ const x = <Info size=<span /> />;`,
+ // Indirect sizing that stays on the scale.
+ `import { Info } from "lucide-react";
+ const cls = "icon-base shrink-0";
+ const x = <Info className={cls} />;`,
+ `import { Info } from "lucide-react";
+ const iconVariants = cva("icon-base", { variants: { tone: { a: "text-red" } } });
+ const x = <Info className={cn(iconVariants({ tone: "a" }))} />;`,
+ `const iconClassName = "icon-sm text-muted-foreground";`,
+ `const x = <Foo iconClassName="icon-base" />;`,
+ `const presentation = { iconClassName: "text-dark-yellow" };`,
+ // Container sizes on button variants are not icon sizes.
+ `const buttonVariants = cva("", { variants: { size: { icon: "h-8 w-8 [&_svg]:icon-base" } } });`,
+ `const x = <button className="h-8 w-8 [&_svg:not([class*='icon-'])]:icon-base" />;`,
+ `const x = <div className="[&_svg]:shrink-0 [&>svg]:size-full" />;`,
+ // A variable initialised elsewhere (function, parameter) is left alone.
+ `import { Info } from "lucide-react";
+ function Icon({ cls }) { return <Info className={cls} />; }`,
+ `import { Info } from "lucide-react";
+ const cls = pick();
+ const x = <Info className={cls} />;`,
+ // Destructured icon class props are reads, not declarations.
+ `const { iconClassName } = getPresentation();`,
+ `let iconClass;`,
+ // cva arrays, spreads, holes and non-string values are walked or skipped.
+ `import { Info } from "lucide-react";
+ const iconVariants = cva([, ...rest, "icon-base"], { variants: { tone: { a: ["text-red"] } }, defaultVariants: defaults });
+ const x = <Info className={iconVariants()} />;`,
+ // Non-class values and computed or numeric keys are not class holders.
+ `const presentation = { iconClassName: theme.icon, [key]: "h-4 w-4", 1: "h-4 w-4" };`,
+ // Calls that do not resolve to cva are left alone.
+ `import { Info } from "lucide-react";
+ const make = () => "icon-base";
+ const x = <Info className={make()} />;`,
+ `import { Info } from "lucide-react";
+ const x = <Info className={clsx("h-4 w-4")} />;`,
+ "const x = <div className={`[&_svg]:icon-base ${y}`} />;",
+ // Cyclic consts and member-call or spread class expressions are left alone.
+ `import { Info } from "lucide-react";
+ const a = cn(b, "shrink-0");
+ const b = cn(...rest, a);
+ const x = <Info className={a} />;`,
+ `import { Info } from "lucide-react";
+ const x = <Info className={styles.icon()} />;`,
+ `import { Info } from "lucide-react";
+ const x = <Info className={props.cls} />;`,
+ ],
+ invalid: [
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className="h-4 w-4" />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className="size-3.5" />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info size={16} />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ // Every raw size is off the scale, not only 12/14/16.
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className="h-5 w-5" />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info size={20} />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className="md:size-6" />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ // Retired scale names.
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className="icon-md" />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ // Sizes below 40px are not illustrations.
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className="h-9 w-9" />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className="size-9" />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className="h-px" />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className="size-[39px]" />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className="size-[2rem]" />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ // Arbitrary values that are not a px or rem length are not on the scale.
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className="size-[var(--x)]" />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info size={36} />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info size={39} />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ // Raw size on one branch of a conditional or a logical expression.
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className={open ? "icon-base" : "size-3"} />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className={cn("shrink-0", open && "h-4 w-4")} />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ // Custom stroke width.
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className="icon-base" strokeWidth={1.5} />;`,
+ errors: [{ messageId: "strokeWidth" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info strokeWidth={2} />;`,
+ errors: [{ messageId: "strokeWidth" }],
+ },
+ // Aliased import.
+ {
+ code: `import { Info as InfoIcon } from "lucide-react";
+ const x = <InfoIcon className="w-3" />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ // Raw size inside a cn(...) call.
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className={cn("flex", "h-4 w-4")} />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ // String-valued size prop without braces.
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info size="16" />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ // Raw size inside a template literal.
+ {
+ code:
+ 'import { Info } from "lucide-react";\n' +
+ " const x = <Info className={`flex ${y} h-4`} />;",
+ errors: [{ messageId: "unexpected" }],
+ },
+ // Spread and namespaced attributes are skipped; the className attribute
+ // after them is still checked.
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info {...rest} xml:lang="en" className="h-4 w-4" />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ // Raw size reaches the icon through a const.
+ {
+ code: `import { Info } from "lucide-react";
+ const cls = "h-3.5 w-3.5 flex-none";
+ const x = <Info className={cls} />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const cls = cn("shrink-0", small ? "h-3 w-3" : "icon-base");
+ const x = <Info className={cls} />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ // Raw size in a cva base or variant used on the icon.
+ {
+ code: `import { Info } from "lucide-react";
+ const variants = cva("h-4 w-4", { variants: { tone: { a: "text-red" } } });
+ const x = <Info className={cn("shrink-0", variants({ tone: "a" }))} />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const variants = cva("shrink-0", { variants: { size: { sm: "size-3", md: "icon-base" } } });
+ const x = <Info className={variants({ size: "sm" })} />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ // Icon-named holders are reported once, at the declaration.
+ {
+ code: `import { Info } from "lucide-react";
+ const iconClass = cn("shrink-0", small ? "h-3 w-3" : "h-4 w-4");
+ const x = <Info className={iconClass} />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const iconVariants = cva("h-4 w-4", { variants: {} });
+ const x = <Info className={iconVariants()} />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const variants = cva(["h-4", "w-4"]);
+ const x = <Info className={variants()} />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `const presentation = { "iconClassName": "h-4 w-4" };`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `const iconClassName = "h-4 w-4";`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `const presentation = { iconClassName: "h-4 w-4 text-red" };`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `const x = <Foo iconClassName="h-4 w-4" />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `const x = <Foo leftIconClassName={cn("h-4", open && "w-4")} />;`,
+ errors: [{ messageId: "unexpected" }],
+ },
+ // Raw sizes behind an svg selector variant, in any file.
+ {
+ code: `const x = <button className="h-8 [&_svg]:size-4" />;`,
+ errors: [{ messageId: "svgSelector" }],
+ },
+ {
+ code: `const x = <span className="[&>svg]:h-3.5 [&>svg]:w-3.5" />;`,
+ errors: [{ messageId: "svgSelector" }],
+ },
+ {
+ code: `const buttonVariants = cva("", { variants: { size: { sm: "h-7 [&_svg:not([class*='icon-'])]:size-4" } } });`,
+ errors: [{ messageId: "svgSelector" }],
+ },
+ {
+ code: "const x = <div className={`flex [&_svg]:h-4 ${y}`} />;",
+ errors: [{ messageId: "svgSelector" }],
+ },
+ {
+ code: `const x = <div className="[&_svg]:icon-md" />;`,
+ errors: [{ messageId: "svgSelector" }],
+ },
+ ],
+});
+
+const requireSize = [{ requireSize: true }] as const;
+
+ruleTester.run("no-raw-icon-size requireSize", rule, {
+ valid: [
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className="icon-base mr-2" />;`,
+ options: requireSize,
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className={cn("text-muted-foreground", open ? "icon-sm" : "icon-lg")} />;`,
+ options: requireSize,
+ },
+ // Illustrations and container-driven sizes are explicit.
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <><Info className="h-12 w-12" /><Info className="size-full" /><Info size={48} /></>;`,
+ options: requireSize,
+ },
+ // Values that cannot be resolved statically are left alone.
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <><Info className={className} /><Info {...props} /><Info className={cn("mr-2", className)} /></>;`,
+ options: requireSize,
+ },
+ {
+ code:
+ 'import { Info } from "lucide-react";\n' +
+ ' const x = <><Info className={`mr-2 ${tone}`} /><Info className={open ? "icon-sm" : className} /><Info className={cn(...rest)} /><Info className={styles.icon()} /><Info className={props.cls} /><Info size={iconSize} /></>;',
+ options: requireSize,
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const a = cn(b, "shrink-0");
+ const b = cn(a);
+ const x = <Info className={a} />;`,
+ options: requireSize,
+ },
+ // Sizes that reach the icon through a const, a template literal or cva.
+ {
+ code: `import { Info } from "lucide-react";
+ const cls = "icon-base shrink-0";
+ const x = <Info className={cls} />;`,
+ options: requireSize,
+ },
+ {
+ code:
+ 'import { Info } from "lucide-react";\n' +
+ " const x = <Info className={`icon-base ${tone}`} />;",
+ options: requireSize,
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const iconVariants = cva("icon-base", { variants: { tone: { a: "text-red" } } });
+ const x = <Info className={iconVariants({ tone: "a" })} />;`,
+ options: requireSize,
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const iconVariants = cva([, ...rest, \`icon-base\`], { ...base, variants: { tone: { a: ["text-red"] } }, defaultVariants: defaults });
+ const x = <Info className={iconVariants()} />;`,
+ options: requireSize,
+ },
+ // cva holders with spread arguments or without a size, and calls that do
+ // not resolve to cva, cannot be resolved statically.
+ {
+ code: `import { Info } from "lucide-react";
+ const iconVariants = cva(...parts);
+ const toneVariants = cva("shrink-0", { variants: { tone: { a: "text-red" } } });
+ const make = () => "icon-base";
+ const x = <><Info className={iconVariants()} /><Info className={toneVariants()} /><Info className={make()} /></>;`,
+ options: requireSize,
+ },
+ // Imported components named *Icon are not treated as icons.
+ {
+ code: `import { ItemTypeIcon } from "./ItemTypeIcon";
+ const x = <ItemTypeIcon type="SPAN" />;`,
+ options: requireSize,
+ },
+ {
+ code: `const StatusIcon = ({ status }) => <span>{status}</span>;
+ const x = <StatusIcon status="ok" />;`,
+ options: requireSize,
+ },
+ {
+ code: `const x = <SelectPrimitive.Icon asChild><span /></SelectPrimitive.Icon>;`,
+ options: requireSize,
+ },
+ {
+ code: `const Row = ({ icon: Icon }) => <Icon className="icon-base" />;`,
+ options: requireSize,
+ },
+ // Function-expression components, undeclared names and namespaced tags
+ // are not icons.
+ {
+ code: `const StatusIcon = function () { return <span />; };
+ const x = <><StatusIcon /><UndeclaredIcon /><svg:icon /></>;`,
+ options: requireSize,
+ },
+ // Without the option, a bare icon is allowed.
+ `import { Info } from "lucide-react";
+ const x = <Info />;`,
+ ],
+ invalid: [
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info />;`,
+ options: requireSize,
+ errors: [{ messageId: "missingSize" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className={cn("mr-2", active && "text-primary")} />;`,
+ options: requireSize,
+ errors: [{ messageId: "missingSize" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className={open ? "icon-sm" : "mr-2"} />;`,
+ options: requireSize,
+ errors: [{ messageId: "missingSize" }],
+ },
+ {
+ code:
+ 'import { Info } from "lucide-react";\n' +
+ " const x = <Info className={`mr-2`} />;",
+ options: requireSize,
+ errors: [{ messageId: "missingSize" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const cls = "mr-2 shrink-0";
+ const x = <Info className={cls} />;`,
+ options: requireSize,
+ errors: [{ messageId: "missingSize" }],
+ },
+ // Valueless size and className attributes do not size the icon, and
+ // namespaced attributes are skipped.
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info size />;`,
+ options: requireSize,
+ errors: [{ messageId: "missingSize" }],
+ },
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className xml:lang="en" />;`,
+ options: requireSize,
+ errors: [{ messageId: "missingSize" }],
+ },
+ // An icon component held in a const.
+ {
+ code: `const Icon = resolveIcon(type);
+ const x = <Icon />;`,
+ options: requireSize,
+ errors: [{ messageId: "missingSize" }],
+ },
+ // Icon components passed in as props.
+ {
+ code: `const Row = ({ icon: Icon }) => <Icon className="shrink-0" />;`,
+ options: requireSize,
+ errors: [{ messageId: "missingSize" }],
+ },
+ {
+ code: `function Badge({ trailingIcon: TrailingIcon }) { return <TrailingIcon className="size-3" />; }`,
+ options: requireSize,
+ errors: [{ messageId: "unexpected" }],
+ },
+ {
+ code: `const x = items.map((item) => <item.icon />);`,
+ options: requireSize,
+ errors: [{ messageId: "missingSize" }],
+ },
+ {
+ code: `import { SiGithub } from "react-icons/si";
+ const x = <SiGithub />;`,
+ options: requireSize,
+ errors: [{ messageId: "missingSize" }],
+ },
+ // A raw size is reported once, not also as missing.
+ {
+ code: `import { Info } from "lucide-react";
+ const x = <Info className="h-4 w-4" />;`,
+ options: requireSize,
+ errors: [{ messageId: "unexpected" }],
+ },
+ ],
+});
diff --git a/packages/eslint-plugin/src/rules/no-raw-icon-size.ts b/packages/eslint-plugin/src/rules/no-raw-icon-size.ts
new file mode 100644
index 0000000000..c7e0ecfaaa
--- /dev/null
+++ b/packages/eslint-plugin/src/rules/no-raw-icon-size.ts
@@ -0,0 +1,597 @@
+import {
+ AST_NODE_TYPES,
+ ASTUtils,
+ type TSESTree,
+} from "@typescript-eslint/utils";
+
+import { createRule } from "../util.js";
+import {
+ extractTailwindUtilityTokens,
+ normalizeTailwindToken,
+ stripTailwindVariants,
+} from "../rule-helpers/tailwind.js";
+
+// The icon scale: icon-sm 12px, icon-base 14px, icon-lg 20px, icon-xl 28px.
+// Illustrations at 40px and above keep raw sizes.
+const ILLUSTRATION_MIN_PX = 40;
+const TAILWIND_SPACING_PX = 4;
+const ROOT_FONT_SIZE_PX = 16;
+const RAW_ICON_SIZE_CLASS = /^(?:h|w|size)-(\d+(?:\.\d+)?|px|\[.*\])$/;
+const ARBITRARY_LENGTH = /^\[(\d+(?:\.\d+)?)(px|rem)\]$/;
+const RETIRED_ICON_SIZE_CLASSES = new Set(["icon-md"]);
+const ICON_SCALE_CLASSES = new Set([
+ "icon-sm",
+ "icon-base",
+ "icon-lg",
+ "icon-xl",
+]);
+const EXPLICIT_SIZE_CLASS = /^(?:h|w|size)-/;
+const SVG_SELECTOR_VARIANT = /\[&[^\]]*svg/;
+// Class-string holders that exist to size an icon.
+const ICON_CLASS_HOLDER_NAME =
+ /^icon(?:class(?:name)?|cls|variants?|styles?)?$|iconclass(?:name)?$/i;
+const ICON_CLASS_PROP_NAME = /iconclass(?:name)?$/i;
+const ICON_IMPORT_SOURCE = /^(?:lucide-react|react-icons\/.+)$/;
+// Icon components passed in as props or variables: `Icon`, `TrailingIcon`.
+const LOCAL_ICON_COMPONENT_NAME = /^(?:[A-Z]\w*)?Icon$/;
+// Icon components read from an object: `item.icon`, `group.icon`.
+const MEMBER_ICON_PROPERTY_NAME = /^(?:icon|\w*Icon)$/;
+
+type Options = [{ exceptions?: string[]; requireSize?: boolean }];
+type MessageIds = "unexpected" | "strokeWidth" | "svgSelector" | "missingSize";
+// "unknown": the class value cannot be resolved statically.
+type SizeState = "sized" | "unsized" | "unknown";
+
+function rawSizeToPx(size: string): number | null {
+ if (size === "px") return 1;
+ if (!size.startsWith("[")) return Number(size) * TAILWIND_SPACING_PX;
+ const match = ARBITRARY_LENGTH.exec(size);
+ if (!match) return null;
+ const value = Number(match[1]);
+ return match[2] === "rem" ? value * ROOT_FONT_SIZE_PX : value;
+}
+
+function isIllustrationSize(px: number | null): boolean {
+ return px !== null && px >= ILLUSTRATION_MIN_PX;
+}
+
+function utilityIsForbiddenSize(utility: string): boolean {
+ if (RETIRED_ICON_SIZE_CLASSES.has(utility)) return true;
+ const match = RAW_ICON_SIZE_CLASS.exec(utility);
+ if (!match) return false;
+ return !isIllustrationSize(rawSizeToPx(match[1]));
+}
+
+function classNameValueHasForbiddenSize(value: string): boolean {
+ for (const utility of extractTailwindUtilityTokens(value)) {
+ if (utilityIsForbiddenSize(utility)) return true;
+ }
+ return false;
+}
+
+function svgSelectorValueHasForbiddenSize(value: string): boolean {
+ if (!value.includes("svg")) return false;
+ for (const match of value.matchAll(/\S+/g)) {
+ const token = match[0];
+ const utility = normalizeTailwindToken(stripTailwindVariants(token));
+ const variants = token.slice(0, token.length - utility.length);
+ if (
+ SVG_SELECTOR_VARIANT.test(variants) &&
+ utilityIsForbiddenSize(utility)
+ ) {
+ return true;
+ }
+ }
+ return false;
+}
+
+function classNameValueHasExplicitSize(value: string): boolean {
+ for (const utility of extractTailwindUtilityTokens(value)) {
+ if (ICON_SCALE_CLASSES.has(utility) || EXPLICIT_SIZE_CLASS.test(utility)) {
+ return true;
+ }
+ }
+ return false;
+}
+
+function combineSizeStates(states: SizeState[]): SizeState {
+ if (states.includes("sized")) return "sized";
+ if (states.includes("unknown")) return "unknown";
+ return "unsized";
+}
+
+function getNumericLiteralValue(node: TSESTree.Expression): number | null {
+ if (node.type !== AST_NODE_TYPES.Literal) return null;
+ if (typeof node.value === "number") return node.value;
+ if (typeof node.value === "string") {
+ const parsed = Number(node.value);
+ return Number.isNaN(parsed) ? null : parsed;
+ }
+ return null;
+}
+
+function attributeExpression(
+ attribute: TSESTree.JSXAttribute,
+): TSESTree.Expression | null {
+ const value = attribute.value;
+ if (!value) return null;
+ if (value.type === AST_NODE_TYPES.Literal) return value;
+ if (value.type !== AST_NODE_TYPES.JSXExpressionContainer) return null;
+ if (value.expression.type === AST_NODE_TYPES.JSXEmptyExpression) return null;
+ return value.expression;
+}
+
+const CLASS_EXPRESSION_TYPES = new Set<AST_NODE_TYPES>([
+ AST_NODE_TYPES.Literal,
+ AST_NODE_TYPES.TemplateLiteral,
+ AST_NODE_TYPES.ConditionalExpression,
+ AST_NODE_TYPES.LogicalExpression,
+ AST_NODE_TYPES.CallExpression,
+ AST_NODE_TYPES.Identifier,
+]);
+
+function isClassExpression(node: TSESTree.Node): node is TSESTree.Expression {
+ return CLASS_EXPRESSION_TYPES.has(node.type);
+}
+
+function propertyKeyName(property: TSESTree.Property): string | null {
+ if (property.computed) return null;
+ if (property.key.type === AST_NODE_TYPES.Identifier) return property.key.name;
+ if (
+ property.key.type === AST_NODE_TYPES.Literal &&
+ typeof property.key.value === "string"
+ ) {
+ return property.key.value;
+ }
+ return null;
+}
+
+const rule = createRule<Options, MessageIds>({
+ name: "no-raw-icon-size",
+ meta: {
+ type: "problem",
+ docs: {
+ description:
+ "Disallow raw Tailwind size utilities, numeric `size` props and `strokeWidth` on icons (lucide-react, react-icons, and icon components passed in as props); sizes come from the icon scale (icon-sm/icon-base/icon-lg/icon-xl). Illustrations at 40px and above keep raw sizes.",
+ },
+ schema: [
+ {
+ type: "object",
+ properties: {
+ exceptions: {
+ type: "array",
+ items: { type: "string" },
+ description:
+ "File path substrings whose lucide icons may keep raw sizes.",
+ },
+ requireSize: {
+ type: "boolean",
+ description:
+ "Require every lucide icon to set its size explicitly instead of inheriting it from a parent.",
+ },
+ },
+ additionalProperties: false,
+ },
+ ],
+ messages: {
+ unexpected:
+ "Use the icon size scale: icon-sm (12px), icon-base (14px), icon-lg (20px) or icon-xl (28px) instead of raw sizes.",
+ strokeWidth:
+ "Do not set strokeWidth on lucide icons; every icon uses the lucide default.",
+ svgSelector:
+ "Size nested icons with [&_svg]:icon-sm / [&_svg]:icon-base / [&_svg]:icon-lg, not raw sizes.",
+ missingSize:
+ "Set the icon size explicitly: icon-sm (12px), icon-base (14px), icon-lg (20px) or icon-xl (28px).",
+ },
+ },
+ defaultOptions: [{}],
+ create(context, [options]) {
+ const filename = context.filename.replace(/\\/g, "/");
+ if (options.exceptions?.some((exception) => filename.includes(exception))) {
+ return {};
+ }
+
+ const sourceCode = context.sourceCode;
+ const iconImportNames = new Set<string>();
+ // Reported at the declaration; a later use on an icon is the same finding.
+ const reportedInits = new Set<TSESTree.Node>();
+
+ function resolveConstInit(
+ identifier: TSESTree.Identifier,
+ ): TSESTree.Expression | null {
+ const variable = ASTUtils.findVariable(
+ sourceCode.getScope(identifier),
+ identifier,
+ );
+ const definition = variable?.defs[0]?.node;
+ if (
+ !definition ||
+ definition.type !== AST_NODE_TYPES.VariableDeclarator ||
+ !definition.init
+ ) {
+ return null;
+ }
+ return definition.init;
+ }
+
+ function cvaStringsHaveForbiddenSize(
+ node: TSESTree.Node,
+ visited: Set<TSESTree.Node>,
+ ): boolean {
+ if (node.type === AST_NODE_TYPES.ObjectExpression) {
+ return node.properties.some(
+ (property) =>
+ property.type === AST_NODE_TYPES.Property &&
+ cvaStringsHaveForbiddenSize(property.value, visited),
+ );
+ }
+ if (node.type === AST_NODE_TYPES.ArrayExpression) {
+ return node.elements.some(
+ (element) =>
+ element !== null &&
+ element.type !== AST_NODE_TYPES.SpreadElement &&
+ cvaStringsHaveForbiddenSize(element, visited),
+ );
+ }
+ if (
+ node.type === AST_NODE_TYPES.Literal ||
+ node.type === AST_NODE_TYPES.TemplateLiteral ||
+ node.type === AST_NODE_TYPES.ConditionalExpression ||
+ node.type === AST_NODE_TYPES.LogicalExpression ||
+ node.type === AST_NODE_TYPES.CallExpression
+ ) {
+ return expressionHasForbiddenSize(node, visited);
+ }
+ return false;
+ }
+
+ function expressionHasForbiddenSize(
+ node: TSESTree.Expression,
+ visited: Set<TSESTree.Node> = new Set(),
+ ): boolean {
+ if (visited.has(node)) return false;
+ visited.add(node);
+
+ if (node.type === AST_NODE_TYPES.Literal) {
+ return (
+ typeof node.value === "string" &&
+ classNameValueHasForbiddenSize(node.value)
+ );
+ }
+
+ if (node.type === AST_NODE_TYPES.TemplateLiteral) {
+ return node.quasis.some((quasi) =>
+ classNameValueHasForbiddenSize(quasi.value.raw),
+ );
+ }
+
+ if (node.type === AST_NODE_TYPES.ConditionalExpression) {
+ return (
+ expressionHasForbiddenSize(node.consequent, visited) ||
+ expressionHasForbiddenSize(node.alternate, visited)
+ );
+ }
+
+ if (node.type === AST_NODE_TYPES.LogicalExpression) {
+ return expressionHasForbiddenSize(node.right, visited);
+ }
+
+ if (node.type === AST_NODE_TYPES.Identifier) {
+ const init = resolveConstInit(node);
+ if (!init || reportedInits.has(init)) return false;
+ return expressionHasForbiddenSize(init, visited);
+ }
+
+ if (node.type === AST_NODE_TYPES.CallExpression) {
+ if (node.callee.type !== AST_NODE_TYPES.Identifier) return false;
+
+ if (node.callee.name === "cn") {
+ return node.arguments.some(
+ (argument) =>
+ argument.type !== AST_NODE_TYPES.SpreadElement &&
+ expressionHasForbiddenSize(argument, visited),
+ );
+ }
+
+ if (node.callee.name === "cva") {
+ return node.arguments.some(
+ (argument) =>
+ argument.type !== AST_NODE_TYPES.SpreadElement &&
+ cvaStringsHaveForbiddenSize(argument, visited),
+ );
+ }
+
+ // `iconVariants({ type })` where `iconVariants = cva(...)`.
+ const init = resolveConstInit(node.callee);
+ if (!init || reportedInits.has(init)) return false;
+ if (
+ init.type === AST_NODE_TYPES.CallExpression &&
+ init.callee.type === AST_NODE_TYPES.Identifier &&
+ init.callee.name === "cva"
+ ) {
+ return expressionHasForbiddenSize(init, visited);
+ }
+ }
+
+ return false;
+ }
+
+ function cvaSizeState(
+ node: TSESTree.Node,
+ visited: Set<TSESTree.Node>,
+ ): SizeState {
+ if (node.type === AST_NODE_TYPES.ObjectExpression) {
+ return combineSizeStates(
+ node.properties.map((property) =>
+ property.type === AST_NODE_TYPES.Property
+ ? cvaSizeState(property.value, visited)
+ : "unknown",
+ ),
+ );
+ }
+ if (node.type === AST_NODE_TYPES.ArrayExpression) {
+ return combineSizeStates(
+ node.elements.map((element) =>
+ element === null || element.type === AST_NODE_TYPES.SpreadElement
+ ? "unknown"
+ : cvaSizeState(element, visited),
+ ),
+ );
+ }
+ if (node.type === AST_NODE_TYPES.Literal) {
+ return classSizeState(node, visited);
+ }
+ if (node.type === AST_NODE_TYPES.TemplateLiteral) {
+ return classSizeState(node, visited);
+ }
+ return "unsized";
+ }
+
+ function classSizeState(
+ node: TSESTree.Expression,
+ visited: Set<TSESTree.Node> = new Set(),
+ ): SizeState {
+ if (visited.has(node)) return "unknown";
+ visited.add(node);
+
+ switch (node.type) {
+ case AST_NODE_TYPES.Literal:
+ return typeof node.value === "string" &&
+ classNameValueHasExplicitSize(node.value)
+ ? "sized"
+ : "unsized";
+ case AST_NODE_TYPES.TemplateLiteral:
+ if (
+ node.quasis.some((quasi) =>
+ classNameValueHasExplicitSize(quasi.value.raw),
+ )
+ ) {
+ return "sized";
+ }
+ return node.expressions.length > 0 ? "unknown" : "unsized";
+ case AST_NODE_TYPES.ConditionalExpression: {
+ const branches = [
+ classSizeState(node.consequent, visited),
+ classSizeState(node.alternate, visited),
+ ];
+ if (branches.every((state) => state === "sized")) return "sized";
+ return branches.includes("unknown") ? "unknown" : "unsized";
+ }
+ case AST_NODE_TYPES.LogicalExpression:
+ return classSizeState(node.right, visited);
+ case AST_NODE_TYPES.Identifier: {
+ const init = resolveConstInit(node);
+ return init ? classSizeState(init, visited) : "unknown";
+ }
+ case AST_NODE_TYPES.CallExpression: {
+ if (node.callee.type !== AST_NODE_TYPES.Identifier) return "unknown";
+ if (node.callee.name === "cn") {
+ return combineSizeStates(
+ node.arguments.map((argument) =>
+ argument.type === AST_NODE_TYPES.SpreadElement
+ ? "unknown"
+ : classSizeState(argument, visited),
+ ),
+ );
+ }
+ if (node.callee.name === "cva") {
+ return combineSizeStates(
+ node.arguments.map((argument) =>
+ argument.type === AST_NODE_TYPES.SpreadElement
+ ? "unknown"
+ : cvaSizeState(argument, visited),
+ ),
+ );
+ }
+ const init = resolveConstInit(node.callee);
+ if (
+ init?.type === AST_NODE_TYPES.CallExpression &&
+ init.callee.type === AST_NODE_TYPES.Identifier &&
+ init.callee.name === "cva"
+ ) {
+ return classSizeState(init, visited) === "sized"
+ ? "sized"
+ : "unknown";
+ }
+ return "unknown";
+ }
+ default:
+ return "unknown";
+ }
+ }
+
+ function iconSizeState(node: TSESTree.JSXOpeningElement): SizeState {
+ const states: SizeState[] = [];
+ let hasClassName = false;
+ for (const attribute of node.attributes) {
+ if (attribute.type === AST_NODE_TYPES.JSXSpreadAttribute) {
+ states.push("unknown");
+ continue;
+ }
+ if (attribute.name.type !== AST_NODE_TYPES.JSXIdentifier) continue;
+ const attributeName = attribute.name.name;
+ if (attributeName === "size") {
+ const expression = attributeExpression(attribute);
+ if (expression === null) continue;
+ states.push(
+ getNumericLiteralValue(expression) === null ? "unknown" : "sized",
+ );
+ }
+ if (attributeName === "className") {
+ hasClassName = true;
+ const expression = attributeExpression(attribute);
+ states.push(
+ expression === null ? "unsized" : classSizeState(expression),
+ );
+ }
+ }
+ if (!hasClassName) states.push("unsized");
+ return combineSizeStates(states);
+ }
+
+ function isIconComponent(name: TSESTree.JSXIdentifier): boolean {
+ if (iconImportNames.has(name.name)) return true;
+ if (!LOCAL_ICON_COMPONENT_NAME.test(name.name)) return false;
+ const variable = ASTUtils.findVariable(
+ sourceCode.getScope(name),
+ name.name,
+ );
+ const definition = variable?.defs[0];
+ if (!definition) return false;
+ if (definition.type === "Parameter") return true;
+ if (definition.type !== "Variable") return false;
+ // A component defined in the file sizes its own icon.
+ const init = definition.node.init;
+ return (
+ init?.type !== AST_NODE_TYPES.ArrowFunctionExpression &&
+ init?.type !== AST_NODE_TYPES.FunctionExpression
+ );
+ }
+
+ function hasForbiddenClassName(attribute: TSESTree.JSXAttribute): boolean {
+ const expression = attributeExpression(attribute);
+ return expression !== null && expressionHasForbiddenSize(expression);
+ }
+
+ function hasForbiddenSizeProp(attribute: TSESTree.JSXAttribute): boolean {
+ const expression = attributeExpression(attribute);
+ if (expression === null) return false;
+ const px = getNumericLiteralValue(expression);
+ return px !== null && !isIllustrationSize(px);
+ }
+
+ return {
+ ImportDeclaration(node) {
+ if (!ICON_IMPORT_SOURCE.test(String(node.source.value))) return;
+
+ for (const specifier of node.specifiers) {
+ if (specifier.type !== AST_NODE_TYPES.ImportSpecifier) continue;
+ iconImportNames.add(specifier.local.name);
+ }
+ },
+ Literal(node) {
+ if (
+ typeof node.value === "string" &&
+ svgSelectorValueHasForbiddenSize(node.value)
+ ) {
+ context.report({ node, messageId: "svgSelector" });
+ }
+ },
+ TemplateLiteral(node) {
+ if (
+ node.quasis.some((quasi) =>
+ svgSelectorValueHasForbiddenSize(quasi.value.raw),
+ )
+ ) {
+ context.report({ node, messageId: "svgSelector" });
+ }
+ },
+ VariableDeclarator(node) {
+ if (
+ node.id.type !== AST_NODE_TYPES.Identifier ||
+ !ICON_CLASS_HOLDER_NAME.test(node.id.name) ||
+ !node.init
+ ) {
+ return;
+ }
+ if (expressionHasForbiddenSize(node.init)) {
+ reportedInits.add(node.init);
+ context.report({ node, messageId: "unexpected" });
+ }
+ },
+ Property(node) {
+ if (node.parent.type === AST_NODE_TYPES.ObjectPattern) return;
+ const key = propertyKeyName(node);
+ if (!key || !ICON_CLASS_PROP_NAME.test(key)) return;
+ if (
+ isClassExpression(node.value) &&
+ expressionHasForbiddenSize(node.value)
+ ) {
+ context.report({ node, messageId: "unexpected" });
+ }
+ },
+ JSXOpeningElement(node) {
+ const name = node.name;
+ let isIcon: boolean;
+ if (name.type === AST_NODE_TYPES.JSXIdentifier) {
+ isIcon = isIconComponent(name);
+ } else if (name.type === AST_NODE_TYPES.JSXMemberExpression) {
+ // `SelectPrimitive.Icon` is a component namespace, not an icon.
+ isIcon =
+ name.object.type === AST_NODE_TYPES.JSXIdentifier &&
+ /^[a-z]/.test(name.object.name) &&
+ MEMBER_ICON_PROPERTY_NAME.test(name.property.name);
+ } else {
+ return;
+ }
+ let reportedSize = false;
+
+ for (const attribute of node.attributes) {
+ if (attribute.type !== AST_NODE_TYPES.JSXAttribute) continue;
+ if (attribute.name.type !== AST_NODE_TYPES.JSXIdentifier) continue;
+ const attributeName = attribute.name.name;
+
+ if (
+ ICON_CLASS_PROP_NAME.test(attributeName) &&
+ hasForbiddenClassName(attribute)
+ ) {
+ context.report({ node: attribute, messageId: "unexpected" });
+ continue;
+ }
+
+ if (!isIcon) continue;
+
+ if (
+ attributeName === "className" &&
+ hasForbiddenClassName(attribute)
+ ) {
+ context.report({ node: attribute, messageId: "unexpected" });
+ reportedSize = true;
+ continue;
+ }
+
+ if (attributeName === "size" && hasForbiddenSizeProp(attribute)) {
+ context.report({ node: attribute, messageId: "unexpected" });
+ reportedSize = true;
+ continue;
+ }
+
+ if (attributeName === "strokeWidth") {
+ context.report({ node: attribute, messageId: "strokeWidth" });
+ }
+ }
+
+ if (
+ isIcon &&
+ options.requireSize &&
+ !reportedSize &&
+ iconSizeState(node) === "unsized"
+ ) {
+ context.report({ node, messageId: "missingSize" });
+ }
+ },
+ };
+ },
+});
+
+export default rule;
diff --git a/web/.storybook/docs/ThemeTokens/Color.tsx b/web/.storybook/docs/ThemeTokens/Color.tsx
index a5665f1ad8..35ea4cfd6e 100644
--- a/web/.storybook/docs/ThemeTokens/Color.tsx
+++ b/web/.storybook/docs/ThemeTokens/Color.tsx
@@ -86,7 +86,7 @@ const SECTION_MATCHERS: Array<{
{
id: "surfaces",
test: (n) =>
- /^--(?:background|foreground|foreground-secondary|foreground-tertiary|muted|surface-code(?:-header)?|popover|card|modal|header)(?:-foreground)?$/.test(
+ /^--(?:background|foreground|foreground-secondary|foreground-tertiary|icon|muted|surface-code(?:-header)?|popover|card|modal|header)(?:-foreground)?$/.test(
n,
),
},
@@ -443,7 +443,8 @@ function renderSample(
if (
name === "--foreground" ||
name === "--foreground-secondary" ||
- name === "--foreground-tertiary"
+ name === "--foreground-tertiary" ||
+ name === "--icon-foreground"
)
base = "--background";
if (name === "--muted-foreground") base = "--muted";
@@ -764,7 +765,7 @@ function ColorMappingsSection({ ctx }: { ctx: TokenContext }) {
<summary className="flex cursor-pointer list-none items-start gap-2 [&::-webkit-details-marker]:hidden">
<ChevronRight
aria-hidden
- className="text-muted-foreground mt-1.5 size-4 shrink-0 transition-transform group-open:rotate-90"
+ className="text-muted-foreground icon-base mt-1.5 shrink-0 transition-transform group-open:rotate-90"
/>
<div className="flex flex-1 items-baseline justify-between gap-4">
<div>
diff --git a/web/.storybook/docs/ThemeTokens/Icons.stories.tsx b/web/.storybook/docs/ThemeTokens/Icons.stories.tsx
new file mode 100644
index 0000000000..5f3a49dfd4
--- /dev/null
+++ b/web/.storybook/docs/ThemeTokens/Icons.stories.tsx
@@ -0,0 +1,13 @@
+import preview from "../../preview";
+import { Icons as IconsPage } from "./Icons";
+
+const meta = preview.meta({
+ component: IconsPage,
+ parameters: {
+ layout: "fullscreen",
+ },
+});
+
+// Named after the component so Storybook's single-story hoisting collapses
+// Design / Icons into one sidebar leaf.
+export const Icons = meta.story({});
diff --git a/web/.storybook/docs/ThemeTokens/Icons.tsx b/web/.storybook/docs/ThemeTokens/Icons.tsx
new file mode 100644
index 0000000000..18cbbfbae2
--- /dev/null
+++ b/web/.storybook/docs/ThemeTokens/Icons.tsx
@@ -0,0 +1,155 @@
+/**
+ * Storybook-only icon reference (Design → Icons): the three size tokens, the
+ * default icon colour, alignment next to a label, and stroke width. Every
+ * specimen renders through the app's own utilities, so the page shows what
+ * the stylesheet does rather than describing it.
+ */
+import { File, Search, Settings } from "lucide-react";
+import { type ReactNode } from "react";
+
+import { Eyebrow, InlineCode, PageHeader, PageSection, Panel } from "./shared";
+
+const SIZES = [
+ { utility: "icon-sm", px: 12, spacing: 3 },
+ { utility: "icon-base", px: 14, spacing: 3.5 },
+ { utility: "icon-lg", px: 20, spacing: 5 },
+ { utility: "icon-xl", px: 28, spacing: 7 },
+] as const;
+
+function Example({
+ verdict,
+ caption,
+ children,
+}: {
+ verdict: "Do" | "Don't";
+ caption: ReactNode;
+ children: ReactNode;
+}) {
+ return (
+ <div className="flex min-w-0 flex-col gap-1.5">
+ <Panel>
+ <div className="flex items-start gap-2 border-b px-4 py-3">
+ <Eyebrow>{verdict}</Eyebrow>
+ </div>
+ <div className="flex grow items-center px-4 py-5">{children}</div>
+ </Panel>
+ <p className="text-muted-foreground text-xs">{caption}</p>
+ </div>
+ );
+}
+
+export function Icons() {
+ return (
+ <div className="p-6 md:p-10">
+ <div className="mx-auto flex w-full max-w-5xl flex-col gap-10">
+ <PageHeader
+ eyebrow="Design tokens"
+ title="Icons"
+ lede={
+ <>
+ Four sizes, one default colour, lucide default stroke. Sizes are
+ utilities in{" "}
+ <code className="font-mono">src/styles/globals.css</code>.
+ </>
+ }
+ meta="icon-sm · icon-base · icon-lg · icon-xl · text-icon-foreground"
+ />
+
+ <PageSection
+ title="Size"
+ blurb="Icons take a size only from these four utilities. No raw h-*/w-*/size-* classes and no size prop."
+ aside={<InlineCode>@utility icon-*</InlineCode>}
+ >
+ <Panel>
+ <div className="flex flex-wrap items-center gap-10 px-4 py-5">
+ {SIZES.map((size) => (
+ <div key={size.utility} className="flex items-center gap-3">
+ <Settings
+ className={`${size.utility} text-icon-foreground`}
+ aria-hidden
+ />
+ <InlineCode>{size.utility}</InlineCode>
+ <span className="text-muted-foreground font-mono text-[11px]">
+ {size.px}px · --spacing × {size.spacing}
+ </span>
+ </div>
+ ))}
+ </div>
+ </Panel>
+ <p className="text-muted-foreground text-sm">
+ icon-base is the default. icon-lg is for headers, toasts and
+ illustrations; icons inside buttons and menu rows are icon-base.
+ icon-xl covers 28 to 36px illustrations. Icons at 40px and above
+ (chart and analytics empty states, the crash page) keep their raw
+ sizes: illustration sizes, decision deferred. Every icon sets its
+ size on the element itself; primitives do not size their svg
+ children.
+ </p>
+ </PageSection>
+
+ <PageSection
+ title="Colour"
+ blurb="text-icon-foreground is the default, set on the icon element, never through a container selector; it shares its value with muted-foreground. An icon paired with text is the same colour as the text or one step lighter, never darker. Status colours are the only exception."
+ aside={<InlineCode>text-icon-foreground</InlineCode>}
+ >
+ <div className="grid gap-4 lg:grid-cols-2">
+ <Example
+ verdict="Do"
+ caption="Icon one step lighter than its label."
+ >
+ <span className="text-foreground flex items-center gap-1.5 text-sm">
+ <Search
+ className="icon-base text-icon-foreground"
+ aria-hidden
+ />
+ Search traces
+ </span>
+ </Example>
+ <Example verdict="Don't" caption="Icon darker than its label.">
+ <span className="text-muted-foreground flex items-center gap-1.5 text-sm">
+ <Search className="icon-base text-foreground" aria-hidden />
+ Search traces
+ </span>
+ </Example>
+ </div>
+ </PageSection>
+
+ <PageSection
+ title="Alignment"
+ blurb="An icon paired with a short single-line label is centre-aligned with that label, not baseline-aligned. Geometric centring is the start, not the end: some glyphs need a nudge of a pixel or two so the pair reads balanced. Icons beside multi-line text, such as a title with a subtitle, follow the layout of that block."
+ aside={<InlineCode>items-center</InlineCode>}
+ >
+ <div className="grid gap-4 lg:grid-cols-2">
+ <Example verdict="Do" caption="Icon centred on the label.">
+ <span className="text-foreground flex items-center gap-1.5 text-sm">
+ <File className="icon-base text-icon-foreground" aria-hidden />
+ File
+ </span>
+ </Example>
+ <Example verdict="Don't" caption="Icon sitting on the baseline.">
+ <span className="text-foreground flex items-baseline gap-1.5 text-sm">
+ <File className="icon-base text-icon-foreground" aria-hidden />
+ File
+ </span>
+ </Example>
+ </div>
+ </PageSection>
+
+ <PageSection
+ title="Stroke width"
+ blurb="Lucide default only. No strokeWidth prop on any icon."
+ aside={<InlineCode>strokeWidth</InlineCode>}
+ >
+ <Panel>
+ <div className="flex items-center gap-3 px-4 py-5">
+ <Settings className="icon-lg text-icon-foreground" aria-hidden />
+ <span className="text-muted-foreground font-mono text-[11px]">
+ stroke-width 2 · lucide default
+ </span>
+ </div>
+ </Panel>
+ </PageSection>
+ </div>
+ </div>
+ );
+}
diff --git a/web/.storybook/docs/ThemeTokens/shared.tsx b/web/.storybook/docs/ThemeTokens/shared.tsx
index 698ade462f..21ebae92c8 100644
--- a/web/.storybook/docs/ThemeTokens/shared.tsx
+++ b/web/.storybook/docs/ThemeTokens/shared.tsx
@@ -358,7 +358,7 @@ export function CollapsedSection({
<summary className="flex cursor-pointer list-none items-start gap-2 [&::-webkit-details-marker]:hidden">
<ChevronRight
aria-hidden
- className="text-muted-foreground mt-1.5 size-4 shrink-0 transition-transform group-open:rotate-90"
+ className="text-muted-foreground icon-base mt-1.5 shrink-0 transition-transform group-open:rotate-90"
/>
<div className="flex flex-1 items-baseline justify-between gap-4">
<div>
diff --git a/web/eslint.config.mjs b/web/eslint.config.mjs
index 8704a02261..2019e7b232 100644
--- a/web/eslint.config.mjs
+++ b/web/eslint.config.mjs
@@ -449,6 +449,15 @@ export default [
files: ["src/**/*.{ts,tsx}"],
rules: {
"@repo/no-raw-font-weight": "error",
+ // Raw sizes of 40px and above are illustrations; the rule allows them by size.
+ // Spinner sizes follow their container, not the icon scale.
+ "@repo/no-raw-icon-size": [
+ "error",
+ {
+ exceptions: ["src/components/design-system/Spinner/Spinner.tsx"],
+ requireSize: true,
+ },
+ ],
"@repo/no-arbitrary-colors": "error",
},
},
diff --git a/web/src/components/ActionButton.stories.tsx b/web/src/components/ActionButton.stories.tsx
index 187a15aac3..ecb2830892 100644
--- a/web/src/components/ActionButton.stories.tsx
+++ b/web/src/components/ActionButton.stories.tsx
@@ -18,7 +18,7 @@ export const Default = meta.story({
export const WithIcon = meta.story({
args: {
children: "Create item",
- icon: <PlusIcon className="h-4 w-4" aria-hidden="true" />,
+ icon: <PlusIcon className="icon-base" aria-hidden="true" />,
onClick: fn(),
},
});
diff --git a/web/src/components/ActionButton.tsx b/web/src/components/ActionButton.tsx
index e0b91306ed..1585905501 100644
--- a/web/src/components/ActionButton.tsx
+++ b/web/src/components/ActionButton.tsx
@@ -168,11 +168,11 @@ const ButtonContent = React.forwardRef<
const content = (
<>
{!hasAccess ? (
- <Lock className="mr-1 h-4 w-4" />
+ <Lock className="icon-base mr-1" />
) : !hasEntitlement ? (
- <AlertCircle className="mr-1 h-4 w-4" />
+ <AlertCircle className="icon-base mr-1" />
) : hasReachedLimit ? (
- <Sparkle className="mr-1 h-4 w-4" />
+ <Sparkle className="icon-base mr-1" />
) : icon ? (
<div className="mr-1">{icon}</div>
) : null}
diff --git a/web/src/components/BatchExportTableButton.tsx b/web/src/components/BatchExportTableButton.tsx
index e351fca141..5948944519 100644
--- a/web/src/components/BatchExportTableButton.tsx
+++ b/web/src/components/BatchExportTableButton.tsx
@@ -99,7 +99,7 @@ export const BatchExportTableButton: React.FC<BatchExportTableButtonProps> = (
{isExporting ? (
<Spinner size="sm" />
) : (
- <Download className="h-4 w-4" />
+ <Download className="icon-base text-icon-foreground" />
)}
</Button>
</DropdownMenuTrigger>
@@ -109,7 +109,7 @@ export const BatchExportTableButton: React.FC<BatchExportTableButtonProps> = (
{warningMessage && (
<div className="text-muted-foreground px-2 py-1.5 text-xs">
<div className="flex items-start gap-1.5">
- <Info className="mt-0.5 h-3.5 w-3.5 shrink-0" />
+ <Info className="icon-base mt-0.5 shrink-0" />
<span>{warningMessage}</span>
</div>
</div>
diff --git a/web/src/components/ButtonWithIcon.tsx b/web/src/components/ButtonWithIcon.tsx
index 73458e82e0..04a0036f76 100644
--- a/web/src/components/ButtonWithIcon.tsx
+++ b/web/src/components/ButtonWithIcon.tsx
@@ -1,6 +1,7 @@
import { Button, type ButtonProps } from "@/src/components/ui/button";
import { type LucideIcon } from "lucide-react";
import { forwardRef } from "react";
+import { cn } from "@/src/utils/tailwind";
export const ButtonWithIcon = forwardRef<
HTMLButtonElement,
@@ -14,7 +15,17 @@ export const ButtonWithIcon = forwardRef<
}
>(({ icon: Icon, text, ...buttonProps }, ref) => (
<Button ref={ref} className="gap-1.5" {...buttonProps}>
- <Icon className="size-4" aria-hidden="true" />
+ <Icon
+ aria-hidden="true"
+ className={cn(
+ buttonProps.size === "xs" || buttonProps.size === "icon-xs"
+ ? "icon-sm"
+ : "icon-base",
+ (buttonProps.variant === "outline" ||
+ buttonProps.variant === "ghost") &&
+ "text-icon-foreground",
+ )}
+ />
{text}
</Button>
));
diff --git a/web/src/components/ChatMessages/ChatMessageComponent.tsx b/web/src/components/ChatMessages/ChatMessageComponent.tsx
index f354d51505..b7c2e0c9d3 100644
--- a/web/src/components/ChatMessages/ChatMessageComponent.tsx
+++ b/web/src/components/ChatMessages/ChatMessageComponent.tsx
@@ -296,7 +296,7 @@ export const ChatMessageComponent: React.FC<ChatMessageProps> = ({
{...listeners}
className="flex w-3 cursor-move items-center justify-center opacity-50 transition-opacity hover:opacity-100"
>
- <GripVertical className="h-3 w-3" />
+ <GripVertical className="icon-sm" />
</div>
<CardContent className="flex flex-1 flex-row items-center gap-2 p-0 pl-1">
<div className="bg-background sticky top-0 bottom-0 z-10 flex w-16 shrink-0 flex-col gap-1">
@@ -377,7 +377,7 @@ export const ChatMessageComponent: React.FC<ChatMessageProps> = ({
className="h-5 w-5 shrink-0 rounded-full p-0 opacity-60 transition-all hover:opacity-100"
aria-label="Delete message"
>
- <MinusCircleIcon size={14} />
+ <MinusCircleIcon className="icon-base text-icon-foreground" />
</Button>
</CardContent>
</div>
diff --git a/web/src/components/ChatMessages/index.tsx b/web/src/components/ChatMessages/index.tsx
index 3687a23892..38b8647c65 100644
--- a/web/src/components/ChatMessages/index.tsx
+++ b/web/src/components/ChatMessages/index.tsx
@@ -291,7 +291,7 @@ const AddMessageButton: React.FC<AddMessageButtonProps> = ({
className="flex-1 rounded-r-none border-r-0"
onClick={addRegularMessage}
>
- <PlusCircleIcon size={14} className="mr-2" />
+ <PlusCircleIcon className="icon-base text-icon-foreground mr-2" />
<p>Message</p>
</Button>
<DropdownMenu>
@@ -301,7 +301,7 @@ const AddMessageButton: React.FC<AddMessageButtonProps> = ({
variant="outline"
className="rounded-l-none border-l px-2"
>
- <ChevronDownIcon size={14} />
+ <ChevronDownIcon className="icon-base text-icon-foreground" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent
@@ -357,7 +357,7 @@ const AddMessageButton: React.FC<AddMessageButtonProps> = ({
className="flex-1"
onClick={addPlaceholderMessage}
>
- <PlusCircleIcon size={14} className="mr-2" />
+ <PlusCircleIcon className="icon-base text-icon-foreground mr-2" />
<p>Placeholder</p>
</Button>
</TooltipTrigger>
diff --git a/web/src/components/ChatMessages/messageSearch/toolbar.tsx b/web/src/components/ChatMessages/messageSearch/toolbar.tsx
index 37d2e93812..dd80192f81 100644
--- a/web/src/components/ChatMessages/messageSearch/toolbar.tsx
+++ b/web/src/components/ChatMessages/messageSearch/toolbar.tsx
@@ -50,7 +50,7 @@ export function MessageSearchToolbar({ className }: { className?: string }) {
onClick={openSearch}
aria-label="Find in messages"
>
- <Search className="h-3.5 w-3.5" />
+ <Search className="icon-base text-icon-foreground" />
<span className="hidden lg:inline">Find</span>
</Button>
);
@@ -68,7 +68,7 @@ export function MessageSearchToolbar({ className }: { className?: string }) {
className,
)}
>
- <Search className="text-muted-foreground ml-1 h-3.5 w-3.5 shrink-0" />
+ <Search className="text-muted-foreground icon-base ml-1 shrink-0" />
<Input
ref={inputRef}
value={queryInput}
@@ -137,7 +137,7 @@ function IconButton({
disabled={disabled}
aria-label={label}
>
- <Icon className="h-3.5 w-3.5" />
+ <Icon className="icon-base text-icon-foreground" />
</Button>
);
}
diff --git a/web/src/components/CrashModal/CrashModal.tsx b/web/src/components/CrashModal/CrashModal.tsx
index 50243dda55..b52442e6da 100644
--- a/web/src/components/CrashModal/CrashModal.tsx
+++ b/web/src/components/CrashModal/CrashModal.tsx
@@ -18,7 +18,7 @@ export const CrashModal = ({
return (
<div className="border-border bg-card w-full max-w-xl rounded-xl border p-6 shadow-sm sm:p-8">
<div className="bg-destructive/10 text-destructive flex size-10 items-center justify-center rounded-full">
- <CircleAlert className="size-5" aria-hidden="true" />
+ <CircleAlert className="icon-lg" aria-hidden="true" />
</div>
<div className="mt-4 min-w-0">
diff --git a/web/src/components/HeaderActionMenuRow.tsx b/web/src/components/HeaderActionMenuRow.tsx
index 0a3c1ce312..8bade295dd 100644
--- a/web/src/components/HeaderActionMenuRow.tsx
+++ b/web/src/components/HeaderActionMenuRow.tsx
@@ -62,7 +62,16 @@ export function HeaderActionMenuRows({
<HeaderActionMenuRow
key={item.id}
label={item.title}
- icon={Icon && <Icon className="h-4 w-4" />}
+ icon={
+ Icon && (
+ <Icon
+ className={cn(
+ "icon-base",
+ item.variant !== "destructive" && "text-icon-foreground",
+ )}
+ />
+ )
+ }
badge={item.badge}
variant={item.variant}
disabled={item.disabled !== undefined}
diff --git a/web/src/components/ItemBadge.tsx b/web/src/components/ItemBadge.tsx
index cde65e6287..b33ea47fb5 100644
--- a/web/src/components/ItemBadge.tsx
+++ b/web/src/components/ItemBadge.tsx
@@ -65,7 +65,7 @@ const iconMap = {
EXPERIMENT: FlaskConical,
} as const;
-const iconVariants = cva("h-4 w-4", {
+const iconVariants = cva("shrink-0", {
variants: {
type: {
TRACE: "text-observation-trace",
@@ -102,16 +102,16 @@ export function ItemTypeIcon({
className?: string;
}) {
const Icon = iconMap[type];
- return <Icon className={cn("shrink-0", iconVariants({ type }), className)} />;
+ return (
+ <Icon className={cn("icon-base", iconVariants({ type }), className)} />
+ );
}
export function renderFilterIcon(value: string): React.ReactNode {
const type = value as LangfuseItemType;
const Icon = iconMap[type];
if (!Icon) return null;
- return (
- <Icon className={cn("h-3.5 w-3.5 shrink-0", iconVariants({ type }))} />
- );
+ return <Icon className={cn("icon-base", iconVariants({ type }))} />;
}
/**
@@ -135,13 +135,11 @@ export function ItemBadge({
isSmall?: boolean;
className?: string;
}) {
- const Icon = iconMap[type] || ListTree; // Default to ListTree if unknown type
+ const Icon = iconMap[type] || ListTree;
- // Modify this line to ensure the icon is properly sized
const iconClass = cn(
- "shrink-0",
+ isSmall ? "icon-sm" : "icon-base",
iconVariants({ type }),
- isSmall ? "h-3 w-3" : "h-4 w-4",
className,
);
@@ -153,11 +151,7 @@ export function ItemBadge({
title={label}
className={cn(
"flex max-w-fit items-center gap-1 overflow-hidden whitespace-nowrap",
- // With a label the horizontal padding is what separates the icon from the
- // text. Without one there is nothing to separate, and the padding only
- // made a square icon sit in a rectangle. `max-w-none` is what lets it be
- // square: `max-w-fit` caps the width at the icon's own width, so a set
- // size would apply to the height alone.
+ // Icon-only: square box, `max-w-none` so the width is not capped at the icon.
showLabel
? "px-1"
: cn(
diff --git a/web/src/components/JSONSchemaEditor.tsx b/web/src/components/JSONSchemaEditor.tsx
index 8d7aafa8e4..71c4f09ac3 100644
--- a/web/src/components/JSONSchemaEditor.tsx
+++ b/web/src/components/JSONSchemaEditor.tsx
@@ -76,7 +76,7 @@ export const JSONSchemaEditor: React.FC<JSONSchemaEditorProps> = ({
className="hover:text-foreground inline-flex items-center underline"
>
See JSON Schema examples
- <ArrowUpRight className="ml-0.5 h-3 w-3" />
+ <ArrowUpRight className="icon-sm ml-0.5" />
</a>
</p>
)}
diff --git a/web/src/components/MediaFileCard/MediaFileCard.tsx b/web/src/components/MediaFileCard/MediaFileCard.tsx
index d5c09a1710..877f6eb850 100644
--- a/web/src/components/MediaFileCard/MediaFileCard.tsx
+++ b/web/src/components/MediaFileCard/MediaFileCard.tsx
@@ -45,7 +45,7 @@ export function MediaFileCard({
title={fileName}
className="from-accent-light-green/30 to-muted hover:from-accent-light-green/40 hover:to-muted/90 dark:from-accent-dark-green/20 dark:to-muted dark:hover:from-accent-dark-green/30 group relative flex h-24 w-24 shrink-0 flex-col items-center justify-center gap-2 rounded-md border bg-linear-to-br px-2 transition-colors"
>
- <Icon className="h-5 w-5" />
+ <Icon className="icon-lg" />
<div className="flex w-full min-w-0 flex-col items-center gap-1">
<span
className={
diff --git a/web/src/components/MediaTag/MediaTag.tsx b/web/src/components/MediaTag/MediaTag.tsx
index 122e0ba346..216132fbb0 100644
--- a/web/src/components/MediaTag/MediaTag.tsx
+++ b/web/src/components/MediaTag/MediaTag.tsx
@@ -166,7 +166,7 @@ const MEDIA_KIND_PREVIEW = {
),
file: () => (
<div className="text-muted-foreground flex h-24 w-64 flex-col items-center justify-center gap-2">
- <File className="h-5 w-5" />
+ <File className="icon-lg" />
<span className="text-xs">No inline preview</span>
</div>
),
@@ -188,7 +188,7 @@ function PeekBody({
if (status === "error") {
return (
<div className="text-muted-foreground flex h-24 w-64 flex-col items-center justify-center gap-2">
- <ImageOff className="h-5 w-5" />
+ <ImageOff className="icon-lg" />
<span className="text-xs">Failed to load media</span>
</div>
);
@@ -270,9 +270,9 @@ export const MediaTag = React.forwardRef<HTMLButtonElement, MediaTagProps>(
}}
>
{intent === "attachment" ? (
- <Paperclip className="h-2.5 w-2.5 shrink-0" />
+ <Paperclip className="icon-sm shrink-0" />
) : (
- <KindIcon kind={kind} className="h-2.5 w-2.5 shrink-0" />
+ <KindIcon kind={kind} className="icon-sm shrink-0" />
)}
<span
className={cn(
@@ -295,7 +295,7 @@ export const MediaTag = React.forwardRef<HTMLButtonElement, MediaTagProps>(
>
<div className="flex items-center justify-between gap-4">
<div className="text-muted-foreground flex min-w-0 items-center gap-1.5 text-xs">
- <KindIcon kind={kind} className="h-3.5 w-3.5 shrink-0" />
+ <KindIcon kind={kind} className="icon-base shrink-0" />
<span
className="max-w-[20ch] truncate font-mono leading-4"
title={contentType}
@@ -321,7 +321,7 @@ export const MediaTag = React.forwardRef<HTMLButtonElement, MediaTagProps>(
>
<a href={url} target="_blank" rel="noopener noreferrer">
{openActionLabel ? <span>{openActionLabel}</span> : null}
- <ExternalLink className="h-3 w-3" />
+ <ExternalLink className="icon-sm text-icon-foreground" />
</a>
</Button>
) : (
@@ -333,7 +333,7 @@ export const MediaTag = React.forwardRef<HTMLButtonElement, MediaTagProps>(
title="Open in new tab"
>
{openActionLabel ? <span>{openActionLabel}</span> : null}
- <ExternalLink className="h-3 w-3" />
+ <ExternalLink className="icon-sm text-icon-foreground" />
</Button>
)}
</div>
diff --git a/web/src/components/ModelParameters/index.tsx b/web/src/components/ModelParameters/index.tsx
index 442e0f17d0..ed608fa065 100644
--- a/web/src/components/ModelParameters/index.tsx
+++ b/web/src/components/ModelParameters/index.tsx
@@ -125,7 +125,7 @@ export const ModelParameters: React.FC<ModelParamsContext> = ({
className="relative h-7 w-7"
disabled={formDisabled}
>
- <Settings2 size={14} />
+ <Settings2 className="icon-base text-icon-foreground" />
{modelSettingsUsed && (
<div className="bg-primary absolute -top-0.5 -right-0.5 h-2 w-2 rounded-full" />
)}
@@ -594,7 +594,7 @@ const ProviderOptionsInput = ({
</span>
<Tooltip>
<TooltipTrigger>
- <InfoIcon className="text-muted-foreground size-3" />
+ <InfoIcon className="text-muted-foreground icon-sm" />
</TooltipTrigger>
<TooltipContent className="max-w-[200px] p-2">
Additional options to pass to the invocation. Please check your
@@ -714,7 +714,7 @@ function AddLlmConnectionSelectAction({ onOpen }: { onOpen: () => void }) {
<>
<SelectSeparator />
<Button type="button" variant="secondary" onClick={onOpen}>
- <PlusIcon className="mr-1.5 -ml-0.5 h-5 w-5" aria-hidden="true" />
+ <PlusIcon className="icon-base mr-1.5 -ml-0.5" aria-hidden="true" />
Add LLM Connection
</Button>
</>
diff --git a/web/src/components/PagedSettingsContainer.tsx b/web/src/components/PagedSettingsContainer.tsx
index 65d8402795..4e6ef4c7a4 100644
--- a/web/src/components/PagedSettingsContainer.tsx
+++ b/web/src/components/PagedSettingsContainer.tsx
@@ -90,7 +90,7 @@ export const PagedSettingsContainer = ({
<SelectItem key={page.title} value={page.slug}>
{page.title}
{"href" in page && (
- <ArrowUpRight size={14} className="ml-1 inline" />
+ <ArrowUpRight className="icon-base ml-1 inline" />
)}
</SelectItem>
))}
@@ -120,7 +120,7 @@ export const PagedSettingsContainer = ({
className="hover:bg-muted hover:text-foreground flex h-8 flex-row items-center gap-2 rounded-sm px-2"
>
{page.title}
- <ArrowUpRight size={14} className="inline" />
+ <ArrowUpRight className="icon-base inline" />
</Link>
) : (
<span
diff --git a/web/src/components/ScoreValue.tsx b/web/src/components/ScoreValue.tsx
index f35493a89c..823422f6dc 100644
--- a/web/src/components/ScoreValue.tsx
+++ b/web/src/components/ScoreValue.tsx
@@ -51,7 +51,7 @@ export const ScoreValue = ({
aria-label={`View comment for ${name}: ${value}`}
className="inline-block shrink-0"
>
- <MessageCircleMoreIcon className="text-foreground-tertiary mb-0.25 size-3!" />
+ <MessageCircleMoreIcon className="text-foreground-tertiary icon-sm! mb-0.25" />
</HoverCardTrigger>
<HoverCardContent className="max-h-[50dvh] overflow-y-auto text-xs break-normal whitespace-normal">
<p className="whitespace-pre-wrap">{score.comment}</p>
@@ -64,7 +64,7 @@ export const ScoreValue = ({
className="flex items-center gap-1 text-blue-600 hover:underline"
target="_blank"
>
- <ExternalLinkIcon className="h-3 w-3" />
+ <ExternalLinkIcon className="icon-sm" />
View execution trace
</Link>
</div>
@@ -78,7 +78,7 @@ export const ScoreValue = ({
aria-label={`View metadata for ${name}: ${value}`}
className="inline-block shrink-0"
>
- <BracesIcon className="text-foreground-tertiary mb-0.25 size-3!" />
+ <BracesIcon className="text-foreground-tertiary icon-sm! mb-0.25" />
</HoverCardTrigger>
<HoverCardContent className="max-h-[50dvh] overflow-y-auto rounded-md border-none p-0 text-xs break-normal whitespace-normal">
<JSONView codeClassName="rounded-md!" json={score.metadata} />
diff --git a/web/src/components/SettingsTable/SettingsTable.tsx b/web/src/components/SettingsTable/SettingsTable.tsx
index 1683baf3c9..c0228b276d 100644
--- a/web/src/components/SettingsTable/SettingsTable.tsx
+++ b/web/src/components/SettingsTable/SettingsTable.tsx
@@ -201,7 +201,7 @@ export function SettingsTable<TData extends object>({
title="Row height"
aria-label="Row height"
>
- <Rows3 className="h-4 w-4" />
+ <Rows3 className="icon-base text-icon-foreground" />
</Button>
)}
</DropdownMenu>
diff --git a/web/src/components/date-picker.tsx b/web/src/components/date-picker.tsx
index c48193b826..9c488e4ebb 100644
--- a/web/src/components/date-picker.tsx
+++ b/web/src/components/date-picker.tsx
@@ -57,7 +57,7 @@ export function DatePicker({
className,
)}
>
- <CalendarIcon className="mr-2 h-4 w-4" />
+ <CalendarIcon className="icon-base text-icon-foreground mr-2" />
{date ? (
format(date, includeTimePicker ? "PPP pp" : "PPP")
) : (
@@ -84,7 +84,7 @@ export function DatePicker({
onClick={() => onChange(undefined)}
title="reset date"
>
- <X size={14} />
+ <X className="icon-base text-icon-foreground" />
</Button>
)}
</div>
@@ -236,7 +236,7 @@ export function DatePickerWithRange({
!internalDateRange && "text-muted-foreground",
)}
>
- <CalendarIcon className="mr-2 h-4 w-4" />
+ <CalendarIcon className="icon-base text-icon-foreground mr-2" />
{internalDateRange?.from ? (
internalDateRange.to ? (
<>
@@ -523,7 +523,7 @@ export function TimeRangePicker({
// Custom range - show calendar icon and date range
return (
<div className="flex items-center gap-2">
- <CalendarIcon className="h-4 w-4" />
+ <CalendarIcon className="icon-base" />
<span>{customLabel}</span>
</div>
);
@@ -561,7 +561,7 @@ export function TimeRangePicker({
}
return (
<div className="flex items-center gap-2">
- <CalendarIcon className="h-4 w-4" />
+ <CalendarIcon className="icon-base" />
<span>Select time range</span>
</div>
);
@@ -659,7 +659,7 @@ export function TimeRangePicker({
}}
>
<span className="bg-muted flex h-5 w-10 items-center justify-center rounded px-1.5 text-center text-xs">
- <CalendarIcon className="h-3 w-3" />
+ <CalendarIcon className="icon-sm" />
</span>
<span>Select from calendar</span>
</div>
diff --git a/web/src/components/deleteButton.tsx b/web/src/components/deleteButton.tsx
index 19e3ff25f9..4ec45d206b 100644
--- a/web/src/components/deleteButton.tsx
+++ b/web/src/components/deleteButton.tsx
@@ -123,7 +123,7 @@ export function DeleteButton({
{({ openDialog }) =>
icon ? (
<IconOnlyButton
- icon={<TrashIcon className="h-4 w-4" />}
+ icon={<TrashIcon className="icon-base" />}
label={title ?? "Delete"}
aria-label={ariaLabel ?? "delete"}
disabledReason={
@@ -158,9 +158,9 @@ export function DeleteButton({
}}
>
{hasAccess ? (
- <TrashIcon className="mr-2 h-4 w-4" />
+ <TrashIcon className="icon-base text-icon-foreground mr-2" />
) : (
- <LockIcon className="mr-2 h-4 w-4" />
+ <LockIcon className="icon-base text-icon-foreground mr-2" />
)}
Delete
</Button>
@@ -185,7 +185,7 @@ export function DeleteButton({
<PopoverAnchor asChild>
<span className="inline-flex">
<IconOnlyButton
- icon={<TrashIcon className="h-4 w-4" />}
+ icon={<TrashIcon className="icon-base" />}
label={title ?? "Delete"}
aria-label={ariaLabel ?? "delete"}
disabledReason={
@@ -224,9 +224,9 @@ export function DeleteButton({
}}
>
{hasAccess ? (
- <TrashIcon className="mr-2 h-4 w-4" />
+ <TrashIcon className="icon-base text-icon-foreground mr-2" />
) : (
- <LockIcon className="mr-2 h-4 w-4" />
+ <LockIcon className="icon-base text-icon-foreground mr-2" />
)}
Delete
</Button>
diff --git a/web/src/components/design-system/Alert/Alert.stories.tsx b/web/src/components/design-system/Alert/Alert.stories.tsx
index 93d87c0781..0de0aa41db 100644
--- a/web/src/components/design-system/Alert/Alert.stories.tsx
+++ b/web/src/components/design-system/Alert/Alert.stories.tsx
@@ -34,7 +34,7 @@ const dismissibleChildren = (
aria-label="Dismiss alert"
onClick={dismiss}
>
- <X className="size-4" aria-hidden="true" />
+ <X className="icon-base" aria-hidden="true" />
</button>
<Alert.Title>Review required</Alert.Title>
<Alert.Description>Check this warning before continuing.</Alert.Description>
@@ -113,7 +113,7 @@ export const DismissAction = meta.story({
"[&>[data-slot=alert-icon]]:top-3",
"[&>[data-slot=alert-icon]]:left-3",
);
- await expect(icon).toHaveClass("absolute", "size-4");
+ await expect(icon).toHaveClass("absolute", "icon-base");
await expect(icon).toHaveAttribute("aria-hidden", "true");
await expect(dismissButton).not.toHaveClass("pl-6");
await userEvent.click(dismissButton);
diff --git a/web/src/components/design-system/Alert/Alert.tsx b/web/src/components/design-system/Alert/Alert.tsx
index 2fd18f963b..52cda55064 100644
--- a/web/src/components/design-system/Alert/Alert.tsx
+++ b/web/src/components/design-system/Alert/Alert.tsx
@@ -66,7 +66,7 @@ function AlertRoot({
{Icon ? (
<Icon
data-slot="alert-icon"
- className="absolute size-4"
+ className="icon-base absolute"
aria-hidden="true"
/>
) : null}
diff --git a/web/src/components/design-system/Badge/Badge.tsx b/web/src/components/design-system/Badge/Badge.tsx
index a8c5b2d0ec..23661f764c 100644
--- a/web/src/components/design-system/Badge/Badge.tsx
+++ b/web/src/components/design-system/Badge/Badge.tsx
@@ -103,7 +103,7 @@ export function Badge({
<TrailingIcon
aria-hidden
className={cn(
- "size-3 shrink-0",
+ "icon-sm shrink-0",
trailingIconTone === "link"
? "text-foreground-tertiary -ml-0.5"
: "text-foreground-tertiary",
diff --git a/web/src/components/design-system/Button/Button.tsx b/web/src/components/design-system/Button/Button.tsx
index 74fef5a2c0..1450e1e401 100644
--- a/web/src/components/design-system/Button/Button.tsx
+++ b/web/src/components/design-system/Button/Button.tsx
@@ -4,6 +4,7 @@ import Link from "next/link";
import { type MouseEventHandler, type Ref } from "react";
import { Spinner } from "@/src/components/design-system/Spinner/Spinner";
+import { cn } from "@/src/utils/tailwind";
const buttonVariants = cva(
"inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
@@ -29,6 +30,20 @@ const buttonVariants = cva(
},
);
+const buttonIconVariants = cva("icon-base shrink-0", {
+ variants: {
+ variant: {
+ primary: "",
+ secondary: "",
+ destructive: "",
+ ghost: "text-icon-foreground",
+ },
+ },
+ defaultVariants: {
+ variant: "primary",
+ },
+});
+
type ButtonProps = {
text: string;
variant?: "primary" | "secondary" | "destructive" | "ghost";
@@ -61,6 +76,7 @@ export function Button(props: ButtonProps) {
variant: props.variant,
size: props.size,
});
+ const iconClassName = buttonIconVariants({ variant: props.variant });
if (props.href !== undefined) {
const Icon = props.icon;
@@ -80,16 +96,22 @@ export function Button(props: ButtonProps) {
target="_blank"
rel={isLangfuseDomain ? "noopener" : "noopener noreferrer"}
>
- {Icon ? <Icon className="size-3.5 shrink-0" aria-hidden /> : null}
+ {Icon ? <Icon className={iconClassName} aria-hidden /> : null}
{props.text}
- <ExternalLink className="size-3" aria-hidden />
+ <ExternalLink
+ className={cn(
+ "icon-sm",
+ props.variant === "ghost" && "text-icon-foreground",
+ )}
+ aria-hidden
+ />
</a>
);
}
return (
<Link className={className} href={props.href} ref={props.ref}>
- {Icon ? <Icon className="size-3.5 shrink-0" aria-hidden /> : null}
+ {Icon ? <Icon className={iconClassName} aria-hidden /> : null}
{props.text}
</Link>
);
@@ -114,7 +136,7 @@ export function Button(props: ButtonProps) {
</span>
) : (
<>
- {Icon ? <Icon className="size-3.5 shrink-0" aria-hidden /> : null}
+ {Icon ? <Icon className={iconClassName} aria-hidden /> : null}
{props.text}
</>
)}
diff --git a/web/src/components/design-system/Callout/Callout.stories.tsx b/web/src/components/design-system/Callout/Callout.stories.tsx
index 76973d5520..8c6f4168fe 100644
--- a/web/src/components/design-system/Callout/Callout.stories.tsx
+++ b/web/src/components/design-system/Callout/Callout.stories.tsx
@@ -10,7 +10,7 @@ const meta = preview.meta({
const message = (
<div className="flex items-start gap-2 sm:items-center">
- <Bot className="mt-0.5 h-4 w-4 shrink-0 sm:mt-0" />
+ <Bot className="icon-base mt-0.5 shrink-0 sm:mt-0" />
<span>
<span className="font-bold">
Langfuse works great with your AI agents.
diff --git a/web/src/components/design-system/Callout/Callout.tsx b/web/src/components/design-system/Callout/Callout.tsx
index 214fe3f42d..53ea5a28b0 100644
--- a/web/src/components/design-system/Callout/Callout.tsx
+++ b/web/src/components/design-system/Callout/Callout.tsx
@@ -86,7 +86,7 @@ export function Callout({
onClick={action.onClick}
type="button"
>
- {Icon ? <Icon className="size-4" aria-hidden /> : null}
+ {Icon ? <Icon className="icon-base" aria-hidden /> : null}
{action.label}
</button>
);
@@ -131,7 +131,7 @@ export function Callout({
onClick={onDismiss}
type="button"
>
- <X className="size-4" aria-hidden />
+ <X className="icon-base" aria-hidden />
</button>
</div>
</div>
diff --git a/web/src/components/design-system/Checkbox/Checkbox.tsx b/web/src/components/design-system/Checkbox/Checkbox.tsx
index 9fb36ed3a4..fb6199f339 100644
--- a/web/src/components/design-system/Checkbox/Checkbox.tsx
+++ b/web/src/components/design-system/Checkbox/Checkbox.tsx
@@ -12,8 +12,8 @@ const checkboxVariants = cva(
{
variants: {
size: {
- default: "h-4 w-4 [&_svg]:h-4 [&_svg]:w-4",
- sm: "h-3.5 w-3.5 [&_svg]:h-3 [&_svg]:w-3",
+ default: "h-4 w-4",
+ sm: "h-3.5 w-3.5",
},
variant: {
default: "",
@@ -53,7 +53,7 @@ const Checkbox = React.forwardRef<
{...props}
>
<CheckboxPrimitive.Indicator className="flex items-center justify-center text-current">
- <Check />
+ <Check className={size === "sm" ? "icon-sm" : "icon-base"} />
</CheckboxPrimitive.Indicator>
</CheckboxPrimitive.Root>
));
diff --git a/web/src/components/design-system/Dialog/Dialog.tsx b/web/src/components/design-system/Dialog/Dialog.tsx
index 29c03f8d0a..79e091e5c3 100644
--- a/web/src/components/design-system/Dialog/Dialog.tsx
+++ b/web/src/components/design-system/Dialog/Dialog.tsx
@@ -123,7 +123,7 @@ function DialogRoot({
className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:bg-accent z-20 -mt-2 -mr-2 inline-flex size-8 shrink-0 items-center justify-center rounded-md opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none"
tabIndex={-1}
>
- <X className="size-4" />
+ <X className="icon-base" />
<span className="sr-only">Close</span>
</DialogPrimitive.Close>
</div>
diff --git a/web/src/components/design-system/DropdownIndicator/DropdownIndicator.tsx b/web/src/components/design-system/DropdownIndicator/DropdownIndicator.tsx
index ff730a2073..9940a8f3f3 100644
--- a/web/src/components/design-system/DropdownIndicator/DropdownIndicator.tsx
+++ b/web/src/components/design-system/DropdownIndicator/DropdownIndicator.tsx
@@ -21,8 +21,8 @@ const indicatorVariants = cva(
{
variants: {
size: {
- base: "size-3.5",
- sm: "size-3",
+ base: "icon-base",
+ sm: "icon-sm",
},
nudge: {
true: "translate-y-px",
diff --git a/web/src/components/design-system/DropdownMenu/DropdownMenu.tsx b/web/src/components/design-system/DropdownMenu/DropdownMenu.tsx
index ce69c7e30e..765a1dc6c1 100644
--- a/web/src/components/design-system/DropdownMenu/DropdownMenu.tsx
+++ b/web/src/components/design-system/DropdownMenu/DropdownMenu.tsx
@@ -57,6 +57,23 @@ const menuBodyVariants = cva(
},
);
+const menuItemIconVariants = cva("", {
+ variants: {
+ variant: {
+ default: "text-icon-foreground",
+ destructive: "",
+ },
+ position: {
+ primary: "icon-base mr-1.5",
+ secondary: "icon-sm",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ position: "primary",
+ },
+});
+
const menuItemVariants = cva(
"focus:bg-accent data-[active]:bg-accent data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 relative flex h-8 w-full min-w-0 cursor-pointer items-center rounded-sm text-sm outline-hidden transition-colors",
{
@@ -452,7 +469,7 @@ function DropdownMenuNode({
<span className={primaryActionVariants()}>
{ItemIcon ? (
<ItemIcon
- className="mr-1.5 size-4"
+ className={menuItemIconVariants()}
aria-hidden="true"
/>
) : null}
@@ -510,7 +527,7 @@ function DropdownMenuNode({
<span className={primaryActionVariants()}>
{ItemIcon ? (
<ItemIcon
- className="mr-1.5 size-4"
+ className={menuItemIconVariants()}
aria-hidden="true"
/>
) : null}
@@ -566,7 +583,13 @@ function DropdownMenuNode({
}}
{...interactionProps}
>
- <SecondaryIcon size={12} aria-hidden="true" />
+ <SecondaryIcon
+ className={menuItemIconVariants({
+ variant: item.variant,
+ position: "secondary",
+ })}
+ aria-hidden="true"
+ />
</Link>
);
} else {
@@ -585,7 +608,13 @@ function DropdownMenuNode({
}}
{...interactionProps}
>
- <SecondaryIcon size={12} aria-hidden="true" />
+ <SecondaryIcon
+ className={menuItemIconVariants({
+ variant: item.variant,
+ position: "secondary",
+ })}
+ aria-hidden="true"
+ />
</button>
);
}
@@ -652,7 +681,9 @@ function DropdownMenuNode({
>
{ItemIcon ? (
<ItemIcon
- className="mr-1.5 size-4"
+ className={menuItemIconVariants({
+ variant: item.variant,
+ })}
aria-hidden="true"
/>
) : null}
@@ -679,7 +710,9 @@ function DropdownMenuNode({
>
{ItemIcon ? (
<ItemIcon
- className="mr-1.5 size-4"
+ className={menuItemIconVariants({
+ variant: item.variant,
+ })}
aria-hidden="true"
/>
) : null}
diff --git a/web/src/components/design-system/Dropzone/Dropzone.tsx b/web/src/components/design-system/Dropzone/Dropzone.tsx
index 3e34984940..43a8dedca2 100644
--- a/web/src/components/design-system/Dropzone/Dropzone.tsx
+++ b/web/src/components/design-system/Dropzone/Dropzone.tsx
@@ -135,7 +135,7 @@ export const Dropzone = ({
<input {...getInputProps()} disabled={isDisabled} />
{variant === "compact" && (
<div className="flex w-full cursor-pointer items-center justify-start gap-2 p-2 text-xs">
- <PaperclipIcon className="h-4 w-4" />
+ <PaperclipIcon className="icon-base" />
<span className="truncate" title={contentText}>
{contentText}
</span>
@@ -144,7 +144,7 @@ export const Dropzone = ({
{variant === "panel" && (
<div className="flex flex-col items-center justify-center">
<div className="bg-muted text-muted-foreground flex size-8 items-center justify-center rounded-md">
- <UploadIcon size={16} />
+ <UploadIcon className="icon-base" />
</div>
<p
className={cn(
diff --git a/web/src/components/design-system/FormField/FormField.tsx b/web/src/components/design-system/FormField/FormField.tsx
index 179bca6b53..73a8d844dc 100644
--- a/web/src/components/design-system/FormField/FormField.tsx
+++ b/web/src/components/design-system/FormField/FormField.tsx
@@ -82,7 +82,7 @@ export function FormField<
>
<Info
aria-hidden
- className="text-muted-foreground size-3.5"
+ className="text-muted-foreground icon-base"
/>
</button>
) : null}
diff --git a/web/src/components/design-system/IconButton/IconButton.tsx b/web/src/components/design-system/IconButton/IconButton.tsx
index cac88612bb..7cb5a0c0ad 100644
--- a/web/src/components/design-system/IconButton/IconButton.tsx
+++ b/web/src/components/design-system/IconButton/IconButton.tsx
@@ -25,15 +25,17 @@ const buttonVariants = cva(
},
);
-const iconVariants = cva("shrink-0", {
+const iconVariants = cva("text-icon-foreground shrink-0", {
variants: {
size: {
- xs: "size-3",
- sm: "size-4",
- md: "size-4",
+ xs: "icon-sm",
+ sm: "icon-base",
+ md: "icon-base",
},
},
- defaultVariants: { size: "md" },
+ defaultVariants: {
+ size: "md",
+ },
});
type NativeButtonProps = Omit<
diff --git a/web/src/components/design-system/LangfuseLogo/LangfuseLogo.tsx b/web/src/components/design-system/LangfuseLogo/LangfuseLogo.tsx
index 4ecc3f6e5e..4d7b43ed2a 100644
--- a/web/src/components/design-system/LangfuseLogo/LangfuseLogo.tsx
+++ b/web/src/components/design-system/LangfuseLogo/LangfuseLogo.tsx
@@ -32,7 +32,7 @@ export const LangfuseLogo = ({
"max-h-4 max-w-14",
)}
/>
- <PlusIcon size={8} className="group-data-[collapsible=icon]:hidden" />
+ <PlusIcon className="icon-sm group-data-[collapsible=icon]:hidden" />
<LangfuseIcon size={16} />
</div>
);
diff --git a/web/src/components/design-system/MultiSelectTagInput/MultiSelectTagInput.tsx b/web/src/components/design-system/MultiSelectTagInput/MultiSelectTagInput.tsx
index e33337379b..4a3104796d 100644
--- a/web/src/components/design-system/MultiSelectTagInput/MultiSelectTagInput.tsx
+++ b/web/src/components/design-system/MultiSelectTagInput/MultiSelectTagInput.tsx
@@ -259,7 +259,7 @@ export function MultiSelectTagInput<V extends string>({
removeValue(option.value);
}}
>
- <X className="size-3.5" />
+ <X className="icon-base" />
</button>
</span>
))
@@ -294,7 +294,7 @@ export function MultiSelectTagInput<V extends string>({
changeValue([]);
}}
>
- <X className="size-4" />
+ <X className="icon-base" />
</button>
)}
</div>
diff --git a/web/src/components/design-system/SearchInput/SearchInput.tsx b/web/src/components/design-system/SearchInput/SearchInput.tsx
index 04cd5a5697..307864d524 100644
--- a/web/src/components/design-system/SearchInput/SearchInput.tsx
+++ b/web/src/components/design-system/SearchInput/SearchInput.tsx
@@ -65,7 +65,7 @@ export const SearchInput = React.forwardRef<HTMLInputElement, SearchInputProps>(
onClick={() => onSubmit(value)}
className="text-foreground-tertiary hover:bg-accent hover:text-accent-foreground flex aspect-square shrink-0 items-center justify-center disabled:cursor-not-allowed disabled:opacity-50"
>
- <Search className="h-4 w-4" />
+ <Search className="icon-base" />
</button>
<input
ref={ref}
diff --git a/web/src/components/design-system/SelectInput/SelectInput.tsx b/web/src/components/design-system/SelectInput/SelectInput.tsx
index 8ca071bede..6be6724bf4 100644
--- a/web/src/components/design-system/SelectInput/SelectInput.tsx
+++ b/web/src/components/design-system/SelectInput/SelectInput.tsx
@@ -267,7 +267,7 @@ function SelectInputInner<V extends string>(
aria-label="Scroll up"
className="animate-in fade-in-0 fill-mode-both absolute inset-x-0 top-0 z-3 flex h-6 cursor-pointer items-center justify-center duration-300 [animation-delay:.5s]"
>
- <ChevronUp className="size-4" />
+ <ChevronUp className="icon-base" />
</SelectPrimitive.ScrollUpButton>
<InputDropdown.List>
<SelectPrimitive.Viewport>
@@ -289,7 +289,7 @@ function SelectInputInner<V extends string>(
aria-label="Scroll down"
className="animate-in fade-in-0 fill-mode-both absolute inset-x-0 bottom-0 z-3 flex h-6 cursor-pointer items-center justify-center duration-300 [animation-delay:.5s]"
>
- <ChevronDown className="size-4" />
+ <ChevronDown className="icon-base" />
</SelectPrimitive.ScrollDownButton>
</SelectPrimitive.Content>
</InputDropdown.Content>
diff --git a/web/src/components/design-system/Tabs/Tabs.tsx b/web/src/components/design-system/Tabs/Tabs.tsx
index c123d1c7e9..668dc40b60 100644
--- a/web/src/components/design-system/Tabs/Tabs.tsx
+++ b/web/src/components/design-system/Tabs/Tabs.tsx
@@ -290,7 +290,7 @@ function TabsTrigger({
"relative z-1 data-[state=active]:bg-transparent data-[state=active]:shadow-none",
)}
>
- {Icon ? <Icon aria-hidden="true" className="size-3.5 shrink-0" /> : null}
+ {Icon ? <Icon aria-hidden="true" className="icon-base shrink-0" /> : null}
{label !== undefined ? (
<span className="min-w-0 truncate" title={label}>
{label}
diff --git a/web/src/components/design-system/TextLink/TextLink.tsx b/web/src/components/design-system/TextLink/TextLink.tsx
index 17039f265f..38ced8d6ff 100644
--- a/web/src/components/design-system/TextLink/TextLink.tsx
+++ b/web/src/components/design-system/TextLink/TextLink.tsx
@@ -36,7 +36,7 @@ export function TextLink({
<span className="inline-block max-w-full overflow-hidden align-middle leading-normal text-nowrap text-ellipsis">
{Icon ? (
<span className="inline-flex max-w-full items-center gap-1">
- <Icon className="h-3.5 w-3.5 shrink-0" />
+ <Icon className="icon-base shrink-0" />
<span className="truncate" title={title ?? value}>
{value}
</span>
diff --git a/web/src/components/design-system/internal/InputControl/InputControl.tsx b/web/src/components/design-system/internal/InputControl/InputControl.tsx
index 64107d951b..34909c96e6 100644
--- a/web/src/components/design-system/internal/InputControl/InputControl.tsx
+++ b/web/src/components/design-system/internal/InputControl/InputControl.tsx
@@ -92,7 +92,9 @@ export function InputControl({
<TrailingActionIcon
aria-hidden="true"
className={
- error ? "text-destructive size-4" : "text-muted-foreground size-4"
+ error
+ ? "text-destructive icon-base"
+ : "text-muted-foreground icon-base"
}
/>
</button>
diff --git a/web/src/components/design-system/internal/InputDropdown/InputDropdown.tsx b/web/src/components/design-system/internal/InputDropdown/InputDropdown.tsx
index b466ab75db..a4e936fdf4 100644
--- a/web/src/components/design-system/internal/InputDropdown/InputDropdown.tsx
+++ b/web/src/components/design-system/internal/InputDropdown/InputDropdown.tsx
@@ -39,7 +39,7 @@ function Root({ ...props }: SlottedProps) {
function Search({ ...props }: SlottedProps) {
return (
<div className="flex items-center border-b px-2">
- <SearchIcon className="size-4 shrink-0 opacity-50" />
+ <SearchIcon className="icon-base shrink-0 opacity-50" />
<Slot
className="placeholder:text-foreground-tertiary flex h-8 w-full rounded border-transparent bg-transparent px-2 py-3 text-sm outline-hidden focus:border-0 focus:border-none focus:border-transparent focus:ring-0 disabled:cursor-not-allowed disabled:opacity-50"
{...props}
@@ -151,7 +151,7 @@ function OptionContent({
return (
<Check
aria-hidden="true"
- className={cn("size-4", checked ? "opacity-100" : "opacity-0")}
+ className={cn("icon-base", checked ? "opacity-100" : "opacity-0")}
/>
);
}, [type, checked]);
diff --git a/web/src/components/design-system/internal/charts/ChartTooltip.tsx b/web/src/components/design-system/internal/charts/ChartTooltip.tsx
index 69f7c43f1e..9426d95e70 100644
--- a/web/src/components/design-system/internal/charts/ChartTooltip.tsx
+++ b/web/src/components/design-system/internal/charts/ChartTooltip.tsx
@@ -510,7 +510,7 @@ export function ChartTooltip({
className={`flex items-center gap-1 [grid-area:1/1] ${activeCopyStatus === "copied" ? "visible" : "invisible"}`}
>
Label copied to clipboard{" "}
- <Check className="size-3" aria-hidden="true" />
+ <Check className="icon-sm" aria-hidden="true" />
</span>
<span
className={`[grid-area:1/1] ${activeCopyStatus === "error" ? "visible" : "invisible"}`}
diff --git a/web/src/components/design-system/table/Table.tsx b/web/src/components/design-system/table/Table.tsx
index f8c72b1677..b24184f0d1 100644
--- a/web/src/components/design-system/table/Table.tsx
+++ b/web/src/components/design-system/table/Table.tsx
@@ -102,7 +102,7 @@ export function Table<TData extends object>({
loadingCell: (
<div className="ml-auto flex h-4 w-6 items-center justify-center">
<MoreVertical
- className="text-muted-foreground/30 size-4 animate-pulse"
+ className="text-muted-foreground/30 icon-base animate-pulse"
aria-hidden="true"
/>
</div>
@@ -202,19 +202,19 @@ export function Table<TData extends object>({
</span>
{!isSorted && (
<ArrowUpDown
- className="ml-1.5 size-3 shrink-0 opacity-40 transition-opacity group-hover/sort:opacity-70"
+ className="icon-sm ml-1.5 shrink-0 opacity-40 transition-opacity group-hover/sort:opacity-70"
aria-hidden="true"
/>
)}
{isSorted && orderBy.order === "ASC" && (
<ArrowUp
- className="ml-1.5 size-3 shrink-0"
+ className="icon-sm ml-1.5 shrink-0"
aria-hidden="true"
/>
)}
{isSorted && orderBy.order === "DESC" && (
<ArrowDown
- className="ml-1.5 size-3 shrink-0"
+ className="icon-sm ml-1.5 shrink-0"
aria-hidden="true"
/>
)}
diff --git a/web/src/components/design-system/table/columns/createActorTableColumn.tsx b/web/src/components/design-system/table/columns/createActorTableColumn.tsx
index 5759d01c30..ee271356a2 100644
--- a/web/src/components/design-system/table/columns/createActorTableColumn.tsx
+++ b/web/src/components/design-system/table/columns/createActorTableColumn.tsx
@@ -44,7 +44,7 @@ export function createActorTableColumn<TData extends RowData>({
title={`API key ${label}`}
>
<KeyRound
- className="text-muted-foreground size-4 shrink-0"
+ className="text-muted-foreground icon-base shrink-0"
aria-hidden="true"
/>
<span className="truncate font-mono" title={label}>
diff --git a/web/src/components/design-system/table/columns/createBadgeListTableColumn.tsx b/web/src/components/design-system/table/columns/createBadgeListTableColumn.tsx
index 192f50af18..ec0171be2d 100644
--- a/web/src/components/design-system/table/columns/createBadgeListTableColumn.tsx
+++ b/web/src/components/design-system/table/columns/createBadgeListTableColumn.tsx
@@ -120,7 +120,7 @@ export function createBadgeListTableColumn<
title={title}
aria-label={ariaLabel}
>
- {Icon && <Icon className="size-3 shrink-0" aria-hidden />}
+ {Icon && <Icon className="icon-sm shrink-0" aria-hidden />}
<span className="truncate leading-normal" title={title}>
{value}
</span>
diff --git a/web/src/components/design-system/table/columns/createBadgeTableColumn.tsx b/web/src/components/design-system/table/columns/createBadgeTableColumn.tsx
index 907453586f..b731b441c0 100644
--- a/web/src/components/design-system/table/columns/createBadgeTableColumn.tsx
+++ b/web/src/components/design-system/table/columns/createBadgeTableColumn.tsx
@@ -84,7 +84,7 @@ export function createBadgeTableColumn<TData extends RowData>({
className="max-w-fit gap-1 truncate rounded-sm px-1 font-normal"
title={badge.value}
>
- {Icon && <Icon className="size-3 shrink-0" aria-hidden />}
+ {Icon && <Icon className="icon-sm shrink-0" aria-hidden />}
<span className="truncate" title={badge.value}>
{badge.value}
</span>
diff --git a/web/src/components/design-system/table/columns/createTextTableColumn.tsx b/web/src/components/design-system/table/columns/createTextTableColumn.tsx
index c12467c854..3ecaef9dec 100644
--- a/web/src/components/design-system/table/columns/createTextTableColumn.tsx
+++ b/web/src/components/design-system/table/columns/createTextTableColumn.tsx
@@ -96,7 +96,7 @@ export function createTextTableColumn<TData extends RowData, TValue = string>({
aria-label="More information"
className="flex items-center"
>
- <InfoIcon className="text-muted-foreground size-3" />
+ <InfoIcon className="text-muted-foreground icon-sm" />
</button>
)}
</Tooltip>
diff --git a/web/src/components/design-system/table/columns/createTokenUsageTableColumn.tsx b/web/src/components/design-system/table/columns/createTokenUsageTableColumn.tsx
index bd3ec28352..a680eaba3b 100644
--- a/web/src/components/design-system/table/columns/createTokenUsageTableColumn.tsx
+++ b/web/src/components/design-system/table/columns/createTokenUsageTableColumn.tsx
@@ -69,7 +69,7 @@ export function createTokenUsageTableColumn<
>
<div className="flex items-center gap-1">
{content}
- <InfoIcon className="h-3 w-3" />
+ <InfoIcon className="icon-sm" />
</div>
</BreakdownTooltip>
);
diff --git a/web/src/components/editor/PromptLinkingEditor.tsx b/web/src/components/editor/PromptLinkingEditor.tsx
index b2ccc2b106..56a4672c30 100644
--- a/web/src/components/editor/PromptLinkingEditor.tsx
+++ b/web/src/components/editor/PromptLinkingEditor.tsx
@@ -75,7 +75,7 @@ export function PromptLinkingEditor({
className="flex items-center gap-1 px-2 py-1"
onClick={() => setIsDialogOpen(true)}
>
- <Plus className="mr-2 h-4 w-4" />
+ <Plus className="icon-base text-icon-foreground mr-2" />
<span className="text-xs">Add prompt reference</span>
</Button>
</div>
diff --git a/web/src/components/layouts/doc-popup.tsx b/web/src/components/layouts/doc-popup.tsx
index 2693e004c0..c50270fe00 100644
--- a/web/src/components/layouts/doc-popup.tsx
+++ b/web/src/components/layouts/doc-popup.tsx
@@ -53,7 +53,7 @@ export default function DocPopup({
handleOpenChange(!open);
}}
>
- <Info className="h-3 w-3" />
+ <Info className="icon-sm" />
</div>
</HoverCardTrigger>
<HoverCardPortal>
@@ -81,7 +81,7 @@ export default function DocPopup({
className="text-muted-foreground hover:text-primary mt-2 inline-flex items-center gap-1 text-xs underline underline-offset-2"
>
Read docs
- <ExternalLink className="h-3 w-3" />
+ <ExternalLink className="icon-sm" />
</a>
)}
</HoverCardContent>
diff --git a/web/src/components/layouts/mobile-page-actions-content.stories.tsx b/web/src/components/layouts/mobile-page-actions-content.stories.tsx
index 3571483334..53eaf72835 100644
--- a/web/src/components/layouts/mobile-page-actions-content.stories.tsx
+++ b/web/src/components/layouts/mobile-page-actions-content.stories.tsx
@@ -32,18 +32,18 @@ export const MixedPageControls = meta.story({
<div className="flex flex-col gap-1">
<span className="text-muted-foreground px-2 text-xs">Dashboard</span>
<Button variant="outline" className="w-full justify-start gap-2">
- <LayoutDashboard className="h-4 w-4" />
+ <LayoutDashboard className="icon-base text-icon-foreground" />
Langfuse Home
</Button>
<Button variant="ghost" className="w-full justify-start gap-2">
- <PencilIcon className="h-4 w-4" />
+ <PencilIcon className="icon-base text-icon-foreground" />
Edit dashboard
</Button>
</div>
<div className="flex flex-col gap-1 border-t pt-2">
<span className="text-muted-foreground px-2 text-xs">Data</span>
<Button variant="outline" className="w-full justify-start gap-2">
- <SlidersHorizontal className="h-4 w-4" />
+ <SlidersHorizontal className="icon-base text-icon-foreground" />
Environment and filters
</Button>
</div>
diff --git a/web/src/components/layouts/mobile-page-title.tsx b/web/src/components/layouts/mobile-page-title.tsx
index 7d011a3249..6b9bf69a23 100644
--- a/web/src/components/layouts/mobile-page-title.tsx
+++ b/web/src/components/layouts/mobile-page-title.tsx
@@ -156,7 +156,7 @@ export const MobilePageTitle = ({
aria-label="More actions"
className="ml-auto shrink-0"
>
- <MoreHorizontal className="h-4 w-4" />
+ <MoreHorizontal className="icon-base text-icon-foreground" />
</Button>
</PopoverTrigger>
<MobilePageActionsContent
diff --git a/web/src/components/layouts/mobile-top-bar.tsx b/web/src/components/layouts/mobile-top-bar.tsx
index cdf20d4917..409440fd33 100644
--- a/web/src/components/layouts/mobile-top-bar.tsx
+++ b/web/src/components/layouts/mobile-top-bar.tsx
@@ -47,7 +47,7 @@ export const MobileTopBar = ({
aria-label="Open menu"
onClick={() => toggleSidebar()}
>
- <Menu className="size-5" />
+ <Menu className="icon-lg text-icon-foreground" />
</Button>
) : (
leadingControl
diff --git a/web/src/components/layouts/overview-panel.tsx b/web/src/components/layouts/overview-panel.tsx
index e9a3a464c0..8e254d78ea 100644
--- a/web/src/components/layouts/overview-panel.tsx
+++ b/web/src/components/layouts/overview-panel.tsx
@@ -32,9 +32,9 @@ const OverviewPanelToggle = React.forwardRef<
{...props}
>
{open ? (
- <PanelRightClose className="h-4 w-4" />
+ <PanelRightClose className="icon-base text-icon-foreground" />
) : (
- <PanelRightOpen className="h-4 w-4" />
+ <PanelRightOpen className="icon-base text-icon-foreground" />
)}
</Button>
));
diff --git a/web/src/components/layouts/routes.tsx b/web/src/components/layouts/routes.tsx
index 4286406fce..e9fdcd938d 100644
--- a/web/src/components/layouts/routes.tsx
+++ b/web/src/components/layouts/routes.tsx
@@ -312,7 +312,7 @@ function CommandMenuTrigger() {
}}
className="whitespace-nowrap"
>
- <Search className="h-4 w-4" />
+ <Search className="icon-base" />
Go to...
<span className="-mr-px ml-auto hidden md:inline-flex">
<KeyboardShortcut keys={["Mod", "K"]} />
diff --git a/web/src/components/magicui/rainbow-button.tsx b/web/src/components/magicui/rainbow-button.tsx
index 4b020f7a62..49c424faa3 100644
--- a/web/src/components/magicui/rainbow-button.tsx
+++ b/web/src/components/magicui/rainbow-button.tsx
@@ -13,7 +13,7 @@ const rainbowButtonVariants = cva(
"rounded-sm outline-hidden focus-visible:ring-[3px] aria-invalid:border-destructive",
"text-sm font-bold whitespace-nowrap",
"disabled:pointer-events-none disabled:opacity-50",
- "[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0",
),
{
variants: {
diff --git a/web/src/components/nav/AppSidebar/AppSidebar.tsx b/web/src/components/nav/AppSidebar/AppSidebar.tsx
index 2aa936b36f..dcd9263777 100644
--- a/web/src/components/nav/AppSidebar/AppSidebar.tsx
+++ b/web/src/components/nav/AppSidebar/AppSidebar.tsx
@@ -384,7 +384,7 @@ function SidebarNotifications({
onClick={() => state.onDismiss(frontNotification.id)}
title="Dismiss"
>
- <X className="h-3.5 w-3.5" />
+ <X className="icon-base text-icon-foreground" />
</Button>
<CardHeader className="px-3 pt-2.5 pr-6 pb-0">
<CardTitle className="text-sm">{frontNotification.title}</CardTitle>
@@ -548,7 +548,7 @@ const DemoBadge = () => {
target="_blank"
rel="noopener noreferrer"
>
- <ExternalLink className="h-4 w-4" />
+ <ExternalLink className="icon-base" />
<span>Use Demo App</span>
</Link>
</SidebarMenuButton>
@@ -556,7 +556,7 @@ const DemoBadge = () => {
<SidebarMenuItem>
<SidebarMenuButton asChild tooltip="Your Langfuse Organizations">
<Link href="/">
- <Grid2X2 className="h-4 w-4" />
+ <Grid2X2 className="icon-base" />
<span>Your Langfuse Orgs</span>
</Link>
</SidebarMenuButton>
@@ -632,7 +632,9 @@ const VersionLabel = ({ state }: { state: SidebarVersionState }) => {
/>
)}
{update && !backgroundMigrationStatus && (
- <ArrowUp className={`h-3 w-3 ${color}`} />
+ <ArrowUp
+ className={cn("icon-sm", color ?? "text-icon-foreground")}
+ />
)}
</Button>
</DropdownMenuTrigger>
@@ -665,7 +667,7 @@ const VersionLabel = ({ state }: { state: SidebarVersionState }) => {
{selfHostedPlanLabel && (
<>
<DropdownMenuLabel className="flex items-center font-normal">
- <BadgeCheck size={16} className="mr-2" />
+ <BadgeCheck className="icon-base mr-2" />
{selfHostedPlanLabel.long}
</DropdownMenuLabel>
<DropdownMenuSeparator />
@@ -676,14 +678,14 @@ const VersionLabel = ({ state }: { state: SidebarVersionState }) => {
href="https://github.com/langfuse/langfuse/releases"
target="_blank"
>
- <SiGithub size={16} className="mr-2" />
+ <SiGithub className="icon-base text-icon-foreground mr-2" />
Releases
</Link>
</DropdownMenuItem>
{state.deployment === "self-hosted" && (
<DropdownMenuItem asChild>
<Link href="/background-migrations">
- <ArrowUp10 size={16} className="mr-2" />
+ <ArrowUp10 className="icon-base text-icon-foreground mr-2" />
Background Migrations
{backgroundMigrationStatus && (
<StatusBadge
@@ -697,20 +699,20 @@ const VersionLabel = ({ state }: { state: SidebarVersionState }) => {
)}
<DropdownMenuItem asChild>
<Link href="https://langfuse.com/changelog" target="_blank">
- <Newspaper size={16} className="mr-2" />
+ <Newspaper className="icon-base text-icon-foreground mr-2" />
Changelog
</Link>
</DropdownMenuItem>
<DropdownMenuItem asChild>
<Link href="https://langfuse.com/roadmap" target="_blank">
- <Map size={16} className="mr-2" />
+ <Map className="icon-base text-icon-foreground mr-2" />
Roadmap
</Link>
</DropdownMenuItem>
{state.deployment === "self-hosted" && (
<DropdownMenuItem asChild>
<Link href="https://langfuse.com/pricing-self-host" target="_blank">
- <Info size={16} className="mr-2" />
+ <Info className="icon-base text-icon-foreground mr-2" />
Compare Versions
</Link>
</DropdownMenuItem>
@@ -723,7 +725,7 @@ const VersionLabel = ({ state }: { state: SidebarVersionState }) => {
href="https://langfuse.com/docs/deployment/self-host#update"
target="_blank"
>
- <HardDriveDownload size={16} className="mr-2" />
+ <HardDriveDownload className="icon-base text-icon-foreground mr-2" />
Update
</Link>
</DropdownMenuItem>
diff --git a/web/src/components/nav/book-a-call-button.tsx b/web/src/components/nav/book-a-call-button.tsx
index 9a4790be0b..0766a28b00 100644
--- a/web/src/components/nav/book-a-call-button.tsx
+++ b/web/src/components/nav/book-a-call-button.tsx
@@ -16,7 +16,7 @@ export const BookACallButton = () => {
capture("sidebar:book_a_call_clicked");
}}
>
- <CalendarDays className="h-4 w-4" />
+ <CalendarDays className="icon-base" />
Book a call
</Link>
</SidebarMenuButton>
diff --git a/web/src/components/nav/in-app-ai-agent-button.tsx b/web/src/components/nav/in-app-ai-agent-button.tsx
index c14d864d31..e2240c9cf0 100644
--- a/web/src/components/nav/in-app-ai-agent-button.tsx
+++ b/web/src/components/nav/in-app-ai-agent-button.tsx
@@ -94,7 +94,7 @@ export const InAppAiAgentButton = ({
)}
>
<BotMessageSquare
- className={cn("h-4 w-4", prominent && open && "text-primary-accent")}
+ className={cn("icon-base", prominent && open && "text-primary-accent")}
/>
{/* Conversations still owed a look. Anchored to the button rather than
the icon so it survives the prominent (icon-only) variant. Visual
diff --git a/web/src/components/nav/nav-main.tsx b/web/src/components/nav/nav-main.tsx
index 9e3f7e1131..8a0bb6a6dc 100644
--- a/web/src/components/nav/nav-main.tsx
+++ b/web/src/components/nav/nav-main.tsx
@@ -32,7 +32,7 @@ export type NavMainItem = {
function NavItemContent({ item }: { item: NavMainItem }) {
return (
<>
- {item.icon && <item.icon />}
+ {item.icon && <item.icon className="icon-base" />}
<span>{item.title}</span>
{item.label &&
(typeof item.label === "string" ? (
diff --git a/web/src/components/nav/support-button.tsx b/web/src/components/nav/support-button.tsx
index 698b671194..484906c66a 100644
--- a/web/src/components/nav/support-button.tsx
+++ b/web/src/components/nav/support-button.tsx
@@ -24,7 +24,7 @@ export const SupportButton = () => {
}, 1);
}}
>
- <LifeBuoy className="h-4 w-4" />
+ <LifeBuoy className="icon-base" />
Support
</SidebarMenuButton>
);
diff --git a/web/src/components/nav/topbar-brand.tsx b/web/src/components/nav/topbar-brand.tsx
index b650c986dd..9e3fcf98a2 100644
--- a/web/src/components/nav/topbar-brand.tsx
+++ b/web/src/components/nav/topbar-brand.tsx
@@ -54,7 +54,7 @@ export const TopbarBrand = ({
alt="Logo"
className="hidden max-h-5 max-w-16 dark:block"
/>
- <PlusIcon size={8} className="text-muted-foreground" />
+ <PlusIcon className="icon-sm text-muted-foreground" />
<LangfuseIcon size={16} />
</>
) : variant === "wordmark" ? (
diff --git a/web/src/components/onboarding/DatasetItemsOnboarding.tsx b/web/src/components/onboarding/DatasetItemsOnboarding.tsx
index 798a05da74..ffc74bca3d 100644
--- a/web/src/components/onboarding/DatasetItemsOnboarding.tsx
+++ b/web/src/components/onboarding/DatasetItemsOnboarding.tsx
@@ -99,7 +99,7 @@ export const DatasetItemsOnboarding = ({
>
<DialogTrigger asChild disabled={!hasProjectAccess}>
<DatasetItemEntryPointRow
- icon={<Upload className="h-5 w-5" />}
+ icon={<Upload className="icon-lg" />}
title="Upload CSV"
description="Import dataset items from a CSV file"
onClick={() => {
@@ -120,7 +120,7 @@ export const DatasetItemsOnboarding = ({
>
<DialogTrigger asChild disabled={!hasProjectAccess}>
<DatasetItemEntryPointRow
- icon={<Braces className="h-5 w-5" />}
+ icon={<Braces className="icon-lg" />}
title="Add Manually"
description="Manually input a single item"
onClick={() => {
@@ -152,7 +152,7 @@ export const DatasetItemsOnboarding = ({
target="_blank"
>
<DatasetItemEntryPointRow
- icon={<Code className="h-5 w-5" />}
+ icon={<Code className="icon-lg" />}
title="Add via Code"
description="Use our Python/TS/JS SDKs or custom API"
/>
@@ -160,7 +160,7 @@ export const DatasetItemsOnboarding = ({
<Link href={`/project/${projectId}/observations`}>
<DatasetItemEntryPointRow
- icon={<ListTree className="h-5 w-5" />}
+ icon={<ListTree className="icon-lg" />}
title="Select Observations"
description="Select observations in the observations table and use a batch action to add them to your dataset"
onClick={() => {
diff --git a/web/src/components/publish-object-switch.tsx b/web/src/components/publish-object-switch.tsx
index 9b8db3b2dc..37834fbf64 100644
--- a/web/src/components/publish-object-switch.tsx
+++ b/web/src/components/publish-object-switch.tsx
@@ -262,14 +262,21 @@ const Base = (props: {
>
{props.isPublic ? (
<Globe
- className={props.label ? "h-4 w-4" : "h-3.5 w-3.5"}
+ className={
+ props.label
+ ? "icon-base text-icon-foreground"
+ : "icon-base"
+ }
fill="#b3d9ff"
stroke="#4d94ff"
- strokeWidth={2}
/>
) : (
<Share2
- className={props.label ? "h-4 w-4" : "h-3.5 w-3.5"}
+ className={
+ props.label
+ ? "icon-base text-icon-foreground"
+ : "icon-base"
+ }
/>
)}
{props.label ? (
@@ -301,12 +308,12 @@ const Base = (props: {
<Button variant="outline" size="sm" onClick={copyUrl}>
{isCopied ? (
<>
- <CheckIcon size={12} className="mr-1" />
+ <CheckIcon className="icon-base text-icon-foreground mr-1" />
Copied
</>
) : (
<>
- <Link size={12} className="mr-1" />
+ <Link className="icon-base text-icon-foreground mr-1" />
Copy
</>
)}
diff --git a/web/src/components/scores-table-cell.tsx b/web/src/components/scores-table-cell.tsx
index fb7154b64a..4b7a285573 100644
--- a/web/src/components/scores-table-cell.tsx
+++ b/web/src/components/scores-table-cell.tsx
@@ -93,7 +93,7 @@ export const ScoresTableCell = ({
{aggregate.comment && (
<HoverCard>
<HoverCardTrigger className="inline-flex shrink-0 cursor-pointer items-center">
- <MessageCircleMore size={12} />
+ <MessageCircleMore className="icon-sm" />
</HoverCardTrigger>
<HoverCardContent className="flex flex-col p-0 text-xs break-normal whitespace-normal">
{/* Name what the icon opened: a bare block of text next to a
@@ -110,9 +110,9 @@ export const ScoresTableCell = ({
aria-label={copied ? "Copied" : "Copy to clipboard"}
>
{copied ? (
- <Check className="h-3 w-3" />
+ <Check className="icon-sm text-icon-foreground" />
) : (
- <Copy className="h-3 w-3" />
+ <Copy className="icon-sm text-icon-foreground" />
)}
</Button>
</div>
@@ -206,7 +206,7 @@ function AggregateScoreMetadataPeek({
return (
<HoverCard onOpenChange={setIsOpen}>
<HoverCardTrigger className="inline-flex shrink-0 cursor-pointer items-center">
- <BracesIcon size={12} />
+ <BracesIcon className="icon-sm" />
</HoverCardTrigger>
<HoverCardContent className="overflow-hidden rounded-md border-none p-0 text-xs break-normal whitespace-normal">
{metadataLoaded ? (
diff --git a/web/src/components/table/ColumnVisibilityHeader.tsx b/web/src/components/table/ColumnVisibilityHeader.tsx
index 7af081914b..05f667387a 100644
--- a/web/src/components/table/ColumnVisibilityHeader.tsx
+++ b/web/src/components/table/ColumnVisibilityHeader.tsx
@@ -16,7 +16,7 @@ export function ColumnVisibilityHeader({
className="bg-accent gap-1.5 text-xs"
onClick={onRestoreDefaults}
>
- <RotateCcw className="size-3" />
+ <RotateCcw className="icon-base text-icon-foreground" />
Restore Defaults
</Button>
)}
diff --git a/web/src/components/table/DataTable.stories.tsx b/web/src/components/table/DataTable.stories.tsx
index e87b3a16f8..70a9a98fa5 100644
--- a/web/src/components/table/DataTable.stories.tsx
+++ b/web/src/components/table/DataTable.stories.tsx
@@ -378,7 +378,7 @@ function buildTraceColumns(
) : (
<span>-</span>
)}
- <InfoIcon className="h-3 w-3" />
+ <InfoIcon className="icon-sm" />
</div>
</BreakdownTooltip>
) : null;
@@ -443,7 +443,7 @@ function buildTraceColumns(
isFixedPosition: true,
renderMenu: () => (
<DropdownMenuItem className="text-destructive">
- <Trash className="mr-2 h-4 w-4" />
+ <Trash className="icon-base mr-2" />
Delete trace
</DropdownMenuItem>
),
@@ -1289,17 +1289,17 @@ const promptColumns: LangfuseColumnDef<PromptRow>[] = [
size="icon-xs"
aria-label="Duplicate folder"
>
- <Copy className="h-4 w-4" />
+ <Copy className="icon-sm text-icon-foreground" />
</Button>
<Button variant="ghost" size="icon-xs" aria-label="Delete folder">
- <Trash className="h-4 w-4" />
+ <Trash className="icon-sm text-icon-foreground" />
</Button>
</div>
);
}
return (
<Button variant="ghost" size="icon-xs" aria-label="Delete prompt">
- <Trash className="h-4 w-4" />
+ <Trash className="icon-sm text-icon-foreground" />
</Button>
);
},
@@ -1402,7 +1402,7 @@ const iconCellColumns: LangfuseColumnDef<IconCellRow>[] = [
className="inline-flex max-w-full min-w-0 cursor-pointer items-center gap-1 text-left"
>
<IdTableCell value={name} />
- <PlusCircle className="h-3.5 w-3.5 shrink-0" />
+ <PlusCircle className="icon-base shrink-0" />
</button>
);
case "link":
diff --git a/web/src/components/table/FilterToggleButton.tsx b/web/src/components/table/FilterToggleButton.tsx
index 34e80474d2..66229bbc06 100644
--- a/web/src/components/table/FilterToggleButton.tsx
+++ b/web/src/components/table/FilterToggleButton.tsx
@@ -32,7 +32,7 @@ export function FilterToggleButton({
onClick={() => setOpen(!open)}
className={cn("flex h-8 items-center gap-2 text-sm", className)}
>
- <Filter className="h-4 w-4" />
+ <Filter className="icon-base text-icon-foreground" />
<span>Filters</span>
{activeFacetCount > 0 && (
<Badge variant="secondary" className="ml-1 h-5 px-1.5 text-xs">
diff --git a/web/src/components/table/KeyValueFilterBuilder.tsx b/web/src/components/table/KeyValueFilterBuilder.tsx
index 25ae492cc8..5073e6affa 100644
--- a/web/src/components/table/KeyValueFilterBuilder.tsx
+++ b/web/src/components/table/KeyValueFilterBuilder.tsx
@@ -421,7 +421,7 @@ export function KeyValueFilterBuilder(props: KeyValueFilterBuilderProps) {
onClick={() => handleRemoveFilter(index)}
className="h-8 w-8 p-0"
>
- <X className="h-4 w-4" />
+ <X className="icon-base text-icon-foreground" />
</Button>
</div>
@@ -563,7 +563,7 @@ export function KeyValueFilterBuilder(props: KeyValueFilterBuilderProps) {
variant="outline"
className="w-full"
>
- <Plus className="mr-2 h-4 w-4" />
+ <Plus className="icon-base text-icon-foreground mr-2" />
Add filter
</Button>
</div>
diff --git a/web/src/components/table/ValueCell.tsx b/web/src/components/table/ValueCell.tsx
index 682d62fa0c..6c11569ec8 100644
--- a/web/src/components/table/ValueCell.tsx
+++ b/web/src/components/table/ValueCell.tsx
@@ -294,11 +294,11 @@ function ValueCellActionsMenuContent({
return (
<>
<DropdownMenuItem className="text-xs" onSelect={handleCopyData}>
- <Copy className="mr-2 h-3.5 w-3.5 shrink-0" />
+ <Copy className="icon-base text-icon-foreground mr-2 shrink-0" />
{hasChildren ? "Copy structure" : "Copy value"}
</DropdownMenuItem>
<DropdownMenuItem className="text-xs" onSelect={handleCopyPath}>
- <Copy className="mr-2 h-3.5 w-3.5 shrink-0" />
+ <Copy className="icon-base text-icon-foreground mr-2 shrink-0" />
Copy path
</DropdownMenuItem>
{isScalarLeaf && (
@@ -308,7 +308,7 @@ function ValueCellActionsMenuContent({
className="text-xs"
onSelect={() => navigateWithFilter(includeOperator)}
>
- <Filter className="mr-2 h-3.5 w-3.5 shrink-0" />
+ <Filter className="icon-base text-icon-foreground mr-2 shrink-0" />
<span className="flex min-w-0 flex-col">
<span>Include in filter</span>
<span
@@ -323,7 +323,7 @@ function ValueCellActionsMenuContent({
className="text-xs"
onSelect={() => navigateWithFilter(excludeOperator)}
>
- <FilterX className="mr-2 h-3.5 w-3.5 shrink-0" />
+ <FilterX className="icon-base text-icon-foreground mr-2 shrink-0" />
<span className="flex min-w-0 flex-col">
<span>Exclude from filter</span>
<span
@@ -562,7 +562,7 @@ export const ValueCell = memo(
)}
onClick={(event) => event.stopPropagation()}
>
- <EllipsisVertical className="h-3 w-3" />
+ <EllipsisVertical className="icon-base text-icon-foreground" />
</Button>
</Trigger>
)}
@@ -577,9 +577,9 @@ export const ValueCell = memo(
aria-label="Copy cell value"
>
{showCopySuccess ? (
- <Check className="h-3 w-3" />
+ <Check className="icon-base text-icon-foreground" />
) : (
- <Copy className="h-3 w-3" />
+ <Copy className="icon-base text-icon-foreground" />
)}
</Button>
)}
diff --git a/web/src/components/table/data-table-ai-filters.tsx b/web/src/components/table/data-table-ai-filters.tsx
index 0db9b1fa32..25ee1c38e8 100644
--- a/web/src/components/table/data-table-ai-filters.tsx
+++ b/web/src/components/table/data-table-ai-filters.tsx
@@ -81,7 +81,7 @@ export function DataTableAIFilters({
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
- <Info className="text-muted-foreground h-4 w-4" />
+ <Info className="text-muted-foreground icon-base" />
</TooltipTrigger>
<TooltipContent>
<p className="text-xs">
diff --git a/web/src/components/table/data-table-column-visibility-filter.tsx b/web/src/components/table/data-table-column-visibility-filter.tsx
index 90ba64e413..100f2a327e 100644
--- a/web/src/components/table/data-table-column-visibility-filter.tsx
+++ b/web/src/components/table/data-table-column-visibility-filter.tsx
@@ -211,7 +211,7 @@ function ColumnVisibilityListItem<TData, TValue>({
title="Drag and drop to reorder columns"
className="invisible shrink-0 group-focus-within:visible group-hover:visible"
>
- <Menu className="h-3 w-3" />
+ <Menu className="icon-sm text-icon-foreground" />
</Button>
)}
</div>
@@ -263,9 +263,9 @@ function GroupVisibilityHeader<TData, TValue>({
className="flex min-w-0 flex-1 cursor-pointer items-center gap-1.5 text-left"
>
{isOpen ? (
- <ChevronDown className="text-foreground-tertiary size-3.5 shrink-0 translate-y-px opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100" />
+ <ChevronDown className="text-foreground-tertiary icon-base shrink-0 translate-y-px opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100" />
) : (
- <ChevronRight className="text-foreground-tertiary size-3.5 shrink-0 translate-y-px opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100" />
+ <ChevronRight className="text-foreground-tertiary icon-base shrink-0 translate-y-px opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100" />
)}
<span className="min-w-0 text-sm font-bold">
{getColumnLabel(column)}
@@ -299,7 +299,7 @@ function GroupVisibilityHeader<TData, TValue>({
title="Drag and drop to reorder columns"
className="invisible group-focus-within:visible group-hover:visible"
>
- <Menu className="h-3 w-3" />
+ <Menu className="icon-sm text-icon-foreground" />
</Button>
)}
</div>
diff --git a/web/src/components/table/data-table-controls.tsx b/web/src/components/table/data-table-controls.tsx
index d4f2972285..a825a77fe5 100644
--- a/web/src/components/table/data-table-controls.tsx
+++ b/web/src/components/table/data-table-controls.tsx
@@ -825,7 +825,7 @@ export function DataTableControls({
className="text-xs"
disabled={addableFilters.length === 0}
>
- <Plus className="mr-1.5 h-3.5 w-3.5" />
+ <Plus className="icon-base text-icon-foreground mr-1.5" />
Add filter
</Button>
</PopoverTrigger>
@@ -902,7 +902,7 @@ export function DataTableControls({
aria-label="Show filters"
className="h-6 w-6"
>
- <PanelLeftOpen className="h-3.5 w-3.5" />
+ <PanelLeftOpen className="icon-base text-icon-foreground" />
</Button>
</TooltipTrigger>
<TooltipContent side="right">Show filters</TooltipContent>
@@ -984,7 +984,7 @@ export function DataTableControls({
aria-label="Close filters"
className="-ml-1 h-6 w-6"
>
- <X className="h-4 w-4" />
+ <X className="icon-base text-icon-foreground" />
</Button>
) : (
<Tooltip>
@@ -999,7 +999,7 @@ export function DataTableControls({
aria-label="Hide filters"
className="-ml-1 h-6 w-6"
>
- <PanelLeftClose className="h-3.5 w-3.5" />
+ <PanelLeftClose className="icon-base text-icon-foreground" />
</Button>
</TooltipTrigger>
<TooltipContent>Hide filters</TooltipContent>
@@ -1023,7 +1023,7 @@ export function DataTableControls({
<TooltipTrigger asChild>
<PopoverTrigger asChild>
<Button variant="ghost" size="icon" className="h-8 w-8">
- <WandSparkles className="h-4 w-4" />
+ <WandSparkles className="icon-base text-icon-foreground" />
</Button>
</PopoverTrigger>
</TooltipTrigger>
@@ -1076,9 +1076,9 @@ export function DataTableControls({
}
>
{expandedVisibleCount === 0 ? (
- <UnfoldVertical className="h-3.5 w-3.5" />
+ <UnfoldVertical className="icon-base text-icon-foreground" />
) : (
- <FoldVertical className="h-3.5 w-3.5" />
+ <FoldVertical className="icon-base text-icon-foreground" />
)}
</Button>
</TooltipTrigger>
@@ -1098,7 +1098,7 @@ export function DataTableControls({
className="h-6 w-6"
aria-label="Filter options"
>
- <MoreVertical className="h-3.5 w-3.5" />
+ <MoreVertical className="icon-base text-icon-foreground" />
</Button>
</DropdownMenuTrigger>
</TooltipTrigger>
@@ -1145,7 +1145,9 @@ export function DataTableControls({
}}
>
Show only active
- {showOnlyActive && <Check className="ml-auto h-3.5 w-3.5" />}
+ {showOnlyActive && (
+ <Check className="icon-base text-icon-foreground ml-auto" />
+ )}
</DropdownMenuItem>
{/* "Collapse sidebar" is desktop-rail chrome — there's no rail
on mobile (either sheet), where the header X / sheet footer
@@ -1185,7 +1187,7 @@ export function DataTableControls({
// the field, at rest and scrolled alike.
<div className="bg-surface shrink-0 px-2 pt-2 pb-0.5">
<div className="relative">
- <Search className="text-muted-foreground absolute top-1/2 left-2 h-3.5 w-3.5 -translate-y-1/2" />
+ <Search className="text-muted-foreground icon-base absolute top-1/2 left-2 -translate-y-1/2" />
<Input
placeholder="Search filters"
aria-label="Search filters"
@@ -1221,7 +1223,7 @@ export function DataTableControls({
aria-label="Clear filter search"
className="absolute top-1/2 right-0.5 h-5 w-5 -translate-y-1/2"
>
- <IconX className="h-3 w-3" />
+ <IconX className="icon-base text-icon-foreground" />
</Button>
)}
</div>
@@ -1483,7 +1485,7 @@ function FilterAccordionItem({
</span>
<Tooltip delayDuration={80}>
<TooltipTrigger asChild>
- <InfoIcon className="text-muted-foreground h-3 w-3 shrink-0" />
+ <InfoIcon className="text-muted-foreground icon-sm shrink-0" />
</TooltipTrigger>
<TooltipContent className="max-w-80 text-xs">
{tooltip}
@@ -1554,7 +1556,7 @@ function FilterAccordionItem({
className="text-muted-foreground hover:text-foreground flex shrink-0 cursor-pointer items-center gap-0.5 self-start rounded-sm px-1 py-0.5 text-[11px] leading-4 font-normal transition-colors hover:underline focus-visible:underline focus-visible:outline-none"
aria-label={`Clear ${label} filter`}
>
- <IconX className="h-3 w-3 shrink-0" />
+ <IconX className="icon-sm shrink-0" />
Clear
</div>
</TooltipTrigger>
@@ -1964,7 +1966,7 @@ function CategoricalSelectContent({
{hasMoreOptions && (
<div className="mb-2 px-2">
<div className="relative">
- <Search className="text-muted-foreground absolute top-1/2 left-2 h-3.5 w-3.5 -translate-y-1/2" />
+ <Search className="text-muted-foreground icon-base absolute top-1/2 left-2 -translate-y-1/2" />
<Input
placeholder="Filter values"
value={searchQuery}
@@ -2179,7 +2181,7 @@ function NumericFacet({
onClick={() => onRemoveCondition(index)}
className="text-muted-foreground hover:text-foreground h-5 w-5 shrink-0 p-0"
>
- <X className="h-3 w-3" />
+ <X className="icon-base text-icon-foreground" />
</Button>
</div>
))}
diff --git a/web/src/components/table/data-table-pagination.tsx b/web/src/components/table/data-table-pagination.tsx
index 57f103146c..8a046c709a 100644
--- a/web/src/components/table/data-table-pagination.tsx
+++ b/web/src/components/table/data-table-pagination.tsx
@@ -266,7 +266,7 @@ export function DataTablePagination<TData>({
disabled={!table.getCanPreviousPage()}
>
<span className="sr-only">Go to first page</span>
- <ChevronsLeft className="h-4 w-4" />
+ <ChevronsLeft className="icon-base text-icon-foreground" />
</Button>
)}
<Button
@@ -281,7 +281,7 @@ export function DataTablePagination<TData>({
disabled={!table.getCanPreviousPage()}
>
<span className="sr-only">Go to previous page</span>
- <ChevronLeft className="h-4 w-4" />
+ <ChevronLeft className="icon-base text-icon-foreground" />
</Button>
<Button
variant="outline"
@@ -295,7 +295,7 @@ export function DataTablePagination<TData>({
disabled={!table.getCanNextPage() || pageCount === -1}
>
<span className="sr-only">Go to next page</span>
- <ChevronRight className="h-4 w-4" />
+ <ChevronRight className="icon-base text-icon-foreground" />
</Button>
{canJumpPages && (
<Button
@@ -310,7 +310,7 @@ export function DataTablePagination<TData>({
disabled={!table.getCanNextPage() || pageCount === -1}
>
<span className="sr-only">Go to last page</span>
- <ChevronsRight className="h-4 w-4" />
+ <ChevronsRight className="icon-base text-icon-foreground" />
</Button>
)}
</div>
diff --git a/web/src/components/table/data-table-refresh-button.tsx b/web/src/components/table/data-table-refresh-button.tsx
index 0ebe399adf..207749b092 100644
--- a/web/src/components/table/data-table-refresh-button.tsx
+++ b/web/src/components/table/data-table-refresh-button.tsx
@@ -56,7 +56,12 @@ export function DataTableRefreshButton({
)}
title="Refresh"
>
- <RefreshCw className={cn("h-4 w-4", isSpinning && "animate-spin")} />
+ <RefreshCw
+ className={cn(
+ "icon-base text-icon-foreground",
+ isSpinning && "animate-spin",
+ )}
+ />
</Button>
<DropdownMenu>
<DropdownMenuTrigger asChild>
@@ -68,7 +73,7 @@ export function DataTableRefreshButton({
compact && isActive && "border-primary text-primary",
)}
>
- <ChevronDown className="h-4 w-4" />
+ <ChevronDown className="icon-base text-icon-foreground" />
{compact ? (
// Drop the "Off" label; surface the interval only when set.
isActive && (
diff --git a/web/src/components/table/data-table-row-height-switch.tsx b/web/src/components/table/data-table-row-height-switch.tsx
index 05e4add461..35e1da8d1c 100644
--- a/web/src/components/table/data-table-row-height-switch.tsx
+++ b/web/src/components/table/data-table-row-height-switch.tsx
@@ -14,9 +14,9 @@ import { usePostHogClientCapture } from "@/src/features/posthog-analytics";
import { Rows3, Rows2, Rows4 } from "lucide-react";
const ROW_HEIGHT_OPTIONS = [
- { id: "s", label: "Small", icon: <Rows4 /> },
- { id: "m", label: "Medium", icon: <Rows3 /> },
- { id: "l", label: "Large", icon: <Rows2 /> },
+ { id: "s", label: "Small", icon: <Rows4 className="icon-base" /> },
+ { id: "m", label: "Medium", icon: <Rows3 className="icon-base" /> },
+ { id: "l", label: "Large", icon: <Rows2 className="icon-base" /> },
] as const;
const defaultHeights: Record<RowHeight, string> = {
@@ -76,7 +76,7 @@ export const DataTableRowHeightSwitch = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline" size="icon" title="Row height">
- <Rows3 className="h-4 w-4" />
+ <Rows3 className="icon-base text-icon-foreground" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuPortal>
diff --git a/web/src/components/table/data-table-toolbar.tsx b/web/src/components/table/data-table-toolbar.tsx
index d0fb3f7768..66be6d4110 100644
--- a/web/src/components/table/data-table-toolbar.tsx
+++ b/web/src/components/table/data-table-toolbar.tsx
@@ -637,7 +637,7 @@ export function DataTableToolbar<TData, TValue>({
size="sm"
className="flex h-8 items-center gap-2 text-sm md:hidden"
>
- <Filter className="h-4 w-4" />
+ <Filter className="icon-base text-icon-foreground" />
<span>Filters</span>
{filterState.length > 0 && (
<span className="bg-input ml-1 rounded-sm px-1.5 text-xs shadow-xs">
@@ -666,7 +666,7 @@ export function DataTableToolbar<TData, TValue>({
emitLegacyMobileFiltersToggled(false, "header");
}}
>
- <X className="h-4 w-4" />
+ <X className="icon-base text-icon-foreground" />
</Button>
</div>
<div className="shrink-0 border-b px-2 py-2">
diff --git a/web/src/components/table/filtered-run-pills.tsx b/web/src/components/table/filtered-run-pills.tsx
index 0b6b3242d7..39e41f5fa7 100644
--- a/web/src/components/table/filtered-run-pills.tsx
+++ b/web/src/components/table/filtered-run-pills.tsx
@@ -94,7 +94,7 @@ export function FilteredRunPills({
variant="secondary"
className="hover:bg-secondary/80 cursor-pointer text-xs transition-colors"
>
- <ListFilter className="mr-1 h-3 w-3" />
+ <ListFilter className="icon-sm mr-1" />
<div className="font-normal">
{formatFilterForPill(item.filter)}
</div>
diff --git a/web/src/components/table/peek/PeekHeader.tsx b/web/src/components/table/peek/PeekHeader.tsx
index 5fe90c9387..3eddc600bd 100644
--- a/web/src/components/table/peek/PeekHeader.tsx
+++ b/web/src/components/table/peek/PeekHeader.tsx
@@ -215,7 +215,7 @@ export function PeekHeader({
<div ref={openInTabRef}>
<HeaderActionButton
label="Open in new tab"
- icon={<ExternalLink className="h-4 w-4" />}
+ icon={<ExternalLink className="icon-base" />}
onClick={openInNewTab}
/>
</div>
@@ -231,9 +231,9 @@ export function PeekHeader({
label={expand.isExpanded ? "Collapse" : "Expand"}
icon={
expand.isExpanded ? (
- <Minimize2 className="h-4 w-4" />
+ <Minimize2 className="icon-base" />
) : (
- <Maximize2 className="h-4 w-4" />
+ <Maximize2 className="icon-base" />
)
}
onClick={expand.onToggle}
@@ -269,7 +269,7 @@ export function PeekHeader({
aria-label="More actions"
className="text-foreground-secondary hover:text-foreground-secondary"
>
- <MoreHorizontal className="h-4 w-4" />
+ <MoreHorizontal className="icon-base text-icon-foreground" />
</Button>
</PopoverTrigger>
</TooltipTrigger>
@@ -286,7 +286,7 @@ export function PeekHeader({
onClick={openInNewTab}
className="hover:bg-accent flex w-full items-center gap-2 rounded-sm py-1.5 pr-2 pl-1.5 text-sm"
>
- <ExternalLink className="h-4 w-4" />
+ <ExternalLink className="icon-base" />
Open in new tab
</button>
) : null}
@@ -297,7 +297,7 @@ export function PeekHeader({
<div ref={closeRef}>
<HeaderActionButton
label="Close"
- icon={<X className="h-4 w-4" />}
+ icon={<X className="icon-base" />}
onClick={onClose}
/>
</div>
diff --git a/web/src/components/table/peek/peek-evaluator-config-detail.tsx b/web/src/components/table/peek/peek-evaluator-config-detail.tsx
index c12baaf425..ff78177b96 100644
--- a/web/src/components/table/peek/peek-evaluator-config-detail.tsx
+++ b/web/src/components/table/peek/peek-evaluator-config-detail.tsx
@@ -185,7 +185,7 @@ const PeekViewEvaluatorConfigDetail = ({
{evalConfig.evalTemplate.projectId === null ? (
<LangfuseIcon size={16} />
) : (
- <UserCircle2Icon className="h-4 w-4" />
+ <UserCircle2Icon className="icon-base" />
)}
</TooltipTrigger>
<TooltipContent>
diff --git a/web/src/components/table/resizable-filter-layout.tsx b/web/src/components/table/resizable-filter-layout.tsx
index 5d0a0e2200..16647223ea 100644
--- a/web/src/components/table/resizable-filter-layout.tsx
+++ b/web/src/components/table/resizable-filter-layout.tsx
@@ -206,7 +206,7 @@ function FilterPanels({
emitMobileClose("header");
}}
>
- <X className="h-4 w-4" />
+ <X className="icon-base text-icon-foreground" />
</Button>
</div>
{mobileSearch && (
diff --git a/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsx b/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsx
index 5cce585e06..21c46b7241 100644
--- a/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsx
+++ b/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsx
@@ -597,7 +597,7 @@ function TableViewPresetsDrawerContentBody({
</DrawerTitle>
<DrawerClose asChild>
<Button variant="outline" size="icon">
- <X className="h-4 w-4" />
+ <X className="icon-base text-icon-foreground" />
</Button>
</DrawerClose>
</DrawerHeader>
@@ -754,7 +754,7 @@ function TableViewPresetsDrawerContentBody({
}}
className="w-4 opacity-0 group-hover:opacity-100 peer-data-[state=open]:opacity-100"
>
- <Link className="h-4 w-4" />
+ <Link className="icon-base text-icon-foreground" />
</Button>
<DropdownMenu
open={dropdownId === view.id}
@@ -771,7 +771,7 @@ function TableViewPresetsDrawerContentBody({
}}
className="opacity-0 group-hover:opacity-100 data-[state=open]:opacity-100"
>
- <MoreVertical className="h-4 w-4" />
+ <MoreVertical className="icon-base text-icon-foreground" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className="flex flex-col *:w-full *:justify-start">
@@ -806,9 +806,9 @@ function TableViewPresetsDrawerContentBody({
disabled={!hasWriteAccess}
>
{hasWriteAccess ? (
- <Pen className="mr-2 h-4 w-4" />
+ <Pen className="icon-base text-icon-foreground mr-2" />
) : (
- <Lock className="mr-2 h-4 w-4" />
+ <Lock className="icon-base text-icon-foreground mr-2" />
)}
Rename
</Button>
@@ -899,7 +899,7 @@ function TableViewPresetsDrawerContentBody({
<>Set as project default</>
)}
{!hasWriteAccess && (
- <Lock className="ml-auto h-4 w-4" />
+ <Lock className="icon-base text-icon-foreground ml-auto" />
)}
</DropdownMenuItem>
{!isSystemView && (
@@ -967,7 +967,7 @@ function TableViewPresetsDrawerContentBody({
variant="ghost"
className="w-full justify-start px-1"
>
- <Plus className="mr-2 h-4 w-4" />
+ <Plus className="icon-base text-icon-foreground mr-2" />
Create Custom View
</Button>
</DrawerClose>
@@ -1041,7 +1041,7 @@ function TableViewPresetsDrawerContentBody({
!hasWriteAccess
}
>
- {!hasWriteAccess && <Lock className="mr-2 h-4 w-4" />}
+ {!hasWriteAccess && <Lock className="icon-base mr-2" />}
{createMutation.isPending ? "Saving..." : "Save View"}
</Button>
</DialogFooter>
diff --git a/web/src/components/ui/Button.stories.tsx b/web/src/components/ui/Button.stories.tsx
index ab249ceb4e..93a3e6ae80 100644
--- a/web/src/components/ui/Button.stories.tsx
+++ b/web/src/components/ui/Button.stories.tsx
@@ -46,7 +46,7 @@ export const WithIcon = meta.story({
args: {
children: (
<>
- <PlusIcon className="h-4 w-4" aria-hidden="true" />
+ <PlusIcon className="icon-base" aria-hidden="true" />
Add item
</>
),
@@ -107,7 +107,7 @@ export const VariantMatrix = meta.story({
aria-label={size.startsWith("icon") ? variant : undefined}
>
{size.startsWith("icon") ? (
- <PlusIcon className="h-3 w-3" aria-hidden="true" />
+ <PlusIcon className="icon-sm" aria-hidden="true" />
) : (
"Button"
)}
diff --git a/web/src/components/ui/CodeJsonViewer.tsx b/web/src/components/ui/CodeJsonViewer.tsx
index e7e007ee27..047d3f6751 100644
--- a/web/src/components/ui/CodeJsonViewer.tsx
+++ b/web/src/components/ui/CodeJsonViewer.tsx
@@ -206,9 +206,9 @@ export function JSONView(props: {
title={isFullyCollapsed ? "Expand all" : "Collapse all"}
>
{isFullyCollapsed ? (
- <UnfoldVertical className="h-3 w-3" />
+ <UnfoldVertical className="icon-sm text-icon-foreground" />
) : (
- <FoldVertical className="h-3 w-3" />
+ <FoldVertical className="icon-sm text-icon-foreground" />
)}
</Button>
</>
@@ -274,7 +274,7 @@ export function CodeView(props: {
const CopySuccessIcon = useMemo(() => {
return (
<div className="animate-appear relative h-3">
- <Check className="h-3 w-3" />
+ <Check className="icon-sm" />
{copiedToClipboardMessage && (
<div
className="text-secondary-foreground absolute top-0 right-0 mr-6 h-full max-w-[60vw] transform truncate overflow-hidden text-right text-sm leading-none whitespace-nowrap"
@@ -305,7 +305,11 @@ export function CodeView(props: {
onClick={handleCopy}
className=""
>
- {isCopied ? CopySuccessIcon : <Copy className="h-3 w-3" />}
+ {isCopied ? (
+ CopySuccessIcon
+ ) : (
+ <Copy className="icon-sm text-icon-foreground" />
+ )}
</Button>
</div>
) : undefined}
@@ -323,7 +327,7 @@ export function CodeView(props: {
onClick={handleCopy}
className="absolute top-2 right-2 z-10"
>
- {isCopied ? CopySuccessIcon : <Copy className="h-3 w-3" />}
+ {isCopied ? CopySuccessIcon : <Copy className="icon-sm" />}
</Button>
)}
<code
@@ -345,9 +349,9 @@ export function CodeView(props: {
<div className="flex gap-2 py-2 pr-2">
<Button variant="secondary" size="xs" onClick={handleShowAll}>
{isCollapsed ? (
- <ChevronsUpDown className="h-3 w-3" />
+ <ChevronsUpDown className="icon-sm" />
) : (
- <ChevronsDownUp className="h-3 w-3" />
+ <ChevronsDownUp className="icon-sm" />
)}
</Button>
</div>
diff --git a/web/src/components/ui/InfoTooltip/InfoTooltip.tsx b/web/src/components/ui/InfoTooltip/InfoTooltip.tsx
index 616873c9e4..745e25561d 100644
--- a/web/src/components/ui/InfoTooltip/InfoTooltip.tsx
+++ b/web/src/components/ui/InfoTooltip/InfoTooltip.tsx
@@ -18,7 +18,7 @@ export function InfoTooltip({
<Tooltip>
<TooltipTrigger asChild>
<InfoIcon
- className="text-muted-foreground h-3.5 w-3.5 cursor-help"
+ className="text-muted-foreground icon-base cursor-help"
aria-label={label}
/>
</TooltipTrigger>
diff --git a/web/src/components/ui/LangfuseMediaView.tsx b/web/src/components/ui/LangfuseMediaView.tsx
index 41046be8a0..771c8c3c08 100644
--- a/web/src/components/ui/LangfuseMediaView.tsx
+++ b/web/src/components/ui/LangfuseMediaView.tsx
@@ -85,7 +85,7 @@ export const LangfuseMediaView = ({
return (
<div className="flex items-center gap-2">
<span title={text}>
- <ImageOff className="h-4 w-4" />
+ <ImageOff className="icon-base" />
</span>
<span className="truncate text-sm" title={text}>
{text}
@@ -254,7 +254,7 @@ function FileViewer({
title={`Open ${fileName} in new tab`}
className="shrink-0"
>
- <ExternalLink className="h-4 w-4" />
+ <ExternalLink className="icon-base text-icon-foreground" />
</Button>
</div>
) : (
diff --git a/web/src/components/ui/LargeStringFallback.tsx b/web/src/components/ui/LargeStringFallback.tsx
index 8d9c92b928..96f884a094 100644
--- a/web/src/components/ui/LargeStringFallback.tsx
+++ b/web/src/components/ui/LargeStringFallback.tsx
@@ -72,7 +72,7 @@ export function LargeStringFallback({
</pre>
<div>
<Button variant="outline" size="sm" onClick={onDownload}>
- <Download className="mr-1 h-3.5 w-3.5" />
+ <Download className="icon-base text-icon-foreground mr-1" />
Download full value
</Button>
</div>
diff --git a/web/src/components/ui/MarkdownJsonView.tsx b/web/src/components/ui/MarkdownJsonView.tsx
index 5c15e70021..b2c82e96a2 100644
--- a/web/src/components/ui/MarkdownJsonView.tsx
+++ b/web/src/components/ui/MarkdownJsonView.tsx
@@ -74,9 +74,9 @@ export function MarkdownJsonViewHeader({
className="text-muted-foreground hover:text-foreground hover:bg-transparent"
>
{isCopied ? (
- <Check className="h-3 w-3" />
+ <Check className="icon-sm text-icon-foreground" />
) : (
- <Copy className="h-3 w-3" />
+ <Copy className="icon-sm text-icon-foreground" />
)}
</Button>
)}
diff --git a/web/src/components/ui/MarkdownViewer.tsx b/web/src/components/ui/MarkdownViewer.tsx
index ce71e42623..4700c5bd72 100644
--- a/web/src/components/ui/MarkdownViewer.tsx
+++ b/web/src/components/ui/MarkdownViewer.tsx
@@ -413,7 +413,7 @@ function MarkdownRenderer({
return (
<div className={cn("space-y-2 overflow-x-auto text-base", className)}>
<div className="text-muted-foreground flex items-center gap-1 text-xs">
- <Info className="h-3 w-3" />
+ <Info className="icon-sm" />
Content is too large or deeply nested to render as markdown.
Displaying as plain text.
</div>
@@ -453,7 +453,7 @@ function MarkdownRenderer({
return (
<>
<div className="text-muted-foreground flex items-center gap-1 text-xs">
- <Info className="h-3 w-3" />
+ <Info className="icon-sm" />
Markdown parsing failed. Displaying raw JSON.
</div>
<JSONView json={markdown} className="min-w-0" />
@@ -703,7 +703,7 @@ export function MarkdownView({
className="grid grid-cols-[auto_1fr] items-center gap-2"
>
<span title="<Base64 data URI>" className="h-4 w-4">
- <ImageOff className="h-4 w-4" />
+ <ImageOff className="icon-base" />
</span>
<span className="truncate text-sm" title={imageUrl.toString()}>
{imageUrl.toString()}
diff --git a/web/src/components/ui/PrettyJsonView.tsx b/web/src/components/ui/PrettyJsonView.tsx
index 1ca77ba417..b4f66e0449 100644
--- a/web/src/components/ui/PrettyJsonView.tsx
+++ b/web/src/components/ui/PrettyJsonView.tsx
@@ -504,9 +504,9 @@ function JsonPrettyTable({
className="text-muted-foreground hover:text-foreground h-4 w-4 p-0 hover:bg-transparent"
>
{row.getIsExpanded() ? (
- <ChevronDown className="h-3 w-3" />
+ <ChevronDown className="icon-base text-icon-foreground" />
) : (
- <ChevronRight className="h-3 w-3" />
+ <ChevronRight className="icon-base text-icon-foreground" />
)}
</Button>
) : null}
@@ -1387,9 +1387,9 @@ export function PrettyJsonView(props: {
title={allRowsExpanded ? "Collapse all rows" : "Expand all rows"}
>
{allRowsExpanded ? (
- <FoldVertical className="h-3 w-3" />
+ <FoldVertical className="icon-sm text-icon-foreground" />
) : (
- <UnfoldVertical className="h-3 w-3" />
+ <UnfoldVertical className="icon-sm text-icon-foreground" />
)}
</Button>
)}
@@ -1402,9 +1402,9 @@ export function PrettyJsonView(props: {
title={jsonIsCollapsed ? "Expand all" : "Collapse all"}
>
{jsonIsCollapsed ? (
- <UnfoldVertical className="h-3 w-3" />
+ <UnfoldVertical className="icon-sm text-icon-foreground" />
) : (
- <FoldVertical className="h-3 w-3" />
+ <FoldVertical className="icon-sm text-icon-foreground" />
)}
</Button>
)}
diff --git a/web/src/components/ui/PromptReferences.tsx b/web/src/components/ui/PromptReferences.tsx
index 20282d18de..46a1dbba70 100644
--- a/web/src/components/ui/PromptReferences.tsx
+++ b/web/src/components/ui/PromptReferences.tsx
@@ -186,7 +186,7 @@ export const PromptReferenceButton = ({
}
title={`Open prompt: ${promptRefTitle}`}
>
- <FileCode className="text-muted-foreground h-3 w-3 shrink-0" />
+ <FileCode className="icon-base text-muted-foreground shrink-0" />
<span className="truncate font-bold" title={promptRefTitle}>
{promptRef.name}
{promptRef.type === "version" ? (
diff --git a/web/src/components/ui/ai-assisted-input.tsx b/web/src/components/ui/ai-assisted-input.tsx
index e33d9c8174..670d55e0fd 100644
--- a/web/src/components/ui/ai-assisted-input.tsx
+++ b/web/src/components/ui/ai-assisted-input.tsx
@@ -76,9 +76,9 @@ export function AIAssistedInput({
}
>
{isGenerating ? (
- <Loader2 className="h-3.5 w-3.5 animate-spin" />
+ <Loader2 className="icon-sm text-icon-foreground animate-spin" />
) : (
- <Sparkles className="h-3.5 w-3.5" />
+ <Sparkles className="icon-sm text-icon-foreground" />
)}
</Button>
</TooltipTrigger>
diff --git a/web/src/components/ui/breadcrumb.tsx b/web/src/components/ui/breadcrumb.tsx
index c356c89c78..d3e50e7fba 100644
--- a/web/src/components/ui/breadcrumb.tsx
+++ b/web/src/components/ui/breadcrumb.tsx
@@ -78,13 +78,8 @@ const BreadcrumbSeparator = ({
className,
...props
}: React.ComponentProps<"li">) => (
- <li
- role="presentation"
- aria-hidden="true"
- className={cn("[&>svg]:size-3.5", className)}
- {...props}
- >
- {children ?? <ChevronRight />}
+ <li role="presentation" aria-hidden="true" className={className} {...props}>
+ {children ?? <ChevronRight className="icon-sm" />}
</li>
);
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
@@ -99,7 +94,7 @@ const BreadcrumbEllipsis = ({
className={cn("flex h-9 w-9 items-center justify-center", className)}
{...props}
>
- <MoreHorizontal className="h-4 w-4" />
+ <MoreHorizontal className="icon-base" />
<span className="sr-only">More</span>
</span>
);
diff --git a/web/src/components/ui/calendar.tsx b/web/src/components/ui/calendar.tsx
index f3ae01d952..5d8bb8d323 100644
--- a/web/src/components/ui/calendar.tsx
+++ b/web/src/components/ui/calendar.tsx
@@ -90,7 +90,7 @@ const Chevron = ({
orientation?: keyof typeof chevronIcons;
}) => {
const Icon = chevronIcons[orientation];
- return <Icon className="h-4 w-4" />;
+ return <Icon className="icon-base" />;
};
export { Calendar };
diff --git a/web/src/components/ui/combobox.tsx b/web/src/components/ui/combobox.tsx
index 07b87f57f5..191cefefe0 100644
--- a/web/src/components/ui/combobox.tsx
+++ b/web/src/components/ui/combobox.tsx
@@ -207,7 +207,7 @@ export function Combobox<T extends string | number | boolean | { id: string }>({
>
<Check
className={cn(
- "mr-2 h-4 w-4",
+ "icon-base mr-2",
isEqual(value as T | undefined, option.value)
? "opacity-100"
: "opacity-0",
@@ -258,7 +258,7 @@ export function Combobox<T extends string | number | boolean | { id: string }>({
>
<Check
className={cn(
- "mr-2 h-4 w-4",
+ "icon-base mr-2",
isEqual(value as T | undefined, option.value)
? "opacity-100"
: "opacity-0",
diff --git a/web/src/components/ui/command.tsx b/web/src/components/ui/command.tsx
index 2089d90920..e33d03ed16 100644
--- a/web/src/components/ui/command.tsx
+++ b/web/src/components/ui/command.tsx
@@ -87,7 +87,7 @@ const CommandInput = React.forwardRef<
"cmdk-input-wrapper",
)}
>
- <Search className="absolute top-1/2 left-2 mr-2 h-3.5 w-3.5 shrink-0 -translate-y-1/2 opacity-50" />
+ <Search className="icon-base absolute top-1/2 left-2 mr-2 shrink-0 -translate-y-1/2 opacity-50" />
<CommandPrimitive.Input
ref={ref}
className={cn(
@@ -163,7 +163,7 @@ const CommandItem = React.forwardRef<
ref={ref}
className={cn(
className,
- "data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
+ "data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
)}
{...props}
/>
diff --git a/web/src/components/ui/dialog.tsx b/web/src/components/ui/dialog.tsx
index 9b93521e0f..93ccf6497f 100644
--- a/web/src/components/ui/dialog.tsx
+++ b/web/src/components/ui/dialog.tsx
@@ -161,7 +161,7 @@ const DialogContent = React.forwardRef<
{children}
<div className="[&:has(.dialog-header)]:hidden [&:not(:has(.dialog-header))]:absolute [&:not(:has(.dialog-header))]:top-3 [&:not(:has(.dialog-header))]:right-3 [&:not(:has(.dialog-header))]:z-20">
<DialogPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none">
- <X className="h-4 w-4" />
+ <X className="icon-base" />
<span className="sr-only">Close</span>
</DialogPrimitive.Close>
</div>
@@ -258,7 +258,7 @@ const DialogHeader = ({
className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:bg-accent z-20 -my-2 -mr-2 ml-2 inline-flex size-9 shrink-0 items-center justify-center rounded-md opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none"
tabIndex={-1}
>
- <X className="h-4 w-4" />
+ <X className="icon-base" />
<span className="sr-only">Close</span>
</DialogPrimitive.Close>
</div>
diff --git a/web/src/components/ui/dropdown-menu.stories.tsx b/web/src/components/ui/dropdown-menu.stories.tsx
index 8f99887745..c90e930e0a 100644
--- a/web/src/components/ui/dropdown-menu.stories.tsx
+++ b/web/src/components/ui/dropdown-menu.stories.tsx
@@ -35,11 +35,11 @@ const meta = preview.meta({
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem className="text-xs" onSelect={fn()}>
- <CopyIcon className="mr-2 h-4 w-4" />
+ <CopyIcon className="icon-base mr-2" />
Copy Trace ID
</DropdownMenuItem>
<DropdownMenuItem className="text-xs" onSelect={fn()}>
- <CopyIcon className="mr-2 h-4 w-4" />
+ <CopyIcon className="icon-base mr-2" />
Copy Observation ID
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/web/src/components/ui/dropdown-menu.tsx b/web/src/components/ui/dropdown-menu.tsx
index 0fd0dd2b91..255ba861bd 100644
--- a/web/src/components/ui/dropdown-menu.tsx
+++ b/web/src/components/ui/dropdown-menu.tsx
@@ -4,7 +4,7 @@
import * as React from "react";
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
import { cva } from "class-variance-authority";
-import { Check, Circle, Minus, type LucideIcon } from "lucide-react";
+import { Check, Minus, type LucideIcon } from "lucide-react";
import { DropdownIndicator } from "@/src/components/design-system/DropdownIndicator/DropdownIndicator";
import Link from "next/link";
@@ -381,7 +381,10 @@ const DropdownMenuItemWithSecondaryAction = (
const primaryContent = (
<>
{PrimaryActionIcon && (
- <PrimaryActionIcon className="mr-1.5 size-4" aria-hidden="true" />
+ <PrimaryActionIcon
+ className="icon-base text-icon-foreground mr-1.5"
+ aria-hidden="true"
+ />
)}
<span
className="min-w-0 flex-1 overflow-hidden text-left text-ellipsis whitespace-nowrap"
@@ -424,7 +427,7 @@ const DropdownMenuItemWithSecondaryAction = (
}
}}
>
- <SecondaryActionIcon size={12} />
+ <SecondaryActionIcon className="icon-sm text-icon-foreground" />
</Link>
);
}
@@ -440,7 +443,7 @@ const DropdownMenuItemWithSecondaryAction = (
secondaryAction.onClick();
}}
>
- <SecondaryActionIcon size={12} />
+ <SecondaryActionIcon className="icon-sm text-icon-foreground" />
</button>
);
}, [secondaryAction, SecondaryActionIcon, isDisabled]);
@@ -526,8 +529,12 @@ const DropdownMenuCheckboxItem = React.forwardRef<
>
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
<DropdownMenuPrimitive.ItemIndicator>
- {checked === "indeterminate" && <Minus className="h-4 w-4" />}
- {checked === true && <Check className="h-4 w-4" />}
+ {checked === "indeterminate" && (
+ <Minus className="icon-base text-icon-foreground" />
+ )}
+ {checked === true && (
+ <Check className="icon-base text-icon-foreground" />
+ )}
</DropdownMenuPrimitive.ItemIndicator>
</span>
{children}
@@ -550,7 +557,7 @@ const DropdownMenuRadioItem = React.forwardRef<
>
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
<DropdownMenuPrimitive.ItemIndicator>
- <Circle className="h-2 w-2 fill-current" />
+ <span className="size-2 rounded-full bg-current" aria-hidden />
</DropdownMenuPrimitive.ItemIndicator>
</span>
{children}
diff --git a/web/src/components/ui/input-command.tsx b/web/src/components/ui/input-command.tsx
index ddf651d890..a73de3f6e3 100644
--- a/web/src/components/ui/input-command.tsx
+++ b/web/src/components/ui/input-command.tsx
@@ -39,7 +39,7 @@ const InputCommandInput = React.forwardRef<
"cmdk-input-wrapper",
)}
>
- <Search className="mr-2 h-4 w-4 shrink-0 opacity-50" />
+ <Search className="icon-base mr-2 shrink-0 opacity-50" />
<CommandPrimitive.Input
ref={ref}
className={cn(
diff --git a/web/src/components/ui/multi-select-combobox.tsx b/web/src/components/ui/multi-select-combobox.tsx
index 9fb4ef43ae..40d74f246b 100644
--- a/web/src/components/ui/multi-select-combobox.tsx
+++ b/web/src/components/ui/multi-select-combobox.tsx
@@ -156,7 +156,7 @@ export function MultiSelectCombobox<T>({
style={{ overflowAnchor: "none" }}
>
{showSearchIcon && (
- <Search className="text-muted-foreground absolute top-2.5 left-2 z-10 h-4 w-4" />
+ <Search className="text-muted-foreground icon-base absolute top-2.5 left-2 z-10" />
)}
<div
className={cn(
@@ -198,7 +198,7 @@ export function MultiSelectCombobox<T>({
className="absolute top-1 right-2 h-7 w-7 p-0"
onClick={() => onSearchChange("")}
>
- <X className="h-3 w-3" />
+ <X className="icon-base text-icon-foreground" />
</Button>
)}
</div>
@@ -236,7 +236,7 @@ export function MultiSelectCombobox<T>({
))}
{hasMoreResults && (
<div className="text-muted-foreground flex items-center gap-3 px-3 py-2">
- <MoreHorizontal className="h-4 w-4" />
+ <MoreHorizontal className="icon-base" />
<div className="min-w-0 flex-1">
<p className="text-xs italic">
More results available, refine your search
diff --git a/web/src/components/ui/resizable-image.tsx b/web/src/components/ui/resizable-image.tsx
index ccf472e663..0c6ac27386 100644
--- a/web/src/components/ui/resizable-image.tsx
+++ b/web/src/components/ui/resizable-image.tsx
@@ -39,7 +39,7 @@ const ImageErrorDisplay = ({
return (
<div className="grid grid-cols-[auto_1fr] items-center gap-2">
<span title={displayError} className="h-4 w-4">
- <ImageOff className="h-4 w-4" />
+ <ImageOff className="icon-base" />
</span>
{safeSrc ? (
<Link
@@ -163,9 +163,9 @@ export const ResizableImage = ({
onClick={() => setIsZoomedIn(!isZoomedIn)}
>
{isZoomedIn ? (
- <Maximize2 className="h-4 w-4"></Maximize2>
+ <Maximize2 className="icon-base text-icon-foreground"></Maximize2>
) : (
- <Minimize2 className="h-4 w-4"></Minimize2>
+ <Minimize2 className="icon-base text-icon-foreground"></Minimize2>
)}
</Button>
</>
diff --git a/web/src/components/ui/select.tsx b/web/src/components/ui/select.tsx
index f9e1fcd8e3..e1722121bf 100644
--- a/web/src/components/ui/select.tsx
+++ b/web/src/components/ui/select.tsx
@@ -68,7 +68,7 @@ const SelectScrollUpButton = React.forwardRef<
)}
{...props}
>
- <ChevronUp className="h-4 w-4" />
+ <ChevronUp className="icon-base" />
</SelectPrimitive.ScrollUpButton>
));
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
@@ -85,7 +85,7 @@ const SelectScrollDownButton = React.forwardRef<
)}
{...props}
>
- <ChevronDown className="h-4 w-4" />
+ <ChevronDown className="icon-base" />
</SelectPrimitive.ScrollDownButton>
));
SelectScrollDownButton.displayName =
@@ -158,7 +158,7 @@ const SelectItem = React.forwardRef<
className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center"
>
<SelectPrimitive.ItemIndicator>
- <Check className="h-4 w-4" />
+ <Check className="icon-base" />
</SelectPrimitive.ItemIndicator>
</span>
diff --git a/web/src/components/ui/sheet.tsx b/web/src/components/ui/sheet.tsx
index dfb6dae59b..c88baa5d95 100644
--- a/web/src/components/ui/sheet.tsx
+++ b/web/src/components/ui/sheet.tsx
@@ -80,7 +80,7 @@ const SheetContent = React.forwardRef<
>
{children}
<SheetPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-2 right-2 inline-flex size-8 items-center justify-center rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none">
- <X className="h-4 w-4" />
+ <X className="icon-base" />
<span className="sr-only">Close</span>
</SheetPrimitive.Close>
</SheetPrimitive.Content>
diff --git a/web/src/components/ui/side-panel.tsx b/web/src/components/ui/side-panel.tsx
index 832bca0ca0..213864ecd9 100644
--- a/web/src/components/ui/side-panel.tsx
+++ b/web/src/components/ui/side-panel.tsx
@@ -115,7 +115,7 @@ const SidePanel = ({
className="h-8 w-8"
title="Show details"
>
- <ChevronLeft className="h-4 w-4" />
+ <ChevronLeft className="icon-base text-icon-foreground" />
</Button>
</SheetTrigger>
</div>
@@ -187,7 +187,7 @@ const SidePanelHeader = ({ children }: { children: ReactNode }) => {
onClick={() => setShowPanel(true)}
title="Show details"
>
- <ChevronLeft className="h-4 w-4" />
+ <ChevronLeft className="icon-base text-icon-foreground" />
</Button>
);
}
@@ -202,7 +202,7 @@ const SidePanelHeader = ({ children }: { children: ReactNode }) => {
onClick={() => setShowPanel(false)}
title="Hide details"
>
- <ChevronRight className="h-4 w-4" />
+ <ChevronRight className="icon-base text-icon-foreground" />
</Button>
</div>
<Separator />
diff --git a/web/src/components/ui/sidebar.tsx b/web/src/components/ui/sidebar.tsx
index c37b76b26e..94d4e3b2c4 100644
--- a/web/src/components/ui/sidebar.tsx
+++ b/web/src/components/ui/sidebar.tsx
@@ -315,8 +315,8 @@ const SidebarTrigger = React.forwardRef<
>
{/* Hamburger below `md` (opens the sheet); panel-collapse glyph on
desktop (toggles the docked sidebar). */}
- <Menu className="size-5 md:hidden" />
- <PanelLeft className="hidden size-3.5 md:block" />
+ <Menu className="icon-lg text-icon-foreground md:hidden" />
+ <PanelLeft className="icon-base text-icon-foreground hidden md:block" />
<span className="sr-only">Toggle Sidebar</span>
</Button>
);
@@ -481,7 +481,7 @@ const SidebarGroupLabel = React.forwardRef<
ref={ref}
data-sidebar="group-label"
className={cn(
- "text-sidebar-foreground/70 ring-sidebar-ring mt-1 flex h-8 shrink-0 items-center px-2 text-xs font-bold whitespace-nowrap outline-hidden transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-3.5 [&>svg]:shrink-0",
+ "text-sidebar-foreground/70 ring-sidebar-ring mt-1 flex h-8 shrink-0 items-center px-2 text-xs font-bold whitespace-nowrap outline-hidden transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:shrink-0",
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:hidden",
"-mb-2",
className,
@@ -503,7 +503,7 @@ const SidebarGroupAction = React.forwardRef<
ref={ref}
data-sidebar="group-action"
className={cn(
- "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:shrink-0",
// Increases the hit area of the button on mobile.
"after:absolute after:-inset-2 md:after:hidden",
"group-data-[collapsible=icon]:hidden",
@@ -559,7 +559,7 @@ const SidebarMenuItem = React.forwardRef<
SidebarMenuItem.displayName = "SidebarMenuItem";
const sidebarMenuButtonVariants = cva(
- "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-sm p-2 group-data-[collapsible=icon]:gap-2.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-bold data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-3.5 [&>svg]:shrink-0",
+ "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-sm p-2 group-data-[collapsible=icon]:gap-2.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-bold data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:shrink-0",
{
variants: {
variant: {
@@ -661,7 +661,7 @@ const SidebarMenuAction = React.forwardRef<
ref={ref}
data-sidebar="menu-action"
className={cn(
- "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:shrink-0",
// Increases the hit area of the button on mobile.
"after:absolute after:-inset-2 md:after:hidden",
"peer-data-[size=sm]/menu-button:top-1",
@@ -774,7 +774,7 @@ const SidebarMenuSubButton = React.forwardRef<
data-size={size}
data-active={isActive}
className={cn(
- "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-sm px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-3.5 [&>svg]:shrink-0",
+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-sm px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:shrink-0",
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
size === "sm" && "text-xs",
size === "md" && "text-sm",
diff --git a/web/src/components/ui/time-icon.tsx b/web/src/components/ui/time-icon.tsx
index b37ddac672..36e26b97af 100644
--- a/web/src/components/ui/time-icon.tsx
+++ b/web/src/components/ui/time-icon.tsx
@@ -10,18 +10,18 @@ const isMidnight = (date: Date) =>
const getIconForPeriod = (period: Period) => {
const icons = {
- PM: <Sun className="size-5" />,
- AM: <Moon className="size-5" />,
+ PM: <Sun className="icon-lg" />,
+ AM: <Moon className="icon-lg" />,
};
- return icons[period] || <Clock className="size-5" />;
+ return icons[period] || <Clock className="icon-lg" />;
};
export const TimeIcon: React.FC<{ time: Date | Period }> = ({ time }) => {
if (time instanceof Date) {
- if (isNoon(time)) return <Sun className="size-5" />;
- if (isMidnight(time)) return <Moon className="size-5" />;
- return <Clock className="size-5" />;
+ if (isNoon(time)) return <Sun className="icon-lg" />;
+ if (isMidnight(time)) return <Moon className="icon-lg" />;
+ return <Clock className="icon-lg" />;
}
return getIconForPeriod(time);
diff --git a/web/src/ee/features/audit-log-viewer/AuditLogsTable/ConnectedAuditLogsTable.tsx b/web/src/ee/features/audit-log-viewer/AuditLogsTable/ConnectedAuditLogsTable.tsx
index c26b557f24..05b1f01ad0 100644
--- a/web/src/ee/features/audit-log-viewer/AuditLogsTable/ConnectedAuditLogsTable.tsx
+++ b/web/src/ee/features/audit-log-viewer/AuditLogsTable/ConnectedAuditLogsTable.tsx
@@ -69,7 +69,7 @@ export function ConnectedAuditLogsTable(props: AuditLogsTableProps) {
{
id: "export",
label: "Export",
- icon: <Download className="size-4" />,
+ icon: <Download className="icon-base" />,
variant: "outline" as const,
loading: createExport.isPending,
dropdown: {
diff --git a/web/src/ee/features/billing/components/BillingInvoiceTable.tsx b/web/src/ee/features/billing/components/BillingInvoiceTable.tsx
index adf6a40417..ad0424f121 100644
--- a/web/src/ee/features/billing/components/BillingInvoiceTable.tsx
+++ b/web/src/ee/features/billing/components/BillingInvoiceTable.tsx
@@ -205,14 +205,16 @@ export function BillingInvoiceTable() {
{hostedInvoiceUrl ? (
<a href={hostedInvoiceUrl} target="_blank" rel="noreferrer">
<Button size="sm" variant="ghost">
- <ExternalLink className="mr-1 h-4 w-4" /> View
+ <ExternalLink className="icon-base text-icon-foreground mr-1" />{" "}
+ View
</Button>
</a>
) : null}
{invoicePdfUrl ? (
<a href={invoicePdfUrl} target="_blank" rel="noreferrer">
<Button size="sm" variant="ghost">
- <Download className="mr-1 h-4 w-4" /> PDF
+ <Download className="icon-base text-icon-foreground mr-1" />{" "}
+ PDF
</Button>
</a>
) : null}
diff --git a/web/src/ee/features/billing/components/BillingScheduleNotification.tsx b/web/src/ee/features/billing/components/BillingScheduleNotification.tsx
index 7dc00a5edc..4040dbd133 100644
--- a/web/src/ee/features/billing/components/BillingScheduleNotification.tsx
+++ b/web/src/ee/features/billing/components/BillingScheduleNotification.tsx
@@ -24,7 +24,7 @@ export const BillingScheduleNotification = (
return (
<div className="mt-6 mb-4 flex overflow-x-auto rounded-lg border border-blue-200 bg-blue-100 py-2 text-sm text-blue-900 contrast-more:border-current ltr:pr-4 rtl:pl-4 dark:border-blue-200/30 dark:bg-blue-900/30 dark:text-blue-200 contrast-more:dark:border-current">
<div className="flex items-center gap-2 pl-3 leading-7">
- <InfoIcon className="h-4 w-4" />
+ <InfoIcon className="icon-base" />
{`Your organization cancelled the subscription. Features of the ${props.planLabel} plan will be available until ${props.cancellation.formatted}.`}
</div>
</div>
@@ -34,7 +34,7 @@ export const BillingScheduleNotification = (
return (
<div className="mt-6 mb-4 flex overflow-x-auto rounded-lg border border-blue-200 bg-blue-100 py-2 text-sm text-blue-900 contrast-more:border-current ltr:pr-4 rtl:pl-4 dark:border-blue-200/30 dark:bg-blue-900/30 dark:text-blue-200 contrast-more:dark:border-current">
<div className="flex gap-2 pl-3">
- <InfoIcon className="mt-1 h-4 w-4 shrink-0" />
+ <InfoIcon className="icon-base mt-1 shrink-0" />
<div>
<div>{`Your organization is scheduled to switch from ${props.planLabel} to ${props.scheduledPlanSwitch.newPlanLabel} on ${props.scheduledPlanSwitch.formatted}.`}</div>
{props.scheduledPlanSwitch.message && (
diff --git a/web/src/ee/features/billing/components/SpendAlerts/SpendAlertDialog.tsx b/web/src/ee/features/billing/components/SpendAlerts/SpendAlertDialog.tsx
index ff5d5d4e25..7752667fd9 100644
--- a/web/src/ee/features/billing/components/SpendAlerts/SpendAlertDialog.tsx
+++ b/web/src/ee/features/billing/components/SpendAlerts/SpendAlertDialog.tsx
@@ -167,7 +167,7 @@ export function SpendAlertDialog({
/>
<div className="text-muted-foreground text-xs">
<div className="flex flex-row items-center">
- <Info className="mr-2 h-3 w-3" />
+ <Info className="icon-sm mr-2" />
<span className="font-bold">How it works</span>
</div>
<ul className="list-disc pl-5">
diff --git a/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsSection.tsx b/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsSection.tsx
index 6e34be8a2d..6d321b4fc8 100644
--- a/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsSection.tsx
+++ b/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsSection.tsx
@@ -26,7 +26,7 @@ export function SpendAlertsSection({ orgId }: SpendAlertsSectionProps) {
</div>
<Button onClick={() => setIsCreateDialogOpen(true)}>
- <Plus className="mr-2 h-4 w-4" />
+ <Plus className="icon-base mr-2" />
Create Alert
</Button>
</div>
diff --git a/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsTable.tsx b/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsTable.tsx
index ec0f7088fb..4b889540a9 100644
--- a/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsTable.tsx
+++ b/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsTable.tsx
@@ -109,14 +109,14 @@ export function SpendAlertsTable({ orgId }: SpendAlertsTableProps) {
id ? (
<>
<DropdownMenuItem onClick={() => setEditingAlert(id)}>
- <Edit className="mr-2 h-4 w-4" />
+ <Edit className="icon-base text-icon-foreground mr-2" />
Edit
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => setDeletingAlert(id)}
className="text-destructive"
>
- <Trash2 className="mr-2 h-4 w-4" />
+ <Trash2 className="icon-base mr-2" />
Delete
</DropdownMenuItem>
</>
diff --git a/web/src/ee/features/sso-settings/components/SsoConfigDialogController.tsx b/web/src/ee/features/sso-settings/components/SsoConfigDialogController.tsx
index 37170f8257..8632c20ca7 100644
--- a/web/src/ee/features/sso-settings/components/SsoConfigDialogController.tsx
+++ b/web/src/ee/features/sso-settings/components/SsoConfigDialogController.tsx
@@ -480,9 +480,9 @@ function CopyableCallbackUrl({ value }: { value: string }) {
}}
>
{isCopied ? (
- <Check className="h-3 w-3" />
+ <Check className="icon-sm text-icon-foreground" />
) : (
- <Copy className="h-3 w-3" />
+ <Copy className="icon-sm text-icon-foreground" />
)}
</Button>
</div>
diff --git a/web/src/features/ai-gateway/components/GatewayApiKeysPage/components/CreateGatewayApiKeyDialogController/CreateGatewayApiKeyDialogController.tsx b/web/src/features/ai-gateway/components/GatewayApiKeysPage/components/CreateGatewayApiKeyDialogController/CreateGatewayApiKeyDialogController.tsx
index 16e76cb09f..e041a022b2 100644
--- a/web/src/features/ai-gateway/components/GatewayApiKeysPage/components/CreateGatewayApiKeyDialogController/CreateGatewayApiKeyDialogController.tsx
+++ b/web/src/features/ai-gateway/components/GatewayApiKeysPage/components/CreateGatewayApiKeyDialogController/CreateGatewayApiKeyDialogController.tsx
@@ -136,7 +136,7 @@ export function CreateGatewayApiKeyDialogController({
type="button"
className="group flex items-center gap-2 text-left text-sm"
>
- <ChevronRight className="text-foreground-tertiary size-3.5 translate-y-px transition-transform group-data-[state=open]:rotate-90" />
+ <ChevronRight className="text-foreground-tertiary icon-base translate-y-px transition-transform group-data-[state=open]:rotate-90" />
<span>Metadata</span>
<span className="text-muted-foreground font-normal">
(optional)
@@ -194,7 +194,7 @@ export function CreateGatewayApiKeyDialogController({
)
}
>
- <X className="size-4" />
+ <X className="icon-sm text-icon-foreground" />
</Button>
</div>
))}
@@ -210,7 +210,7 @@ export function CreateGatewayApiKeyDialogController({
setNextMetadataId((current) => current + 1);
}}
>
- <Plus className="size-3.5" />
+ <Plus className="icon-base" />
Add metadata
</button>
</CollapsibleContent>
diff --git a/web/src/features/ai-gateway/components/GatewayApiKeysPage/components/GatewayApiKeysTable/GatewayApiKeysTable.tsx b/web/src/features/ai-gateway/components/GatewayApiKeysPage/components/GatewayApiKeysTable/GatewayApiKeysTable.tsx
index 5c22821a9d..9483a5f631 100644
--- a/web/src/features/ai-gateway/components/GatewayApiKeysPage/components/GatewayApiKeysTable/GatewayApiKeysTable.tsx
+++ b/web/src/features/ai-gateway/components/GatewayApiKeysPage/components/GatewayApiKeysTable/GatewayApiKeysTable.tsx
@@ -80,7 +80,7 @@ export function GatewayApiKeysTable({
{
id: "create-key",
label: "Create key",
- icon: <Plus className="size-4" aria-hidden="true" />,
+ icon: <Plus className="icon-base" aria-hidden="true" />,
onClick: createAction,
},
]}
diff --git a/web/src/features/ai-gateway/components/GatewayConfigurationPage/components/GatewayConfigurationView/GatewayConfigurationView.tsx b/web/src/features/ai-gateway/components/GatewayConfigurationPage/components/GatewayConfigurationView/GatewayConfigurationView.tsx
index e268f2c119..e86009a370 100644
--- a/web/src/features/ai-gateway/components/GatewayConfigurationPage/components/GatewayConfigurationView/GatewayConfigurationView.tsx
+++ b/web/src/features/ai-gateway/components/GatewayConfigurationPage/components/GatewayConfigurationView/GatewayConfigurationView.tsx
@@ -189,9 +189,9 @@ export function GatewayConfigurationView({
)}
>
<div className="flex w-full items-center justify-between gap-2">
- <Icon className="text-muted-foreground size-4" />
+ <Icon className="text-muted-foreground icon-base" />
{selected ? (
- <Check className="text-primary size-3.5" />
+ <Check className="text-primary icon-base" />
) : null}
</div>
<div>
@@ -294,7 +294,7 @@ function CreateIngestionProjectDialog({
{({ openDialog }) =>
showIcon ? (
<Button onClick={openDialog}>
- <Plus className="mr-1.5 size-4" />
+ <Plus className="icon-base mr-1.5" />
{triggerLabel}
</Button>
) : (
@@ -324,7 +324,11 @@ function GatewayUrl({ gatewayBaseUrl }: { gatewayBaseUrl: string }) {
aria-label="Copy gateway base URL"
onClick={() => copy(gatewayBaseUrl)}
>
- {isCopied ? <Check className="size-4" /> : <Copy className="size-4" />}
+ {isCopied ? (
+ <Check className="icon-sm text-icon-foreground" />
+ ) : (
+ <Copy className="icon-sm text-icon-foreground" />
+ )}
</Button>
</div>
);
diff --git a/web/src/features/ai-gateway/components/GatewayModelsPage/components/GatewayModelsTable/ConnectedGatewayModelsTable.tsx b/web/src/features/ai-gateway/components/GatewayModelsPage/components/GatewayModelsTable/ConnectedGatewayModelsTable.tsx
index cc16c0ef24..b0e1dec780 100644
--- a/web/src/features/ai-gateway/components/GatewayModelsPage/components/GatewayModelsTable/ConnectedGatewayModelsTable.tsx
+++ b/web/src/features/ai-gateway/components/GatewayModelsPage/components/GatewayModelsTable/ConnectedGatewayModelsTable.tsx
@@ -180,7 +180,7 @@ export function ConnectedGatewayModelsTable({
title="Gateway models"
actionButtons={
<Button variant="secondary" loading={isLoading} onClick={onSync}>
- <RefreshCw className="mr-1.5 size-4" />
+ <RefreshCw className="icon-base mr-1.5" />
{hasSynced ? "Retry sync" : "Sync models"}
</Button>
}
diff --git a/web/src/features/ai-gateway/components/GatewayProvidersPage/GatewayProvidersPage.tsx b/web/src/features/ai-gateway/components/GatewayProvidersPage/GatewayProvidersPage.tsx
index f22b157c5b..8184e95a64 100644
--- a/web/src/features/ai-gateway/components/GatewayProvidersPage/GatewayProvidersPage.tsx
+++ b/web/src/features/ai-gateway/components/GatewayProvidersPage/GatewayProvidersPage.tsx
@@ -125,7 +125,7 @@ export function GatewayProvidersPage({
<ProviderDialogController organizationId={organizationId}>
{({ openAddDialog }) => (
<Button onClick={openAddDialog}>
- <Plus className="mr-1.5 size-4" />
+ <Plus className="icon-base mr-1.5" />
Add credential
</Button>
)}
diff --git a/web/src/features/ai-gateway/components/GatewayProvidersPage/components/GatewayProvidersTable/GatewayProvidersTable.tsx b/web/src/features/ai-gateway/components/GatewayProvidersPage/components/GatewayProvidersTable/GatewayProvidersTable.tsx
index 00c15bdf2b..453cf542e9 100644
--- a/web/src/features/ai-gateway/components/GatewayProvidersPage/components/GatewayProvidersTable/GatewayProvidersTable.tsx
+++ b/web/src/features/ai-gateway/components/GatewayProvidersPage/components/GatewayProvidersTable/GatewayProvidersTable.tsx
@@ -86,7 +86,7 @@ export function GatewayProvidersTable({
if (targetId) onMove(row.original.id, targetId);
}}
>
- <ArrowUp className="size-3" />
+ <ArrowUp className="icon-sm text-icon-foreground" />
</Button>
<Button
size="icon-xs"
@@ -102,7 +102,7 @@ export function GatewayProvidersTable({
if (targetId) onMove(row.original.id, targetId);
}}
>
- <ArrowDown className="size-3" />
+ <ArrowDown className="icon-sm text-icon-foreground" />
</Button>
</div>
</div>
@@ -213,11 +213,11 @@ function ModelCount({
function ProviderName({ provider }: { provider: GatewayProvider }) {
const icon =
provider === "OPENAI" ? (
- <SiOpenai className="size-4" aria-hidden="true" />
+ <SiOpenai className="icon-base" aria-hidden="true" />
) : provider === "ANTHROPIC" ? (
- <SiAnthropic className="size-4" aria-hidden="true" />
+ <SiAnthropic className="icon-base" aria-hidden="true" />
) : (
- <Route className="size-4" aria-hidden="true" />
+ <Route className="icon-base" aria-hidden="true" />
);
return (
diff --git a/web/src/features/annotation-queues/components/AnnotationQueueFormDialogContent.tsx b/web/src/features/annotation-queues/components/AnnotationQueueFormDialogContent.tsx
index d056caa97d..32dd63f26f 100644
--- a/web/src/features/annotation-queues/components/AnnotationQueueFormDialogContent.tsx
+++ b/web/src/features/annotation-queues/components/AnnotationQueueFormDialogContent.tsx
@@ -171,7 +171,10 @@ export function AnnotationQueueFormDialogContent({
if (event.button === 1) onManageScoreConfigsClick();
}}
>
- <Settings2 className="size-3" aria-hidden="true" />
+ <Settings2
+ className="icon-base text-icon-foreground"
+ aria-hidden="true"
+ />
Manage score configs
</Link>
</Button>
diff --git a/web/src/features/annotation-queues/components/AnnotationQueueItemMenuContent.tsx b/web/src/features/annotation-queues/components/AnnotationQueueItemMenuContent.tsx
index 74e900da23..e95cf43dfb 100644
--- a/web/src/features/annotation-queues/components/AnnotationQueueItemMenuContent.tsx
+++ b/web/src/features/annotation-queues/components/AnnotationQueueItemMenuContent.tsx
@@ -70,7 +70,7 @@ export function AnnotationQueueItemMenuContent({
<DropdownMenuSeparator />
<DropdownMenuItem className="hover:bg-accent" asChild>
<div>
- <ExternalLink className="mr-2 h-4 w-4" />
+ <ExternalLink className="icon-base text-icon-foreground mr-2" />
<Link
href={`/project/${projectId}/annotation-queues`}
onClick={onManageClick}
diff --git a/web/src/features/annotation-queues/components/AnnotationQueueItemPage.tsx b/web/src/features/annotation-queues/components/AnnotationQueueItemPage.tsx
index 036772463d..f10bb5db8f 100644
--- a/web/src/features/annotation-queues/components/AnnotationQueueItemPage.tsx
+++ b/web/src/features/annotation-queues/components/AnnotationQueueItemPage.tsx
@@ -395,7 +395,7 @@ function AnnotationQueueRunContent({
if (!relevantItem) {
return (
<Card className="flex h-full w-full flex-col items-center justify-center overflow-hidden border-none">
- <SearchXIcon className="text-muted-foreground mb-2 h-8 w-8" />
+ <SearchXIcon className="text-muted-foreground icon-xl mb-2" />
<span className="text-muted-foreground max-w-96 text-sm text-wrap">
Item has been <strong>deleted from annotation queue</strong>.
Previously added scores and underlying reference trace are
@@ -474,7 +474,7 @@ function AnnotationQueueRunContent({
)}
aria-label="Previous item"
>
- <ArrowLeft className="h-4 w-4" />
+ <ArrowLeft className="icon-base text-icon-foreground" />
<span className="hidden md:inline-flex">
<KeyboardShortcut keys={["ArrowLeft"]} />
</span>
@@ -522,7 +522,7 @@ function AnnotationQueueRunContent({
variant="outline"
aria-label="Skip to next item"
>
- <ArrowRight className="h-4 w-4" />
+ <ArrowRight className="icon-base text-icon-foreground" />
<span className="hidden md:inline-flex">
<KeyboardShortcut keys={["ArrowRight"]} />
</span>
@@ -576,7 +576,7 @@ function AnnotationQueueRunContent({
<DialogContent className="max-w-sm">
<DialogHeader>
<DialogTitle className="flex items-center gap-2 text-base">
- <Keyboard className="h-4 w-4" />
+ <Keyboard className="icon-base" />
Keyboard shortcuts
</DialogTitle>
</DialogHeader>
diff --git a/web/src/features/annotation-queues/components/AnnotationQueuesTable.tsx b/web/src/features/annotation-queues/components/AnnotationQueuesTable.tsx
index a3bd48907e..62976f1694 100644
--- a/web/src/features/annotation-queues/components/AnnotationQueuesTable.tsx
+++ b/web/src/features/annotation-queues/components/AnnotationQueuesTable.tsx
@@ -143,7 +143,7 @@ export function AnnotationQueuesTable({ projectId }: { projectId: string }) {
const key: RowData["key"] = row.getValue("key");
return !hasAccess ? (
<Button size="sm" disabled>
- <Lock className="mr-1 h-3 w-3" />
+ <Lock className="icon-base mr-1" />
<span className="text-xs">Process queue</span>
</Button>
) : (
@@ -151,7 +151,7 @@ export function AnnotationQueuesTable({ projectId }: { projectId: string }) {
<Link
href={`/project/${projectId}/annotation-queues/${key.id}/items`}
>
- <ClipboardPen className="mr-1 h-3 w-3" />
+ <ClipboardPen className="icon-base mr-1" />
<span className="text-xs">Process queue</span>
</Link>
</Button>
diff --git a/web/src/features/annotation-queues/components/CreateOrEditAnnotationQueueButton.tsx b/web/src/features/annotation-queues/components/CreateOrEditAnnotationQueueButton.tsx
index 2c1c267ee0..f00c10f77e 100644
--- a/web/src/features/annotation-queues/components/CreateOrEditAnnotationQueueButton.tsx
+++ b/web/src/features/annotation-queues/components/CreateOrEditAnnotationQueueButton.tsx
@@ -46,7 +46,7 @@ export const CreateOrEditAnnotationQueueButton = ({
{({ disabled, openDialog }) =>
isTableAction ? (
<IconOnlyButton
- icon={<Pen className="h-4 w-4" />}
+ icon={<Pen className="icon-base" />}
label="Edit"
aria-label="edit"
disabledReason={disabled?.reason}
@@ -61,9 +61,9 @@ export const CreateOrEditAnnotationQueueButton = ({
onClick={openDialog}
icon={
queueId ? (
- <Edit className="h-4 w-4" aria-hidden="true" />
+ <Edit className="icon-base" aria-hidden="true" />
) : (
- <PlusIcon className="h-4 w-4" aria-hidden="true" />
+ <PlusIcon className="icon-base" aria-hidden="true" />
)
}
hasAccess={!disabled}
diff --git a/web/src/features/annotation-queues/components/UserAssignmentSection.tsx b/web/src/features/annotation-queues/components/UserAssignmentSection.tsx
index 221acf2ccf..37fdd04875 100644
--- a/web/src/features/annotation-queues/components/UserAssignmentSection.tsx
+++ b/web/src/features/annotation-queues/components/UserAssignmentSection.tsx
@@ -126,7 +126,7 @@ export const UserAssignmentSection = ({
className="hover:bg-muted-foreground/20 h-4 w-4 p-0"
onClick={onRemove}
>
- <X className="h-3 w-3" />
+ <X className="icon-base text-icon-foreground" />
</Button>
</div>
);
@@ -200,7 +200,7 @@ export const UserAssignmentSection = ({
}
onClick={() => handleUserRemove(user.id)}
>
- <X className="h-3 w-3" />
+ <X className="icon-base text-icon-foreground" />
</Button>
</div>
{(index <
@@ -214,7 +214,7 @@ export const UserAssignmentSection = ({
)}
{hasMoreAssignedUsers && (
<div className="text-muted-foreground flex items-center gap-3 px-3 py-2">
- <MoreHorizontal className="h-4 w-4" />
+ <MoreHorizontal className="icon-base" />
<div className="min-w-0 flex-1">
<p className="text-xs italic">
{queueAssignmentsQuery.data.totalCount -
diff --git a/web/src/features/annotation-queues/components/object-not-found-card.tsx b/web/src/features/annotation-queues/components/object-not-found-card.tsx
index f8b615db92..06e3ca68c6 100644
--- a/web/src/features/annotation-queues/components/object-not-found-card.tsx
+++ b/web/src/features/annotation-queues/components/object-not-found-card.tsx
@@ -8,7 +8,7 @@ export const ObjectNotFoundCard = ({
}) => (
<Card className="flex h-full w-full items-center justify-center border-none p-6">
<div className="text-center">
- <SearchXIcon className="text-muted-foreground mx-auto mb-2 h-8 w-8" />
+ <SearchXIcon className="text-muted-foreground icon-xl mx-auto mb-2" />
<p className="text-muted-foreground text-sm capitalize">
{type.toLowerCase()} not found. Likely deleted.
</p>
diff --git a/web/src/features/annotation-queues/components/processors/SessionAnnotationProcessor.tsx b/web/src/features/annotation-queues/components/processors/SessionAnnotationProcessor.tsx
index b496c08975..3cd402a2c4 100644
--- a/web/src/features/annotation-queues/components/processors/SessionAnnotationProcessor.tsx
+++ b/web/src/features/annotation-queues/components/processors/SessionAnnotationProcessor.tsx
@@ -155,10 +155,10 @@ export const SessionAnnotationProcessor: React.FC<
className="gap-1"
>
{disabled ? (
- <MessageSquareOff className="text-muted-foreground h-4 w-4" />
+ <MessageSquareOff className="icon-base text-muted-foreground" />
) : (
<>
- <MessageSquare className="h-4 w-4" />
+ <MessageSquare className="icon-base text-icon-foreground" />
<span>Add comment</span>
{getNumberFromMap(
sessionCommentCounts.data,
diff --git a/web/src/features/annotation-queues/components/shared/AnnotationDrawerSection.tsx b/web/src/features/annotation-queues/components/shared/AnnotationDrawerSection.tsx
index b95627dc87..18ffb3c122 100644
--- a/web/src/features/annotation-queues/components/shared/AnnotationDrawerSection.tsx
+++ b/web/src/features/annotation-queues/components/shared/AnnotationDrawerSection.tsx
@@ -53,7 +53,7 @@ export const AnnotationDrawerSection: React.FC<
actionButtons={
isLockedByOtherUser && isPresent(item.lockedByUser?.name) ? (
<div className="border-dark-red bg-light-red flex items-center justify-center rounded-sm border p-1">
- <TriangleAlertIcon className="text-dark-red mr-1 h-4 w-4" />
+ <TriangleAlertIcon className="text-dark-red icon-base mr-1" />
<span className="text-dark-red text-xs">
Currently edited by {item.lockedByUser.name}
</span>
diff --git a/web/src/features/annotation-queues/pages/AnnotationQueueItems.tsx b/web/src/features/annotation-queues/pages/AnnotationQueueItems.tsx
index ffe6460445..c626bc92a0 100644
--- a/web/src/features/annotation-queues/pages/AnnotationQueueItems.tsx
+++ b/web/src/features/annotation-queues/pages/AnnotationQueueItems.tsx
@@ -55,7 +55,7 @@ export default function QueueItems({
],
actionButtonsRight: !hasWriteAccess ? (
<Button disabled>
- <Lock className="mr-1 h-4 w-4" />
+ <Lock className="icon-base text-icon-foreground mr-1" />
<span className="text-sm">Process queue</span>
</Button>
) : (
@@ -63,7 +63,7 @@ export default function QueueItems({
<Link
href={`/project/${projectId}/annotation-queues/${queueId}/items`}
>
- <ClipboardPen className="mr-1 h-4 w-4" />
+ <ClipboardPen className="icon-base text-icon-foreground mr-1" />
<span className="text-sm">Process queue</span>
</Link>
</Button>
diff --git a/web/src/features/auth-credentials/components/ResetPasswordPage.tsx b/web/src/features/auth-credentials/components/ResetPasswordPage.tsx
index 0f3b954d0c..05a5bb911f 100644
--- a/web/src/features/auth-credentials/components/ResetPasswordPage.tsx
+++ b/web/src/features/auth-credentials/components/ResetPasswordPage.tsx
@@ -190,7 +190,7 @@ export function ResetPasswordPage({
<div className="mt-2 flex justify-center">
<Button asChild variant="ghost">
<Link href="/auth/sign-in">
- <ArrowLeft className="mr-2 h-3 w-3" />
+ <ArrowLeft className="icon-base text-icon-foreground mr-2" />
Back to sign in
</Link>
</Button>
diff --git a/web/src/features/auth/HfSpacesPage.tsx b/web/src/features/auth/HfSpacesPage.tsx
index 5d32945bd2..3edfa79c4b 100644
--- a/web/src/features/auth/HfSpacesPage.tsx
+++ b/web/src/features/auth/HfSpacesPage.tsx
@@ -24,7 +24,7 @@ export default function HfSpacesPage({ deploymentDomain }: PageProps) {
<div className="sm:mx-auto sm:w-full sm:max-w-md">
<div className="flex items-center justify-center gap-2">
<LangfuseIcon />
- <PlusIcon size={12} className="ml-1" />
+ <PlusIcon className="icon-sm ml-1" />
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src="/assets/huggingface-logo.svg"
diff --git a/web/src/features/auth/SignInPage.tsx b/web/src/features/auth/SignInPage.tsx
index 4ab4b02e3b..d42ae64e38 100644
--- a/web/src/features/auth/SignInPage.tsx
+++ b/web/src/features/auth/SignInPage.tsx
@@ -197,7 +197,7 @@ export function SSOButtons({
<div className="flex flex-row flex-wrap items-center justify-center gap-2">
{authProviders.google && (
<AuthProviderButton
- icon={<SiGoogle className="mr-3" size={18} />}
+ icon={<SiGoogle className="icon-base mr-3" />}
label="Google"
onClick={() => handleSignIn("google")}
loading={providerSigningIn === "google"}
@@ -208,7 +208,7 @@ export function SSOButtons({
)}
{authProviders.github && (
<AuthProviderButton
- icon={<SiGithub className="mr-3" size={18} />}
+ icon={<SiGithub className="icon-base mr-3" />}
label="GitHub"
onClick={() => handleSignIn("github")}
loading={providerSigningIn === "github"}
@@ -219,7 +219,7 @@ export function SSOButtons({
)}
{authProviders.githubEnterprise && (
<AuthProviderButton
- icon={<SiGithub className="mr-3" size={18} />}
+ icon={<SiGithub className="icon-base mr-3" />}
label="GitHub Enterprise"
onClick={() => handleSignIn("github-enterprise")}
loading={providerSigningIn === "github-enterprise"}
@@ -231,7 +231,7 @@ export function SSOButtons({
)}
{authProviders.gitlab && (
<AuthProviderButton
- icon={<SiGitlab className="mr-3" size={18} />}
+ icon={<SiGitlab className="icon-base mr-3" />}
label="Gitlab"
onClick={() => handleSignIn("gitlab")}
loading={providerSigningIn === "gitlab"}
@@ -242,7 +242,7 @@ export function SSOButtons({
)}
{authProviders.azureAd && (
<AuthProviderButton
- icon={<TbBrandAzure className="mr-3" size={18} />}
+ icon={<TbBrandAzure className="icon-base mr-3" />}
label="Azure AD"
onClick={() => handleSignIn("azure-ad")}
loading={providerSigningIn === "azure-ad"}
@@ -253,7 +253,7 @@ export function SSOButtons({
)}
{authProviders.okta && (
<AuthProviderButton
- icon={<SiOkta className="mr-3" size={18} />}
+ icon={<SiOkta className="icon-base mr-3" />}
label="Okta"
onClick={() => handleSignIn("okta")}
loading={providerSigningIn === "okta"}
@@ -264,7 +264,7 @@ export function SSOButtons({
)}
{authProviders.authentik && (
<AuthProviderButton
- icon={<SiAuthentik className="mr-3" size={18} />}
+ icon={<SiAuthentik className="icon-base mr-3" />}
label="Authentik"
onClick={() => handleSignIn("authentik")}
loading={providerSigningIn === "authentik"}
@@ -275,7 +275,7 @@ export function SSOButtons({
)}
{authProviders.onelogin && (
<AuthProviderButton
- icon={<Key className="mr-3" size={18} />}
+ icon={<Key className="icon-base mr-3" />}
label="OneLogin"
onClick={() => handleSignIn("onelogin")}
loading={providerSigningIn === "onelogin"}
@@ -286,7 +286,7 @@ export function SSOButtons({
)}
{authProviders.auth0 && (
<AuthProviderButton
- icon={<SiAuth0 className="mr-3" size={18} />}
+ icon={<SiAuth0 className="icon-base mr-3" />}
label="Auth0"
onClick={() => handleSignIn("auth0")}
loading={providerSigningIn === "auth0"}
@@ -297,7 +297,7 @@ export function SSOButtons({
)}
{authProviders.clickhouseCloud && (
<AuthProviderButton
- icon={<SiClickhouse className="mr-3" size={18} />}
+ icon={<SiClickhouse className="icon-base mr-3" />}
label="ClickHouse Cloud"
onClick={() => handleSignIn("clickhouse-cloud")}
loading={providerSigningIn === "clickhouse-cloud"}
@@ -309,7 +309,7 @@ export function SSOButtons({
)}
{authProviders.cognito && (
<AuthProviderButton
- icon={<SiAmazoncognito className="mr-3" size={18} />}
+ icon={<SiAmazoncognito className="icon-base mr-3" />}
label="Cognito"
onClick={() => handleSignIn("cognito")}
loading={providerSigningIn === "cognito"}
@@ -320,7 +320,7 @@ export function SSOButtons({
)}
{authProviders.jumpcloud && (
<AuthProviderButton
- icon={<TbBrandOauth className="mr-3" size={18} />}
+ icon={<TbBrandOauth className="icon-base mr-3" />}
label="JumpCloud"
onClick={() => handleSignIn("jumpcloud")}
loading={providerSigningIn === "jumpcloud"}
@@ -331,7 +331,7 @@ export function SSOButtons({
)}
{authProviders.keycloak && (
<AuthProviderButton
- icon={<SiKeycloak className="mr-3" size={18} />}
+ icon={<SiKeycloak className="icon-base mr-3" />}
label={
typeof authProviders.keycloak === "object"
? authProviders.keycloak.name
@@ -351,7 +351,7 @@ export function SSOButtons({
{typeof authProviders.workos === "object" &&
"connectionId" in authProviders.workos && (
<AuthProviderButton
- icon={<Code className="mr-3" size={18} />}
+ icon={<Code className="icon-base mr-3" />}
label="WorkOS"
onClick={() => {
capture("sign_in:button_click", { provider: "workos" });
@@ -371,7 +371,7 @@ export function SSOButtons({
{typeof authProviders.workos === "object" &&
"organizationId" in authProviders.workos && (
<AuthProviderButton
- icon={<Code className="mr-3" size={18} />}
+ icon={<Code className="icon-base mr-3" />}
label="WorkOS"
onClick={() => {
capture("sign_in:button_click", { provider: "workos" });
@@ -391,7 +391,7 @@ export function SSOButtons({
{authProviders.workos === true && (
<>
<AuthProviderButton
- icon={<Code className="mr-3" size={18} />}
+ icon={<Code className="icon-base mr-3" />}
label="WorkOS (organization)"
onClick={() => {
const organization = window.prompt(
@@ -411,7 +411,7 @@ export function SSOButtons({
}
/>
<AuthProviderButton
- icon={<Code className="mr-3" size={18} />}
+ icon={<Code className="icon-base mr-3" />}
label="WorkOS (connection)"
onClick={() => {
const connection = window.prompt(
@@ -434,7 +434,7 @@ export function SSOButtons({
)}
{authProviders.wordpress && (
<AuthProviderButton
- icon={<SiWordpress className="mr-3" size={18} />}
+ icon={<SiWordpress className="icon-base mr-3" />}
label="WordPress"
onClick={() => handleSignIn("wordpress")}
loading={providerSigningIn === "wordpress"}
@@ -445,7 +445,7 @@ export function SSOButtons({
)}
{authProviders.custom && (
<AuthProviderButton
- icon={<TbBrandOauth className="mr-3" size={18} />}
+ icon={<TbBrandOauth className="icon-base mr-3" />}
label={authProviders.custom.name}
onClick={() => handleSignIn("custom")}
loading={providerSigningIn === "custom"}
diff --git a/web/src/features/automations/components/AutomationButton.tsx b/web/src/features/automations/components/AutomationButton.tsx
index 1490e748eb..8aa08dc77c 100644
--- a/web/src/features/automations/components/AutomationButton.tsx
+++ b/web/src/features/automations/components/AutomationButton.tsx
@@ -31,7 +31,7 @@ export const AutomationButton = ({ projectId }: AutomationButtonProps) => {
return (
<ActionButton
href={`/project/${projectId}/automations`}
- icon={<Zap className="h-4 w-4" aria-hidden="true" />}
+ icon={<Zap className="icon-base" aria-hidden="true" />}
hasAccess={hasAccess}
title="Automations"
variant="outline"
diff --git a/web/src/features/automations/components/AutomationDetails.tsx b/web/src/features/automations/components/AutomationDetails.tsx
index a667b0317d..752ca1dcee 100644
--- a/web/src/features/automations/components/AutomationDetails.tsx
+++ b/web/src/features/automations/components/AutomationDetails.tsx
@@ -135,7 +135,7 @@ export const AutomationDetails: React.FC<AutomationDetailsProps> = ({
actionButtons={
<div className="flex gap-2">
<Button variant="outline" onClick={handleEdit}>
- <Edit className="mr-2 h-4 w-4" />
+ <Edit className="icon-base text-icon-foreground mr-2" />
Edit
</Button>
<DeleteAutomationDialogController
diff --git a/web/src/features/automations/components/AutomationFailureBanner.tsx b/web/src/features/automations/components/AutomationFailureBanner.tsx
index b48a6cf1d3..807e6b6e87 100644
--- a/web/src/features/automations/components/AutomationFailureBanner.tsx
+++ b/web/src/features/automations/components/AutomationFailureBanner.tsx
@@ -32,7 +32,7 @@ export const AutomationFailureBanner = ({
onClick={onDismiss}
className="ml-4 h-6 w-6 p-0"
>
- <X className="h-4 w-4" />
+ <X className="icon-base text-icon-foreground" />
</Button>
</div>
</Alert.Description>
diff --git a/web/src/features/automations/components/actions/GitHubDispatchActionForm.tsx b/web/src/features/automations/components/actions/GitHubDispatchActionForm.tsx
index cabc731409..6ad3f3fed6 100644
--- a/web/src/features/automations/components/actions/GitHubDispatchActionForm.tsx
+++ b/web/src/features/automations/components/actions/GitHubDispatchActionForm.tsx
@@ -58,7 +58,7 @@ export const GitHubDispatchActionForm: React.FC<
rel="noopener noreferrer"
className="text-primary inline-flex items-center hover:underline"
>
- Learn more <ExternalLink className="ml-1 h-3 w-3" />
+ Learn more <ExternalLink className="icon-sm ml-1" />
</Link>
</FormDescription>
<FormMessage />
@@ -126,7 +126,7 @@ export const GitHubDispatchActionForm: React.FC<
rel="noopener noreferrer"
className="text-primary inline-flex items-center hover:underline"
>
- Create token <ExternalLink className="ml-1 h-3 w-3" />
+ Create token <ExternalLink className="icon-sm ml-1" />
</Link>
</FormDescription>
<FormMessage />
diff --git a/web/src/features/automations/components/actions/WebhookActionForm.tsx b/web/src/features/automations/components/actions/WebhookActionForm.tsx
index 126bad97f3..9cd95ec26e 100644
--- a/web/src/features/automations/components/actions/WebhookActionForm.tsx
+++ b/web/src/features/automations/components/actions/WebhookActionForm.tsx
@@ -37,6 +37,7 @@ import {
import { WebhookSecretRender } from "../WebhookSecretRender";
import { CodeView } from "@/src/components/ui/CodeJsonViewer";
import { showSuccessToast } from "@/src/features/notifications";
+import { cn } from "@/src/utils/tailwind";
export const webhookSchema = z.object({
url: z.url(),
@@ -234,9 +235,9 @@ export const WebhookActionForm: React.FC<WebhookActionFormProps> = ({
title={isSecret ? "Make header public" : "Make header secret"}
>
{isSecret ? (
- <Lock className="h-4 w-4 text-orange-500" />
+ <Lock className="icon-base text-orange-500" />
) : (
- <LockOpen className="text-muted-foreground h-4 w-4" />
+ <LockOpen className="icon-base text-muted-foreground" />
)}
</Button>
<Button
@@ -246,7 +247,7 @@ export const WebhookActionForm: React.FC<WebhookActionFormProps> = ({
onClick={() => removeHeader(originalIndex)}
disabled={disabled}
>
- <X className="h-4 w-4" />
+ <X className="icon-base text-icon-foreground" />
</Button>
</div>
);
@@ -259,7 +260,7 @@ export const WebhookActionForm: React.FC<WebhookActionFormProps> = ({
disabled={disabled}
className="mt-2"
>
- <Plus className="mr-1 h-4 w-4" />
+ <Plus className="icon-base text-icon-foreground mr-1" />
Add Custom Header
</Button>
</div>
@@ -358,7 +359,10 @@ const RegenerateWebhookSecretButton = ({
disabled={regenerateSecretMutation.isPending}
>
<RefreshCw
- className={`mr-2 h-4 w-4 ${regenerateSecretMutation.isPending ? "animate-spin" : ""}`}
+ className={cn(
+ "icon-base text-icon-foreground mr-2",
+ regenerateSecretMutation.isPending && "animate-spin",
+ )}
/>
Regenerate
</Button>
diff --git a/web/src/features/automations/components/automations.tsx b/web/src/features/automations/components/automations.tsx
index 383ae76ad8..9427c5d3ae 100644
--- a/web/src/features/automations/components/automations.tsx
+++ b/web/src/features/automations/components/automations.tsx
@@ -396,7 +396,7 @@ export default function AutomationsPage() {
],
actionButtonsRight: (
<Button onClick={handleCreateAutomation}>
- <Plus className="mr-2 h-4 w-4" />
+ <Plus className="icon-base text-icon-foreground mr-2" />
Create Automation
</Button>
),
diff --git a/web/src/features/background-migrations/components/background-migrations.tsx b/web/src/features/background-migrations/components/background-migrations.tsx
index 698e3a5d2b..4a2f7587b1 100644
--- a/web/src/features/background-migrations/components/background-migrations.tsx
+++ b/web/src/features/background-migrations/components/background-migrations.tsx
@@ -74,7 +74,7 @@ export default function BackgroundMigrationsTable() {
{({ disabled, Trigger }) => (
<Trigger asChild>
<Button variant="ghost" size="xs" disabled={disabled}>
- <RotateCcw className="h-4 w-4" />
+ <RotateCcw className="icon-sm text-icon-foreground" />
</Button>
</Trigger>
)}
diff --git a/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/DatasetMappingEditor.tsx b/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/DatasetMappingEditor.tsx
index 9a10ab539e..58893075c6 100644
--- a/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/DatasetMappingEditor.tsx
+++ b/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/DatasetMappingEditor.tsx
@@ -80,7 +80,7 @@ export function DatasetMappingEditor({
onClick={() => actions.setScreen("create")}
disabled={pending}
>
- <Plus className="size-4" />
+ <Plus className="icon-base text-icon-foreground" />
Create dataset
</Button>
</div>
diff --git a/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/components/CustomMappingEditor.tsx b/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/components/CustomMappingEditor.tsx
index 78846df455..ad686d4bf8 100644
--- a/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/components/CustomMappingEditor.tsx
+++ b/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/components/CustomMappingEditor.tsx
@@ -14,6 +14,7 @@ import type {
MappingTarget,
} from "../types";
import { isJsonPath } from "@langfuse/shared";
+import { cn } from "@/src/utils/tailwind";
type CustomMappingEditorProps = {
config: CustomMappingConfig;
@@ -230,7 +231,7 @@ export function CustomMappingEditor({
onClick={handleAddEntry}
className="w-full"
>
- <Plus className="mr-2 h-4 w-4" />
+ <Plus className="icon-base text-icon-foreground mr-2" />
Add field
</Button>
</div>
@@ -301,11 +302,12 @@ function KeyValueEntryRow({
}
>
<Trash2
- className={`h-4 w-4 ${
- !canRemove
- ? "text-muted-foreground/30"
- : "text-muted-foreground"
- }`}
+ className={cn(
+ "icon-base",
+ canRemove
+ ? "text-muted-foreground"
+ : "text-muted-foreground/30",
+ )}
/>
</Button>
</div>
diff --git a/web/src/features/batch-actions/components/BatchActionsTable/BatchActionsTable.tsx b/web/src/features/batch-actions/components/BatchActionsTable/BatchActionsTable.tsx
index f4844fef98..f7b5841d07 100644
--- a/web/src/features/batch-actions/components/BatchActionsTable/BatchActionsTable.tsx
+++ b/web/src/features/batch-actions/components/BatchActionsTable/BatchActionsTable.tsx
@@ -137,7 +137,7 @@ export function BatchActionsTable({
{...getTriggerProps()}
className="flex items-center gap-1 text-left"
>
- <InfoIcon className="text-muted-foreground h-3 w-3" />
+ <InfoIcon className="text-muted-foreground icon-sm" />
<span className="max-w-[250px] truncate text-xs" title={log}>
{log}
</span>
diff --git a/web/src/features/batch-actions/components/RunEvaluationDialog/EstimatedCostRow.tsx b/web/src/features/batch-actions/components/RunEvaluationDialog/EstimatedCostRow.tsx
index 0d2ba11f55..f1724c09a6 100644
--- a/web/src/features/batch-actions/components/RunEvaluationDialog/EstimatedCostRow.tsx
+++ b/web/src/features/batch-actions/components/RunEvaluationDialog/EstimatedCostRow.tsx
@@ -103,7 +103,7 @@ export function EstimatedCostRow(props: EstimatedCostRowProps) {
{({ getTriggerProps }) => (
<InfoIcon
{...getTriggerProps()}
- className="text-muted-foreground h-3 w-3"
+ className="text-muted-foreground icon-sm"
/>
)}
</CustomTooltip>
diff --git a/web/src/features/batch-actions/components/RunEvaluationDialog/EvaluatorSelectionStep.tsx b/web/src/features/batch-actions/components/RunEvaluationDialog/EvaluatorSelectionStep.tsx
index a0c16841d5..2802249416 100644
--- a/web/src/features/batch-actions/components/RunEvaluationDialog/EvaluatorSelectionStep.tsx
+++ b/web/src/features/batch-actions/components/RunEvaluationDialog/EvaluatorSelectionStep.tsx
@@ -129,7 +129,7 @@ export function EvaluatorSelectionStep(props: EvaluatorSelectionStepProps) {
onClick={() => onSearchQueryChange("")}
aria-label="Clear evaluator search"
>
- <X className="h-3 w-3" />
+ <X className="icon-base text-icon-foreground" />
</Button>
) : null}
</div>
@@ -154,7 +154,7 @@ export function EvaluatorSelectionStep(props: EvaluatorSelectionStepProps) {
className="hover:bg-muted rounded p-0.5"
onClick={() => onToggleEvaluator(evaluator.id)}
>
- <X className="h-3 w-3" />
+ <X className="icon-sm" />
</button>
</Badge>
</div>
@@ -203,7 +203,7 @@ export function EvaluatorSelectionStep(props: EvaluatorSelectionStepProps) {
onClick={(event) => event.stopPropagation()}
aria-label={`Preview ${item.scoreName}`}
>
- <Eye className="h-4 w-4" />
+ <Eye className="icon-base text-icon-foreground" />
</Button>
}
/>
diff --git a/web/src/features/batch-actions/components/RunEvaluationDialog/index.tsx b/web/src/features/batch-actions/components/RunEvaluationDialog/index.tsx
index b4d0c01902..189290ff72 100644
--- a/web/src/features/batch-actions/components/RunEvaluationDialog/index.tsx
+++ b/web/src/features/batch-actions/components/RunEvaluationDialog/index.tsx
@@ -416,7 +416,7 @@ export function RunEvaluationDialog(props: RunEvaluationDialogProps) {
onClick={() => setStep("select-evaluator")}
disabled={runEvaluationMutation.isPending}
>
- <ChevronLeft className="mr-1 h-4 w-4" />
+ <ChevronLeft className="icon-base text-icon-foreground mr-1" />
Back
</Button>
) : (
@@ -485,9 +485,9 @@ function CreateEvaluatorButton({
rel="noreferrer"
aria-label="Create new Evaluator (opens in a new tab)"
>
- <Plus className="size-4 shrink-0" aria-hidden="true" />
+ <Plus className="icon-base shrink-0" aria-hidden="true" />
Create new Evaluator
- <ExternalLink className="size-3.5 shrink-0" aria-hidden="true" />
+ <ExternalLink className="icon-base shrink-0" aria-hidden="true" />
</Link>
</Button>
);
diff --git a/web/src/features/batch-exports/components/BatchExportsTable/BatchExportsTable.tsx b/web/src/features/batch-exports/components/BatchExportsTable/BatchExportsTable.tsx
index 89ada062cd..eceffd8772 100644
--- a/web/src/features/batch-exports/components/BatchExportsTable/BatchExportsTable.tsx
+++ b/web/src/features/batch-exports/components/BatchExportsTable/BatchExportsTable.tsx
@@ -90,7 +90,7 @@ export function BatchExportsTable({
if (isDownloadable) {
return (
<ActionButton
- icon={<DownloadIcon size={16} />}
+ icon={<DownloadIcon className="icon-base" />}
size="sm"
loading={downloadingIds.has(id)}
onClick={() => onDownload(id)}
diff --git a/web/src/features/blobstorage-integration/components/ExportSourceField.tsx b/web/src/features/blobstorage-integration/components/ExportSourceField.tsx
index 9cb7f5f75d..395060e3a8 100644
--- a/web/src/features/blobstorage-integration/components/ExportSourceField.tsx
+++ b/web/src/features/blobstorage-integration/components/ExportSourceField.tsx
@@ -65,7 +65,7 @@ export const ExportSourceField = ({
Export Source
<Tooltip>
<TooltipTrigger>
- <Info className="text-muted-foreground h-3.5 w-3.5" />
+ <Info className="text-muted-foreground icon-base" />
</TooltipTrigger>
<TooltipContent
side="bottom"
@@ -87,7 +87,7 @@ export const ExportSourceField = ({
className="text-muted-foreground hover:text-primary inline-flex items-center gap-1 text-xs hover:underline"
>
For further information see
- <ExternalLink className="h-3 w-3" />
+ <ExternalLink className="icon-sm" />
</a>
</div>
</TooltipContent>
diff --git a/web/src/features/chart-view-prototype/components/ChartViewPrototype.tsx b/web/src/features/chart-view-prototype/components/ChartViewPrototype.tsx
index 46fdd665db..3d5dbcfb0f 100644
--- a/web/src/features/chart-view-prototype/components/ChartViewPrototype.tsx
+++ b/web/src/features/chart-view-prototype/components/ChartViewPrototype.tsx
@@ -78,7 +78,7 @@ export function ChartViewPrototype({
<div className="flex shrink-0 items-center justify-between gap-2 border-b px-3 py-2">
<div className="text-muted-foreground flex items-center gap-2 text-xs">
<Button variant="outline" size="sm" disabled className="h-7 gap-1.5">
- <SlidersHorizontal className="h-3.5 w-3.5" />
+ <SlidersHorizontal className="icon-base text-icon-foreground" />
Filters
</Button>
<span>{events.length.toLocaleString()} events · last 24h</span>
diff --git a/web/src/features/chart-view/components/AddToDashboardButton.tsx b/web/src/features/chart-view/components/AddToDashboardButton.tsx
index 7be4e86ce4..ece9f898a7 100644
--- a/web/src/features/chart-view/components/AddToDashboardButton.tsx
+++ b/web/src/features/chart-view/components/AddToDashboardButton.tsx
@@ -64,7 +64,7 @@ export const AddToDashboardButton = React.memo(function AddToDashboardButton({
onClick={() => setOpen(true)}
disabled={createWidget.isPending}
>
- <LayoutDashboard className="h-3.5 w-3.5" />
+ <LayoutDashboard className="icon-base text-icon-foreground" />
Add to dashboard
</Button>
<SelectDashboardDialog
diff --git a/web/src/features/chart-view/components/ChartViewPanel.tsx b/web/src/features/chart-view/components/ChartViewPanel.tsx
index 57f3c66205..353acf25d4 100644
--- a/web/src/features/chart-view/components/ChartViewPanel.tsx
+++ b/web/src/features/chart-view/components/ChartViewPanel.tsx
@@ -97,7 +97,7 @@ export const ChartViewPanel = React.memo(function ChartViewPanel({
</div>
) : isLoading ? (
<div className="text-muted-foreground flex h-full items-center justify-center">
- <Loader2 className="h-6 w-6 animate-spin" />
+ <Loader2 className="icon-lg animate-spin" />
</div>
) : (
<ChartCanvas
@@ -126,7 +126,7 @@ export const ChartViewPanel = React.memo(function ChartViewPanel({
aria-label="Collapse panel"
onClick={() => setOpen(false)}
>
- <ChevronRight className="h-4 w-4" />
+ <ChevronRight className="icon-sm text-icon-foreground" />
</Button>
</div>
<PanelField label="Chart type">
@@ -161,7 +161,7 @@ export const ChartViewPanel = React.memo(function ChartViewPanel({
aria-label="Expand panel"
onClick={() => setOpen(true)}
>
- <ChevronLeft className="h-4 w-4" />
+ <ChevronLeft className="icon-sm text-icon-foreground" />
</Button>
</div>
)}
diff --git a/web/src/features/chart-view/components/ConfigControls.tsx b/web/src/features/chart-view/components/ConfigControls.tsx
index b038fbedb8..5f88727793 100644
--- a/web/src/features/chart-view/components/ConfigControls.tsx
+++ b/web/src/features/chart-view/components/ConfigControls.tsx
@@ -175,7 +175,7 @@ export const ChartTypePicker = React.memo(function ChartTypePicker({
: "h-7 w-7 p-0",
)}
>
- <Icon className={showLabels ? "h-4 w-4" : "h-3.5 w-3.5"} />
+ <Icon className={showLabels ? "icon-base" : "icon-base"} />
{showLabels ? <span>{ct.label}</span> : null}
</ToggleGroupItem>
);
diff --git a/web/src/features/chart-view/components/ViewModeToggle.tsx b/web/src/features/chart-view/components/ViewModeToggle.tsx
index 7e1a245fff..20ab7bbc48 100644
--- a/web/src/features/chart-view/components/ViewModeToggle.tsx
+++ b/web/src/features/chart-view/components/ViewModeToggle.tsx
@@ -32,7 +32,7 @@ export const ViewModeToggle = React.memo(function ViewModeToggle({
aria-label="Table view"
className="h-8 gap-1.5 rounded-r-none px-2.5 text-xs"
>
- <Table className="h-3.5 w-3.5" />
+ <Table className="icon-base" />
Table
</ToggleGroupItem>
<ToggleGroupItem
@@ -40,7 +40,7 @@ export const ViewModeToggle = React.memo(function ViewModeToggle({
aria-label="Chart view"
className="h-8 gap-1.5 rounded-l-none border-l-0 px-2.5 text-xs"
>
- <BarChart3 className="h-3.5 w-3.5" />
+ <BarChart3 className="icon-base" />
Chart
</ToggleGroupItem>
</ToggleGroup>
diff --git a/web/src/features/comments/CommentCountIcon.tsx b/web/src/features/comments/CommentCountIcon.tsx
index a8df249da1..460b48e360 100644
--- a/web/src/features/comments/CommentCountIcon.tsx
+++ b/web/src/features/comments/CommentCountIcon.tsx
@@ -8,7 +8,7 @@ export function CommentCountIcon({ count }: { count: number }) {
// the trace timeline's metric cluster — cut a two-digit count mid-glyph.
// In flow, the overhang is part of the footprint and everything reserves it.
<span className="mr-1 inline-flex items-start text-xs">
- <MessageSquareMore className="h-4 w-4 shrink-0" />
+ <MessageSquareMore className="icon-base shrink-0" />
<span
data-testid="comment-count"
className="border-muted-foreground bg-muted-foreground text-muted dark:bg-muted dark:text-muted-foreground -ml-2 flex max-h-[0.8rem] min-w-[0.8rem] shrink-0 items-center justify-center rounded-sm border px-[0.2rem] text-[8px] shadow-xs"
diff --git a/web/src/features/comments/ReactionPicker.tsx b/web/src/features/comments/ReactionPicker.tsx
index b57d6446fe..a256bd47e8 100644
--- a/web/src/features/comments/ReactionPicker.tsx
+++ b/web/src/features/comments/ReactionPicker.tsx
@@ -30,7 +30,7 @@ export function ReactionPicker({
className="h-6 gap-1 px-1.5 text-xs opacity-50 transition-opacity hover:opacity-100"
disabled={disabled}
>
- <SmilePlusIcon className="h-3.5 w-3.5" />
+ <SmilePlusIcon className="icon-base text-icon-foreground" />
</Button>
</PopoverTrigger>
<PopoverContent
diff --git a/web/src/features/comments/components/CommentConversation.tsx b/web/src/features/comments/components/CommentConversation.tsx
index 56efacbcce..f7c664817d 100644
--- a/web/src/features/comments/components/CommentConversation.tsx
+++ b/web/src/features/comments/components/CommentConversation.tsx
@@ -123,7 +123,7 @@ export function CommentConversation({
{comments.length > 0 && (
<div className="flex shrink-0 flex-col gap-2 border-b px-4 py-3">
<div className="relative">
- <Search className="text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2" />
+ <Search className="text-muted-foreground icon-base pointer-events-none absolute top-1/2 left-3 -translate-y-1/2" />
<Input
ref={searchInputRef}
aria-label="Search comments"
@@ -141,7 +141,7 @@ export function CommentConversation({
className="absolute top-1/2 right-2 -translate-y-1/2"
onClick={() => setSearchQuery("")}
>
- <X className="size-3" />
+ <X className="icon-sm text-icon-foreground" />
</Button>
)}
</div>
@@ -208,7 +208,7 @@ export function CommentConversation({
});
}}
>
- <Trash className="size-3.5" />
+ <Trash className="icon-sm text-icon-foreground" />
</Button>
) : null
}
diff --git a/web/src/features/comments/components/CommentOverlayHost.tsx b/web/src/features/comments/components/CommentOverlayHost.tsx
index fb912d8150..f59e8578e5 100644
--- a/web/src/features/comments/components/CommentOverlayHost.tsx
+++ b/web/src/features/comments/components/CommentOverlayHost.tsx
@@ -187,7 +187,7 @@ function CommentDrawerContent({
<DrawerTitle>Comments</DrawerTitle>
<DrawerClose asChild>
<Button variant="ghost" size="icon" title="Close comments">
- <X className="size-4" />
+ <X className="icon-base text-icon-foreground" />
</Button>
</DrawerClose>
</DrawerHeader>
diff --git a/web/src/features/comments/components/InlineCommentBubble.tsx b/web/src/features/comments/components/InlineCommentBubble.tsx
index 314ec8e2ba..d2c97f716a 100644
--- a/web/src/features/comments/components/InlineCommentBubble.tsx
+++ b/web/src/features/comments/components/InlineCommentBubble.tsx
@@ -37,7 +37,7 @@ export function InlineCommentBubble({
onClick={handleClick}
className="border-border bg-background text-muted-foreground hover:bg-muted hover:text-foreground border px-3 py-2.5 shadow-md"
>
- <MessageSquarePlus className="h-3 w-3" />
+ <MessageSquarePlus className="icon-sm" />
<span className="ml-1">Comment</span>
</Button>
</div>
diff --git a/web/src/features/dashboard/DashboardDetailPage.tsx b/web/src/features/dashboard/DashboardDetailPage.tsx
index a1f8f5cede..58a19b0971 100644
--- a/web/src/features/dashboard/DashboardDetailPage.tsx
+++ b/web/src/features/dashboard/DashboardDetailPage.tsx
@@ -1252,7 +1252,7 @@ function DashboardDetailView({ readPath }: { readPath: ResolvedReadPath }) {
role="status"
aria-label="Saving"
>
- <Loader2 className="text-muted-foreground h-4 w-4 animate-spin" />
+ <Loader2 className="text-muted-foreground icon-base animate-spin" />
</span>
)}
{hasCUDAccess && hasUnsavedFilterChanges && (
@@ -1268,7 +1268,7 @@ function DashboardDetailView({ readPath }: { readPath: ResolvedReadPath }) {
)}
{hasRbacCUDAccess && (
<Button onClick={handleAddWidget}>
- <PlusIcon size={16} className="mr-1 h-4 w-4" />
+ <PlusIcon className="icon-base text-icon-foreground mr-1" />
Add Widget
</Button>
)}
@@ -1278,7 +1278,7 @@ function DashboardDetailView({ readPath }: { readPath: ResolvedReadPath }) {
onClick={handleCloneDashboard}
disabled={mutateCloneDashboard.isPending}
>
- <Copy size={16} className="mr-1 h-4 w-4" />
+ <Copy className="icon-base text-icon-foreground mr-1" />
Clone
</Button>
)}
@@ -1290,7 +1290,7 @@ function DashboardDetailView({ readPath }: { readPath: ResolvedReadPath }) {
size="icon"
aria-label="More actions"
>
- <MoreVertical className="h-4 w-4" />
+ <MoreVertical className="icon-base text-icon-foreground" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
@@ -1301,7 +1301,7 @@ function DashboardDetailView({ readPath }: { readPath: ResolvedReadPath }) {
pasteWidgetFromClipboard("dashboard_menu")
}
>
- <ClipboardPasteIcon className="mr-2 h-4 w-4" />
+ <ClipboardPasteIcon className="icon-base text-icon-foreground mr-2" />
Paste widget
</DropdownMenuItem>
)}
@@ -1326,14 +1326,14 @@ function DashboardDetailView({ readPath }: { readPath: ResolvedReadPath }) {
});
}}
>
- <HomeIcon className="mr-2 h-4 w-4" />
+ <HomeIcon className="icon-base text-icon-foreground mr-2" />
{isCurrentHome
? "Shown on Home"
: "Use as Home"}
</DropdownMenuItem>
{hasCUDAccess && (
<DropdownMenuItem onSelect={openEditDialog}>
- <PencilIcon className="mr-2 h-4 w-4" />
+ <PencilIcon className="icon-base text-icon-foreground mr-2" />
Edit name & description
</DropdownMenuItem>
)}
diff --git a/web/src/features/dashboard/DashboardsPage.tsx b/web/src/features/dashboard/DashboardsPage.tsx
index 4a438cb4b5..e03b4a243b 100644
--- a/web/src/features/dashboard/DashboardsPage.tsx
+++ b/web/src/features/dashboard/DashboardsPage.tsx
@@ -28,7 +28,12 @@ export default function DashboardsPage() {
},
actionButtonsRight: (
<ActionButton
- icon={<PlusIcon className="h-4 w-4" aria-hidden="true" />}
+ icon={
+ <PlusIcon
+ className="icon-base text-icon-foreground"
+ aria-hidden="true"
+ />
+ }
hasAccess={hasCUDAccess}
href={`/project/${projectId}/dashboards/new`}
trackingEventName="dashboard:new_dashboard_form_open"
diff --git a/web/src/features/dashboard/ProjectHomePage.tsx b/web/src/features/dashboard/ProjectHomePage.tsx
index f969cd718c..3a4ed2641b 100644
--- a/web/src/features/dashboard/ProjectHomePage.tsx
+++ b/web/src/features/dashboard/ProjectHomePage.tsx
@@ -396,7 +396,7 @@ function HomeDashboard({ readPath }: { readPath: ResolvedReadPath }) {
href={`/project/${projectId}/dashboards/${encodeURIComponent(dashboardId)}`}
onClick={handleEditDashboard}
>
- <PencilIcon className="h-4 w-4" />
+ <PencilIcon className="icon-base text-icon-foreground" />
<span className="sr-only">
Edit this dashboard in Dashboards
</span>
@@ -412,7 +412,7 @@ function HomeDashboard({ readPath }: { readPath: ResolvedReadPath }) {
) : (
<Button disabled>
<LockIcon
- className="mr-2 -ml-0.5 h-4 w-4"
+ className="icon-base text-icon-foreground mr-2 -ml-0.5"
aria-hidden="true"
/>
Configure Tracing
@@ -459,7 +459,7 @@ function HomeDashboard({ readPath }: { readPath: ResolvedReadPath }) {
closeMenu();
}}
>
- <PencilIcon className="h-4 w-4" />
+ <PencilIcon className="icon-base text-icon-foreground" />
Edit dashboard
</Link>
</Button>
@@ -485,7 +485,7 @@ function HomeDashboard({ readPath }: { readPath: ResolvedReadPath }) {
size="sm"
className="w-full justify-start gap-2 font-normal"
>
- <LockIcon className="h-4 w-4" aria-hidden="true" />
+ <LockIcon className="icon-base" aria-hidden="true" />
Configure tracing
</Button>
))}
diff --git a/web/src/features/dashboard/components/CloneFirstDialogController.tsx b/web/src/features/dashboard/components/CloneFirstDialogController.tsx
index 2407a04a9e..4d204c9162 100644
--- a/web/src/features/dashboard/components/CloneFirstDialogController.tsx
+++ b/web/src/features/dashboard/components/CloneFirstDialogController.tsx
@@ -213,7 +213,7 @@ function CloneFirstDialogContent({
);
}}
>
- <ExternalLinkIcon size={14} className="mr-1" />
+ <ExternalLinkIcon className="icon-base text-icon-foreground mr-1" />
Open it instead
</Button>
</div>
diff --git a/web/src/features/dashboard/components/HomeDashboardSelect.tsx b/web/src/features/dashboard/components/HomeDashboardSelect.tsx
index 0e8bbb5fee..0076a8a341 100644
--- a/web/src/features/dashboard/components/HomeDashboardSelect.tsx
+++ b/web/src/features/dashboard/components/HomeDashboardSelect.tsx
@@ -76,7 +76,7 @@ export function HomeDashboardSelect({
title="The dashboard shown on this project's home page"
className="text-muted-foreground my-0"
>
- <LayoutDashboard className="mr-1 h-4 w-4" />
+ <LayoutDashboard className="icon-base text-icon-foreground mr-1" />
{currentDashboardName}
</Button>
);
diff --git a/web/src/features/dashboard/components/TotalMetric.stories.tsx b/web/src/features/dashboard/components/TotalMetric.stories.tsx
index 239dc728b7..b3103c155b 100644
--- a/web/src/features/dashboard/components/TotalMetric.stories.tsx
+++ b/web/src/features/dashboard/components/TotalMetric.stories.tsx
@@ -27,7 +27,7 @@ export const WithInfoIcon = meta.story({
args: {
metric: "$9,753.19",
description: "Total cost",
- children: <Info className="text-muted-foreground h-3 w-3" />,
+ children: <Info className="text-muted-foreground icon-sm" />,
},
});
diff --git a/web/src/features/datasets/DatasetCompareChartsPage.tsx b/web/src/features/datasets/DatasetCompareChartsPage.tsx
index 5c77774c8f..12734e2ca2 100644
--- a/web/src/features/datasets/DatasetCompareChartsPage.tsx
+++ b/web/src/features/datasets/DatasetCompareChartsPage.tsx
@@ -126,7 +126,7 @@ function DatasetCompareChartsLegacy() {
disabled={!hasExperimentWriteAccess}
onClick={() => capture("dataset_run:new_form_open")}
>
- <FlaskConical className="h-4 w-4" />
+ <FlaskConical className="icon-base text-icon-foreground" />
<span className="ml-2 hidden md:block">New experiment</span>
</Button>
</DialogTrigger>
@@ -151,7 +151,9 @@ function DatasetCompareChartsLegacy() {
className="w-fit"
variant="outline"
hideClearButton
- iconLeft={<List className="mr-2 h-4 w-4" />}
+ iconLeft={
+ <List className="icon-base text-icon-foreground mr-2" />
+ }
options={runs.map((run) => ({
key: run.key,
value: run.value,
diff --git a/web/src/features/datasets/DatasetComparePage.tsx b/web/src/features/datasets/DatasetComparePage.tsx
index 97e8dcb656..f01c8ba8bb 100644
--- a/web/src/features/datasets/DatasetComparePage.tsx
+++ b/web/src/features/datasets/DatasetComparePage.tsx
@@ -110,7 +110,7 @@ function DatasetCompareLegacy() {
disabled={!hasExperimentWriteAccess}
onClick={() => capture("dataset_run:new_form_open")}
>
- <FlaskConical className="h-4 w-4" />
+ <FlaskConical className="icon-base text-icon-foreground" />
<span className="ml-2 hidden md:block">New experiment</span>
</Button>
</DialogTrigger>
@@ -135,7 +135,9 @@ function DatasetCompareLegacy() {
className="w-fit"
variant="outline"
hideClearButton
- iconLeft={<List className="mr-2 h-4 w-4" />}
+ iconLeft={
+ <List className="icon-base text-icon-foreground mr-2" />
+ }
options={runs.map((run) => ({
key: run.key,
value: run.value,
diff --git a/web/src/features/datasets/DatasetExperimentsPage.tsx b/web/src/features/datasets/DatasetExperimentsPage.tsx
index b24bad1568..7668d5ba29 100644
--- a/web/src/features/datasets/DatasetExperimentsPage.tsx
+++ b/web/src/features/datasets/DatasetExperimentsPage.tsx
@@ -215,7 +215,7 @@ function DatasetExperimentsView({
disabled={!hasExperimentWriteAccess}
onClick={() => capture("dataset_run:new_form_open")}
>
- <FlaskConical className="h-4 w-4" />
+ <FlaskConical className="icon-base text-icon-foreground" />
<span className="ml-2 hidden md:block">Run experiment</span>
</Button>
</DialogTrigger>
@@ -279,7 +279,7 @@ function DatasetExperimentsView({
disabled={!hasExperimentWriteAccess}
onClick={() => capture("dataset_run:new_form_open")}
>
- <FlaskConical className="h-4 w-4" />
+ <FlaskConical className="icon-base text-icon-foreground" />
<span className="ml-2 hidden md:block">Run experiment</span>
</Button>
</DialogTrigger>
@@ -347,7 +347,7 @@ function DatasetExperimentsView({
aria-label="Dataset actions"
{...getTriggerProps()}
>
- <MoreVertical className="h-4 w-4" />
+ <MoreVertical className="icon-base text-icon-foreground" />
</Button>
)}
</DatasetActionMenu>
diff --git a/web/src/features/datasets/DatasetItemPage.tsx b/web/src/features/datasets/DatasetItemPage.tsx
index f432809438..a73cf22984 100644
--- a/web/src/features/datasets/DatasetItemPage.tsx
+++ b/web/src/features/datasets/DatasetItemPage.tsx
@@ -160,12 +160,12 @@ function DatasetItemContent({
>
{isVersionPanelOpen ? (
<>
- <History className="mr-2 h-4 w-4" />
+ <History className="icon-base text-icon-foreground mr-2" />
Hide Version History
</>
) : (
<>
- <PanelRightOpen className="mr-2 h-4 w-4" />
+ <PanelRightOpen className="icon-base text-icon-foreground mr-2" />
Show Version History
</>
)}
diff --git a/web/src/features/datasets/DatasetItemsPage.tsx b/web/src/features/datasets/DatasetItemsPage.tsx
index 9cf1443245..53fb1f5a98 100644
--- a/web/src/features/datasets/DatasetItemsPage.tsx
+++ b/web/src/features/datasets/DatasetItemsPage.tsx
@@ -133,7 +133,7 @@ function DatasetItemsView({
aria-label="Dataset actions"
{...getTriggerProps()}
>
- <MoreVertical className="h-4 w-4" />
+ <MoreVertical className="icon-base text-icon-foreground" />
</Button>
)}
</DatasetActionMenu>
@@ -143,7 +143,7 @@ function DatasetItemsView({
onClick={() => setIsVersionPanelOpen(!isVersionPanelOpen)}
title="Version History"
>
- <History className="h-4 w-4" />
+ <History className="icon-base text-icon-foreground" />
</Button>
</>
),
diff --git a/web/src/features/datasets/DatasetRunPage.tsx b/web/src/features/datasets/DatasetRunPage.tsx
index 0fb7dc1907..559cee2153 100644
--- a/web/src/features/datasets/DatasetRunPage.tsx
+++ b/web/src/features/datasets/DatasetRunPage.tsx
@@ -70,7 +70,7 @@ function DatasetRunLegacy() {
}}
>
<Button>
- <Columns3 className="mr-2 h-4 w-4" />
+ <Columns3 className="icon-base text-icon-foreground mr-2" />
<span>Compare</span>
</Button>
</Link>
@@ -108,7 +108,7 @@ function DatasetRunLegacy() {
size="icon"
{...getTriggerProps()}
>
- <MoreVertical className="h-4 w-4" />
+ <MoreVertical className="icon-base text-icon-foreground" />
</Button>
)}
</DropdownMenu>
diff --git a/web/src/features/datasets/components/AnnotationPanel.tsx b/web/src/features/datasets/components/AnnotationPanel.tsx
index 28948fd498..fced78ea83 100644
--- a/web/src/features/datasets/components/AnnotationPanel.tsx
+++ b/web/src/features/datasets/components/AnnotationPanel.tsx
@@ -103,7 +103,7 @@ function ActiveAnnotationPanel({
aria-label="Close annotation panel"
onClick={clearActiveCell}
>
- <ChevronRight className="h-4 w-4" />
+ <ChevronRight className="icon-base text-icon-foreground" />
</Button>
}
/>
diff --git a/web/src/features/datasets/components/CsvColumnsCard.tsx b/web/src/features/datasets/components/CsvColumnsCard.tsx
index e60f88357f..7400eeb388 100644
--- a/web/src/features/datasets/components/CsvColumnsCard.tsx
+++ b/web/src/features/datasets/components/CsvColumnsCard.tsx
@@ -28,7 +28,7 @@ function DraggableColumn({ column }: { column: CsvColumnPreview }) {
isDragging && "opacity-30",
)}
>
- <GripVertical className="text-muted-foreground/70 group-hover:text-primary h-4 w-4 shrink-0" />
+ <GripVertical className="text-muted-foreground/70 group-hover:text-primary icon-base shrink-0" />
<div className="flex min-w-0 flex-1 items-center justify-between gap-2">
<span className="truncate text-sm" title={column.name}>
{column.name}
diff --git a/web/src/features/datasets/components/CsvUploadDialog.tsx b/web/src/features/datasets/components/CsvUploadDialog.tsx
index d4def10d67..972f02ac76 100644
--- a/web/src/features/datasets/components/CsvUploadDialog.tsx
+++ b/web/src/features/datasets/components/CsvUploadDialog.tsx
@@ -52,7 +52,7 @@ export function CsvUploadDialog({
{csvFile && (
<Tooltip>
<TooltipTrigger asChild>
- <File className="text-muted-foreground h-4 w-4" />
+ <File className="text-muted-foreground icon-base" />
</TooltipTrigger>
<TooltipContent className="max-w-[300px]">
{csvFile.name}
diff --git a/web/src/features/datasets/components/DatasetAggregateTableCell.tsx b/web/src/features/datasets/components/DatasetAggregateTableCell.tsx
index 7d2cd7fb2b..29dd6557b1 100644
--- a/web/src/features/datasets/components/DatasetAggregateTableCell.tsx
+++ b/web/src/features/datasets/components/DatasetAggregateTableCell.tsx
@@ -238,7 +238,7 @@ const DatasetAggregateCellContent = ({
/>
) : (
<Badge variant="tertiary" className="font-normal">
- <ClockIcon className="mr-1 mb-0.5 h-3 w-3" />
+ <ClockIcon className="icon-sm mr-1 mb-0.5" />
<span className="capitalize">
{formatIntervalSeconds(latency)}
</span>
@@ -277,7 +277,7 @@ const DatasetAggregateCellContent = ({
title="View trace/observation"
onClick={handleOpenPeek}
>
- <ListTree className="h-3 w-3" />
+ <ListTree className="icon-base text-icon-foreground" />
</Button>
</div>
)}
diff --git a/web/src/features/datasets/components/DatasetItemDetailPage.tsx b/web/src/features/datasets/components/DatasetItemDetailPage.tsx
index 04bd8367ba..322eee5af8 100644
--- a/web/src/features/datasets/components/DatasetItemDetailPage.tsx
+++ b/web/src/features/datasets/components/DatasetItemDetailPage.tsx
@@ -217,7 +217,7 @@ export const DatasetItemDetailPage = ({
href={`/project/${projectId}/traces/${item.data.sourceTraceId}`}
title={`View source ${item.data.sourceObservationId ? "observation" : "trace"}`}
>
- <ListTree className="h-4 w-4" />
+ <ListTree className="icon-sm text-icon-foreground" />
</Link>
</Button>
)}
@@ -245,7 +245,7 @@ export const DatasetItemDetailPage = ({
aria-label="Copy item"
onClick={() => openDialog(datasetItemDialogPayload)}
>
- <CopyIcon className="size-3" />
+ <CopyIcon className="icon-sm text-icon-foreground" />
</ActionButton>
)}
</NewDatasetItemFromExistingObjectDialogController>
@@ -257,7 +257,7 @@ export const DatasetItemDetailPage = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline" size="icon">
- <MoreVertical className="h-4 w-4" />
+ <MoreVertical className="icon-base text-icon-foreground" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className="flex flex-col *:w-full *:justify-start">
@@ -265,7 +265,7 @@ export const DatasetItemDetailPage = ({
onClick={() => setEditDialogOpen(true)}
disabled={!hasAccess || isViewingOldVersion || !item.data}
>
- <Pencil className="mr-2 h-4 w-4" />
+ <Pencil className="icon-base text-icon-foreground mr-2" />
Edit
</DropdownMenuItem>
<DropdownMenuItem
@@ -278,7 +278,7 @@ export const DatasetItemDetailPage = ({
}
className="text-destructive"
>
- <Trash2 className="mr-2 h-4 w-4" />
+ <Trash2 className="icon-base text-icon-foreground mr-2" />
{mutDelete.isPending ? "Deleting..." : "Delete"}
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/web/src/features/datasets/components/DatasetItemFieldSchemaErrors.tsx b/web/src/features/datasets/components/DatasetItemFieldSchemaErrors.tsx
index 3a5334afd8..257728af62 100644
--- a/web/src/features/datasets/components/DatasetItemFieldSchemaErrors.tsx
+++ b/web/src/features/datasets/components/DatasetItemFieldSchemaErrors.tsx
@@ -21,7 +21,7 @@ export const DatasetItemFieldSchemaErrors: React.FC<
return (
<div className="border-destructive/50 bg-destructive/10 rounded-md border p-3">
<div className="flex items-start gap-2">
- <AlertCircle className="text-destructive mt-0.5 h-4 w-4" />
+ <AlertCircle className="text-destructive icon-base mt-0.5" />
<div className="flex-1 space-y-2">
<p className="text-destructive text-sm font-bold">
Schema validation failed
diff --git a/web/src/features/datasets/components/DatasetItemMediaAttachments.tsx b/web/src/features/datasets/components/DatasetItemMediaAttachments.tsx
index bd64794391..5e8366ab24 100644
--- a/web/src/features/datasets/components/DatasetItemMediaAttachments.tsx
+++ b/web/src/features/datasets/components/DatasetItemMediaAttachments.tsx
@@ -203,9 +203,9 @@ function DatasetItemMediaUploadButton({
onClick={() => inputRef.current?.click()}
>
{isUploading ? (
- <Loader2 className="h-3 w-3 animate-spin" />
+ <Loader2 className="icon-sm text-icon-foreground animate-spin" />
) : (
- <Paperclip className="h-3 w-3" />
+ <Paperclip className="icon-sm text-icon-foreground" />
)}
</Button>
</>
@@ -233,7 +233,11 @@ function CopyFieldValueButton({ value }: { value: string }) {
setTimeout(() => setCopied(false), 1000);
}}
>
- {copied ? <Check className="h-3 w-3" /> : <Copy className="h-3 w-3" />}
+ {copied ? (
+ <Check className="icon-sm text-icon-foreground" />
+ ) : (
+ <Copy className="icon-sm text-icon-foreground" />
+ )}
</Button>
);
}
@@ -273,7 +277,7 @@ export function DatasetItemFieldToolbar({
function PendingMediaTile({ fileName }: { fileName: string }) {
return (
<div className="flex h-24 w-24 flex-col items-center justify-center gap-2 rounded-md border px-2 text-center">
- <Loader2 className="text-muted-foreground h-5 w-5 animate-spin" />
+ <Loader2 className="text-muted-foreground icon-lg animate-spin" />
<span
className="text-muted-foreground w-full truncate text-xs"
title={fileName}
diff --git a/web/src/features/datasets/components/DatasetItemsTable.tsx b/web/src/features/datasets/components/DatasetItemsTable.tsx
index 33e32db499..43cf6ebcf7 100644
--- a/web/src/features/datasets/components/DatasetItemsTable.tsx
+++ b/web/src/features/datasets/components/DatasetItemsTable.tsx
@@ -258,7 +258,7 @@ export function DatasetItemsTable({
setEditDialogOpen(true);
}}
>
- <Edit className="mr-2 h-4 w-4" />
+ <Edit className="icon-base text-icon-foreground mr-2" />
Edit
</DropdownMenuItem>
<DropdownMenuItem
@@ -281,7 +281,7 @@ export function DatasetItemsTable({
});
}}
>
- <Archive className="mr-2 h-4 w-4" />
+ <Archive className="icon-base text-icon-foreground mr-2" />
{status === DatasetStatus.ARCHIVED ? "Unarchive" : "Archive"}
</DropdownMenuItem>
<DropdownMenuItem
@@ -302,7 +302,7 @@ export function DatasetItemsTable({
}
}}
>
- <Trash2 className="mr-2 h-4 w-4" />
+ <Trash2 className="icon-base mr-2" />
Delete
</DropdownMenuItem>
</>
diff --git a/web/src/features/datasets/components/DatasetRunsTable.tsx b/web/src/features/datasets/components/DatasetRunsTable.tsx
index eaaab8d714..2c6716ff3d 100644
--- a/web/src/features/datasets/components/DatasetRunsTable.tsx
+++ b/web/src/features/datasets/components/DatasetRunsTable.tsx
@@ -139,12 +139,12 @@ const DatasetRunTableMultiSelectAction = ({
}}
>
<DropdownMenuItem>
- <Columns3 className="mr-2 h-4 w-4" />
+ <Columns3 className="icon-base text-icon-foreground mr-2" />
<span>Compare</span>
</DropdownMenuItem>
</Link>
<DropdownMenuItem key="delete" onClick={openDialog}>
- <Trash className="mr-2 h-4 w-4" />
+ <Trash className="icon-base text-icon-foreground mr-2" />
<span>Delete</span>
</DropdownMenuItem>
</DropdownMenuContent>
@@ -502,7 +502,7 @@ function DatasetRunsTableInternal(
disabled={!hasDeleteAccess}
onSelect={() => props.openDeleteDatasetRunDialog(id)}
>
- <Trash className="mr-2 h-4 w-4" />
+ <Trash className="icon-base text-icon-foreground mr-2" />
Delete
</DropdownMenuItem>
</>
diff --git a/web/src/features/datasets/components/DatasetSchemaHoverCard.tsx b/web/src/features/datasets/components/DatasetSchemaHoverCard.tsx
index be39a460e9..eaa9296f68 100644
--- a/web/src/features/datasets/components/DatasetSchemaHoverCard.tsx
+++ b/web/src/features/datasets/components/DatasetSchemaHoverCard.tsx
@@ -61,7 +61,7 @@ export const DatasetSchemaHoverCard: React.FC<DatasetSchemaHoverCardProps> = ({
aria-label={`View ${title}`}
size="sm"
>
- <LockIcon className={showLabel ? "h-3 w-3" : "h-4 w-4"} />
+ <LockIcon className="icon-base text-icon-foreground" />
{showLabel && <span>Schema enforced</span>}
</Button>
</HoverCardTrigger>
@@ -79,7 +79,7 @@ export const DatasetSchemaHoverCard: React.FC<DatasetSchemaHoverCardProps> = ({
className="hover:text-foreground inline-flex items-center underline"
>
JSON Schema
- <ArrowUpRight className="ml-0.5 h-3 w-3" />
+ <ArrowUpRight className="icon-sm ml-0.5" />
</a>
</p>
<div className="mt-2">
@@ -104,9 +104,9 @@ export const DatasetSchemaHoverCard: React.FC<DatasetSchemaHoverCardProps> = ({
className="h-7 px-2"
>
{copied ? (
- <Check className="h-3 w-3" />
+ <Check className="icon-base text-icon-foreground" />
) : (
- <Copy className="h-3 w-3" />
+ <Copy className="icon-base text-icon-foreground" />
)}
</Button>
</div>
diff --git a/web/src/features/datasets/components/DatasetSchemaValidationError.tsx b/web/src/features/datasets/components/DatasetSchemaValidationError.tsx
index 41822718b3..7c5d53bf64 100644
--- a/web/src/features/datasets/components/DatasetSchemaValidationError.tsx
+++ b/web/src/features/datasets/components/DatasetSchemaValidationError.tsx
@@ -75,7 +75,7 @@ export const DatasetSchemaValidationError: React.FC<
className="flex items-center gap-1 text-sm font-bold hover:underline"
>
Item: {error.datasetItemId}
- <ExternalLink className="h-3 w-3" />
+ <ExternalLink className="icon-sm" />
</Link>
</div>
<span className="bg-destructive/20 rounded px-2 py-0.5 text-xs font-bold">
diff --git a/web/src/features/datasets/components/DatasetVersionHistoryPanel.tsx b/web/src/features/datasets/components/DatasetVersionHistoryPanel.tsx
index 982bccd616..cc3749a801 100644
--- a/web/src/features/datasets/components/DatasetVersionHistoryPanel.tsx
+++ b/web/src/features/datasets/components/DatasetVersionHistoryPanel.tsx
@@ -104,7 +104,7 @@ export function DatasetVersionHistoryPanel({
return (
<div className="flex h-full items-center justify-center p-4">
<div className="text-muted-foreground text-center text-sm">
- <Clock className="mx-auto mb-2 h-8 w-8" />
+ <Clock className="icon-xl mx-auto mb-2" />
<p>No versions found</p>
</div>
</div>
@@ -184,7 +184,7 @@ export function DatasetVersionHistoryPanel({
className="h-8 w-8 shrink-0 opacity-0 transition-opacity group-hover:opacity-100"
onClick={(e) => e.stopPropagation()}
>
- <MoreVertical className="h-4 w-4" />
+ <MoreVertical className="icon-base text-icon-foreground" />
<span className="sr-only">Version actions</span>
</Button>
</DropdownMenuTrigger>
@@ -195,7 +195,7 @@ export function DatasetVersionHistoryPanel({
copyVersionTimestamp(version);
}}
>
- <Copy className="mr-2 h-4 w-4" />
+ <Copy className="icon-base text-icon-foreground mr-2" />
Copy version timestamp (UTC)
</DropdownMenuItem>
<DropdownMenuItem
@@ -204,7 +204,7 @@ export function DatasetVersionHistoryPanel({
openDocumentation();
}}
>
- <ExternalLink className="mr-2 h-4 w-4" />
+ <ExternalLink className="icon-base text-icon-foreground mr-2" />
How to use in experiments
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/web/src/features/datasets/components/DatasetVersionWarningBanner.tsx b/web/src/features/datasets/components/DatasetVersionWarningBanner.tsx
index beb59a6e0d..ae096fdaa1 100644
--- a/web/src/features/datasets/components/DatasetVersionWarningBanner.tsx
+++ b/web/src/features/datasets/components/DatasetVersionWarningBanner.tsx
@@ -28,7 +28,7 @@ export function DatasetVersionWarningBanner({
<div
className={`border-accent-dark-blue/10 bg-accent-light-blue/30 flex items-start gap-3 border-b p-3 ${className}`}
>
- <Info className="mt-0.5 h-4 w-4 shrink-0" />
+ <Info className="icon-base mt-0.5 shrink-0" />
<div className="flex min-w-0 flex-1 flex-col gap-2">
<div className="flex items-center justify-between gap-4">
<p className="text-muted-foreground text-sm wrap-break-word">
diff --git a/web/src/features/datasets/components/DatasetsTable.tsx b/web/src/features/datasets/components/DatasetsTable.tsx
index 2e09caf5ee..f58fa01ebf 100644
--- a/web/src/features/datasets/components/DatasetsTable.tsx
+++ b/web/src/features/datasets/components/DatasetsTable.tsx
@@ -461,7 +461,7 @@ export function DatasetsTable(props: { projectId: string }) {
>
{({ disabled, openDialog }) => (
<IconOnlyButton
- icon={<Pen className="h-4 w-4" />}
+ icon={<Pen className="icon-base" />}
label="Edit"
aria-label="edit"
disabledReason={disabled?.reason}
@@ -482,7 +482,7 @@ export function DatasetsTable(props: { projectId: string }) {
>
{({ disabled, openDialog }) => (
<IconOnlyButton
- icon={<Trash className="h-4 w-4" />}
+ icon={<Trash className="icon-base" />}
label="Delete"
aria-label="delete"
disabledReason={disabled?.reason}
diff --git a/web/src/features/datasets/components/MappingCard.tsx b/web/src/features/datasets/components/MappingCard.tsx
index 76529b53ca..da9f5b46bf 100644
--- a/web/src/features/datasets/components/MappingCard.tsx
+++ b/web/src/features/datasets/components/MappingCard.tsx
@@ -140,7 +140,7 @@ function MappedColumnBadge({
}}
className="hover:bg-accent-dark-blue/80 flex items-center rounded-sm"
>
- <X className="h-3.5 w-3.5" />
+ <X className="icon-base" />
</button>
</div>
);
@@ -207,7 +207,7 @@ export function MappingCard({
</Label>
<Tooltip>
<TooltipTrigger asChild>
- <InfoIcon className="text-muted-foreground h-3 w-3" />
+ <InfoIcon className="text-muted-foreground icon-sm" />
</TooltipTrigger>
<TooltipContent className="max-w-[250px]" side="left">
{useDirectMappingForInput
@@ -266,7 +266,7 @@ export function MappingCard({
</Label>
<Tooltip>
<TooltipTrigger asChild>
- <InfoIcon className="text-muted-foreground h-3 w-3" />
+ <InfoIcon className="text-muted-foreground icon-sm" />
</TooltipTrigger>
<TooltipContent className="max-w-[250px]" side="left">
{useDirectMappingForExpectedOutput
diff --git a/web/src/features/datasets/components/NewDatasetItemButton.tsx b/web/src/features/datasets/components/NewDatasetItemButton.tsx
index f3dd842061..46b05d625d 100644
--- a/web/src/features/datasets/components/NewDatasetItemButton.tsx
+++ b/web/src/features/datasets/components/NewDatasetItemButton.tsx
@@ -33,7 +33,7 @@ export const NewDatasetItemButton = (props: {
variant="outline"
hasAccess={hasAccess}
trackingEventName="dataset_item:new_form_open"
- icon={<PlusIcon className="h-4 w-4" aria-hidden="true" />}
+ icon={<PlusIcon className="icon-base" aria-hidden="true" />}
>
New item
</ActionButton>
diff --git a/web/src/features/datasets/components/PreviewCsvImport.tsx b/web/src/features/datasets/components/PreviewCsvImport.tsx
index 3f04324e13..f969c03b3e 100644
--- a/web/src/features/datasets/components/PreviewCsvImport.tsx
+++ b/web/src/features/datasets/components/PreviewCsvImport.tsx
@@ -201,7 +201,7 @@ export function PreviewCsvImport({
</div>
) : (
<div className="bg-background flex cursor-grabbing items-center gap-2 rounded-md border p-2 shadow-xl">
- <GripVertical className="text-muted-foreground/70 h-4 w-4 shrink-0" />
+ <GripVertical className="text-muted-foreground/70 icon-base shrink-0" />
<div className="flex min-w-0 flex-1 items-center justify-between gap-2">
<span
className="truncate text-sm"
@@ -250,7 +250,7 @@ export function PreviewCsvImport({
</Label>
<Tooltip>
<TooltipTrigger asChild>
- <InfoIcon className="text-muted-foreground h-3.5 w-3.5" />
+ <InfoIcon className="text-muted-foreground icon-base" />
</TooltipTrigger>
<TooltipContent className="max-w-[300px]">
When a single csv column is mapped to a dataset item field, wrap
diff --git a/web/src/features/datasets/components/UploadDatasetCsvButton.tsx b/web/src/features/datasets/components/UploadDatasetCsvButton.tsx
index 916d8e69ba..95646064f4 100644
--- a/web/src/features/datasets/components/UploadDatasetCsvButton.tsx
+++ b/web/src/features/datasets/components/UploadDatasetCsvButton.tsx
@@ -28,7 +28,7 @@ export const UploadDatasetCsvButton = (props: {
disabled={!hasAccess}
hasAccess={hasAccess}
trackingEventName="dataset_item:upload_csv_button_click"
- icon={<UploadIcon className="h-4 w-4" aria-hidden="true" />}
+ icon={<UploadIcon className="icon-base" aria-hidden="true" />}
>
Upload CSV
</ActionButton>
diff --git a/web/src/features/developer-tools/components/AgentToolsBanner.tsx b/web/src/features/developer-tools/components/AgentToolsBanner.tsx
index b41ee2d149..06352c3bef 100644
--- a/web/src/features/developer-tools/components/AgentToolsBanner.tsx
+++ b/web/src/features/developer-tools/components/AgentToolsBanner.tsx
@@ -22,7 +22,7 @@ export function AgentToolsBanner() {
onDismiss={onDismiss}
>
<div className="flex items-start gap-2 sm:items-center">
- <Bot className="mt-0.5 h-4 w-4 shrink-0 sm:mt-0" />
+ <Bot className="icon-base mt-0.5 shrink-0 sm:mt-0" />
<span>
<span className="font-bold">
Langfuse works great with your AI coding agents.
diff --git a/web/src/features/developer-tools/components/DeveloperToolsSettings.tsx b/web/src/features/developer-tools/components/DeveloperToolsSettings.tsx
index 3dfed84773..2b5cee0d49 100644
--- a/web/src/features/developer-tools/components/DeveloperToolsSettings.tsx
+++ b/web/src/features/developer-tools/components/DeveloperToolsSettings.tsx
@@ -33,7 +33,7 @@ export function DeveloperToolsSettings({ projectId }: { projectId: string }) {
<div className="space-y-6">
<Card className="p-4">
<div className="mb-3 flex items-center gap-2">
- <Sparkles className="text-foreground h-5 w-5" />
+ <Sparkles className="text-foreground icon-lg" />
<span className="font-bold">Agent Skill</span>
</div>
<p className="text-primary mb-4 text-sm">
@@ -54,7 +54,7 @@ export function DeveloperToolsSettings({ projectId }: { projectId: string }) {
<Card className="p-4">
<div className="mb-3 flex items-center gap-2">
- <Bot className="text-foreground h-5 w-5" />
+ <Bot className="text-foreground icon-lg" />
<span className="font-bold">MCP Server</span>
</div>
<p className="text-primary mb-4 text-sm">
@@ -78,7 +78,7 @@ export function DeveloperToolsSettings({ projectId }: { projectId: string }) {
<Card className="p-4">
<div className="mb-3 flex items-center gap-2">
- <SquareTerminal className="text-foreground h-5 w-5" />
+ <SquareTerminal className="text-foreground icon-lg" />
<span className="font-bold">CLI</span>
</div>
<p className="text-primary mb-4 text-sm">
diff --git a/web/src/features/evals/components/code-eval-template-form-body.tsx b/web/src/features/evals/components/code-eval-template-form-body.tsx
index b3e918b668..d28fdcdf8c 100644
--- a/web/src/features/evals/components/code-eval-template-form-body.tsx
+++ b/web/src/features/evals/components/code-eval-template-form-body.tsx
@@ -409,7 +409,9 @@ export function CodeEvalTemplateFormBody({
className={formatDisabledReason ? "pointer-events-none" : undefined}
onClick={() => formatSource()}
>
- {isFormatting && <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" />}
+ {isFormatting && (
+ <Loader2 className="icon-base text-icon-foreground mr-1.5 animate-spin" />
+ )}
Format
<span className="ml-2 hidden md:inline-flex">
<KeyboardShortcut size="sm" keys={["Shift", "Alt", "F"]} />
diff --git a/web/src/features/evals/components/code-eval-test-run-card.tsx b/web/src/features/evals/components/code-eval-test-run-card.tsx
index 2bc17f7c34..0e21e6bdef 100644
--- a/web/src/features/evals/components/code-eval-test-run-card.tsx
+++ b/web/src/features/evals/components/code-eval-test-run-card.tsx
@@ -116,7 +116,7 @@ export function CodeEvalTestRunCard({
rel="noopener noreferrer"
>
Source code
- <ExternalLink className="ml-1 h-3.5 w-3.5" />
+ <ExternalLink className="icon-base text-icon-foreground ml-1" />
</Link>
</Button>
) : (
@@ -126,7 +126,7 @@ export function CodeEvalTestRunCard({
title="Only user-managed templates can be edited"
>
Source code
- <ExternalLink className="ml-1 h-3.5 w-3.5" />
+ <ExternalLink className="icon-base text-icon-foreground ml-1" />
</Button>
)}
<Button
@@ -151,9 +151,9 @@ export function CodeEvalTestRunCard({
}}
>
{testRunMutation.data ? (
- <RotateCcw className="mr-1.5 h-3.5 w-3.5" />
+ <RotateCcw className="icon-base text-icon-foreground mr-1.5" />
) : (
- <Play className="mr-1.5 h-3.5 w-3.5" />
+ <Play className="icon-base text-icon-foreground mr-1.5" />
)}
Test
</Button>
@@ -307,7 +307,7 @@ function CodeEvalTestRunResultView({
size="sm"
onClick={() => onShowExecutionTrace(result.executionTraceId)}
>
- <ListTree className="mr-1.5 h-3.5 w-3.5" />
+ <ListTree className="icon-base text-icon-foreground mr-1.5" />
Show execution trace
</Button>
) : null}
diff --git a/web/src/features/evals/components/default-eval-model-setup.tsx b/web/src/features/evals/components/default-eval-model-setup.tsx
index c623c7d485..29fccc6373 100644
--- a/web/src/features/evals/components/default-eval-model-setup.tsx
+++ b/web/src/features/evals/components/default-eval-model-setup.tsx
@@ -207,7 +207,7 @@ export function DefaultEvalModelSetup({
setIsEditing(true);
}}
>
- <Pencil className="mr-2 h-4 w-4" />
+ <Pencil className="icon-base mr-2" />
{setup.selectedModel ? "Edit" : "Set up"}
</Button>
</DialogTrigger>
diff --git a/web/src/features/evals/components/delete-eval-template-dialog.tsx b/web/src/features/evals/components/delete-eval-template-dialog.tsx
index eb861df9bd..175fed4195 100644
--- a/web/src/features/evals/components/delete-eval-template-dialog.tsx
+++ b/web/src/features/evals/components/delete-eval-template-dialog.tsx
@@ -28,7 +28,7 @@ const EvaluatorLink = ({
className="inline-flex items-center gap-1 text-blue-600 hover:underline"
>
{evaluator.scoreName}
- <ExternalLinkIcon className="h-3 w-3" />
+ <ExternalLinkIcon className="icon-sm" />
</Link>
);
diff --git a/web/src/features/evals/components/eval-template-detail.tsx b/web/src/features/evals/components/eval-template-detail.tsx
index 02d3bf0795..88d6b5b523 100644
--- a/web/src/features/evals/components/eval-template-detail.tsx
+++ b/web/src/features/evals/components/eval-template-detail.tsx
@@ -111,7 +111,9 @@ export const EvalTemplateDetail = () => {
{template.data?.projectId ? (
<>
<IconOnlyButton
- icon={<TrashIcon className="h-4 w-4" />}
+ icon={
+ <TrashIcon className="icon-base text-icon-foreground" />
+ }
label="Delete"
aria-label="delete"
variant="outline"
diff --git a/web/src/features/evals/components/eval-templates-table.tsx b/web/src/features/evals/components/eval-templates-table.tsx
index 85957da4fc..62a638f4f8 100644
--- a/web/src/features/evals/components/eval-templates-table.tsx
+++ b/web/src/features/evals/components/eval-templates-table.tsx
@@ -106,7 +106,7 @@ const TemplateTypeBadge = ({
return (
<Badge className="w-fit gap-1.5" variant="outline-solid">
- {Icon ? <Icon className="h-3 w-3" aria-hidden="true" /> : null}
+ {Icon ? <Icon className="icon-sm" aria-hidden="true" /> : null}
{label}
</Badge>
);
@@ -165,7 +165,7 @@ const EvalTemplateRowActionsMenu = ({
<DropdownMenuTrigger asChild>
<Button variant="ghost" size="icon-xs" aria-label="actions">
<span className="sr-only relative">Open menu</span>
- <MoreVertical className="h-4 w-4" />
+ <MoreVertical className="icon-sm text-icon-foreground" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
@@ -179,7 +179,7 @@ const EvalTemplateRowActionsMenu = ({
onClone();
}}
>
- <Copy className="mr-2 h-4 w-4" />
+ <Copy className="icon-base text-icon-foreground mr-2" />
Clone
</DropdownMenuItem>
) : null}
@@ -193,7 +193,7 @@ const EvalTemplateRowActionsMenu = ({
onEdit();
}}
>
- <Pen className="mr-2 h-4 w-4" />
+ <Pen className="icon-base text-icon-foreground mr-2" />
Edit
</DropdownMenuItem>
<DropdownMenuItem
@@ -207,7 +207,7 @@ const EvalTemplateRowActionsMenu = ({
setIsDeleteDialogOpen(true);
}}
>
- <Trash className="mr-2 h-4 w-4" />
+ <Trash className="icon-base text-icon-foreground mr-2" />
Delete
</DropdownMenuItem>
</>
diff --git a/web/src/features/evals/components/evaluator-paused-callout.tsx b/web/src/features/evals/components/evaluator-paused-callout.tsx
index b79a78d67a..d3daa21a7a 100644
--- a/web/src/features/evals/components/evaluator-paused-callout.tsx
+++ b/web/src/features/evals/components/evaluator-paused-callout.tsx
@@ -94,7 +94,7 @@ export function EvaluatorPausedCallout({
className="border-light-yellow bg-light-yellow rounded-lg border"
>
<div className="flex gap-3 p-4">
- <AlertTriangle className="text-dark-yellow mt-0.5 h-4 w-4 shrink-0" />
+ <AlertTriangle className="text-dark-yellow icon-base mt-0.5 shrink-0" />
<div className="min-w-0 flex-1">
<h3 className="text-foreground text-base font-bold">
@@ -126,7 +126,7 @@ export function EvaluatorPausedCallout({
target="_blank"
rel="noopener noreferrer"
>
- <ExternalLinkIcon className="mr-1.5 h-3.5 w-3.5" />
+ <ExternalLinkIcon className="icon-base text-icon-foreground mr-1.5" />
{resolutionActionLabel}
</Link>
</Button>
@@ -147,7 +147,7 @@ export function EvaluatorPausedCallout({
}
className="h-8 px-3"
>
- <RefreshCcw className="mr-1.5 h-3.5 w-3.5" />
+ <RefreshCcw className="icon-base text-icon-foreground mr-1.5" />
Reactivate
</Button>
) : null}
diff --git a/web/src/features/evals/components/evaluator-selector.tsx b/web/src/features/evals/components/evaluator-selector.tsx
index ab6eb64d4e..b5406df3ee 100644
--- a/web/src/features/evals/components/evaluator-selector.tsx
+++ b/web/src/features/evals/components/evaluator-selector.tsx
@@ -54,7 +54,7 @@ const CodeTemplateLanguageIcon = ({
aria-label={language.title}
className="text-muted-foreground ml-1 inline-flex shrink-0"
>
- <Icon className="h-3.5 w-3.5" aria-hidden="true" />
+ <Icon className="icon-base" aria-hidden="true" />
</span>
);
};
@@ -213,7 +213,7 @@ export function EvaluatorSelector({
{isInvalid && (
<Tooltip>
<TooltipTrigger asChild>
- <AlertCircle className="ml-1 h-4 w-4 text-yellow-500" />
+ <AlertCircle className="icon-base ml-1 text-yellow-500" />
</TooltipTrigger>
<TooltipContent className="max-h-[50dvh] overflow-y-auto text-sm break-normal whitespace-normal">
<p>Requires project-level evaluation model</p>
@@ -229,7 +229,7 @@ export function EvaluatorSelector({
</Tooltip>
)}
{template.id === selectedTemplateId && (
- <CheckIcon className="ml-auto h-4 w-4" />
+ <CheckIcon className="icon-base ml-auto" />
)}
</InputCommandItem>
);
@@ -288,7 +288,7 @@ export function EvaluatorSelector({
{isInvalid && (
<Tooltip>
<TooltipTrigger asChild>
- <AlertCircle className="ml-1 h-4 w-4 text-yellow-500" />
+ <AlertCircle className="icon-base ml-1 text-yellow-500" />
</TooltipTrigger>
<TooltipContent className="max-h-[50dvh] overflow-y-auto text-sm break-normal whitespace-normal">
<p>Requires project-level evaluation model</p>
@@ -304,7 +304,7 @@ export function EvaluatorSelector({
</Tooltip>
)}
{template.id === selectedTemplateId && (
- <CheckIcon className="ml-auto h-4 w-4" />
+ <CheckIcon className="icon-base ml-auto" />
)}
</InputCommandItem>
);
diff --git a/web/src/features/evals/components/evaluator-table.tsx b/web/src/features/evals/components/evaluator-table.tsx
index 867ebcfc46..478aee7899 100644
--- a/web/src/features/evals/components/evaluator-table.tsx
+++ b/web/src/features/evals/components/evaluator-table.tsx
@@ -275,7 +275,7 @@ export default function EvaluatorTable({ projectId }: { projectId: string }) {
);
}}
>
- <ExternalLinkIcon className="mr-1 h-3 w-3" />
+ <ExternalLinkIcon className="icon-base text-icon-foreground mr-1" />
View
</Button>
);
@@ -377,7 +377,7 @@ export default function EvaluatorTable({ projectId }: { projectId: string }) {
<div className="flex items-center gap-1">
<IconOnlyButton
key={id}
- icon={<Pen className="h-4 w-4" />}
+ icon={<Pen className="icon-base" />}
label="Edit"
aria-label="edit"
disabledReason={
diff --git a/web/src/features/evals/components/inner-evaluator-form.tsx b/web/src/features/evals/components/inner-evaluator-form.tsx
index 3d461213cb..6fc176cfcf 100644
--- a/web/src/features/evals/components/inner-evaluator-form.tsx
+++ b/web/src/features/evals/components/inner-evaluator-form.tsx
@@ -219,7 +219,7 @@ const ObservationsPreview = memo(
<Suspense fallback={<Skeleton className="h-[30dvh] w-full" />}>
{showSdkUpgradeMessage ? (
<div className="flex h-[30dvh] flex-col items-center justify-center gap-2 border-t p-4 text-center">
- <AlertTriangle className="text-dark-yellow h-8 w-8" />
+ <AlertTriangle className="text-dark-yellow icon-xl" />
<div className="flex flex-col gap-1">
<span className="text-foreground font-bold">
Please verify your SDK version
@@ -301,7 +301,7 @@ function CodeEvalSourceLink({
rel="noopener noreferrer"
>
Edit source code
- <ExternalLink className="ml-1 h-3.5 w-3.5" />
+ <ExternalLink className="icon-base text-icon-foreground ml-1" />
</Link>
</Button>
) : (
@@ -311,7 +311,7 @@ function CodeEvalSourceLink({
title="Only user-managed templates can be edited"
>
Edit source code
- <ExternalLink className="ml-1 h-3.5 w-3.5" />
+ <ExternalLink className="icon-base text-icon-foreground ml-1" />
</Button>
);
@@ -876,7 +876,7 @@ export const InnerEvaluatorForm = (props: {
{props.mode === "edit" && (
<Tooltip>
<TooltipTrigger>
- <InfoIcon className="text-muted-foreground size-3" />
+ <InfoIcon className="text-muted-foreground icon-sm" />
</TooltipTrigger>
<TooltipContent className="max-w-[200px] p-2">
<span className="leading-4">
@@ -1077,7 +1077,7 @@ export const InnerEvaluatorForm = (props: {
(props.mode === "edit" ? (
<Tooltip>
<TooltipTrigger>
- <InfoIcon className="text-muted-foreground size-3" />
+ <InfoIcon className="text-muted-foreground icon-sm" />
</TooltipTrigger>
<TooltipContent className="max-w-[300px] p-2">
<span className="leading-4">
@@ -1262,7 +1262,7 @@ export const InnerEvaluatorForm = (props: {
</FormControl>
{!props.disabled && !hasFilters && (
<div className="flex max-w-[500px] gap-1">
- <AlertTriangle className="text-dark-yellow h-4 w-4" />
+ <AlertTriangle className="text-dark-yellow icon-base" />
<div className="text-dark-yellow text-sm [&_p]:leading-relaxed">
No filters set. This evaluator will run on all{" "}
{getTargetDisplayName(target)}.
diff --git a/web/src/features/evals/components/maintainer-tooltip.tsx b/web/src/features/evals/components/maintainer-tooltip.tsx
index 45fcbee307..957f835806 100644
--- a/web/src/features/evals/components/maintainer-tooltip.tsx
+++ b/web/src/features/evals/components/maintainer-tooltip.tsx
@@ -9,7 +9,7 @@ function MaintainerIcon({ maintainer }: { maintainer: string }) {
} else if (maintainer.includes("Langfuse")) {
return <LangfuseIcon size={16} />;
}
- return <UserCircle2Icon className="h-4 w-4" />;
+ return <UserCircle2Icon className="icon-base" />;
}
export function MaintainerTooltip({ maintainer }: { maintainer: string }) {
diff --git a/web/src/features/evals/components/manage-default-eval-model.tsx b/web/src/features/evals/components/manage-default-eval-model.tsx
index 26f4b7adfe..d26696e576 100644
--- a/web/src/features/evals/components/manage-default-eval-model.tsx
+++ b/web/src/features/evals/components/manage-default-eval-model.tsx
@@ -37,9 +37,9 @@ export function ManageDefaultEvalModel({
<div className="flex items-center">
{!showEditButton &&
(defaultModel ? (
- <Check className="text-dark-green mr-2 h-4 w-4" />
+ <Check className="text-dark-green icon-base mr-2" />
) : (
- <TriangleAlert className="text-dark-yellow mr-2 h-4 w-4" />
+ <TriangleAlert className="text-dark-yellow icon-base mr-2" />
))}
{defaultModel ? (
<span
@@ -77,7 +77,7 @@ export function ManageDefaultEvalModel({
>
<Pencil
className={cn(
- "h-3 w-3",
+ "icon-base",
variant === "color-coded" &&
!defaultModel &&
"text-dark-yellow",
diff --git a/web/src/features/evals/components/select-evaluator-list.tsx b/web/src/features/evals/components/select-evaluator-list.tsx
index 8b7f49541c..ae146c7ead 100644
--- a/web/src/features/evals/components/select-evaluator-list.tsx
+++ b/web/src/features/evals/components/select-evaluator-list.tsx
@@ -131,7 +131,7 @@ export function SelectEvaluatorList({ projectId }: SelectEvaluatorListProps) {
className="h-auto min-h-24 w-full justify-start gap-3 px-4 py-4 text-left whitespace-normal sm:w-[360px]"
onClick={() => handleOpenCreateEvaluator(EvalTemplateType.CODE)}
>
- <Code2 className="h-5 w-5 shrink-0" />
+ <Code2 className="icon-base text-icon-foreground shrink-0" />
<span className="flex flex-col gap-1">
<span className="font-bold">Code evaluator</span>
<span className="text-muted-foreground text-sm font-normal">
@@ -148,7 +148,7 @@ export function SelectEvaluatorList({ projectId }: SelectEvaluatorListProps) {
handleOpenCreateEvaluator(EvalTemplateType.LLM_AS_JUDGE)
}
>
- <Bot className="h-5 w-5 shrink-0" />
+ <Bot className="icon-base text-icon-foreground shrink-0" />
<span className="flex flex-col gap-1">
<span className="font-bold">LLM as a judge evaluator</span>
<span className="text-muted-foreground text-sm font-normal">
@@ -318,7 +318,7 @@ function CreateLlmEvaluatorWizard({
{isActive ? (
<BreadcrumbPage className="flex items-center font-bold">
{isComplete ? (
- <Check className="text-dark-green mr-1.5 h-3.5 w-3.5" />
+ <Check className="text-dark-green icon-base mr-1.5" />
) : null}
{index + 1}. {step.label}
</BreadcrumbPage>
@@ -332,7 +332,7 @@ function CreateLlmEvaluatorWizard({
className="flex cursor-pointer items-center"
>
{isComplete ? (
- <Check className="text-dark-green mr-1.5 h-3.5 w-3.5" />
+ <Check className="text-dark-green icon-base mr-1.5" />
) : null}
{index + 1}. {step.label}
</BreadcrumbLink>
diff --git a/web/src/features/evals/components/template-form.tsx b/web/src/features/evals/components/template-form.tsx
index 5ab71dce27..3d24d1eb0f 100644
--- a/web/src/features/evals/components/template-form.tsx
+++ b/web/src/features/evals/components/template-form.tsx
@@ -714,7 +714,7 @@ const InnerEvalTemplateForm = (props: {
{!useDefaultModel &&
(!props.isEditing && !isCustomModelValid ? (
<div className="text-destructive mt-2 flex items-center space-x-1 text-sm">
- <AlertCircle className="h-4 w-4" />
+ <AlertCircle className="icon-base" />
<p>
This evaluator is configured to use{" "}
{modelParams.provider.value}s models but no API key
@@ -899,7 +899,7 @@ const InnerEvalTemplateForm = (props: {
disabled={!props.isEditing}
onClick={() => remove(index)}
>
- <Trash className="text-muted-foreground h-4 w-4" />
+ <Trash className="icon-base text-muted-foreground" />
</Button>
</div>
</div>
@@ -912,7 +912,7 @@ const InnerEvalTemplateForm = (props: {
disabled={!props.isEditing}
onClick={() => append({ value: "" })}
>
- <PlusIcon className="mr-1.5 h-4 w-4" />
+ <PlusIcon className="icon-base text-icon-foreground mr-1.5" />
Add category
</Button>
<FormField
diff --git a/web/src/features/evals/components/template-selector.tsx b/web/src/features/evals/components/template-selector.tsx
index 512bbfef08..7693c2460e 100644
--- a/web/src/features/evals/components/template-selector.tsx
+++ b/web/src/features/evals/components/template-selector.tsx
@@ -219,7 +219,7 @@ export const TemplateSelector = ({
disabled={isInvalid || disabled}
>
{isActive ? (
- <CheckIcon className="mr-2 h-4 w-4" />
+ <CheckIcon className="icon-base mr-2" />
) : (
<div className="mr-2 h-4 w-4" />
)}
@@ -232,7 +232,7 @@ export const TemplateSelector = ({
{isInvalid && (
<Tooltip>
<TooltipTrigger asChild>
- <AlertCircle className="ml-1 h-4 w-4 text-yellow-500" />
+ <AlertCircle className="icon-base ml-1 text-yellow-500" />
</TooltipTrigger>
<TooltipContent className="max-h-[50dvh] overflow-y-auto text-xs break-normal whitespace-normal">
<p>Requires project-level evaluation model</p>
@@ -242,7 +242,7 @@ export const TemplateSelector = ({
target="_blank"
rel="noopener noreferrer"
>
- <ExternalLinkIcon className="h-3 w-3" />
+ <ExternalLinkIcon className="icon-base" />
Configure default model
</Link>
</TooltipContent>
@@ -275,7 +275,7 @@ export const TemplateSelector = ({
}
disabled={isInvalid || disabled}
>
- <Cog className="h-4 w-4" />
+ <Cog className="icon-sm text-icon-foreground" />
</Button>
)}
</InputCommandItem>
@@ -310,7 +310,7 @@ export const TemplateSelector = ({
disabled={isInvalid || disabled}
>
{isActive ? (
- <CheckIcon className="mr-2 h-4 w-4" />
+ <CheckIcon className="icon-base mr-2" />
) : (
<div className="mr-2 h-4 w-4" />
)}
@@ -326,7 +326,7 @@ export const TemplateSelector = ({
{isInvalid && (
<Tooltip>
<TooltipTrigger asChild>
- <AlertCircle className="ml-1 h-4 w-4 text-yellow-500" />
+ <AlertCircle className="icon-base ml-1 text-yellow-500" />
</TooltipTrigger>
<TooltipContent className="max-h-[50dvh] overflow-y-auto text-xs break-normal whitespace-normal">
<p>Requires project-level evaluation model</p>
@@ -336,7 +336,7 @@ export const TemplateSelector = ({
target="_blank"
rel="noopener noreferrer"
>
- <ExternalLinkIcon className="h-3 w-3" />
+ <ExternalLinkIcon className="icon-base" />
Configure default model
</Link>
</TooltipContent>
@@ -369,7 +369,7 @@ export const TemplateSelector = ({
}
disabled={isInvalid || disabled}
>
- <Cog className="h-4 w-4" />
+ <Cog className="icon-sm text-icon-foreground" />
</Button>
)}
</InputCommandItem>
@@ -390,7 +390,7 @@ export const TemplateSelector = ({
}}
>
Create custom evaluator
- <ExternalLink className="ml-auto h-4 w-4" />
+ <ExternalLink className="icon-base ml-auto" />
</InputCommandItem>
{!hasDefaultModel && (
<InputCommandItem
@@ -403,7 +403,7 @@ export const TemplateSelector = ({
}}
>
Configure default model
- <ExternalLink className="ml-auto h-4 w-4" />
+ <ExternalLink className="icon-base ml-auto" />
</InputCommandItem>
)}
</InputCommandGroup>
diff --git a/web/src/features/evals/components/variable-mapping-card.tsx b/web/src/features/evals/components/variable-mapping-card.tsx
index 0efeb43253..aa6ec33e6d 100644
--- a/web/src/features/evals/components/variable-mapping-card.tsx
+++ b/web/src/features/evals/components/variable-mapping-card.tsx
@@ -232,7 +232,7 @@ export const VariableMappingCard = ({
rel="noopener noreferrer"
>
Edit prompt
- <ExternalLink className="ml-1 h-4 w-4" />
+ <ExternalLink className="icon-base text-icon-foreground ml-1" />
</Link>
</Button>
) : (
@@ -243,7 +243,7 @@ export const VariableMappingCard = ({
title="Only user-managed templates can be edited"
>
Edit prompt
- <ExternalLink className="ml-1 h-4 w-4" />
+ <ExternalLink className="icon-base text-icon-foreground ml-1" />
</Button>
)}
</div>
diff --git a/web/src/features/evals/pages/evaluators.tsx b/web/src/features/evals/pages/evaluators.tsx
index 62d6034d56..c126b98785 100644
--- a/web/src/features/evals/pages/evaluators.tsx
+++ b/web/src/features/evals/pages/evaluators.tsx
@@ -96,7 +96,7 @@ export default function EvaluatorsPage() {
<ActionButton
hasAccess={hasWriteAccess}
href={`/project/${projectId}/evals/legacy/new`}
- icon={<Plus className="h-4 w-4" />}
+ icon={<Plus className="icon-base text-icon-foreground" />}
trackingEventName="eval_config:new_form_open"
variant="default"
usageLimit={
diff --git a/web/src/features/evals/pages/new-evaluator.tsx b/web/src/features/evals/pages/new-evaluator.tsx
index 0f8ed191b8..ffe4fc39b7 100644
--- a/web/src/features/evals/pages/new-evaluator.tsx
+++ b/web/src/features/evals/pages/new-evaluator.tsx
@@ -196,7 +196,7 @@ export default function NewEvaluatorPage() {
>
1. Select Evaluator
{step !== "select" && (
- <Check className="ml-1 inline-block h-3 w-3" />
+ <Check className="icon-sm ml-1 inline-block" />
)}
</BreadcrumbPage>
</BreadcrumbItem>
@@ -211,7 +211,7 @@ export default function NewEvaluatorPage() {
>
2. Set up LLM connection
{isProviderStepComplete && (
- <Check className="ml-1 inline-block h-3 w-3" />
+ <Check className="icon-sm ml-1 inline-block" />
)}
</BreadcrumbPage>
</BreadcrumbItem>
diff --git a/web/src/features/evals/pages/remap-evaluator.tsx b/web/src/features/evals/pages/remap-evaluator.tsx
index 3cf7859d6a..1f58db16dc 100644
--- a/web/src/features/evals/pages/remap-evaluator.tsx
+++ b/web/src/features/evals/pages/remap-evaluator.tsx
@@ -195,7 +195,7 @@ export default function RemapEvaluatorPage() {
onDismiss={onDismiss}
>
<div className="flex items-start gap-2">
- <Zap className="mt-0.5 h-4 w-4 shrink-0" />
+ <Zap className="icon-base mt-0.5 shrink-0" />
<span>
<span className="font-bold">
This evaluator needs an upgrade for Langfuse v4.
@@ -348,7 +348,7 @@ export default function RemapEvaluatorPage() {
className="mt-3 rounded-l-none rounded-r-md border-l-2"
{...getTriggerProps()}
>
- <ChevronDown className="h-4 w-4" />
+ <ChevronDown className="icon-base" />
</Button>
)}
</DropdownMenu>
diff --git a/web/src/features/evals/pages/templates.tsx b/web/src/features/evals/pages/templates.tsx
index ff54be4852..4ba8ba7c02 100644
--- a/web/src/features/evals/pages/templates.tsx
+++ b/web/src/features/evals/pages/templates.tsx
@@ -58,9 +58,9 @@ export default function TemplatesPage() {
}
>
{hasWriteAccess ? (
- <Plus className="mr-2 h-4 w-4" />
+ <Plus className="icon-base text-icon-foreground mr-2" />
) : (
- <Lock className="mr-2 h-4 w-4" />
+ <Lock className="icon-base text-icon-foreground mr-2" />
)}
Custom Evaluator
</Link>
diff --git a/web/src/features/evals/v2/components/CollapsibleCard/CollapsibleCard.tsx b/web/src/features/evals/v2/components/CollapsibleCard/CollapsibleCard.tsx
index 276713b86f..2ff554ccc7 100644
--- a/web/src/features/evals/v2/components/CollapsibleCard/CollapsibleCard.tsx
+++ b/web/src/features/evals/v2/components/CollapsibleCard/CollapsibleCard.tsx
@@ -32,7 +32,7 @@ export function CollapsibleCard({
<>
<ChevronDown
className={cn(
- "text-foreground-tertiary size-3.5 shrink-0 translate-y-px transition-transform",
+ "text-foreground-tertiary icon-base shrink-0 translate-y-px transition-transform",
open ? "rotate-0" : "-rotate-90",
)}
/>
diff --git a/web/src/features/evals/v2/components/EvaluatorGalleryView/EvaluatorGalleryView.tsx b/web/src/features/evals/v2/components/EvaluatorGalleryView/EvaluatorGalleryView.tsx
index 9a00f2a2c3..4549ffad27 100644
--- a/web/src/features/evals/v2/components/EvaluatorGalleryView/EvaluatorGalleryView.tsx
+++ b/web/src/features/evals/v2/components/EvaluatorGalleryView/EvaluatorGalleryView.tsx
@@ -144,7 +144,7 @@ export function EvaluatorGalleryView({
>
<div className="bg-modal sticky top-0 z-10 flex flex-col items-stretch gap-2 border-b px-4 py-3 @2xl:flex-row @2xl:items-center">
<div className="relative min-w-0 flex-1">
- <Search className="text-muted-foreground absolute top-1/2 left-2 h-4 w-4 -translate-y-1/2" />
+ <Search className="text-muted-foreground icon-base absolute top-1/2 left-2 -translate-y-1/2" />
<Input
ref={searchInputRef}
value={search}
@@ -162,7 +162,7 @@ export function EvaluatorGalleryView({
onCreateFromScratch(EvalTemplateTypeEnum.LLM_AS_JUDGE)
}
>
- <Sparkles className="h-3.5 w-3.5" aria-hidden="true" />
+ <Sparkles className="icon-base" aria-hidden="true" />
New LLM-as-a-judge
</Button>
<Button
@@ -171,7 +171,7 @@ export function EvaluatorGalleryView({
className="flex-1 shrink-0 gap-1.5 @2xl:flex-none"
onClick={() => onCreateFromScratch(EvalTemplateTypeEnum.CODE)}
>
- <Code2 className="h-3.5 w-3.5" aria-hidden="true" />
+ <Code2 className="icon-base" aria-hidden="true" />
New code evaluator
</Button>
<Button
@@ -183,7 +183,7 @@ export function EvaluatorGalleryView({
onCreateFromScratch(EvalTemplateTypeEnum.DECISION_MODEL)
}
>
- <Scale className="h-3.5 w-3.5" aria-hidden="true" />
+ <Scale className="icon-base" aria-hidden="true" />
New decision model evaluator
</Button>
</div>
diff --git a/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGalleryDecisionModelBanner/EvaluatorGalleryDecisionModelBanner.tsx b/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGalleryDecisionModelBanner/EvaluatorGalleryDecisionModelBanner.tsx
index 425dfa9e8b..030aaf75a6 100644
--- a/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGalleryDecisionModelBanner/EvaluatorGalleryDecisionModelBanner.tsx
+++ b/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGalleryDecisionModelBanner/EvaluatorGalleryDecisionModelBanner.tsx
@@ -13,7 +13,7 @@ export function EvaluatorGalleryDecisionModelBanner({
<div className="border-primary-accent/30 bg-primary-accent/5 relative flex flex-col gap-3 rounded-md border px-4 py-3 pr-10 text-sm @3xl:flex-row @3xl:items-center">
<div className="flex min-w-0 items-start gap-3">
<Scale
- className="text-primary-accent mt-0.5 h-4 w-4 shrink-0"
+ className="text-primary-accent icon-base mt-0.5 shrink-0"
aria-hidden="true"
/>
<div className="min-w-0 flex-1">
@@ -41,7 +41,7 @@ export function EvaluatorGalleryDecisionModelBanner({
aria-label="Dismiss"
onClick={onDismiss}
>
- <X className="h-3.5 w-3.5" />
+ <X className="icon-sm text-icon-foreground" />
</Button>
</div>
);
diff --git a/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGalleryMethodBadge/EvaluatorGalleryMethodBadge.tsx b/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGalleryMethodBadge/EvaluatorGalleryMethodBadge.tsx
index b43e8fe81b..acad9e2db1 100644
--- a/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGalleryMethodBadge/EvaluatorGalleryMethodBadge.tsx
+++ b/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGalleryMethodBadge/EvaluatorGalleryMethodBadge.tsx
@@ -23,7 +23,7 @@ export function EvaluatorGalleryMethodBadge({
return (
<span className="bg-muted text-muted-foreground inline-flex h-5 shrink-0 items-center gap-1 rounded-full px-2 text-xs leading-none whitespace-nowrap">
- <Icon className="size-3" />
+ <Icon className="icon-sm" />
{label}
</span>
);
diff --git a/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySection/EvaluatorGallerySection.tsx b/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySection/EvaluatorGallerySection.tsx
index 8aa7605734..3e44a4ee2e 100644
--- a/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySection/EvaluatorGallerySection.tsx
+++ b/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySection/EvaluatorGallerySection.tsx
@@ -58,7 +58,7 @@ export function EvaluatorGallerySection({
<>
<div className="flex flex-col gap-2">
<div className="flex items-center gap-2">
- <Icon className={cn("h-3.5 w-3.5 shrink-0", iconClassName)} />
+ <Icon className={cn("icon-base shrink-0", iconClassName)} />
<h4 className="text-muted-foreground text-xs font-bold tracking-wide uppercase">
{section.label}
</h4>
diff --git a/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySection/components/EvaluatorRecommendedCard/EvaluatorRecommendedCard.tsx b/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySection/components/EvaluatorRecommendedCard/EvaluatorRecommendedCard.tsx
index 27d009fefe..639ae9ac05 100644
--- a/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySection/components/EvaluatorRecommendedCard/EvaluatorRecommendedCard.tsx
+++ b/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySection/components/EvaluatorRecommendedCard/EvaluatorRecommendedCard.tsx
@@ -70,7 +70,7 @@ export function EvaluatorRecommendedTemplateCardContent({
return (
<EvaluatorRecommendedCardContent
- icon={<Icon className={cn("h-4 w-4 shrink-0", iconClassName)} />}
+ icon={<Icon className={cn("icon-base shrink-0", iconClassName)} />}
badge={<EvaluatorGalleryMethodBadge type={type} />}
title={title}
description={description}
diff --git a/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySection/components/EvaluatorRecommendedCards/EvaluatorRecommendedCards.tsx b/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySection/components/EvaluatorRecommendedCards/EvaluatorRecommendedCards.tsx
index cc37833692..490cd85ce4 100644
--- a/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySection/components/EvaluatorRecommendedCards/EvaluatorRecommendedCards.tsx
+++ b/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySection/components/EvaluatorRecommendedCards/EvaluatorRecommendedCards.tsx
@@ -21,7 +21,7 @@ export function EvaluatorRecommendedCards({
<div className="@container flex flex-col gap-3">
<div className="flex flex-col gap-2">
<div className="flex items-center gap-2">
- <Icon className={cn("h-3.5 w-3.5 shrink-0", iconClassName)} />
+ <Icon className={cn("icon-base shrink-0", iconClassName)} />
<h4 className="text-muted-foreground text-xs font-bold tracking-wide uppercase">
{label}
</h4>
diff --git a/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySidebar/EvaluatorGallerySidebar.tsx b/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySidebar/EvaluatorGallerySidebar.tsx
index 6ff2d4b62b..64f4210ac9 100644
--- a/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySidebar/EvaluatorGallerySidebar.tsx
+++ b/web/src/features/evals/v2/components/EvaluatorGalleryView/components/EvaluatorGallerySidebar/EvaluatorGallerySidebar.tsx
@@ -51,9 +51,7 @@ export function EvaluatorGallerySidebar({
aria-current={isActive ? "page" : undefined}
onClick={() => onSelectSection(item.key)}
>
- <Icon
- className={cn("mr-2 h-3.5 w-3.5 shrink-0", iconClassName)}
- />
+ <Icon className={cn("icon-base mr-2 shrink-0", iconClassName)} />
<span className="flex min-w-0 flex-1 items-baseline justify-between gap-3">
<span className="truncate" title={item.label}>
{item.label}
diff --git a/web/src/features/evals/v2/components/EvaluatorTestPanel/EvaluatorTestPanel.tsx b/web/src/features/evals/v2/components/EvaluatorTestPanel/EvaluatorTestPanel.tsx
index 99802781f3..4029c04d5c 100644
--- a/web/src/features/evals/v2/components/EvaluatorTestPanel/EvaluatorTestPanel.tsx
+++ b/web/src/features/evals/v2/components/EvaluatorTestPanel/EvaluatorTestPanel.tsx
@@ -19,7 +19,7 @@ export function EvaluatorTestPanel({
<div className="flex h-12 shrink-0 items-center justify-between border-b px-6">
{open ? (
<div className="flex items-center gap-2">
- <FlaskConical className="h-4 w-4" />
+ <FlaskConical className="icon-base" />
<h2 className="font-bold">Test with sample observations</h2>
</div>
) : null}
@@ -32,9 +32,9 @@ export function EvaluatorTestPanel({
onClick={() => onOpenChange(!open)}
>
{open ? (
- <PanelRightClose className="h-4 w-4" />
+ <PanelRightClose className="icon-base text-icon-foreground" />
) : (
- <PanelRightOpen className="h-4 w-4" />
+ <PanelRightOpen className="icon-base text-icon-foreground" />
)}
</Button>
</div>
diff --git a/web/src/features/evals/v2/components/Evaluators/Code/EvaluatorCodeLanguageSelector/EvaluatorCodeLanguageSelector.tsx b/web/src/features/evals/v2/components/Evaluators/Code/EvaluatorCodeLanguageSelector/EvaluatorCodeLanguageSelector.tsx
index 7eccec4a83..09b99a627e 100644
--- a/web/src/features/evals/v2/components/Evaluators/Code/EvaluatorCodeLanguageSelector/EvaluatorCodeLanguageSelector.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/Code/EvaluatorCodeLanguageSelector/EvaluatorCodeLanguageSelector.tsx
@@ -29,14 +29,14 @@ export function EvaluatorCodeLanguageSelector({
value={EvalTemplateSourceCodeLanguageEnum.PYTHON}
disabled={disabled}
>
- <SiPython className="h-3.5 w-3.5 shrink-0" />
+ <SiPython className="icon-base shrink-0" />
{sourceCodeLanguageLabel(EvalTemplateSourceCodeLanguageEnum.PYTHON)}
</Tabs.Trigger>
<Tabs.Trigger
value={EvalTemplateSourceCodeLanguageEnum.TYPESCRIPT}
disabled={disabled}
>
- <SiTypescript className="h-3.5 w-3.5 shrink-0" />
+ <SiTypescript className="icon-base shrink-0" />
{sourceCodeLanguageLabel(
EvalTemplateSourceCodeLanguageEnum.TYPESCRIPT,
)}
diff --git a/web/src/features/evals/v2/components/Evaluators/DecisionModel/ChoiceOptionsEditor/ChoiceOptionsEditor.tsx b/web/src/features/evals/v2/components/Evaluators/DecisionModel/ChoiceOptionsEditor/ChoiceOptionsEditor.tsx
index c2128ad73b..2c30ecbf16 100644
--- a/web/src/features/evals/v2/components/Evaluators/DecisionModel/ChoiceOptionsEditor/ChoiceOptionsEditor.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/DecisionModel/ChoiceOptionsEditor/ChoiceOptionsEditor.tsx
@@ -82,7 +82,7 @@ export function ChoiceOptionsEditor({
: `Keep at least ${DECISION_MODEL_LIMITS.minChoiceOptions} options`
}
>
- <Trash2 className="h-3.5 w-3.5" />
+ <Trash2 className="icon-sm" />
</Button>
</div>
)}
@@ -95,7 +95,7 @@ export function ChoiceOptionsEditor({
disabled={options.length >= DECISION_MODEL_LIMITS.maxChoiceOptions}
onClick={() => onChange([...options, { value: "", description: "" }])}
>
- <Plus className="mr-1 h-3.5 w-3.5" />
+ <Plus className="icon-base text-icon-foreground mr-1" />
Add option
</Button>
</div>
diff --git a/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelQuestionCard/DecisionModelQuestionCard.tsx b/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelQuestionCard/DecisionModelQuestionCard.tsx
index c40bc816e4..97476870ff 100644
--- a/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelQuestionCard/DecisionModelQuestionCard.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelQuestionCard/DecisionModelQuestionCard.tsx
@@ -112,7 +112,7 @@ export function DecisionModelQuestionCard({
<span className="text-muted-foreground shrink-0 font-mono text-xs">
{index + 1}
</span>
- <copy.icon className="h-4 w-4 shrink-0" aria-label={copy.label} />
+ <copy.icon className="icon-base shrink-0" aria-label={copy.label} />
<Badge
variant="secondary"
className={cn(
@@ -151,7 +151,7 @@ export function DecisionModelQuestionCard({
onRemove ? "Remove question" : "At least one question is required"
}
>
- <Trash2 className="h-3.5 w-3.5" />
+ <Trash2 className="icon-sm" />
</Button>
</span>
}
diff --git a/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelQuestionList/DecisionModelQuestionList.tsx b/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelQuestionList/DecisionModelQuestionList.tsx
index 67bea54c2f..cb2d3fd69b 100644
--- a/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelQuestionList/DecisionModelQuestionList.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelQuestionList/DecisionModelQuestionList.tsx
@@ -121,7 +121,7 @@ export function DecisionModelQuestionList({
size="sm"
onClick={() => onAddExample(type)}
>
- <Sparkles className="mr-1 h-3.5 w-3.5" />
+ <Sparkles className="icon-base text-icon-foreground mr-1" />
{copy.label}: “
{QUESTION_EXAMPLES[type].instructions.replace(/`/g, "")}”
</Button>
@@ -159,7 +159,7 @@ export function DecisionModelQuestionList({
<div className="flex flex-wrap items-center gap-3">
<Button type="button" variant="outline" size="sm" onClick={onAdd}>
- <Plus className="mr-1 h-3.5 w-3.5" />
+ <Plus className="icon-base text-icon-foreground mr-1" />
Add question
</Button>
<span className="text-muted-foreground text-xs">
diff --git a/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelQuestionSummary/DecisionModelQuestionSummary.tsx b/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelQuestionSummary/DecisionModelQuestionSummary.tsx
index 7dcdf3e9cb..f835b1f4c7 100644
--- a/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelQuestionSummary/DecisionModelQuestionSummary.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelQuestionSummary/DecisionModelQuestionSummary.tsx
@@ -79,7 +79,7 @@ export function DecisionModelQuestionSummary({
<span className="text-muted-foreground shrink-0 font-mono text-xs">
{index + 1}
</span>
- <copy.icon className="h-4 w-4 shrink-0" aria-label={copy.label} />
+ <copy.icon className="icon-base shrink-0" aria-label={copy.label} />
<Badge variant="secondary" className="shrink-0 font-mono">
{question.scoreName}
</Badge>
diff --git a/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelResultView/DecisionModelResultView.tsx b/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelResultView/DecisionModelResultView.tsx
index 0bc230fa0b..65801a86a1 100644
--- a/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelResultView/DecisionModelResultView.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelResultView/DecisionModelResultView.tsx
@@ -64,7 +64,7 @@ function LevelDescriptionTooltip({
className="text-muted-foreground focus-visible:ring-ring cursor-help rounded-sm focus-visible:ring-2 focus-visible:outline-none"
aria-label={`Level ${index} description`}
>
- <InfoIcon className="h-3.5 w-3.5" aria-hidden="true" />
+ <InfoIcon className="icon-base" aria-hidden="true" />
</TooltipTrigger>
<TooltipContent className="max-w-xs">{description}</TooltipContent>
</Tooltip>
@@ -254,7 +254,7 @@ function ResultRow({ result }: { result: DecisionModelQuestionResult }) {
<li className="flex flex-col gap-2 rounded-md border p-3">
<div className="flex flex-wrap items-center justify-between gap-2">
<span className="flex min-w-0 items-center gap-2 text-sm">
- <copy.icon className="h-4 w-4 shrink-0" aria-label={copy.label} />
+ <copy.icon className="icon-base shrink-0" aria-label={copy.label} />
<Badge variant="secondary" className="font-mono">
{result.scoreName}
</Badge>
diff --git a/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelStateEditor/DecisionModelStateEditor.tsx b/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelStateEditor/DecisionModelStateEditor.tsx
index d435ed6bd0..03f350fff4 100644
--- a/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelStateEditor/DecisionModelStateEditor.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/DecisionModel/DecisionModelStateEditor/DecisionModelStateEditor.tsx
@@ -123,7 +123,7 @@ export function DecisionModelStateEditor({
<div>
<Button type="button" variant="outline" size="sm" onClick={onAddField}>
- <Plus className="mr-1 h-3.5 w-3.5" />
+ <Plus className="icon-base text-icon-foreground mr-1" />
Add field
</Button>
</div>
@@ -144,7 +144,7 @@ export function DecisionModelStateEditor({
tooLarge && "text-dark-yellow flex items-center gap-1",
)}
>
- {tooLarge ? <TriangleAlert className="h-3.5 w-3.5" /> : null}
+ {tooLarge ? <TriangleAlert className="icon-base" /> : null}
{Object.keys(statePreview).length} field
{Object.keys(statePreview).length === 1 ? "" : "s"} ·{" "}
{stateSize.toLocaleString()} chars
@@ -158,7 +158,7 @@ export function DecisionModelStateEditor({
</span>
<ChevronDown
className={cn(
- "text-foreground-tertiary size-3.5 shrink-0 transition-transform",
+ "text-foreground-tertiary icon-base shrink-0 transition-transform",
previewOpen ? "rotate-180" : "rotate-0",
)}
/>
diff --git a/web/src/features/evals/v2/components/Evaluators/DecisionModel/NoulCriteriaEditor/NoulCriteriaEditor.tsx b/web/src/features/evals/v2/components/Evaluators/DecisionModel/NoulCriteriaEditor/NoulCriteriaEditor.tsx
index 00abd4ab2c..7854149173 100644
--- a/web/src/features/evals/v2/components/Evaluators/DecisionModel/NoulCriteriaEditor/NoulCriteriaEditor.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/DecisionModel/NoulCriteriaEditor/NoulCriteriaEditor.tsx
@@ -39,7 +39,7 @@ export function NoulCriteriaEditor({
</span>
<ChevronDown
className={cn(
- "text-foreground-tertiary ml-1 size-3.5 translate-y-px transition-transform",
+ "text-foreground-tertiary icon-base ml-1 translate-y-px transition-transform",
open ? "rotate-180" : "rotate-0",
)}
/>
diff --git a/web/src/features/evals/v2/components/Evaluators/DecisionModel/QuestionInstructionsField/QuestionInstructionsField.tsx b/web/src/features/evals/v2/components/Evaluators/DecisionModel/QuestionInstructionsField/QuestionInstructionsField.tsx
index a6232fe6d3..789ef976f6 100644
--- a/web/src/features/evals/v2/components/Evaluators/DecisionModel/QuestionInstructionsField/QuestionInstructionsField.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/DecisionModel/QuestionInstructionsField/QuestionInstructionsField.tsx
@@ -100,7 +100,7 @@ export function QuestionInstructionsField({
className="text-dark-yellow flex items-center gap-1 rounded border border-dashed px-1.5 py-0.5 font-mono"
title={`\`${key}\` is not a state field`}
>
- <TriangleAlert className="h-3 w-3" />
+ <TriangleAlert className="icon-sm" />
{key}
</span>
))}
diff --git a/web/src/features/evals/v2/components/Evaluators/DecisionModel/QuestionTypeSelector/QuestionTypeSelector.tsx b/web/src/features/evals/v2/components/Evaluators/DecisionModel/QuestionTypeSelector/QuestionTypeSelector.tsx
index af3748fb19..58430f7e45 100644
--- a/web/src/features/evals/v2/components/Evaluators/DecisionModel/QuestionTypeSelector/QuestionTypeSelector.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/DecisionModel/QuestionTypeSelector/QuestionTypeSelector.tsx
@@ -91,7 +91,7 @@ export function QuestionTypeSelector({
)}
>
<span className="flex items-center gap-1.5 font-bold">
- <copy.icon className="h-4 w-4 shrink-0" />
+ <copy.icon className="icon-base shrink-0" />
{copy.label}
</span>
<span className="text-muted-foreground">{copy.summary}</span>
diff --git a/web/src/features/evals/v2/components/Evaluators/DecisionModel/ScoreLevelsEditor/ScoreLevelsEditor.tsx b/web/src/features/evals/v2/components/Evaluators/DecisionModel/ScoreLevelsEditor/ScoreLevelsEditor.tsx
index 7b26b655eb..58dd22164e 100644
--- a/web/src/features/evals/v2/components/Evaluators/DecisionModel/ScoreLevelsEditor/ScoreLevelsEditor.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/DecisionModel/ScoreLevelsEditor/ScoreLevelsEditor.tsx
@@ -84,7 +84,7 @@ export function ScoreLevelsEditor({
: `Keep at least ${DECISION_MODEL_LIMITS.minScoreLevels} levels`
}
>
- <Trash2 className="h-3.5 w-3.5" />
+ <Trash2 className="icon-sm" />
</Button>
</div>
)}
@@ -97,7 +97,7 @@ export function ScoreLevelsEditor({
disabled={levels.length >= DECISION_MODEL_LIMITS.maxScoreLevels}
onClick={() => onChange([...levels, { description: "" }])}
>
- <Plus className="mr-1 h-3.5 w-3.5" />
+ <Plus className="icon-base text-icon-foreground mr-1" />
Add level
</Button>
<span className="text-muted-foreground text-xs">
diff --git a/web/src/features/evals/v2/components/Evaluators/EvaluationTypeConfiguration/components/EvaluationTypeToggle/EvaluationTypeToggle.tsx b/web/src/features/evals/v2/components/Evaluators/EvaluationTypeConfiguration/components/EvaluationTypeToggle/EvaluationTypeToggle.tsx
index 1a6fe59ef4..4c96032674 100644
--- a/web/src/features/evals/v2/components/Evaluators/EvaluationTypeConfiguration/components/EvaluationTypeToggle/EvaluationTypeToggle.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/EvaluationTypeConfiguration/components/EvaluationTypeToggle/EvaluationTypeToggle.tsx
@@ -56,7 +56,7 @@ export function EvaluationTypeToggle({
<SelectTrigger aria-label="Evaluation type">
<SelectValue>
<span className="flex min-w-0 items-center gap-2">
- <SelectedIcon className="h-4 w-4 shrink-0" />
+ <SelectedIcon className="icon-base shrink-0" />
<span className="truncate" title={selectedType.label}>
{selectedType.label}
</span>
@@ -67,7 +67,7 @@ export function EvaluationTypeToggle({
{visibleTypes.map(({ value: typeValue, label, icon: Icon }) => (
<SelectItem key={typeValue} value={typeValue}>
<span className="flex items-center gap-2">
- <Icon className="h-4 w-4 shrink-0" />
+ <Icon className="icon-base shrink-0" />
{label}
</span>
</SelectItem>
diff --git a/web/src/features/evals/v2/components/Evaluators/EvaluatorActionsCell/EvaluatorActionsCell.tsx b/web/src/features/evals/v2/components/Evaluators/EvaluatorActionsCell/EvaluatorActionsCell.tsx
index 39aac84093..42087bdc95 100644
--- a/web/src/features/evals/v2/components/Evaluators/EvaluatorActionsCell/EvaluatorActionsCell.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/EvaluatorActionsCell/EvaluatorActionsCell.tsx
@@ -43,7 +43,7 @@ export function EvaluatorActionsCell({
onClick={handlePrimaryAction}
>
View scores
- <SquarePercent className="ml-1 h-3.5 w-3.5" />
+ <SquarePercent className="icon-base ml-1" />
</Button>
<DropdownMenu
placement="bottom-end"
@@ -92,7 +92,7 @@ export function EvaluatorActionsCell({
{...getTriggerProps()}
>
<span className="sr-only">Open menu</span>
- <MoreVertical className="h-4 w-4" />
+ <MoreVertical className="icon-sm text-icon-foreground" />
</Button>
)}
</DropdownMenu>
diff --git a/web/src/features/evals/v2/components/Evaluators/EvaluatorAlertButton/EvaluatorAlertButton.tsx b/web/src/features/evals/v2/components/Evaluators/EvaluatorAlertButton/EvaluatorAlertButton.tsx
index b8bdc34a71..51c8b784d9 100644
--- a/web/src/features/evals/v2/components/Evaluators/EvaluatorAlertButton/EvaluatorAlertButton.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/EvaluatorAlertButton/EvaluatorAlertButton.tsx
@@ -152,7 +152,7 @@ export function EvaluatorAlertButton(props: EvaluatorAlertButtonProps) {
severity={alert.severity}
className="ml-auto w-auto shrink-0 px-2 py-0.5 text-[10px]"
/>
- <ArrowUpRight className="text-muted-foreground h-4 w-4 shrink-0" />
+ <ArrowUpRight className="text-muted-foreground icon-base shrink-0" />
</CommandItem>
))}
</div>
@@ -173,7 +173,7 @@ export function EvaluatorAlertButton(props: EvaluatorAlertButtonProps) {
}
>
<span>See all alerts</span>
- <ArrowUpRight className="text-muted-foreground ml-auto h-4 w-4 shrink-0" />
+ <ArrowUpRight className="text-muted-foreground icon-base ml-auto shrink-0" />
</CommandItem>
) : null}
</div>
@@ -216,7 +216,7 @@ export function EvaluatorAlertButton(props: EvaluatorAlertButtonProps) {
)
}
>
- <Gauge className="text-muted-foreground h-4 w-4" />
+ <Gauge className="icon-base text-muted-foreground" />
Score
</Button>
) : null}
@@ -235,7 +235,7 @@ export function EvaluatorAlertButton(props: EvaluatorAlertButtonProps) {
)
}
>
- <DollarSign className="text-muted-foreground h-4 w-4" />
+ <DollarSign className="icon-base text-muted-foreground" />
Cost
</Button>
) : null}
@@ -255,7 +255,7 @@ export function EvaluatorAlertButton(props: EvaluatorAlertButtonProps) {
)
}
>
- <Gauge className="text-muted-foreground" />
+ <Gauge className="icon-base text-muted-foreground" />
<div>
<p>Score threshold</p>
<p className="text-muted-foreground text-xs">
@@ -263,7 +263,7 @@ export function EvaluatorAlertButton(props: EvaluatorAlertButtonProps) {
threshold
</p>
</div>
- <ArrowUpRight className="text-muted-foreground ml-auto h-4 w-4 shrink-0" />
+ <ArrowUpRight className="text-muted-foreground icon-base ml-auto shrink-0" />
</CommandItem>
) : null}
{supportsCostAlert ? (
@@ -277,7 +277,7 @@ export function EvaluatorAlertButton(props: EvaluatorAlertButtonProps) {
)
}
>
- <DollarSign className="text-muted-foreground" />
+ <DollarSign className="icon-base text-muted-foreground" />
<div>
<p>Cost threshold</p>
<p className="text-muted-foreground text-xs">
@@ -286,7 +286,7 @@ export function EvaluatorAlertButton(props: EvaluatorAlertButtonProps) {
: "Alert on spend from running this evaluator"}
</p>
</div>
- <ArrowUpRight className="text-muted-foreground ml-auto h-4 w-4 shrink-0" />
+ <ArrowUpRight className="text-muted-foreground icon-base ml-auto shrink-0" />
</CommandItem>
) : null}
</CommandGroup>
@@ -316,13 +316,19 @@ export function EvaluatorAlertButton(props: EvaluatorAlertButtonProps) {
>
{isLoading ? (
<LoaderCircle
- className="mr-1 h-4 w-4 shrink-0 animate-spin"
+ className="icon-base text-icon-foreground mr-1 shrink-0 animate-spin"
aria-hidden="true"
/>
) : alertCount > 0 ? (
- <Bell className="mr-1 h-4 w-4 shrink-0" aria-hidden="true" />
+ <Bell
+ className="icon-base text-icon-foreground mr-1 shrink-0"
+ aria-hidden="true"
+ />
) : (
- <Plus className="mr-1 h-4 w-4 shrink-0" aria-hidden="true" />
+ <Plus
+ className="icon-base text-icon-foreground mr-1 shrink-0"
+ aria-hidden="true"
+ />
)}
<span className="flex-1 text-left">
{alertCount > 0 ? "Alerts" : "Add alert"}
diff --git a/web/src/features/evals/v2/components/Evaluators/EvaluatorBlockedBanner/EvaluatorBlockedBanner.tsx b/web/src/features/evals/v2/components/Evaluators/EvaluatorBlockedBanner/EvaluatorBlockedBanner.tsx
index dbe75e9156..f5ace2725c 100644
--- a/web/src/features/evals/v2/components/Evaluators/EvaluatorBlockedBanner/EvaluatorBlockedBanner.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/EvaluatorBlockedBanner/EvaluatorBlockedBanner.tsx
@@ -70,7 +70,7 @@ export function EvaluatorBlockedBanner({
className="border-light-yellow bg-light-yellow rounded-lg border"
>
<div className="flex gap-3 p-4">
- <AlertTriangle className="text-dark-yellow mt-0.5 h-4 w-4 shrink-0" />
+ <AlertTriangle className="text-dark-yellow icon-base mt-0.5 shrink-0" />
<div className="min-w-0 flex-1">
<h2 className="text-foreground text-base font-bold">
@@ -96,7 +96,7 @@ export function EvaluatorBlockedBanner({
<div className="mt-3 flex flex-wrap items-center gap-2">
<Button asChild variant="outline" size="sm" className="h-8 px-3">
<Link href={resolutionAction.href}>
- <ExternalLinkIcon className="mr-1.5 h-3.5 w-3.5" />
+ <ExternalLinkIcon className="icon-base text-icon-foreground mr-1.5" />
{resolutionAction.label}
</Link>
</Button>
@@ -110,7 +110,7 @@ export function EvaluatorBlockedBanner({
onClick={onReactivate}
className="h-8 px-3"
>
- <RefreshCcw className="mr-1.5 h-3.5 w-3.5" />
+ <RefreshCcw className="icon-base text-icon-foreground mr-1.5" />
Reactivate
</Button>
) : null}
diff --git a/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/components/PromptEditor/PromptEditor.tsx b/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/components/PromptEditor/PromptEditor.tsx
index a9b318e8de..3e963e4ac8 100644
--- a/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/components/PromptEditor/PromptEditor.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/components/PromptEditor/PromptEditor.tsx
@@ -202,7 +202,7 @@ export function PromptEditorContent({
});
}}
>
- <Plus className="h-3.5 w-3.5 shrink-0" />
+ <Plus className="icon-base text-icon-foreground shrink-0" />
Add message
</Button>
</div>
@@ -266,7 +266,7 @@ function SortablePromptMessage({
<Badge variant="tertiary" className="h-5 shrink-0 gap-1 leading-none">
{warningReason ? (
<TriangleAlert
- className="text-dark-yellow h-3.5 w-3.5"
+ className="icon-sm text-dark-yellow"
aria-label={
hasEmptyContent
? "Empty prompt message"
@@ -308,7 +308,7 @@ function SortablePromptMessage({
{...attributes}
{...listeners}
>
- <GripVertical className="h-3.5 w-3.5" />
+ <GripVertical className="icon-base" />
</button>
) : null}
<PromptVariableEditor
@@ -337,7 +337,7 @@ function SortablePromptMessage({
>
<ChevronDown
className={cn(
- "h-3.5 w-3.5 shrink-0 transition-transform",
+ "icon-sm text-icon-foreground shrink-0 transition-transform",
!expanded && "-translate-x-0.5 -rotate-90",
)}
/>
@@ -377,7 +377,7 @@ function SortablePromptMessage({
aria-label="Prompt message settings"
title="Prompt message settings"
>
- <MoreVertical className="h-3.5 w-3.5" />
+ <MoreVertical className="icon-sm text-icon-foreground" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-44">
@@ -399,7 +399,7 @@ function SortablePromptMessage({
>
<span className="flex-1">{role.label}</span>
{message.role === role.value ? (
- <Check className="h-3.5 w-3.5" />
+ <Check className="icon-base text-icon-foreground" />
) : null}
</DropdownMenuItem>
);
@@ -410,7 +410,7 @@ function SortablePromptMessage({
copy(message.content).catch(() => undefined);
}}
>
- <Copy className="mr-2 h-3.5 w-3.5" />
+ <Copy className="icon-base text-icon-foreground mr-2" />
Copy prompt
</DropdownMenuItem>
{messageCount > 1 ? (
@@ -418,7 +418,7 @@ function SortablePromptMessage({
className="text-destructive focus:text-destructive"
onSelect={onRemove}
>
- <Trash2 className="mr-2 h-3.5 w-3.5" />
+ <Trash2 className="icon-base mr-2" />
Delete message
</DropdownMenuItem>
) : null}
diff --git a/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupFooter/EvaluatorSetupFooterView.tsx b/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupFooter/EvaluatorSetupFooterView.tsx
index b194cf1f2a..8b7e07919d 100644
--- a/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupFooter/EvaluatorSetupFooterView.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupFooter/EvaluatorSetupFooterView.tsx
@@ -41,7 +41,7 @@ export function EvaluatorSetupFooterView(props: EvaluatorSetupFooterViewProps) {
>
{saveLabel}
{props.mode === "create" ? (
- <ArrowRight className="h-4 w-4 shrink-0" aria-hidden="true" />
+ <ArrowRight className="icon-base shrink-0" aria-hidden="true" />
) : null}
</Button>
);
diff --git a/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupLoadingPage/EvaluatorSetupLoadingState.tsx b/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupLoadingPage/EvaluatorSetupLoadingState.tsx
index c21b474b23..cea89b49e2 100644
--- a/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupLoadingPage/EvaluatorSetupLoadingState.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupLoadingPage/EvaluatorSetupLoadingState.tsx
@@ -47,7 +47,7 @@ export function EvaluatorSetupLoadingState({
<aside className="flex shrink-0 flex-col overflow-hidden border-t @3xl:min-h-0 @3xl:border-t-0 @3xl:border-l">
<div className="flex h-12 shrink-0 items-center justify-between border-b px-6">
<div className="flex items-center gap-2">
- <FlaskConical className="h-4 w-4" />
+ <FlaskConical className="icon-base" />
<h2 className="font-bold">Test with sample observations</h2>
</div>
<Button
@@ -57,7 +57,7 @@ export function EvaluatorSetupLoadingState({
disabled
aria-label="Collapse test panel"
>
- <PanelRightClose className="h-4 w-4" />
+ <PanelRightClose className="icon-base text-icon-foreground" />
</Button>
</div>
<div className="flex min-h-0 flex-1 flex-col gap-6 overflow-hidden p-6">
@@ -92,7 +92,7 @@ export function EvaluatorSetupLoadingState({
<Button type="button" disabled className="gap-1.5">
{isCreating ? "Create evaluator" : "Save changes"}
{isCreating ? (
- <ArrowRight className="h-4 w-4 shrink-0" aria-hidden="true" />
+ <ArrowRight className="icon-base shrink-0" aria-hidden="true" />
) : null}
</Button>
</div>
diff --git a/web/src/features/evals/v2/components/Evaluators/EvaluatorVersionHistorySheet/components/EvaluatorVersionHistoryList/EvaluatorVersionHistoryList.tsx b/web/src/features/evals/v2/components/Evaluators/EvaluatorVersionHistorySheet/components/EvaluatorVersionHistoryList/EvaluatorVersionHistoryList.tsx
index 92cca282e6..8c733e1d7c 100644
--- a/web/src/features/evals/v2/components/Evaluators/EvaluatorVersionHistorySheet/components/EvaluatorVersionHistoryList/EvaluatorVersionHistoryList.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/EvaluatorVersionHistorySheet/components/EvaluatorVersionHistoryList/EvaluatorVersionHistoryList.tsx
@@ -151,7 +151,7 @@ export function EvaluatorVersionHistoryList({
title={`Restore version ${version.version}`}
onClick={() => onRestoreVersion(version)}
>
- <RotateCcw className="h-3.5 w-3.5" />
+ <RotateCcw className="icon-sm text-icon-foreground" />
</Button>
</span>
)
diff --git a/web/src/features/evals/v2/components/Evaluators/JudgeModelPicker/JudgeModelPicker.tsx b/web/src/features/evals/v2/components/Evaluators/JudgeModelPicker/JudgeModelPicker.tsx
index 1e3f17a4bc..a9c68b9d10 100644
--- a/web/src/features/evals/v2/components/Evaluators/JudgeModelPicker/JudgeModelPicker.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/JudgeModelPicker/JudgeModelPicker.tsx
@@ -111,7 +111,7 @@ export const JudgeModelPickerTrigger = forwardRef<
<>
<TriangleAlert
aria-hidden="true"
- className="text-dark-yellow h-3.5 w-3.5 shrink-0"
+ className="text-dark-yellow icon-base shrink-0"
/>
<span className="sr-only">Model connection missing.</span>
</>
@@ -150,7 +150,7 @@ export const JudgeModelPickerTrigger = forwardRef<
</span>
) : (
<span className="flex items-center gap-1.5">
- <TriangleAlert className="text-dark-yellow h-3.5 w-3.5 shrink-0" />
+ <TriangleAlert className="icon-base text-dark-yellow shrink-0" />
<span className="text-muted-foreground">
{missingDefaultLabel ?? "Select a model"}
</span>
@@ -231,11 +231,11 @@ export function JudgeModelPicker(props: JudgeModelPickerProps) {
>
<Check
className={cn(
- "mr-2 h-4 w-4 shrink-0",
+ "icon-base mr-2 shrink-0",
props.mode === "default" ? "opacity-100" : "opacity-0",
)}
/>
- <Sparkles className="text-muted-foreground mr-2 h-4 w-4 shrink-0" />
+ <Sparkles className="text-muted-foreground icon-base mr-2 shrink-0" />
<span
className="truncate"
title={`${defaultModel.provider} / ${defaultModel.model}`}
@@ -277,7 +277,7 @@ export function JudgeModelPicker(props: JudgeModelPickerProps) {
>
<Check
className={cn(
- "mr-2 h-4 w-4 shrink-0",
+ "icon-base mr-2 shrink-0",
isSelected ? "opacity-100" : "opacity-0",
)}
/>
@@ -305,9 +305,9 @@ export function JudgeModelPicker(props: JudgeModelPickerProps) {
className="font-regular justify-start"
onClick={() => selectAndClose(onConfigureProviders)}
>
- <Plug className="text-muted-foreground mr-2 h-3.5 w-3.5" />
+ <Plug className="icon-base text-muted-foreground mr-2" />
Configure AI providers
- <ExternalLink className="text-muted-foreground ml-auto h-3.5 w-3.5" />
+ <ExternalLink className="icon-base text-muted-foreground ml-auto" />
</Button>
<Button
type="button"
@@ -320,7 +320,7 @@ export function JudgeModelPicker(props: JudgeModelPickerProps) {
}
onClick={() => selectAndClose(onConfigureModel)}
>
- <Settings2 className="text-muted-foreground mr-2 h-3.5 w-3.5" />
+ <Settings2 className="icon-base text-muted-foreground mr-2" />
Model configuration
{hasModelConfiguration ? (
<>
@@ -348,7 +348,7 @@ export function JudgeModelPicker(props: JudgeModelPickerProps) {
}
onClick={() => selectAndClose(props.onSetProjectDefault)}
>
- <Sparkles className="text-muted-foreground mr-2 h-3.5 w-3.5" />
+ <Sparkles className="icon-base text-muted-foreground mr-2" />
Set selected model as project default
</Button>
) : null}
diff --git a/web/src/features/evals/v2/components/Evaluators/Judges/PromptVariableEditor/PromptVariableEditor.stories.tsx b/web/src/features/evals/v2/components/Evaluators/Judges/PromptVariableEditor/PromptVariableEditor.stories.tsx
index a19a778ee5..f0cec05b4f 100644
--- a/web/src/features/evals/v2/components/Evaluators/Judges/PromptVariableEditor/PromptVariableEditor.stories.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/Judges/PromptVariableEditor/PromptVariableEditor.stories.tsx
@@ -113,7 +113,7 @@ export const MessageHeader = meta.story({
size="icon-xs"
className="shrink-0"
>
- <ChevronDown className="h-3.5 w-3.5 shrink-0" />
+ <ChevronDown className="icon-sm text-icon-foreground shrink-0" />
</Button>
<Badge variant="tertiary" className="h-5 shrink-0 leading-none">
User
@@ -127,7 +127,7 @@ export const MessageHeader = meta.story({
size="icon-xs"
aria-label="Prompt message settings"
>
- <MoreVertical className="h-3.5 w-3.5" />
+ <MoreVertical className="icon-sm text-icon-foreground" />
</Button>
),
},
@@ -150,7 +150,7 @@ export const CollapsedMessage = meta.story({
size="icon-xs"
className="shrink-0"
>
- <ChevronDown className="h-3.5 w-3.5 shrink-0 -translate-x-0.5 -rotate-90" />
+ <ChevronDown className="icon-sm text-icon-foreground shrink-0 -translate-x-0.5 -rotate-90" />
</Button>
<Badge variant="tertiary" className="h-5 shrink-0 leading-none">
User
@@ -167,7 +167,7 @@ export const CollapsedMessage = meta.story({
size="icon-xs"
aria-label="Prompt message settings"
>
- <MoreVertical className="h-3.5 w-3.5" />
+ <MoreVertical className="icon-sm text-icon-foreground" />
</Button>
),
},
diff --git a/web/src/features/evals/v2/components/Evaluators/Judges/ScoreOutputConfiguration/components/ScoreOutputDescriptionFields/ScoreOutputDescriptionFields.tsx b/web/src/features/evals/v2/components/Evaluators/Judges/ScoreOutputConfiguration/components/ScoreOutputDescriptionFields/ScoreOutputDescriptionFields.tsx
index 6f294fab11..d4e07866cf 100644
--- a/web/src/features/evals/v2/components/Evaluators/Judges/ScoreOutputConfiguration/components/ScoreOutputDescriptionFields/ScoreOutputDescriptionFields.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/Judges/ScoreOutputConfiguration/components/ScoreOutputDescriptionFields/ScoreOutputDescriptionFields.tsx
@@ -59,7 +59,7 @@ export function ScoreOutputDescriptionFields({
>
<ChevronDown
className={cn(
- "text-foreground-tertiary size-3.5 translate-y-px transition-transform",
+ "text-foreground-tertiary icon-base translate-y-px transition-transform",
!advancedOpen && "-rotate-90",
)}
/>
diff --git a/web/src/features/evals/v2/components/Evaluators/Judges/ScoreOutputConfiguration/components/ScoreOutputSection/ScoreOutputSection.tsx b/web/src/features/evals/v2/components/Evaluators/Judges/ScoreOutputConfiguration/components/ScoreOutputSection/ScoreOutputSection.tsx
index 85f80115f6..e734ced017 100644
--- a/web/src/features/evals/v2/components/Evaluators/Judges/ScoreOutputConfiguration/components/ScoreOutputSection/ScoreOutputSection.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/Judges/ScoreOutputConfiguration/components/ScoreOutputSection/ScoreOutputSection.tsx
@@ -313,11 +313,11 @@ export function ScoreOutputSection({
<Tooltip>
<TooltipTrigger asChild>
<span
- className="text-dark-yellow h-4 w-4 shrink-0"
+ className="text-dark-yellow inline-flex shrink-0"
aria-label={`Warning: ${categoryWarnings[index]}`}
>
<TriangleAlert
- className="h-4 w-4"
+ className="icon-base text-icon-foreground"
aria-hidden="true"
/>
</span>
@@ -356,7 +356,7 @@ export function ScoreOutputSection({
aria-label="Add category"
title="Add category"
>
- <Plus className="h-4 w-4" />
+ <Plus className="icon-base text-icon-foreground" />
</Button>
</PopoverTrigger>
</CategoryEditorPopover>
diff --git a/web/src/features/evals/v2/components/Evaluators/Judges/ScoreOutputConfiguration/components/ScoreOutputSection/components/CategoryEditorPopover/CategoryEditorPopover.tsx b/web/src/features/evals/v2/components/Evaluators/Judges/ScoreOutputConfiguration/components/ScoreOutputSection/components/CategoryEditorPopover/CategoryEditorPopover.tsx
index 0a4572301d..c146cfaa02 100644
--- a/web/src/features/evals/v2/components/Evaluators/Judges/ScoreOutputConfiguration/components/ScoreOutputSection/components/CategoryEditorPopover/CategoryEditorPopover.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/Judges/ScoreOutputConfiguration/components/ScoreOutputSection/components/CategoryEditorPopover/CategoryEditorPopover.tsx
@@ -73,7 +73,7 @@ export function CategoryEditorPopover({
aria-label="Delete category"
onClick={onDelete}
>
- <Trash2 className="mr-1.5 h-4 w-4" />
+ <Trash2 className="icon-base mr-1.5" />
Delete
</Button>
</PopoverClose>
diff --git a/web/src/features/evals/v2/components/Evaluators/ProjectDefaultModel/DefaultModelChangeConfirmationDialog.tsx b/web/src/features/evals/v2/components/Evaluators/ProjectDefaultModel/DefaultModelChangeConfirmationDialog.tsx
index f660066025..ee6c6e78da 100644
--- a/web/src/features/evals/v2/components/Evaluators/ProjectDefaultModel/DefaultModelChangeConfirmationDialog.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/ProjectDefaultModel/DefaultModelChangeConfirmationDialog.tsx
@@ -38,7 +38,7 @@ export function DefaultModelChangeConfirmationDialog({
>
{currentModel.provider} / {currentModel.model}
</span>
- <ArrowRight className="text-muted-foreground h-4 w-4 shrink-0" />
+ <ArrowRight className="text-muted-foreground icon-base shrink-0" />
</>
) : null}
<span
diff --git a/web/src/features/evals/v2/components/Evaluators/Testing/components/EvaluatorSampleObservationSelector/EvaluatorSampleObservationSelector.tsx b/web/src/features/evals/v2/components/Evaluators/Testing/components/EvaluatorSampleObservationSelector/EvaluatorSampleObservationSelector.tsx
index 6389357aae..b69ed5a1a6 100644
--- a/web/src/features/evals/v2/components/Evaluators/Testing/components/EvaluatorSampleObservationSelector/EvaluatorSampleObservationSelector.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/Testing/components/EvaluatorSampleObservationSelector/EvaluatorSampleObservationSelector.tsx
@@ -53,7 +53,7 @@ export function EvaluatorSampleObservationSelector({
id: "sample",
header: () => (
<div className="flex w-full justify-center">
- <Star aria-hidden="true" className="h-4 w-4" />
+ <Star aria-hidden="true" className="icon-base" />
<span className="sr-only">Sample</span>
</div>
),
diff --git a/web/src/features/evals/v2/components/Evaluators/Testing/components/SampleObservationSelectorBase/SampleObservationSelectorBase.tsx b/web/src/features/evals/v2/components/Evaluators/Testing/components/SampleObservationSelectorBase/SampleObservationSelectorBase.tsx
index 33113fd5ec..1b05d4409e 100644
--- a/web/src/features/evals/v2/components/Evaluators/Testing/components/SampleObservationSelectorBase/SampleObservationSelectorBase.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/Testing/components/SampleObservationSelectorBase/SampleObservationSelectorBase.tsx
@@ -555,7 +555,7 @@ export function SampleObservationSelectorBase(
);
}}
>
- <example.icon className="h-4 w-4" />
+ <example.icon className="icon-base" />
<span>{example.label}</span>
</Button>
))}
diff --git a/web/src/features/evals/v2/components/Evaluators/Testing/components/TestRerunButton/TestRerunButton.tsx b/web/src/features/evals/v2/components/Evaluators/Testing/components/TestRerunButton/TestRerunButton.tsx
index f77c9045d7..a1b2de5b86 100644
--- a/web/src/features/evals/v2/components/Evaluators/Testing/components/TestRerunButton/TestRerunButton.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/Testing/components/TestRerunButton/TestRerunButton.tsx
@@ -21,7 +21,7 @@ export function TestRerunButton({
title={disabledReason ?? "Run the test again"}
onClick={onRerun}
>
- <Play className="mr-1.5 h-3.5 w-3.5" />
+ <Play className="icon-base text-icon-foreground mr-1.5" />
Run again
</Button>
);
diff --git a/web/src/features/evals/v2/components/Evaluators/Testing/components/TestResultPanelView/TestResultPanelView.tsx b/web/src/features/evals/v2/components/Evaluators/Testing/components/TestResultPanelView/TestResultPanelView.tsx
index 7f72adb5a6..fd107a60e3 100644
--- a/web/src/features/evals/v2/components/Evaluators/Testing/components/TestResultPanelView/TestResultPanelView.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/Testing/components/TestResultPanelView/TestResultPanelView.tsx
@@ -49,7 +49,7 @@ function ResultStat({
className="text-muted-foreground flex -translate-y-px items-center gap-1 font-mono text-xs leading-none tabular-nums"
title={title}
>
- <Icon className="h-3 w-3" />
+ <Icon className="icon-sm" />
<span className="translate-y-0.5">{children}</span>
</span>
);
diff --git a/web/src/features/evals/v2/components/Evaluators/Testing/components/TestResultTraceActions/TestResultTraceActions.tsx b/web/src/features/evals/v2/components/Evaluators/Testing/components/TestResultTraceActions/TestResultTraceActions.tsx
index a7e21fa93f..048c2bdf5a 100644
--- a/web/src/features/evals/v2/components/Evaluators/Testing/components/TestResultTraceActions/TestResultTraceActions.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/Testing/components/TestResultTraceActions/TestResultTraceActions.tsx
@@ -21,7 +21,7 @@ export const TestResultTraceActionsTrigger = forwardRef<
size="icon-xs"
title={title}
>
- <MoreVertical className="h-3.5 w-3.5" />
+ <MoreVertical className="icon-sm text-icon-foreground" />
</Button>
);
});
@@ -46,7 +46,7 @@ export function TestResultTraceActions({
<DropdownMenuContent align="end">
{openExecutionTrace ? (
<DropdownMenuItem onClick={openExecutionTrace}>
- <ExternalLink className="mr-2 h-3.5 w-3.5" />
+ <ExternalLink className="icon-base text-icon-foreground mr-2" />
Open execution trace
</DropdownMenuItem>
) : null}
diff --git a/web/src/features/evals/v2/components/Evaluators/Testing/components/TestRunButton/TestRunButton.tsx b/web/src/features/evals/v2/components/Evaluators/Testing/components/TestRunButton/TestRunButton.tsx
index 2aecded799..e64b767c88 100644
--- a/web/src/features/evals/v2/components/Evaluators/Testing/components/TestRunButton/TestRunButton.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/Testing/components/TestRunButton/TestRunButton.tsx
@@ -30,7 +30,7 @@ export function TestRunButton({
className={disabledReason ? "pointer-events-none" : undefined}
onClick={onRun}
>
- <Play className="mr-1.5 h-3.5 w-3.5" />
+ <Play className="icon-base text-icon-foreground mr-1.5" />
Run test on this sample
</Button>
);
diff --git a/web/src/features/evals/v2/components/EvaluatorsEmptyState/components/EvaluatorsEmptyStateView/EvaluatorsEmptyStateView.tsx b/web/src/features/evals/v2/components/EvaluatorsEmptyState/components/EvaluatorsEmptyStateView/EvaluatorsEmptyStateView.tsx
index dfc074341a..e47a410428 100644
--- a/web/src/features/evals/v2/components/EvaluatorsEmptyState/components/EvaluatorsEmptyStateView/EvaluatorsEmptyStateView.tsx
+++ b/web/src/features/evals/v2/components/EvaluatorsEmptyState/components/EvaluatorsEmptyStateView/EvaluatorsEmptyStateView.tsx
@@ -57,7 +57,7 @@ function DetectTopicsStartingPointCard({
"pointer-events-auto relative shrink-0 gap-1 px-2 text-xs",
)}
>
- <BotMessageSquare className="h-3 w-3" />
+ <BotMessageSquare className="icon-base text-icon-foreground" />
Set up with AI
</Button>
</div>
@@ -83,7 +83,7 @@ function BrowseLibraryCard({
<EvaluatorRecommendedCardSurface>
<EvaluatorRecommendedCardContent
icon={
- <LayoutGrid className="text-muted-foreground h-4 w-4 shrink-0" />
+ <LayoutGrid className="text-muted-foreground icon-base shrink-0" />
}
badge={
<span className="bg-muted text-muted-foreground inline-flex shrink-0 items-center rounded-full px-2 py-0.5 text-xs">
diff --git a/web/src/features/evals/v2/components/OverviewSelectionBar/OverviewSelectionBar.stories.tsx b/web/src/features/evals/v2/components/OverviewSelectionBar/OverviewSelectionBar.stories.tsx
index 27bd86f711..59d10a44d3 100644
--- a/web/src/features/evals/v2/components/OverviewSelectionBar/OverviewSelectionBar.stories.tsx
+++ b/web/src/features/evals/v2/components/OverviewSelectionBar/OverviewSelectionBar.stories.tsx
@@ -13,7 +13,7 @@ export const Default = meta.story({
onClear: fn(),
children: (
<Button type="button" variant="outline" size="sm" className="h-8">
- <Trash2 className="h-4 w-4 sm:mr-2" />
+ <Trash2 className="icon-base text-icon-foreground sm:mr-2" />
<span className="hidden sm:inline">Delete</span>
</Button>
),
diff --git a/web/src/features/evals/v2/components/OverviewSelectionBar/OverviewSelectionBar.tsx b/web/src/features/evals/v2/components/OverviewSelectionBar/OverviewSelectionBar.tsx
index 212f80110f..8db4253c49 100644
--- a/web/src/features/evals/v2/components/OverviewSelectionBar/OverviewSelectionBar.tsx
+++ b/web/src/features/evals/v2/components/OverviewSelectionBar/OverviewSelectionBar.tsx
@@ -27,7 +27,7 @@ export function OverviewSelectionBar({
aria-label="Clear selection"
onClick={onClear}
>
- <X className="h-4 w-4" />
+ <X className="icon-base text-icon-foreground" />
</Button>
<div className="bg-border h-5 w-px" />
<div className="flex items-center gap-2">{children}</div>
diff --git a/web/src/features/evals/v2/components/Rules/EvaluationRuleAttachmentValidationAlert/EvaluationRuleAttachmentValidationAlert.tsx b/web/src/features/evals/v2/components/Rules/EvaluationRuleAttachmentValidationAlert/EvaluationRuleAttachmentValidationAlert.tsx
index 192a9b7074..ae4cea53e3 100644
--- a/web/src/features/evals/v2/components/Rules/EvaluationRuleAttachmentValidationAlert/EvaluationRuleAttachmentValidationAlert.tsx
+++ b/web/src/features/evals/v2/components/Rules/EvaluationRuleAttachmentValidationAlert/EvaluationRuleAttachmentValidationAlert.tsx
@@ -23,7 +23,7 @@ export function EvaluationRuleAttachmentValidationAlert({
aria-label="Dismiss validation warning"
onClick={onDismiss}
>
- <X className="size-4 stroke-current" aria-hidden="true" />
+ <X className="icon-base stroke-current" aria-hidden="true" />
</button>
<Alert.Title>Review evaluator variable mapping</Alert.Title>
<Alert.Description>
diff --git a/web/src/features/evals/v2/components/Rules/EvaluationRulePicker/EvaluationRulePicker.tsx b/web/src/features/evals/v2/components/Rules/EvaluationRulePicker/EvaluationRulePicker.tsx
index 2507fc6871..8d9d0d91e0 100644
--- a/web/src/features/evals/v2/components/Rules/EvaluationRulePicker/EvaluationRulePicker.tsx
+++ b/web/src/features/evals/v2/components/Rules/EvaluationRulePicker/EvaluationRulePicker.tsx
@@ -147,7 +147,7 @@ export function EvaluationRulePicker<Rule extends EvaluationRule>({
value="create new rule"
onSelect={() => select(onCreateRule)}
>
- <Plus className="h-4 w-4" />
+ <Plus className="icon-base" />
Create a new rule
</CommandItem>
</CommandGroup>
@@ -162,7 +162,7 @@ export function EvaluationRulePicker<Rule extends EvaluationRule>({
title={reason}
className="py-2.5"
>
- <Check className="h-4 w-4 shrink-0" />
+ <Check className="icon-base shrink-0" />
<EvaluationRulePickerOption rule={rule} />
</CommandItem>
))}
@@ -179,7 +179,7 @@ export function EvaluationRulePicker<Rule extends EvaluationRule>({
className="py-2.5"
onSelect={() => select(() => onSelectAvailableRule(rule))}
>
- <Plus className="h-4 w-4 shrink-0" />
+ <Plus className="icon-base shrink-0" />
<EvaluationRulePickerOption rule={rule} />
</CommandItem>
))
diff --git a/web/src/features/evals/v2/components/Rules/EvaluatorAssignmentsEditor/EvaluatorAssignmentsEditor.tsx b/web/src/features/evals/v2/components/Rules/EvaluatorAssignmentsEditor/EvaluatorAssignmentsEditor.tsx
index f16a584c6d..938605737f 100644
--- a/web/src/features/evals/v2/components/Rules/EvaluatorAssignmentsEditor/EvaluatorAssignmentsEditor.tsx
+++ b/web/src/features/evals/v2/components/Rules/EvaluatorAssignmentsEditor/EvaluatorAssignmentsEditor.tsx
@@ -92,7 +92,7 @@ export function EvaluatorAssignmentsEditor({
className="border-border hover:bg-muted/50 focus-visible:ring-ring flex w-full flex-col items-center justify-center gap-1 rounded-md border border-dashed px-4 py-6 text-center transition-colors focus-visible:ring-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50"
>
<span className="flex items-center gap-2 text-sm font-bold">
- <Link2 className="h-4 w-4" />
+ <Link2 className="icon-base" />
{emptyActionLabel}
</span>
<span className="text-muted-foreground text-sm font-normal">
@@ -110,7 +110,10 @@ export function EvaluatorAssignmentsEditor({
pickerWidth === "trigger" && "w-full justify-start",
)}
>
- <Plus className="size-3.5 shrink-0" aria-hidden="true" />
+ <Plus
+ className="icon-base text-icon-foreground shrink-0"
+ aria-hidden="true"
+ />
{additionalActionLabel}
</Button>
)}
@@ -141,7 +144,7 @@ export function EvaluatorAssignmentsEditor({
disabled
className="py-2.5"
>
- <Check className="h-4 w-4 shrink-0" />
+ <Check className="icon-base shrink-0" />
<EvaluatorPickerOption evaluator={evaluator} />
</CommandItem>
))}
@@ -167,7 +170,7 @@ export function EvaluatorAssignmentsEditor({
setPickerOpen(false);
}}
>
- <Plus className="h-4 w-4 shrink-0" />
+ <Plus className="icon-base shrink-0" />
<EvaluatorPickerOption evaluator={evaluator} />
</CommandItem>
))}
diff --git a/web/src/features/evals/v2/components/Rules/EvaluatorMappingRow/EvaluatorMappingRow.tsx b/web/src/features/evals/v2/components/Rules/EvaluatorMappingRow/EvaluatorMappingRow.tsx
index 49c6bac173..7f37cf4a0a 100644
--- a/web/src/features/evals/v2/components/Rules/EvaluatorMappingRow/EvaluatorMappingRow.tsx
+++ b/web/src/features/evals/v2/components/Rules/EvaluatorMappingRow/EvaluatorMappingRow.tsx
@@ -114,7 +114,7 @@ export const EvaluatorMappingRow = memo(function EvaluatorMappingRow({
className="min-w-0 flex-1 justify-start gap-2 px-0 hover:bg-transparent"
>
<ChevronDown
- className={`text-foreground-tertiary size-3.5 shrink-0 translate-y-px transition-transform ${open ? "" : "-rotate-90"}`}
+ className={`text-foreground-tertiary icon-base shrink-0 translate-y-px transition-transform ${open ? "" : "-rotate-90"}`}
/>
<span className="flex min-w-0 items-baseline gap-2">
<span className="truncate" title={evaluatorName}>
@@ -126,15 +126,18 @@ export const EvaluatorMappingRow = memo(function EvaluatorMappingRow({
{allVariablesMapped ? (
<Check
aria-label="All variables mapped"
- className="text-dark-green h-3.5 w-3.5"
+ className="icon-base text-dark-green"
/>
) : hasInvalidMappings ? (
<span
aria-label="Some variables are not mapped correctly"
title="Some variables are not mapped correctly"
- className="text-dark-yellow h-3.5 w-3.5"
+ className="text-dark-yellow inline-flex shrink-0"
>
- <TriangleAlert className="h-3.5 w-3.5" aria-hidden />
+ <TriangleAlert
+ className="icon-base text-icon-foreground"
+ aria-hidden
+ />
</span>
) : null}
</span>
@@ -152,7 +155,7 @@ export const EvaluatorMappingRow = memo(function EvaluatorMappingRow({
disabled={disabled}
onClick={() => detachEvaluator(evaluatorId)}
>
- <Unlink className="h-3.5 w-3.5" />
+ <Unlink className="icon-base text-icon-foreground" />
Disconnect
</Button>
</div>
diff --git a/web/src/features/evals/v2/components/Rules/EvaluatorRuleRelationships/EvaluatorRuleRelationships.tsx b/web/src/features/evals/v2/components/Rules/EvaluatorRuleRelationships/EvaluatorRuleRelationships.tsx
index 14eee15869..e9f1370a3c 100644
--- a/web/src/features/evals/v2/components/Rules/EvaluatorRuleRelationships/EvaluatorRuleRelationships.tsx
+++ b/web/src/features/evals/v2/components/Rules/EvaluatorRuleRelationships/EvaluatorRuleRelationships.tsx
@@ -268,7 +268,7 @@ function EvaluatorRuleRelationshipsSheet({
})
}
>
- <Unlink className="h-3.5 w-3.5" />
+ <Unlink className="icon-base text-icon-foreground" />
Disconnect
</Button>
</li>
@@ -340,7 +340,7 @@ function EvaluatorRuleRelationshipsSheet({
disabled={!hasWriteAccess}
>
<span className="flex items-center gap-2 text-sm font-bold">
- <Link2 className="h-4 w-4" />
+ <Link2 className="icon-base" />
Attach to rule
</span>
<span className="text-muted-foreground text-sm font-normal">
@@ -355,7 +355,7 @@ function EvaluatorRuleRelationshipsSheet({
className="text-foreground hover:text-foreground h-auto w-full justify-start px-0 py-0 text-xs underline-offset-4 hover:bg-transparent hover:underline"
disabled={!hasWriteAccess}
>
- <Plus className="mr-1.5 h-3.5 w-3.5" />
+ <Plus className="icon-base text-icon-foreground mr-1.5" />
Attach another rule
</Button>
)}
diff --git a/web/src/features/evals/v2/components/Rules/EvaluatorRuleRelationships/RuleRelationshipButton.tsx b/web/src/features/evals/v2/components/Rules/EvaluatorRuleRelationships/RuleRelationshipButton.tsx
index b74255719e..f92c13c7f4 100644
--- a/web/src/features/evals/v2/components/Rules/EvaluatorRuleRelationships/RuleRelationshipButton.tsx
+++ b/web/src/features/evals/v2/components/Rules/EvaluatorRuleRelationships/RuleRelationshipButton.tsx
@@ -30,7 +30,7 @@ export function RuleRelationshipButton({
}
onClick={onClick}
>
- <ListTree className="mr-2 h-4 w-4" />
+ <ListTree className="icon-base text-icon-foreground mr-2" />
Rules
{shouldCallAttention ? (
<span
diff --git a/web/src/features/evals/v2/components/Rules/RulesTable/RulesTable.tsx b/web/src/features/evals/v2/components/Rules/RulesTable/RulesTable.tsx
index 4086e35b67..af1676aed9 100644
--- a/web/src/features/evals/v2/components/Rules/RulesTable/RulesTable.tsx
+++ b/web/src/features/evals/v2/components/Rules/RulesTable/RulesTable.tsx
@@ -392,7 +392,7 @@ export function RulesTable({
router.push(ruleExecutionsUrl(projectId, row.original.id));
}}
>
- View traces <ExternalLink className="ml-1 h-3.5 w-3.5" />
+ View traces <ExternalLink className="icon-base ml-1" />
</Button>
<DropdownMenu
placement="bottom-end"
@@ -439,7 +439,7 @@ export function RulesTable({
aria-label={`Actions for ${row.original.name}`}
{...getTriggerProps()}
>
- <MoreVertical className="h-4 w-4" />
+ <MoreVertical className="icon-sm text-icon-foreground" />
</Button>
)}
</DropdownMenu>
diff --git a/web/src/features/evals/v2/components/Rules/RulesTable/components/RulesOverviewSelectionBar/RulesOverviewSelectionBarView.tsx b/web/src/features/evals/v2/components/Rules/RulesTable/components/RulesOverviewSelectionBar/RulesOverviewSelectionBarView.tsx
index 2e336874f7..c2b3eebf79 100644
--- a/web/src/features/evals/v2/components/Rules/RulesTable/components/RulesOverviewSelectionBar/RulesOverviewSelectionBarView.tsx
+++ b/web/src/features/evals/v2/components/Rules/RulesTable/components/RulesOverviewSelectionBar/RulesOverviewSelectionBarView.tsx
@@ -38,7 +38,7 @@ export function RulesOverviewSelectionBarView({
disabled={!hasWriteAccess || statusChangePending}
onClick={onEnable}
>
- <Play className="mr-2 h-4 w-4" /> Enable
+ <Play className="icon-base text-icon-foreground mr-2" /> Enable
</Button>
<Button
type="button"
@@ -47,7 +47,7 @@ export function RulesOverviewSelectionBarView({
disabled={!hasWriteAccess || statusChangePending}
onClick={onDisable}
>
- <Pause className="mr-2 h-4 w-4" /> Disable
+ <Pause className="icon-base text-icon-foreground mr-2" /> Disable
</Button>
<Button
type="button"
@@ -56,7 +56,7 @@ export function RulesOverviewSelectionBarView({
disabled={!hasWriteAccess}
onClick={onDelete}
>
- <Trash2 className="mr-2 h-4 w-4" /> Delete
+ <Trash2 className="icon-base text-icon-foreground mr-2" /> Delete
</Button>
</OverviewSelectionBar>
<ConfirmDialog
diff --git a/web/src/features/evals/v2/components/SortableList/SortableList.tsx b/web/src/features/evals/v2/components/SortableList/SortableList.tsx
index 7a1ed141b4..5c8b5040f7 100644
--- a/web/src/features/evals/v2/components/SortableList/SortableList.tsx
+++ b/web/src/features/evals/v2/components/SortableList/SortableList.tsx
@@ -65,7 +65,7 @@ function SortableRow({
{...attributes}
{...listeners}
>
- <GripVertical className="h-3.5 w-3.5" />
+ <GripVertical className="icon-base" />
</button>
<div className="min-w-0">{children}</div>
</li>
diff --git a/web/src/features/evals/v2/components/Stepper/Stepper.tsx b/web/src/features/evals/v2/components/Stepper/Stepper.tsx
index 6c7017b901..eb682db1ab 100644
--- a/web/src/features/evals/v2/components/Stepper/Stepper.tsx
+++ b/web/src/features/evals/v2/components/Stepper/Stepper.tsx
@@ -62,7 +62,7 @@ export function Stepper({
>
<ChevronDown
className={cn(
- "text-foreground-tertiary size-3.5 shrink-0 translate-y-px transition-transform",
+ "text-foreground-tertiary icon-base shrink-0 translate-y-px transition-transform",
!expanded && "-rotate-90",
)}
/>
diff --git a/web/src/features/evals/v2/components/VariableMapping/VariableMapping.tsx b/web/src/features/evals/v2/components/VariableMapping/VariableMapping.tsx
index 633e4eafd3..c3f47ebc41 100644
--- a/web/src/features/evals/v2/components/VariableMapping/VariableMapping.tsx
+++ b/web/src/features/evals/v2/components/VariableMapping/VariableMapping.tsx
@@ -61,7 +61,7 @@ function EmptyVariableMapping({ mode }: Pick<VariableMappingProps, "mode">) {
return (
<div className="border-border bg-muted/20 flex flex-col items-center justify-center gap-2 rounded-md border px-6 py-8 text-center">
<div className="bg-muted text-muted-foreground flex size-9 items-center justify-center rounded-full">
- <Braces className="size-4" aria-hidden />
+ <Braces className="icon-base" aria-hidden />
</div>
<div className="space-y-1">
<p className="text-sm font-bold">No variables to map</p>
diff --git a/web/src/features/evals/v2/components/VariableMapping/components/EditableVariableMapping/EditableVariableMapping.tsx b/web/src/features/evals/v2/components/VariableMapping/components/EditableVariableMapping/EditableVariableMapping.tsx
index 06c22dd066..000a9005bd 100644
--- a/web/src/features/evals/v2/components/VariableMapping/components/EditableVariableMapping/EditableVariableMapping.tsx
+++ b/web/src/features/evals/v2/components/VariableMapping/components/EditableVariableMapping/EditableVariableMapping.tsx
@@ -382,7 +382,7 @@ function VariableMappingRow({
>
{unmapped ? (
<div className="text-dark-yellow flex w-full items-start gap-1.5 p-3 text-left text-sm">
- <TriangleAlert className="mt-0.5 h-4 w-4 shrink-0" />
+ <TriangleAlert className="icon-base mt-0.5 shrink-0" />
{`{{${variable}}} is not mapped yet — click to choose the data it pulls in.`}
</div>
) : !sourceObject ? (
@@ -396,7 +396,7 @@ function VariableMappingRow({
</p>
) : extracted?.error ? (
<div className="text-dark-yellow flex items-start gap-1.5 p-3 text-sm">
- <TriangleAlert className="mt-0.5 h-4 w-4 shrink-0" />
+ <TriangleAlert className="icon-base mt-0.5 shrink-0" />
{extracted.error}
</div>
) : !extracted?.value ? (
diff --git a/web/src/features/evals/v2/components/VariableMapping/components/JsonPathEditor/JsonPathEditor.tsx b/web/src/features/evals/v2/components/VariableMapping/components/JsonPathEditor/JsonPathEditor.tsx
index f84e444d93..307f9f49d1 100644
--- a/web/src/features/evals/v2/components/VariableMapping/components/JsonPathEditor/JsonPathEditor.tsx
+++ b/web/src/features/evals/v2/components/VariableMapping/components/JsonPathEditor/JsonPathEditor.tsx
@@ -61,7 +61,7 @@ export function JsonPathEditor({
title="Apply JSONPath"
onClick={() => apply(query)}
>
- <Check className="h-3.5 w-3.5" />
+ <Check className="icon-sm text-icon-foreground" />
</Button>
<Button
type="button"
@@ -70,7 +70,7 @@ export function JsonPathEditor({
title="Cancel"
onClick={onCancel}
>
- <X className="h-3.5 w-3.5" />
+ <X className="icon-sm text-icon-foreground" />
</Button>
</div>
<CommandList>
diff --git a/web/src/features/evals/v2/components/VariableMapping/components/SampleDataTreeSelector/SampleDataTreeSelector.tsx b/web/src/features/evals/v2/components/VariableMapping/components/SampleDataTreeSelector/SampleDataTreeSelector.tsx
index 292669e702..f2c23bda67 100644
--- a/web/src/features/evals/v2/components/VariableMapping/components/SampleDataTreeSelector/SampleDataTreeSelector.tsx
+++ b/web/src/features/evals/v2/components/VariableMapping/components/SampleDataTreeSelector/SampleDataTreeSelector.tsx
@@ -194,7 +194,7 @@ function TreeRow({
{expandable ? (
<ChevronDown
className={cn(
- "text-muted-foreground h-3.5 w-3.5 shrink-0 self-center transition-transform",
+ "text-muted-foreground icon-base shrink-0 self-center transition-transform",
!isOpen && "-rotate-90",
)}
/>
diff --git a/web/src/features/evals/v2/components/VariableMapping/components/VariableMappingBinding/VariableMappingBinding.tsx b/web/src/features/evals/v2/components/VariableMapping/components/VariableMappingBinding/VariableMappingBinding.tsx
index 9a64b2f68d..3d425c65bf 100644
--- a/web/src/features/evals/v2/components/VariableMapping/components/VariableMappingBinding/VariableMappingBinding.tsx
+++ b/web/src/features/evals/v2/components/VariableMapping/components/VariableMappingBinding/VariableMappingBinding.tsx
@@ -40,7 +40,7 @@ export function VariableMappingBinding({
index === pathLabels.length - 1 && "shrink-0",
)}
>
- <ChevronRight className="text-muted-foreground h-3 w-3 shrink-0 self-center" />
+ <ChevronRight className="text-muted-foreground icon-sm shrink-0 self-center" />
<span
className="relative top-px max-w-40 truncate font-mono text-sm"
title={label === "..." ? fullPath : label}
@@ -76,7 +76,7 @@ export function VariableMappingBinding({
<span className="min-w-0 overflow-hidden whitespace-nowrap">
{columnLabel}
</span>
- <ChevronRight className="text-muted-foreground h-3 w-3 shrink-0 self-center" />
+ <ChevronRight className="text-muted-foreground icon-sm shrink-0 self-center" />
<span className="shrink-0">...</span>
</span>
<span
diff --git a/web/src/features/evals/v2/components/VariableMapping/components/VariableMappingCardShell.tsx b/web/src/features/evals/v2/components/VariableMapping/components/VariableMappingCardShell.tsx
index 5f3c57ebe6..abf5f96c5a 100644
--- a/web/src/features/evals/v2/components/VariableMapping/components/VariableMappingCardShell.tsx
+++ b/web/src/features/evals/v2/components/VariableMapping/components/VariableMappingCardShell.tsx
@@ -40,7 +40,7 @@ function VariableMappingCardHeaderContent({
</span>
{isUnmapped ? (
<span className="text-dark-yellow flex min-w-0 items-center gap-1.5 font-bold">
- <TriangleAlert className="h-4 w-4 shrink-0" />
+ <TriangleAlert className="icon-base shrink-0" />
<span>nothing yet</span>
</span>
) : (
@@ -52,7 +52,7 @@ function VariableMappingCardHeaderContent({
aria-label={`Warning: ${warningMessage}`}
title={warningMessage}
>
- <TriangleAlert className="h-4 w-4" aria-hidden="true" />
+ <TriangleAlert className="icon-base" aria-hidden="true" />
</span>
) : null}
</span>
@@ -143,7 +143,7 @@ function VariableMappingCardShell({
title={`Rename ${variable}`}
onClick={() => rename.onRenamingChange(true)}
>
- <TextCursorInput className="h-3.5 w-3.5" />
+ <TextCursorInput className="icon-sm text-icon-foreground" />
</Button>
) : null}
<Button
@@ -160,9 +160,9 @@ function VariableMappingCardShell({
onClick={() => onEditingChange(!isEditing)}
>
{isEditing ? (
- <X className="h-3.5 w-3.5" />
+ <X className="icon-sm text-icon-foreground" />
) : (
- <Pencil className="h-3.5 w-3.5" />
+ <Pencil className="icon-sm text-icon-foreground" />
)}
</Button>
{onDelete ? (
@@ -178,7 +178,7 @@ function VariableMappingCardShell({
}
onClick={onDelete}
>
- <Trash2 className="h-3.5 w-3.5" />
+ <Trash2 className="icon-sm" />
</Button>
) : null}
</span>
diff --git a/web/src/features/evals/v2/pages/EvaluatorSetupPage.tsx b/web/src/features/evals/v2/pages/EvaluatorSetupPage.tsx
index a81fd9699c..ac45529048 100644
--- a/web/src/features/evals/v2/pages/EvaluatorSetupPage.tsx
+++ b/web/src/features/evals/v2/pages/EvaluatorSetupPage.tsx
@@ -860,7 +860,7 @@ export function EvaluatorSetupPage(
setHistoryOpen(true);
}}
>
- <History className="mr-2 h-4 w-4" />
+ <History className="icon-base text-icon-foreground mr-2" />
Version history
</Button>
<Button
@@ -869,7 +869,7 @@ export function EvaluatorSetupPage(
title="Delete evaluator"
onClick={() => setDeleteOpen(true)}
>
- <Trash2 className="text-destructive h-4 w-4" />
+ <Trash2 className="icon-base text-destructive" />
</Button>
</div>
) : undefined,
diff --git a/web/src/features/evals/v2/pages/EvaluatorsPage.tsx b/web/src/features/evals/v2/pages/EvaluatorsPage.tsx
index a4b7512f02..273a308855 100644
--- a/web/src/features/evals/v2/pages/EvaluatorsPage.tsx
+++ b/web/src/features/evals/v2/pages/EvaluatorsPage.tsx
@@ -125,7 +125,7 @@ function EvaluatorsOverviewSelectionBar({
className="h-8"
onClick={() => onDeleteSelection({ selectAll, selectedIds })}
>
- <Trash2 className="h-4 w-4 sm:mr-2" />
+ <Trash2 className="icon-base text-icon-foreground sm:mr-2" />
<span className="hidden sm:inline">Delete</span>
</Button>
</OverviewSelectionBar>
@@ -615,7 +615,7 @@ export default function EvaluatorsPage() {
},
mobileActionButtons: showOnboarding ? (
<Button size="sm" onClick={openGalleryFromNewEvaluatorButton}>
- <Plus className="mr-2 h-4 w-4" />
+ <Plus className="icon-base mr-2" />
New evaluator
</Button>
) : undefined,
@@ -673,7 +673,7 @@ export default function EvaluatorsPage() {
/>
)}
<Button onClick={openGalleryFromNewEvaluatorButton}>
- <Plus className="mr-2 h-4 w-4" />
+ <Plus className="icon-base text-icon-foreground mr-2" />
New evaluator
</Button>
</div>
diff --git a/web/src/features/evals/v2/pages/RulesPage.tsx b/web/src/features/evals/v2/pages/RulesPage.tsx
index 8895c45411..3c678815df 100644
--- a/web/src/features/evals/v2/pages/RulesPage.tsx
+++ b/web/src/features/evals/v2/pages/RulesPage.tsx
@@ -39,7 +39,7 @@ export function RulesPage() {
disabled={!hasWriteAccess}
onClick={() => setCreateOpen(true)}
>
- <Plus className="mr-2 h-4 w-4" /> New rule
+ <Plus className="icon-base text-icon-foreground mr-2" /> New rule
</Button>
),
tabsProps: {
diff --git a/web/src/features/events/components/CategoryPresetChips.tsx b/web/src/features/events/components/CategoryPresetChips.tsx
index 1ff5617006..5b0840ed25 100644
--- a/web/src/features/events/components/CategoryPresetChips.tsx
+++ b/web/src/features/events/components/CategoryPresetChips.tsx
@@ -240,7 +240,13 @@ export function CategoryPresetChips({
"bg-primary text-primary-foreground border-primary hover:bg-primary/90 hover:text-primary-foreground",
)}
>
- <Icon className="h-4 w-4" aria-hidden />
+ <Icon
+ aria-hidden
+ className={cn(
+ "icon-base",
+ !isCategoryActive && "text-icon-foreground",
+ )}
+ />
{label}
</Button>
</PopoverTrigger>
@@ -360,7 +366,7 @@ export function CategoryPresetChips({
</span>
{isPresetActive && (
<Check
- className="mt-0.5 h-4 w-4 shrink-0"
+ className="icon-base mt-0.5 shrink-0"
aria-hidden
/>
)}
diff --git a/web/src/features/events/components/EventsTable.tsx b/web/src/features/events/components/EventsTable.tsx
index 9901c978bf..ef90500c34 100644
--- a/web/src/features/events/components/EventsTable.tsx
+++ b/web/src/features/events/components/EventsTable.tsx
@@ -1206,7 +1206,7 @@ export default function ObservationsEventsTable({
label: "Evaluate",
description: "Run evaluations on selected observations.",
customDialog: true,
- icon: <LightbulbIcon className="h-4 w-4 sm:mr-2" />,
+ icon: <LightbulbIcon className="icon-base sm:mr-2" />,
disabled: isSelectAllCountUnavailable,
disabledReason: selectAllCountUnavailableReason,
accessCheck: {
@@ -1338,7 +1338,7 @@ export default function ObservationsEventsTable({
>
<div className="flex items-center gap-1">
<span>{usdFormatter(value)}</span>
- <InfoIcon className="h-3 w-3" />
+ <InfoIcon className="icon-sm" />
</div>
</BreakdownTooltip>
);
diff --git a/web/src/features/events/components/MobileFiltersSheet.stories.tsx b/web/src/features/events/components/MobileFiltersSheet.stories.tsx
index ba92d53e63..cd1dd8523d 100644
--- a/web/src/features/events/components/MobileFiltersSheet.stories.tsx
+++ b/web/src/features/events/components/MobileFiltersSheet.stories.tsx
@@ -40,14 +40,14 @@ const fakeHeaderControls = (
size="icon"
className="h-8 w-8 rounded-r-none border-r-0"
>
- <RefreshCw className="h-4 w-4" />
+ <RefreshCw className="icon-base text-icon-foreground" />
</Button>
<Button
variant="outline"
size="icon"
className="h-8 w-auto rounded-l-none border-l-0 px-2"
>
- <ChevronDown className="h-4 w-4" />
+ <ChevronDown className="icon-base text-icon-foreground" />
</Button>
</div>
</div>
diff --git a/web/src/features/events/components/MobileFiltersSheet.tsx b/web/src/features/events/components/MobileFiltersSheet.tsx
index a5a04e7149..ebe18c12b3 100644
--- a/web/src/features/events/components/MobileFiltersSheet.tsx
+++ b/web/src/features/events/components/MobileFiltersSheet.tsx
@@ -87,7 +87,7 @@ export function MobileFiltersSheet({
<Sheet open={open} onOpenChange={setOpen}>
<SheetTrigger asChild>
<Button variant="outline" size="sm" className="h-8 shrink-0 gap-2">
- <SlidersHorizontal className="h-4 w-4" />
+ <SlidersHorizontal className="icon-base text-icon-foreground" />
<span>Filters</span>
{activeCount > 0 && (
<Badge variant="secondary" className="ml-0.5 h-5 px-1.5 text-xs">
@@ -123,7 +123,7 @@ export function MobileFiltersSheet({
aria-label="Close filters"
className="h-8 w-8 shrink-0"
>
- <X className="h-4 w-4" />
+ <X className="icon-base text-icon-foreground" />
</Button>
</SheetClose>
</div>
diff --git a/web/src/features/events/components/V4SidebarToggle.tsx b/web/src/features/events/components/V4SidebarToggle.tsx
index 55710c8ba0..f0e43f0b73 100644
--- a/web/src/features/events/components/V4SidebarToggle.tsx
+++ b/web/src/features/events/components/V4SidebarToggle.tsx
@@ -180,7 +180,7 @@ export function V4SidebarToggle() {
>
<div>
<div className="flex min-w-0 flex-1 items-center gap-2 group-data-[collapsible=icon]:hidden">
- <ZapIcon className="size-3.5 shrink-0" />
+ <ZapIcon className="icon-base shrink-0" />
<Label
htmlFor="v4-beta-toggle"
className="block min-w-0 flex-1 cursor-pointer truncate text-sm font-normal"
diff --git a/web/src/features/events/components/outlier-strip/OutlierBarStrip.tsx b/web/src/features/events/components/outlier-strip/OutlierBarStrip.tsx
index 07852b9a71..1c2a91c4ce 100644
--- a/web/src/features/events/components/outlier-strip/OutlierBarStrip.tsx
+++ b/web/src/features/events/components/outlier-strip/OutlierBarStrip.tsx
@@ -652,7 +652,7 @@ export function OutlierBarStrip({
onSelectionChange?.(null);
}}
>
- <X className="h-3 w-3" />
+ <X className="icon-sm" />
</button>
</div>
{previewHasData && (
diff --git a/web/src/features/experiments/ExperimentsPage.tsx b/web/src/features/experiments/ExperimentsPage.tsx
index 2091068f90..e5fa9c8214 100644
--- a/web/src/features/experiments/ExperimentsPage.tsx
+++ b/web/src/features/experiments/ExperimentsPage.tsx
@@ -75,7 +75,7 @@ export default function ExperimentsPage() {
disabled={!hasExperimentWriteAccess}
onClick={() => capture("dataset_run:new_form_open")}
>
- <FlaskConical className="h-4 w-4" />
+ <FlaskConical className="icon-base text-icon-foreground" />
<span className="ml-2 hidden md:block">Run experiment</span>
</Button>
</DialogTrigger>
diff --git a/web/src/features/experiments/components/CreateExperimentsForm.tsx b/web/src/features/experiments/components/CreateExperimentsForm.tsx
index c7dd95476d..ff7cda0824 100644
--- a/web/src/features/experiments/components/CreateExperimentsForm.tsx
+++ b/web/src/features/experiments/components/CreateExperimentsForm.tsx
@@ -182,7 +182,7 @@ export const CreateExperimentsForm = ({
<Card className="flex flex-1 flex-col">
<CardHeader>
<CardTitle className="flex items-center gap-2 text-lg">
- <Wand2 className="size-4" />
+ <Wand2 className="icon-base" />
via User Interface
</CardTitle>
<CardDescription>
@@ -225,7 +225,7 @@ export const CreateExperimentsForm = ({
<Card className="flex flex-1 flex-col">
<CardHeader>
<CardTitle className="flex items-center gap-2 text-lg">
- <Code2 className="size-4" />
+ <Code2 className="icon-base" />
via Webhook
</CardTitle>
<CardDescription>
@@ -295,7 +295,7 @@ export const CreateExperimentsForm = ({
{dataset.name}
<CheckIcon
className={cn(
- "ml-auto h-4 w-4",
+ "icon-base ml-auto",
dataset.id === datasetId
? "opacity-100"
: "opacity-0",
@@ -346,7 +346,7 @@ export const CreateExperimentsForm = ({
title="Edit remote trigger settings"
onClick={() => setShowRemoteExperimentUpsertForm(true)}
>
- <Cog className="h-3 w-3" />
+ <Cog className="icon-base" />
</Button>
</div>
) : (
diff --git a/web/src/features/experiments/components/ExperimentBaselineControls.tsx b/web/src/features/experiments/components/ExperimentBaselineControls.tsx
index f58c94cedb..6696996d76 100644
--- a/web/src/features/experiments/components/ExperimentBaselineControls.tsx
+++ b/web/src/features/experiments/components/ExperimentBaselineControls.tsx
@@ -114,7 +114,7 @@ export function ExperimentBaselineControls({
title="Clear baseline"
aria-label="Clear baseline"
>
- <X className="h-4 w-4" />
+ <X className="icon-base text-icon-foreground" />
</Button>
)}
</div>
diff --git a/web/src/features/experiments/components/ExperimentComparisonSelector.tsx b/web/src/features/experiments/components/ExperimentComparisonSelector.tsx
index 48e3abcec4..1f704e1277 100644
--- a/web/src/features/experiments/components/ExperimentComparisonSelector.tsx
+++ b/web/src/features/experiments/components/ExperimentComparisonSelector.tsx
@@ -356,7 +356,7 @@ export function ExperimentComparisonSelector({
className="text-muted-foreground hover:bg-muted/50 flex w-full items-center gap-3 px-3 py-2 text-left"
>
<div className="border-input flex h-4 w-4 shrink-0 items-center justify-center rounded-sm border">
- {isAutoSelectEnabled && <Check className="h-3 w-3" />}
+ {isAutoSelectEnabled && <Check className="icon-sm" />}
</div>
<span className="text-xs">
Auto-select a comparison experiment by default
@@ -410,7 +410,7 @@ export function ExperimentComparisonSelector({
className="hover:bg-muted/50 flex w-full items-center gap-3 px-3 py-2 text-left disabled:cursor-not-allowed disabled:opacity-50"
>
<div className="flex h-4 w-4 shrink-0 items-center justify-center">
- {isSelected && <Check className="text-primary h-4 w-4" />}
+ {isSelected && <Check className="text-primary icon-base" />}
</div>
<span
className="min-w-0 flex-1 truncate text-sm font-bold"
@@ -531,7 +531,7 @@ export function ExperimentComparisonSelector({
className="hover:bg-muted ml-0.5 rounded-full"
aria-label={`Remove ${option.experimentName}`}
>
- <X className="h-3 w-3" />
+ <X className="icon-sm" />
</button>
</Badge>
);
diff --git a/web/src/features/experiments/components/ExperimentDisplaySettings.tsx b/web/src/features/experiments/components/ExperimentDisplaySettings.tsx
index 3107859146..492ab70994 100644
--- a/web/src/features/experiments/components/ExperimentDisplaySettings.tsx
+++ b/web/src/features/experiments/components/ExperimentDisplaySettings.tsx
@@ -42,7 +42,7 @@ const OptionItem = ({
}) => (
<DropdownMenuItem onClick={onSelect} disabled={disabled}>
{selected ? (
- <Check className="mr-2 h-4 w-4 shrink-0" />
+ <Check className="icon-base text-icon-foreground mr-2 shrink-0" />
) : (
<span className="mr-2 h-4 w-4 shrink-0" />
)}
@@ -75,7 +75,7 @@ export function ExperimentDisplaySettings({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline" className="h-8 px-2.5 text-xs">
- <Settings2 className="h-4 w-4" />
+ <Settings2 className="icon-base text-icon-foreground" />
<span className="ml-2">Display</span>
</Button>
</DropdownMenuTrigger>
diff --git a/web/src/features/experiments/components/ExperimentPeekFooter.tsx b/web/src/features/experiments/components/ExperimentPeekFooter.tsx
index db71e2bbe4..62a66820c7 100644
--- a/web/src/features/experiments/components/ExperimentPeekFooter.tsx
+++ b/web/src/features/experiments/components/ExperimentPeekFooter.tsx
@@ -52,7 +52,7 @@ export function ExperimentPeekFooter({ projectId }: { projectId: string }) {
onClick={goToPrev}
title="Previous experiment"
>
- <ArrowLeft className="h-4 w-4" />
+ <ArrowLeft className="icon-base text-icon-foreground" />
</Button>
<span className="text-muted-foreground px-1 font-mono text-[10px] tabular-nums">
{currentIndex + 1}/{total}
@@ -64,7 +64,7 @@ export function ExperimentPeekFooter({ projectId }: { projectId: string }) {
onClick={goToNext}
title="Next experiment"
>
- <ArrowRight className="h-4 w-4" />
+ <ArrowRight className="icon-base text-icon-foreground" />
</Button>
</div>
</div>
diff --git a/web/src/features/experiments/components/MultiStepExperimentForm.tsx b/web/src/features/experiments/components/MultiStepExperimentForm.tsx
index 86437e6a3c..c373750197 100644
--- a/web/src/features/experiments/components/MultiStepExperimentForm.tsx
+++ b/web/src/features/experiments/components/MultiStepExperimentForm.tsx
@@ -458,7 +458,7 @@ export const MultiStepExperimentForm = ({
}
if (isStepValid(stepId)) {
- return <Check className="mr-1.5 h-3.5 w-3.5 text-green-600" />;
+ return <Check className="icon-base mr-1.5 text-green-600" />;
}
if (
@@ -468,7 +468,7 @@ export const MultiStepExperimentForm = ({
return (
<CircleX
aria-label={`${stepLabel} has errors`}
- className="mr-1.5 h-3.5 w-3.5 text-red-500"
+ className="icon-base mr-1.5 text-red-500"
/>
);
}
@@ -703,7 +703,7 @@ export const MultiStepExperimentForm = ({
}}
disabled={activeStep === "prompt"}
>
- <ChevronLeft className="mr-2 h-4 w-4" />
+ <ChevronLeft className="icon-base text-icon-foreground mr-2" />
Previous
</Button>
@@ -725,7 +725,7 @@ export const MultiStepExperimentForm = ({
}
>
Next
- <ChevronRight className="ml-2 h-4 w-4" />
+ <ChevronRight className="icon-base ml-2" />
</Button>
) : (
<Button
diff --git a/web/src/features/experiments/components/RemoteExperimentDatasetStep.tsx b/web/src/features/experiments/components/RemoteExperimentDatasetStep.tsx
index 6a3d481a5c..70b65e7855 100644
--- a/web/src/features/experiments/components/RemoteExperimentDatasetStep.tsx
+++ b/web/src/features/experiments/components/RemoteExperimentDatasetStep.tsx
@@ -132,7 +132,7 @@ export const RemoteExperimentDatasetStep = ({
{dataset.name}
<CheckIcon
className={cn(
- "ml-auto h-4 w-4",
+ "icon-base ml-auto",
dataset.id === selectedDatasetId
? "opacity-100"
: "opacity-0",
diff --git a/web/src/features/experiments/components/RemoteExperimentUpsertForm.tsx b/web/src/features/experiments/components/RemoteExperimentUpsertForm.tsx
index d86a483616..ce9c77596d 100644
--- a/web/src/features/experiments/components/RemoteExperimentUpsertForm.tsx
+++ b/web/src/features/experiments/components/RemoteExperimentUpsertForm.tsx
@@ -457,9 +457,9 @@ export const RemoteExperimentUpsertForm = ({
}
>
{isSecret ? (
- <Lock className="h-4 w-4 text-orange-500" />
+ <Lock className="icon-base text-orange-500" />
) : (
- <LockOpen className="text-muted-foreground h-4 w-4" />
+ <LockOpen className="icon-base text-muted-foreground" />
)}
</Button>
<Button
@@ -468,7 +468,7 @@ export const RemoteExperimentUpsertForm = ({
size="icon"
onClick={() => removeHeader(index)}
>
- <X className="h-4 w-4" />
+ <X className="icon-base text-icon-foreground" />
</Button>
</div>
);
@@ -487,7 +487,7 @@ export const RemoteExperimentUpsertForm = ({
}
className="mt-2"
>
- <Plus className="mr-1 h-4 w-4" />
+ <Plus className="icon-base text-icon-foreground mr-1" />
Add Custom Header
</Button>
</div>
diff --git a/web/src/features/experiments/components/steps/DatasetPicker.tsx b/web/src/features/experiments/components/steps/DatasetPicker.tsx
index 61692acc64..3b14155236 100644
--- a/web/src/features/experiments/components/steps/DatasetPicker.tsx
+++ b/web/src/features/experiments/components/steps/DatasetPicker.tsx
@@ -60,7 +60,7 @@ export function DatasetPicker({
</span>
<CheckIcon
className={cn(
- "ml-auto h-4 w-4 shrink-0",
+ "icon-base ml-auto shrink-0",
dataset.id === selectedDatasetId
? "opacity-100"
: "opacity-0",
diff --git a/web/src/features/experiments/components/steps/DatasetStep.tsx b/web/src/features/experiments/components/steps/DatasetStep.tsx
index af4319cb94..ada710f97e 100644
--- a/web/src/features/experiments/components/steps/DatasetStep.tsx
+++ b/web/src/features/experiments/components/steps/DatasetStep.tsx
@@ -176,7 +176,7 @@ export const DatasetStep: React.FC<DatasetStepProps> = ({
<CardHeader className="p-2">
<CardTitle className="text-dark-yellow flex items-center justify-between text-sm">
<span>Invalid configuration</span>
- <Info className="h-4 w-4" />
+ <Info className="icon-base" />
</CardTitle>
<CardDescription className="text-foreground">
{validationResult?.message}
@@ -189,7 +189,7 @@ export const DatasetStep: React.FC<DatasetStepProps> = ({
<CardHeader className="p-2">
<CardTitle className="text-dark-green flex items-center justify-between text-sm">
<span>Valid configuration</span>
- <CircleCheck className="h-4 w-4" />
+ <CircleCheck className="icon-base" />
</CardTitle>
<div className="text-sm">
Matches between dataset items and prompt
diff --git a/web/src/features/experiments/components/steps/PromptModelStep.tsx b/web/src/features/experiments/components/steps/PromptModelStep.tsx
index 7d8aff9e93..79646a1a83 100644
--- a/web/src/features/experiments/components/steps/PromptModelStep.tsx
+++ b/web/src/features/experiments/components/steps/PromptModelStep.tsx
@@ -177,7 +177,7 @@ export const PromptModelStep: React.FC<PromptModelStepProps> = ({
{name}
<CheckIcon
className={cn(
- "ml-auto h-4 w-4",
+ "icon-base ml-auto",
name === selectedPromptName
? "opacity-100"
: "opacity-0",
@@ -244,7 +244,7 @@ export const PromptModelStep: React.FC<PromptModelStepProps> = ({
</div>
<CheckIcon
className={cn(
- "ml-auto h-4 w-4 shrink-0",
+ "icon-base ml-auto shrink-0",
prompt.version === selectedPromptVersion
? "opacity-100"
: "opacity-0",
@@ -265,7 +265,7 @@ export const PromptModelStep: React.FC<PromptModelStepProps> = ({
</div>
{selectedPromptToolConfig.status === "invalid" && (
<p className="text-dark-yellow flex items-center gap-1.5 text-sm">
- <TriangleAlert className="h-4 w-4 shrink-0" />
+ <TriangleAlert className="icon-base shrink-0" />
Invalid tool config detected on this prompt version. Its tools
will be ignored when running the experiment.
</p>
@@ -369,7 +369,7 @@ export const PromptModelStep: React.FC<PromptModelStepProps> = ({
{schema.name}
<CheckIcon
className={cn(
- "ml-auto h-4 w-4",
+ "icon-base ml-auto",
selectedSchema?.id === schema.id
? "opacity-100"
: "opacity-0",
@@ -390,7 +390,7 @@ export const PromptModelStep: React.FC<PromptModelStepProps> = ({
aria-label={`View schema ${selectedSchema.name}`}
onClick={() => openSchemaDialog(selectedSchema)}
>
- <EyeIcon className="h-4 w-4" />
+ <EyeIcon className="icon-base text-icon-foreground" />
</Button>
)}
</div>
@@ -400,7 +400,7 @@ export const PromptModelStep: React.FC<PromptModelStepProps> = ({
className="w-full"
onClick={() => openSchemaDialog(null)}
>
- <PlusIcon className="mr-2 h-4 w-4" />
+ <PlusIcon className="icon-base text-icon-foreground mr-2" />
Add schema
</Button>
)}
diff --git a/web/src/features/experiments/components/steps/ReviewStep.tsx b/web/src/features/experiments/components/steps/ReviewStep.tsx
index 86b0ed2b3d..4a0243c5c2 100644
--- a/web/src/features/experiments/components/steps/ReviewStep.tsx
+++ b/web/src/features/experiments/components/steps/ReviewStep.tsx
@@ -166,7 +166,7 @@ export const ReviewStep: React.FC<ReviewStepProps> = ({
{({ getTriggerProps }) => (
<InfoIcon
{...getTriggerProps()}
- className="text-muted-foreground h-3.5 w-3.5"
+ className="text-muted-foreground icon-base"
/>
)}
</Tooltip>
diff --git a/web/src/features/experiments/components/table/ExperimentFilterPills.tsx b/web/src/features/experiments/components/table/ExperimentFilterPills.tsx
index 72dcc371ee..882a0129f4 100644
--- a/web/src/features/experiments/components/table/ExperimentFilterPills.tsx
+++ b/web/src/features/experiments/components/table/ExperimentFilterPills.tsx
@@ -90,7 +90,7 @@ function FilterPillWithTarget({
variant="secondary"
className="flex max-w-full items-center gap-1 px-2 py-1 text-xs"
>
- <ListFilter className="h-3 w-3 shrink-0" />
+ <ListFilter className="icon-sm shrink-0" />
<span className="truncate" title={filterLabel}>
{filterLabel}
</span>
@@ -128,7 +128,7 @@ function FilterPillWithTarget({
>
<div className="flex h-4 w-4 items-center justify-center">
{exp.experimentId === experimentId && (
- <Check className="text-primary h-3 w-3" />
+ <Check className="text-primary icon-sm" />
)}
</div>
<span className="truncate" title={exp.experimentName}>
@@ -148,7 +148,7 @@ function FilterPillWithTarget({
onRemove();
}}
>
- <X className="h-3 w-3" />
+ <X className="icon-base text-icon-foreground" />
</Button>
</Badge>
);
diff --git a/web/src/features/experiments/components/table/ExperimentGridCell.tsx b/web/src/features/experiments/components/table/ExperimentGridCell.tsx
index 079a87cf0c..e06b5dcd16 100644
--- a/web/src/features/experiments/components/table/ExperimentGridCell.tsx
+++ b/web/src/features/experiments/components/table/ExperimentGridCell.tsx
@@ -286,7 +286,7 @@ const ScoreItem = ({
rel="noopener noreferrer"
className="flex items-center gap-1 hover:underline"
>
- <ExternalLink className="h-3 w-3" />
+ <ExternalLink className="icon-sm" />
View execution trace
</Link>
)}
diff --git a/web/src/features/experiments/components/table/ExperimentInputCell.tsx b/web/src/features/experiments/components/table/ExperimentInputCell.tsx
index f62cc57e49..c43d6201e3 100644
--- a/web/src/features/experiments/components/table/ExperimentInputCell.tsx
+++ b/web/src/features/experiments/components/table/ExperimentInputCell.tsx
@@ -47,7 +47,7 @@ export function ExperimentInputCell({
className="text-muted-foreground hover:text-primary absolute top-1 right-1 rounded-sm p-0.5 focus-visible:ring-2 focus-visible:outline-none"
onClick={(event) => event.stopPropagation()}
>
- <ArrowUpRight className="h-3.5 w-3.5" aria-hidden />
+ <ArrowUpRight className="icon-base" aria-hidden />
</Link>
) : null}
{isLoading ? (
diff --git a/web/src/features/experiments/components/table/ExperimentItemsTable.tsx b/web/src/features/experiments/components/table/ExperimentItemsTable.tsx
index 0a08299264..33afc4bd26 100644
--- a/web/src/features/experiments/components/table/ExperimentItemsTable.tsx
+++ b/web/src/features/experiments/components/table/ExperimentItemsTable.tsx
@@ -1990,7 +1990,7 @@ export default function ExperimentItemsTable({
type: BatchActionType.Create,
label: "Evaluate",
description: "Run evaluators on selected items",
- icon: <LightbulbIcon className="h-4 w-4 sm:mr-2" />,
+ icon: <LightbulbIcon className="icon-base sm:mr-2" />,
customDialog: true,
accessCheck: {
scope: "evaluationRule:CUD",
diff --git a/web/src/features/experiments/components/table/ExperimentsTable.tsx b/web/src/features/experiments/components/table/ExperimentsTable.tsx
index 78fe299f60..740a2b86c3 100644
--- a/web/src/features/experiments/components/table/ExperimentsTable.tsx
+++ b/web/src/features/experiments/components/table/ExperimentsTable.tsx
@@ -224,7 +224,7 @@ function ExperimentsMultiSelectActionMenu({
type: BatchActionType.Create,
label: "Compare",
description: "Compare selected experiments",
- icon: <GitCompareArrows className="h-4 w-4 sm:mr-2" />,
+ icon: <GitCompareArrows className="icon-base sm:mr-2" />,
customDialog: true,
disabled: tooManySelected,
disabledReason: tooManySelected
@@ -241,7 +241,7 @@ function ExperimentsMultiSelectActionMenu({
type: BatchActionType.Create,
label: "Run Evaluator",
description: "Run evaluators on selected experiments",
- icon: <LightbulbIcon className="h-4 w-4 sm:mr-2" />,
+ icon: <LightbulbIcon className="icon-base sm:mr-2" />,
customDialog: true,
accessCheck: {
scope: "evaluationRule:CUD",
diff --git a/web/src/features/experiments/components/table/ScoreColumnFilterMenu.tsx b/web/src/features/experiments/components/table/ScoreColumnFilterMenu.tsx
index e4e5d64cc1..bff66f12fb 100644
--- a/web/src/features/experiments/components/table/ScoreColumnFilterMenu.tsx
+++ b/web/src/features/experiments/components/table/ScoreColumnFilterMenu.tsx
@@ -61,7 +61,7 @@ export const ScoreColumnFilterMenuTrigger = forwardRef<
)}
{...triggerProps}
>
- <ListFilter className="h-3 w-3" />
+ <ListFilter className="icon-sm" />
</button>
));
ScoreColumnFilterMenuTrigger.displayName = "ScoreColumnFilterMenuTrigger";
@@ -115,7 +115,7 @@ export const ScoreColumnFilterMenu = ({
onClick={() => onSelect(operator, targets[0].experimentId)}
>
{isActive(operator, targets[0].experimentId) ? (
- <Check className="mr-2 h-4 w-4 shrink-0" />
+ <Check className="icon-base text-icon-foreground mr-2 shrink-0" />
) : (
<span className="mr-2 h-4 w-4 shrink-0" />
)}
@@ -139,7 +139,7 @@ export const ScoreColumnFilterMenu = ({
onClick={() => onSelect(operator, target.experimentId)}
>
{isActive(operator, target.experimentId) ? (
- <Check className="mr-2 h-4 w-4 shrink-0" />
+ <Check className="icon-base text-icon-foreground mr-2 shrink-0" />
) : (
<span className="mr-2 h-4 w-4 shrink-0" />
)}
diff --git a/web/src/features/experiments/components/table/ScoreComparisonFilterPills.tsx b/web/src/features/experiments/components/table/ScoreComparisonFilterPills.tsx
index c5cf71b7f5..54d10c470e 100644
--- a/web/src/features/experiments/components/table/ScoreComparisonFilterPills.tsx
+++ b/web/src/features/experiments/components/table/ScoreComparisonFilterPills.tsx
@@ -43,7 +43,7 @@ export const ScoreComparisonFilterPills = ({
variant="secondary"
className="flex max-w-full items-center gap-1 px-2 py-1 text-xs"
>
- <GitCompareArrows className="h-3 w-3 shrink-0" />
+ <GitCompareArrows className="icon-sm shrink-0" />
<span className="truncate" title={label}>
{label}
</span>
@@ -69,7 +69,7 @@ export const ScoreComparisonFilterPills = ({
onRemove(filter);
}}
>
- <X className="h-3 w-3" />
+ <X className="icon-base text-icon-foreground" />
</Button>
</Badge>
);
diff --git a/web/src/features/filters/components/filter-builder.tsx b/web/src/features/filters/components/filter-builder.tsx
index aac3b254ad..cc180e9c0a 100644
--- a/web/src/features/filters/components/filter-builder.tsx
+++ b/web/src/features/filters/components/filter-builder.tsx
@@ -306,7 +306,7 @@ export function PopoverFilterBuilder({
variant="ghost"
className="relative"
>
- <FilterIcon className="h-4 w-4" />
+ <FilterIcon className="icon-base text-icon-foreground" />
{filterState.length > 0 && (
<span className="bg-input absolute top-0 -right-1 flex h-4 min-w-4 items-center justify-center rounded-sm px-1 text-xs shadow-xs">
{filterState.length}
@@ -340,7 +340,7 @@ export function PopoverFilterBuilder({
size="icon"
className="ml-0.5"
>
- <X className="h-4 w-4" />
+ <X className="icon-base text-icon-foreground" />
</Button>
</TooltipTrigger>
<TooltipContent>Clear all filters</TooltipContent>
@@ -355,7 +355,7 @@ export function PopoverFilterBuilder({
size="icon-xs"
className="hover:bg-background ml-0.5"
>
- <X className="h-3 w-3" />
+ <X className="icon-sm text-icon-foreground" />
</Button>
</TooltipTrigger>
<TooltipContent>Clear all filters</TooltipContent>
@@ -769,7 +769,7 @@ function FilterBuilderForm({
>
<Check
className={cn(
- "mr-2 h-4 w-4",
+ "icon-base mr-2",
option.id === column?.id ? "visible" : "invisible",
)}
/>
@@ -779,7 +779,7 @@ function FilterBuilderForm({
<TooltipTrigger asChild>
<Info
className={cn(
- "ml-2 h-4 w-4",
+ "icon-base ml-2",
alertStyles.iconColor,
)}
/>
@@ -1125,7 +1125,7 @@ function FilterBuilderForm({
disabled={disabled}
size="xs"
>
- <X className="h-4 w-4" />
+ <X className="icon-sm text-icon-foreground" />
</Button>
);
@@ -1197,11 +1197,11 @@ function FilterBuilderForm({
}
className="text-muted-foreground w-full justify-start"
>
- <WandSparkles className="mr-2 h-4 w-4" />
+ <WandSparkles className="icon-base text-icon-foreground mr-2" />
{!aiFilter.aiFeaturesEnabled ? (
<>
AI Filters: Enable in Organization Settings (Admin Only)
- <ExternalLink className="ml-2 h-4 w-4" />
+ <ExternalLink className="icon-base text-icon-foreground ml-2" />
</>
) : showAiFilter ? (
"Cancel"
@@ -1238,7 +1238,7 @@ function FilterBuilderForm({
</Button>
<Tooltip>
<TooltipTrigger asChild>
- <Info className="text-muted-foreground h-4 w-4" />
+ <Info className="text-muted-foreground icon-base" />
</TooltipTrigger>
<TooltipContent>
<p className="text-xs">
@@ -1283,8 +1283,8 @@ function FilterBuilderForm({
>
<Plus
className={cn(
- "shrink-0",
- subtleAddButton ? "h-3.5 w-3.5" : "mr-2 h-4 w-4",
+ "icon-base text-icon-foreground shrink-0",
+ !subtleAddButton && "mr-2",
)}
/>
Add filter
diff --git a/web/src/features/filters/components/multi-select.tsx b/web/src/features/filters/components/multi-select.tsx
index 53da1d4b59..1b4d67359b 100644
--- a/web/src/features/filters/components/multi-select.tsx
+++ b/web/src/features/filters/components/multi-select.tsx
@@ -229,7 +229,10 @@ export function MultiSelect({
role="status"
className="text-muted-foreground flex items-center gap-2 px-3 py-2 text-sm"
>
- <Loader2 className="h-4 w-4 animate-spin" aria-hidden="true" />
+ <Loader2
+ className="icon-base animate-spin"
+ aria-hidden="true"
+ />
Loading…
</div>
)}
@@ -253,7 +256,7 @@ export function MultiSelect({
: "opacity-50 [&_svg]:invisible",
)}
>
- <Check className="h-4 w-4" />
+ <Check className="icon-base" />
</div>
<div className="font-bold">
{allSelectedState ? "Deselect All" : "Select All"}
@@ -294,7 +297,7 @@ export function MultiSelect({
: "opacity-50 [&_svg]:invisible",
)}
>
- <Check className="h-4 w-4" />
+ <Check className="icon-base" />
</div>
<div
className={cn(
@@ -363,7 +366,7 @@ export function MultiSelect({
: "opacity-50 [&_svg]:invisible",
)}
>
- <Check className="h-4 w-4" />
+ <Check className="icon-base" />
</div>
<Input
type="text"
diff --git a/web/src/features/filters/components/single-select.tsx b/web/src/features/filters/components/single-select.tsx
index 1d71a7daa1..2236369b82 100644
--- a/web/src/features/filters/components/single-select.tsx
+++ b/web/src/features/filters/components/single-select.tsx
@@ -217,7 +217,7 @@ export function SingleSelect({
>
<Check
className={cn(
- "mr-2 h-4 w-4",
+ "icon-base mr-2",
isSelected ? "visible" : "invisible",
)}
/>
@@ -273,7 +273,7 @@ export function SingleSelect({
value={search.trim()}
onSelect={() => commit(search.trim())}
>
- <Plus className="mr-2 h-4 w-4 shrink-0 opacity-50" />
+ <Plus className="icon-base mr-2 shrink-0 opacity-50" />
<div className="overflow-x-hidden text-ellipsis whitespace-nowrap">
Use &ldquo;{search.trim()}&rdquo;
</div>
diff --git a/web/src/features/folders/components/FolderBreadcrumb.tsx b/web/src/features/folders/components/FolderBreadcrumb.tsx
index f600a15c3a..6e6b81bc96 100644
--- a/web/src/features/folders/components/FolderBreadcrumb.tsx
+++ b/web/src/features/folders/components/FolderBreadcrumb.tsx
@@ -31,7 +31,7 @@ export const FolderBreadcrumb = ({
className="cursor-pointer hover:underline"
onClick={() => navigateToFolder(undefined)}
>
- <Home className="h-4 w-4" />
+ <Home className="icon-base" />
</BreadcrumbLink>
</BreadcrumbItem>
{createBreadcrumbItems(currentFolderPath).flatMap(
diff --git a/web/src/features/in-app-agent/components/ConversationActivityIndicator.tsx b/web/src/features/in-app-agent/components/ConversationActivityIndicator.tsx
index ff9a328fe7..a0d8835e5b 100644
--- a/web/src/features/in-app-agent/components/ConversationActivityIndicator.tsx
+++ b/web/src/features/in-app-agent/components/ConversationActivityIndicator.tsx
@@ -16,7 +16,7 @@ export function ConversationActivityIndicator({
if (state === "approval") {
return (
<ConversationActivityIndicatorSlot label="Needs your approval">
- <CircleAlert className="text-primary-accent size-3" />
+ <CircleAlert className="text-primary-accent icon-sm" />
</ConversationActivityIndicatorSlot>
);
}
@@ -24,7 +24,7 @@ export function ConversationActivityIndicator({
if (state === "running") {
return (
<ConversationActivityIndicatorSlot label="Working">
- <Loader2 className="text-muted-foreground size-3 animate-spin" />
+ <Loader2 className="text-muted-foreground icon-sm animate-spin" />
</ConversationActivityIndicatorSlot>
);
}
diff --git a/web/src/features/in-app-agent/components/InAppAgentActivityCards.tsx b/web/src/features/in-app-agent/components/InAppAgentActivityCards.tsx
index b6d555f75a..ab2920386c 100644
--- a/web/src/features/in-app-agent/components/InAppAgentActivityCards.tsx
+++ b/web/src/features/in-app-agent/components/InAppAgentActivityCards.tsx
@@ -53,7 +53,7 @@ export function InAppAgentActivityCards({
>
<BotMessageSquare
className={cn(
- "mt-0.5 size-4 shrink-0",
+ "icon-base mt-0.5 shrink-0",
tone === "destructive"
? "text-destructive"
: "text-primary-accent",
@@ -87,7 +87,7 @@ export function InAppAgentActivityCards({
onDismiss(card);
}}
>
- <X className="size-3" />
+ <X className="icon-sm text-icon-foreground" />
</Button>
</div>
);
diff --git a/web/src/features/in-app-agent/components/InAppAgentBackgroundHint.tsx b/web/src/features/in-app-agent/components/InAppAgentBackgroundHint.tsx
index f444beb3b9..e9624cafd9 100644
--- a/web/src/features/in-app-agent/components/InAppAgentBackgroundHint.tsx
+++ b/web/src/features/in-app-agent/components/InAppAgentBackgroundHint.tsx
@@ -17,7 +17,9 @@ export function InAppAgentBackgroundHint({
}) {
return (
<InAppAgentNotice
- icon={<BotMessageSquare aria-hidden="true" className="size-3 shrink-0" />}
+ icon={
+ <BotMessageSquare aria-hidden="true" className="icon-sm shrink-0" />
+ }
isExpanded={isExpanded}
role="status"
tone="neutral"
@@ -30,7 +32,7 @@ export function InAppAgentBackgroundHint({
className="-my-0.5 h-5 shrink-0 gap-1 px-1"
onClick={onMinimize}
>
- <Minus className="size-3" />
+ <Minus className="icon-base text-icon-foreground" />
<span className="hidden md:inline-flex">
<KeyboardShortcut variant="subtle" keys={["Mod", "I"]} />
</span>
diff --git a/web/src/features/in-app-agent/components/InAppAgentMessage.tsx b/web/src/features/in-app-agent/components/InAppAgentMessage.tsx
index e5263ddc2e..2db6738536 100644
--- a/web/src/features/in-app-agent/components/InAppAgentMessage.tsx
+++ b/web/src/features/in-app-agent/components/InAppAgentMessage.tsx
@@ -316,9 +316,9 @@ function TextMessageWithActions({
onClick={handleCopy}
>
{isCopied ? (
- <Check className={cn(isCompact ? "size-3" : "size-3.5")} />
+ <Check className={isCompact ? "icon-sm" : "icon-base"} />
) : (
- <Copy className={cn(isCompact ? "size-3" : "size-3.5")} />
+ <Copy className={isCompact ? "icon-sm" : "icon-base"} />
)}
</button>
{canSubmitFeedback ? (
@@ -434,7 +434,7 @@ function InAppAgentReasoningBlock({
</span>
<ChevronDown
className={cn(
- "text-foreground-tertiary size-3.5 shrink-0 translate-y-px transition-transform",
+ "text-foreground-tertiary icon-base shrink-0 translate-y-px transition-transform",
!isOpen && "-rotate-90",
)}
/>
@@ -577,7 +577,7 @@ function MessageFeedbackControls({
>
<ThumbsUp
className={cn(
- isCompact ? "size-3" : "size-3.5",
+ isCompact ? "icon-sm" : "icon-base",
selectedValue === "thumbs_up" && "text-foreground",
)}
/>
@@ -593,7 +593,7 @@ function MessageFeedbackControls({
>
<ThumbsDown
className={cn(
- isCompact ? "size-3" : "size-3.5",
+ isCompact ? "icon-sm" : "icon-base",
selectedValue === "thumbs_down" && "text-foreground",
)}
/>
@@ -665,7 +665,7 @@ function SourcesPopover({
isCompact && "py-0.5",
)}
>
- <BookOpenText className={cn(isCompact ? "size-3" : "size-3.5")} />
+ <BookOpenText className={isCompact ? "icon-sm" : "icon-base"} />
Sources
</button>
</PopoverTrigger>
@@ -764,7 +764,7 @@ function RedirectActionButton({
}}
>
{content.label}
- <ArrowRight className="ml-1 size-3" />
+ <ArrowRight className="icon-base text-icon-foreground ml-1" />
</Button>
);
}
@@ -838,18 +838,18 @@ function ToolCallStatusIcon({
status: InAppAgentToolCallContent["status"];
}) {
if (status === "running") {
- return <Loader2 className="size-3.5 shrink-0 animate-spin" />;
+ return <Loader2 className="icon-base shrink-0 animate-spin" />;
}
if (status === "succeeded") {
- return <Check className="text-dark-green size-3.5 shrink-0" />;
+ return <Check className="text-dark-green icon-base shrink-0" />;
}
if (status === "failed") {
- return <CircleX className="text-destructive size-3.5 shrink-0" />;
+ return <CircleX className="text-destructive icon-base shrink-0" />;
}
- return <Ban className="text-dark-yellow size-3.5 shrink-0" />;
+ return <Ban className="text-dark-yellow icon-base shrink-0" />;
}
function MessageText({
@@ -1123,9 +1123,9 @@ function CodeBlock({ children }: { children: ReactNode }) {
)}
>
{isCopied ? (
- <Check className="size-3.5" />
+ <Check className="icon-base" />
) : (
- <Copy className="size-3.5" />
+ <Copy className="icon-base" />
)}
</button>
{children}
@@ -1231,9 +1231,9 @@ function TableCopyButton({
)}
>
{isCopied ? (
- <Check className="size-3.5" />
+ <Check className="icon-base" />
) : (
- <Copy className="size-3.5" />
+ <Copy className="icon-base" />
)}
<span>{caption}</span>
</button>
@@ -1258,7 +1258,7 @@ function ThinkingIndicator({
)}
>
<Loader2
- className={cn("animate-spin", isCompact ? "h-3 w-3" : "h-3.5 w-3.5")}
+ className={cn("animate-spin", isCompact ? "icon-sm" : "icon-base")}
/>
<span>{label}</span>
</div>
diff --git a/web/src/features/in-app-agent/components/InAppAgentToolCallCard.tsx b/web/src/features/in-app-agent/components/InAppAgentToolCallCard.tsx
index 9d5505bc1c..89bb392416 100644
--- a/web/src/features/in-app-agent/components/InAppAgentToolCallCard.tsx
+++ b/web/src/features/in-app-agent/components/InAppAgentToolCallCard.tsx
@@ -64,7 +64,7 @@ export function InAppAgentToolCallCard({
{approval ? (
<div className="min-w-0">
<div className="flex items-center gap-2 text-xs leading-none font-bold">
- <Wrench className="text-muted-foreground h-3.5 w-3.5 shrink-0" />
+ <Wrench className="text-muted-foreground icon-base shrink-0" />
<span
className="min-w-0 flex-1 truncate py-0.5"
title={approveLabel}
@@ -89,9 +89,9 @@ export function InAppAgentToolCallCard({
}}
>
{activeDecision === "once" ? (
- <Loader2 className="mr-1 size-3 animate-spin" />
+ <Loader2 className="icon-base mr-1 animate-spin" />
) : (
- <Check className="mr-1 size-3" />
+ <Check className="icon-base mr-1" />
)}
Approve
</Button>
@@ -112,7 +112,7 @@ export function InAppAgentToolCallCard({
}}
>
{activeDecision === "conversation" ? (
- <Loader2 className="mr-1 size-3 animate-spin" />
+ <Loader2 className="icon-base text-icon-foreground mr-1 animate-spin" />
) : null}
Always approve*
</Button>
@@ -131,7 +131,7 @@ export function InAppAgentToolCallCard({
}}
>
{activeDecision === "reject" ? (
- <Loader2 className="mr-1 size-3 animate-spin" />
+ <Loader2 className="icon-base text-icon-foreground mr-1 animate-spin" />
) : null}
Decline
</Button>
@@ -146,7 +146,7 @@ export function InAppAgentToolCallCard({
) : (
<details className="group/tool min-w-0">
<summary className="flex cursor-pointer list-none items-center gap-2 text-xs leading-none font-bold [&::-webkit-details-marker]:hidden">
- <Wrench className="text-muted-foreground h-3.5 w-3.5 shrink-0" />
+ <Wrench className="text-muted-foreground icon-base shrink-0" />
<span className="min-w-0 flex-1 truncate py-0.5" title={usedLabel}>
{usedLabel}
</span>
diff --git a/web/src/features/in-app-agent/components/InAppAgentWidgetComposer.tsx b/web/src/features/in-app-agent/components/InAppAgentWidgetComposer.tsx
index 9526c9f856..45421a28d4 100644
--- a/web/src/features/in-app-agent/components/InAppAgentWidgetComposer.tsx
+++ b/web/src/features/in-app-agent/components/InAppAgentWidgetComposer.tsx
@@ -70,7 +70,7 @@ export function InAppAgentWidgetComposer({
className="bg-muted/30 flex flex-col gap-2 rounded-lg border p-3"
>
<div className="flex items-center gap-2 font-bold">
- <Sparkles className="h-4 w-4" />
+ <Sparkles className="icon-base" />
Add with Langfuse Assistant
</div>
<p className="text-muted-foreground text-xs">
@@ -100,7 +100,7 @@ export function InAppAgentWidgetComposer({
aria-label="Add with Langfuse Assistant"
disabled={!request.trim()}
>
- <SendHorizontal className="h-4 w-4" />
+ <SendHorizontal className="icon-base text-icon-foreground" />
</Button>
</div>
</form>
diff --git a/web/src/features/in-app-agent/components/InAppAgentWindow.tsx b/web/src/features/in-app-agent/components/InAppAgentWindow.tsx
index 232310fba1..1ff7d143fe 100644
--- a/web/src/features/in-app-agent/components/InAppAgentWindow.tsx
+++ b/web/src/features/in-app-agent/components/InAppAgentWindow.tsx
@@ -183,7 +183,10 @@ function InAppAgentQuickActionPicker({
}}
>
<span className="bg-muted text-primary-accent flex size-7 shrink-0 items-center justify-center rounded-md">
- <ActionIcon aria-hidden="true" className="size-3.5" />
+ <ActionIcon
+ className="icon-base text-icon-foreground"
+ aria-hidden="true"
+ />
</span>
<span className="min-w-0 flex-1">
<span className="text-foreground block text-xs leading-snug font-bold">
@@ -198,7 +201,7 @@ function InAppAgentQuickActionPicker({
</span>
<ArrowRight
aria-hidden="true"
- className="text-muted-foreground size-3.5 shrink-0 transition-transform group-hover:translate-x-0.5"
+ className="icon-base text-muted-foreground shrink-0 transition-transform group-hover:translate-x-0.5"
/>
</Button>
);
@@ -647,7 +650,7 @@ function AssistantActivityGroup({
<ChevronRight
aria-hidden="true"
className={cn(
- "text-foreground-tertiary size-3.5 translate-y-px transition-transform",
+ "text-foreground-tertiary icon-base translate-y-px transition-transform",
isOpen && "rotate-90",
)}
/>
@@ -823,7 +826,7 @@ function ConversationScroller({
);
}}
>
- <ArrowDown className="size-3.5" />
+ <ArrowDown className="icon-base text-icon-foreground" />
Latest
</Button>
) : null}
@@ -940,7 +943,7 @@ function InAppAgentRateLimitError({
return (
<InAppAgentNotice
- icon={<Info aria-hidden="true" className="size-3 shrink-0" />}
+ icon={<Info aria-hidden="true" className="icon-sm shrink-0" />}
isExpanded={isExpanded}
role="alert"
tone="neutral"
@@ -960,7 +963,7 @@ function InAppAgentRateLimitError({
function InAppAgentIssueNotice({ isExpanded }: { isExpanded: boolean }) {
return (
<InAppAgentNotice
- icon={<Info aria-hidden="true" className="size-3 shrink-0" />}
+ icon={<Info aria-hidden="true" className="icon-sm shrink-0" />}
isExpanded={isExpanded}
role="alert"
tone="danger"
@@ -1199,7 +1202,7 @@ export function InAppAgentWindow(props: InAppAgentWindowProps) {
onClick={onNewConversation}
aria-label="Start new conversation"
>
- <Plus className="size-3" />
+ <Plus className="icon-base text-icon-foreground" />
</Button>
</TooltipTrigger>
<TooltipContent>Start new conversation</TooltipContent>
@@ -1226,7 +1229,7 @@ export function InAppAgentWindow(props: InAppAgentWindowProps) {
// nested badge aria-label is ignored once the parent has one.
aria-label={`Conversation history${historyAttentionSuffix}`}
>
- <History className="size-3" />
+ <History className="icon-base text-icon-foreground" />
{/* Launcher badge, scaled to the 24px trigger. Visual only —
accessible name is on the button. */}
{historyAttentionCount > 0 && (
@@ -1299,7 +1302,7 @@ export function InAppAgentWindow(props: InAppAgentWindowProps) {
onDeleteConversation(conversation);
}}
>
- <Trash2 className="size-3" />
+ <Trash2 className="icon-sm text-icon-foreground" />
</Button>
</DropdownMenuItem>
);
@@ -1333,9 +1336,9 @@ export function InAppAgentWindow(props: InAppAgentWindowProps) {
}}
>
{isExpanded ? (
- <Minimize2 className="size-3" />
+ <Minimize2 className="icon-base text-icon-foreground" />
) : (
- <Maximize2 className="size-3" />
+ <Maximize2 className="icon-base text-icon-foreground" />
)}
</Button>
</TooltipTrigger>
@@ -1360,9 +1363,9 @@ export function InAppAgentWindow(props: InAppAgentWindowProps) {
onClick={props.onClose}
>
{isHandheld ? (
- <X className="size-3" />
+ <X className="icon-base text-icon-foreground" />
) : (
- <Minus className="size-3" />
+ <Minus className="icon-base text-icon-foreground" />
)}
</Button>
</TooltipTrigger>
@@ -1393,7 +1396,7 @@ export function InAppAgentWindow(props: InAppAgentWindowProps) {
isSelectedConversationHydrating ? null : messages.length === 0 ? (
<div className="flex h-full w-full flex-1 flex-col items-center justify-center px-2">
<div>
- <BotMessageSquare className="text-muted-foreground mx-auto h-7 w-7" />
+ <BotMessageSquare className="text-muted-foreground icon-xl mx-auto" />
</div>
<InAppAgentQuickActionPicker
key={`${selectedConversationId ?? "new"}:${quickActionResetKey}`}
@@ -1524,9 +1527,12 @@ export function InAppAgentWindow(props: InAppAgentWindowProps) {
<InAppAgentNotice
icon={
backgroundNotice.tone === "warning" ? (
- <TriangleAlert aria-hidden="true" className="size-3 shrink-0" />
+ <TriangleAlert
+ aria-hidden="true"
+ className="icon-sm shrink-0"
+ />
) : (
- <Info aria-hidden="true" className="size-3 shrink-0" />
+ <Info aria-hidden="true" className="icon-sm shrink-0" />
)
}
isExpanded={isExpanded}
@@ -1623,7 +1629,7 @@ export function InAppAgentWindow(props: InAppAgentWindowProps) {
/>
<div className="bg-muted flex min-h-9 w-full items-center justify-between gap-2 px-2 py-1.5">
<p className="text-muted-foreground flex min-w-0 items-center gap-1 text-xs">
- <Info aria-hidden="true" className="size-3 shrink-0" />
+ <Info aria-hidden="true" className="icon-sm shrink-0" />
<span className="truncate" title={screenContextNotice}>
{screenContextNotice}
</span>
@@ -1640,7 +1646,7 @@ export function InAppAgentWindow(props: InAppAgentWindowProps) {
executionStop?.onStop();
}}
>
- <Square className="text-muted-foreground size-3 fill-current" />
+ <Square className="icon-base text-muted-foreground fill-current" />
</Button>
) : (
<Button
@@ -1650,7 +1656,7 @@ export function InAppAgentWindow(props: InAppAgentWindowProps) {
aria-label="Send message"
disabled={isSubmitDisabled || !input.trim()}
>
- <SendHorizontal className="size-3" />
+ <SendHorizontal className="icon-base" />
</Button>
)}
</div>
diff --git a/web/src/features/llm-api-key/components/TypeSafeUpstreamCards/TypeSafeUpstreamCards.tsx b/web/src/features/llm-api-key/components/TypeSafeUpstreamCards/TypeSafeUpstreamCards.tsx
index 29096c5b42..68a993c66d 100644
--- a/web/src/features/llm-api-key/components/TypeSafeUpstreamCards/TypeSafeUpstreamCards.tsx
+++ b/web/src/features/llm-api-key/components/TypeSafeUpstreamCards/TypeSafeUpstreamCards.tsx
@@ -47,7 +47,7 @@ export function TypeSafeUpstreamCards({
className="focus-visible:ring-ring data-[state=checked]:border-foreground data-[state=checked]:bg-background data-[state=unchecked]:bg-muted/30 data-[state=unchecked]:hover:bg-muted/50 relative flex min-w-0 flex-col items-start gap-1 rounded-md border p-3 pr-7 text-left transition-colors focus:outline-hidden focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50"
>
<RadioGroupPrimitive.Indicator className="bg-foreground text-background absolute top-2 right-2 flex h-4 w-4 items-center justify-center rounded-full">
- <Check className="h-3 w-3" aria-hidden="true" />
+ <Check className="icon-sm" aria-hidden="true" />
</RadioGroupPrimitive.Indicator>
<span className="text-sm leading-none font-bold">{label}</span>
<span className="text-muted-foreground text-xs">
diff --git a/web/src/features/mixpanel-integration/MixpanelIntegrationPage.tsx b/web/src/features/mixpanel-integration/MixpanelIntegrationPage.tsx
index 09594ac7eb..dc20c6e783 100644
--- a/web/src/features/mixpanel-integration/MixpanelIntegrationPage.tsx
+++ b/web/src/features/mixpanel-integration/MixpanelIntegrationPage.tsx
@@ -314,7 +314,7 @@ const MixpanelIntegrationSettingsForm = ({
Export Source
<Tooltip>
<TooltipTrigger>
- <Info className="text-muted-foreground h-3.5 w-3.5" />
+ <Info className="text-muted-foreground icon-base" />
</TooltipTrigger>
<TooltipContent
side="bottom"
@@ -336,7 +336,7 @@ const MixpanelIntegrationSettingsForm = ({
className="text-muted-foreground hover:text-primary inline-flex items-center gap-1 text-xs hover:underline"
>
For further information see
- <ExternalLink className="h-3 w-3" />
+ <ExternalLink className="icon-sm" />
</a>
</div>
</TooltipContent>
diff --git a/web/src/features/models/ModelDefinitionsTable/ConnectedModelDefinitionsTable.tsx b/web/src/features/models/ModelDefinitionsTable/ConnectedModelDefinitionsTable.tsx
index d7433668c2..93059c54a8 100644
--- a/web/src/features/models/ModelDefinitionsTable/ConnectedModelDefinitionsTable.tsx
+++ b/web/src/features/models/ModelDefinitionsTable/ConnectedModelDefinitionsTable.tsx
@@ -180,14 +180,14 @@ export function ConnectedModelDefinitionsTable({
id: "test-model-match",
label: "Test Model Match",
variant: "secondary",
- icon: <FlaskConical className="h-4 w-4" />,
+ icon: <FlaskConical className="icon-base" />,
onClick: openTestMatchDialog,
},
{
id: "add-model-definition",
label: "Add Model Definition",
variant: "secondary",
- icon: <PlusIcon className="h-4 w-4" />,
+ icon: <PlusIcon className="icon-base" />,
hasAccess: hasWriteAccess,
trackingEventName: "models:new_form_open",
onClick: openCreateDialog,
diff --git a/web/src/features/models/ModelDetailPage.tsx b/web/src/features/models/ModelDetailPage.tsx
index 774735fb86..ea33ea8e41 100644
--- a/web/src/features/models/ModelDetailPage.tsx
+++ b/web/src/features/models/ModelDetailPage.tsx
@@ -231,7 +231,7 @@ export default function ModelDetailPage() {
className="text-muted-foreground hover:text-accent-foreground inline-flex h-auto items-center gap-1.5 p-0 text-xs hover:bg-transparent"
size="sm"
>
- <InfoIcon className="h-3 w-3" />
+ <InfoIcon className="icon-base text-icon-foreground" />
<span>Conditions</span>
</Button>
</HoverCardTrigger>
@@ -307,7 +307,7 @@ export default function ModelDetailPage() {
className="flex items-center gap-1"
>
<span className="text-sm">View all</span>
- <SquareArrowOutUpRight className="h-4 w-4" />
+ <SquareArrowOutUpRight className="icon-base text-icon-foreground" />
</Link>
</Button>
</CardTitle>
diff --git a/web/src/features/models/components/PriceBreakdownTooltip.tsx b/web/src/features/models/components/PriceBreakdownTooltip.tsx
index 4c84e722b5..745cade83b 100644
--- a/web/src/features/models/components/PriceBreakdownTooltip.tsx
+++ b/web/src/features/models/components/PriceBreakdownTooltip.tsx
@@ -72,7 +72,7 @@ export const PriceBreakdownTooltip = ({
className="flex cursor-pointer items-center gap-2 pr-4 text-xs"
onClick={() => setIsOpen(!isOpen)}
>
- <InfoIcon className="h-3 w-3" />
+ <InfoIcon className="icon-sm" />
{Object.keys(prices).length} prices set
</TooltipTrigger>
<TooltipContent className="min-w-64 grow p-4">
diff --git a/web/src/features/models/components/PriceUnitSelector.tsx b/web/src/features/models/components/PriceUnitSelector.tsx
index aa0b8d93cf..42cec6a5b7 100644
--- a/web/src/features/models/components/PriceUnitSelector.tsx
+++ b/web/src/features/models/components/PriceUnitSelector.tsx
@@ -24,7 +24,7 @@ export const PriceUnitSelector = () => {
<Popover>
<PopoverTrigger asChild>
<Button size="icon" variant="ghost">
- <ChevronDownIcon className="h-4 w-4" />
+ <ChevronDownIcon className="icon-base text-icon-foreground" />
</Button>
</PopoverTrigger>
<PopoverContent className="w-[200px] p-0">
diff --git a/web/src/features/models/components/PricingSection/PricingSection.tsx b/web/src/features/models/components/PricingSection/PricingSection.tsx
index 03b29c2fcc..57cfc73e48 100644
--- a/web/src/features/models/components/PricingSection/PricingSection.tsx
+++ b/web/src/features/models/components/PricingSection/PricingSection.tsx
@@ -116,7 +116,7 @@ export function PricingSection({ form }: PricingSectionProps) {
/>
<Button type="button" variant="ghost" onClick={addTier}>
- <PlusCircle className="mr-2 h-4 w-4" />
+ <PlusCircle className="icon-base text-icon-foreground mr-2" />
Add Custom Pricing Tier
</Button>
</div>
@@ -168,7 +168,7 @@ export function PricingSection({ form }: PricingSectionProps) {
</AccordionPrimitive.Root>
<Button type="button" variant="outline" onClick={addTier}>
- <PlusCircle className="mr-2 h-4 w-4" />
+ <PlusCircle className="icon-base text-icon-foreground mr-2" />
Add Custom Tier
</Button>
</div>
diff --git a/web/src/features/models/components/PricingSection/components/TierAccordionItem.tsx b/web/src/features/models/components/PricingSection/components/TierAccordionItem.tsx
index 4d917cbc66..7643e28a3a 100644
--- a/web/src/features/models/components/PricingSection/components/TierAccordionItem.tsx
+++ b/web/src/features/models/components/PricingSection/components/TierAccordionItem.tsx
@@ -70,7 +70,7 @@ export function TierAccordionItem({
remove(index);
}}
>
- <Trash2 className="h-4 w-4" />
+ <Trash2 className="icon-base text-icon-foreground" />
</Button>
)}
</div>
diff --git a/web/src/features/models/components/PricingSection/components/TierConditionsEditor.tsx b/web/src/features/models/components/PricingSection/components/TierConditionsEditor.tsx
index b742484bbf..4285032d63 100644
--- a/web/src/features/models/components/PricingSection/components/TierConditionsEditor.tsx
+++ b/web/src/features/models/components/PricingSection/components/TierConditionsEditor.tsx
@@ -62,7 +62,7 @@ export function TierConditionsEditor({
})
}
>
- <PlusCircle className="mr-1 h-4 w-4" />
+ <PlusCircle className="icon-base text-icon-foreground mr-1" />
Add Condition
</Button>
</div>
@@ -90,7 +90,7 @@ export function TierConditionsEditor({
size="sm"
onClick={() => remove(conditionIndex)}
>
- <Trash2 className="h-4 w-4" />
+ <Trash2 className="icon-base text-icon-foreground" />
</Button>
</div>
diff --git a/web/src/features/models/components/PricingSection/components/TierPriceEditor.tsx b/web/src/features/models/components/PricingSection/components/TierPriceEditor.tsx
index daf94f6e9f..84a959f546 100644
--- a/web/src/features/models/components/PricingSection/components/TierPriceEditor.tsx
+++ b/web/src/features/models/components/PricingSection/components/TierPriceEditor.tsx
@@ -127,7 +127,7 @@ export function TierPriceEditor({
disabled={usageTypeRows.length <= 1}
onClick={() => onRemoveUsageType(index)}
>
- <MinusCircle className="h-4 w-4" />
+ <MinusCircle className="icon-base text-icon-foreground" />
</Button>
)}
</div>
@@ -140,7 +140,7 @@ export function TierPriceEditor({
onClick={onAddUsageType}
className="flex items-center gap-1"
>
- <PlusCircle className="h-4 w-4" />
+ <PlusCircle className="icon-base text-icon-foreground" />
<span>Add Price</span>
</Button>
)}
diff --git a/web/src/features/models/components/ProvidedModelNameCell.tsx b/web/src/features/models/components/ProvidedModelNameCell.tsx
index 9500a47e8a..a6f7b288f5 100644
--- a/web/src/features/models/components/ProvidedModelNameCell.tsx
+++ b/web/src/features/models/components/ProvidedModelNameCell.tsx
@@ -64,7 +64,7 @@ export function ProvidedModelNameCell({
className="inline-flex max-w-full min-w-0 cursor-pointer items-center gap-1 text-left"
>
<IdTableCell value={modelName} />
- <PlusCircle className="h-3.5 w-3.5 shrink-0" />
+ <PlusCircle className="icon-base shrink-0" />
</button>
)}
</UpsertModelFormDialogController>
diff --git a/web/src/features/models/components/test-match/NoMatchDisplay.tsx b/web/src/features/models/components/test-match/NoMatchDisplay.tsx
index 10840b57ad..adf47724bc 100644
--- a/web/src/features/models/components/test-match/NoMatchDisplay.tsx
+++ b/web/src/features/models/components/test-match/NoMatchDisplay.tsx
@@ -17,7 +17,7 @@ export function NoMatchDisplay({ modelName }: NoMatchDisplayProps) {
<Card className="border-destructive/50 bg-destructive/5">
<CardHeader>
<CardTitle className="text-destructive flex items-center gap-2 text-base">
- <AlertCircle className="h-5 w-5" />
+ <AlertCircle className="icon-lg" />
No Match Found
</CardTitle>
</CardHeader>
diff --git a/web/src/features/models/components/test-match/StringMapEditor.tsx b/web/src/features/models/components/test-match/StringMapEditor.tsx
index 218e7e397c..8608cd3101 100644
--- a/web/src/features/models/components/test-match/StringMapEditor.tsx
+++ b/web/src/features/models/components/test-match/StringMapEditor.tsx
@@ -61,7 +61,7 @@ export function StringMapEditor({
updateRows(entries.filter((_, i) => i !== index))
}
>
- <Trash2 className="h-4 w-4" />
+ <Trash2 className="icon-base text-icon-foreground" />
</Button>
</div>
))}
@@ -74,7 +74,7 @@ export function StringMapEditor({
onClick={() => updateRows([...entries, ["new_key", ""]])}
className="w-full"
>
- <PlusCircle className="mr-2 h-4 w-4" />
+ <PlusCircle className="icon-base text-icon-foreground mr-2" />
Add Attribute
</Button>
</div>
diff --git a/web/src/features/models/components/test-match/TestModelMatchButton.tsx b/web/src/features/models/components/test-match/TestModelMatchButton.tsx
index 0156a75a89..f1ed79f3b6 100644
--- a/web/src/features/models/components/test-match/TestModelMatchButton.tsx
+++ b/web/src/features/models/components/test-match/TestModelMatchButton.tsx
@@ -21,7 +21,7 @@ export function TestModelMatchButton({
<>
<ActionButton
variant={variant ?? "secondary"}
- icon={<FlaskConical className="h-4 w-4" />}
+ icon={<FlaskConical className="icon-base" />}
onClick={() => setOpen(true)}
data-testid="test-model-match-button"
>
diff --git a/web/src/features/models/components/test-match/TestModelMatchDialog.tsx b/web/src/features/models/components/test-match/TestModelMatchDialog.tsx
index fbd4ae120b..8ac957fc82 100644
--- a/web/src/features/models/components/test-match/TestModelMatchDialog.tsx
+++ b/web/src/features/models/components/test-match/TestModelMatchDialog.tsx
@@ -199,7 +199,7 @@ export function TestModelMatchDialogContent({
{data.matched ? (
<>
<div className="flex items-center gap-2 rounded-lg border border-green-200 bg-green-50 px-4 py-2.5 dark:border-green-900 dark:bg-green-950">
- <CheckCircle className="h-4 w-4 text-green-600 dark:text-green-400" />
+ <CheckCircle className="icon-base text-green-600 dark:text-green-400" />
<span className="text-sm font-bold text-green-900 dark:text-green-100">
Match Found
</span>
@@ -225,7 +225,7 @@ export function TestModelMatchDialogContent({
target="_blank"
>
View Model Details
- <SquareArrowOutUpRight className="ml-2 h-4 w-4" />
+ <SquareArrowOutUpRight className="icon-base text-icon-foreground ml-2" />
</Link>
</Button>
</div>
diff --git a/web/src/features/models/components/test-match/UsageDetailsEditor.tsx b/web/src/features/models/components/test-match/UsageDetailsEditor.tsx
index 1c8deb26f1..2741a1e88d 100644
--- a/web/src/features/models/components/test-match/UsageDetailsEditor.tsx
+++ b/web/src/features/models/components/test-match/UsageDetailsEditor.tsx
@@ -131,7 +131,7 @@ export function UsageDetailsEditor({
size="sm"
onClick={() => handleRemoveRow(index)}
>
- <Trash2 className="h-4 w-4" />
+ <Trash2 className="icon-base text-icon-foreground" />
</Button>
</div>
))}
@@ -144,7 +144,7 @@ export function UsageDetailsEditor({
onClick={handleAddRow}
className="w-full"
>
- <PlusCircle className="mr-2 h-4 w-4" />
+ <PlusCircle className="icon-base text-icon-foreground mr-2" />
Add Usage Type
</Button>
</div>
diff --git a/web/src/features/monitors/components/DeleteMonitorButton.tsx b/web/src/features/monitors/components/DeleteMonitorButton.tsx
index 97c929cbed..be43988cc5 100644
--- a/web/src/features/monitors/components/DeleteMonitorButton.tsx
+++ b/web/src/features/monitors/components/DeleteMonitorButton.tsx
@@ -42,7 +42,7 @@ export function DeleteMonitorButton({
title="Delete alert"
aria-label="Delete alert"
>
- <Trash2 className="text-destructive h-4 w-4" />
+ <Trash2 className="icon-base text-destructive" />
</Button>
}
/>
diff --git a/web/src/features/monitors/components/MonitorAutomationsPanel.tsx b/web/src/features/monitors/components/MonitorAutomationsPanel.tsx
index 367d2cc69b..05b5b9be7c 100644
--- a/web/src/features/monitors/components/MonitorAutomationsPanel.tsx
+++ b/web/src/features/monitors/components/MonitorAutomationsPanel.tsx
@@ -230,7 +230,7 @@ const MonitorAutomationsListRow = ({
<RowCheckbox checked={isSelected} />
<ActionIcon
type={automation.action.type as ActionTypes}
- className="h-3.5 w-3.5 shrink-0"
+ className="icon-base shrink-0"
/>
<span className="truncate" title={automation.name}>
{automation.name}
@@ -247,7 +247,7 @@ const RowCheckbox = ({ checked }: { checked: boolean }) => (
checked && "bg-primary text-primary-foreground",
)}
>
- {checked && <Check className="h-3.5 w-3.5" />}
+ {checked && <Check className="icon-base" />}
</span>
);
@@ -314,7 +314,7 @@ const AddAutomationDropdown = ({
className={fullWidth ? "w-full" : undefined}
{...getTriggerProps()}
>
- <Plus className="mr-2 h-4 w-4" />
+ <Plus className="icon-base text-icon-foreground mr-2" />
Automation
</Button>
)}
diff --git a/web/src/features/monitors/components/MonitorForm.tsx b/web/src/features/monitors/components/MonitorForm.tsx
index 54348d514b..7d64f75f00 100644
--- a/web/src/features/monitors/components/MonitorForm.tsx
+++ b/web/src/features/monitors/components/MonitorForm.tsx
@@ -855,7 +855,7 @@ export const MonitorForm = ({
size="sm"
className="gap-1"
>
- <Plus className="h-3 w-3" />
+ <Plus className="icon-base" />
Add tag
</Button>
}
@@ -944,7 +944,7 @@ const Header = ({
{step}
</span>
) : null}
- {Icon ? <Icon className="h-5 w-5" aria-hidden="true" /> : null}
+ {Icon ? <Icon className="icon-lg" aria-hidden="true" /> : null}
{title}
</h3>
</div>
diff --git a/web/src/features/monitors/components/MonitorsOnboarding.tsx b/web/src/features/monitors/components/MonitorsOnboarding.tsx
index 2cf1667d6e..feb3e7624e 100644
--- a/web/src/features/monitors/components/MonitorsOnboarding.tsx
+++ b/web/src/features/monitors/components/MonitorsOnboarding.tsx
@@ -21,18 +21,18 @@ const channels: OnboardingChannel[] = [
actionType: "SLACK",
label: "Connect Slack",
// eslint-disable-next-line @typescript-eslint/no-deprecated -- brand icon retained for parity with MonitorAutomationsPanel.
- icon: <Slack className="h-4 w-4" aria-hidden="true" />,
+ icon: <Slack className="icon-base" aria-hidden="true" />,
},
{
actionType: "WEBHOOK",
label: "Connect Webhooks",
- icon: <Webhook className="h-4 w-4" aria-hidden="true" />,
+ icon: <Webhook className="icon-base" aria-hidden="true" />,
},
{
actionType: "GITHUB_DISPATCH",
label: "Connect Github Actions",
// eslint-disable-next-line @typescript-eslint/no-deprecated -- see Slack note above.
- icon: <Github className="h-4 w-4" aria-hidden="true" />,
+ icon: <Github className="icon-base" aria-hidden="true" />,
},
];
@@ -89,7 +89,7 @@ export function MonitorsOnboarding({
content: (
<ActionButton
hasAccess={hasCUDAccess}
- icon={<Plus className="h-4 w-4" aria-hidden="true" />}
+ icon={<Plus className="icon-base" aria-hidden="true" />}
href={`/project/${projectId}/alerts/new`}
variant="default"
size="lg"
diff --git a/web/src/features/monitors/components/MonitorsTable.tsx b/web/src/features/monitors/components/MonitorsTable.tsx
index 4d77ebc7f1..f57a8354d1 100644
--- a/web/src/features/monitors/components/MonitorsTable.tsx
+++ b/web/src/features/monitors/components/MonitorsTable.tsx
@@ -422,7 +422,10 @@ function MonitorRowActions({
href={monitorHref(projectId, monitor.id)}
onClick={(e) => e.stopPropagation()}
>
- <SquarePen className="h-4 w-4" aria-hidden="true" />
+ <SquarePen
+ className="icon-base text-icon-foreground"
+ aria-hidden="true"
+ />
{collapsed ? <span className="ml-2">Edit</span> : null}
</Link>
</Button>
@@ -442,9 +445,15 @@ function MonitorRowActions({
}}
>
{isPaused ? (
- <PlayCircle className="h-4.5 w-4.5" aria-hidden="true" />
+ <PlayCircle
+ className="icon-lg text-icon-foreground"
+ aria-hidden="true"
+ />
) : (
- <PauseCircle className="h-4.5 w-4.5" aria-hidden="true" />
+ <PauseCircle
+ className="icon-lg text-icon-foreground"
+ aria-hidden="true"
+ />
)}
{collapsed ? (
<span className="ml-2">{isPaused ? "Resume" : "Pause"}</span>
@@ -470,7 +479,7 @@ function MonitorRowActions({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button size="xs" variant="ghost" aria-label="Alert actions">
- <MoreVertical className="h-4 w-4" />
+ <MoreVertical className="icon-sm text-icon-foreground" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className="flex flex-col *:w-full *:justify-start">
diff --git a/web/src/features/monitors/pages/ListMonitorsPage.tsx b/web/src/features/monitors/pages/ListMonitorsPage.tsx
index ff0376717f..1d604f7b46 100644
--- a/web/src/features/monitors/pages/ListMonitorsPage.tsx
+++ b/web/src/features/monitors/pages/ListMonitorsPage.tsx
@@ -101,7 +101,12 @@ const MainPage = ({ projectId }: { projectId: string }) => {
<FilterToggleButton className="md:hidden" />
<AutomationButton projectId={projectId} />
<ActionButton
- icon={<PlusIcon className="h-4 w-4" aria-hidden="true" />}
+ icon={
+ <PlusIcon
+ className="icon-base text-icon-foreground"
+ aria-hidden="true"
+ />
+ }
hasAccess={hasCUDAccess}
usageLimit={
typeof monitorEntitlementLimit === "number"
diff --git a/web/src/features/navigate-detail-pages/DetailPageNav.tsx b/web/src/features/navigate-detail-pages/DetailPageNav.tsx
index d3ada1dadd..5f2cb05c39 100644
--- a/web/src/features/navigate-detail-pages/DetailPageNav.tsx
+++ b/web/src/features/navigate-detail-pages/DetailPageNav.tsx
@@ -139,7 +139,7 @@ export const DetailPageNav = (props: {
<HeaderActionButton
label="Navigate up"
shortcut="K"
- icon={<ArrowUp className="h-4 w-4" />}
+ icon={<ArrowUp className="icon-base" />}
active={shortcutPulse === "previous"}
disabled={!previousPageEntry}
onClick={() => {
@@ -151,7 +151,7 @@ export const DetailPageNav = (props: {
<HeaderActionButton
label="Navigate down"
shortcut="J"
- icon={<ArrowDown className="h-4 w-4" />}
+ icon={<ArrowDown className="icon-base" />}
active={shortcutPulse === "next"}
disabled={!nextPageEntry}
onClick={() => {
@@ -185,7 +185,7 @@ export const DetailPageNav = (props: {
}
}}
>
- <ArrowUp className="h-4 w-4" />
+ <ArrowUp className="icon-base text-icon-foreground" />
<span className="hidden md:inline-flex">
<KeyboardShortcut keys={["K"]} />
</span>
@@ -208,7 +208,7 @@ export const DetailPageNav = (props: {
}
}}
>
- <ArrowDown className="h-4 w-4" />
+ <ArrowDown className="icon-base text-icon-foreground" />
<span className="hidden md:inline-flex">
<KeyboardShortcut keys={["J"]} />
</span>
diff --git a/web/src/features/notifications/ErrorNotification.tsx b/web/src/features/notifications/ErrorNotification.tsx
index 2fa6cc1f51..44fd2b212c 100644
--- a/web/src/features/notifications/ErrorNotification.tsx
+++ b/web/src/features/notifications/ErrorNotification.tsx
@@ -37,7 +37,7 @@ export const ErrorNotification: React.FC<ErrorNotificationProps> = ({
<div className="flex justify-between">
<div className="flex min-w-[300px] flex-1 flex-col gap-2">
<div className="flex items-center gap-2">
- <AlertTriangle size={20} className={textColor} />
+ <AlertTriangle className={`icon-lg ${textColor}`} />
<div className={`m-0 text-sm leading-tight font-bold ${textColor}`}>
{error}
</div>
@@ -68,7 +68,11 @@ export const ErrorNotification: React.FC<ErrorNotificationProps> = ({
aria-label="Copy error ID"
title="Copy error ID"
>
- {isCopied ? <Check size={14} /> : <Copy size={14} />}
+ {isCopied ? (
+ <Check className="icon-base" />
+ ) : (
+ <Copy className="icon-base" />
+ )}
</button>
</div>
)}
@@ -116,7 +120,7 @@ export const ErrorNotification: React.FC<ErrorNotificationProps> = ({
}}
aria-label="Close"
>
- <X size={14} />
+ <X className="icon-base" />
</button>
</div>
);
diff --git a/web/src/features/notifications/SuccessNotification.tsx b/web/src/features/notifications/SuccessNotification.tsx
index 41617db858..c6ce843568 100644
--- a/web/src/features/notifications/SuccessNotification.tsx
+++ b/web/src/features/notifications/SuccessNotification.tsx
@@ -21,7 +21,7 @@ export const SuccessNotification: React.FC<SuccessNotificationProps> = ({
<div className="flex justify-between">
<div className="flex min-w-[300px] flex-1 flex-col gap-2">
<div className="flex items-center gap-2">
- <BadgeCheck size={20} className="text-primary-foreground" />
+ <BadgeCheck className="icon-lg text-primary-foreground" />
<div className="text-primary-foreground m-0 text-sm leading-tight font-bold">
{title}
</div>
@@ -44,7 +44,7 @@ export const SuccessNotification: React.FC<SuccessNotificationProps> = ({
onClick={onDismiss}
aria-label="Close"
>
- <X size={14} />
+ <X className="icon-base" />
</button>
</div>
);
diff --git a/web/src/features/notifications/components/ProjectNotificationChannelsList.tsx b/web/src/features/notifications/components/ProjectNotificationChannelsList.tsx
index b614f1c6e3..45c4e7e348 100644
--- a/web/src/features/notifications/components/ProjectNotificationChannelsList.tsx
+++ b/web/src/features/notifications/components/ProjectNotificationChannelsList.tsx
@@ -52,9 +52,9 @@ export function ProjectNotificationChannelsList({
>
<div className="flex min-w-0 items-center gap-2">
{channel.action.type === "SLACK" ? (
- <SiSlack className="h-4 w-4 shrink-0" />
+ <SiSlack className="icon-base shrink-0" />
) : (
- <Webhook className="h-4 w-4 shrink-0" />
+ <Webhook className="icon-base shrink-0" />
)}
<span
className="truncate text-sm font-bold"
@@ -70,7 +70,7 @@ export function ProjectNotificationChannelsList({
onClick={() => onEdit(channel)}
title="Edit channel"
>
- <Pencil className="h-4 w-4" />
+ <Pencil className="icon-base text-icon-foreground" />
</Button>
<Button
variant="ghost"
@@ -79,7 +79,7 @@ export function ProjectNotificationChannelsList({
onClick={() => onDelete(channel.id)}
title="Delete channel"
>
- <Trash2 className="h-4 w-4" />
+ <Trash2 className="icon-base text-icon-foreground" />
</Button>
</div>
</div>
@@ -91,7 +91,7 @@ export function ProjectNotificationChannelsList({
{!isLoading && !channels?.length && (
<div>
<Button variant="secondary" onClick={onAdd}>
- <Plus className="mr-2 h-4 w-4" />
+ <Plus className="icon-base mr-2" />
Add channel
</Button>
</div>
diff --git a/web/src/features/onboarding/components/OnboardingSurvey.tsx b/web/src/features/onboarding/components/OnboardingSurvey.tsx
index 90157fe7d0..7256972368 100644
--- a/web/src/features/onboarding/components/OnboardingSurvey.tsx
+++ b/web/src/features/onboarding/components/OnboardingSurvey.tsx
@@ -139,7 +139,7 @@ export function OnboardingSurvey(props: OnboardingSurveyProps) {
className="text-primary inline-flex items-center gap-1 hover:underline"
>
Learn more
- <ExternalLink className="h-3 w-3" />
+ <ExternalLink className="icon-sm" />
</a>
</p>
</div>
diff --git a/web/src/features/organizations/components/AIFeatureSwitch.tsx b/web/src/features/organizations/components/AIFeatureSwitch.tsx
index 337119517a..70a2d589a3 100644
--- a/web/src/features/organizations/components/AIFeatureSwitch.tsx
+++ b/web/src/features/organizations/components/AIFeatureSwitch.tsx
@@ -138,7 +138,7 @@ export default function AIFeatureSwitch() {
className="text-primary inline-flex items-center gap-1 hover:underline"
>
More details in the docs here.
- <ExternalLink className="h-3 w-3" />
+ <ExternalLink className="icon-sm" />
</a>
</p>
) : (
@@ -157,7 +157,7 @@ export default function AIFeatureSwitch() {
/>
{!hasAccess && (
<span title="No access">
- <LockIcon className="text-muted absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2 transform" />
+ <LockIcon className="text-muted icon-base absolute top-1/2 right-3 -translate-y-1/2 transform" />
</span>
)}
</div>
@@ -183,7 +183,7 @@ export default function AIFeatureSwitch() {
/>
{!hasAccess && (
<span title="No access">
- <LockIcon className="text-muted absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2 transform" />
+ <LockIcon className="text-muted icon-base absolute top-1/2 right-3 -translate-y-1/2 transform" />
</span>
)}
</div>
@@ -226,7 +226,7 @@ export default function AIFeatureSwitch() {
className="text-primary inline-flex items-center gap-1 hover:underline"
>
Learn more in the docs.
- <ExternalLink className="h-3 w-3" />
+ <ExternalLink className="icon-sm" />
</a>
</>
)}
diff --git a/web/src/features/organizations/components/AIFeaturesDisabledNotice.tsx b/web/src/features/organizations/components/AIFeaturesDisabledNotice.tsx
index b0137ea0f8..3d87590744 100644
--- a/web/src/features/organizations/components/AIFeaturesDisabledNotice.tsx
+++ b/web/src/features/organizations/components/AIFeaturesDisabledNotice.tsx
@@ -45,7 +45,7 @@ export function AIFeaturesDisabledNotice({
className="w-fit"
>
Enable in Organization Settings
- <ExternalLink className="ml-2 h-4 w-4" />
+ <ExternalLink className="icon-base text-icon-foreground ml-2" />
</Button>
) : null}
</div>
diff --git a/web/src/features/organizations/components/NewOrganizationForm.tsx b/web/src/features/organizations/components/NewOrganizationForm.tsx
index 5d9b2e82ba..2e06a453ec 100644
--- a/web/src/features/organizations/components/NewOrganizationForm.tsx
+++ b/web/src/features/organizations/components/NewOrganizationForm.tsx
@@ -93,7 +93,7 @@ export const NewOrganizationForm = ({
className="text-primary inline-flex items-center gap-1 hover:underline"
>
Learn more
- <ExternalLink className="h-3 w-3" />
+ <ExternalLink className="icon-sm" />
</a>
)}
</p>
diff --git a/web/src/features/organizations/components/ProjectOverview.tsx b/web/src/features/organizations/components/ProjectOverview.tsx
index 7dfda6ea13..f87fd6d6a6 100644
--- a/web/src/features/organizations/components/ProjectOverview.tsx
+++ b/web/src/features/organizations/components/ProjectOverview.tsx
@@ -148,7 +148,7 @@ const OrganizationProjectTiles = ({
</Button>
<Button asChild variant="ghost">
<Link href={`/project/${project.id}/settings`}>
- <Settings size={16} />
+ <Settings className="icon-base text-icon-foreground" />
</Link>
</Button>
</CardFooter>
@@ -214,26 +214,26 @@ const OrganizationActionButtons = ({
<>
<Button asChild variant="ghost">
<Link href={`/organization/${orgId}/settings`}>
- <Settings size={14} />
+ <Settings className="icon-base text-icon-foreground" />
</Link>
</Button>
{membersViewAccess && (
<Button asChild variant="ghost">
<Link href={`/organization/${orgId}/settings/members`}>
- <Users size={14} />
+ <Users className="icon-base text-icon-foreground" />
</Link>
</Button>
)}
{createProjectAccess ? (
<Button asChild variant={primaryButtonVariant}>
<Link href={createProjectRoute(orgId)}>
- <PlusIcon className="mr-2 h-4 w-4" aria-hidden="true" />
+ <PlusIcon className="icon-base mr-2" aria-hidden="true" />
New project
</Link>
</Button>
) : (
<Button disabled variant={primaryButtonVariant}>
- <LockIcon className="mr-2 h-4 w-4" aria-hidden="true" />
+ <LockIcon className="icon-base mr-2" aria-hidden="true" />
New project
</Button>
)}
@@ -381,7 +381,10 @@ export const OrganizationProjectOverview = () => {
{canCreateOrg && (
<Button data-testid="create-organization-btn" asChild>
<Link href={createOrganizationRoute}>
- <PlusIcon className="mr-1.5 h-4 w-4" aria-hidden="true" />
+ <PlusIcon
+ className="icon-base text-icon-foreground mr-1.5"
+ aria-hidden="true"
+ />
New Organization
</Link>
</Button>
@@ -451,20 +454,20 @@ const Onboarding = () => {
{canCreateOrgs && (
<Button data-testid="create-project-btn" asChild>
<Link href={createOrganizationRoute}>
- <PlusIcon className="mr-2 h-4 w-4" aria-hidden="true" />
+ <PlusIcon className="icon-base mr-2" aria-hidden="true" />
New Organization
</Link>
</Button>
)}
<Button variant="secondary" asChild>
<Link href="https://langfuse.com/docs" target="_blank">
- <BookOpen className="mr-2 h-4 w-4" aria-hidden="true" />
+ <BookOpen className="icon-base mr-2" aria-hidden="true" />
Docs
</Link>
</Button>
<Button variant="secondary" asChild>
<Link href="https://langfuse.com/docs/ask-ai" target="_blank">
- <MessageSquareText className="mr-2 h-4 w-4" aria-hidden="true" />
+ <MessageSquareText className="icon-base mr-2" aria-hidden="true" />
Ask AI
</Link>
</Button>
diff --git a/web/src/features/organizations/components/RenameOrganization.tsx b/web/src/features/organizations/components/RenameOrganization.tsx
index 330e445be0..67ebdbfb0a 100644
--- a/web/src/features/organizations/components/RenameOrganization.tsx
+++ b/web/src/features/organizations/components/RenameOrganization.tsx
@@ -101,7 +101,7 @@ export default function RenameOrganization() {
/>
{!hasAccess && (
<span title="No access">
- <LockIcon className="text-muted absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2 transform" />
+ <LockIcon className="text-muted icon-base absolute top-1/2 right-3 -translate-y-1/2 transform" />
</span>
)}
</div>
diff --git a/web/src/features/payment-banner/PaymentBannerView.tsx b/web/src/features/payment-banner/PaymentBannerView.tsx
index 1702c7f99a..478993ebba 100644
--- a/web/src/features/payment-banner/PaymentBannerView.tsx
+++ b/web/src/features/payment-banner/PaymentBannerView.tsx
@@ -54,7 +54,7 @@ export function PaymentBannerView({
>
<div className="flex min-w-0 flex-1 items-start gap-3 sm:items-center">
{/* mt-0.5 optically centers the 16px icon on the first 20px text line */}
- <AlertCircle className="mt-0.5 h-4 w-4 shrink-0 sm:mt-0" />
+ <AlertCircle className="icon-base mt-0.5 shrink-0 sm:mt-0" />
<p className="min-w-0 text-sm wrap-break-word">
<span className="font-bold">Billing Issue:</span>{" "}
{`We have problems collecting subscription payment for your organization '${organizationName}'. Please update your payment information to continue using Langfuse.`}
@@ -67,7 +67,7 @@ export function PaymentBannerView({
className="shrink-0 self-end sm:self-auto"
>
<Link href={billingSettingsHref}>
- <CreditCard className="mr-2 h-4 w-4" />
+ <CreditCard className="icon-base text-icon-foreground mr-2" />
Update Payment
</Link>
</Button>
diff --git a/web/src/features/playground/page/components/ConfigurationDropdowns.tsx b/web/src/features/playground/page/components/ConfigurationDropdowns.tsx
index db211aa552..7a8949c010 100644
--- a/web/src/features/playground/page/components/ConfigurationDropdowns.tsx
+++ b/web/src/features/playground/page/components/ConfigurationDropdowns.tsx
@@ -80,19 +80,19 @@ export const ConfigurationDropdowns: React.FC = () => {
abbreviation?: string,
) => {
if (isVeryCompact) {
- return <IconComponent className="h-3 w-3" />;
+ return <IconComponent className="icon-base" />;
}
if (isCompact) {
return (
<>
- <IconComponent className="h-3 w-3" />
+ <IconComponent className="icon-base" />
<span className="text-sm">{abbreviation ?? fullText}</span>
</>
);
}
return (
<>
- <IconComponent className="h-3 w-3" />
+ <IconComponent className="icon-base" />
<span className="text-sm">{fullText}</span>
</>
);
diff --git a/web/src/features/playground/page/components/CreateOrEditLLMSchemaDialog.tsx b/web/src/features/playground/page/components/CreateOrEditLLMSchemaDialog.tsx
index 4746665e86..0fef922552 100644
--- a/web/src/features/playground/page/components/CreateOrEditLLMSchemaDialog.tsx
+++ b/web/src/features/playground/page/components/CreateOrEditLLMSchemaDialog.tsx
@@ -225,7 +225,7 @@ export const CreateOrEditLLMSchemaDialog: React.FC<
className="flex items-center"
>
See JSON Schema examples here
- <ArrowUpRight className="h-3 w-3" />
+ <ArrowUpRight className="icon-sm" />
</a>
</FormDescription>
<FormControl>
diff --git a/web/src/features/playground/page/components/CreateOrEditLLMToolDialog.tsx b/web/src/features/playground/page/components/CreateOrEditLLMToolDialog.tsx
index 0ba4dd4889..d24005769d 100644
--- a/web/src/features/playground/page/components/CreateOrEditLLMToolDialog.tsx
+++ b/web/src/features/playground/page/components/CreateOrEditLLMToolDialog.tsx
@@ -224,7 +224,7 @@ export const CreateOrEditLLMToolDialog: React.FC<CreateOrEditLLMToolDialog> = (
className="flex items-center"
>
See JSON Schema examples here
- <ArrowUpRight className="h-3 w-3" />
+ <ArrowUpRight className="icon-sm" />
</a>
</FormDescription>
<FormControl>
diff --git a/web/src/features/playground/page/components/GenerationOutput.tsx b/web/src/features/playground/page/components/GenerationOutput.tsx
index 6b77c1d43e..7b66f6a534 100644
--- a/web/src/features/playground/page/components/GenerationOutput.tsx
+++ b/web/src/features/playground/page/components/GenerationOutput.tsx
@@ -59,9 +59,9 @@ export const GenerationOutput = () => {
}
}, [output]);
- const checkIcon = <Check className="h-2 w-2" />;
- const copyIcon = <Copy className="h-2 w-2" />;
- const plusIcon = <Plus className="h-2 w-2" />;
+ const checkIcon = <Check className="icon-sm" />;
+ const copyIcon = <Copy className="icon-sm" />;
+ const plusIcon = <Plus className="icon-sm" />;
const copyButton =
output || outputToolCalls.length ? (
@@ -74,7 +74,7 @@ export const GenerationOutput = () => {
}}
title="Toggle Input/Output JSON"
>
- <BracesIcon size={15} />
+ <BracesIcon className="icon-base" />
</Button>
<Button
diff --git a/web/src/features/playground/page/components/JumpToPlaygroundMenu.tsx b/web/src/features/playground/page/components/JumpToPlaygroundMenu.tsx
index b834915699..fcc2e10ee9 100644
--- a/web/src/features/playground/page/components/JumpToPlaygroundMenu.tsx
+++ b/web/src/features/playground/page/components/JumpToPlaygroundMenu.tsx
@@ -28,11 +28,11 @@ export function JumpToPlaygroundMenu({
return (
<>
<DropdownMenuItem onSelect={() => onPlaygroundAction("fresh")}>
- <Terminal className="mr-2 h-4 w-4" />
+ <Terminal className="icon-base text-icon-foreground mr-2" />
Fresh playground
</DropdownMenuItem>
<DropdownMenuItem onSelect={() => onPlaygroundAction("existing")}>
- <Terminal className="mr-2 h-4 w-4" />
+ <Terminal className="icon-base text-icon-foreground mr-2" />
Add to existing
</DropdownMenuItem>
{props.source === "generation" && (
diff --git a/web/src/features/playground/page/components/MessagePlaceholderComponent.tsx b/web/src/features/playground/page/components/MessagePlaceholderComponent.tsx
index 923415915e..ac6e57cba0 100644
--- a/web/src/features/playground/page/components/MessagePlaceholderComponent.tsx
+++ b/web/src/features/playground/page/components/MessagePlaceholderComponent.tsx
@@ -64,7 +64,7 @@ export const MessagePlaceholderComponent: React.FC<{
<div className="p-1">
<div className="mb-1 flex flex-row items-center">
<span className="flex flex-1 flex-row space-x-2 text-xs">
- <UsedIcon size={16} color={iconColor} />
+ <UsedIcon className="icon-base" color={iconColor} />
<p
className={`min-w-[90px] truncate font-mono ${hasConflict ? "text-red-500" : ""}`}
title={name}
@@ -80,7 +80,7 @@ export const MessagePlaceholderComponent: React.FC<{
onClick={() => deleteMessagePlaceholder(name)}
className="p-0"
>
- {!isUsed && <TrashIcon size={16} />}
+ {!isUsed && <TrashIcon className="icon-base text-icon-foreground" />}
</Button>
</div>
diff --git a/web/src/features/playground/page/components/Messages.tsx b/web/src/features/playground/page/components/Messages.tsx
index f97c424d48..cd5078ac46 100644
--- a/web/src/features/playground/page/components/Messages.tsx
+++ b/web/src/features/playground/page/components/Messages.tsx
@@ -73,7 +73,7 @@ const SubmitButton = () => {
className="h-8 w-8 focus:ring-0 focus:outline-hidden focus-visible:ring-0"
disabled={isStreaming}
>
- <Settings className="h-4 w-4" />
+ <Settings className="icon-base text-icon-foreground" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-52">
diff --git a/web/src/features/playground/page/components/MultiWindowPlayground.tsx b/web/src/features/playground/page/components/MultiWindowPlayground.tsx
index e5d0e41483..0219376e51 100644
--- a/web/src/features/playground/page/components/MultiWindowPlayground.tsx
+++ b/web/src/features/playground/page/components/MultiWindowPlayground.tsx
@@ -212,7 +212,7 @@ function PlaygroundWindowContent({
onClick={handleCopy}
className="h-7 gap-1.5 px-2.5 text-xs @xl:hidden"
>
- <Plus size={14} />
+ <Plus className="icon-base text-icon-foreground" />
<span className="sr-only">New split window</span>
</Button>
</TooltipTrigger>
@@ -225,7 +225,7 @@ function PlaygroundWindowContent({
onClick={handleCopy}
className="hidden h-7 gap-1.5 px-2.5 text-xs @xl:flex"
>
- <Plus size={14} />
+ <Plus className="icon-base text-icon-foreground" />
<span>New split window</span>
</Button>
</>
@@ -238,7 +238,7 @@ function PlaygroundWindowContent({
onClick={handleRemove}
className="hover:bg-destructive/10 hover:text-destructive h-6 w-6 p-0"
>
- <X size={14} />
+ <X className="icon-base" />
<span className="sr-only">Remove window</span>
</Button>
</TooltipTrigger>
diff --git a/web/src/features/playground/page/components/NoModelConfiguredAlert.tsx b/web/src/features/playground/page/components/NoModelConfiguredAlert.tsx
index 0e8a074b8d..c798b9d67a 100644
--- a/web/src/features/playground/page/components/NoModelConfiguredAlert.tsx
+++ b/web/src/features/playground/page/components/NoModelConfiguredAlert.tsx
@@ -19,7 +19,7 @@ export function NoModelConfiguredAlert({
href={`/project/${projectId}/settings/llm-connections`}
className="font-bold underline underline-offset-4 hover:text-yellow-900 dark:hover:text-yellow-300"
>
- <Settings className="inline h-3 w-3" /> LLM Connection Settings
+ <Settings className="icon-sm inline" /> LLM Connection Settings
</Link>{" "}
to add an LLM API key and configure your models.
</Alert.Description>
diff --git a/web/src/features/playground/page/components/PlaygroundTools/index.tsx b/web/src/features/playground/page/components/PlaygroundTools/index.tsx
index 1c0b0b1b1c..ca472074b3 100644
--- a/web/src/features/playground/page/components/PlaygroundTools/index.tsx
+++ b/web/src/features/playground/page/components/PlaygroundTools/index.tsx
@@ -108,10 +108,7 @@ export const PlaygroundToolsPopover = ({
className="flex items-center justify-between px-1 py-2"
>
<div className="flex min-w-0 flex-1 items-center gap-2">
- <WrenchIcon
- size={12}
- className="text-muted-foreground shrink-0"
- />
+ <WrenchIcon className="icon-sm text-muted-foreground shrink-0" />
<div className="min-w-0 flex-1">
<div className="truncate font-bold" title={tool.name}>
{tool.name}
@@ -135,7 +132,7 @@ export const PlaygroundToolsPopover = ({
});
}}
>
- <PencilIcon className="h-3.5 w-3.5" />
+ <PencilIcon className="icon-base text-icon-foreground" />
</Button>
</CommandItem>
))}
@@ -153,7 +150,7 @@ export const PlaygroundToolsPopover = ({
})
}
>
- <PlusIcon className="mr-2 h-4 w-4" />
+ <PlusIcon className="icon-base text-icon-foreground mr-2" />
Create new tool
</Button>
</div>
@@ -293,10 +290,10 @@ export const PlaygroundTools = ({ onOpenToolDialog }: PlaygroundToolsProps) => {
handleRemoveTool(tool.id);
}}
>
- <MinusCircle className="h-4 w-4" />
+ <MinusCircle className="icon-base text-icon-foreground" />
</Button>
<div className="grid min-w-0 grid-cols-[auto_minmax(0,1fr)] gap-x-2 gap-y-1">
- <WrenchIcon className="text-muted-foreground mt-0.5 h-4 w-4 shrink-0" />
+ <WrenchIcon className="text-muted-foreground icon-base mt-0.5 shrink-0" />
<div className="min-w-0">
<h3
className="truncate text-sm font-bold"
diff --git a/web/src/features/playground/page/components/PromptVariableComponent.tsx b/web/src/features/playground/page/components/PromptVariableComponent.tsx
index a5c2dfa9b6..efb158caba 100644
--- a/web/src/features/playground/page/components/PromptVariableComponent.tsx
+++ b/web/src/features/playground/page/components/PromptVariableComponent.tsx
@@ -29,9 +29,9 @@ export const PromptVariableComponent: React.FC<{
deletePromptVariable(name);
};
const isUsedIcon = isUsed ? (
- <CheckCircle2 size={16} color="green" />
+ <CheckCircle2 className="icon-base" color="green" />
) : (
- <Circle size={16} color="grey" />
+ <Circle className="icon-base" color="grey" />
);
const isUsedTooltip = isUsed
? "Variable is in use"
@@ -57,7 +57,7 @@ export const PromptVariableComponent: React.FC<{
onClick={handleDeleteVariable}
className="p-0"
>
- {!isUsed && <TrashIcon size={16} />}
+ {!isUsed && <TrashIcon className="icon-base text-icon-foreground" />}
</Button>
</div>
diff --git a/web/src/features/playground/page/components/ResetPlaygroundButton.tsx b/web/src/features/playground/page/components/ResetPlaygroundButton.tsx
index a8f21712bc..1f926c75ed 100644
--- a/web/src/features/playground/page/components/ResetPlaygroundButton.tsx
+++ b/web/src/features/playground/page/components/ResetPlaygroundButton.tsx
@@ -20,7 +20,7 @@ export const ResetPlaygroundButton: React.FC = () => {
onClick={handleClick}
className="gap-1"
>
- <ListRestartIcon className="h-4 w-4" />
+ <ListRestartIcon className="icon-base text-icon-foreground" />
<span className="hidden lg:inline">Reset playground</span>
</Button>
);
diff --git a/web/src/features/playground/page/components/SaveToPromptButton.tsx b/web/src/features/playground/page/components/SaveToPromptButton.tsx
index 73b8a39342..fab4e7171e 100644
--- a/web/src/features/playground/page/components/SaveToPromptButton.tsx
+++ b/web/src/features/playground/page/components/SaveToPromptButton.tsx
@@ -104,7 +104,7 @@ export const SaveToPromptButton: React.FC<SaveToPromptButtonProps> = ({
className,
)}
>
- <Save size={14} />
+ <Save className="icon-base text-icon-foreground" />
<span className="sr-only">Save as prompt</span>
</Button>
</PopoverTrigger>
@@ -119,7 +119,7 @@ export const SaveToPromptButton: React.FC<SaveToPromptButtonProps> = ({
className,
)}
>
- <Save size={14} />
+ <Save className="icon-base text-icon-foreground" />
<span>Save as prompt</span>
</Button>
</PopoverTrigger>
@@ -157,7 +157,7 @@ export const SaveToPromptButton: React.FC<SaveToPromptButtonProps> = ({
>
<Check
className={cn(
- "mr-2 h-4 w-4",
+ "icon-base mr-2",
selectedPromptId === chatPrompt.id
? "opacity-100"
: "opacity-0",
diff --git a/web/src/features/playground/page/components/StructuredOutputSchemaSection.tsx b/web/src/features/playground/page/components/StructuredOutputSchemaSection.tsx
index fe3f7f1410..2ff9951729 100644
--- a/web/src/features/playground/page/components/StructuredOutputSchemaSection.tsx
+++ b/web/src/features/playground/page/components/StructuredOutputSchemaSection.tsx
@@ -123,7 +123,7 @@ export const StructuredOutputSchemaPopover = ({
className="flex items-center justify-between px-1 py-2"
>
<div className="flex min-w-0 flex-1 items-center gap-2">
- <BoxIcon className="text-muted-foreground h-4 w-4 shrink-0" />
+ <BoxIcon className="text-muted-foreground icon-base shrink-0" />
<div className="min-w-0 flex-1">
<div className="truncate font-bold" title={schema.name}>
{schema.name}
@@ -147,7 +147,7 @@ export const StructuredOutputSchemaPopover = ({
});
}}
>
- <PencilIcon className="h-3.5 w-3.5" />
+ <PencilIcon className="icon-base text-icon-foreground" />
</Button>
</CommandItem>
))}
@@ -161,7 +161,7 @@ export const StructuredOutputSchemaPopover = ({
className="w-full"
onClick={() => onOpenSchemaDialog({ onSave: handleSelectSchema })}
>
- <PlusIcon className="mr-2 h-4 w-4" />
+ <PlusIcon className="icon-base text-icon-foreground mr-2" />
Create new schema
</Button>
</div>
@@ -298,10 +298,10 @@ export const StructuredOutputSchemaSection = ({
handleRemoveSchema();
}}
>
- <MinusCircle className="h-4 w-4" />
+ <MinusCircle className="icon-base text-icon-foreground" />
</Button>
<div className="grid min-w-0 grid-cols-[auto_minmax(0,1fr)] gap-x-2 gap-y-1">
- <BoxIcon className="text-muted-foreground mt-0.5 h-4 w-4 shrink-0" />
+ <BoxIcon className="text-muted-foreground icon-base mt-0.5 shrink-0" />
<div className="min-w-0">
<h3
className="truncate text-sm font-bold"
diff --git a/web/src/features/playground/page/index.tsx b/web/src/features/playground/page/index.tsx
index 6b28778cf9..0f2338ec96 100644
--- a/web/src/features/playground/page/index.tsx
+++ b/web/src/features/playground/page/index.tsx
@@ -181,7 +181,7 @@ export default function PlaygroundPage() {
{globalIsExecutingAll ? (
<Spinner size="xxs" />
) : (
- <Play className="h-3 w-3" />
+ <Play className="icon-base text-icon-foreground" />
)}
<span className="hidden items-center gap-1 lg:inline-flex">
<span>Run All</span>
diff --git a/web/src/features/posthog-integration/components/PostHogIntegrationForm.tsx b/web/src/features/posthog-integration/components/PostHogIntegrationForm.tsx
index 455c432e97..7564a04eda 100644
--- a/web/src/features/posthog-integration/components/PostHogIntegrationForm.tsx
+++ b/web/src/features/posthog-integration/components/PostHogIntegrationForm.tsx
@@ -192,7 +192,7 @@ export function PostHogIntegrationForm({
className="text-muted-foreground hover:text-primary inline-flex items-center gap-1 text-xs hover:underline"
>
For further information see
- <ExternalLink className="size-3" />
+ <ExternalLink className="icon-sm" />
</a>
</div>
</div>
diff --git a/web/src/features/projects/ProjectSettingsPage.tsx b/web/src/features/projects/ProjectSettingsPage.tsx
index 397da3d5de..f504c58382 100644
--- a/web/src/features/projects/ProjectSettingsPage.tsx
+++ b/web/src/features/projects/ProjectSettingsPage.tsx
@@ -496,7 +496,7 @@ const Integrations = (props: { projectId: string }) => {
<Card className="p-3">
<div className="mb-4 flex items-center gap-2">
- <SiSlack className="text-foreground h-5 w-5" />
+ <SiSlack className="text-foreground icon-lg" />
<span className="font-bold">Slack</span>
</div>
<p className="text-primary mb-4 text-sm">
diff --git a/web/src/features/projects/components/ConfigureRetention.tsx b/web/src/features/projects/components/ConfigureRetention.tsx
index 363d6ae0e4..07fac0b63f 100644
--- a/web/src/features/projects/components/ConfigureRetention.tsx
+++ b/web/src/features/projects/components/ConfigureRetention.tsx
@@ -119,7 +119,7 @@ export default function ConfigureRetention() {
/>
{!hasAccess && (
<span title="No access">
- <LockIcon className="text-muted absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2 transform" />
+ <LockIcon className="text-muted icon-base absolute top-1/2 right-3 -translate-y-1/2 transform" />
</span>
)}
</div>
diff --git a/web/src/features/projects/components/RenameProject.tsx b/web/src/features/projects/components/RenameProject.tsx
index 65e9b61ff7..c5308cfcb7 100644
--- a/web/src/features/projects/components/RenameProject.tsx
+++ b/web/src/features/projects/components/RenameProject.tsx
@@ -99,7 +99,7 @@ export default function RenameProject() {
/>
{!hasAccess && (
<span title="No access">
- <LockIcon className="text-muted absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2 transform" />
+ <LockIcon className="text-muted icon-base absolute top-1/2 right-3 -translate-y-1/2 transform" />
</span>
)}
</div>
diff --git a/web/src/features/prompts/PromptsPage.tsx b/web/src/features/prompts/PromptsPage.tsx
index f9086689f7..245446884d 100644
--- a/web/src/features/prompts/PromptsPage.tsx
+++ b/web/src/features/prompts/PromptsPage.tsx
@@ -152,7 +152,7 @@ export default function PromptsPage() {
disabled={isExporting}
{...getTriggerProps()}
>
- <UploadIcon className="mr-1 h-4 w-4" />
+ <UploadIcon className="icon-base text-icon-foreground mr-1" />
{isExporting ? "Exporting…" : "Export"}
</Button>
)}
@@ -167,14 +167,19 @@ export default function PromptsPage() {
title={disabled?.reason}
onClick={openDialog}
>
- <Download className="mr-1 h-4 w-4" />
+ <Download className="icon-base text-icon-foreground mr-1" />
Import
</Button>
)}
</ImportPromptsButtonDialogController>
)}
<ActionButton
- icon={<PlusIcon className="h-4 w-4" aria-hidden="true" />}
+ icon={
+ <PlusIcon
+ className="icon-base text-icon-foreground"
+ aria-hidden="true"
+ />
+ }
hasAccess={hasCUDAccess}
href={`/project/${projectId}/prompts/new${folderQueryParam ? `?folder=${encodeURIComponent(folderQueryParam)}` : ""}`}
trackingEventName="prompts:new_form_open"
diff --git a/web/src/features/prompts/components/ImportPromptsButtonDialogController.tsx b/web/src/features/prompts/components/ImportPromptsButtonDialogController.tsx
index 7b63709c83..67f76e65fd 100644
--- a/web/src/features/prompts/components/ImportPromptsButtonDialogController.tsx
+++ b/web/src/features/prompts/components/ImportPromptsButtonDialogController.tsx
@@ -121,9 +121,9 @@ const ImportPromptsDialogContent: React.FC<{
className="flex items-start gap-2 py-1"
>
{r.success ? (
- <CheckCircle className="mt-0.5 h-4 w-4 shrink-0 text-green-500" />
+ <CheckCircle className="icon-base mt-0.5 shrink-0 text-green-500" />
) : (
- <XCircle className="text-destructive mt-0.5 h-4 w-4 shrink-0" />
+ <XCircle className="text-destructive icon-base mt-0.5 shrink-0" />
)}
<span className="font-mono">{r.name}</span>
{r.error && (
@@ -204,7 +204,7 @@ const ImportPromptsDialogContent: React.FC<{
>
{isImportPending ? (
<>
- <Loader2 className="mr-2 h-4 w-4 animate-spin" />
+ <Loader2 className="icon-base mr-2 animate-spin" />
Importing…
</>
) : (
diff --git a/web/src/features/prompts/components/NewPromptForm/PromptChatMessages.tsx b/web/src/features/prompts/components/NewPromptForm/PromptChatMessages.tsx
index ed83a28444..4b58f5ab57 100644
--- a/web/src/features/prompts/components/NewPromptForm/PromptChatMessages.tsx
+++ b/web/src/features/prompts/components/NewPromptForm/PromptChatMessages.tsx
@@ -160,7 +160,7 @@ export const PromptChatMessages: React.FC<PromptChatMessagesProps> = ({
className="flex items-center gap-1 px-2 py-1"
onClick={() => setIsDialogOpen(true)}
>
- <PlusIcon className="h-4 w-4" />
+ <PlusIcon className="icon-base text-icon-foreground" />
<span className="text-xs">Add prompt reference</span>
</Button>
diff --git a/web/src/features/prompts/components/NewPromptForm/index.tsx b/web/src/features/prompts/components/NewPromptForm/index.tsx
index 3d503b648f..32fc6158e7 100644
--- a/web/src/features/prompts/components/NewPromptForm/index.tsx
+++ b/web/src/features/prompts/components/NewPromptForm/index.tsx
@@ -265,7 +265,7 @@ export const NewPromptForm: React.FC<NewPromptFormProps> = (props) => {
className="flex flex-row items-center"
>
Create a new version for it here.
- <SquareArrowOutUpRight className="ml-1 h-3 w-3" />
+ <SquareArrowOutUpRight className="icon-sm ml-1" />
</Link>
) : null}
</div>
diff --git a/web/src/features/prompts/components/PromptSelectionDialog.tsx b/web/src/features/prompts/components/PromptSelectionDialog.tsx
index 768bbb028b..2511d2e742 100644
--- a/web/src/features/prompts/components/PromptSelectionDialog.tsx
+++ b/web/src/features/prompts/components/PromptSelectionDialog.tsx
@@ -182,7 +182,7 @@ export function PromptSelectionDialog({
passHref
>
<Button type="button" variant="outline" size="icon">
- <ExternalLinkIcon className="h-4 w-4" />
+ <ExternalLinkIcon className="icon-base text-icon-foreground" />
</Button>
</Link>
)}
@@ -205,7 +205,7 @@ export function PromptSelectionDialog({
className="absolute top-2 right-2"
onClick={copySelectedTag}
>
- <CopyIcon className="h-4 w-4" />
+ <CopyIcon className="icon-base text-icon-foreground" />
</Button>
</div>
<p className="text-muted-foreground text-xs">
diff --git a/web/src/features/prompts/components/ProtectedLabelsSettings.tsx b/web/src/features/prompts/components/ProtectedLabelsSettings.tsx
index adbea81b33..39b4a495c7 100644
--- a/web/src/features/prompts/components/ProtectedLabelsSettings.tsx
+++ b/web/src/features/prompts/components/ProtectedLabelsSettings.tsx
@@ -141,7 +141,7 @@ export default function ProtectedLabelsSettings({
}
}}
>
- <XIcon className="h-3 w-3" />
+ <XIcon className="icon-base text-icon-foreground" />
</Button>
)}
</StatusBadge>
@@ -196,7 +196,7 @@ export default function ProtectedLabelsSettings({
>
<Check
className={cn(
- "mr-2 h-4 w-4",
+ "icon-base mr-2",
field.value === label
? "opacity-100"
: "opacity-0",
diff --git a/web/src/features/prompts/components/SetPromptVersionLabels/LabelCommandItem.tsx b/web/src/features/prompts/components/SetPromptVersionLabels/LabelCommandItem.tsx
index 393d7933b6..2e97232859 100644
--- a/web/src/features/prompts/components/SetPromptVersionLabels/LabelCommandItem.tsx
+++ b/web/src/features/prompts/components/SetPromptVersionLabels/LabelCommandItem.tsx
@@ -31,9 +31,9 @@ export const LabelCommandItem = (props: {
)}
>
{isSelected ? (
- <CircleCheckIcon className="mr-2 h-4 w-4" />
+ <CircleCheckIcon className="icon-base text-icon-foreground mr-2" />
) : (
- <CircleIcon className="mr-2 h-4 w-4 opacity-20" />
+ <CircleIcon className="icon-base text-icon-foreground mr-2 opacity-20" />
)}
{label}
</Button>
diff --git a/web/src/features/prompts/components/SetPromptVersionLabels/index.tsx b/web/src/features/prompts/components/SetPromptVersionLabels/index.tsx
index aac6ed3ca1..1dbe84e6fd 100644
--- a/web/src/features/prompts/components/SetPromptVersionLabels/index.tsx
+++ b/web/src/features/prompts/components/SetPromptVersionLabels/index.tsx
@@ -194,7 +194,7 @@ export function SetPromptVersionLabels({
!hasAccess && "cursor-not-allowed group-hover:opacity-50",
)}
>
- <CircleFadingArrowUp className="h-3.5 w-3.5 shrink-0" />
+ <CircleFadingArrowUp className="icon-base text-icon-foreground shrink-0" />
</Button>
</div>
</PopoverTrigger>
diff --git a/web/src/features/prompts/components/delete-folder.tsx b/web/src/features/prompts/components/delete-folder.tsx
index 0a8029a3df..e88316c666 100644
--- a/web/src/features/prompts/components/delete-folder.tsx
+++ b/web/src/features/prompts/components/delete-folder.tsx
@@ -67,7 +67,7 @@ export function DeleteFolder({ folderPath }: { folderPath: string }) {
>
<DialogTrigger asChild>
<Button variant="ghost" size="xs" disabled={!hasAccess}>
- <Trash className="h-4 w-4" />
+ <Trash className="icon-sm text-icon-foreground" />
</Button>
</DialogTrigger>
<DialogContent className="sm:max-w-md">
@@ -106,9 +106,9 @@ export function DeleteFolder({ folderPath }: { folderPath: string }) {
className="text-muted-foreground flex items-center gap-2"
>
{p.row_type === "folder" ? (
- <Folder className="h-3 w-3 text-blue-500" />
+ <Folder className="icon-sm text-blue-500" />
) : (
- <FileText className="h-3 w-3" />
+ <FileText className="icon-sm" />
)}
<span className="break-all">
{folderPath}/{p.name}
diff --git a/web/src/features/prompts/components/delete-prompt-version.tsx b/web/src/features/prompts/components/delete-prompt-version.tsx
index b0e6786465..a367a20532 100644
--- a/web/src/features/prompts/components/delete-prompt-version.tsx
+++ b/web/src/features/prompts/components/delete-prompt-version.tsx
@@ -73,7 +73,7 @@ export function DeletePromptVersion({
event.stopPropagation();
}}
>
- <Trash className="mr-2 h-4 w-4" />
+ <Trash className="icon-base text-icon-foreground mr-2" />
Delete version
</Button>
</PopoverTrigger>
diff --git a/web/src/features/prompts/components/delete-prompt.tsx b/web/src/features/prompts/components/delete-prompt.tsx
index f45570d478..0cd87adc22 100644
--- a/web/src/features/prompts/components/delete-prompt.tsx
+++ b/web/src/features/prompts/components/delete-prompt.tsx
@@ -33,7 +33,7 @@ export function DeletePrompt({ promptName }: { promptName: string }) {
<Popover open={isOpen} onOpenChange={() => setIsOpen(!isOpen)}>
<PopoverTrigger asChild>
<Button variant="ghost" size="xs" disabled={!hasAccess}>
- <Trash className="h-4 w-4" />
+ <Trash className="icon-sm text-icon-foreground" />
</Button>
</PopoverTrigger>
<PopoverContent>
diff --git a/web/src/features/prompts/components/duplicate-folder.tsx b/web/src/features/prompts/components/duplicate-folder.tsx
index 6454c68988..e12dd3f6ad 100644
--- a/web/src/features/prompts/components/duplicate-folder.tsx
+++ b/web/src/features/prompts/components/duplicate-folder.tsx
@@ -115,7 +115,7 @@ export function DuplicateFolder({ folderPath }: { folderPath: string }) {
title="Duplicate folder including prompts"
onClick={() => capture("prompt_detail:duplicate_button_click")}
>
- <Copy className="h-4 w-4" />
+ <Copy className="icon-sm text-icon-foreground" />
</Button>
</DialogTrigger>
<DialogContent className="max-h-[90vh] min-h-0 sm:max-w-md">
diff --git a/web/src/features/prompts/components/duplicate-prompt.tsx b/web/src/features/prompts/components/duplicate-prompt.tsx
index 35268cc3e8..885d7a48e7 100644
--- a/web/src/features/prompts/components/duplicate-prompt.tsx
+++ b/web/src/features/prompts/components/duplicate-prompt.tsx
@@ -202,7 +202,7 @@ export const DuplicatePromptButton: React.FC<{
<Dialog open={hasAccess && open} onOpenChange={setOpen}>
<DialogTrigger asChild>
<ActionButton
- icon={<Copy className="h-4 w-4" aria-hidden="true" />}
+ icon={<Copy className="icon-base" aria-hidden="true" />}
hasAccess={hasAccess}
trackingEventName="prompt_detail:duplicate_button_click"
variant="outline"
diff --git a/web/src/features/prompts/components/prompt-detail.tsx b/web/src/features/prompts/components/prompt-detail.tsx
index 5f7cb30b90..224680f0e6 100644
--- a/web/src/features/prompts/components/prompt-detail.tsx
+++ b/web/src/features/prompts/components/prompt-detail.tsx
@@ -343,7 +343,7 @@ export const PromptDetail = ({
className="grid w-full grid-flow-col place-items-center"
href={`/project/${projectId}/prompts/new?promptId=${encodeURIComponent(prompt.id)}`}
>
- <Plus className={cn("h-4 w-4", mobile ? "mr-2" : "lg:mr-2")} />
+ <Plus className={cn("icon-base", mobile ? "mr-2" : "lg:mr-2")} />
<span className={cn(mobile ? "inline" : "hidden lg:inline")}>
New version
</span>
@@ -474,7 +474,7 @@ export const PromptDetail = ({
variant="outline"
className="mb-3 w-full min-w-0 justify-start gap-2 px-3"
>
- <History className="h-4 w-4 shrink-0" />
+ <History className="icon-base text-icon-foreground shrink-0" />
<span className="shrink-0">Version #{prompt.version}</span>
<span
className="text-muted-foreground min-w-0 flex-1 truncate text-left font-normal"
@@ -553,7 +553,7 @@ export const PromptDetail = ({
: "cursor-pointer",
)}
>
- <Terminal className="h-4 w-4" />
+ <Terminal className="icon-base text-icon-foreground" />
<span className="hidden md:inline">Playground</span>
<DropdownIndicator size="sm" nudge />
</Button>
@@ -571,7 +571,7 @@ export const PromptDetail = ({
disabled={!hasExperimentWriteAccess}
onClick={() => capture("dataset_run:new_form_open")}
>
- <FlaskConical className="h-4 w-4" />
+ <FlaskConical className="icon-base text-icon-foreground" />
<span className="hidden md:ml-2 md:inline">
Run experiment
</span>
@@ -619,10 +619,10 @@ export const PromptDetail = ({
className="gap-1"
>
{disabled ? (
- <MessageSquareOff className="text-muted-foreground h-4 w-4" />
+ <MessageSquareOff className="icon-base text-muted-foreground" />
) : (
<>
- <MessageSquare className="h-4 w-4" />
+ <MessageSquare className="icon-base text-icon-foreground" />
<span>Add comment</span>
{getNumberFromMap(commentCounts, prompt.id) ? (
<ActionButtonCountBadge
@@ -639,7 +639,7 @@ export const PromptDetail = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline" size="icon">
- <MoreVertical className="h-4 w-4" />
+ <MoreVertical className="icon-base text-icon-foreground" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent
diff --git a/web/src/features/prompts/components/prompt-history.tsx b/web/src/features/prompts/components/prompt-history.tsx
index 9062ab3d1c..4e6eee8d78 100644
--- a/web/src/features/prompts/components/prompt-history.tsx
+++ b/web/src/features/prompts/components/prompt-history.tsx
@@ -168,7 +168,7 @@ const PromptHistoryTraceNode = (props: {
}}
title="Compare with selected prompt"
>
- <FileDiffIcon className="h-4 w-4" />
+ <FileDiffIcon className="icon-base text-icon-foreground" />
</Button>
) : null
}
diff --git a/web/src/features/public-api/components/CreateApiKeyButton.tsx b/web/src/features/public-api/components/CreateApiKeyButton.tsx
index 42ae0960b3..c113998844 100644
--- a/web/src/features/public-api/components/CreateApiKeyButton.tsx
+++ b/web/src/features/public-api/components/CreateApiKeyButton.tsx
@@ -76,7 +76,7 @@ export function CreateApiKeyButton(props: {
<Dialog open={open} onOpenChange={handleOpenChange}>
<DialogTrigger asChild>
<Button variant="secondary">
- <PlusIcon className="mr-1.5 -ml-0.5 h-5 w-5" aria-hidden="true" />
+ <PlusIcon className="icon-base mr-1.5 -ml-0.5" aria-hidden="true" />
Create new API keys
</Button>
</DialogTrigger>
diff --git a/web/src/features/public-api/components/CreateLLMApiKeyDialog.tsx b/web/src/features/public-api/components/CreateLLMApiKeyDialog.tsx
index 696d6400a2..ea3f62f154 100644
--- a/web/src/features/public-api/components/CreateLLMApiKeyDialog.tsx
+++ b/web/src/features/public-api/components/CreateLLMApiKeyDialog.tsx
@@ -48,7 +48,7 @@ export function CreateLLMApiKeyDialog({
{!hideTrigger && (
<DialogTrigger asChild>
<Button variant="secondary">
- <PlusIcon className="mr-1.5 -ml-0.5 h-5 w-5" aria-hidden="true" />
+ <PlusIcon className="icon-base mr-1.5 -ml-0.5" aria-hidden="true" />
Add LLM Connection
</Button>
</DialogTrigger>
diff --git a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
index 6d29031417..a27666a566 100644
--- a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
+++ b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
@@ -472,7 +472,7 @@ export function CreateLLMApiKeyForm({
variant="ghost"
onClick={() => remove(index)}
>
- <TrashIcon className="h-4 w-4" />
+ <TrashIcon className="icon-base text-icon-foreground" />
</Button>
</span>
))}
@@ -482,7 +482,10 @@ export function CreateLLMApiKeyForm({
onClick={() => append({ value: "" })}
className="w-full"
>
- <PlusIcon className="mr-1.5 -ml-0.5 h-5 w-5" aria-hidden="true" />
+ <PlusIcon
+ className="icon-base text-icon-foreground mr-1.5 -ml-0.5"
+ aria-hidden="true"
+ />
Add custom model name
</Button>
</FormItem>
@@ -524,7 +527,7 @@ export function CreateLLMApiKeyForm({
variant="ghost"
onClick={() => removeHeader(index)}
>
- <TrashIcon className="h-4 w-4" />
+ <TrashIcon className="icon-base text-icon-foreground" />
</Button>
</div>
))}
@@ -535,7 +538,10 @@ export function CreateLLMApiKeyForm({
onClick={() => appendHeader({ key: "", value: "" })}
className="w-full"
>
- <PlusIcon className="mr-1.5 -ml-0.5 h-5 w-5" aria-hidden="true" />
+ <PlusIcon
+ className="icon-base text-icon-foreground mr-1.5 -ml-0.5"
+ aria-hidden="true"
+ />
Add Header
</Button>
</FormItem>
@@ -1337,7 +1343,7 @@ export function CreateLLMApiKeyForm({
: "Show advanced settings"}
</span>
<ChevronDown
- className={`text-foreground-tertiary ml-1 size-3.5 translate-y-px transition-transform ${showAdvancedSettings ? "rotate-180" : "rotate-0"}`}
+ className={`text-foreground-tertiary icon-base ml-1 translate-y-px transition-transform ${showAdvancedSettings ? "rotate-180" : "rotate-0"}`}
/>
</Button>
</div>
diff --git a/web/src/features/public-api/components/LLMApiKeySettingsTable/LLMApiKeySettingsTable.tsx b/web/src/features/public-api/components/LLMApiKeySettingsTable/LLMApiKeySettingsTable.tsx
index 5d5a82713c..c48cd1ced3 100644
--- a/web/src/features/public-api/components/LLMApiKeySettingsTable/LLMApiKeySettingsTable.tsx
+++ b/web/src/features/public-api/components/LLMApiKeySettingsTable/LLMApiKeySettingsTable.tsx
@@ -110,7 +110,7 @@ export function LLMApiKeySettingsTable({
id: "add-connection",
label: "Add LLM Connection",
variant: "secondary",
- icon: <PlusIcon className="size-4" aria-hidden="true" />,
+ icon: <PlusIcon className="icon-base" aria-hidden="true" />,
onClick: createAction.onClick,
},
]
diff --git a/web/src/features/rbac/components/MembersSettingsTable/ConnectedMembersSettingsTable.tsx b/web/src/features/rbac/components/MembersSettingsTable/ConnectedMembersSettingsTable.tsx
index 2255b90ef9..3b467780f5 100644
--- a/web/src/features/rbac/components/MembersSettingsTable/ConnectedMembersSettingsTable.tsx
+++ b/web/src/features/rbac/components/MembersSettingsTable/ConnectedMembersSettingsTable.tsx
@@ -314,7 +314,7 @@ export function ConnectedMembersSettingsTable({
loading: isSubmitting,
hasAccess,
usageLimit,
- icon: <PlusIcon className="size-4" aria-hidden="true" />,
+ icon: <PlusIcon className="icon-base" aria-hidden="true" />,
onClick: openDialog,
},
]}
diff --git a/web/src/features/score-analytics/components/SamplingDetailsHoverCard.tsx b/web/src/features/score-analytics/components/SamplingDetailsHoverCard.tsx
index 8e97de0bf3..a6fa4b4652 100644
--- a/web/src/features/score-analytics/components/SamplingDetailsHoverCard.tsx
+++ b/web/src/features/score-analytics/components/SamplingDetailsHoverCard.tsx
@@ -42,7 +42,7 @@ export function SamplingDetailsHoverCard({
>
{showLabel && <span>Sampled Data</span>}
<Info
- className={showLabel ? "h-3 w-3" : "text-muted-foreground h-3 w-3"}
+ className={showLabel ? "icon-sm" : "text-muted-foreground icon-sm"}
/>
</button>
</HoverCardTrigger>
diff --git a/web/src/features/score-analytics/components/ScoreAnalyticsHeader.tsx b/web/src/features/score-analytics/components/ScoreAnalyticsHeader.tsx
index a13ebcb57e..492cf2fdad 100644
--- a/web/src/features/score-analytics/components/ScoreAnalyticsHeader.tsx
+++ b/web/src/features/score-analytics/components/ScoreAnalyticsHeader.tsx
@@ -100,7 +100,7 @@ export function ScoreAnalyticsHeader({
className="text-primary inline-flex items-center gap-1 text-sm font-bold hover:underline"
>
Share feedback on GitHub Discussions
- <ExternalLink className="h-3 w-3" />
+ <ExternalLink className="icon-sm" />
</a>
</div>
</HoverCardContent>
diff --git a/web/src/features/score-analytics/components/ScoreAnalyticsNoticeBanner.tsx b/web/src/features/score-analytics/components/ScoreAnalyticsNoticeBanner.tsx
index e949dd754c..dc5ea9d0de 100644
--- a/web/src/features/score-analytics/components/ScoreAnalyticsNoticeBanner.tsx
+++ b/web/src/features/score-analytics/components/ScoreAnalyticsNoticeBanner.tsx
@@ -25,7 +25,7 @@ export function ScoreAnalyticsNoticeBanner(
return (
<div className="bg-muted mb-4 rounded-md px-4 py-3">
<div className="flex items-start gap-3">
- <Clock className="text-muted-foreground mt-0.5 h-4 w-4 shrink-0" />
+ <Clock className="text-muted-foreground icon-base mt-0.5 shrink-0" />
<div className="flex-1 space-y-1">
<div className="text-sm font-bold">
{showLargeDataset
@@ -55,7 +55,7 @@ export function ScoreAnalyticsNoticeBanner(
return (
<div className="bg-muted mb-4 rounded-md px-4 py-3">
<div className="flex items-start gap-3">
- <Info className="text-muted-foreground mt-0.5 h-4 w-4 shrink-0" />
+ <Info className="text-muted-foreground icon-base mt-0.5 shrink-0" />
<div className="flex-1 space-y-1">
<div className="flex items-center gap-2 text-sm font-bold">
Sampled Data
diff --git a/web/src/features/score-analytics/components/charts/MetricCard.tsx b/web/src/features/score-analytics/components/charts/MetricCard.tsx
index 414ee9357a..8272ccab31 100644
--- a/web/src/features/score-analytics/components/charts/MetricCard.tsx
+++ b/web/src/features/score-analytics/components/charts/MetricCard.tsx
@@ -72,7 +72,7 @@ export function MetricCard({
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
- <HelpCircle className="text-muted-foreground h-3 w-3" />
+ <HelpCircle className="text-muted-foreground icon-sm" />
</TooltipTrigger>
<TooltipContent side="top" className="max-w-xs">
<p className="text-xs">{helpText}</p>
@@ -116,7 +116,7 @@ export function MetricCard({
{warning?.show && !isPlaceholder && !isNA && (
<HoverCard>
<HoverCardTrigger asChild>
- <AlertCircle className="h-4 w-4 cursor-help text-amber-500" />
+ <AlertCircle className="icon-base cursor-help text-amber-500" />
</HoverCardTrigger>
<HoverCardContent className="w-80">
{warning.content}
diff --git a/web/src/features/score-analytics/components/charts/ScoreCombobox.tsx b/web/src/features/score-analytics/components/charts/ScoreCombobox.tsx
index dfe7eaff8a..8e58ec7d56 100644
--- a/web/src/features/score-analytics/components/charts/ScoreCombobox.tsx
+++ b/web/src/features/score-analytics/components/charts/ScoreCombobox.tsx
@@ -104,7 +104,7 @@ export function ScoreCombobox({
title="Clear selection"
className="h-6 w-6 shrink-0"
>
- <X className="h-3 w-3" />
+ <X className="icon-base text-icon-foreground" />
</Button>
)}
</div>
diff --git a/web/src/features/score-configs/ScoreConfigsTable/ScoreConfigsTable.tsx b/web/src/features/score-configs/ScoreConfigsTable/ScoreConfigsTable.tsx
index 1897970266..cf0d0e6f12 100644
--- a/web/src/features/score-configs/ScoreConfigsTable/ScoreConfigsTable.tsx
+++ b/web/src/features/score-configs/ScoreConfigsTable/ScoreConfigsTable.tsx
@@ -173,7 +173,7 @@ export function ScoreConfigsTable({
id: "add-score-config",
label: "Add new score config",
variant: "secondary",
- icon: <PlusIcon className="size-4" aria-hidden="true" />,
+ icon: <PlusIcon className="icon-base" aria-hidden="true" />,
disabled: createAction.disabled !== undefined,
loading: createAction.loading,
title: createAction.disabled?.reason,
diff --git a/web/src/features/score-configs/components/UpsertScoreConfigDialogContent.tsx b/web/src/features/score-configs/components/UpsertScoreConfigDialogContent.tsx
index 853ba3ae01..38ec6719f2 100644
--- a/web/src/features/score-configs/components/UpsertScoreConfigDialogContent.tsx
+++ b/web/src/features/score-configs/components/UpsertScoreConfigDialogContent.tsx
@@ -287,7 +287,7 @@ export function UpsertScoreConfigDialogContent({
index === 0 || index !== fields.length - 1
}
>
- <Trash className="h-4 w-4" />
+ <Trash className="icon-base text-icon-foreground" />
</Button>
)}
</div>
diff --git a/web/src/features/scores-chart-view/components/ScoreChartViewPanel/ScoreChartViewPanel.tsx b/web/src/features/scores-chart-view/components/ScoreChartViewPanel/ScoreChartViewPanel.tsx
index 5514349645..8b3c912604 100644
--- a/web/src/features/scores-chart-view/components/ScoreChartViewPanel/ScoreChartViewPanel.tsx
+++ b/web/src/features/scores-chart-view/components/ScoreChartViewPanel/ScoreChartViewPanel.tsx
@@ -97,7 +97,7 @@ export const ScoreChartViewPanel = React.memo(function ScoreChartViewPanel({
</div>
) : isLoading ? (
<div className="text-muted-foreground flex h-full items-center justify-center">
- <Loader2 className="h-6 w-6 animate-spin" />
+ <Loader2 className="icon-lg animate-spin" />
</div>
) : (
<ChartCanvas
@@ -125,7 +125,7 @@ export const ScoreChartViewPanel = React.memo(function ScoreChartViewPanel({
aria-label="Collapse panel"
onClick={() => setOpen(false)}
>
- <ChevronRight className="h-4 w-4" />
+ <ChevronRight className="icon-sm text-icon-foreground" />
</Button>
</div>
<PanelField label="Chart type">
@@ -177,7 +177,7 @@ export const ScoreChartViewPanel = React.memo(function ScoreChartViewPanel({
aria-label="Expand panel"
onClick={() => setOpen(true)}
>
- <ChevronLeft className="h-4 w-4" />
+ <ChevronLeft className="icon-sm text-icon-foreground" />
</Button>
</div>
)}
diff --git a/web/src/features/scores-chart-view/components/ScoreOutlierBarStrip/ScoreOutlierBarStrip.tsx b/web/src/features/scores-chart-view/components/ScoreOutlierBarStrip/ScoreOutlierBarStrip.tsx
index defce93a86..ea56b494b0 100644
--- a/web/src/features/scores-chart-view/components/ScoreOutlierBarStrip/ScoreOutlierBarStrip.tsx
+++ b/web/src/features/scores-chart-view/components/ScoreOutlierBarStrip/ScoreOutlierBarStrip.tsx
@@ -555,7 +555,7 @@ export function ScoreOutlierBarStrip({
onSelectionChange?.(null);
}}
>
- <X className="h-3 w-3" />
+ <X className="icon-sm" />
</button>
</div>
{previewHasData && (
diff --git a/web/src/features/scores/components/AnnotationForm.tsx b/web/src/features/scores/components/AnnotationForm.tsx
index fa683c8548..b919f03251 100644
--- a/web/src/features/scores/components/AnnotationForm.tsx
+++ b/web/src/features/scores/components/AnnotationForm.tsx
@@ -322,7 +322,10 @@ export function AnnotationFormContent({
className="gap-1.5 text-xs"
{...getTriggerProps()}
>
- <Plus className="size-3.5" aria-hidden="true" />
+ <Plus
+ className="icon-base text-icon-foreground"
+ aria-hidden="true"
+ />
Add score
</Button>
)}
diff --git a/web/src/features/scores/components/AnnotationSaveStatus.tsx b/web/src/features/scores/components/AnnotationSaveStatus.tsx
index 69908bc4a4..7a3afd07d1 100644
--- a/web/src/features/scores/components/AnnotationSaveStatus.tsx
+++ b/web/src/features/scores/components/AnnotationSaveStatus.tsx
@@ -53,7 +53,7 @@ export function AnnotationSaveStatus({
{itemStatus === "saving" && active ? (
<Spinner size="xxs" />
) : null}
- {itemStatus === "saved" ? <Check className="size-3" /> : null}
+ {itemStatus === "saved" ? <Check className="icon-sm" /> : null}
</span>
<span className="text-muted-foreground">
{
diff --git a/web/src/features/scores/components/AnnotationScoreRow.tsx b/web/src/features/scores/components/AnnotationScoreRow.tsx
index b899ac601d..afb85090d4 100644
--- a/web/src/features/scores/components/AnnotationScoreRow.tsx
+++ b/web/src/features/scores/components/AnnotationScoreRow.tsx
@@ -88,7 +88,7 @@ function CommentField({
onValueChange(null);
}}
>
- <Trash className="h-3 w-3" />
+ <Trash className="icon-sm text-icon-foreground" />
</Button>
</PopoverClose>
)}
@@ -296,9 +296,9 @@ export function AnnotationScoreRow({
}
>
{score.comment ? (
- <MessageCircleMore className="h-4 w-4" />
+ <MessageCircleMore className="icon-sm" />
) : (
- <MessageCircle className="h-4 w-4" />
+ <MessageCircle className="icon-sm" />
)}
</Button>
</PopoverTrigger>
@@ -583,7 +583,7 @@ export function AnnotationScoreRow({
aria-label={`Score actions for ${score.name}${showTarget ? ` (${target.label})` : ""}`}
title="Score actions"
>
- <MoreHorizontal className="size-4" />
+ <MoreHorizontal className="icon-sm text-icon-foreground" />
</Button>
</Trigger>
)}
diff --git a/web/src/features/scores/components/CategoricalScoreInput.tsx b/web/src/features/scores/components/CategoricalScoreInput.tsx
index e0295ce999..48b71876a6 100644
--- a/web/src/features/scores/components/CategoricalScoreInput.tsx
+++ b/web/src/features/scores/components/CategoricalScoreInput.tsx
@@ -75,7 +75,7 @@ export function CategoricalScoreInput({
setPendingLabel(search.trim());
}}
>
- <Plus className="mr-2 h-3.5 w-3.5 shrink-0" />
+ <Plus className="icon-base mr-2 shrink-0" />
{getAddCategoryActionLabel(search, existingLabels)}
</button>
);
@@ -162,7 +162,7 @@ export function CategoricalScoreInput({
title="Add new category"
onClick={() => setPendingLabel("")}
>
- <Plus className="h-3.5 w-3.5" />
+ <Plus className="icon-sm text-icon-foreground" />
</Button>
) : null}
</div>
diff --git a/web/src/features/scores/components/ScoreRow.tsx b/web/src/features/scores/components/ScoreRow.tsx
index 7543c33965..ea9de01ac3 100644
--- a/web/src/features/scores/components/ScoreRow.tsx
+++ b/web/src/features/scores/components/ScoreRow.tsx
@@ -70,7 +70,7 @@ const ScoreValueSection = ({
)}
{aggregate?.comment && (
<div className="flex h-3 w-3 items-center justify-center">
- <MessageCircleMore size={12} className="text-muted-foreground" />
+ <MessageCircleMore className="icon-sm text-muted-foreground" />
</div>
)}
</div>
diff --git a/web/src/features/scores/components/multi-select-key-values.tsx b/web/src/features/scores/components/multi-select-key-values.tsx
index 8b9921c57b..30bee3a171 100644
--- a/web/src/features/scores/components/multi-select-key-values.tsx
+++ b/web/src/features/scores/components/multi-select-key-values.tsx
@@ -147,7 +147,7 @@ export function MultiSelectKeyValues<
{option.value}
</span>
{option.isArchived && (
- <Archive className="text-foreground/50 ml-2 h-4 w-4" />
+ <Archive className="icon-base text-foreground/50 ml-2" />
)}
{option.count !== undefined && (
<span className="ml-auto font-mono text-xs">{option.count}</span>
@@ -232,7 +232,7 @@ export function MultiSelectKeyValues<
className="flex items-center border-b px-2 py-1"
onClick={handleInputClick}
>
- <Search className="mr-1 h-3 w-3 opacity-50" />
+ <Search className="icon-sm mr-1 opacity-50" />
<Input
ref={inputRef}
placeholder={placeholder}
@@ -258,7 +258,7 @@ export function MultiSelectKeyValues<
return (
<DropdownMenuSub key={group.label}>
<DropdownMenuSubTrigger className="flex w-full items-center select-none">
- <Component className="mr-2 h-4 w-4 opacity-50" />
+ <Component className="icon-base text-icon-foreground mr-2 opacity-50" />
<span>{group.label}</span>
</DropdownMenuSubTrigger>
<DropdownMenuSubContent className="max-h-[300px] overflow-y-auto">
diff --git a/web/src/features/search-bar/components/AutocompleteListbox.tsx b/web/src/features/search-bar/components/AutocompleteListbox.tsx
index 701655d467..524cd0a446 100644
--- a/web/src/features/search-bar/components/AutocompleteListbox.tsx
+++ b/web/src/features/search-bar/components/AutocompleteListbox.tsx
@@ -15,7 +15,7 @@ import type {
import { optionDomId } from "@/src/features/search-bar/components/presentation";
function OptionIcon({ kind }: { kind: CompletionOption["kind"] }) {
- const cls = "h-3.5 w-3.5 flex-none opacity-55";
+ const cls = "icon-base flex-none opacity-55";
if (kind === "recent") return <Clock className={cls} aria-hidden />;
if (kind === "preset") return <Bookmark className={cls} aria-hidden />;
if (kind === "operator" || kind === "pattern")
@@ -141,7 +141,7 @@ export function AutocompleteListbox({
))}
{o.kind === "value" && o.active && (
<Check
- className="text-foreground/80 h-3.5 w-3.5 flex-none"
+ className="text-foreground/80 icon-base flex-none"
aria-label="selected"
/>
)}
diff --git a/web/src/features/search-bar/components/SearchBarAiPrompt.tsx b/web/src/features/search-bar/components/SearchBarAiPrompt.tsx
index 84aec327b1..6d8be13adb 100644
--- a/web/src/features/search-bar/components/SearchBarAiPrompt.tsx
+++ b/web/src/features/search-bar/components/SearchBarAiPrompt.tsx
@@ -249,7 +249,7 @@ export function SearchBarAiPrompt({
onClick={onExit}
className="text-muted-foreground hover:text-foreground hover:bg-accent -ml-0.5 inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md"
>
- <ArrowLeft className="h-4 w-4" aria-hidden="true" />
+ <ArrowLeft className="icon-base" aria-hidden="true" />
</button>
<input
ref={inputRef}
@@ -290,10 +290,7 @@ export function SearchBarAiPrompt({
/>
{pending ? (
<span className="text-muted-foreground flex shrink-0 items-center gap-1.5 pr-1 text-xs">
- <Loader2
- className="h-3.5 w-3.5 animate-spin"
- aria-hidden="true"
- />
+ <Loader2 className="icon-base animate-spin" aria-hidden="true" />
Generating…
</span>
) : (
@@ -322,7 +319,7 @@ export function SearchBarAiPrompt({
"disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-transparent",
)}
>
- <ArrowRight className="h-3.5 w-3.5" aria-hidden="true" />
+ <ArrowRight className="icon-base" aria-hidden="true" />
</button>
</div>
)}
diff --git a/web/src/features/search-bar/components/SearchComposer.tsx b/web/src/features/search-bar/components/SearchComposer.tsx
index 233c8b0f6e..33151e6600 100644
--- a/web/src/features/search-bar/components/SearchComposer.tsx
+++ b/web/src/features/search-bar/components/SearchComposer.tsx
@@ -1538,7 +1538,7 @@ export function SearchComposer({
"ring-offset-background focus-visible:ring-ring focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden",
)}
>
- <WandSparkles className="h-3.5 w-3.5" aria-hidden="true" />
+ <WandSparkles className="icon-base" aria-hidden="true" />
<span>Ask AI</span>
</button>
)}
@@ -1562,7 +1562,7 @@ export function SearchComposer({
title={visibleDiagnostics.map((d) => d.message).join("; ")}
aria-label="invalid query"
>
- <AlertCircle className="h-4 w-4" />
+ <AlertCircle className="icon-base" />
</span>
</div>
)}
@@ -1681,7 +1681,7 @@ function RemoveTokenButton({
onRemove(segment);
}}
>
- <X className="h-3 w-3" aria-hidden="true" />
+ <X className="icon-sm" aria-hidden="true" />
</button>
);
}
diff --git a/web/src/features/sessions/ModernSessionHeader.tsx b/web/src/features/sessions/ModernSessionHeader.tsx
index d41988b01e..7d41cfce06 100644
--- a/web/src/features/sessions/ModernSessionHeader.tsx
+++ b/web/src/features/sessions/ModernSessionHeader.tsx
@@ -167,7 +167,7 @@ const MetadataJsonPathRemoveButton = ({
className="hover:bg-muted focus-visible:ring-ring inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-sm opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100 focus-visible:ring-1 focus-visible:outline-none"
onClick={() => onRemove(path)}
>
- <X className="h-3 w-3" />
+ <X className="icon-sm" />
</button>
</span>
);
@@ -448,7 +448,7 @@ export function ModernSessionHeader({
<PopoverTrigger asChild>
<BadgeShell asChild data-session-header-pill="true">
<button type="button" aria-label="Add metadata JSONPath">
- <Plus className="h-3 w-3" />
+ <Plus className="icon-sm" />
</button>
</BadgeShell>
</PopoverTrigger>
@@ -503,7 +503,7 @@ export function ModernSessionHeader({
aria-label="All session details"
>
<div className="relative border-b p-2">
- <Search className="text-muted-foreground absolute top-1/2 left-4 h-3.5 w-3.5 -translate-y-1/2" />
+ <Search className="text-muted-foreground icon-base absolute top-1/2 left-4 -translate-y-1/2" />
<Input
value={search}
onChange={(event) => {
diff --git a/web/src/features/sessions/ModernSessionHeaderActionsController.tsx b/web/src/features/sessions/ModernSessionHeaderActionsController.tsx
index 57e7bc01ed..4abb93cc9e 100644
--- a/web/src/features/sessions/ModernSessionHeaderActionsController.tsx
+++ b/web/src/features/sessions/ModernSessionHeaderActionsController.tsx
@@ -181,7 +181,7 @@ export function ModernSessionHeaderActionsController({
{({ getTriggerProps }) => (
<HeaderActionButton
label="Session actions"
- icon={<MoreVertical className="h-4 w-4" />}
+ icon={<MoreVertical className="icon-base" />}
{...getTriggerProps()}
/>
)}
diff --git a/web/src/features/sessions/ModernSessionSidebar.tsx b/web/src/features/sessions/ModernSessionSidebar.tsx
index e32f51f67b..b72f83ff8a 100644
--- a/web/src/features/sessions/ModernSessionSidebar.tsx
+++ b/web/src/features/sessions/ModernSessionSidebar.tsx
@@ -177,7 +177,7 @@ function ObservationListRows({
className="text-muted-foreground hover:text-muted-foreground -my-1 -mr-0.5 h-8 w-8 shrink-0 hover:bg-transparent"
aria-label={`Actions for ${observation.name}`}
>
- <MoreHorizontal className="h-3.5 w-3.5" />
+ <MoreHorizontal className="icon-base text-icon-foreground" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" sideOffset={0}>
@@ -284,10 +284,9 @@ const TurnCard = React.memo(
>
<ChevronDown
className={cn(
- "h-3 w-3 transition-transform duration-150",
+ "icon-sm transition-transform duration-150",
isCollapsed ? "-rotate-90" : "rotate-0",
)}
- strokeWidth={1.6}
/>
</button>
</div>
@@ -505,10 +504,7 @@ export function ModernSessionSidebar(
<div className="shrink-0 border-b">
<div className="flex items-center gap-1 px-2 py-2.5">
<div className="relative min-w-0 flex-1">
- <Search
- className="text-foreground-tertiary absolute top-1/2 left-2 h-3.5 w-3.5 -translate-y-1/2"
- strokeWidth={1.6}
- />
+ <Search className="text-foreground-tertiary icon-base absolute top-1/2 left-2 -translate-y-1/2" />
<Input
value={search}
onChange={(event) => handleSearchChange(event.target.value)}
@@ -527,7 +523,7 @@ export function ModernSessionSidebar(
className="relative h-7 w-7 shrink-0 rounded-sm"
aria-label="Filter observations"
>
- <ListFilter className="h-3.5 w-3.5" />
+ <ListFilter className="icon-base text-icon-foreground" />
</Button>
</DropdownMenuTrigger>
<ModernSessionViewDropdownMenu controls={filterControls} />
@@ -580,7 +576,7 @@ export function ModernSessionSidebar(
aria-label="Save filters as view"
onClick={filterControls.onOpenFilterDialog}
>
- <Save className="h-3 w-3" />
+ <Save className="icon-sm text-icon-foreground" />
</Button>
</TooltipTrigger>
<TooltipContent>Save as view</TooltipContent>
@@ -596,7 +592,7 @@ export function ModernSessionSidebar(
aria-label="Edit filters"
onClick={filterControls.onOpenFilterDialog}
>
- <Pencil className="h-3 w-3" />
+ <Pencil className="icon-sm text-icon-foreground" />
</Button>
</TooltipTrigger>
<TooltipContent>Edit filters</TooltipContent>
@@ -611,7 +607,7 @@ export function ModernSessionSidebar(
aria-label="Clear filters"
onClick={filterControls.onClearFilters}
>
- <X className="h-3 w-3" />
+ <X className="icon-sm text-icon-foreground" />
</Button>
</TooltipTrigger>
<TooltipContent>Clear filters</TooltipContent>
diff --git a/web/src/features/sessions/SessionConversationTimeline/components/SessionConversationTimelineTrace/SessionConversationTimelineTrace.tsx b/web/src/features/sessions/SessionConversationTimeline/components/SessionConversationTimelineTrace/SessionConversationTimelineTrace.tsx
index d54df3d4b3..7211947d28 100644
--- a/web/src/features/sessions/SessionConversationTimeline/components/SessionConversationTimelineTrace/SessionConversationTimelineTrace.tsx
+++ b/web/src/features/sessions/SessionConversationTimeline/components/SessionConversationTimelineTrace/SessionConversationTimelineTrace.tsx
@@ -124,7 +124,7 @@ function SessionTimelineStatusIndicator({
role="img"
aria-label={`${observation.level}: ${observation.statusMessage}`}
>
- <Icon className="h-3.5 w-3.5" aria-hidden="true" />
+ <Icon className="icon-base" aria-hidden="true" />
</span>
</TooltipTrigger>
<TooltipContent className="max-w-sm whitespace-pre-wrap">
@@ -154,7 +154,7 @@ function SessionTimelineMarkerIcon({
role="img"
aria-label={label}
>
- <Icon className="h-3 w-3" aria-hidden="true" />
+ <Icon className="icon-sm" aria-hidden="true" />
</span>
)}
</DSTooltip>
@@ -401,7 +401,7 @@ function SessionTimelineToolRow({
>
<ChevronDown
className={cn(
- "h-3.5 w-3.5 transition-transform",
+ "icon-base transition-transform",
!isExpanded && "-rotate-90",
)}
aria-hidden="true"
@@ -429,7 +429,10 @@ function SessionTimelineToolRow({
className="text-muted-foreground hover:text-foreground shrink-0"
aria-label={`Actions for ${observation.name ?? observation.id}`}
>
- <MoreHorizontal className="h-3.5 w-3.5" aria-hidden="true" />
+ <MoreHorizontal
+ className="icon-sm text-icon-foreground"
+ aria-hidden="true"
+ />
</Button>
</DropdownMenuTrigger>
<SessionObservationActionsMenuContent
@@ -445,7 +448,7 @@ function SessionTimelineToolRow({
role="img"
aria-label="Actions available on parent observation"
>
- <MoreHorizontal className="h-3.5 w-3.5" aria-hidden="true" />
+ <MoreHorizontal className="icon-base" aria-hidden="true" />
</span>
</TooltipTrigger>
<TooltipContent side="top">
@@ -595,7 +598,7 @@ function SessionTimelineConversationObservation({
aria-label={`Actions for ${observation.name ?? observation.id}`}
>
<MoreHorizontal
- className="h-3.5 w-3.5"
+ className="icon-sm text-icon-foreground"
aria-hidden="true"
/>
</Button>
@@ -1019,9 +1022,15 @@ function LoadedSessionConversationTimeline({
}}
>
{isCollapsed ? (
- <ChevronsUpDown className="h-3 w-3" aria-hidden="true" />
+ <ChevronsUpDown
+ className="icon-sm text-icon-foreground"
+ aria-hidden="true"
+ />
) : (
- <ChevronDown className="h-3 w-3" aria-hidden="true" />
+ <ChevronDown
+ className="icon-sm text-icon-foreground"
+ aria-hidden="true"
+ />
)}
</Button>
{isCollapsed ? (
diff --git a/web/src/features/sessions/SessionConversationTimeline/components/SessionConversationTimelineTrace/components/SessionTimelineContentMessage/SessionTimelineContentMessage.tsx b/web/src/features/sessions/SessionConversationTimeline/components/SessionConversationTimelineTrace/components/SessionTimelineContentMessage/SessionTimelineContentMessage.tsx
index 19b032207f..3ab6a7d3df 100644
--- a/web/src/features/sessions/SessionConversationTimeline/components/SessionConversationTimelineTrace/components/SessionTimelineContentMessage/SessionTimelineContentMessage.tsx
+++ b/web/src/features/sessions/SessionConversationTimeline/components/SessionConversationTimelineTrace/components/SessionTimelineContentMessage/SessionTimelineContentMessage.tsx
@@ -117,7 +117,7 @@ export function SessionTimelineContentMessage({
>
{showSender && groupIndex === firstContentGroupIndex ? (
<div className="text-foreground mb-1 flex min-w-0 items-center gap-1.5 font-mono text-[11px]">
- <Icon className="h-3 w-3 shrink-0" />
+ <Icon className="icon-sm shrink-0" />
<span
className="text-foreground truncate"
title={senderName ?? presentation.label}
@@ -142,7 +142,7 @@ export function SessionTimelineContentMessage({
>
<ChevronDown
className={cn(
- "text-foreground-tertiary size-3 shrink-0 translate-y-px transition-transform",
+ "text-foreground-tertiary icon-sm shrink-0 translate-y-px transition-transform",
!isJsonExpanded && "-rotate-90",
)}
aria-hidden="true"
diff --git a/web/src/features/sessions/SessionConversationTimeline/components/SessionTimelineCollapsiblePart/SessionTimelineCollapsiblePart.tsx b/web/src/features/sessions/SessionConversationTimeline/components/SessionTimelineCollapsiblePart/SessionTimelineCollapsiblePart.tsx
index 8e0fc6336d..e78fc80daf 100644
--- a/web/src/features/sessions/SessionConversationTimeline/components/SessionTimelineCollapsiblePart/SessionTimelineCollapsiblePart.tsx
+++ b/web/src/features/sessions/SessionConversationTimeline/components/SessionTimelineCollapsiblePart/SessionTimelineCollapsiblePart.tsx
@@ -42,21 +42,21 @@ export function SessionTimelineCollapsiblePart({
aria-expanded={isExpanded}
onClick={() => setIsExpanded((current) => !current)}
>
- {Icon ? <Icon className="h-3 w-3 shrink-0" /> : null}
+ {Icon ? <Icon className="icon-sm shrink-0" /> : null}
<span className="truncate" title={label}>
{label}
</span>
{status === "success" ? (
- <Check className="h-3 w-3 shrink-0" aria-label="Succeeded" />
+ <Check className="icon-sm shrink-0" aria-label="Succeeded" />
) : status === "error" ? (
<X
- className="text-destructive h-3 w-3 shrink-0"
+ className="text-destructive icon-sm shrink-0"
aria-label="Failed"
/>
) : null}
<ChevronDown
className={cn(
- "text-foreground-tertiary size-3 shrink-0 translate-y-px transition-transform",
+ "text-foreground-tertiary icon-sm shrink-0 translate-y-px transition-transform",
!isExpanded && "-rotate-90",
)}
aria-hidden="true"
diff --git a/web/src/features/sessions/SessionConversationTimeline/components/SessionTimelinePart/SessionTimelinePart.tsx b/web/src/features/sessions/SessionConversationTimeline/components/SessionTimelinePart/SessionTimelinePart.tsx
index 0ee2afca55..1f3be9dc33 100644
--- a/web/src/features/sessions/SessionConversationTimeline/components/SessionTimelinePart/SessionTimelinePart.tsx
+++ b/web/src/features/sessions/SessionConversationTimeline/components/SessionTimelinePart/SessionTimelinePart.tsx
@@ -79,7 +79,7 @@ function SessionTimelineFile({ part }: { part: FilePart }) {
return (
<div className="border-border/70 bg-background flex w-fit max-w-full flex-col gap-2 rounded-md border p-3">
<div className="text-muted-foreground flex items-center gap-2 text-xs font-bold">
- <FileIcon className="h-3.5 w-3.5" />
+ <FileIcon className="icon-base" />
{part.filename ?? part.mediaType ?? "File"}
</div>
{reference ? (
diff --git a/web/src/features/sessions/SessionObservationIO.tsx b/web/src/features/sessions/SessionObservationIO.tsx
index c653f4ad28..9d04d17ddd 100644
--- a/web/src/features/sessions/SessionObservationIO.tsx
+++ b/web/src/features/sessions/SessionObservationIO.tsx
@@ -273,7 +273,7 @@ export const SessionObservationIO = ({
)}
<div className="flex flex-wrap gap-2">
<Button variant="outline" size="sm" onClick={openInTraceView}>
- <ExternalLinkIcon className="mr-1 h-3.5 w-3.5" />
+ <ExternalLinkIcon className="icon-base text-icon-foreground mr-1" />
Open in trace view
</Button>
<Button
@@ -283,9 +283,9 @@ export const SessionObservationIO = ({
disabled={isDownloading}
>
{isDownloading ? (
- <Loader2 className="mr-1 h-3.5 w-3.5 animate-spin" />
+ <Loader2 className="icon-base text-icon-foreground mr-1 animate-spin" />
) : (
- <Download className="mr-1 h-3.5 w-3.5" />
+ <Download className="icon-base text-icon-foreground mr-1" />
)}
Download I/O
</Button>
diff --git a/web/src/features/sessions/SessionPages.tsx b/web/src/features/sessions/SessionPages.tsx
index e9c6a9e2c0..4503ac542e 100644
--- a/web/src/features/sessions/SessionPages.tsx
+++ b/web/src/features/sessions/SessionPages.tsx
@@ -171,7 +171,7 @@ function SessionUsers({
<span className="truncate" title={userBadgeText}>
{userBadgeText}
</span>
- <ExternalLinkIcon className="ml-1 h-3 w-3" />
+ <ExternalLinkIcon className="icon-sm ml-1" />
</Badge>
</Link>
);
@@ -208,7 +208,7 @@ function SessionUsers({
<span className="truncate" title={userBadgeText}>
{userBadgeText}
</span>
- <ExternalLinkIcon className="ml-1 h-3 w-3" />
+ <ExternalLinkIcon className="icon-sm ml-1" />
</Badge>
</Link>
);
@@ -398,9 +398,9 @@ const CopySessionIdButton: React.FC<{
onClick={onCopy}
>
{isCopied ? (
- <CheckIcon className="text-muted-green h-4 w-4" />
+ <CheckIcon className="icon-base text-muted-green" />
) : (
- <CopyIcon className="h-4 w-4" />
+ <CopyIcon className="icon-base text-icon-foreground" />
)}
<span className="text-sm">Copy session ID</span>
</Button>
@@ -416,9 +416,9 @@ const CopySessionIdButton: React.FC<{
onClick={onCopy}
>
{isCopied ? (
- <CheckIcon className="text-muted-green h-4 w-4" />
+ <CheckIcon className="icon-sm text-muted-green" />
) : (
- <CopyIcon className="h-4 w-4" />
+ <CopyIcon className="icon-sm text-icon-foreground" />
)}
</Button>
);
@@ -638,7 +638,7 @@ export const SessionPage: React.FC<{
onClick={onDownloadSessionAsJson}
title="Download session as JSON"
>
- <Download className="h-4 w-4" />
+ <Download className="icon-base text-icon-foreground" />
</Button>
{!router.query.peek && (
<DetailPageNav
@@ -670,10 +670,10 @@ export const SessionPage: React.FC<{
className="gap-1"
>
{disabled ? (
- <MessageSquareOff className="text-muted-foreground h-4 w-4" />
+ <MessageSquareOff className="icon-base text-muted-foreground" />
) : (
<>
- <MessageSquare className="h-4 w-4" />
+ <MessageSquare className="icon-base text-icon-foreground" />
<span>
{getNumberFromMap(
sessionCommentCounts.data,
@@ -724,9 +724,9 @@ export const SessionPage: React.FC<{
}
>
{disabled ? (
- <LockIcon className="mr-1.5 h-3 w-3" />
+ <LockIcon className="icon-base text-icon-foreground mr-1.5" />
) : (
- <SquarePen className="mr-1.5 h-4 w-4" />
+ <SquarePen className="icon-base text-icon-foreground mr-1.5" />
)}
<span>Annotate</span>
</Button>
@@ -743,7 +743,7 @@ export const SessionPage: React.FC<{
className="gap-1.5"
{...getTriggerProps()}
>
- <Plus className="h-4 w-4" />
+ <Plus className="icon-base text-icon-foreground" />
<span>Add to</span>
{totalCount > 0 && (
<ActionButtonCountBadge count={totalCount} />
@@ -800,9 +800,9 @@ export const SessionPage: React.FC<{
className="w-full justify-start gap-2 font-normal"
>
{disabled ? (
- <MessageSquareOff className="text-muted-foreground h-4 w-4" />
+ <MessageSquareOff className="icon-base text-muted-foreground" />
) : (
- <MessageSquare className="h-4 w-4" />
+ <MessageSquare className="icon-base text-icon-foreground" />
)}
<span className="text-sm">
{getNumberFromMap(sessionCommentCounts.data, sessionId)
@@ -846,9 +846,9 @@ export const SessionPage: React.FC<{
}}
>
{annotateDisabled ? (
- <LockIcon className="h-3 w-3" />
+ <LockIcon className="icon-base text-icon-foreground" />
) : (
- <SquarePen className="h-4 w-4" />
+ <SquarePen className="icon-base text-icon-foreground" />
)}
<span className="text-sm">Annotate</span>
</Button>
@@ -866,7 +866,7 @@ export const SessionPage: React.FC<{
disabled={disabled !== undefined}
className="w-full justify-start gap-2 font-normal"
>
- <Plus className="h-4 w-4" />
+ <Plus className="icon-base text-icon-foreground" />
<span className="text-sm">Add to</span>
{totalCount > 0 && (
<AnnotationQueueItemCountBadge
@@ -887,7 +887,7 @@ export const SessionPage: React.FC<{
onClick={onDownloadSessionAsJson}
className="w-full justify-start gap-2 font-normal"
>
- <Download className="h-4 w-4" />
+ <Download className="icon-base text-icon-foreground" />
<span className="text-sm">Download JSON</span>
</Button>
<label className="hover:bg-accent flex w-full items-center justify-between gap-4 rounded-md px-2 py-1.5">
@@ -1725,7 +1725,10 @@ const LoadedSessionEventsPage: React.FC<{
className={cn(HEADER_ACTION_CLASS, "gap-1.5")}
{...getTriggerProps()}
>
- <Plus className="h-3.5 w-3.5" aria-hidden="true" />
+ <Plus
+ className="icon-base text-icon-foreground"
+ aria-hidden="true"
+ />
Add to
{totalCount > 0 && (
<ActionButtonCountBadge count={totalCount} />
@@ -1758,9 +1761,9 @@ const LoadedSessionEventsPage: React.FC<{
}
>
{disabled ? (
- <LockIcon className="h-3 w-3" />
+ <LockIcon className="icon-base text-icon-foreground" />
) : (
- <Plus className="h-3.5 w-3.5" />
+ <Plus className="icon-base text-icon-foreground" />
)}
Score
{isModernSessionEnabled && annotationCount > 0 ? (
@@ -1790,9 +1793,9 @@ const LoadedSessionEventsPage: React.FC<{
}
>
{disabled ? (
- <MessageSquareOff className="h-3.5 w-3.5" />
+ <MessageSquareOff className="icon-base text-icon-foreground" />
) : (
- <MessageSquare className="h-3.5 w-3.5" />
+ <MessageSquare className="icon-base text-icon-foreground" />
)}
{getNumberFromMap(sessionCommentCounts.data, sessionId)
? "Comments"
@@ -1881,9 +1884,9 @@ const LoadedSessionEventsPage: React.FC<{
label={commentCount ? "Comments" : "Comment"}
icon={
disabled ? (
- <MessageSquareOff className="h-4 w-4" />
+ <MessageSquareOff className="icon-base" />
) : (
- <MessageSquare className="h-4 w-4" />
+ <MessageSquare className="icon-base" />
)
}
badge={
@@ -1908,9 +1911,9 @@ const LoadedSessionEventsPage: React.FC<{
label="Score"
icon={
annotateDisabled ? (
- <LockIcon className="h-4 w-4" />
+ <LockIcon className="icon-base" />
) : (
- <Plus className="h-4 w-4" />
+ <Plus className="icon-base" />
)
}
badge={
@@ -1944,7 +1947,7 @@ const LoadedSessionEventsPage: React.FC<{
{({ getTriggerProps, totalCount }) => (
<HeaderActionMenuRow
label="Add to"
- icon={<Plus className="h-4 w-4" />}
+ icon={<Plus className="icon-base" />}
badge={
totalCount > 0 ? (
<ActionButtonCountBadge count={totalCount} />
diff --git a/web/src/features/sessions/SessionTraceActionButtons.tsx b/web/src/features/sessions/SessionTraceActionButtons.tsx
index 65900b6988..4af026abec 100644
--- a/web/src/features/sessions/SessionTraceActionButtons.tsx
+++ b/web/src/features/sessions/SessionTraceActionButtons.tsx
@@ -79,7 +79,7 @@ export function SessionTraceActionButtons({
className="gap-1.5"
{...getTriggerProps()}
>
- <PlusIcon className="h-4 w-4" />
+ <PlusIcon className="icon-base text-icon-foreground" />
<span>Add to</span>
<DropdownIndicator size="sm" nudge />
</Button>
@@ -110,9 +110,9 @@ export function SessionTraceActionButtons({
}
>
{disabled ? (
- <LockIcon className="mr-1.5 h-3 w-3" />
+ <LockIcon className="icon-sm text-icon-foreground mr-1.5" />
) : (
- <SquarePen className="mr-1.5 h-4 w-4" />
+ <SquarePen className="icon-base text-icon-foreground mr-1.5" />
)}
<span>Annotate</span>
</Button>
@@ -136,10 +136,10 @@ export function SessionTraceActionButtons({
className="gap-1"
>
{disabled ? (
- <MessageSquareOff className="text-muted-foreground h-4 w-4" />
+ <MessageSquareOff className="text-muted-foreground icon-base" />
) : (
<>
- <MessageSquare className="h-4 w-4" />
+ <MessageSquare className="icon-base text-icon-foreground" />
<span>{commentCount ? "Comments" : "Comment"}</span>
{!!commentCount ? (
<ActionButtonCountBadge count={commentCount} />
diff --git a/web/src/features/sessions/TraceEventsRow.tsx b/web/src/features/sessions/TraceEventsRow.tsx
index c44bcb1ea5..dad0ec0c5d 100644
--- a/web/src/features/sessions/TraceEventsRow.tsx
+++ b/web/src/features/sessions/TraceEventsRow.tsx
@@ -124,11 +124,7 @@ const ObservationHeader = ({
</span>
<span className="-mr-1">•</span>
<span className="inline-flex items-center gap-1">
- <ItemBadge
- type={observation.type ?? "EVENT"}
- isSmall
- className="h-3 w-3"
- />
+ <ItemBadge type={observation.type ?? "EVENT"} isSmall />
<span>
{String(observation.type ?? "EVENT")
.toLowerCase()
@@ -158,7 +154,7 @@ const openSessionViewMenu = () => {
const ViewMismatchNotice = ({ viewLabel }: { viewLabel: string | null }) => (
<div className="flex flex-col items-start gap-1.5 rounded-md border border-dashed border-amber-500/50 bg-amber-500/5 p-3">
<div className="flex items-center gap-2 text-xs font-bold text-amber-700 dark:text-amber-500">
- <FilterX className="h-3.5 w-3.5 shrink-0" />
+ <FilterX className="icon-base shrink-0" />
{viewLabel
? `No observation matches the "${viewLabel}" view in this trace`
: "No observation matches the current filter in this trace"}
diff --git a/web/src/features/setup/components/SetupPage.tsx b/web/src/features/setup/components/SetupPage.tsx
index bfcf154073..c49a41b326 100644
--- a/web/src/features/setup/components/SetupPage.tsx
+++ b/web/src/features/setup/components/SetupPage.tsx
@@ -55,7 +55,7 @@ export function SetupPage() {
)}
>
1. Create Organization
- {stepInt > 1 && <Check className="ml-1 inline-block h-3 w-3" />}
+ {stepInt > 1 && <Check className="icon-sm ml-1 inline-block" />}
</BreadcrumbPage>
</BreadcrumbItem>
<BreadcrumbSeparator />
diff --git a/web/src/features/setup/components/TracesSetupOnboardingCard.tsx b/web/src/features/setup/components/TracesSetupOnboardingCard.tsx
index c955d4e694..5b217f8026 100644
--- a/web/src/features/setup/components/TracesSetupOnboardingCard.tsx
+++ b/web/src/features/setup/components/TracesSetupOnboardingCard.tsx
@@ -50,7 +50,11 @@ function CopyableSnippet({
className="shrink-0 gap-2"
onClick={() => handleCopy()}
>
- {copied ? <Check className="h-4 w-4" /> : <Copy className="h-4 w-4" />}
+ {copied ? (
+ <Check className="icon-base text-icon-foreground" />
+ ) : (
+ <Copy className="icon-base text-icon-foreground" />
+ )}
{copied ? "Copied" : "Copy prompt"}
</Button>
</div>
@@ -124,7 +128,7 @@ export function TracesSetupOnboardingCard({
) : (
<Button disabled className="self-start">
<LockIcon
- className="mr-2 -ml-0.5 h-4 w-4"
+ className="icon-base mr-2 -ml-0.5"
aria-hidden="true"
/>
Create new API key
@@ -143,7 +147,7 @@ export function TracesSetupOnboardingCard({
title: "Add tracing with your coding agent",
badge: (
<Badge variant="tertiary" className="gap-1">
- <Sparkles className="h-3 w-3" />
+ <Sparkles className="icon-sm" />
Recommended
</Badge>
),
diff --git a/web/src/features/skills/components/SkillEditor.tsx b/web/src/features/skills/components/SkillEditor.tsx
index 2ca49f501f..39f6ac5a0f 100644
--- a/web/src/features/skills/components/SkillEditor.tsx
+++ b/web/src/features/skills/components/SkillEditor.tsx
@@ -358,9 +358,9 @@ export function SkillEditor({
aria-label={`Download version ${baseVersion}`}
>
{isDownloading ? (
- <Loader2 className="mr-1.5 h-4 w-4 animate-spin" />
+ <Loader2 className="icon-base text-icon-foreground mr-1.5 animate-spin" />
) : (
- <Download className="mr-1.5 h-4 w-4" />
+ <Download className="icon-base text-icon-foreground mr-1.5" />
)}
Download
</Button>
@@ -374,7 +374,7 @@ export function SkillEditor({
className="text-dark-yellow flex shrink-0 items-center"
{...getTriggerProps()}
>
- <TriangleAlert className="h-4 w-4" />
+ <TriangleAlert className="icon-base" />
</button>
)}
</Tooltip>
@@ -401,7 +401,7 @@ export function SkillEditor({
setIsDraft(true);
}}
>
- <Plus className="mr-1.5 h-4 w-4" />
+ <Plus className="icon-base mr-1.5" />
New version
</Button>
) : (
@@ -420,7 +420,7 @@ export function SkillEditor({
}
title={createButtonTitle}
>
- <Save className="mr-1.5 h-4 w-4" />
+ <Save className="icon-base mr-1.5" />
Save
</Button>
)}
@@ -678,7 +678,7 @@ function SkillFileEditor({
if (content === undefined) {
return (
<div role="status" className="flex items-center gap-2 text-sm">
- <Loader2 className="h-4 w-4 animate-spin" /> Loading file…
+ <Loader2 className="icon-base animate-spin" /> Loading file…
</div>
);
}
diff --git a/web/src/features/skills/components/SkillFileExplorer.tsx b/web/src/features/skills/components/SkillFileExplorer.tsx
index dc2a0c0f1b..8f15e6a31a 100644
--- a/web/src/features/skills/components/SkillFileExplorer.tsx
+++ b/web/src/features/skills/components/SkillFileExplorer.tsx
@@ -237,9 +237,9 @@ export function SkillFileExplorer({
}}
>
{pendingEntry.kind === "folder" ? (
- <Folder className="text-muted-foreground h-4 w-4 shrink-0" />
+ <Folder className="text-muted-foreground icon-base shrink-0" />
) : (
- <FileCode2 className="text-muted-foreground h-4 w-4 shrink-0" />
+ <FileCode2 className="text-muted-foreground icon-base shrink-0" />
)}
<Input
autoFocus
@@ -264,7 +264,7 @@ export function SkillFileExplorer({
aria-label={`Create new ${label}`}
disabled={moveDisabled}
>
- <Check className="h-3.5 w-3.5" />
+ <Check className="icon-base text-icon-foreground" />
</Button>
<Button
type="button"
@@ -273,7 +273,7 @@ export function SkillFileExplorer({
aria-label={`Cancel new ${label}`}
onClick={() => setPendingEntry(null)}
>
- <X className="h-3.5 w-3.5" />
+ <X className="icon-base text-icon-foreground" />
</Button>
</form>
);
@@ -353,7 +353,7 @@ export function SkillFileExplorer({
onClick={() => setSelectedFolder("")}
className="flex items-center gap-2 rounded px-1 py-2 text-sm font-bold"
>
- <FolderOpen className="h-4 w-4" /> Files
+ <FolderOpen className="icon-base" /> Files
</button>
</SkillFolderDropTarget>
{!readOnly ? (
@@ -374,7 +374,7 @@ export function SkillFileExplorer({
disabled={moveDisabled}
onClick={() => startEntry("file")}
>
- <FilePlus2 className="h-4 w-4" />
+ <FilePlus2 className="icon-base text-icon-foreground" />
</Button>
<Button
type="button"
@@ -385,7 +385,7 @@ export function SkillFileExplorer({
disabled={moveDisabled}
onClick={() => startEntry("folder")}
>
- <FolderPlus className="h-4 w-4" />
+ <FolderPlus className="icon-base text-icon-foreground" />
</Button>
</div>
) : null}
@@ -515,9 +515,9 @@ function DraggableSkillFile({
)}
>
{path.endsWith(".md") ? (
- <FileCode2 className="h-4 w-4 shrink-0" />
+ <FileCode2 className="icon-base shrink-0" />
) : (
- <File className="h-4 w-4 shrink-0" />
+ <File className="icon-base shrink-0" />
)}
<span className="min-w-0 flex-1 truncate" title={path}>
{name}
@@ -551,7 +551,7 @@ function DraggableSkillFile({
onClick={onDelete}
className="mr-1 opacity-100 md:opacity-0 md:group-hover:opacity-100 md:focus:opacity-100"
>
- <Trash2 className="h-3.5 w-3.5" />
+ <Trash2 className="icon-base text-icon-foreground" />
</Button>
) : null}
</div>
@@ -616,14 +616,14 @@ function DraggableSkillFolder({
>
<ChevronRight
className={cn(
- "text-muted-foreground h-3.5 w-3.5 shrink-0 transition-transform",
+ "text-muted-foreground icon-base shrink-0 transition-transform",
expanded && "rotate-90",
)}
/>
{expanded ? (
- <FolderOpen className="h-4 w-4 shrink-0" />
+ <FolderOpen className="icon-base shrink-0" />
) : (
- <Folder className="h-4 w-4 shrink-0" />
+ <Folder className="icon-base shrink-0" />
)}
<span className="min-w-0 flex-1 truncate" title={path}>
{name}
@@ -638,7 +638,7 @@ function DraggableSkillFolder({
onClick={onDelete}
className="mr-1 opacity-100 md:opacity-0 md:group-hover:opacity-100 md:focus:opacity-100"
>
- <Trash2 className="h-3.5 w-3.5" />
+ <Trash2 className="icon-base text-icon-foreground" />
</Button>
) : null}
</div>
diff --git a/web/src/features/skills/components/SkillMetadataSelect.tsx b/web/src/features/skills/components/SkillMetadataSelect.tsx
index 790fad53ab..f0583de275 100644
--- a/web/src/features/skills/components/SkillMetadataSelect.tsx
+++ b/web/src/features/skills/components/SkillMetadataSelect.tsx
@@ -186,7 +186,7 @@ export function SkillLabelsSelect({
"opacity-0 group-focus-within/skill-version:opacity-100 group-hover/skill-version:opacity-100 [@media(hover:none)]:opacity-100",
)}
>
- <CircleFadingArrowUp className="h-3.5 w-3.5" />
+ <CircleFadingArrowUp className="icon-base text-icon-foreground" />
</Button>
</div>
</Trigger>
@@ -269,7 +269,7 @@ export function SkillTagsSelect({
}
>
{tag}
- <X className="ml-1 h-3 w-3" />
+ <X className="icon-base ml-1" />
</Button>
))}
<Input
@@ -294,7 +294,7 @@ export function SkillTagsSelect({
className="w-full justify-start px-2 font-normal"
onClick={() => setPendingTags([...pendingTags, tag])}
>
- <Plus className="mr-2 h-4 w-4" />
+ <Plus className="icon-base text-icon-foreground mr-2" />
{tag}
</Button>
))}
@@ -333,14 +333,14 @@ export function SkillTagsSelect({
>
{value.map((tag) => (
<Badge key={tag} variant="tertiary" className="h-6 gap-1">
- <TagIcon className="h-3 w-3" />
+ <TagIcon className="icon-sm" />
<span className="max-w-36 truncate" title={tag}>
{tag}
</span>
</Badge>
))}
<Badge variant="tertiary" className="h-6">
- <TagIcon className="h-3.5 w-3.5" />
+ <TagIcon className="icon-sm" />
</Badge>
</div>
</Trigger>
@@ -369,9 +369,9 @@ function SelectionRow({
onClick={onSelect}
>
{selected ? (
- <CircleCheckIcon className="mr-2 h-4 w-4" />
+ <CircleCheckIcon className="icon-base text-icon-foreground mr-2" />
) : (
- <CircleIcon className="mr-2 h-4 w-4 opacity-20" />
+ <CircleIcon className="icon-base text-icon-foreground mr-2 opacity-20" />
)}
{value}
</Button>
@@ -392,7 +392,7 @@ function CreateRow({
className="text-muted-foreground w-full justify-start px-2 font-normal"
onClick={onCreate}
>
- <Plus className="mr-2 h-4 w-4" />
+ <Plus className="icon-base text-icon-foreground mr-2" />
Create new: “{value}”
</Button>
);
diff --git a/web/src/features/skills/components/SkillVersionHistory.tsx b/web/src/features/skills/components/SkillVersionHistory.tsx
index 5ad2b95f71..415120ebd4 100644
--- a/web/src/features/skills/components/SkillVersionHistory.tsx
+++ b/web/src/features/skills/components/SkillVersionHistory.tsx
@@ -87,9 +87,9 @@ export function SkillVersionHistory(
onClick={() => setIsCollapsed((collapsed) => !collapsed)}
>
{isCollapsed ? (
- <PanelLeftOpen className="h-4 w-4" />
+ <PanelLeftOpen className="icon-base text-icon-foreground" />
) : (
- <PanelLeftClose className="h-4 w-4" />
+ <PanelLeftClose className="icon-base text-icon-foreground" />
)}
</Button>
</div>
diff --git a/web/src/features/skills/components/SkillsPage.tsx b/web/src/features/skills/components/SkillsPage.tsx
index 75dca1804b..39d06d5481 100644
--- a/web/src/features/skills/components/SkillsPage.tsx
+++ b/web/src/features/skills/components/SkillsPage.tsx
@@ -325,14 +325,14 @@ function NewSkillButton({
if (!canCreate) {
return (
<Button disabled title="You do not have write access">
- <Plus className="mr-1.5 h-4 w-4" /> New skill
+ <Plus className="icon-base mr-1.5" /> New skill
</Button>
);
}
return (
<Button asChild>
<Link href={href} onClick={onOpen}>
- <Plus className="mr-1.5 h-4 w-4" /> New skill
+ <Plus className="icon-base mr-1.5" /> New skill
</Link>
</Button>
);
@@ -349,7 +349,7 @@ function EmptySkills({
}) {
return (
<div className="flex flex-1 flex-col items-center justify-center gap-3 py-24 text-center">
- <FileCode2 className="text-muted-foreground h-9 w-9" />
+ <FileCode2 className="text-muted-foreground icon-xl" />
<div>
<h2 className="font-bold">Create your first skill</h2>
<p className="text-muted-foreground mt-1 text-sm">
diff --git a/web/src/features/slack/components/ChannelSelector.tsx b/web/src/features/slack/components/ChannelSelector.tsx
index 2181bad30a..35a833f15b 100644
--- a/web/src/features/slack/components/ChannelSelector.tsx
+++ b/web/src/features/slack/components/ChannelSelector.tsx
@@ -19,6 +19,7 @@ import { useVirtualizer } from "@tanstack/react-virtual";
import { api, reportNonTrpcError } from "@/src/utils/api";
import { env } from "@/src/env.mjs";
import { type SlackChannel } from "@langfuse/shared/src/server";
+import { cn } from "@/src/utils/tailwind";
export type { SlackChannel };
@@ -239,9 +240,9 @@ export const ChannelSelector: React.FC<ChannelSelectorProps> = ({
const renderChannelItem = (channel: SlackChannel) => (
<div className="flex w-full items-center gap-2">
{channel.isPrivate ? (
- <Lock className="text-muted-foreground h-4 w-4" />
+ <Lock className="text-muted-foreground icon-base" />
) : (
- <Hash className="text-muted-foreground h-4 w-4" />
+ <Hash className="text-muted-foreground icon-base" />
)}
<span className="flex-1 truncate" title={channel.name}>
{channel.name}
@@ -279,7 +280,7 @@ export const ChannelSelector: React.FC<ChannelSelectorProps> = ({
) : (
<span className="text-muted-foreground">{placeholder}</span>
)}
- <Search className="ml-2 h-4 w-4 shrink-0 opacity-50" />
+ <Search className="icon-base text-icon-foreground ml-2 shrink-0 opacity-50" />
</Button>
</PopoverTrigger>
<PopoverContent className="w-full p-0" align="start">
@@ -297,7 +298,7 @@ export const ChannelSelector: React.FC<ChannelSelectorProps> = ({
onSelect={handleSelectByName}
className="cursor-pointer"
>
- <Hash className="text-muted-foreground h-4 w-4" />
+ <Hash className="text-muted-foreground icon-base" />
<span
className="flex-1 truncate"
title={`Use &quot; ${effectiveName} &quot;`}
@@ -347,7 +348,7 @@ export const ChannelSelector: React.FC<ChannelSelectorProps> = ({
disabled
className="text-muted-foreground"
>
- <RefreshCw className="h-4 w-4 animate-spin" />
+ <RefreshCw className="icon-base animate-spin" />
<span
className="flex-1 truncate"
title="Loading Slack channels. This can take a while for large workspaces."
@@ -371,7 +372,10 @@ export const ChannelSelector: React.FC<ChannelSelectorProps> = ({
disabled={disabled || isRefreshing || isLoadingChannels}
>
<RefreshCw
- className={`h-4 w-4 ${isRefreshing || isLoadingChannels ? "animate-spin" : ""}`}
+ className={cn(
+ "icon-base text-icon-foreground",
+ (isRefreshing || isLoadingChannels) && "animate-spin",
+ )}
/>
</Button>
)}
diff --git a/web/src/features/slack/components/SlackConnectButton.tsx b/web/src/features/slack/components/SlackConnectButton.tsx
index e1936b602c..7b375a560b 100644
--- a/web/src/features/slack/components/SlackConnectButton.tsx
+++ b/web/src/features/slack/components/SlackConnectButton.tsx
@@ -182,7 +182,7 @@ export const SlackConnectButton: React.FC<SlackConnectButtonProps> = ({
size={size}
className="flex items-center gap-2"
>
- <SiSlack className="h-4 w-4" />
+ <SiSlack className="icon-base" />
{showText && <span>{isConnecting ? "Connecting..." : buttonText}</span>}
</Button>
);
diff --git a/web/src/features/slack/components/SlackConnectionCard.tsx b/web/src/features/slack/components/SlackConnectionCard.tsx
index 899b9422b0..e834fb8dd4 100644
--- a/web/src/features/slack/components/SlackConnectionCard.tsx
+++ b/web/src/features/slack/components/SlackConnectionCard.tsx
@@ -165,7 +165,7 @@ export const SlackConnectionCard: React.FC<SlackConnectionCardProps> = ({
<CardContent className="space-y-4">
{/* Connection Status */}
<div className="flex items-center gap-2">
- <CheckCircle className="h-4 w-4 text-green-500" />
+ <CheckCircle className="icon-base text-green-500" />
<span className="text-sm font-bold">Connected</span>
</div>
diff --git a/web/src/features/slack/components/SlackDisconnectButton.tsx b/web/src/features/slack/components/SlackDisconnectButton.tsx
index 908dd05067..4f112b3e4c 100644
--- a/web/src/features/slack/components/SlackDisconnectButton.tsx
+++ b/web/src/features/slack/components/SlackDisconnectButton.tsx
@@ -138,7 +138,7 @@ export const SlackDisconnectButton: React.FC<SlackDisconnectButtonProps> = ({
<Spinner size="sm" />
</div>
) : (
- <Unlink className={showText ? "mr-2 h-4 w-4" : "h-4 w-4"} />
+ <Unlink className={showText ? "icon-base mr-2" : "icon-base"} />
)}
{showText && (isDisconnecting ? "Disconnecting..." : buttonText)}
</>
@@ -160,7 +160,7 @@ export const SlackDisconnectButton: React.FC<SlackDisconnectButtonProps> = ({
<DialogContent>
<DialogHeader>
<DialogTitle className="flex items-center gap-2">
- <AlertTriangle className="text-destructive h-5 w-5" />
+ <AlertTriangle className="text-destructive icon-lg" />
Disconnect Slack Integration
</DialogTitle>
<DialogDescription className="space-y-2">
@@ -205,7 +205,7 @@ export const SlackDisconnectButton: React.FC<SlackDisconnectButtonProps> = ({
</>
) : (
<>
- <Unlink className="mr-2 h-4 w-4" />
+ <Unlink className="icon-base mr-2" />
Disconnect
</>
)}
diff --git a/web/src/features/slack/components/SlackTestMessageButton.tsx b/web/src/features/slack/components/SlackTestMessageButton.tsx
index a667f5b6b1..f05d5112af 100644
--- a/web/src/features/slack/components/SlackTestMessageButton.tsx
+++ b/web/src/features/slack/components/SlackTestMessageButton.tsx
@@ -102,7 +102,7 @@ export const SlackTestMessageButton: React.FC<SlackTestMessageButtonProps> = ({
</>
) : (
<>
- <Zap className="h-4 w-4" />
+ <Zap className="icon-base" />
{showText && <span>{buttonText}</span>}
</>
)}
diff --git a/web/src/features/support-chat/IntroSection.tsx b/web/src/features/support-chat/IntroSection.tsx
index d10cf4b576..34e0e37b06 100644
--- a/web/src/features/support-chat/IntroSection.tsx
+++ b/web/src/features/support-chat/IntroSection.tsx
@@ -52,7 +52,7 @@ export function IntroSection({ onStartForm }: { onStartForm: () => void }) {
<div className="mt-1 flex flex-col gap-6">
<div className="flex flex-col gap-3">
<div className="flex items-center gap-2 text-base font-bold">
- <Sparkles className="h-4 w-4" /> Ask AI
+ <Sparkles className="icon-base" /> Ask AI
</div>
<p className="text-muted-foreground mt-1 text-sm">
Get instant, helpful answers. Our AI knows the docs, examples, and
@@ -74,7 +74,7 @@ export function IntroSection({ onStartForm }: { onStartForm: () => void }) {
<div className="flex flex-col gap-3">
<div className="flex items-center gap-2 text-base font-bold">
- <LibraryBig className="h-4 w-4" /> Docs
+ <LibraryBig className="icon-base" /> Docs
</div>
<p className="text-muted-foreground text-sm">
Dive into guides, concepts, and API reference — clear steps and
@@ -100,7 +100,7 @@ export function IntroSection({ onStartForm }: { onStartForm: () => void }) {
<>
<div className="flex flex-col gap-3">
<div className="flex items-center gap-2 text-base font-bold">
- <LifeBuoy className="h-4 w-4" /> Support
+ <LifeBuoy className="icon-base" /> Support
</div>
<p className="text-muted-foreground text-sm">
Ask AI & Docs did not unblock you? Get in touch with the support
@@ -158,7 +158,7 @@ export function IntroSection({ onStartForm }: { onStartForm: () => void }) {
<>
<div className="flex flex-col gap-3">
<div className="flex items-center gap-2 text-base font-bold">
- <LifeBuoy className="h-4 w-4" /> Email a Support Engineer
+ <LifeBuoy className="icon-base" /> Email a Support Engineer
</div>
<p className="text-muted-foreground text-sm">
Ask AI & Docs did not unblock you? One of our support engineers
@@ -177,7 +177,7 @@ export function IntroSection({ onStartForm }: { onStartForm: () => void }) {
<>
<div className="flex flex-col gap-3">
<div className="flex items-center gap-2 text-base font-bold">
- <LifeBuoy className="h-4 w-4" /> Community Support
+ <LifeBuoy className="icon-base" /> Community Support
</div>
<p className="text-muted-foreground text-sm">
Ask AI & Docs did not unblock you? Get help from and share
@@ -189,7 +189,8 @@ export function IntroSection({ onStartForm }: { onStartForm: () => void }) {
target="_blank"
rel="noopener"
>
- <SiGithub className="mr-2 h-4 w-4" /> Get Help ↗
+ <SiGithub className="icon-base text-icon-foreground mr-2" /> Get
+ Help ↗
</a>
</Button>
<Button variant="outline" asChild>
@@ -198,7 +199,8 @@ export function IntroSection({ onStartForm }: { onStartForm: () => void }) {
target="_blank"
rel="noopener"
>
- <Lightbulb className="mr-2 h-4 w-4" /> Feature request ↗
+ <Lightbulb className="icon-base text-icon-foreground mr-2" />{" "}
+ Feature request ↗
</a>
</Button>
<Button variant="outline" asChild>
@@ -207,7 +209,8 @@ export function IntroSection({ onStartForm }: { onStartForm: () => void }) {
target="_blank"
rel="noopener"
>
- <Bug className="mr-2 h-4 w-4" /> Report a bug ↗
+ <Bug className="icon-base text-icon-foreground mr-2" /> Report a
+ bug ↗
</a>
</Button>
</div>
@@ -219,7 +222,7 @@ export function IntroSection({ onStartForm }: { onStartForm: () => void }) {
{supportType !== "custom" && (
<div>
<div className="flex items-center gap-2 text-base font-bold">
- <SiGithub className="h-4 w-4" /> Community & Resources
+ <SiGithub className="icon-base" /> Community & Resources
</div>
<p className="text-muted-foreground mt-1 text-sm">
Join the conversation and connect with the Langfuse community.
@@ -231,7 +234,8 @@ export function IntroSection({ onStartForm }: { onStartForm: () => void }) {
target="_blank"
rel="noopener"
>
- <SiGithub className="mr-2 h-4 w-4" /> GitHub ↗
+ <SiGithub className="icon-base text-icon-foreground mr-2" />{" "}
+ GitHub ↗
</a>
</Button>
<Button asChild variant="ghost" className="justify-start px-1.5">
@@ -241,7 +245,8 @@ export function IntroSection({ onStartForm }: { onStartForm: () => void }) {
rel="noopener"
className="flex items-center"
>
- <SiDiscord className="mr-2 h-4 w-4" /> Discord ↗
+ <SiDiscord className="icon-base text-icon-foreground mr-2" />{" "}
+ Discord ↗
</a>
</Button>
<Button asChild variant="ghost" className="justify-start px-1.5">
@@ -252,7 +257,8 @@ export function IntroSection({ onStartForm }: { onStartForm: () => void }) {
className="flex items-center"
onClick={() => capture("support_chat:community_hours_click")}
>
- <Calendar className="mr-2 h-4 w-4" /> Community Hours ↗
+ <Calendar className="icon-base text-icon-foreground mr-2" />{" "}
+ Community Hours ↗
</a>
</Button>
@@ -264,7 +270,8 @@ export function IntroSection({ onStartForm }: { onStartForm: () => void }) {
rel="noopener"
className="flex items-center"
>
- <Radio className="mr-2 h-4 w-4" /> Status Page ↗
+ <Radio className="icon-base text-icon-foreground mr-2" />{" "}
+ Status Page ↗
</a>
</Button>
)}
diff --git a/web/src/features/support-chat/SuccessSection.tsx b/web/src/features/support-chat/SuccessSection.tsx
index dce93ed328..085a7af3bc 100644
--- a/web/src/features/support-chat/SuccessSection.tsx
+++ b/web/src/features/support-chat/SuccessSection.tsx
@@ -9,7 +9,7 @@ export function SuccessSection({ onAnother }: { onAnother: () => void }) {
{/* Success card */}
<div className="rounded-md border p-4">
<div className="flex items-start gap-3">
- <CheckCircle2 className="mt-0.5 h-5 w-5 text-green-600" />
+ <CheckCircle2 className="icon-lg mt-0.5 text-green-600" />
<div className="space-y-0.5">
<div className="text-sm font-bold">Thanks for your message</div>
<div className="text-muted-foreground text-sm">
diff --git a/web/src/features/support-chat/SupportDrawer.tsx b/web/src/features/support-chat/SupportDrawer.tsx
index e2e1e8b2d8..327bde4072 100644
--- a/web/src/features/support-chat/SupportDrawer.tsx
+++ b/web/src/features/support-chat/SupportDrawer.tsx
@@ -85,7 +85,7 @@ const SupportDrawerContent = ({
onClick={close}
aria-label="Close"
>
- <X className="h-4 w-4" />
+ <X className="icon-base text-icon-foreground" />
</Button>
)}
</div>
diff --git a/web/src/features/support-chat/SupportForm.tsx b/web/src/features/support-chat/SupportForm.tsx
index 5557bf6425..6e71b4dc08 100644
--- a/web/src/features/support-chat/SupportForm.tsx
+++ b/web/src/features/support-chat/SupportForm.tsx
@@ -531,7 +531,7 @@ export function SupportForm({
className="p-0"
>
<span className="sr-only">Remove file</span>
- <Trash2 className="h-3.5 w-3.5" />
+ <Trash2 className="icon-sm text-icon-foreground" />
</Button>
{file.name}
</div>
diff --git a/web/src/features/table/components/TableActionMenu.tsx b/web/src/features/table/components/TableActionMenu.tsx
index 9e8b1dbe6e..1f85008df5 100644
--- a/web/src/features/table/components/TableActionMenu.tsx
+++ b/web/src/features/table/components/TableActionMenu.tsx
@@ -31,9 +31,9 @@ type TableActionMenuProps = {
const getDefaultIcon = (type: TableAction["type"]) => {
if (type === "create") {
- return <Plus className="h-4 w-4 sm:mr-2" />;
+ return <Plus className="icon-base sm:mr-2" />;
}
- return <Trash className="h-4 w-4 sm:mr-2" />;
+ return <Trash className="icon-base sm:mr-2" />;
};
export function TableActionMenu({
@@ -102,7 +102,7 @@ export function TableActionMenu({
className="h-8 w-8"
onClick={onClearSelection}
>
- <X className="h-4 w-4" />
+ <X className="icon-base text-icon-foreground" />
</Button>
<div className="bg-border h-5 w-px" />
<div className="flex items-center gap-2">
diff --git a/web/src/features/tag/components/TagButton.tsx b/web/src/features/tag/components/TagButton.tsx
index 8d56e0f68d..e4f630c354 100644
--- a/web/src/features/tag/components/TagButton.tsx
+++ b/web/src/features/tag/components/TagButton.tsx
@@ -11,7 +11,7 @@ export const TagButton: React.FC<{
}> = React.memo(({ tag, loading, viewOnly = false, isTableCell = false }) => {
const label = (
<>
- <TagIcon className="text-foreground-tertiary size-3 shrink-0" />
+ <TagIcon className="text-foreground-tertiary icon-sm shrink-0" />
<span
className={cn(
"overflow-hidden py-0.5 text-ellipsis whitespace-nowrap",
diff --git a/web/src/features/tag/components/TagInput.tsx b/web/src/features/tag/components/TagInput.tsx
index 7ede5ea07f..9d3cbace28 100644
--- a/web/src/features/tag/components/TagInput.tsx
+++ b/web/src/features/tag/components/TagInput.tsx
@@ -58,7 +58,7 @@ export const TagInput = React.forwardRef<
onClick={allowTagRemoval ? () => removeTag(tag) : undefined}
>
{tag}
- {allowTagRemoval && <X className="ml-1 h-3 w-3" />}
+ {allowTagRemoval && <X className="icon-base ml-1" />}
</Button>
))}
</div>
diff --git a/web/src/features/tag/components/TagList.tsx b/web/src/features/tag/components/TagList.tsx
index 5e525b42ff..8ce302e039 100644
--- a/web/src/features/tag/components/TagList.tsx
+++ b/web/src/features/tag/components/TagList.tsx
@@ -27,7 +27,7 @@ const TagList = ({
))
) : (
<Badge variant="outline">
- <TagIcon className="text-foreground-tertiary size-3" />
+ <TagIcon className="icon-sm text-foreground-tertiary" />
</Badge>
);
};
diff --git a/web/src/features/theming/ThemeToggle.tsx b/web/src/features/theming/ThemeToggle.tsx
index 3733f8c743..21687e3e2e 100644
--- a/web/src/features/theming/ThemeToggle.tsx
+++ b/web/src/features/theming/ThemeToggle.tsx
@@ -14,7 +14,7 @@ export function ThemeToggle() {
<Sun
className={cn(
theme === "light" ? "text-primary-accent" : "",
- "hover:bg-input hover:text-primary-accent size-5.5 rounded-sm p-1",
+ "hover:bg-input hover:text-primary-accent icon-lg rounded-sm p-1",
)}
onClick={(e) => {
e.preventDefault();
@@ -29,7 +29,7 @@ export function ThemeToggle() {
<Moon
className={cn(
theme === "dark" ? "text-primary-accent" : "",
- "hover:bg-input hover:text-primary-accent size-5.5 rounded-sm p-1",
+ "hover:bg-input hover:text-primary-accent icon-lg rounded-sm p-1",
)}
onClick={(e) => {
e.preventDefault();
@@ -44,7 +44,7 @@ export function ThemeToggle() {
<Monitor
className={cn(
theme === "system" ? "text-primary-accent" : "",
- "hover:bg-input hover:text-primary-accent size-5.5 rounded-sm p-1",
+ "hover:bg-input hover:text-primary-accent icon-lg rounded-sm p-1",
)}
onClick={(e) => {
e.preventDefault();
diff --git a/web/src/features/trace-graph-view/components/ElkGraphRenderer.tsx b/web/src/features/trace-graph-view/components/ElkGraphRenderer.tsx
index f5552e177d..0658c6cb13 100644
--- a/web/src/features/trace-graph-view/components/ElkGraphRenderer.tsx
+++ b/web/src/features/trace-graph-view/components/ElkGraphRenderer.tsx
@@ -568,7 +568,7 @@ export const ElkGraphRenderer: React.FC<ElkGraphRendererProps> = ({
className="bg-background/80 h-7 w-7 backdrop-blur"
title="Zoom in"
>
- <ZoomIn className="h-4 w-4" />
+ <ZoomIn className="icon-base text-icon-foreground" />
</Button>
<Button
onClick={() => zoomBy(1 / ZOOM_STEP)}
@@ -577,7 +577,7 @@ export const ElkGraphRenderer: React.FC<ElkGraphRendererProps> = ({
className="bg-background/80 h-7 w-7 backdrop-blur"
title="Zoom out"
>
- <ZoomOut className="h-4 w-4" />
+ <ZoomOut className="icon-base text-icon-foreground" />
</Button>
<Button
onClick={handleFit}
@@ -586,7 +586,7 @@ export const ElkGraphRenderer: React.FC<ElkGraphRendererProps> = ({
className="bg-background/80 h-7 w-7 backdrop-blur"
title="Fit to view"
>
- <Maximize className="h-4 w-4" />
+ <Maximize className="icon-base text-icon-foreground" />
</Button>
</div>
</div>
diff --git a/web/src/features/trace-graph-view/components/GraphViewModeSwitch.tsx b/web/src/features/trace-graph-view/components/GraphViewModeSwitch.tsx
index 0b07236f67..3368fb01ec 100644
--- a/web/src/features/trace-graph-view/components/GraphViewModeSwitch.tsx
+++ b/web/src/features/trace-graph-view/components/GraphViewModeSwitch.tsx
@@ -43,7 +43,7 @@ export function GraphViewModeSwitch({
<Tabs.List size="md" aria-label="Graph mode">
{MODES.map(({ mode, icon: Icon, label, title }) => (
<Tabs.Trigger key={mode} value={mode} title={title}>
- <Icon aria-hidden="true" className="size-3.5 shrink-0" />
+ <Icon aria-hidden="true" className="icon-base shrink-0" />
{/* Icons only on narrow canvases so the switch never collides
with the zoom stack. */}
<span className="@max-[340px]/graphcanvas:sr-only">{label}</span>
diff --git a/web/src/features/traces/TracesTable.tsx b/web/src/features/traces/TracesTable.tsx
index cbe96eed0c..93a5b59027 100644
--- a/web/src/features/traces/TracesTable.tsx
+++ b/web/src/features/traces/TracesTable.tsx
@@ -885,7 +885,7 @@ function TracesTableInternal({
) : (
<EmptyValue />
)}
- <InfoIcon className="h-3 w-3" />
+ <InfoIcon className="icon-sm" />
</div>
</BreakdownTooltip>
) : null;
@@ -1245,7 +1245,7 @@ function TracesTableInternal({
}
onSelect={() => openDeleteTraceDialog(traceId)}
>
- <Trash2 className="mr-2 h-4 w-4" />
+ <Trash2 className="icon-base text-icon-foreground mr-2" />
Delete
</DropdownMenuItem>
) : null,
diff --git a/web/src/features/traces/components/AdvancedJsonViewer/components/CopyButton.tsx b/web/src/features/traces/components/AdvancedJsonViewer/components/CopyButton.tsx
index 94e38af141..5bc59271e6 100644
--- a/web/src/features/traces/components/AdvancedJsonViewer/components/CopyButton.tsx
+++ b/web/src/features/traces/components/AdvancedJsonViewer/components/CopyButton.tsx
@@ -59,7 +59,7 @@ export function CopyButton({ value, theme, className }: CopyButtonProps) {
aria-label={copied ? "Copied!" : "Copy value"}
title={copied ? "Copied!" : "Copy value"}
>
- <Icon size={9} />
+ <Icon className="icon-sm" />
</button>
);
}
diff --git a/web/src/features/traces/components/AdvancedJsonViewer/components/ExpandButton.tsx b/web/src/features/traces/components/AdvancedJsonViewer/components/ExpandButton.tsx
index 255bb53970..adbceebd10 100644
--- a/web/src/features/traces/components/AdvancedJsonViewer/components/ExpandButton.tsx
+++ b/web/src/features/traces/components/AdvancedJsonViewer/components/ExpandButton.tsx
@@ -64,7 +64,7 @@ export function ExpandButton({
}
disabled={isToggling}
>
- <Icon size={14} />
+ <Icon className="icon-base" />
</button>
);
}
diff --git a/web/src/features/traces/components/AdvancedJsonViewer/components/MediaButtonGroup.tsx b/web/src/features/traces/components/AdvancedJsonViewer/components/MediaButtonGroup.tsx
index e83247f5b1..2e60c8bc15 100644
--- a/web/src/features/traces/components/AdvancedJsonViewer/components/MediaButtonGroup.tsx
+++ b/web/src/features/traces/components/AdvancedJsonViewer/components/MediaButtonGroup.tsx
@@ -247,7 +247,7 @@ export function MediaButtonGroup({ media }: MediaButtonGroupProps) {
e.preventDefault();
}}
>
- <group.icon className="h-3.5 w-3.5" />
+ <group.icon className="icon-base" />
{group.items.length > 1 && (
<span className="bg-primary text-primary-foreground absolute -top-1 -right-1 flex h-3.5 w-3.5 items-center justify-center rounded-full text-[9px] font-bold">
{group.items.length}
diff --git a/web/src/features/traces/components/AdvancedJsonViewer/components/MultiSectionJsonViewerHeader.tsx b/web/src/features/traces/components/AdvancedJsonViewer/components/MultiSectionJsonViewerHeader.tsx
index ca6107ddaa..802e3a15d4 100644
--- a/web/src/features/traces/components/AdvancedJsonViewer/components/MultiSectionJsonViewerHeader.tsx
+++ b/web/src/features/traces/components/AdvancedJsonViewer/components/MultiSectionJsonViewerHeader.tsx
@@ -50,9 +50,9 @@ export function MultiSectionJsonViewerHeader({
}}
>
{context.isExpanded ? (
- <ChevronDown size={14} />
+ <ChevronDown className="icon-base" />
) : (
- <ChevronRight size={14} />
+ <ChevronRight className="icon-base" />
)}
</span>
<span className="text-xs font-bold">{title}</span>
@@ -77,7 +77,7 @@ export function MultiSectionJsonViewerHeader({
fontSize: "0.65rem",
}}
>
- <MessageSquare size={10} />
+ <MessageSquare className="icon-sm" />
{commentCount}
</span>
)}
diff --git a/web/src/features/traces/components/AdvancedJsonViewer/lazy/react/LazyJsonRow.tsx b/web/src/features/traces/components/AdvancedJsonViewer/lazy/react/LazyJsonRow.tsx
index d4607fb823..7f15e3d122 100644
--- a/web/src/features/traces/components/AdvancedJsonViewer/lazy/react/LazyJsonRow.tsx
+++ b/web/src/features/traces/components/AdvancedJsonViewer/lazy/react/LazyJsonRow.tsx
@@ -66,7 +66,7 @@ function LazyJsonRowImpl({
>
{row.preview}
</button>
- {pending ? <Loader2 className="h-3 w-3 animate-spin" /> : null}
+ {pending ? <Loader2 className="icon-sm animate-spin" /> : null}
</div>
);
}
@@ -83,7 +83,7 @@ function LazyJsonRowImpl({
<span className="flex h-4 w-4 shrink-0 items-center justify-center">
{isContainer ? (
pending ? (
- <Loader2 className="text-muted-foreground h-3 w-3 animate-spin" />
+ <Loader2 className="text-muted-foreground icon-sm animate-spin" />
) : (
<button
type="button"
@@ -93,7 +93,7 @@ function LazyJsonRowImpl({
>
<ChevronRight
className={cn(
- "h-3 w-3 transition-transform",
+ "icon-sm transition-transform",
row.expanded && "rotate-90",
)}
/>
@@ -143,7 +143,7 @@ function LazyJsonRowImpl({
className="text-muted-foreground hover:text-foreground ml-1 shrink-0 opacity-0 group-hover:opacity-100"
onClick={() => onCopyValue(row.nodeId)}
>
- <Copy className="h-3 w-3" />
+ <Copy className="icon-sm" />
</button>
) : null}
</div>
diff --git a/web/src/features/traces/components/BreakdownTooltip.tsx b/web/src/features/traces/components/BreakdownTooltip.tsx
index 50a1abc6a6..488825cd9c 100644
--- a/web/src/features/traces/components/BreakdownTooltip.tsx
+++ b/web/src/features/traces/components/BreakdownTooltip.tsx
@@ -128,7 +128,7 @@ export const BreakdownTooltip = ({
>
Calculated · {priceSource.pricingTierName} Tier Pricing
</span>
- <ExternalLink className="h-3 w-3 shrink-0" />
+ <ExternalLink className="icon-sm shrink-0" />
</Link>
) : null}
diff --git a/web/src/features/traces/components/CollapsibleBadgeRow.tsx b/web/src/features/traces/components/CollapsibleBadgeRow.tsx
index 78a355c22f..b52f5983a1 100644
--- a/web/src/features/traces/components/CollapsibleBadgeRow.tsx
+++ b/web/src/features/traces/components/CollapsibleBadgeRow.tsx
@@ -59,9 +59,9 @@ export function CollapsibleBadgeRow({
onClick={() => setExpanded((prev) => !prev)}
>
{expanded ? (
- <ChevronUp className="h-4 w-4" />
+ <ChevronUp className="icon-sm text-icon-foreground" />
) : (
- <ChevronDown className="h-4 w-4" />
+ <ChevronDown className="icon-sm text-icon-foreground" />
)}
</Button>
</div>
diff --git a/web/src/features/traces/components/CopyIdsPopover.tsx b/web/src/features/traces/components/CopyIdsPopover.tsx
index a66c4f3ebf..063bb506d4 100644
--- a/web/src/features/traces/components/CopyIdsPopover.tsx
+++ b/web/src/features/traces/components/CopyIdsPopover.tsx
@@ -40,9 +40,9 @@ export const CopyIdsPopover = ({
onClick={() => handleCopy(idItems[0].id)}
>
{copiedId === idItems[0].id ? (
- <CheckIcon className="text-muted-green h-3 w-3" />
+ <CheckIcon className="icon-base text-muted-green" />
) : (
- <CopyIcon className="h-3 w-3" />
+ <CopyIcon className="icon-base text-icon-foreground" />
)}
<span className="ml-1 text-xs">ID</span>
</Button>
@@ -57,7 +57,7 @@ export const CopyIdsPopover = ({
title="Copy ID"
className={cn("h-fit px-1", className)}
>
- <CopyIcon className="h-3 w-3" />
+ <CopyIcon className="icon-base text-icon-foreground" />
<span className="ml-1 text-xs">ID</span>
</Button>
</PopoverTrigger>
@@ -89,9 +89,9 @@ export const CopyIdsPopover = ({
onClick={() => handleCopy(item.id)}
>
{copiedId === item.id ? (
- <CheckIcon className="text-muted-green h-3 w-3" />
+ <CheckIcon className="icon-base text-muted-green" />
) : (
- <CopyIcon className="h-3 w-3" />
+ <CopyIcon className="icon-base text-icon-foreground" />
)}
</Button>
</div>
diff --git a/web/src/features/traces/components/DetailHeaderActionsMenuController.stories.tsx b/web/src/features/traces/components/DetailHeaderActionsMenuController.stories.tsx
index 1b95e17ea3..94d47794ff 100644
--- a/web/src/features/traces/components/DetailHeaderActionsMenuController.stories.tsx
+++ b/web/src/features/traces/components/DetailHeaderActionsMenuController.stories.tsx
@@ -19,7 +19,7 @@ function DetailHeaderActionsMenuStory() {
variant="ghost"
{...getTriggerProps()}
>
- <EllipsisVertical className="h-4 w-4" />
+ <EllipsisVertical className="icon-sm text-icon-foreground" />
</Button>
)}
</DetailHeaderActionsMenuController>
diff --git a/web/src/features/traces/components/IOPreview/IOPreview.tsx b/web/src/features/traces/components/IOPreview/IOPreview.tsx
index 11c8a3265c..2fbe715ec2 100644
--- a/web/src/features/traces/components/IOPreview/IOPreview.tsx
+++ b/web/src/features/traces/components/IOPreview/IOPreview.tsx
@@ -331,11 +331,11 @@ export function IOPreview({
}}
title="Dismiss"
>
- <X className="h-3.5 w-3.5" />
+ <X className="icon-base text-icon-foreground" />
</Button>
<div className="flex w-full flex-row items-center gap-2 pr-6">
<div className="bg-accent flex h-8 w-8 items-center justify-center rounded-full">
- <BookOpen className="text-muted-foreground h-4 w-4" />
+ <BookOpen className="text-muted-foreground icon-base" />
</div>
<h3 className="text-base font-bold">
Looks like this trace didn&apos;t receive an input or output.
diff --git a/web/src/features/traces/components/IOPreview/IOPreviewJSON.tsx b/web/src/features/traces/components/IOPreview/IOPreviewJSON.tsx
index 0197001d16..bbc64b225b 100644
--- a/web/src/features/traces/components/IOPreview/IOPreviewJSON.tsx
+++ b/web/src/features/traces/components/IOPreview/IOPreviewJSON.tsx
@@ -402,12 +402,12 @@ function IOPreviewJSONInner({
const wrapIcon = useMemo(() => {
if (stringWrapMode === "truncate") {
- return <Minus size={14} />;
+ return <Minus className="icon-base" />;
}
if (stringWrapMode === "wrap") {
- return <WrapText size={14} />;
+ return <WrapText className="icon-base" />;
}
- return <ChevronDown size={14} className="-rotate-90" />;
+ return <ChevronDown className="icon-base -rotate-90" />;
}, [stringWrapMode]);
// Build sections - memoized to prevent re-creation. A gated field renders as
@@ -706,7 +706,7 @@ function IOPreviewJSONInner({
onClick={handlePreviousMatch}
title="Previous match (Shift+Enter)"
>
- <ChevronUp className="h-3.5 w-3.5" />
+ <ChevronUp className="icon-base text-icon-foreground" />
</Button>
<Button
variant="ghost"
@@ -715,7 +715,7 @@ function IOPreviewJSONInner({
onClick={handleNextMatch}
title="Next match (Enter)"
>
- <ChevronDown className="h-3.5 w-3.5" />
+ <ChevronDown className="icon-base text-icon-foreground" />
</Button>
</>
)}
@@ -739,7 +739,7 @@ function IOPreviewJSONInner({
onClick={handleCopy}
title="Copy to clipboard"
>
- <Copy className="h-3.5 w-3.5" />
+ <Copy className="icon-base text-icon-foreground" />
</Button>
</div>
diff --git a/web/src/features/traces/components/IOPreview/components/ChatMessage.tsx b/web/src/features/traces/components/IOPreview/components/ChatMessage.tsx
index d9be9bc970..050b4eb0e9 100644
--- a/web/src/features/traces/components/IOPreview/components/ChatMessage.tsx
+++ b/web/src/features/traces/components/IOPreview/components/ChatMessage.tsx
@@ -79,9 +79,9 @@ export function ChatMessage({
className="hover:bg-border -mr-2"
>
{showTableView ? (
- <ListChevronsDownUp className="text-primary h-3 w-3" />
+ <ListChevronsDownUp className="icon-sm text-primary" />
) : (
- <ListChevronsUpDown className="h-3 w-3" />
+ <ListChevronsUpDown className="icon-sm text-icon-foreground" />
)}
</Button>
) : undefined;
diff --git a/web/src/features/traces/components/IOPreview/components/CorrectedOutputField.tsx b/web/src/features/traces/components/IOPreview/components/CorrectedOutputField.tsx
index ea4736bd0a..40d97d9549 100644
--- a/web/src/features/traces/components/IOPreview/components/CorrectedOutputField.tsx
+++ b/web/src/features/traces/components/IOPreview/components/CorrectedOutputField.tsx
@@ -176,7 +176,7 @@ export function CorrectedOutputField({
}}
className="text-muted-foreground hover:text-foreground inline-flex items-center gap-1 text-xs hover:underline"
>
- <Pencil className="size-3 shrink-0" aria-hidden />
+ <Pencil className="icon-sm shrink-0" aria-hidden />
Correct output
</button>
</div>
@@ -205,7 +205,7 @@ export function CorrectedOutputField({
<HoverCard>
<HoverCardTrigger asChild>
<button className="text-muted-foreground hover:text-foreground">
- <Info className="h-3.5 w-3.5" />
+ <Info className="icon-base" />
</button>
</HoverCardTrigger>
<HoverCardContent className="w-80 text-xs" side="right">
@@ -244,7 +244,7 @@ export function CorrectedOutputField({
)}
{isValidJson && saveStatus === "saved" && (
<div className="mr-2 flex items-center gap-1">
- <Check className="h-3 w-3" />
+ <Check className="icon-sm" />
<span className="text-muted-foreground text-xs">Saved</span>
</div>
)}
@@ -257,7 +257,7 @@ export function CorrectedOutputField({
className="hover:bg-border"
title="View diff between original and corrected output"
>
- <FileDiff className="h-3 w-3" />
+ <FileDiff className="icon-sm text-icon-foreground" />
</Button>
{!isEditing && (
<Button
@@ -268,7 +268,7 @@ export function CorrectedOutputField({
className="hover:bg-border"
title="Edit corrected output"
>
- <Pencil className="h-3 w-3" />
+ <Pencil className="icon-sm text-icon-foreground" />
</Button>
)}
<Button
@@ -279,7 +279,7 @@ export function CorrectedOutputField({
className="hover:bg-border"
title="Delete corrected output"
>
- <Trash className="h-3 w-3" />
+ <Trash className="icon-sm text-icon-foreground" />
</Button>
</>
)}
diff --git a/web/src/features/traces/components/IOPreview/components/LargeJsonFieldFallback.tsx b/web/src/features/traces/components/IOPreview/components/LargeJsonFieldFallback.tsx
index 3bf9c576f6..09f2d1176d 100644
--- a/web/src/features/traces/components/IOPreview/components/LargeJsonFieldFallback.tsx
+++ b/web/src/features/traces/components/IOPreview/components/LargeJsonFieldFallback.tsx
@@ -91,7 +91,7 @@ export function LargeJsonFieldFallback({
<div className="text-muted-foreground flex items-center gap-2 px-1 py-1 text-xs">
<span>{sizeSummary}</span>
<Button variant="outline" size="sm" onClick={onDownload}>
- <Download className="mr-1 h-3.5 w-3.5" />
+ <Download className="icon-base text-icon-foreground mr-1" />
Download {title}
</Button>
</div>
@@ -118,7 +118,7 @@ export function LargeJsonFieldFallback({
</pre>
<div>
<Button variant="outline" size="sm" onClick={onDownload}>
- <Download className="mr-1 h-3.5 w-3.5" />
+ <Download className="icon-base text-icon-foreground mr-1" />
Download {title}
</Button>
</div>
diff --git a/web/src/features/traces/components/IOPreview/components/ToolCallDefinitionCard.tsx b/web/src/features/traces/components/IOPreview/components/ToolCallDefinitionCard.tsx
index 6979a5e711..04e52c8fcc 100644
--- a/web/src/features/traces/components/IOPreview/components/ToolCallDefinitionCard.tsx
+++ b/web/src/features/traces/components/IOPreview/components/ToolCallDefinitionCard.tsx
@@ -145,7 +145,7 @@ function ToolGroupHoverContent({
className="flex min-w-0 items-center justify-between gap-2 rounded-sm px-2 py-1"
>
<div className="flex min-w-0 items-center gap-2">
- <Wrench className="text-muted-foreground h-3.5 w-3.5 shrink-0" />
+ <Wrench className="text-muted-foreground icon-base shrink-0" />
<span
className="ph-no-capture text-foreground block truncate font-mono text-xs font-bold"
title={tool.name}
@@ -208,7 +208,7 @@ function ToolGroupSummary({
<div className="flex min-w-0 items-center gap-2">
<Wrench
className={cn(
- "text-muted-foreground h-3.5 w-3.5 shrink-0",
+ "text-muted-foreground icon-base shrink-0",
isCalledGroup && "text-dark-green",
)}
/>
@@ -340,7 +340,7 @@ function ToolDefinitionRow({
aria-expanded={isExpanded}
>
<div className="flex min-w-0 items-center gap-2">
- <Wrench className="text-muted-foreground h-3.5 w-3.5 shrink-0" />
+ <Wrench className="text-muted-foreground icon-base shrink-0" />
<span
className="ph-no-capture text-foreground block truncate font-mono text-xs font-bold"
title={tool.name}
diff --git a/web/src/features/traces/components/JSONTableView/JSONTableViewRow.tsx b/web/src/features/traces/components/JSONTableView/JSONTableViewRow.tsx
index 68ef59c38b..3a18a634d2 100644
--- a/web/src/features/traces/components/JSONTableView/JSONTableViewRow.tsx
+++ b/web/src/features/traces/components/JSONTableView/JSONTableViewRow.tsx
@@ -64,7 +64,7 @@ function JSONTableViewRowInner<T>({
{/* Expand icon */}
{expandable && (
- <ChevronIcon className="text-muted-foreground h-3.5 w-3.5 shrink-0" />
+ <ChevronIcon className="text-muted-foreground icon-base shrink-0" />
)}
{/* Column cells */}
diff --git a/web/src/features/traces/components/ObservationDetailView/AttributeRowActions.tsx b/web/src/features/traces/components/ObservationDetailView/AttributeRowActions.tsx
index d6faff40f7..0c3f70249a 100644
--- a/web/src/features/traces/components/ObservationDetailView/AttributeRowActions.tsx
+++ b/web/src/features/traces/components/ObservationDetailView/AttributeRowActions.tsx
@@ -74,7 +74,7 @@ export function AttributeRowActions({
copyTextToClipboard(getCopyValue(value));
}}
>
- <Copy className="mr-2 h-3.5 w-3.5 shrink-0" />
+ <Copy className="icon-base text-icon-foreground mr-2 shrink-0" />
{hasChildren ? "Copy structure" : "Copy value"}
</DropdownMenuItem>
{filter && includeText ? (
@@ -87,7 +87,7 @@ export function AttributeRowActions({
navigate(filter.include, filter.target);
}}
>
- <Filter className="mr-2 h-3.5 w-3.5 shrink-0" />
+ <Filter className="icon-base text-icon-foreground mr-2 shrink-0" />
<span className="flex min-w-0 flex-col">
<span>Include in filter</span>
<span
@@ -106,7 +106,7 @@ export function AttributeRowActions({
navigate(excludeClause, filter.target);
}}
>
- <FilterX className="mr-2 h-3.5 w-3.5 shrink-0" />
+ <FilterX className="icon-base text-icon-foreground mr-2 shrink-0" />
<span className="flex min-w-0 flex-col">
<span>Exclude from filter</span>
<span
diff --git a/web/src/features/traces/components/ObservationDetailView/components/ObservationDetailViewHeader/ObservationDetailViewHeader.tsx b/web/src/features/traces/components/ObservationDetailView/components/ObservationDetailViewHeader/ObservationDetailViewHeader.tsx
index d57690eafe..e6592751ae 100644
--- a/web/src/features/traces/components/ObservationDetailView/components/ObservationDetailViewHeader/ObservationDetailViewHeader.tsx
+++ b/web/src/features/traces/components/ObservationDetailView/components/ObservationDetailViewHeader/ObservationDetailViewHeader.tsx
@@ -327,7 +327,7 @@ export const ObservationDetailViewHeader = memo(
ref: mobileActionsTriggerRef,
})}
>
- <MoreHorizontal className="h-4 w-4" />
+ <MoreHorizontal className="icon-base text-icon-foreground" />
</Button>
)}
</DropdownMenu>
@@ -366,7 +366,7 @@ export const ObservationDetailViewHeader = memo(
className="gap-1"
{...getTriggerProps()}
>
- <PlusIcon className="h-3.5 w-3.5" />
+ <PlusIcon className="icon-base" />
<span>Add to</span>
<DropdownIndicator size="sm" nudge />
</Button>
@@ -396,9 +396,9 @@ export const ObservationDetailViewHeader = memo(
}
>
{disabled ? (
- <LockIcon className="mr-1.5 h-3 w-3" />
+ <LockIcon className="icon-base mr-1.5" />
) : (
- <SquarePen className="mr-1.5 h-3.5 w-3.5" />
+ <SquarePen className="icon-base mr-1.5" />
)}
<span>Annotate</span>
</Button>
@@ -414,10 +414,10 @@ export const ObservationDetailViewHeader = memo(
className="gap-1"
>
{commentDrawerControl.disabled ? (
- <MessageSquareOff className="text-muted-foreground h-3.5 w-3.5" />
+ <MessageSquareOff className="icon-base text-muted-foreground" />
) : (
<>
- <MessageSquare className="h-3.5 w-3.5" />
+ <MessageSquare className="icon-base" />
<span>{commentActionLabel}</span>
{!!commentCount ? (
<ActionButtonCountBadge count={commentCount} />
@@ -457,7 +457,7 @@ export const ObservationDetailViewHeader = memo(
variant="secondary"
{...getTriggerProps()}
>
- <EllipsisVertical className="h-4 w-4" />
+ <EllipsisVertical className="icon-base" />
</Button>
)}
</ConnectedDetailHeaderActionsMenuController>
diff --git a/web/src/features/traces/components/ThinkingBlock.tsx b/web/src/features/traces/components/ThinkingBlock.tsx
index bd4c1d71d4..34e2ed7bef 100644
--- a/web/src/features/traces/components/ThinkingBlock.tsx
+++ b/web/src/features/traces/components/ThinkingBlock.tsx
@@ -26,7 +26,7 @@ export function ThinkingBlock({
>
<ChevronRight
className={cn(
- "text-foreground-tertiary mt-0.5 size-3 shrink-0 translate-y-px transition-transform",
+ "text-foreground-tertiary icon-sm mt-0.5 shrink-0 translate-y-px transition-transform",
expanded && "rotate-90",
)}
/>
@@ -69,7 +69,7 @@ export function RedactedThinkingBlock({
>
<ChevronRight
className={cn(
- "text-foreground-tertiary mt-0.5 size-3 shrink-0 translate-y-px transition-transform",
+ "text-foreground-tertiary icon-sm mt-0.5 shrink-0 translate-y-px transition-transform",
expanded && "rotate-90",
)}
/>
diff --git a/web/src/features/traces/components/ToolCallInvocationsView.tsx b/web/src/features/traces/components/ToolCallInvocationsView.tsx
index 06436509da..9432155d94 100644
--- a/web/src/features/traces/components/ToolCallInvocationsView.tsx
+++ b/web/src/features/traces/components/ToolCallInvocationsView.tsx
@@ -81,7 +81,7 @@ export function ToolCallInvocationsView({
<div className="flex w-full items-center justify-between gap-2 py-1">
{/* Left: Tool icon + number + name */}
<div className="flex items-center gap-2">
- <Wrench className="text-muted-foreground h-3.5 w-3.5" />
+ <Wrench className="text-muted-foreground icon-base" />
<span className="text-foreground-secondary text-sm">
{invocationNumber !== undefined && (
<span className="mr-1">{invocationNumber}.</span>
diff --git a/web/src/features/traces/components/TraceDetailActions.tsx b/web/src/features/traces/components/TraceDetailActions.tsx
index ee903bbafc..655293dae1 100644
--- a/web/src/features/traces/components/TraceDetailActions.tsx
+++ b/web/src/features/traces/components/TraceDetailActions.tsx
@@ -71,9 +71,9 @@ export function TraceDetailActions({
];
const downloadIcon = isDownloading ? (
- <Loader2 className="h-4 w-4 animate-spin" />
+ <Loader2 className="icon-base animate-spin" />
) : (
- <Download className="h-4 w-4" />
+ <Download className="icon-base" />
);
return (
@@ -130,7 +130,7 @@ export function TraceDetailActions({
{({ getTriggerProps }) => (
<HeaderActionButton
label="More actions"
- icon={<MoreVertical className="h-4 w-4" />}
+ icon={<MoreVertical className="icon-base" />}
{...getTriggerProps()}
/>
)}
diff --git a/web/src/features/traces/components/TraceDetailView/components/TraceDetailViewHeader.tsx b/web/src/features/traces/components/TraceDetailView/components/TraceDetailViewHeader.tsx
index 5e3a470161..effc72ee8e 100644
--- a/web/src/features/traces/components/TraceDetailView/components/TraceDetailViewHeader.tsx
+++ b/web/src/features/traces/components/TraceDetailView/components/TraceDetailViewHeader.tsx
@@ -125,7 +125,7 @@ export const TraceDetailViewHeader = memo(function TraceDetailViewHeader({
variant="ghost"
{...getTriggerProps()}
>
- <EllipsisVertical className="h-4 w-4" />
+ <EllipsisVertical className="icon-sm text-icon-foreground" />
</Button>
)}
</ConnectedDetailHeaderActionsMenuController>
@@ -230,7 +230,7 @@ export const TraceDetailViewHeader = memo(function TraceDetailViewHeader({
ref: mobileActionsTriggerRef,
})}
>
- <MoreHorizontal className="h-4 w-4" />
+ <MoreHorizontal className="icon-base text-icon-foreground" />
</Button>
)}
</DropdownMenu>
@@ -261,7 +261,7 @@ export const TraceDetailViewHeader = memo(function TraceDetailViewHeader({
className="gap-1"
{...getTriggerProps()}
>
- <PlusIcon className="h-3.5 w-3.5" />
+ <PlusIcon className="icon-base" />
<span>Add to</span>
<DropdownIndicator size="sm" nudge />
</Button>
@@ -288,9 +288,9 @@ export const TraceDetailViewHeader = memo(function TraceDetailViewHeader({
}
>
{disabled ? (
- <LockIcon className="mr-1.5 h-3 w-3" />
+ <LockIcon className="icon-base mr-1.5" />
) : (
- <SquarePen className="mr-1.5 h-3.5 w-3.5" />
+ <SquarePen className="icon-base mr-1.5" />
)}
<span>Annotate</span>
</Button>
@@ -306,10 +306,10 @@ export const TraceDetailViewHeader = memo(function TraceDetailViewHeader({
className="gap-1"
>
{commentDrawerControl.disabled ? (
- <MessageSquareOff className="text-muted-foreground h-3.5 w-3.5" />
+ <MessageSquareOff className="icon-base text-muted-foreground" />
) : (
<>
- <MessageSquare className="h-3.5 w-3.5" />
+ <MessageSquare className="icon-base" />
<span>{commentActionLabel}</span>
{!!commentCount ? (
<ActionButtonCountBadge count={commentCount} />
diff --git a/web/src/features/traces/components/TraceLayoutDesktop.tsx b/web/src/features/traces/components/TraceLayoutDesktop.tsx
index c3b483fde7..839b475686 100644
--- a/web/src/features/traces/components/TraceLayoutDesktop.tsx
+++ b/web/src/features/traces/components/TraceLayoutDesktop.tsx
@@ -691,7 +691,7 @@ TraceLayoutDesktop.DetailPanel = function Detail({
onClick={expandDetailPanel}
className="h-7 w-7 shrink-0"
>
- <PanelRightOpen className="h-3.5 w-3.5" />
+ <PanelRightOpen className="icon-base text-icon-foreground" />
</Button>
</div>
)}
diff --git a/web/src/features/traces/components/TraceLogView/LogViewToolbar.tsx b/web/src/features/traces/components/TraceLogView/LogViewToolbar.tsx
index ba0124a680..77ac688d34 100644
--- a/web/src/features/traces/components/TraceLogView/LogViewToolbar.tsx
+++ b/web/src/features/traces/components/TraceLogView/LogViewToolbar.tsx
@@ -170,7 +170,7 @@ export const LogViewToolbar = memo(function LogViewToolbar({
: "Show indentation"
}
>
- <IndentIncrease className="h-3.5 w-3.5" />
+ <IndentIncrease className="icon-base" />
</Button>
</HoverCardTrigger>
{indentDisabled && (
@@ -196,7 +196,7 @@ export const LogViewToolbar = memo(function LogViewToolbar({
onClick={onToggleMilliseconds}
title={showMilliseconds ? "Hide milliseconds" : "Show milliseconds"}
>
- <Timer className="h-3.5 w-3.5" />
+ <Timer className="icon-base" />
</Button>
)}
@@ -216,9 +216,9 @@ export const LogViewToolbar = memo(function LogViewToolbar({
disabled={isVirtualized}
>
{allRowsExpanded && !isVirtualized ? (
- <FoldVertical className="h-3.5 w-3.5" />
+ <FoldVertical className="icon-base text-icon-foreground" />
) : (
- <UnfoldVertical className="h-3.5 w-3.5" />
+ <UnfoldVertical className="icon-base text-icon-foreground" />
)}
</Button>
</span>
@@ -251,9 +251,9 @@ export const LogViewToolbar = memo(function LogViewToolbar({
{isCopyOrDownloadLoading ? (
<Spinner size="xs" />
) : isCopied ? (
- <Check className="h-3.5 w-3.5" />
+ <Check className="icon-base text-icon-foreground" />
) : (
- <Copy className="h-3.5 w-3.5" />
+ <Copy className="icon-base text-icon-foreground" />
)}
</Button>
</TooltipTrigger>
diff --git a/web/src/features/traces/components/TracePanelNavigationHeader/TracePanelNavigationHeader.tsx b/web/src/features/traces/components/TracePanelNavigationHeader/TracePanelNavigationHeader.tsx
index 32c1212a03..a17cdc9cbd 100644
--- a/web/src/features/traces/components/TracePanelNavigationHeader/TracePanelNavigationHeader.tsx
+++ b/web/src/features/traces/components/TracePanelNavigationHeader/TracePanelNavigationHeader.tsx
@@ -176,9 +176,9 @@ function TracePanelNavigationHeaderExpanded({
<>
<DropdownMenuItem onSelect={handleToggleTreeNodes}>
{isEverythingCollapsed ? (
- <UnfoldVertical className="mr-2 h-3.5 w-3.5" />
+ <UnfoldVertical className="icon-base text-icon-foreground mr-2" />
) : (
- <FoldVertical className="mr-2 h-3.5 w-3.5" />
+ <FoldVertical className="icon-base text-icon-foreground mr-2" />
)}
{isEverythingCollapsed ? "Expand all" : "Collapse all"}
</DropdownMenuItem>
@@ -244,9 +244,9 @@ function TracePanelNavigationHeaderExpanded({
className="h-7 w-7"
>
{isEverythingCollapsed ? (
- <UnfoldVertical className="h-3.5 w-3.5" />
+ <UnfoldVertical className="icon-base text-icon-foreground" />
) : (
- <FoldVertical className="h-3.5 w-3.5" />
+ <FoldVertical className="icon-base text-icon-foreground" />
)}
</Button>
@@ -263,7 +263,7 @@ function TracePanelNavigationHeaderExpanded({
aria-label="More options"
className="h-7 w-7"
>
- <MoreVertical className="h-3.5 w-3.5" />
+ <MoreVertical className="icon-base text-icon-foreground" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="center" className="w-64">
@@ -322,7 +322,7 @@ function TracePanelNavigationHeaderExpanded({
{TRACE_VIEW_LABELS[activeView]}
<ChevronDown
className={cn(
- "text-foreground-tertiary size-3.5 transition-transform",
+ "text-foreground-tertiary icon-base transition-transform",
isOpen && "rotate-180",
)}
/>
diff --git a/web/src/features/traces/components/TracePanelNavigationHeader/components/TracePanelNavigationButton.tsx b/web/src/features/traces/components/TracePanelNavigationHeader/components/TracePanelNavigationButton.tsx
index 27f1014770..0470291739 100644
--- a/web/src/features/traces/components/TracePanelNavigationHeader/components/TracePanelNavigationButton.tsx
+++ b/web/src/features/traces/components/TracePanelNavigationHeader/components/TracePanelNavigationButton.tsx
@@ -30,9 +30,9 @@ export function TracePanelNavigationButton({
className="h-7 w-7 shrink-0"
>
{isPanelCollapsed ? (
- <PanelLeftOpen className="h-3.5 w-3.5" />
+ <PanelLeftOpen className="icon-base text-icon-foreground" />
) : (
- <PanelLeftClose className="h-3.5 w-3.5" />
+ <PanelLeftClose className="icon-base text-icon-foreground" />
)}
</Button>
);
diff --git a/web/src/features/traces/components/TraceReviewPanel.tsx b/web/src/features/traces/components/TraceReviewPanel.tsx
index 9b82177629..c658cb86ab 100644
--- a/web/src/features/traces/components/TraceReviewPanel.tsx
+++ b/web/src/features/traces/components/TraceReviewPanel.tsx
@@ -38,7 +38,7 @@ function CloseReviewPanelButton() {
aria-label="Close side panel"
onClick={() => closeReviewPanel(store, router)}
>
- <X className="size-4" />
+ <X className="icon-sm text-icon-foreground" />
</Button>
);
}
diff --git a/web/src/features/traces/components/TraceSearchList.tsx b/web/src/features/traces/components/TraceSearchList.tsx
index 7a1ff86aae..4b93b82330 100644
--- a/web/src/features/traces/components/TraceSearchList.tsx
+++ b/web/src/features/traces/components/TraceSearchList.tsx
@@ -64,7 +64,7 @@ export function TraceSearchList() {
size="sm"
onClick={() => setSearchInputValue("")}
>
- <XIcon className="mr-2 h-4 w-4" />
+ <XIcon className="icon-base text-icon-foreground mr-2" />
Clear search
</Button>
</div>
diff --git a/web/src/features/traces/components/TraceSettingsDropdown.tsx b/web/src/features/traces/components/TraceSettingsDropdown.tsx
index fb95d4c763..437eb529d6 100644
--- a/web/src/features/traces/components/TraceSettingsDropdown.tsx
+++ b/web/src/features/traces/components/TraceSettingsDropdown.tsx
@@ -41,7 +41,7 @@ export function TraceSettingsDropdown() {
title="View Options"
className="h-7 w-7"
>
- <Settings2 className="h-3.5 w-3.5" />
+ <Settings2 className="icon-base text-icon-foreground" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent
diff --git a/web/src/features/traces/components/TraceTimelineDense/TimelineDense.tsx b/web/src/features/traces/components/TraceTimelineDense/TimelineDense.tsx
index cbec2d9508..c4773167b7 100644
--- a/web/src/features/traces/components/TraceTimelineDense/TimelineDense.tsx
+++ b/web/src/features/traces/components/TraceTimelineDense/TimelineDense.tsx
@@ -1389,7 +1389,7 @@ export function TimelineDense({
label="Zoom out"
onClick={() => zoomBy(2 ** -BUTTON_ZOOM_LEVELS, 0.5, 0.5)}
>
- <Minus className="h-3 w-3" />
+ <Minus className="icon-sm" />
</ToolbarButton>
<ToolbarButton
label="Zoom in"
@@ -1399,11 +1399,11 @@ export function TimelineDense({
: zoomBy(2 ** BUTTON_ZOOM_LEVELS, 0.5, 0.5)
}
>
- <Plus className="h-3 w-3" />
+ <Plus className="icon-sm" />
</ToolbarButton>
{offerShowLabels ? (
<ToolbarButton label="Show labels" onClick={showLabels}>
- <UnfoldVertical className="h-3 w-3" />
+ <UnfoldVertical className="icon-sm" />
<span className="pr-0.5" style={{ fontSize: "10px" }}>
Show labels
</span>
@@ -1421,7 +1421,7 @@ export function TimelineDense({
{/* A viewfinder, not the diagonal arrows this used to wear: those
read as "fullscreen", so a control that was merely spent looked
broken. */}
- <Scan className="h-3 w-3" />
+ <Scan className="icon-sm" />
</ToolbarButton>
)}
{/* What the dimming means, said in words. Without it "nothing lit up"
@@ -1973,7 +1973,7 @@ function GutterContent({
<span className="shrink-0">
<ItemTypeIcon
type={node.type as LangfuseItemType}
- className="size-3"
+ className="icon-sm"
/>
</span>
<span
diff --git a/web/src/features/traces/components/TraceTruncationNotice.tsx b/web/src/features/traces/components/TraceTruncationNotice.tsx
index 9afa7c4ae1..bac6cd293f 100644
--- a/web/src/features/traces/components/TraceTruncationNotice.tsx
+++ b/web/src/features/traces/components/TraceTruncationNotice.tsx
@@ -60,7 +60,7 @@ export function TraceTruncationNotice() {
return (
<div className="text-muted-foreground border-border bg-muted/40 flex shrink-0 items-start gap-2 border-b py-1.5 pr-1 pl-2 text-xs">
- <TriangleAlert className="text-foreground-tertiary mt-0.5 h-3.5 w-3.5 shrink-0" />
+ <TriangleAlert className="text-foreground-tertiary icon-base mt-0.5 shrink-0" />
<p className="min-w-0 flex-1">
{/* No total: the server stops counting at the cap, so we know "more than
this", never how many. */}
@@ -78,7 +78,7 @@ export function TraceTruncationNotice() {
onClick={() => setDismissedRank(rank)}
className="hover:bg-muted-foreground/10 hover:text-foreground shrink-0 rounded p-0.5"
>
- <X className="h-3.5 w-3.5" />
+ <X className="icon-base" />
</button>
</div>
);
diff --git a/web/src/features/traces/components/VirtualizedTreeNodeWrapper.tsx b/web/src/features/traces/components/VirtualizedTreeNodeWrapper.tsx
index 370b13bdac..553f42c99c 100644
--- a/web/src/features/traces/components/VirtualizedTreeNodeWrapper.tsx
+++ b/web/src/features/traces/components/VirtualizedTreeNodeWrapper.tsx
@@ -128,7 +128,7 @@ export function VirtualizedTreeNodeWrapper({
{/* 3. Icon + child connector: fixed width container */}
<div className="relative flex w-6 shrink-0 flex-col py-1.5">
<div className="relative z-10 flex h-4 items-center justify-center">
- <ItemTypeIcon type={nodeType} className="size-3.5" />
+ <ItemTypeIcon type={nodeType} className="icon-base" />
</div>
{/* Vertical bar downwards if there are expanded children (skipped
when children render capped at this same indent — the spine
@@ -166,7 +166,7 @@ export function VirtualizedTreeNodeWrapper({
isCollapsed ? "rotate-0" : "rotate-90",
)}
>
- <ChevronRight className="h-4 w-4" />
+ <ChevronRight className="icon-base text-icon-foreground" />
</span>
</Button>
)}
diff --git a/web/src/features/tracing-tables/observations/ObservationsTable.tsx b/web/src/features/tracing-tables/observations/ObservationsTable.tsx
index 378df0a4f8..f8b6618f21 100644
--- a/web/src/features/tracing-tables/observations/ObservationsTable.tsx
+++ b/web/src/features/tracing-tables/observations/ObservationsTable.tsx
@@ -901,7 +901,7 @@ export default function ObservationsTable({
>
<div className="flex items-center gap-1">
<span>{usdFormatter(value)}</span>
- <InfoIcon className="h-3 w-3" />
+ <InfoIcon className="icon-sm" />
</div>
</BreakdownTooltip>
);
diff --git a/web/src/features/users/UserDetailPage.tsx b/web/src/features/users/UserDetailPage.tsx
index 181281d834..b8408e95b8 100644
--- a/web/src/features/users/UserDetailPage.tsx
+++ b/web/src/features/users/UserDetailPage.tsx
@@ -100,7 +100,9 @@ function UserDetailView({
<ActionButton
href={`/project/${projectId}?filter=user%3Bstring%3B%3B%3D%3B${userId}`} // dashboard filter serialization
variant="secondary"
- icon={<LayoutDashboard className="h-4 w-4" />}
+ icon={
+ <LayoutDashboard className="icon-base text-icon-foreground" />
+ }
>
Dashboard
</ActionButton>
diff --git a/web/src/features/v4-migration/EvaluatorMigrationDialog.tsx b/web/src/features/v4-migration/EvaluatorMigrationDialog.tsx
index 33e16fc21c..1025438a3e 100644
--- a/web/src/features/v4-migration/EvaluatorMigrationDialog.tsx
+++ b/web/src/features/v4-migration/EvaluatorMigrationDialog.tsx
@@ -145,7 +145,7 @@ export function EvaluatorMigrationDialog({
className="h-auto justify-start gap-3 p-4 text-left"
onClick={handleAssistantClick}
>
- <BotMessageSquare className="h-5 w-5 shrink-0" />
+ <BotMessageSquare className="icon-base text-icon-foreground shrink-0" />
<span className="flex flex-col gap-1">
<span className="font-bold">Use Assistant</span>
<span className="text-muted-foreground text-sm font-normal">
@@ -160,7 +160,7 @@ export function EvaluatorMigrationDialog({
className="h-auto justify-start gap-3 p-4 text-left"
onClick={handleManualClick}
>
- <Wrench className="h-5 w-5 shrink-0" />
+ <Wrench className="icon-base text-icon-foreground shrink-0" />
<span className="flex flex-col gap-1">
<span className="font-bold">
{isSingleEvaluator
diff --git a/web/src/features/v4-migration/V4MigrationBanner.tsx b/web/src/features/v4-migration/V4MigrationBanner.tsx
index 5f646420f3..c9fd6ba13e 100644
--- a/web/src/features/v4-migration/V4MigrationBanner.tsx
+++ b/web/src/features/v4-migration/V4MigrationBanner.tsx
@@ -83,7 +83,7 @@ export function V4MigrationBanner({
onDismiss={onDismiss}
>
<div className="flex items-start gap-2 sm:items-center">
- <Zap className="mt-0.5 h-4 w-4 shrink-0 sm:mt-0" />
+ <Zap className="icon-base mt-0.5 shrink-0 sm:mt-0" />
<span>
<span className="font-bold">
Langfuse v4 is here: real-time and up to 165× faster.
diff --git a/web/src/features/v4-migration/V4MigrationContent.tsx b/web/src/features/v4-migration/V4MigrationContent.tsx
index 2996304eed..e7dd9dcc2c 100644
--- a/web/src/features/v4-migration/V4MigrationContent.tsx
+++ b/web/src/features/v4-migration/V4MigrationContent.tsx
@@ -190,7 +190,7 @@ function Section({
</span>
<span className="flex-1" />
{meta && <span className="text-muted-foreground text-xs">{meta}</span>}
- <ChevronRight className="text-foreground-tertiary size-3.5 shrink-0 transition-transform group-data-[state=open]:rotate-90" />
+ <ChevronRight className="text-foreground-tertiary icon-base shrink-0 transition-transform group-data-[state=open]:rotate-90" />
</CollapsibleTrigger>
<CollapsibleContent>
<div className="pt-0.5 pb-4 pl-4.25">{children}</div>
@@ -332,9 +332,9 @@ function CodeBlockWithCopy({
className="text-muted-foreground absolute top-1 right-1 h-6 w-6"
>
{copied ? (
- <Check className="h-3.5 w-3.5" />
+ <Check className="icon-base text-icon-foreground" />
) : (
- <Copy className="h-3.5 w-3.5" />
+ <Copy className="icon-base text-icon-foreground" />
)}
</Button>
</div>
@@ -774,7 +774,7 @@ export function V4MigrationEvalsSection({
<Button variant="outline" size="sm" onClick={assistant.onMigrate}>
{assistant.aiFeaturesEnabled !== false ? (
<>
- <BotMessageSquare className="mr-1.5 h-4 w-4" />
+ <BotMessageSquare className="icon-base text-icon-foreground mr-1.5" />
Use Assistant
</>
) : (
@@ -1434,7 +1434,7 @@ export function V4MigrationAgentUpgradeSection({
</div>
<div className="flex flex-col gap-2">
<RainbowButton className="w-full" onClick={handleCopyPrompt}>
- <Copy className="mr-1.5 h-4 w-4 shrink-0" />
+ <Copy className="icon-base mr-1.5 shrink-0" />
<span className="min-w-0 truncate" title="Copy prompt">
Copy prompt
</span>
@@ -1718,7 +1718,7 @@ export function V4MigrationDetailsContent({
aria-label="Why compare traces?"
className="shrink-0"
>
- <Info className="h-3.5 w-3.5" />
+ <Info className="icon-base" />
</button>
</HoverCardTrigger>
<HoverCardPortal>
diff --git a/web/src/features/v4-migration/V4MigrationPanel.tsx b/web/src/features/v4-migration/V4MigrationPanel.tsx
index c5ba46076c..87a9384e61 100644
--- a/web/src/features/v4-migration/V4MigrationPanel.tsx
+++ b/web/src/features/v4-migration/V4MigrationPanel.tsx
@@ -64,7 +64,7 @@ export const V4MigrationPanel = ({
onClick={() => setOpen(false)}
aria-label="Close"
>
- <X className="h-4 w-4" />
+ <X className="icon-base text-icon-foreground" />
</Button>
)}
<div className="flex-1 overflow-y-auto">
diff --git a/web/src/features/v4-migration/V4MigrationStatusPage.tsx b/web/src/features/v4-migration/V4MigrationStatusPage.tsx
index 78d48cc405..197269a15a 100644
--- a/web/src/features/v4-migration/V4MigrationStatusPage.tsx
+++ b/web/src/features/v4-migration/V4MigrationStatusPage.tsx
@@ -424,7 +424,7 @@ function OrgStatusSection({
cellPadding: "comfortable",
cell: () => (
<span className="text-dark-blue flex items-center justify-end gap-1 whitespace-nowrap opacity-0 transition-opacity group-hover/row:opacity-100">
- Review <ArrowRight className="h-3 w-3 shrink-0" />
+ Review <ArrowRight className="icon-sm shrink-0" />
</span>
),
},
diff --git a/web/src/features/version-update/VersionUpdateBannerView.tsx b/web/src/features/version-update/VersionUpdateBannerView.tsx
index df77897aef..7de4fcb57e 100644
--- a/web/src/features/version-update/VersionUpdateBannerView.tsx
+++ b/web/src/features/version-update/VersionUpdateBannerView.tsx
@@ -54,12 +54,12 @@ export function VersionUpdateBannerView({
className,
)}
>
- <Sparkles className="text-primary h-4 w-4 shrink-0" />
+ <Sparkles className="text-primary icon-base shrink-0" />
<span className="text-foreground text-sm whitespace-nowrap">
Langfuse just got an update
</span>
<Button size="sm" className="rounded-full" onClick={onReload}>
- <RotateCw className="mr-1.5 h-3.5 w-3.5" />
+ <RotateCw className="icon-base mr-1.5" />
Reload
</Button>
<Button
@@ -70,7 +70,7 @@ export function VersionUpdateBannerView({
aria-label="Dismiss"
title="Dismiss"
>
- <X className="h-4 w-4" />
+ <X className="icon-base text-icon-foreground" />
</Button>
</div>
);
diff --git a/web/src/features/web-callouts/components/WebCalloutMenuItem.tsx b/web/src/features/web-callouts/components/WebCalloutMenuItem.tsx
index 7991340983..a185041aa2 100644
--- a/web/src/features/web-callouts/components/WebCalloutMenuItem.tsx
+++ b/web/src/features/web-callouts/components/WebCalloutMenuItem.tsx
@@ -92,7 +92,7 @@ export function WebCalloutButton({
action.invokeCallout().catch(() => undefined);
}}
>
- <Webhook className="h-4 w-4 shrink-0" />
+ <Webhook className="icon-base text-icon-foreground shrink-0" />
<span className="min-w-0 truncate text-sm" title={label}>
{label}
</span>
@@ -113,7 +113,7 @@ export function WebCalloutButton({
action.invokeCallout().catch(() => undefined);
}}
>
- <Webhook className="h-4 w-4" />
+ <Webhook className="icon-base text-icon-foreground" />
</Button>
</TooltipTrigger>
<TooltipContent>{label}</TooltipContent>
diff --git a/web/src/features/web-callouts/components/WebCalloutSettingsPage.tsx b/web/src/features/web-callouts/components/WebCalloutSettingsPage.tsx
index ab53a88af8..f9801ec91a 100644
--- a/web/src/features/web-callouts/components/WebCalloutSettingsPage.tsx
+++ b/web/src/features/web-callouts/components/WebCalloutSettingsPage.tsx
@@ -371,7 +371,7 @@ function WebCalloutEndpointDialog(props: {
size="icon"
onClick={() => remove(index)}
>
- <X className="h-4 w-4" />
+ <X className="icon-base text-icon-foreground" />
</Button>
</TooltipTrigger>
<TooltipContent>Remove header</TooltipContent>
@@ -391,7 +391,7 @@ function WebCalloutEndpointDialog(props: {
})
}
>
- <Plus className="mr-1 h-4 w-4" />
+ <Plus className="icon-base text-icon-foreground mr-1" />
Add header
</Button>
</div>
@@ -457,7 +457,7 @@ export function WebCalloutIntegrationCard(props: {
return (
<Card className="p-3">
<div className="mb-4 flex items-center gap-2">
- <Webhook className="text-foreground h-5 w-5" />
+ <Webhook className="text-foreground icon-lg" />
<span className="font-bold">Web Callouts</span>
</div>
<p className="text-primary mb-4 text-sm">
diff --git a/web/src/features/web-callouts/components/WebCalloutSettingsTable/WebCalloutSettingsTable.tsx b/web/src/features/web-callouts/components/WebCalloutSettingsTable/WebCalloutSettingsTable.tsx
index 5cd8ab3ba9..75c3288b17 100644
--- a/web/src/features/web-callouts/components/WebCalloutSettingsTable/WebCalloutSettingsTable.tsx
+++ b/web/src/features/web-callouts/components/WebCalloutSettingsTable/WebCalloutSettingsTable.tsx
@@ -81,7 +81,7 @@ export function WebCalloutSettingsTable({
id: "add-endpoint",
label: "Add endpoint",
variant: "secondary",
- icon: <Plus className="size-4" aria-hidden="true" />,
+ icon: <Plus className="icon-base" aria-hidden="true" />,
disabled: Boolean(createAction.disabledReason),
title: createAction.disabledReason,
onClick: createAction.onClick,
diff --git a/web/src/features/widgets/WidgetsPage.tsx b/web/src/features/widgets/WidgetsPage.tsx
index 56096b5610..bbb1b143a3 100644
--- a/web/src/features/widgets/WidgetsPage.tsx
+++ b/web/src/features/widgets/WidgetsPage.tsx
@@ -28,7 +28,12 @@ export default function WidgetsPage() {
},
actionButtonsRight: (
<ActionButton
- icon={<PlusIcon className="h-4 w-4" aria-hidden="true" />}
+ icon={
+ <PlusIcon
+ className="icon-base text-icon-foreground"
+ aria-hidden="true"
+ />
+ }
hasAccess={hasCUDAccess}
href={`/project/${projectId}/widgets/new`}
trackingEventName="dashboard:new_widget_form_open"
diff --git a/web/src/features/widgets/components/DashboardWidget.tsx b/web/src/features/widgets/components/DashboardWidget.tsx
index b54423a0de..14a87c204e 100644
--- a/web/src/features/widgets/components/DashboardWidget.tsx
+++ b/web/src/features/widgets/components/DashboardWidget.tsx
@@ -640,17 +640,14 @@ export function DashboardWidget({
<div className="flex space-x-2">
{!readOnly && (hasCUDAccess || isLockedEditable) && (
<>
- <GripVerticalIcon
- size={16}
- className="drag-handle text-muted-foreground hover:text-foreground hidden cursor-grab active:cursor-grabbing lg:group-hover:block"
- />
+ <GripVerticalIcon className="icon-base drag-handle text-muted-foreground hover:text-foreground hidden cursor-grab active:cursor-grabbing lg:group-hover:block" />
{isLockedEditable ? (
<button
onClick={onLockedEditAttempt}
className="text-muted-foreground hover:text-foreground hidden group-hover:block"
aria-label="Edit widget"
>
- <PencilIcon size={16} />
+ <PencilIcon className="icon-base" />
</button>
) : widget.data.owner === "PROJECT" ? (
<button
@@ -658,7 +655,7 @@ export function DashboardWidget({
className="text-muted-foreground hover:text-foreground hidden group-hover:block"
aria-label="Edit widget"
>
- <PencilIcon size={16} />
+ <PencilIcon className="icon-base" />
</button>
) : widget.data.owner === "LANGFUSE" ? (
<button
@@ -672,7 +669,7 @@ export function DashboardWidget({
className="text-muted-foreground hover:text-foreground hidden group-hover:block"
aria-label="Edit widget"
>
- <PencilIcon size={16} />
+ <PencilIcon className="icon-base" />
</button>
) : null}
</>
@@ -760,7 +757,7 @@ export function DashboardWidget({
aria-label="Widget actions"
{...getTriggerProps()}
>
- <MoreVerticalIcon size={16} />
+ <MoreVerticalIcon className="icon-base" />
</button>
)}
</DropdownMenu>
diff --git a/web/src/features/widgets/components/PresetDashboardWidget.tsx b/web/src/features/widgets/components/PresetDashboardWidget.tsx
index 6556d51723..b6e6a67eec 100644
--- a/web/src/features/widgets/components/PresetDashboardWidget.tsx
+++ b/web/src/features/widgets/components/PresetDashboardWidget.tsx
@@ -244,10 +244,7 @@ export function PresetDashboardWidget({
only the edit affordances (drag, delete) are gated. */}
<div className="bg-background/95 absolute top-2 right-2 z-10 hidden items-center gap-2 rounded-md border px-1.5 py-1 shadow-sm group-hover:flex has-aria-expanded:flex">
{!readOnly && (hasCUDAccess || isLockedEditable) && (
- <GripVerticalIcon
- size={16}
- className="drag-handle text-muted-foreground hover:text-foreground hidden cursor-grab active:cursor-grabbing lg:block"
- />
+ <GripVerticalIcon className="icon-base drag-handle text-muted-foreground hover:text-foreground hidden cursor-grab active:cursor-grabbing lg:block" />
)}
<DropdownMenu
placement="bottom-end"
@@ -291,7 +288,7 @@ export function PresetDashboardWidget({
aria-label="Widget actions"
{...getTriggerProps()}
>
- <MoreVerticalIcon size={16} />
+ <MoreVerticalIcon className="icon-base" />
</button>
)}
</DropdownMenu>
diff --git a/web/src/features/widgets/components/WidgetForm.tsx b/web/src/features/widgets/components/WidgetForm.tsx
index c2a35af959..07240adfb3 100644
--- a/web/src/features/widgets/components/WidgetForm.tsx
+++ b/web/src/features/widgets/components/WidgetForm.tsx
@@ -908,7 +908,7 @@ export function WidgetForm({
<Popover>
<PopoverTrigger asChild>
<Button variant="outline" size="sm">
- <Sparkles className="mr-2 h-4 w-4" />
+ <Sparkles className="icon-base text-icon-foreground mr-2" />
Presets
</Button>
</PopoverTrigger>
@@ -921,7 +921,7 @@ export function WidgetForm({
variant="ghost"
onClick={() => applyPreset(preset)}
>
- <preset.icon className="mr-2 h-4 w-4" />
+ <preset.icon className="icon-base mr-2" />
{preset.label}
</Button>
</PopoverClose>
@@ -1435,7 +1435,7 @@ function PivotMetricsField({
onClick={() => removeSlot(index)}
className="text-muted-foreground hover:text-destructive h-6 w-6 p-0"
>
- <X className="h-4 w-4" />
+ <X className="icon-base" />
</Button>
)}
</div>
@@ -1525,7 +1525,7 @@ function PivotMetricsField({
onClick={addSlot}
className="w-full"
>
- <Plus className="mr-1 h-3 w-3" />
+ <Plus className="icon-base text-icon-foreground mr-1" />
Add Metric {metrics.length + 1}
</Button>
)}
diff --git a/web/src/features/widgets/components/WidgetImporter.tsx b/web/src/features/widgets/components/WidgetImporter.tsx
index 5e80f2abf1..b864749ca4 100644
--- a/web/src/features/widgets/components/WidgetImporter.tsx
+++ b/web/src/features/widgets/components/WidgetImporter.tsx
@@ -69,7 +69,7 @@ export const WidgetImporter = ({
size="sm"
onClick={() => importInputRef.current?.click()}
>
- <Upload className="mr-2 h-4 w-4" />
+ <Upload className="icon-base text-icon-foreground mr-2" />
Import
</Button>
</>
diff --git a/web/src/styles/globals.css b/web/src/styles/globals.css
index 4476102706..3a087078b1 100644
--- a/web/src/styles/globals.css
+++ b/web/src/styles/globals.css
@@ -72,6 +72,7 @@
--color-control-border: hsl(var(--control-border));
--color-foreground-tertiary: hsl(var(--foreground-tertiary));
--color-foreground-secondary: hsl(var(--foreground-secondary));
+ --color-icon-foreground: hsl(var(--icon-foreground));
--color-surface-code: hsl(var(--surface-code));
--color-surface-code-header: hsl(var(--surface-code-header));
--color-surface-sunken: hsl(var(--surface-sunken));
@@ -327,6 +328,8 @@
muted-foreground (langfuse.com/docs has the same 4th step). NOTE: ~2.8:1
on white — flagged in review, kept per design preference for now. */
--foreground-tertiary: 240 5% 64.9%; /* zinc-400 */
+ /* Icon glyphs next to text: same tier as muted-foreground. */
+ --icon-foreground: 240 3.8% 46.1%; /* zinc-500 */
/* Code blocks sit a step BELOW their surrounding surface ("code is a
well"), matching the docs site's --surface-code convention. */
--surface-code: 0 0% 92%;
@@ -556,6 +559,7 @@
--muted-foreground: 0 0% 54%;
--foreground-secondary: 0 0% 62%;
--foreground-tertiary: 0 0% 40%;
+ --icon-foreground: 0 0% 54%;
--surface-code: 0 0% 2.3%;
--surface-code-header: 0 0% 8.2%;
--surface-sunken: 0 0% 4%;
@@ -868,6 +872,27 @@
}
}
+/* Icon size scale: icon-sm 12px, icon-base 14px (default), icon-lg 20px, icon-xl 28px. */
+@utility icon-sm {
+ width: calc(var(--spacing) * 3);
+ height: calc(var(--spacing) * 3);
+}
+
+@utility icon-base {
+ width: calc(var(--spacing) * 3.5);
+ height: calc(var(--spacing) * 3.5);
+}
+
+@utility icon-lg {
+ width: calc(var(--spacing) * 5);
+ height: calc(var(--spacing) * 5);
+}
+
+@utility icon-xl {
+ width: calc(var(--spacing) * 7);
+ height: calc(var(--spacing) * 7);
+}
+
/* A scrollport that says so. Overlay scrollbars — the platform default on
macOS, and Chrome's default everywhere — paint nothing until a scroll is
already under way, so a region holding more than it shows is