Skip to content

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

chore(web): Setup eslint-plugin-tailwindcss (#14402)

Ben Bachem62f71ea0fa91
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 84dd4a1f7e..646d3c6aa5 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -580,7 +580,7 @@ importers:
'@sentry/nextjs':
specifier: ^10.58.0
'@t3-oss/env-nextjs':
specifier: ^0.11.1
@@ -821,13 +821,13 @@ importers:
'@storybook/addon-docs':
specifier: 10.3.6
'@storybook/addon-vitest':
specifier: 10.3.6
'@storybook/nextjs-vite':
specifier: 10.3.6
'@tailwindcss/forms':
specifier: ^0.5.11
version: 0.5.11([email protected])
@@ -897,6 +897,9 @@ importers:
eslint-plugin-storybook:
specifier: 10.3.6
+ eslint-plugin-tailwindcss:
+ specifier: 4.0.2
jsdom:
specifier: ^26.1.0
version: 26.1.0
@@ -3464,6 +3467,10 @@ packages:
resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
engines: {node: '>=14'}
+ resolution: {integrity: sha512-SEeaJLb3qBNF/OaXnaR1NmmBbFYk1zC0ZH/52fATcRPLFg/p791YrcyFFy44Bo9sLaGuSuLp5Q6axbb/O+v/RA==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+
'@playwright/[email protected]':
resolution: {integrity: sha512-6TyEnHgd6SArQO8UO2OMTxshln3QMWBtPGrOCgs3wVEmQmwyuNtB10IZMfmYDE0riwNR1cu4q+pPcxMVtaG3TA==}
engines: {node: '>=18'}
@@ -6603,6 +6610,9 @@ packages:
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
+ resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==}
+
resolution: {integrity: sha512-ysOGlgTFbN2/Y6Cg3Iye8YKulHw+R2fNXHrgSmXISQdMnomY6eNDprVdW9R5xBguEqI954+S6709UyiO7B+6OQ==}
@@ -7334,6 +7344,16 @@ packages:
eslint: '>=8'
storybook: ^10.3.6
+ resolution: {integrity: sha512-I/plNAFclmxJUUzKhQ6W2sMYcfxMMYLcslVFzRwtoIaheLOvKoVluTOxx67aX0H234gAlKW5VuK0fOVWgPFkqQ==}
+ engines: {node: '>=20.19.0'}
+ peerDependencies:
+ tailwindcss: ^4.0.0
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
resolution: {integrity: sha512-WbvNDtwxyNQnX6ODtWs39EutD8a2Eoh25EgGkSqbqRpw8llHG/waCgBUwUUG7i1yh73d6p4HNBWEk+C+mvx9Xw==}
peerDependencies:
@@ -8635,6 +8655,10 @@ packages:
resolution: {integrity: sha512-DFEqQ3ihfS9blba08cLfYf1NRAIEm+dDjic073DRDc3/JspI/8wYmtDsHwd3+4hwvdxSK7PGaElfTmm0awWJ4w==}
engines: {node: '>=6.11.5'}
+ resolution: {integrity: sha512-++gUqRDEvcnN6Zhqrr+y/CkVEHhlrR96vZn3nZZPYzMcBUyBtTKzB9NadClFIsIVSsu+3i9tfk/erqy9kAmt7Q==}
+ engines: {node: '>=14'}
+
resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==}
engines: {node: '>=10'}
@@ -9014,6 +9038,9 @@ packages:
resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==}
engines: {node: '>=16 || 14 >=14.17'}
+ resolution: {integrity: sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==}
+
resolution: {integrity: sha512-bOclZt8hkpuGgSSoG07PKmvzTizROilUTvLNyrMqvlC9snhs7y7GzjNWAVbISIOlhCP1T14rH1PDAV9iNyBq/w==}
@@ -9570,6 +9597,9 @@ packages:
resolution: {integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==}
engines: {node: '>=16.20.0'}
+ resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==}
+
resolution: {integrity: sha512-y+ichcgc2LrADuhLNAx8DFjVfgz91pRxfZdI3UDhxHvcVEZsenLO+7XaU5vOp0u/7V/wZ+plyuQxtrDlZJ+yeg==}
@@ -9597,10 +9627,20 @@ packages:
resolution: {integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-5osppouFc0VR9/VYzYxO03VaDa3e8F23Kfd6/9qcZTUI8P58GIYlArOET2Wq0ywSl2o2PjELhYOFI4W7l5QHKw==}
+ engines: {node: '>=18.0'}
+ peerDependencies:
+ postcss: ^8.2.14
+
resolution: {integrity: sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==}
engines: {node: '>=4'}
+ resolution: {integrity: sha512-HeP7D2wyhkR+XaK6v4W8oRF62Dsz4flyuczALJp61GckGm42u1saSSJ/0auvcBqxs3jMRFEcPK34At/0JBKdOg==}
+ engines: {node: '>=4'}
+
resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==}
engines: {node: ^10 || ^12 || >=14}
@@ -10590,6 +10630,15 @@ packages:
resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==}
+ resolution: {integrity: sha512-eNRKgb3z66Yp3D2CixVujOUvXLFUTij/zVnV8KRyvFdQwpz7I5DS8UfRkTeLzb64u+dkzDSdelE24izu+zSSUg==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+
+ resolution: {integrity: sha512-KpzUHkH1ug1sq4394SLJX38ZtpeTiqQ1RVyFTTSY2XuHsNSTWUkRo108KmyyrMWdDbQrLYkSHaNKj/a3bmA4sQ==}
+ peerDependencies:
+ tailwindcss: ^3.3.0 || ^4.0.0 || ^4.0.0-beta
+
resolution: {integrity: sha512-P+Vu1qXfzediirmHOC3xKGAYeZtPcV9g76X+xg2FD4tYgR71ewMA35Y3sCz3zhiN/dwefRpJX0yBcgwi1fXNQA==}
@@ -10879,6 +10928,9 @@ packages:
engines: {node: '>=14.17'}
hasBin: true
+ resolution: {integrity: sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==}
+
resolution: {integrity: sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==}
engines: {node: '>= 0.4'}
@@ -14532,6 +14584,8 @@ snapshots:
optional: true
+ '@pkgr/[email protected]': {}
+
'@playwright/[email protected]':
dependencies:
playwright: 1.57.0
@@ -15573,7 +15627,7 @@ snapshots:
dependencies:
'@sentry/core': 10.58.0
dependencies:
'@opentelemetry/api': 1.9.1
'@opentelemetry/semantic-conventions': 1.40.0
@@ -15585,7 +15639,7 @@ snapshots:
'@sentry/opentelemetry': 10.58.0(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected])
'@sentry/react': 10.58.0([email protected])
'@sentry/vercel-edge': 10.58.0
- '@sentry/webpack-plugin': 5.3.0([email protected]([email protected])([email protected]))
rollup: 4.60.2
stacktrace-parser: 0.1.11
@@ -15661,10 +15715,10 @@ snapshots:
'@opentelemetry/resources': 2.8.0(@opentelemetry/[email protected])
'@sentry/core': 10.58.0
dependencies:
'@sentry/bundler-plugin-core': 5.3.0
transitivePeerDependencies:
- encoding
- supports-color
@@ -16024,10 +16078,10 @@ snapshots:
axe-core: 4.11.2
dependencies:
'@mdx-js/react': 3.1.1(@types/[email protected])([email protected])
react: 19.2.4
@@ -16055,9 +16109,9 @@ snapshots:
- react
- react-dom
dependencies:
ts-dedent: 2.2.0
@@ -16066,7 +16120,7 @@ snapshots:
- rollup
- webpack
dependencies:
unplugin: 2.3.11
@@ -16074,7 +16128,7 @@ snapshots:
esbuild: 0.28.1
rollup: 4.60.2
'@storybook/[email protected]': {}
@@ -16083,11 +16137,11 @@ snapshots:
react: 19.2.4
react-dom: 19.2.4([email protected])
dependencies:
react: 19.2.4
react-dom: 19.2.4([email protected])
@@ -16111,11 +16165,11 @@ snapshots:
react-dom: 19.2.4([email protected])
dependencies:
'@rollup/pluginutils': 5.3.0([email protected])
empathic: 2.0.0
magic-string: 0.30.21
@@ -17860,6 +17914,8 @@ snapshots:
+
@@ -18760,6 +18816,20 @@ snapshots:
- supports-color
- typescript
+ dependencies:
+ '@typescript-eslint/utils': 8.59.0([email protected]([email protected]))([email protected])
+ postcss: 8.5.13
+ postcss-nested: 7.0.2([email protected])
+ synckit: 0.11.13
+ tailwind-api-utils: 1.0.3([email protected])
+ tailwindcss: 4.2.2
+ optionalDependencies:
+ typescript: 5.9.2
+ transitivePeerDependencies:
+ - eslint
+ - supports-color
+
dependencies:
dotenv: 16.0.3
@@ -20210,6 +20280,12 @@ snapshots:
+ dependencies:
+ mlly: 1.8.2
+ pkg-types: 2.3.1
+ quansync: 0.2.11
+
dependencies:
p-locate: 5.0.0
@@ -20760,6 +20836,13 @@ snapshots:
+ dependencies:
+ acorn: 8.16.0
+ pathe: 2.0.3
+ pkg-types: 1.3.1
+ ufo: 1.6.4
+
@@ -21396,6 +21479,12 @@ snapshots:
+ dependencies:
+ confbox: 0.1.8
+ mlly: 1.8.2
+ pathe: 2.0.3
+
dependencies:
confbox: 0.2.4
@@ -21421,11 +21510,21 @@ snapshots:
+ dependencies:
+ postcss: 8.5.13
+ postcss-selector-parser: 7.1.4
+
dependencies:
cssesc: 3.0.0
util-deprecate: 1.0.2
+ dependencies:
+ cssesc: 3.0.0
+ util-deprecate: 1.0.2
+
dependencies:
nanoid: 3.3.12
@@ -22622,6 +22721,17 @@ snapshots:
+ dependencies:
+ '@pkgr/core': 0.3.6
+
+ dependencies:
+ enhanced-resolve: 5.21.3
+ jiti: 2.7.0
+ local-pkg: 1.2.1
+ tailwindcss: 4.2.2
+
@@ -22645,16 +22755,17 @@ snapshots:
- encoding
- supports-color
dependencies:
'@jridgewell/trace-mapping': 0.3.31
jest-worker: 27.5.1
schema-utils: 4.3.3
terser: 5.47.1
optionalDependencies:
esbuild: 0.28.1
lightningcss: 1.32.0
+ postcss: 8.5.13
dependencies:
@@ -22885,6 +22996,8 @@ snapshots:
+
dependencies:
call-bound: 1.0.4
@@ -23227,7 +23340,7 @@ snapshots:
dependencies:
'@types/eslint-scope': 3.7.7
'@types/estree': 1.0.9
@@ -23249,7 +23362,7 @@ snapshots:
neo-async: 2.6.2
schema-utils: 3.3.0
tapable: 2.3.3
watchpack: 2.5.1
webpack-sources: 3.4.1
transitivePeerDependencies:
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index cb35414147..b7ee2d7104 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -38,6 +38,7 @@ minimumReleaseAgeExclude:
- "@esbuild/[email protected]"
- "@esbuild/[email protected]"
- "@esbuild/[email protected]"
allowBuilds:
"@prisma/client": true
"@prisma/engines": true
diff --git a/web/eslint.config.mjs b/web/eslint.config.mjs
index 576c32c20f..db7f9037f1 100644
--- a/web/eslint.config.mjs
+++ b/web/eslint.config.mjs
@@ -1,13 +1,65 @@
import { globalIgnores } from "eslint/config";
import storybook from "eslint-plugin-storybook";
+import eslintPluginTailwindcss from "eslint-plugin-tailwindcss";
import nextConfig from "@repo/eslint-config/next";
+// eslint-plugin-tailwindcss types this as Config | ConfigArray, but the
+// recommended export is a single flat config object with rules at runtime.
+const tailwindcssRecommendedConfig =
+ /** @type {import("eslint").Linter.Config} */ (
+ eslintPluginTailwindcss.configs.recommended
+ );
+
export default [
globalIgnores(["**/storybook-static/"]),
...nextConfig,
...storybook.configs["flat/recommended"],
+ {
+ ...tailwindcssRecommendedConfig,
+ settings: {
+ tailwindcss: {
+ cssConfigPath: "src/styles/globals.css",
+ },
+ },
+ rules: {
+ ...tailwindcssRecommendedConfig.rules,
+ "tailwindcss/no-custom-classname": [
+ "warn",
+ {
+ whitelist: [
+ // Used by parent arbitrary selectors to tune IO preview section spacing.
+ "io-message-header",
+ // Used by parent arbitrary selectors to tune IO preview body spacing and borders.
+ "io-message-content",
+ // Component-level selector hook for code block wrappers, not a Tailwind utility.
+ "codeblock",
+ // Sonner root hook used by group-[.toaster] descendant variants.
+ "toaster",
+ // Sonner toast hook used by group-[.toast] descendant variants.
+ "toast",
+ // Playground window selector hook used for page/window coordination.
+ "playground-window",
+ // react-grid-layout requires this wrapper class for grid layout behavior.
+ "layout",
+ // react-grid-layout draggableHandle points at this selector.
+ "drag-handle",
+ // Valid Tailwind peer marker; eslint-plugin-tailwindcss v4 misses it with Tailwind v4.
+ "peer",
+ // Valid named Tailwind peer marker; eslint-plugin-tailwindcss v4 misses it with Tailwind v4.
+ "peer/menu-button",
+ ],
+ },
+ ],
+ // TODO: Enable these rule later
+ "tailwindcss/classnames-order": "off",
+ "tailwindcss/enforces-shorthand": "off",
+ "tailwindcss/no-unnecessary-arbitrary-value": "off",
+ "tailwindcss/no-contradicting-classname": "off",
+ "tailwindcss/enforces-negative-arbitrary-values": "off",
+ },
+ },
// Design-system component APIs must use explicit variants instead of styling escape hatches.
{
diff --git a/web/package.json b/web/package.json
index 7ffa4ccc63..3187d9ff0a 100644
--- a/web/package.json
+++ b/web/package.json
@@ -208,6 +208,7 @@
"eslint": "^9.39.2",
"eslint-config-next": "16.2.9",
"eslint-plugin-storybook": "10.3.6",
+ "eslint-plugin-tailwindcss": "4.0.2",
"jsdom": "^26.1.0",
"node-mocks-http": "^1.17.2",
"prettier": "^3.8.3",
diff --git a/web/src/components/date-picker.tsx b/web/src/components/date-picker.tsx
index b80cd6631e..615cf64a8a 100644
--- a/web/src/components/date-picker.tsx
+++ b/web/src/components/date-picker.tsx
@@ -505,7 +505,7 @@ export function TimeRangePicker({
setTab("calendar");
}}
>
- <span className="leading bg-muted flex h-5 w-10 items-center justify-center rounded px-1.5 text-center text-xs">
+ <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" />
</span>
<span>Select from calendar</span>
diff --git a/web/src/components/deleteButton.tsx b/web/src/components/deleteButton.tsx
index 0ead276e89..aa3f319017 100644
--- a/web/src/components/deleteButton.tsx
+++ b/web/src/components/deleteButton.tsx
@@ -176,7 +176,7 @@ export function DeleteButton({
<PopoverContent onClick={(e) => e.stopPropagation()}>
{deleteBlocker ?? (
<>
- <h2 className="text-md mb-3 font-semibold">Please confirm</h2>
+ <h2 className="mb-3 font-semibold">Please confirm</h2>
<p className="mb-3 max-w-72 text-sm">
{customDeletePrompt ??
`This action cannot be undone. It removes all the data associated with
diff --git a/web/src/components/table/data-table-controls.tsx b/web/src/components/table/data-table-controls.tsx
index 8f166c61c8..ea1cc61e8e 100644
--- a/web/src/components/table/data-table-controls.tsx
+++ b/web/src/components/table/data-table-controls.tsx
@@ -850,7 +850,7 @@ export function CategoricalFacet({
variant="ghost"
size="sm"
onClick={() => setShowAll(true)}
- className="text-normal mt-1 h-auto w-full justify-start py-1 pl-7 text-xs"
+ className="mt-1 h-auto w-full justify-start py-1 pl-7 text-xs"
>
Show more values
</Button>
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 2407a2be2b..b1fe0cf74a 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
@@ -639,7 +639,7 @@ export function TableViewPresetsDrawer({
<PopoverContent
onClick={(e) => e.stopPropagation()}
>
- <h2 className="text-md mb-3 font-semibold">
+ <h2 className="mb-3 font-semibold">
Edit
</h2>
<Form {...form}>
diff --git a/web/src/components/trace/components/TraceTimeline/TimelineBar.tsx b/web/src/components/trace/components/TraceTimeline/TimelineBar.tsx
index b6031a8d6d..9b5f2b6a40 100644
--- a/web/src/components/trace/components/TraceTimeline/TimelineBar.tsx
+++ b/web/src/components/trace/components/TraceTimeline/TimelineBar.tsx
@@ -71,7 +71,7 @@ export function TimelineBar({
style={{ width: `${completionWidth}px` }}
>
<div className="text-muted-foreground -ml-8 flex flex-row items-center justify-start gap-2 text-xs">
- <span className="text-xxs text-primary">First token</span>
+ <span className="text-primary">First token</span>
<ItemBadge type={node.type} isSmall />
<span className="text-primary text-sm font-medium whitespace-nowrap">
{node.name}
diff --git a/web/src/components/ui/time-picker.tsx b/web/src/components/ui/time-picker.tsx
index e1cd3d38fb..274b184f80 100644
--- a/web/src/components/ui/time-picker.tsx
+++ b/web/src/components/ui/time-picker.tsx
@@ -95,7 +95,7 @@ export function TimePicker({ date, setDate, className }: TimePickerProps) {
<div className="ml-1 flex items-center">
<Tooltip>
<TooltipTrigger asChild>
- <span className="text-s whitespace-nowrap">{shortTimezone}</span>
+ <span className="whitespace-nowrap">{shortTimezone}</span>
</TooltipTrigger>
<TooltipContent side="bottom" align="center">
{timezoneDetails}
diff --git a/web/src/ee/features/billing/components/BillingInvoiceTable.tsx b/web/src/ee/features/billing/components/BillingInvoiceTable.tsx
index 990d3f08eb..d750769e6e 100644
--- a/web/src/ee/features/billing/components/BillingInvoiceTable.tsx
+++ b/web/src/ee/features/billing/components/BillingInvoiceTable.tsx
@@ -282,7 +282,7 @@ export function BillingInvoiceTable() {
return (
<div className="space-y-0">
<div className="flex items-center justify-between pt-4">
- <h3 className="text-large font-medium">Invoice History</h3>
+ <h3 className="font-medium">Invoice History</h3>
</div>
<DataTableToolbar columns={columns} />
<DataTable
diff --git a/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsSection.tsx b/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsSection.tsx
index 1f5d28604a..f26172ba18 100644
--- a/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsSection.tsx
+++ b/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsSection.tsx
@@ -34,7 +34,7 @@ export function SpendAlertsSection({ orgId }: SpendAlertsSectionProps) {
<div className="space-y-2">
<div className="flex items-center justify-between pt-4">
<div>
- <h3 className="text-large font-medium">Spend Alerts</h3>
+ <h3 className="font-medium">Spend Alerts</h3>
<p className="text-muted-foreground max-w-prose text-sm">
Get notified when your organization&apos;s spending exceeds
configured thresholds. Alerts may be delayed by up to 90 minutes.
diff --git a/web/src/features/annotation-queues/components/AnnotationQueueItemPage.tsx b/web/src/features/annotation-queues/components/AnnotationQueueItemPage.tsx
index 3f5ac40b8b..118fe2a555 100644
--- a/web/src/features/annotation-queues/components/AnnotationQueueItemPage.tsx
+++ b/web/src/features/annotation-queues/components/AnnotationQueueItemPage.tsx
@@ -281,7 +281,7 @@ export const AnnotationQueueItemPage: React.FC<{
Mark Completed
</Button>
) : (
- <div className="text-dark-gree border-dark-green bg-light-green inline-flex h-9 w-full items-center justify-center rounded-md border px-8 text-sm font-medium">
+ <div className="border-dark-green bg-light-green inline-flex h-9 w-full items-center justify-center rounded-md border px-8 text-sm font-medium">
Completed
</div>
))}
diff --git a/web/src/features/automations/components/DeleteAutomationButton.tsx b/web/src/features/automations/components/DeleteAutomationButton.tsx
index 022b52019d..7c7936626d 100644
--- a/web/src/features/automations/components/DeleteAutomationButton.tsx
+++ b/web/src/features/automations/components/DeleteAutomationButton.tsx
@@ -72,7 +72,7 @@ export const DeleteAutomationButton: React.FC<DeleteAutomationButtonProps> = ({
)}
</PopoverTrigger>
<PopoverContent>
- <h2 className="text-md mb-3 font-semibold">Please confirm</h2>
+ <h2 className="mb-3 font-semibold">Please confirm</h2>
<p className="mb-3 text-sm">
This action permanently deletes this automation and execution history.
This cannot be undone.
diff --git a/web/src/features/automations/components/WebhookSecretRender.tsx b/web/src/features/automations/components/WebhookSecretRender.tsx
index c64eaf0d0f..5f687b92b2 100644
--- a/web/src/features/automations/components/WebhookSecretRender.tsx
+++ b/web/src/features/automations/components/WebhookSecretRender.tsx
@@ -9,7 +9,7 @@ export const WebhookSecretRender = ({
return (
<>
<div className="mb-4">
- <div className="text-md font-semibold">Webhook Secret</div>
+ <div className="font-semibold">Webhook Secret</div>
<div className="my-2 text-sm">
This secret can only be viewed once. You can regenerate it in the
automation settings if needed. Use this secret to verify webhook
diff --git a/web/src/features/automations/components/actions/WebhookActionForm.tsx b/web/src/features/automations/components/actions/WebhookActionForm.tsx
index 3a3875f6c7..74bdcd67f9 100644
--- a/web/src/features/automations/components/actions/WebhookActionForm.tsx
+++ b/web/src/features/automations/components/actions/WebhookActionForm.tsx
@@ -407,7 +407,7 @@ export const RegenerateWebhookSecretButton = ({
</Button>
</PopoverTrigger>
<PopoverContent>
- <h2 className="text-md mb-3 font-semibold">Please confirm</h2>
+ <h2 className="mb-3 font-semibold">Please confirm</h2>
<p className="mb-3 max-w-sm text-sm">
This action will invalidate the current webhook secret and generate
a new one. Any existing integrations using the old secret will stop
diff --git a/web/src/features/background-migrations/components/retry-background-migration.tsx b/web/src/features/background-migrations/components/retry-background-migration.tsx
index 826e2a283f..b8413d9e6c 100644
--- a/web/src/features/background-migrations/components/retry-background-migration.tsx
+++ b/web/src/features/background-migrations/components/retry-background-migration.tsx
@@ -63,9 +63,7 @@ export function RetryBackgroundMigration({
</Button>
</PopoverTrigger>
<PopoverContent className="w-96">
- <h2 className="text-md mb-3 font-semibold">
- Retry Background Migration
- </h2>
+ <h2 className="mb-3 font-semibold">Retry Background Migration</h2>
<p className="mb-4 text-sm">
This action schedules the migration for retry. Restart the worker
containers to re-initiate the migration.
diff --git a/web/src/features/dashboard/components/cards/DashboardCard.tsx b/web/src/features/dashboard/components/cards/DashboardCard.tsx
index df78544e53..66e5392527 100644
--- a/web/src/features/dashboard/components/cards/DashboardCard.tsx
+++ b/web/src/features/dashboard/components/cards/DashboardCard.tsx
@@ -35,7 +35,7 @@ export const DashboardCard = ({
return (
<Card className={cn("flex flex-col", className)}>
<CardHeader className={cn("relative", headerClassName)}>
- <div className="items-top flex justify-between">
+ <div className="flex justify-between">
<div className="flex flex-col gap-1.5">
<CardTitle>{title}</CardTitle>
{description ? (
diff --git a/web/src/features/datasets/components/DatasetActionButton.tsx b/web/src/features/datasets/components/DatasetActionButton.tsx
index 9be62a0a29..c12c99439b 100644
--- a/web/src/features/datasets/components/DatasetActionButton.tsx
+++ b/web/src/features/datasets/components/DatasetActionButton.tsx
@@ -193,7 +193,7 @@ export const DatasetActionButton = forwardRef<
: "Update dataset"}
</DialogTitle>
{props.mode === "delete" && (
- <DialogDescription className="text-md p-0">
+ <DialogDescription className="p-0">
This action cannot be undone and removes all the data associated
with this dataset.
</DialogDescription>
diff --git a/web/src/features/datasets/components/DatasetRunsTable.tsx b/web/src/features/datasets/components/DatasetRunsTable.tsx
index 5dedd66c01..9b61fb222b 100644
--- a/web/src/features/datasets/components/DatasetRunsTable.tsx
+++ b/web/src/features/datasets/components/DatasetRunsTable.tsx
@@ -150,7 +150,7 @@ const DatasetRunTableMultiSelectAction = ({
<DialogContent className="sm:max-w-xl">
<DialogHeader>
<DialogTitle className="mb-4">Please confirm</DialogTitle>
- <DialogDescription className="text-md p-0">
+ <DialogDescription className="p-0">
This action cannot be undone and removes all the data associated
with {selectedRunIds.length} dataset run
{selectedRunIds.length > 1 ? "s" : ""}.
diff --git a/web/src/features/datasets/components/DeleteDatasetRunButton.tsx b/web/src/features/datasets/components/DeleteDatasetRunButton.tsx
index 4d06f0ff2f..891cc65d46 100644
--- a/web/src/features/datasets/components/DeleteDatasetRunButton.tsx
+++ b/web/src/features/datasets/components/DeleteDatasetRunButton.tsx
@@ -67,7 +67,7 @@ export const DeleteDatasetRunButton = ({
<DialogContent className="sm:max-w-xl">
<DialogHeader>
<DialogTitle className="mb-4">Please confirm</DialogTitle>
- <DialogDescription className="text-md p-0">
+ <DialogDescription className="p-0">
This action cannot be undone. Traces linked to this run must be
deleted manually.
</DialogDescription>
diff --git a/web/src/features/datasets/components/NewDatasetItemForm.tsx b/web/src/features/datasets/components/NewDatasetItemForm.tsx
index 24cb166001..3a068dcdc2 100644
--- a/web/src/features/datasets/components/NewDatasetItemForm.tsx
+++ b/web/src/features/datasets/components/NewDatasetItemForm.tsx
@@ -573,7 +573,7 @@ export const NewDatasetItemForm = (props: {
pendingUploads={pendingUploads}
/>
{formError ? (
- <p className="text-red mt-2 text-center">
+ <p className="mt-2 text-center">
<span className="font-bold">Error:</span> {formError}
</p>
) : null}
diff --git a/web/src/features/evals/components/deactivate-config.tsx b/web/src/features/evals/components/deactivate-config.tsx
index 772af109e6..9521834953 100644
--- a/web/src/features/evals/components/deactivate-config.tsx
+++ b/web/src/features/evals/components/deactivate-config.tsx
@@ -69,7 +69,7 @@ export function DeactivateEvalConfig({
</div>
</PopoverTrigger>
<PopoverContent>
- <h2 className="text-md mb-3 font-semibold">Please confirm</h2>
+ <h2 className="mb-3 font-semibold">Please confirm</h2>
<p className="mb-3 text-sm">
{evalConfig?.status === "ACTIVE"
? "This action will deactivate the evaluator. No more traces will be evaluated based on this evaluator."
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 bc7d0d1db0..33509e8db6 100644
--- a/web/src/features/evals/components/default-eval-model-setup.tsx
+++ b/web/src/features/evals/components/default-eval-model-setup.tsx
@@ -103,7 +103,7 @@ function useDefaultEvalModelSetup({
function DefaultEvalModelFields({
setup,
- errorClassName = "text-red w-full text-center",
+ errorClassName = "w-full text-center",
}: {
setup: ReturnType<typeof useDefaultEvalModelSetup>;
errorClassName?: string;
@@ -275,7 +275,7 @@ export function InlineDefaultEvalModelSetup({
<div className="space-y-3">
<DefaultEvalModelFields
setup={setup}
- errorClassName="text-red w-full text-center text-sm"
+ errorClassName="w-full text-center text-sm"
/>
</div>
<div className="flex w-full justify-end">
@@ -324,7 +324,7 @@ function UpdateButton({
onClick={(e) => e.stopPropagation()}
className="w-fit max-w-[500px]"
>
- <h2 className="text-md mb-3 font-semibold">Please confirm</h2>
+ <h2 className="mb-3 font-semibold">Please confirm</h2>
<p className="mb-3 text-sm">
Updating the default model will impact any currently running
evaluators that use it. Please confirm that you want to proceed with
diff --git a/web/src/features/evals/components/delete-eval-template-button.tsx b/web/src/features/evals/components/delete-eval-template-button.tsx
index 4d39c34a88..f9c595663d 100644
--- a/web/src/features/evals/components/delete-eval-template-button.tsx
+++ b/web/src/features/evals/components/delete-eval-template-button.tsx
@@ -88,7 +88,7 @@ export function DeleteEvalTemplateButton(props: DeleteEvalTemplateButtonProps) {
const deleteBlocker =
usageCount > 0 ? (
<>
- <h2 className="text-md mb-3 font-semibold">Cannot delete</h2>
+ <h2 className="mb-3 font-semibold">Cannot delete</h2>
<p className="mb-3 max-w-72 text-sm">
This evaluator is used by {usageCount} running evaluator
{usageCount === 1 ? "" : "s"}. Delete those running evaluators first.
diff --git a/web/src/features/evals/components/eval-form-descriptions.tsx b/web/src/features/evals/components/eval-form-descriptions.tsx
index e628bba8ac..289721d600 100644
--- a/web/src/features/evals/components/eval-form-descriptions.tsx
+++ b/web/src/features/evals/components/eval-form-descriptions.tsx
@@ -8,7 +8,7 @@ export function VariableMappingDescription(p: {
}) {
return (
<div className="flex w-1/2 items-center">
- <Label className="muted-foreground text-sm font-light">{p.title}</Label>
+ <Label className="text-sm font-light">{p.title}</Label>
<DocPopup description={p.description} href={p.href} />
</div>
);
diff --git a/web/src/features/evals/components/inner-evaluator-form.tsx b/web/src/features/evals/components/inner-evaluator-form.tsx
index cd5e3c7451..7f1afebb08 100644
--- a/web/src/features/evals/components/inner-evaluator-form.tsx
+++ b/web/src/features/evals/components/inner-evaluator-form.tsx
@@ -1027,7 +1027,7 @@ export const InnerEvaluatorForm = (props: {
<FormLabel>Evaluate</FormLabel>
<FormControl>
<div className="flex flex-col gap-2">
- <div className="items-top flex space-x-2">
+ <div className="flex space-x-2">
<Checkbox
id="newObjects"
checked={field.value.includes("NEW")}
@@ -1048,7 +1048,7 @@ export const InnerEvaluatorForm = (props: {
</label>
</div>
</div>
- <div className="items-top flex space-x-2">
+ <div className="flex space-x-2">
<Checkbox
id="existingObjects"
checked={field.value.includes("EXISTING")}
@@ -1254,7 +1254,7 @@ export const InnerEvaluatorForm = (props: {
</div>
</FormControl>
{!props.disabled && !hasFilters && (
- <div className="align-center flex max-w-[500px] gap-1">
+ <div className="flex max-w-[500px] gap-1">
<AlertTriangle className="text-dark-yellow h-4 w-4" />
<AlertDescription className="text-dark-yellow">
No filters set. This evaluator will run on all{" "}
@@ -1397,7 +1397,7 @@ export const InnerEvaluatorForm = (props: {
</Button>
) : null}
{formError ? (
- <p className="text-red w-full text-center">
+ <p className="w-full text-center">
<span className="font-bold">Error:</span> {formError}
</p>
) : null}
diff --git a/web/src/features/evals/components/template-form.tsx b/web/src/features/evals/components/template-form.tsx
index 54cbd20f21..bf697e8f8f 100644
--- a/web/src/features/evals/components/template-form.tsx
+++ b/web/src/features/evals/components/template-form.tsx
@@ -946,7 +946,7 @@ export const InnerEvalTemplateForm = (props: {
</Button>
)}
{formError ? (
- <p className="text-red w-full text-center">
+ <p className="w-full text-center">
<span className="font-bold">Error:</span> {formError}
</p>
) : null}
diff --git a/web/src/features/evals/pages/remap-evaluator.tsx b/web/src/features/evals/pages/remap-evaluator.tsx
index 99c8e02a13..fbda9d8ee1 100644
--- a/web/src/features/evals/pages/remap-evaluator.tsx
+++ b/web/src/features/evals/pages/remap-evaluator.tsx
@@ -295,7 +295,7 @@ export default function RemapEvaluatorPage() {
</DropdownMenu>
</div>
{formError ? (
- <p className="text-red w-full text-center">
+ <p className="w-full text-center">
<span className="font-bold">Error:</span> {formError}
</p>
) : null}
diff --git a/web/src/features/models/components/DeleteModelButton.tsx b/web/src/features/models/components/DeleteModelButton.tsx
index cbca606c27..60dd02e657 100644
--- a/web/src/features/models/components/DeleteModelButton.tsx
+++ b/web/src/features/models/components/DeleteModelButton.tsx
@@ -48,7 +48,7 @@ export const DeleteModelButton = ({
</Button>
</PopoverTrigger>
<PopoverContent>
- <h2 className="text-md mb-3 font-semibold">Please confirm</h2>
+ <h2 className="mb-3 font-semibold">Please confirm</h2>
<p className="mb-3 text-sm">
This action permanently deletes this model definition.
</p>
diff --git a/web/src/features/monitors/components/MonitorForm.tsx b/web/src/features/monitors/components/MonitorForm.tsx
index d9c0559432..efb9cecd3b 100644
--- a/web/src/features/monitors/components/MonitorForm.tsx
+++ b/web/src/features/monitors/components/MonitorForm.tsx
@@ -857,7 +857,7 @@ export const MonitorForm = ({
</Section>
</CardContent>
<CardFooter className="mt-auto">
- <div className="flex-inherit w-full items-center pt-4">
+ <div className="w-full items-center pt-4">
<Button
type="submit"
size="lg"
diff --git a/web/src/features/prompts/components/NewPromptForm/index.tsx b/web/src/features/prompts/components/NewPromptForm/index.tsx
index 5e8f7d8279..8a1b280992 100644
--- a/web/src/features/prompts/components/NewPromptForm/index.tsx
+++ b/web/src/features/prompts/components/NewPromptForm/index.tsx
@@ -491,7 +491,7 @@ export const NewPromptForm: React.FC<NewPromptFormProps> = (props) => {
)}
</form>
{formError && (
- <p className="text-red text-center">
+ <p className="text-center">
<span className="font-bold">Error:</span> {formError}
</p>
)}
diff --git a/web/src/features/prompts/components/PromptSelectionDialog.tsx b/web/src/features/prompts/components/PromptSelectionDialog.tsx
index 692c0e1963..0edb9751a2 100644
--- a/web/src/features/prompts/components/PromptSelectionDialog.tsx
+++ b/web/src/features/prompts/components/PromptSelectionDialog.tsx
@@ -221,7 +221,7 @@ export function PromptSelectionDialog({
type="button"
variant="ghost"
size="icon"
- className="bg-opacity-70 absolute top-2 right-2"
+ className="absolute top-2 right-2"
onClick={copySelectedTag}
>
<CopyIcon className="h-4 w-4" />
diff --git a/web/src/features/prompts/components/SetPromptVersionLabels/index.tsx b/web/src/features/prompts/components/SetPromptVersionLabels/index.tsx
index 43895a909f..d6871b6d38 100644
--- a/web/src/features/prompts/components/SetPromptVersionLabels/index.tsx
+++ b/web/src/features/prompts/components/SetPromptVersionLabels/index.tsx
@@ -204,7 +204,7 @@ export function SetPromptVersionLabels({
onClick={(event) => event.stopPropagation()}
className="flex flex-col"
>
- <h2 className="text-md mb-3 font-semibold">Prompt labels</h2>
+ <h2 className="mb-3 font-semibold">Prompt labels</h2>
<h2 className="mb-3 text-xs">
Use labels to fetch prompts via SDKs. The{" "}
<strong>production</strong> labeled prompt will be served by
diff --git a/web/src/features/prompts/components/delete-prompt-version.tsx b/web/src/features/prompts/components/delete-prompt-version.tsx
index fa956fe2ca..d7b1e8b59d 100644
--- a/web/src/features/prompts/components/delete-prompt-version.tsx
+++ b/web/src/features/prompts/components/delete-prompt-version.tsx
@@ -77,7 +77,7 @@ export function DeletePromptVersion({
</Button>
</PopoverTrigger>
<PopoverContent>
- <h2 className="text-md mb-3 font-semibold">Please confirm</h2>
+ <h2 className="mb-3 font-semibold">Please confirm</h2>
<p className="mb-3 text-sm">
This action deletes the prompt version. Requests of version{" "}
<code className="bg-muted relative rounded px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold">
diff --git a/web/src/features/prompts/components/delete-prompt.tsx b/web/src/features/prompts/components/delete-prompt.tsx
index acc37058c1..63a9959e94 100644
--- a/web/src/features/prompts/components/delete-prompt.tsx
+++ b/web/src/features/prompts/components/delete-prompt.tsx
@@ -36,7 +36,7 @@ export function DeletePrompt({ promptName }: { promptName: string }) {
</Button>
</PopoverTrigger>
<PopoverContent>
- <h2 className="text-md mb-3 font-semibold">Please confirm</h2>
+ <h2 className="mb-3 font-semibold">Please confirm</h2>
<p className="mb-3 text-sm">
This action permanently deletes this prompt. All requests to fetch
prompt{" "}
diff --git a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
index 10527b1435..95b1728c7b 100644
--- a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
+++ b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
@@ -1034,7 +1034,7 @@ export function CreateLLMApiKeyForm({
{/* Vertex AI ADC option for self-hosted only, create mode only */}
{!isLangfuseCloud && mode === "create" && (
<FormItem>
- <span className="row flex">
+ <span className="flex">
<span className="flex-1">
<FormLabel>
Use Application Default Credentials (ADC)
@@ -1311,7 +1311,7 @@ export function CreateLLMApiKeyForm({
name="openAIUseResponsesApi"
render={({ field }) => (
<FormItem>
- <span className="row flex">
+ <span className="flex">
<span className="flex-1">
<FormLabel>Use Responses API</FormLabel>
<FormDescription>
@@ -1345,7 +1345,7 @@ export function CreateLLMApiKeyForm({
name="withDefaultModels"
render={({ field }) => (
<FormItem>
- <span className="row flex">
+ <span className="flex">
<span className="flex-1">
<FormLabel>Enable default models</FormLabel>
<FormDescription>
diff --git a/web/src/features/score-configs/components/ArchiveScoreConfigButton.tsx b/web/src/features/score-configs/components/ArchiveScoreConfigButton.tsx
index 3625bd374d..a3c3e738f0 100644
--- a/web/src/features/score-configs/components/ArchiveScoreConfigButton.tsx
+++ b/web/src/features/score-configs/components/ArchiveScoreConfigButton.tsx
@@ -56,7 +56,7 @@ export const ArchiveScoreConfigButton = ({
onClick={(e) => e.stopPropagation()}
className="max-w-[500px]"
>
- <h2 className="text-md mb-3 font-semibold">
+ <h2 className="mb-3 font-semibold">
{isArchived ? "Restore config" : "Archive config"}
</h2>
<p className="mb-3 text-sm">
diff --git a/web/src/features/score-configs/components/UpsertScoreConfigDialog.tsx b/web/src/features/score-configs/components/UpsertScoreConfigDialog.tsx
index 24eb3e4951..f8eab0f6d8 100644
--- a/web/src/features/score-configs/components/UpsertScoreConfigDialog.tsx
+++ b/web/src/features/score-configs/components/UpsertScoreConfigDialog.tsx
@@ -313,7 +313,7 @@ export function UpsertScoreConfigDialog({
{fields.map((category, index) => (
<div
key={`${category.id}-langfuseObject`}
- className="items-top mb-2 grid grid-cols-[1fr_3fr] gap-2 text-left sm:grid-cols-[1fr_7fr]"
+ className="mb-2 grid grid-cols-[1fr_3fr] gap-2 text-left sm:grid-cols-[1fr_7fr]"
>
<FormField
control={form.control}
@@ -377,7 +377,7 @@ export function UpsertScoreConfigDialog({
{isCategoricalDataType(
form.getValues("dataType"),
) && (
- <div className="grid-cols-auto grid">
+ <div className="grid">
<Button
type="button"
variant="secondary"
@@ -431,7 +431,7 @@ export function UpsertScoreConfigDialog({
<DialogFooter>
<div className="flex w-full flex-col items-end gap-4">
{formError ? (
- <p className="text-red w-full text-center">
+ <p className="w-full text-center">
<span className="font-bold">Error:</span> {formError}
</p>
) : null}
diff --git a/web/src/features/scores/components/AnnotationForm.tsx b/web/src/features/scores/components/AnnotationForm.tsx
index 3d61febfa9..65f1129764 100644
--- a/web/src/features/scores/components/AnnotationForm.tsx
+++ b/web/src/features/scores/components/AnnotationForm.tsx
@@ -877,7 +877,7 @@ function InnerAnnotationForm<Target extends ScoreTarget>({
</Button>
</PopoverTrigger>
<PopoverContent>
- <h2 className="text-md mb-3 font-semibold">
+ <h2 className="mb-3 font-semibold">
Your score is archived
</h2>
<p className="mb-3 text-sm">
diff --git a/web/src/features/widgets/components/WidgetTable.tsx b/web/src/features/widgets/components/WidgetTable.tsx
index d638cb5e4e..9e147a0164 100644
--- a/web/src/features/widgets/components/WidgetTable.tsx
+++ b/web/src/features/widgets/components/WidgetTable.tsx
@@ -80,7 +80,7 @@ export function DeleteWidget({
</Button>
</PopoverTrigger>
<PopoverContent>
- <h2 className="text-md mb-3 font-semibold">Please confirm</h2>
+ <h2 className="mb-3 font-semibold">Please confirm</h2>
<p className="mb-3 text-sm">
This action permanently deletes this widget. If the widget is
currently used in any dashboard, you will need to remove it from those
diff --git a/web/src/utils/tailwind.ts b/web/src/utils/tailwind.ts
index a5ef193506..fa828a5f29 100644
--- a/web/src/utils/tailwind.ts
+++ b/web/src/utils/tailwind.ts
@@ -1,6 +1,7 @@
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
-export function cn(...inputs: ClassValue[]) {
- return twMerge(clsx(inputs));
+export function cn(...values: ClassValue[]) {
+ // eslint-disable-next-line tailwindcss/no-custom-classname -- eslint-plugin-tailwindcss misreads this helper's rest parameter as a class name.
+ return twMerge(clsx(values));
}