🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
feat(ui): add dark mode (#1998)
Richard Krümmel857507195bc1
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 55b2bf7601..1c236e5312 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -290,6 +290,74 @@ When a new release is tagged on the `main` branch (excluding prereleases), it tr1. The Docker image is published to GitHub Packages with the version number and `latest` tag.2. The deployment is carried out on Langfuse Cloud. This is done by force pushing the `main` branch to the `production` branch during every release, using the [`release.yml`](.github/workflows/release.yml) GitHub Action.+## Theming++At Langfuse, we utilize CSS variables to manage our theme settings across the platform.++Our approach leverages separate CSS variables for backgrounds (--background) and foregrounds (--foreground), fully adhering to the [shadcn/ui](https://ui.shadcn.com/docs/theming) color conventions. The background suffix can be omitted if the variable is used for the background color of the component. We recommend using HSL values for these colors to enhance consistency and customization. There is no need to manually handle dark mode styling with "dark:" prefixes, as next-themes automatically manages the theme switching.++Given the following CSS variables:++```+--primary: 222.2 47.4% 11.2%; // e.g. background-color+--primary-foreground: 210 40% 98%; // e.g. text-color+```++The background color of the following component will be `hsl(var(--primary))` and the foreground color will be `hsl(var(--primary-foreground))`.++```+<div class="bg-primary text-primary-foreground">Hello</div>+```++### Color Variables++| Variable | Description | Examples |+| ------------------------ | ------------------------------------------------------------------ | -------------------------------- |+| --background | Background color | Default background color of body |+| --foreground | Foreground color | Default text color of body |+| --muted | Muted background color | TabsList, Skeleton and Switch |+| --muted-foreground | Muted foreground color | |+| --popover | Popover background color | DropdownMenu, HoverCard, Popover |+| --popover-foreground | Popover foreground color | |+| --card | Card background color | Card |+| --card-foreground | Card foreground color | |+| --border | Border color | Default border color |+| --input | Input field border color | Input, Select, Textarea |+| --primary | Primary button background colors | Button variant="primary" |+| --primary-foreground | Primary button foreground color | |+| --secondary | Secondary button background color | Button variant="secondary" |+| --secondary-foreground | Secondary button foreground color | |+| --accent | Used for accents such as hover effects | DropdownMenuItem, SelectItem |+| --accent-foreground | Used for texts on hover effects | DropdownMenuItem, SelectItem |+| --destructive | Destructive action color for background | Button variant="destructive" |+| --destructive-foreground | Destructive action color for text | |+| --ring | Focus ring color | MultiSelect |+| --primary-accent | Primary accent color used for branding | Layout |+| --hover-primary-accent | Primary accent color used for hover effects for links | SignIn and AuthCloudRegionSwitch |+| --muted-green | Muted green for Event label | ObservationTree |+| --muted-orange | Muted orange for Generation label | ObservationTree |+| --muted-blue | Muted blue for Span label | ObservationTree |+| --muted-gray | Muted gray for disabled status badges | StatusBadge |+| --accent-light-green | Light green accent for background of output and assistant messages | IOPreview, Generations, Traces |+| --accent-dark-green | Dark green accent for border of output and assistant messages | CodeJsonViewer and IOPReview |+| --light-red | Light red for error background | level-color and StatusBadge |+| --dark-red | Dark red for error text and error badge dot color | level-color and ErrorPage |+| --light-yellow | Light yellow for warning background | LevelColor |+| --dark-yellow | Dark yellow for warning text | LevelColor |+| --light-green | Light green for success status badge background | StatusBadge |+| --dark-green | Dark green for success status badge text and dot | StatusBadge |+| --light-blue | Light blue for background of Staging label | LangfuseLogo |+| --dark-blue | Dark blue for text and border of Staging label | LangfuseLogo |+| --accent-light-blue | Light blue accent for table link hover effect | TableLink |+| --accent-dark-blue | Dark blue accent for table link text | TableLink |++### Adding New Colors++1. Global Definitions: Add new CSS variable definitions in the global.css file.+2. Tailwind Configuration: Reflect these new colors in the tailwind.config.js to maintain alignment with Tailwind's utility classes.++By following these guidelines, you can ensure that any contributions to our theme are consistent, maintainable, and aligned with our design system.+## Using secrets stored in 1PasswordWhen applying changes to non-local environments, you may need to use secrets stored in 1Password. We use the 1Password CLI for this purpose.diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 16bbd9a6f0..0f919a9469 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -223,8 +223,11 @@ importers:specifier: ^6.0.1version: 6.0.1'@headlessui/react':- specifier: ^1.7.19- version: 1.7.19([email protected])([email protected])+ specifier: 1.7.18+ version: 1.7.18([email protected])([email protected])+ '@headlessui/tailwindcss':+ specifier: 0.2.0+ version: 0.2.0([email protected])'@heroicons/react':specifier: ^2.1.3version: 2.1.3([email protected])@@ -318,6 +321,9 @@ importers:'@react-email/render':specifier: ^0.0.13version: 0.0.13+ '@remixicon/react':+ specifier: ^4.2.0+ version: 4.2.0([email protected])'@repo/eslint-config':specifier: workspace:*version: link:../packages/config-eslint@@ -342,9 +348,6 @@ importers:'@tailwindcss/container-queries':specifier: ^0.1.1version: 0.1.1([email protected])- '@tailwindcss/forms':- specifier: ^0.5.7- version: 0.5.7([email protected])'@tanstack/react-query':specifier: ^4.36.1version: 4.36.1([email protected])([email protected])@@ -355,8 +358,8 @@ importers:specifier: ^3.5.0version: 3.5.0([email protected])([email protected])'@tremor/react':- specifier: 3.11.1+ specifier: 3.16.2'@trpc/client':specifier: ^10.45.0version: 10.45.2(@trpc/[email protected])@@ -432,6 +435,9 @@ importers:next-query-params:specifier: ^5.0.0+ next-themes:+ specifier: ^0.3.0+ version: 0.3.0([email protected])([email protected])nodemailer:specifier: ^6.9.13version: 6.9.13@@ -500,6 +506,9 @@ importers:'@playwright/test':specifier: ^1.43.1version: 1.43.1+ '@tailwindcss/forms':+ specifier: ^0.5.7+ version: 0.5.7([email protected])'@testing-library/jest-dom':specifier: ^6.4.2version: 6.4.2(@types/[email protected])([email protected])@@ -2617,6 +2626,19 @@ packages:resolution: {integrity: sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q==}dev: false+ resolution: {integrity: sha512-4i5DOrzwN4qSgNsL4Si61VMkUcWbcSKueUV7sFhpHzQcSShdlHENE5+QBntMSRvHt8NyoFO2AGG8si9lq+w4zQ==}+ engines: {node: '>=10'}+ peerDependencies:+ react: ^16 || ^17 || ^18+ react-dom: ^16 || ^17 || ^18+ dependencies:+ '@tanstack/react-virtual': 3.5.0([email protected])([email protected])+ client-only: 0.0.1+ react: 18.2.0+ react-dom: 18.2.0([email protected])+ dev: false+resolution: {integrity: sha512-Ll+8q3OlMJfJbAKM/+/Y2q6PPYbryqNTXDbryx7SXLIDamkF6iQFbriYHga0dY44PvDhvvBWCx1Xj4U5+G4hOw==}engines: {node: '>=10'}@@ -2630,8 +2652,8 @@ packages:react-dom: 18.2.0([email protected])dev: false- /@headlessui/[email protected]([email protected]):- resolution: {integrity: sha512-3aMdDyYZx9A15euRehpppSyQnb2gIw2s/Uccn2ELIoLQ9oDy0+9oRygNWNjXCD5Dt+w1pxo7C+XoiYvGcqA4Kg==}+ /@headlessui/[email protected]([email protected]):+ resolution: {integrity: sha512-fpL830Fln1SykOCboExsWr3JIVeQKieLJ3XytLe/tt1A0XzqUthOftDmjcCYLW62w7mQI7wXcoPXr3tZ9QfGxw==}engines: {node: '>=10'}peerDependencies:tailwindcss: ^3.0@@ -5206,6 +5228,14 @@ packages:semver: 7.6.0dev: true+ /@remixicon/[email protected]([email protected]):+ resolution: {integrity: sha512-eGhKpZ88OU0qkcY9pJu6khBmItDV82nU130E6C68yc+FbljueHlUYy/4CrJsmf860RIDMay2Rpzl27OSJ81miw==}+ peerDependencies:+ react: '>=18.2.0'+ dependencies:+ react: 18.2.0+ dev: false+/@rollup/[email protected]([email protected]):resolution: {integrity: sha512-0w0wyykzdyRRPHOb0cQt14mIBLujfAv6GgP6g8nvg/iBxEm112t3YPPq+Buqe2+imvElTka+bjNlJ/gB56TD8g==}engines: {node: '>=14.0.0'}@@ -6082,7 +6112,7 @@ packages:dependencies:mini-svg-data-uri: 1.4.4tailwindcss: 3.4.3([email protected])- dev: false+ dev: true/@tanstack/[email protected]:resolution: {integrity: sha512-DJSilV5+ytBP1FbFcEJovv4rnnm/CokuVvrBEtW/Va9DvuJ3HksbXUJEpI0aV1KtuL4ZoO9AVE6PyNLzF7tLeA==}@@ -6213,21 +6243,21 @@ packages:resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==}dev: true- resolution: {integrity: sha512-oiBm8vFe0+05RFIHlriSmfZX7BMwgAIFGdvz5kAEbN6G/cGOh2oPkTGG+NPbbk8eyo68f13IT6KfTiMVSEhRSA==}+ resolution: {integrity: sha512-Isdc+Sf4WHlnrAAO8Hk/nK84HiXzCZvb6ZFRHrzOkF+APm6nDhvKPRorXcXZ2BKSS5T5L0QVsid5fIxly8kRdA==}peerDependencies:react: ^18.0.0react-dom: '>=16.6.0'dependencies:'@floating-ui/react': 0.19.2([email protected])([email protected])'@headlessui/react': 1.7.19([email protected])([email protected])- '@headlessui/tailwindcss': 0.1.3([email protected])+ '@headlessui/tailwindcss': 0.2.0([email protected])date-fns: 2.30.0react: 18.2.0react-day-picker: 8.10.1([email protected])([email protected])react-dom: 18.2.0([email protected])- react-transition-group: 4.4.5([email protected])([email protected])- recharts: 2.12.3([email protected])([email protected])+ react-transition-state: 2.1.1([email protected])([email protected])+ recharts: 2.12.7([email protected])([email protected])tailwind-merge: 1.14.0transitivePeerDependencies:- tailwindcss@@ -13217,7 +13247,7 @@ packages:resolution: {integrity: sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==}hasBin: true- dev: false+ dev: trueresolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}@@ -13472,6 +13502,16 @@ packages:use-query-params: 2.2.1([email protected])([email protected])dev: false+ resolution: {integrity: sha512-/QHIrsYpd6Kfk7xakK4svpDI5mmXP0gfvCoJdGpZQ2TOrQZmsW0QxjaiLn8wbIKjtm4BTSqLoix4lxYYOnLJ/w==}+ peerDependencies:+ react: ^16.8 || ^17 || ^18+ react-dom: ^16.8 || ^17 || ^18+ dependencies:+ react: 18.2.0+ react-dom: 18.2.0([email protected])+ dev: false+/[email protected](@babel/[email protected])(@playwright/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-dowFkFTR8v79NPJO4QsBUtxv0g9BrS/phluVpMAt2ku7H+cbcBJlopXjkWlwxrk/xGqMemr7JkGPGemPrLLX7A==}engines: {node: '>=18.17.0'}@@ -15045,6 +15085,16 @@ packages:react-dom: 18.2.0([email protected])dev: false+ resolution: {integrity: sha512-kQx5g1FVu9knoz1T1WkapjUgFz08qQ/g1OmuWGi3/AoEFfS0kStxrPlZx81urjCXdz2d+1DqLpU6TyLW/Ro04Q==}+ peerDependencies:+ react: '>=16.8.0'+ react-dom: '>=16.8.0'+ dependencies:+ react: 18.2.0+ react-dom: 18.2.0([email protected])+ dev: false+resolution: {integrity: sha512-8/TFnfx9uedfKEl0fIQhVsKxYtKgxxnrn96Z1BrhTqm4RhrmeGrQIheviCO5+neEzJ0ysBxSzeBJpM2BYaor8w==}peerDependencies:@@ -15137,8 +15187,8 @@ packages:decimal.js-light: 2.5.1dev: false- resolution: {integrity: sha512-vE/F7wTlokf5mtCqVDJlVKelCjliLSJ+DJxj79XlMREm7gpV7ljwbrwE3CfeaoDlOaLX+6iwHaVRn9587YkwIg==}+ resolution: {integrity: sha512-hlLJMhPQfv4/3NBSAyq3gzGg4h2v69RJh6KU7b3pXYNNAELs9kEoXOjbkxdXpALqKBoVmVptGfLpxdaVYqjmXQ==}engines: {node: '>=14'}peerDependencies:react: ^16.0.0 || ^17.0.0 || ^18.0.0diff --git a/web/package.json b/web/package.jsonindex 66bca1cae3..ff2636ecd9 100644--- a/web/package.json+++ b/web/package.json@@ -25,7 +25,8 @@"@aws-sdk/lib-storage": "^3.568.0","@aws-sdk/s3-request-presigner": "^3.554.0","@codemirror/lang-json": "^6.0.1",- "@headlessui/react": "^1.7.19",+ "@headlessui/react": "1.7.18",+ "@headlessui/tailwindcss": "0.2.0","@heroicons/react": "^2.1.3","@hookform/resolvers": "^3.3.4","@langchain/anthropic": "^0.1.16",@@ -57,6 +58,7 @@"@radix-ui/react-tooltip": "^1.0.7","@react-email/components": "^0.0.17","@react-email/render": "^0.0.13",+ "@remixicon/react": "^4.2.0","@repo/eslint-config": "workspace:*","@repo/typescript-config": "workspace:*","@sentry/nextjs": "^7.113.0",@@ -65,11 +67,10 @@"@sentry/types": "^7.113.0","@t3-oss/env-nextjs": "^0.8.0","@tailwindcss/container-queries": "^0.1.1",- "@tailwindcss/forms": "^0.5.7","@tanstack/react-query": "^4.36.1","@tanstack/react-table": "^8.11.8",+ "@tremor/react": "3.16.2","@tanstack/react-virtual": "^3.5.0",- "@tremor/react": "3.11.1","@trpc/client": "^10.45.0","@trpc/next": "^10.45.0","@trpc/react-query": "^10.45.0",@@ -95,6 +96,7 @@"next": "^14.2.3","next-auth": "^4.24.7","next-query-params": "^5.0.0",+ "next-themes": "^0.3.0","nodemailer": "^6.9.13","posthog-js": "^1.122.0","posthog-node": "^3.6.3",@@ -118,6 +120,7 @@"@jedmao/location": "^3.0.0","@mermaid-js/mermaid-cli": "^10.7.0","@playwright/test": "^1.43.1",+ "@tailwindcss/forms": "^0.5.7","@testing-library/jest-dom": "^6.4.2","@testing-library/react": "^15.0.6","@types/bcryptjs": "^2.4.6",diff --git a/web/src/components/LangfuseLogo.tsx b/web/src/components/LangfuseLogo.tsxindex 22dadddc73..8b46685839 100644--- a/web/src/components/LangfuseLogo.tsx+++ b/web/src/components/LangfuseLogo.tsx@@ -41,10 +41,10 @@ export const LangfuseLogo = ({className={cn("flex items-center gap-2 self-stretch rounded-md px-1 py-1 text-xs ring-1 sm:px-3 sm:py-2 lg:-mx-2",env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "STAGING"- ? "bg-blue-100 text-blue-500 ring-blue-500"+ ? "bg-light-blue text-dark-blue ring-dark-blue": env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "DEV"- ? "bg-green-100 text-green-500 ring-green-500"- : "bg-red-100 text-red-500 ring-red-500",+ ? "bg-light-green text-dark-green ring-dark-green"+ : "bg-light-red text-dark-red ring-dark-red",)}>{env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "DEV" ? (@@ -76,7 +76,7 @@ export const LangfuseLogo = ({target="_blank"rel="noopener"title="View releases on GitHub"- className="ml-2 text-xs text-gray-400"+ className="ml-2 text-xs text-muted-foreground">{VERSION}</a>diff --git a/web/src/components/ModelParameters.tsx b/web/src/components/ModelParameters.tsxindex 47e33cc7ae..fa80a9946c 100644--- a/web/src/components/ModelParameters.tsx+++ b/web/src/components/ModelParameters.tsx@@ -127,7 +127,12 @@ const ModelParamsSelect = ({}: ModelParamsSelectProps) => {return (<div className="space-y-2">- <p className={cn("text-xs font-semibold", disabled && "text-gray-400")}>+ <p+ className={cn(+ "text-xs font-semibold",+ disabled && "text-muted-foreground",+ )}+ >{title}</p><Select@@ -187,7 +192,7 @@ const ModelParamsSlider = ({<pclassName={cn("flex-1 text-xs font-semibold",- (!enabled || formDisabled) && "text-gray-400",+ (!enabled || formDisabled) && "text-muted-foreground",)}>{title}diff --git a/web/src/components/Slider.tsx b/web/src/components/Slider.tsxindex e599e3f8d6..7ae7ea384a 100644--- a/web/src/components/Slider.tsx+++ b/web/src/components/Slider.tsx@@ -7,27 +7,23 @@ export const Slider = (props: {loading?: boolean;onChecked?: (checked: boolean) => void;isChecked?: boolean; // whether the slider is active-}) => {- console.log("props", props);-- return (- <Switch- checked={props.isChecked}- disabled={props.loading || props.disabled}- onChange={props.onChecked}+}) => (+ <Switch+ checked={props.isChecked}+ disabled={props.loading || props.disabled}+ onChange={props.onChecked}+ className={cn(+ props.isChecked ? "bg-background" : "bg-input",+ "relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-foreground focus:ring-offset-2",+ )}+ >+ <span className="sr-only">Use setting</span>+ <span+ aria-hidden="true"className={cn(- props.isChecked ? "bg-black" : "bg-gray-200",- "relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-black focus:ring-offset-2",+ props.isChecked ? "translate-x-5" : "translate-x-0",+ "pointer-events-none inline-block h-5 w-5 transform rounded-full bg-background shadow ring-0 transition duration-200 ease-in-out",)}- >- <span className="sr-only">Use setting</span>- <span- aria-hidden="true"- className={cn(- props.isChecked ? "translate-x-5" : "translate-x-0",- "pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",- )}- />- </Switch>- );-};+ />+ </Switch>+);diff --git a/web/src/components/error-page.tsx b/web/src/components/error-page.tsxindex ff6c5b7fa0..f42721f715 100644--- a/web/src/components/error-page.tsx+++ b/web/src/components/error-page.tsx@@ -18,7 +18,7 @@ export const ErrorPage = ({return (<div className="flex h-screen flex-col items-center justify-center">- <AlertCircle className="mb-4 h-12 w-12 text-red-500" />+ <AlertCircle className="text-dark-red mb-4 h-12 w-12" /><h1 className="mb-4 text-xl font-bold">{title}</h1><p className="mb-8 text-center">{message}</p>{session.status === "unauthenticated" ? (diff --git a/web/src/components/grouped-score-badge.tsx b/web/src/components/grouped-score-badge.tsxindex 48ef33181c..7d3876df3c 100644--- a/web/src/components/grouped-score-badge.tsx+++ b/web/src/components/grouped-score-badge.tsx@@ -58,7 +58,7 @@ export const GroupedScoreBadges = ({.sort(([a], [b]) => (a < b ? -1 : 1)).map(([name, scores]) => (<div key={name}>- <div className="text-xs text-gray-500">{name}</div>+ <div className="text-xs text-muted-foreground">{name}</div><ScoresOfGroup scores={scores} /></div>))}diff --git a/web/src/components/json-editor.tsx b/web/src/components/json-editor.tsxindex b84d9e38d3..74ba36562c 100644--- a/web/src/components/json-editor.tsx+++ b/web/src/components/json-editor.tsx@@ -1,6 +1,7 @@import CodeMirror, { EditorView } from "@uiw/react-codemirror";-import { githubLight } from "@uiw/codemirror-theme-github";+import { githubLight, githubDark } from "@uiw/codemirror-theme-github";import { json } from "@codemirror/lang-json";+import { useTheme } from "next-themes";import { cn } from "@/src/utils/tailwind";// todo: add json linting@@ -18,10 +19,12 @@ export function JsonEditor({lineWrapping?: boolean;className?: string;}) {+ const { theme } = useTheme();+ const codeMirrorTheme = theme === "dark" ? githubDark : githubLight;return (<CodeMirrorvalue={defaultValue}- theme={githubLight}+ theme={codeMirrorTheme}basicSetup={{foldGutter: true,}}diff --git a/web/src/components/layouts/doc-popup.tsx b/web/src/components/layouts/doc-popup.tsxindex e17be33114..30b3310366 100644--- a/web/src/components/layouts/doc-popup.tsx+++ b/web/src/components/layouts/doc-popup.tsx@@ -46,7 +46,7 @@ export default function DocPopup({href={href}rel="noopener"target="_blank"- className="inline-block whitespace-nowrap text-gray-500 sm:pl-0"+ className="inline-block whitespace-nowrap text-muted-foreground sm:pl-0"onClick={() => {capture("help_popup:href_clicked", {href: href,@@ -62,7 +62,7 @@ export default function DocPopup({}</Link>) : (- <div className="inline-block whitespace-nowrap text-gray-500 sm:pl-0">+ <div className="inline-block whitespace-nowrap text-muted-foreground sm:pl-0">{{question: <HelpCircle className={sizes[size]} />,@@ -74,7 +74,7 @@ export default function DocPopup({</HoverCardTrigger><HoverCardContent>{typeof description === "string" ? (- <div className="whitespace-break-spaces text-xs font-normal text-gray-800 sm:pl-0">+ <div className="whitespace-break-spaces text-xs font-normal text-primary sm:pl-0">{description}</div>) : (@@ -98,7 +98,7 @@ export function Popup({ triggerContent, description }: PopupProps) {</HoverCardTrigger><HoverCardContent>{typeof description === "string" ? (- <div className="whitespace-break-spaces text-xs font-normal text-gray-800 sm:pl-0">+ <div className="whitespace-break-spaces text-xs font-normal text-primary sm:pl-0">{description}</div>) : (diff --git a/web/src/components/layouts/header.tsx b/web/src/components/layouts/header.tsxindex 62e1584b3c..dd4cae6d6f 100644--- a/web/src/components/layouts/header.tsx+++ b/web/src/components/layouts/header.tsx@@ -49,10 +49,10 @@ export default function Header({<nav className="sm:hidden" aria-label="Back"><Linkhref={backHref}- className="flex items-center text-sm font-medium text-gray-500 hover:text-gray-700"+ className="flex items-center text-sm font-medium text-muted-foreground hover:text-primary"><ChevronLeftIcon- className="-ml-1 mr-1 h-5 w-5 flex-shrink-0 text-gray-400"+ className="-ml-1 mr-1 h-5 w-5 flex-shrink-0 text-muted-foreground"aria-hidden="true"/>Back@@ -67,19 +67,19 @@ export default function Header({<div className="flex items-center">{index !== 0 && (<ChevronRightIcon- className="mr-4 h-5 w-5 flex-shrink-0 text-gray-400"+ className="mr-4 h-5 w-5 flex-shrink-0 text-muted-foreground"aria-hidden="true"/>)}{href ? (<Linkhref={href}- className="text-sm font-medium text-gray-500 hover:text-gray-700"+ className="text-sm font-medium text-muted-foreground hover:text-primary">{name}</Link>) : (- <div className="text-sm font-medium text-gray-500">+ <div className="text-sm font-medium text-muted-foreground">{name}</div>)}@@ -94,11 +94,11 @@ export default function Header({<div className="flex items-center gap-3 md:gap-5"><div className="flex min-w-0 flex-row justify-center align-middle">{level === "h2" ? (- <h2 className="text-2xl font-bold leading-7 text-gray-900 sm:truncate sm:text-3xl sm:tracking-tight">+ <h2 className="text-2xl font-bold leading-7 sm:truncate sm:text-3xl sm:tracking-tight">{props.title}</h2>) : (- <h3 className="text-lg font-bold leading-7 text-gray-900 sm:truncate sm:text-xl sm:tracking-tight">+ <h3 className="text-lg font-bold leading-7 sm:truncate sm:text-xl sm:tracking-tight">{props.title}</h3>)}diff --git a/web/src/components/layouts/layout.tsx b/web/src/components/layouts/layout.tsxindex fdc742ce1a..92dfd0226d 100644--- a/web/src/components/layouts/layout.tsx+++ b/web/src/components/layouts/layout.tsx@@ -31,8 +31,14 @@ import { ChevronDownIcon } from "@heroicons/react/20/solid";import useLocalStorage from "@/src/components/useLocalStorage";import { ProjectNavigation } from "@/src/components/projectNavigation";import DOMPurify from "dompurify";+import { ThemeToggle } from "@/src/features/theming/ThemeToggle";const userNavigation = [+ {+ name: "Theme",+ onClick: () => {},+ content: <ThemeToggle />,+ },{name: "Sign out",onClick: () =>@@ -178,7 +184,7 @@ export default function Layout(props: PropsWithChildren) {router.pathname.startsWith("/public/");if (hideNavigation)return (- <main className="min-h-screen bg-gray-50 px-4 py-4 sm:px-6 lg:px-8">+ <main className="min-h-screen bg-primary-foreground px-4 py-4 sm:px-6 lg:px-8">{props.children}</main>);@@ -222,7 +228,7 @@ export default function Layout(props: PropsWithChildren) {leaveFrom="opacity-100"leaveTo="opacity-0">- <div className="fixed inset-0 bg-gray-900/80" />+ <div className="fixed inset-0 bg-primary/80" /></Transition.Child><div className="fixed inset-0 flex">@@ -253,14 +259,14 @@ export default function Layout(props: PropsWithChildren) {><span className="sr-only">Close sidebar</span><XMarkIcon- className="h-5 w-5 text-white"+ className="h-5 w-5 text-background"aria-hidden="true"/></button></div></Transition.Child>{/* Sidebar component, swap this element with another sidebar if you like */}- <div className="flex grow flex-col gap-y-5 overflow-y-auto bg-white px-6 py-4">+ <div className="flex grow flex-col gap-y-5 overflow-y-auto bg-background px-6 py-4"><LangfuseLogoversionsize="xl"@@ -273,7 +279,7 @@ export default function Layout(props: PropsWithChildren) {<MainNavigation nav={navigation} /></ul><div className="mb-2 flex flex-row place-content-between items-center">- <div className="text-xs font-semibold text-gray-400">+ <div className="text-xs font-semibold text-muted-foreground">Project</div><NewProjectButton size="xs" />@@ -293,7 +299,7 @@ export default function Layout(props: PropsWithChildren) {{/* Static sidebar for desktop */}<div className="hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-56 lg:flex-col">{/* Sidebar component, swap this element with another sidebar if you like */}- <div className="flex h-screen grow flex-col border-r border-gray-200 bg-white pt-7">+ <div className="flex h-screen grow flex-col border-r border-border bg-background pt-7"><LangfuseLogoversionsize="xl"@@ -312,16 +318,16 @@ export default function Layout(props: PropsWithChildren) {description="What do you think about this project? What can be improved?"type="feedback">- <li className="group -mx-2 my-1 flex cursor-pointer gap-x-3 rounded-md p-1.5 text-sm font-semibold text-gray-700 hover:bg-gray-50 hover:text-indigo-600">+ <li className="group -mx-2 my-1 flex cursor-pointer gap-x-3 rounded-md p-1.5 text-sm font-semibold text-primary hover:bg-primary-foreground hover:text-primary-accent"><MessageSquarePlus- className="h-5 w-5 shrink-0 text-gray-400 group-hover:text-indigo-600"+ className="h-5 w-5 shrink-0 text-muted-foreground group-hover:text-primary-accent"aria-hidden="true"/>Feedback</li></FeedbackButtonWrapper><div className="mb-2 flex flex-row place-content-between items-center">- <div className="text-xs font-semibold text-gray-400">+ <div className="text-xs font-semibold text-muted-foreground">Project</div><NewProjectButton size="xs" />@@ -334,7 +340,7 @@ export default function Layout(props: PropsWithChildren) {</nav><Menu as="div" className="relative">- <Menu.Button className="flex w-full items-center gap-x-2 overflow-hidden p-1.5 py-3 pl-6 pr-8 text-sm font-semibold text-gray-900 hover:bg-gray-50">+ <Menu.Button className="flex w-full items-center gap-x-2 overflow-hidden p-1.5 py-3 pl-6 pr-8 text-sm font-semibold text-primary hover:bg-primary-foreground"><span className="sr-only">Open user menu</span><Avatar className="h-7 w-7"><AvatarImage src={session.data?.user?.image ?? undefined} />@@ -348,12 +354,12 @@ export default function Layout(props: PropsWithChildren) {: null}</AvatarFallback></Avatar>- <span className="flex-shrink truncate text-sm font-semibold text-gray-900">+ <span className="flex-shrink truncate text-sm font-semibold text-primary">{session.data?.user?.name}</span><div className="flex-1" /><ChevronDownIcon- className="h-5 w-5 text-gray-400"+ className="h-5 w-5 text-muted-foreground"aria-hidden="true"/></Menu.Button>@@ -366,8 +372,8 @@ export default function Layout(props: PropsWithChildren) {leaveFrom="transform opacity-100 scale-100"leaveTo="transform opacity-0 scale-95">- <Menu.Items className="absolute -top-full right-0 z-10 mt-2.5 rounded-md bg-white py-2 shadow-lg ring-1 ring-gray-900/5 focus:outline-none">- <span className="mb-1 block border-b px-3 pb-2 text-sm text-gray-500">+ <Menu.Items className="absolute -top-full bottom-1 right-0 z-10 rounded-md bg-background py-2 shadow-lg ring-1 ring-primary/5 focus:outline-none">+ <span className="block border-b px-3 pb-2 text-sm leading-6 text-muted-foreground">{session.data?.user?.email}</span>{userNavigation.map((item) => (@@ -376,11 +382,12 @@ export default function Layout(props: PropsWithChildren) {<aonClick={() => void item.onClick()}className={cn(- active ? "bg-gray-50" : "",- "block cursor-pointer px-3 py-1 text-sm text-gray-900",+ active ? "bg-primary-foreground" : "",+ "flex cursor-pointer items-center justify-between px-2 py-0.5 text-sm leading-6 text-primary",)}>{item.name}+ {item.content}</a>)}</Menu.Item>@@ -391,10 +398,10 @@ export default function Layout(props: PropsWithChildren) {</div></div>- <div className="sticky top-0 z-40 flex items-center gap-x-6 bg-white px-4 py-4 shadow-sm sm:px-6 lg:hidden">+ <div className="sticky top-0 z-40 flex items-center gap-x-6 bg-background px-4 py-4 shadow-sm sm:px-6 lg:hidden"><buttontype="button"- className="-m-2.5 p-2.5 text-gray-700 lg:hidden"+ className="-m-2.5 p-2.5 text-primary lg:hidden"onClick={() => setSidebarOpen(true)}><span className="sr-only">Open sidebar</span>@@ -406,7 +413,7 @@ export default function Layout(props: PropsWithChildren) {showEnvLabel={session.data?.user?.email?.endsWith("@langfuse.com")}/><Menu as="div" className="relative">- <Menu.Button className="flex items-center gap-x-4 text-sm font-semibold text-gray-900">+ <Menu.Button className="flex items-center gap-x-4 text-sm font-semibold text-primary"><span className="sr-only">Open user menu</span><Avatar className="h-8 w-8"><AvatarImage src={session.data?.user?.image ?? undefined} />@@ -430,8 +437,8 @@ export default function Layout(props: PropsWithChildren) {leaveFrom="transform opacity-100 scale-100"leaveTo="transform opacity-0 scale-95">- <Menu.Items className="absolute right-0 z-10 mt-2.5 rounded-md bg-white py-2 shadow-lg ring-1 ring-gray-900/5 focus:outline-none">- <span className="mb-1 block border-b px-3 pb-2 text-sm text-gray-500">+ <Menu.Items className="absolute right-0 z-10 mt-2.5 rounded-md bg-background py-2 shadow-lg ring-1 ring-primary/5 focus:outline-none">+ <span className="mb-1 block border-b px-3 pb-2 text-sm leading-6 text-muted-foreground">{session.data?.user?.email}</span>{userNavigation.map((item) => (@@ -440,11 +447,12 @@ export default function Layout(props: PropsWithChildren) {<aonClick={() => void item.onClick()}className={cn(- active ? "bg-gray-50" : "",- "block cursor-pointer px-3 py-1 text-sm text-gray-900",+ active ? "bg-primary-foreground" : "",+ "flex cursor-pointer items-center justify-between px-2 py-1 text-sm text-primary",)}>{item.name}+ {item.content}</a>)}</Menu.Item>@@ -459,7 +467,7 @@ export default function Layout(props: PropsWithChildren) {(env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "STAGING" ||env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "EU") &&!session.data?.user?.email?.endsWith("@langfuse.com") ? (- <div className="flex w-full items-center border-b border-yellow-500 bg-yellow-100 px-4 py-2 lg:sticky lg:top-0 lg:z-40">+ <div className="flex w-full items-center border-b border-dark-yellow bg-light-yellow px-4 py-2 lg:sticky lg:top-0 lg:z-40"><div className="flex flex-1 flex-wrap gap-1"><div className="flex items-center gap-1"><Info className="h-4 w-4" />@@ -523,9 +531,9 @@ const MainNavigation: React.FC<{href={item.href}className={clsx(item.current- ? "bg-gray-50 text-indigo-600"- : "text-gray-700 hover:bg-gray-50 hover:text-indigo-600",- "group flex gap-x-3 rounded-md p-1.5 text-sm font-semibold",+ ? "bg-primary-foreground text-primary-accent"+ : "text-primary hover:bg-primary-foreground hover:text-primary-accent",+ "group flex gap-x-3 rounded-md p-2 text-sm font-semibold",)}onClick={onNavitemClick}target={item.newTab ? "_blank" : undefined}@@ -534,8 +542,8 @@ const MainNavigation: React.FC<{<item.iconclassName={clsx(item.current- ? "text-indigo-600"- : "text-gray-400 group-hover:text-indigo-600",+ ? "text-primary-accent"+ : "text-muted-foreground group-hover:text-primary-accent","h-5 w-5 shrink-0",)}aria-hidden="true"@@ -547,8 +555,8 @@ const MainNavigation: React.FC<{className={cn("-my-0.5 self-center whitespace-nowrap break-keep rounded-sm border px-1 py-0.5 text-xs",item.current- ? "border-indigo-600 text-indigo-600"- : "border-gray-200 text-gray-400 group-hover:border-indigo-600 group-hover:text-indigo-600",+ ? "border-primary-accent text-primary-accent"+ : "border-border text-muted-foreground group-hover:border-primary-accent group-hover:text-primary-accent",)}>{item.label}@@ -565,12 +573,12 @@ const MainNavigation: React.FC<{{({ open }) => (<><Disclosure.Button- className="group flex w-full items-center gap-x-3 rounded-md p-1.5 text-left text-sm font-semibold hover:bg-gray-50 hover:text-indigo-600"+ className="group flex w-full items-center gap-x-3 rounded-md p-2 text-left text-sm font-semibold hover:bg-primary-foreground hover:text-primary-accent"onClick={() => setIsOpen(!isOpen)}>{item.icon && (<item.icon- className="h-5 w-5 shrink-0 text-gray-400 group-hover:text-indigo-600"+ className="h-5 w-5 shrink-0 text-muted-foreground group-hover:text-primary-accent"aria-hidden="true"/>)}@@ -580,8 +588,8 @@ const MainNavigation: React.FC<{className={cn("-my-0.5 self-center whitespace-nowrap break-keep rounded-sm border px-1 py-0.5 text-xs",item.current- ? "border-indigo-600 text-indigo-600"- : "border-gray-200 text-gray-400 group-hover:border-indigo-600 group-hover:text-indigo-600",+ ? "border-primary-accent text-primary-accent"+ : "border-border text-muted-foreground group-hover:border-primary-accent group-hover:text-primary-accent",)}>{item.label}@@ -589,7 +597,9 @@ const MainNavigation: React.FC<{)}<ChevronRightIconclassName={clsx(- open ? "rotate-90 text-gray-500" : "text-gray-400",+ open+ ? "rotate-90 text-muted-foreground"+ : "text-muted-foreground","ml-auto h-5 w-5 shrink-0",)}aria-hidden="true"@@ -603,15 +613,15 @@ const MainNavigation: React.FC<{href={subItem.href ?? "#"}className={clsx(subItem.current- ? "bg-gray-50 text-indigo-600"- : "text-gray-700 hover:bg-gray-50 hover:text-indigo-600",+ ? "bg-primary-foreground text-primary-accent"+ : "text-primary hover:bg-primary-foreground hover:text-primary-accent","ml-0.5 flex w-full items-center gap-x-3 rounded-md p-1.5 pl-7 pr-2 text-sm",)}target={subItem.newTab ? "_blank" : undefined}>{subItem.name}{subItem.label && (- <span className="self-center whitespace-nowrap break-keep rounded-sm border border-gray-200 px-1 py-0.5 text-xs text-gray-400 group-hover:border-indigo-600 group-hover:text-indigo-600">+ <span className="self-center whitespace-nowrap break-keep rounded-sm border border-border px-1 py-0.5 text-xs text-muted-foreground group-hover:border-primary-accent group-hover:text-primary-accent">{subItem.label}</span>)}diff --git a/web/src/components/layouts/spinner.tsx b/web/src/components/layouts/spinner.tsxindex 636d8d0bfd..f330bff2b6 100644--- a/web/src/components/layouts/spinner.tsx+++ b/web/src/components/layouts/spinner.tsx@@ -5,7 +5,7 @@ export function Spinner(props: { message: string }) {<div className="flex min-h-full flex-1 flex-col justify-center py-12 sm:px-6 lg:px-8"><div className="sm:mx-auto sm:w-full sm:max-w-md"><LangfuseIcon className="mx-auto motion-safe:animate-spin" size={42} />- <h2 className="mt-5 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900">+ <h2 className="mt-5 text-center text-2xl font-bold leading-9 tracking-tight text-primary">{props.message} ...</h2></div>diff --git a/web/src/components/layouts/status-badge.tsx b/web/src/components/layouts/status-badge.tsxindex f65c782ecd..8c3e2e6125 100644--- a/web/src/components/layouts/status-badge.tsx+++ b/web/src/components/layouts/status-badge.tsx@@ -11,22 +11,22 @@ export type Status =(typeof statusCategories)[keyof typeof statusCategories][number];export const StatusBadge = (props: { className?: string; type: Status }) => {- let badgeColor = "bg-gray-100 text-gray-800";- let dotColor = "bg-gray-500";- let dotPingColor = "bg-gray-600";+ let badgeColor = "bg-muted-gray text-primary";+ let dotColor = "bg-muted-foreground";+ let dotPingColor = "bg-muted-foreground";let showDot = true;if (statusCategories.active.includes(props.type)) {- badgeColor = "bg-green-100 text-green-600";- dotColor = "animate-ping bg-green-500";- dotPingColor = "bg-green-600";+ badgeColor = "bg-light-green text-dark-green";+ dotColor = "animate-ping bg-dark-green";+ dotPingColor = "bg-dark-green";} else if (statusCategories.error.includes(props.type)) {- badgeColor = "bg-red-100 text-red-600";- dotColor = "bg-red-500";- dotPingColor = "bg-red-600";+ badgeColor = "bg-light-red text-dark-red";+ dotColor = "animate-ping bg-dark-red";+ dotPingColor = "bg-dark-red";showDot = false;} else if (statusCategories.completed.includes(props.type)) {- badgeColor = "bg-green-100 text-green-600";+ badgeColor = "bg-light-green text-dark-green";showDot = false;}diff --git a/web/src/components/level-colors.tsx b/web/src/components/level-colors.tsxindex 9109600396..58e825dbae 100644--- a/web/src/components/level-colors.tsx+++ b/web/src/components/level-colors.tsx@@ -1,6 +1,6 @@export const LevelColors = {DEFAULT: { text: "", bg: "" },- DEBUG: { text: "text-gray-500", bg: "bg-gray-50" },- WARNING: { text: "text-yellow-800", bg: "bg-yellow-50" },- ERROR: { text: "text-red-800", bg: "bg-red-50" },+ DEBUG: { text: "text-muted-foreground", bg: "bg-primary-foreground" },+ WARNING: { text: "text-dark-yellow", bg: "bg-light-yellow" },+ ERROR: { text: "text-dark-red", bg: "bg-light-red" },};diff --git a/web/src/components/projectNavigation.tsx b/web/src/components/projectNavigation.tsxindex 6c1349caa8..156e3a28d8 100644--- a/web/src/components/projectNavigation.tsx+++ b/web/src/components/projectNavigation.tsx@@ -32,9 +32,9 @@ export const ProjectNavigation: React.FC<ProjectNavigationProps> = ({router.push(`/project/${value}`);}}>- <SelectTrigger className="h-8 text-gray-700 ring-transparent focus:ring-0 focus:ring-offset-0">+ <SelectTrigger className="h-8 text-primary ring-transparent focus:ring-0 focus:ring-offset-0"><SelectValue- className="text-sm font-semibold text-gray-700"+ className="text-sm font-semibold text-primary"placeholder={currentProjectId}/></SelectTrigger>@@ -46,8 +46,8 @@ export const ProjectNavigation: React.FC<ProjectNavigationProps> = ({className={cn("truncate",currentProjectId === project.id- ? "border-gray-700 text-gray-700"- : "text-gray-400",+ ? "border-primary text-primary"+ : "text-muted-foreground",)}>{project.name}@@ -57,8 +57,8 @@ export const ProjectNavigation: React.FC<ProjectNavigationProps> = ({className={cn("self-center whitespace-nowrap break-keep rounded-sm border px-1 py-0.5 text-xs",currentProjectId === project.id- ? "border-gray-700 text-gray-700"- : "border-gray-200 text-gray-400 group-hover:border-gray-700 group-hover:text-gray-700",+ ? "border-primary text-primary"+ : "border-border text-muted-foreground group-hover:border-primary group-hover:text-primary",)}>view-onlydiff --git a/web/src/components/publish-object-switch.tsx b/web/src/components/publish-object-switch.tsxindex dc141ccdd4..0b5633c03a 100644--- a/web/src/components/publish-object-switch.tsx+++ b/web/src/components/publish-object-switch.tsx@@ -93,7 +93,7 @@ const Base = (props: {"Loading..") : props.isPublic ? (<div- className="flex cursor-pointer items-center gap-1 text-green-800"+ className="text-dark-green flex cursor-pointer items-center gap-1"onClick={() => copyUrl()}>{isCopied ? "Link copied ..." : "Public"}diff --git a/web/src/components/session/index.tsx b/web/src/components/session/index.tsxindex d65aca011d..4fee8394ef 100644--- a/web/src/components/session/index.tsx+++ b/web/src/components/session/index.tsx@@ -171,7 +171,7 @@ const TraceCardList = ({})).map(({ virtualItem, trace }) => (<Card- className="border-border-gray-150 group grid w-full gap-3 overflow-hidden p-2 shadow-none hover:border-gray-300 md:grid-cols-3"+ className="group grid w-full gap-3 overflow-hidden border-border p-2 shadow-none hover:border-ring md:grid-cols-3"key={virtualItem.key}data-index={virtualItem.index}style={{@@ -193,10 +193,12 @@ const TraceCardList = ({>Trace: {trace.name} ({trace.id}) ↗</Link>- <div className="text-xs text-gray-500">+ <div className="text-xs text-muted-foreground">{trace.timestamp.toLocaleString()}</div>- <div className="mb-1 mt-2 text-xs text-gray-500">Scores</div>+ <div className="mb-1 mt-2 text-xs text-muted-foreground">+ Scores+ </div><div className="flex flex-wrap content-start items-start gap-1"><GroupedScoreBadges scores={trace.scores} /></div>@@ -244,7 +246,7 @@ const SessionIO = ({ traceId }: { traceId: string }) => {hideIfNull/>) : (- <div className="p-2 text-xs text-gray-500">+ <div className="p-2 text-xs text-muted-foreground">This trace has no input or output.</div>)}diff --git a/web/src/components/star-toggle.tsx b/web/src/components/star-toggle.tsxindex 03969488f3..d813e0ac55 100644--- a/web/src/components/star-toggle.tsx+++ b/web/src/components/star-toggle.tsx@@ -32,7 +32,7 @@ export function StarToggle({<StarIconclassName={cn("h-4 w-4",- value ? "fill-current text-yellow-500" : "text-gray-500",+ value ? "fill-current text-yellow-500" : "text-muted-foreground",)}/></Button>diff --git a/web/src/components/stats-cards.tsx b/web/src/components/stats-cards.tsxindex dc6ee17ec5..5bd1362dbb 100644--- a/web/src/components/stats-cards.tsx+++ b/web/src/components/stats-cards.tsx@@ -6,19 +6,19 @@ interface Statistic {export default function StatsCards({ stats }: { stats: Statistic[] }) {return (<div>- <h3 className="text-base font-semibold leading-6 text-gray-900">+ <h3 className="text-base font-semibold leading-6 text-primary">Model configuration</h3><dl className="mt-5 grid grid-cols-1 gap-5 sm:grid-cols-4">{stats.map((item) => (<divkey={item.name}- className="overflow-hidden rounded-lg bg-white px-4 py-5 shadow sm:p-6"+ className="overflow-hidden rounded-lg bg-background px-4 py-5 shadow sm:p-6">- <dt className="truncate text-sm font-medium text-gray-500">+ <dt className="truncate text-sm font-medium text-muted-foreground">{item.name}</dt>- <dd className="mt-1 text-3xl font-semibold tracking-tight text-gray-900">+ <dd className="mt-1 text-3xl font-semibold tracking-tight text-primary">{item.stat}</dd></div>diff --git a/web/src/components/table/data-table-column-visibility-filter.tsx b/web/src/components/table/data-table-column-visibility-filter.tsxindex 6ccc508fb2..e760c8b105 100644--- a/web/src/components/table/data-table-column-visibility-filter.tsx+++ b/web/src/components/table/data-table-column-visibility-filter.tsx@@ -83,7 +83,7 @@ export function DataTableColumnVisibilityFilter<TData, TValue>({><Button variant="outline" title="Show/hide columns"><Columns className="mr-2 h-4 w-4" />- <span className="text-xs text-gray-500">{`(${count}/${total})`}</span>+ <span className="text-xs text-muted-foreground">{`(${count}/${total})`}</span><ChevronDown className="ml-2 h-4 w-4" /></Button></DropdownMenuTrigger>diff --git a/web/src/components/table/data-table-row-height-switch.tsx b/web/src/components/table/data-table-row-height-switch.tsxindex 261c2b6851..a8c9e337f6 100644--- a/web/src/components/table/data-table-row-height-switch.tsx+++ b/web/src/components/table/data-table-row-height-switch.tsx@@ -55,7 +55,7 @@ export const DataTableRowHeightSwitch = ({<TabsTriggerkey={id}value={id}- className="px-2 shadow-none data-[state=active]:bg-slate-200 data-[state=active]:ring-border"+ className="px-2 shadow-none data-[state=active]:bg-input data-[state=active]:ring-border"><span role="img" aria-label={`${label} size`}>{icon}diff --git a/web/src/components/table/data-table.tsx b/web/src/components/table/data-table.tsxindex 6eea1c4d00..aefbb2c440 100644--- a/web/src/components/table/data-table.tsx+++ b/web/src/components/table/data-table.tsx@@ -243,7 +243,7 @@ export function DataTable<TData extends object, TValue>({<div className="grow"></div></div>{pagination !== undefined ? (- <div className="sticky bottom-0 z-10 flex w-full justify-end bg-white font-medium">+ <div className="bg:background sticky bottom-0 z-10 flex w-full justify-end font-medium"><DataTablePaginationtable={table}paginationOptions={pagination.options}diff --git a/web/src/components/table/table-link.tsx b/web/src/components/table/table-link.tsxindex fd29904b6d..3f233df63e 100644--- a/web/src/components/table/table-link.tsx+++ b/web/src/components/table/table-link.tsx@@ -19,7 +19,8 @@ export default function TableLink({: value;return (<Link- className="inline-block rounded bg-indigo-50 px-2 py-1 text-xs font-semibold text-blue-600 shadow-sm hover:bg-indigo-100"+ className="inline-block rounded bg-primary-accent/20 px-2+ py-1 text-xs font-semibold text-accent-dark-blue shadow-sm hover:bg-accent-light-blue/45"href={path}title={value}>diff --git a/web/src/components/table/use-cases/generations.tsx b/web/src/components/table/use-cases/generations.tsxindex 0c3c0fc648..f7fe95a91f 100644--- a/web/src/components/table/use-cases/generations.tsx+++ b/web/src/components/table/use-cases/generations.tsx@@ -750,7 +750,7 @@ const GenerationsIOCell = ({data={io === "output" ? observation.data?.output : observation.data?.input}- className={cn(io === "output" && "bg-green-50")}+ className={cn(io === "output" && "bg-accent-light-green")}singleLine={singleLine}/>);diff --git a/web/src/components/table/use-cases/models.tsx b/web/src/components/table/use-cases/models.tsxindex 490b1d733c..e7bf53714f 100644--- a/web/src/components/table/use-cases/models.tsx+++ b/web/src/components/table/use-cases/models.tsx@@ -111,7 +111,7 @@ export default function ModelTable({ projectId }: { projectId: string }) {return (<>Input Price{" "}- <span className="text-xs text-gray-400">/ 1k units</span>+ <span className="text-xs text-muted-foreground">/ 1k units</span></>);},@@ -140,7 +140,7 @@ export default function ModelTable({ projectId }: { projectId: string }) {return (<>Output Price{" "}- <span className="text-xs text-gray-400">/ 1k units</span>+ <span className="text-xs text-muted-foreground">/ 1k units</span></>);},@@ -163,7 +163,7 @@ export default function ModelTable({ projectId }: { projectId: string }) {return (<>Total Price{" "}- <span className="text-xs text-gray-400">/ 1k units</span>+ <span className="text-xs text-muted-foreground">/ 1k units</span></>);},diff --git a/web/src/components/table/use-cases/traces.tsx b/web/src/components/table/use-cases/traces.tsxindex f0eb48c3e6..4a92682bba 100644--- a/web/src/components/table/use-cases/traces.tsx+++ b/web/src/components/table/use-cases/traces.tsx@@ -690,7 +690,7 @@ const TracesIOCell = ({<IOTableCellisLoading={trace.isLoading}data={io === "output" ? trace.data?.output : trace.data?.input}- className={cn(io === "output" && "bg-green-50")}+ className={cn(io === "output" && "bg-accent-light-green")}singleLine={singleLine}/>);diff --git a/web/src/components/trace/IOPreview.tsx b/web/src/components/trace/IOPreview.tsxindex 90e2d25a23..3a793059d0 100644--- a/web/src/components/trace/IOPreview.tsx+++ b/web/src/components/trace/IOPreview.tsx@@ -112,7 +112,7 @@ export const IOPreview: React.FC<{title="Output"json={outputClean}isLoading={isLoading}- className="flex-1 bg-green-50"+ className="flex-1 border-accent-dark-green bg-accent-light-green"/>) : null}</>@@ -187,10 +187,11 @@ export const OpenAiMessageView: React.FC<{title={message.name ?? message.role}json={message.content}className={cn(- "bg-gray-100",- message.role === "system" && "bg-gray-100",- message.role === "assistant" && "bg-green-50",- message.role === "user" && "bg-white",+ "bg-muted",+ message.role === "system" && "bg-primary-foreground",+ message.role === "assistant" &&+ "border-accent-dark-green bg-accent-light-green",+ message.role === "user" && "bg-background",!!message.json && "rounded-b-none",)}/>@@ -202,10 +203,11 @@ export const OpenAiMessageView: React.FC<{}json={message.json}className={cn(- "bg-gray-100",- message.role === "system" && "bg-gray-100",- message.role === "assistant" && "bg-green-50",- message.role === "user" && "bg-white",+ "bg-muted",+ message.role === "system" && "bg-primary-foreground",+ message.role === "assistant" &&+ "border-accent-dark-green bg-accent-light-green",+ message.role === "user" && "bg-foreground",!!message.content && "rounded-t-none border-t-0",)}/>diff --git a/web/src/components/trace/ObservationPreview.tsx b/web/src/components/trace/ObservationPreview.tsxindex 47c2cbf49f..dd426a2e94 100644--- a/web/src/components/trace/ObservationPreview.tsx+++ b/web/src/components/trace/ObservationPreview.tsx@@ -52,7 +52,7 @@ export const ObservationPreview = (props: {<CardHeader className="flex flex-row flex-wrap justify-between gap-2"><div className="flex flex-col gap-1"><CardTitle>- <span className="mr-2 rounded-sm bg-gray-200 p-1 text-xs">+ <span className="mr-2 rounded-sm bg-input p-1 text-xs">{preloadedObservation.type}</span><span>{preloadedObservation.name}</span>diff --git a/web/src/components/trace/ObservationTree.tsx b/web/src/components/trace/ObservationTree.tsxindex f39ddef290..6d1ad4d0d6 100644--- a/web/src/components/trace/ObservationTree.tsx+++ b/web/src/components/trace/ObservationTree.tsx@@ -68,13 +68,13 @@ const ObservationTreeTraceNode = (props: {"group mb-0.5 flex cursor-pointer flex-col gap-1 rounded-sm p-1",props.currentObservationId === undefined ||props.currentObservationId === ""- ? "bg-gray-100"- : "hover:bg-gray-50",+ ? "bg-muted"+ : "hover:bg-primary-foreground",)}onClick={() => props.setCurrentObservationId(undefined)}><div className="flex gap-2">- <span className={cn("rounded-sm bg-gray-200 p-1 text-xs")}>TRACE</span>+ <span className={cn("rounded-sm bg-input p-1 text-xs")}>TRACE</span><span className="flex-1 break-all text-sm">{props.trace.name}</span><ButtononClick={(ev) => (ev.stopPropagation(), props.expandAll())}@@ -96,7 +96,7 @@ const ObservationTreeTraceNode = (props: {{props.showMetrics && props.trace.latency ? (<div className="flex gap-2">- <span className="text-xs text-gray-500">+ <span className="text-xs text-muted-foreground">{formatIntervalSeconds(props.trace.latency)}</span></div>@@ -141,8 +141,8 @@ const ObservationTreeNode = (props: {className={cn("group my-0.5 flex flex-1 cursor-pointer flex-col gap-1 rounded-sm p-1",props.currentObservationId === observation.id- ? "bg-gray-100"- : "hover:bg-gray-50",+ ? "bg-muted"+ : "hover:bg-primary-foreground",)}onClick={() => props.setCurrentObservationId(observation.id)}>@@ -188,7 +188,7 @@ const ObservationTreeNode = (props: {observation.endTime) && (<div className="flex gap-2">{observation.endTime ? (- <span className="text-xs text-gray-500">+ <span className="text-xs text-muted-foreground">{formatIntervalSeconds((observation.endTime.getTime() -observation.startTime.getTime()) /@@ -199,7 +199,7 @@ const ObservationTreeNode = (props: {{observation.promptTokens ||observation.completionTokens ||observation.totalTokens ? (- <span className="text-xs text-gray-500">+ <span className="text-xs text-muted-foreground">{observation.promptTokens} →{" "}{observation.completionTokens} (∑{" "}{observation.totalTokens})@@ -258,9 +258,9 @@ const ColorCodedObservationType = (props: {observationType: $Enums.ObservationType;}) => {const colors: Record<$Enums.ObservationType, string> = {- [$Enums.ObservationType.SPAN]: "bg-blue-100",- [$Enums.ObservationType.GENERATION]: "bg-orange-100",- [$Enums.ObservationType.EVENT]: "bg-green-100",+ [$Enums.ObservationType.SPAN]: "bg-muted-blue",+ [$Enums.ObservationType.GENERATION]: "bg-muted-orange",+ [$Enums.ObservationType.EVENT]: "bg-muted-green",};return (diff --git a/web/src/components/trace/TracePreview.tsx b/web/src/components/trace/TracePreview.tsxindex 4d73b1bc27..7842147705 100644--- a/web/src/components/trace/TracePreview.tsx+++ b/web/src/components/trace/TracePreview.tsx@@ -38,9 +38,7 @@ export const TracePreview = ({<CardHeader className="flex flex-row flex-wrap justify-between gap-2"><div className="flex flex-col gap-1"><CardTitle>- <span className="mr-2 rounded-sm bg-gray-200 p-1 text-xs">- TRACE- </span>+ <span className="mr-2 rounded-sm bg-input p-1 text-xs">TRACE</span><span>{trace.name}</span></CardTitle><CardDescription>{trace.timestamp.toLocaleString()}</CardDescription>diff --git a/web/src/components/ui/CodeJsonViewer.tsx b/web/src/components/ui/CodeJsonViewer.tsxindex 44aa4e9eed..a1cdda3466 100644--- a/web/src/components/ui/CodeJsonViewer.tsx+++ b/web/src/components/ui/CodeJsonViewer.tsx@@ -3,8 +3,10 @@ import { Button } from "@/src/components/ui/button";import { Check, ChevronsDownUp, ChevronsUpDown, Copy } from "lucide-react";import { cn } from "@/src/utils/tailwind";import { default as React18JsonView } from "react18-json-view";+import "react18-json-view/src/dark.css";import { deepParseJson } from "@/src/utils/json";import { Skeleton } from "@/src/components/ui/skeleton";+import { useTheme } from "next-themes";export function JSONView(props: {json?: unknown;@@ -15,11 +17,18 @@ export function JSONView(props: {}) {// some users ingest stringified json nested in json, parse itconst parsedJson = deepParseJson(props.json);-+ const { theme } = useTheme();return (<div className={cn("rounded-md border", props.className)}>{props.title ? (- <div className="border-b px-3 py-1 text-xs font-medium">+ <div+ className={cn(+ props.title === "assistant" || props.title === "Output"+ ? "border-accent-dark-green"+ : "",+ "border-b px-3 py-1 text-xs font-medium",+ )}+ >{props.title}</div>) : undefined}@@ -35,6 +44,7 @@ export function JSONView(props: {<React18JsonViewsrc={parsedJson}theme="github"+ dark={theme === "dark"}collapseObjectsAfterLength={20}collapseStringsAfterLength={500}displaySize={"collapsed"}diff --git a/web/src/components/ui/description-lists.tsx b/web/src/components/ui/description-lists.tsxdeleted file mode 100644index 733a120a52..0000000000--- a/web/src/components/ui/description-lists.tsx+++ /dev/null@@ -1,50 +0,0 @@-// https://tailwindui.com/components/application-ui/data-display/description-lists--import clsx from "clsx";-import { type ReactNode } from "react";--export default function DescriptionList(props: {- header?: {- title: string;- description: string;- };- items: { label: string; value: string | ReactNode }[];- descriptionColumns?: number;- valueColumns?: number;-}) {- const { descriptionColumns = 1, valueColumns = 2 } = props;- const totalColumns = descriptionColumns + valueColumns;- return (- <div>- {props.header ? (- <div className="px-4 sm:px-0">- <h3 className="text-base font-semibold leading-7 text-gray-900">- {props.header.title}- </h3>- <p className="mt-1 max-w-2xl text-sm leading-6 text-gray-500">- {props.header.description}- </p>- </div>- ) : null}- <div className={clsx(props.header && "mt-6 border-t border-gray-100")}>- <dl className="divide-y divide-gray-100">- {props.items.map((item) => (- <div- key={item.label}- className={`sm:grid-cols-${totalColumns} px-4 py-3 sm:grid sm:gap-4 sm:px-0`}- >- <dt className="text-sm font-medium leading-6 text-gray-900">- {item.label}- </dt>- <dd- className={`mt-1 text-sm leading-6 text-gray-700 sm:col-span-${valueColumns} sm:mt-0`}- >- {item.value}- </dd>- </div>- ))}- </dl>- </div>- </div>- );-}diff --git a/web/src/components/ui/dialog.tsx b/web/src/components/ui/dialog.tsxindex 9cf737cfae..e05ff4066b 100644--- a/web/src/components/ui/dialog.tsx+++ b/web/src/components/ui/dialog.tsx@@ -21,7 +21,7 @@ const DialogOverlay = React.forwardRef<<DialogPrimitive.Overlayref={ref}className={cn(- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",+ "fixed inset-0 z-50 bg-foreground/60 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",className,)}{...props}diff --git a/web/src/components/ui/input.tsx b/web/src/components/ui/input.tsxindex 16cbee2d7e..cd564062e4 100644--- a/web/src/components/ui/input.tsx+++ b/web/src/components/ui/input.tsx@@ -11,7 +11,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(<inputtype={type}className={cn(- "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",+ "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50",className,)}ref={ref}diff --git a/web/src/components/ui/password-input.tsx b/web/src/components/ui/password-input.tsxindex 3af2f6e31e..5025d375fb 100644--- a/web/src/components/ui/password-input.tsx+++ b/web/src/components/ui/password-input.tsx@@ -27,9 +27,9 @@ const PasswordInput = React.forwardRef<HTMLInputElement, PasswordInputProps>(title={showPassword ? "Hide password" : "Show password"}>{showPassword ? (- <EyeOff className="h-5 w-5 text-gray-400" />+ <EyeOff className="h-5 w-5 text-muted-foreground" />) : (- <Eye className="h-5 w-5 text-gray-400" />+ <Eye className="h-5 w-5 text-muted-foreground" />)}</button></div>diff --git a/web/src/components/ui/switch.tsx b/web/src/components/ui/switch.tsxindex d2dace06ce..6acde175b4 100644--- a/web/src/components/ui/switch.tsx+++ b/web/src/components/ui/switch.tsx@@ -11,7 +11,7 @@ const Switch = React.forwardRef<>(({ className, ...props }, ref) => (<SwitchPrimitives.RootclassName={cn(- "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",+ "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-muted-foreground",className,)}{...props}diff --git a/web/src/components/ui/table.tsx b/web/src/components/ui/table.tsxindex 2a79992858..250b066925 100644--- a/web/src/components/ui/table.tsx+++ b/web/src/components/ui/table.tsx@@ -74,7 +74,7 @@ const TableHead = React.forwardRef<<thref={ref}className={cn(- "sticky top-0 z-10 border-b bg-white px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",+ "sticky top-0 z-10 border-b bg-background px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",className,)}{...props}diff --git a/web/src/ee/features/evals/components/eval-config-form.tsx b/web/src/ee/features/evals/components/eval-config-form.tsxindex ff36cbd969..8fca17f2f2 100644--- a/web/src/ee/features/evals/components/eval-config-form.tsx+++ b/web/src/ee/features/evals/components/eval-config-form.tsx@@ -318,7 +318,7 @@ export const InnerEvalConfigForm = (props: {<JSONViewtitle={"Eval Template"}json={props.evalTemplate.prompt ?? null}- className={"min-h-48 bg-gray-100 lg:w-1/2"}+ className={"min-h-48 bg-muted lg:w-1/2"}/><div className=" flex flex-col gap-2 lg:w-1/3">{fields.map((mappingField, index) => (diff --git a/web/src/ee/features/evals/components/template-form.tsx b/web/src/ee/features/evals/components/template-form.tsxindex 9a4b0f3d72..a58afcd18a 100644--- a/web/src/ee/features/evals/components/template-form.tsx+++ b/web/src/ee/features/evals/components/template-form.tsx@@ -73,9 +73,9 @@ export const EvalTemplateForm = (props: {value={langfuseTemplate ?? ""}onValueChange={updateLangfuseTemplate}>- <SelectTrigger className="text-gray-700 ring-transparent focus:ring-0 focus:ring-offset-0">+ <SelectTrigger className="text-primary ring-transparent focus:ring-0 focus:ring-offset-0"><SelectValue- className="text-sm font-semibold text-gray-700"+ className="text-sm font-semibold text-primary"placeholder={"Select a Langfuse managed template"}/></SelectTrigger>@@ -512,7 +512,7 @@ export const LLMApiKeyComponent = (p: {<Label>API key</Label><div>{getApiKeyForModel(p.modelParams.model.value) ? (- <span className="mr-2 rounded-sm bg-gray-200 p-1 text-xs">+ <span className="mr-2 rounded-sm bg-input p-1 text-xs">{getApiKeyForModel(p.modelParams.model.value)?.displaySecretKey}</span>) : undefined}diff --git a/web/src/ee/features/playground/page/components/GenerationOutput.tsx b/web/src/ee/features/playground/page/components/GenerationOutput.tsxindex 98232843d8..4f1131a1db 100644--- a/web/src/ee/features/playground/page/components/GenerationOutput.tsx+++ b/web/src/ee/features/playground/page/components/GenerationOutput.tsx@@ -67,7 +67,7 @@ export const GenerationOutput = () => {return (<div className="relative h-full overflow-auto"><div- className="h-full overflow-auto rounded-lg bg-gray-100 p-4"+ className="h-full overflow-auto rounded-lg bg-muted p-4"ref={scrollAreaRef}><div className="mb-4 flex w-full items-center">diff --git a/web/src/ee/features/playground/page/components/Variables.tsx b/web/src/ee/features/playground/page/components/Variables.tsxindex d6e6658c56..d489072eec 100644--- a/web/src/ee/features/playground/page/components/Variables.tsx+++ b/web/src/ee/features/playground/page/components/Variables.tsx@@ -31,7 +31,7 @@ export const Variables = () => {key={promptVariable.name}/>{index !== promptVariables.length - 1 ? (- <Divider className="my-2 text-gray-400" />+ <Divider className="my-2 text-muted-foreground" />) : null}</>);diff --git a/web/src/features/auth/components/AuthCloudPrivacyNotice.tsx b/web/src/features/auth/components/AuthCloudPrivacyNotice.tsxindex fcb2d5b763..93652a9b13 100644--- a/web/src/features/auth/components/AuthCloudPrivacyNotice.tsx+++ b/web/src/features/auth/components/AuthCloudPrivacyNotice.tsx@@ -2,7 +2,7 @@ import { env } from "@/src/env.mjs";export const CloudPrivacyNotice = ({ action }: { action: string }) =>env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION !== undefined ? (- <div className="mx-auto mt-10 max-w-lg text-center text-xs text-gray-500">+ <div className="mx-auto mt-10 max-w-lg text-center text-xs text-muted-foreground">By {action} you are agreeing to our{" "}<ahref="https://langfuse.com/terms"diff --git a/web/src/features/auth/components/AuthCloudRegionSwitch.tsx b/web/src/features/auth/components/AuthCloudRegionSwitch.tsxindex a975c217a0..be5dffd06e 100644--- a/web/src/features/auth/components/AuthCloudRegionSwitch.tsx+++ b/web/src/features/auth/components/AuthCloudRegionSwitch.tsx@@ -67,7 +67,7 @@ export function CloudRegionSwitch({<DataRegionInfo /></span>{isSignUpPage && env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "US" ? (- <p className="text-xs text-gray-500">+ <p className="text-xs text-muted-foreground">Demo project is only available in the EU region.</p>) : null}@@ -113,7 +113,7 @@ const DataRegionInfo = () => (<DialogTrigger asChild><ahref="#"- className="ml-1 text-xs text-indigo-600 hover:text-indigo-500"+ className="hover:text-hover-primary-accent ml-1 text-xs text-primary-accent"title="What is this?">(what is this?)@@ -144,7 +144,7 @@ const DataRegionInfo = () => (href="https://langfuse.com/docs/data-security-privacy"target="_blank"rel="noopener noreferrer"- className="text-blue-500 underline"+ className="text-primary-accent underline">langfuse.com/security</a>diff --git a/web/src/features/dashboard/components/BaseTimeSeriesChart.tsx b/web/src/features/dashboard/components/BaseTimeSeriesChart.tsxindex 608a7776aa..f8eac0e1ea 100644--- a/web/src/features/dashboard/components/BaseTimeSeriesChart.tsx+++ b/web/src/features/dashboard/components/BaseTimeSeriesChart.tsx@@ -1,4 +1,5 @@import { type DateTimeAggregationOption } from "@/src/features/dashboard/lib/timeseries-aggregation";+import { getColorsForCategories } from "@/src/features/dashboard/utils/getColorsForCategories";import { compactNumberFormatter } from "@/src/utils/numbers";import { cn } from "@/src/utils/tailwind";import { AreaChart, LineChart } from "@tremor/react";@@ -57,6 +58,8 @@ export function BaseTimeSeriesChart(props: {};const ChartComponent = props.chartType === "area" ? AreaChart : LineChart;+ const colors = getColorsForCategories(Array.from(labels));+return (<ChartComponentclassName={cn("mt-4", props.className)}@@ -64,10 +67,8 @@ export function BaseTimeSeriesChart(props: {index="timestamp"categories={Array.from(labels)}connectNulls={props.connectNulls}- colors={["indigo", "cyan", "zinc", "purple"]}- valueFormatter={- props.valueFormatter ? props.valueFormatter : compactNumberFormatter- }+ colors={colors}+ valueFormatter={props.valueFormatter ?? compactNumberFormatter}noDataText="No data"showLegend={props.showLegend}showAnimation={true}diff --git a/web/src/features/dashboard/components/NoData.tsx b/web/src/features/dashboard/components/NoData.tsxindex cdecb6c65d..1ceb3d950d 100644--- a/web/src/features/dashboard/components/NoData.tsx+++ b/web/src/features/dashboard/components/NoData.tsx@@ -17,7 +17,7 @@ export const NoData = ({justifyContent="center"className={cn(className,- "min-h-[9rem] w-full flex-1 rounded-tremor-default border border-dashed border-tremor-border",+ "min-h-[9rem] w-full flex-1 rounded-tremor-default border border-dashed",)}><Text className="text-tremor-content">{noDataText}</Text>diff --git a/web/src/features/dashboard/components/TabsComponent.tsx b/web/src/features/dashboard/components/TabsComponent.tsxindex 6f275c004e..b5b66c8aa5 100644--- a/web/src/features/dashboard/components/TabsComponent.tsx+++ b/web/src/features/dashboard/components/TabsComponent.tsx@@ -21,7 +21,7 @@ export const TabComponent = ({ tabs }: TabComponentProps) => {<selectid="tabs"name="tabs"- className="block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm"+ className="focus:border-primary-accent focus:ring-primary-accent block w-full rounded-md border-border py-2 pl-3 pr-10 text-base focus:outline-none sm:text-sm"defaultValue={0}onChange={(e) => setSelectedIndex(Number(e.target.selectedIndex))}>@@ -31,7 +31,7 @@ export const TabComponent = ({ tabs }: TabComponentProps) => {</select></div><div className="hidden sm:block">- <div className="border-b border-gray-200">+ <div className="border-b border-border"><navclassName="-mb-px flex space-x-2 md:space-x-4 lg:space-x-6 xl:space-x-8"aria-label="Tabs"@@ -41,8 +41,8 @@ export const TabComponent = ({ tabs }: TabComponentProps) => {key={tab.tabTitle}className={cn(index === selectedIndex- ? "border-indigo-500 text-indigo-600"- : "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",+ ? "border-primary-accent text-primary-accent"+ : "border-transparent text-muted-foreground hover:border-border hover:text-primary","cursor-pointer whitespace-nowrap border-b-2 px-1 py-3 text-sm font-medium",)}aria-current={index === selectedIndex ? "page" : undefined}diff --git a/web/src/features/dashboard/components/cards/DashboardTable.tsx b/web/src/features/dashboard/components/cards/DashboardTable.tsxindex 369cb8664a..adced67707 100644--- a/web/src/features/dashboard/components/cards/DashboardTable.tsx+++ b/web/src/features/dashboard/components/cards/DashboardTable.tsx@@ -32,14 +32,14 @@ export const DashboardTable = ({<div className="mt-4"><div className="overflow-x-auto"><div className="inline-block min-w-full align-middle">- <table className="min-w-full divide-y divide-gray-300 animate-in animate-out">+ <table className="min-w-full divide-y divide-border animate-in animate-out"><thead><tr>{headers.map((header, i) => (<thkey={i}scope="col"- className="whitespace-nowrap py-3.5 pl-4 pr-3 text-left text-xs font-semibold text-gray-900 sm:pl-0"+ className="whitespace-nowrap py-3.5 pl-4 pr-3 text-left text-xs font-semibold text-primary sm:pl-0">{header}</th>@@ -47,7 +47,7 @@ export const DashboardTable = ({</tr></thead>- <tbody className="divide-y divide-gray-200 bg-white">+ <tbody className="divide-y divide-accent bg-background">{rows.slice(0,@@ -62,7 +62,7 @@ export const DashboardTable = ({{row.map((cell, j) => (<tdkey={j}- className="whitespace-nowrap py-2 pl-3 pr-2 text-xs text-gray-500 sm:pl-0"+ className="whitespace-nowrap py-2 pl-3 pr-2 text-xs text-muted-foreground sm:pl-0">{cell}</td>diff --git a/web/src/features/dashboard/utils/getColorsForCategories.tsx b/web/src/features/dashboard/utils/getColorsForCategories.tsxnew file mode 100644index 0000000000..c38af39241--- /dev/null+++ b/web/src/features/dashboard/utils/getColorsForCategories.tsx@@ -0,0 +1,63 @@+type Color =+ | "indigo"+ | "cyan"+ | "zinc"+ | "purple"+ | "slate"+ | "gray"+ | "neutral"+ | "stone"+ | "red"+ | "orange"+ | "amber"+ | "yellow"+ | "lime"+ | "green"+ | "emerald"+ | "teal"+ | "sky"+ | "blue"+ | "violet"+ | "fuchsia"+ | "pink"+ | "rose";++const predefinedColors: Color[] = [+ "indigo",+ "cyan",+ "zinc",+ "purple",+ "yellow",+ "red",+ "lime",+ "pink",+ "emerald",+ "teal",+ "fuchsia",+ "sky",+ "blue",+ "orange",+ "violet",+ "rose",+ "green",+ "amber",+ "slate",+ "gray",+ "neutral",+ "stone",+];++function getRandomColor() {+ return predefinedColors[Math.floor(Math.random() * predefinedColors.length)];+}++export function getColorsForCategories(categories: string[]): Color[] {+ if (categories.length <= predefinedColors.length) {+ return predefinedColors.slice(0, categories.length);+ }+ const colors: Color[] = predefinedColors;+ while (colors.length < categories.length) {+ colors.push(getRandomColor());+ }+ return colors;+}diff --git a/web/src/features/datasets/components/DatasetActionButton.tsx b/web/src/features/datasets/components/DatasetActionButton.tsxindex b8908c2c09..99f1054af9 100644--- a/web/src/features/datasets/components/DatasetActionButton.tsx+++ b/web/src/features/datasets/components/DatasetActionButton.tsx@@ -72,7 +72,7 @@ export const DatasetActionButton = (props: DatasetActionButtonProps) => {</Button>) : (<div- className="relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50"+ className="relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50"onClick={() => {setOpen(true);capture("datasets:update_form_open", {@@ -90,7 +90,7 @@ export const DatasetActionButton = (props: DatasetActionButtonProps) => {)) : props.mode === "delete" ? (<div- className="relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50"+ className="relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50"onClick={() => {setOpen(true);capture("datasets:delete_form_open", {diff --git a/web/src/features/datasets/components/DatasetItemsTable.tsx b/web/src/features/datasets/components/DatasetItemsTable.tsxindex 0ef09d99c1..65ccd66b83 100644--- a/web/src/features/datasets/components/DatasetItemsTable.tsx+++ b/web/src/features/datasets/components/DatasetItemsTable.tsx@@ -134,8 +134,8 @@ export function DatasetItemsTable({className={cn("h-2 w-2 rounded-full",status === DatasetStatus.ACTIVE- ? "bg-green-600"- : "bg-yellow-600",+ ? "bg-dark-green"+ : "bg-dark-yellow",)}/><span>{status}</span>@@ -173,7 +173,7 @@ export function DatasetItemsTable({return !!expectedOutput ? (<IOTableCelldata={expectedOutput}- className="bg-green-50"+ className="bg-accent-light-green"singleLine={rowHeight === "s"}/>) : null;diff --git a/web/src/features/datasets/components/DatasetRunItemsTable.tsx b/web/src/features/datasets/components/DatasetRunItemsTable.tsxindex 729ef47db0..6219910a30 100644--- a/web/src/features/datasets/components/DatasetRunItemsTable.tsx+++ b/web/src/features/datasets/components/DatasetRunItemsTable.tsx@@ -316,7 +316,7 @@ const TraceObservationIOCell = ({<IOTableCellisLoading={!!!observationId ? trace.isLoading : observation.isLoading}data={io === "output" ? data?.output : data?.input}- className={cn(io === "output" && "bg-green-50")}+ className={cn(io === "output" && "bg-accent-light-green")}singleLine={singleLine}/>);diff --git a/web/src/features/email/templates/ProjectInvitation.tsx b/web/src/features/email/templates/ProjectInvitation.tsxindex 7a7f7c4541..aed84db069 100644--- a/web/src/features/email/templates/ProjectInvitation.tsx+++ b/web/src/features/email/templates/ProjectInvitation.tsx@@ -41,7 +41,7 @@ export const ProjectInvitationTemplate = ({<Head /><Preview>{previewText}</Preview><Tailwind>- <Body className="mx-auto my-auto bg-white font-sans">+ <Body className="mx-auto my-auto bg-background font-sans"><Container className="mx-auto my-10 w-[465px] rounded border border-solid border-[#eaeaea] p-5"><Section className="mt-8"><Img@@ -72,12 +72,12 @@ export const ProjectInvitationTemplate = ({</Text><Section className="mb-4 mt-8 text-center"><Button- className="rounded bg-black px-5 py-3 text-center text-xs font-semibold text-white no-underline"+ className="rounded bg-black px-5 py-3 text-center text-xs font-semibold text-background no-underline"href={inviteLink}>Accept Invitation</Button>- <Text className="mt-2 text-xs leading-3 text-gray-600">+ <Text className="mt-2 text-xs leading-3 text-muted-foreground">(you need to create an account)</Text></Section>diff --git a/web/src/features/filters/components/filter-builder.tsx b/web/src/features/filters/components/filter-builder.tsxindex 83e5f55fe2..178a94ffe1 100644--- a/web/src/features/filters/components/filter-builder.tsx+++ b/web/src/features/filters/components/filter-builder.tsx@@ -101,7 +101,7 @@ export function PopoverFilterBuilder({{filterState.length > 0 && (<spanclassName={cn(- "ml-3 rounded-md bg-slate-200 px-2 py-1 text-xs @6xl:hidden",+ "ml-3 rounded-md bg-input px-2 py-1 text-xs @6xl:hidden",filterState.length > 2 && "@6xl:inline",)}>@@ -144,7 +144,7 @@ export function InlineFilterState({return (<spankey={i}- className="ml-2 hidden whitespace-nowrap rounded-md bg-slate-200 px-2 py-1 text-xs @6xl:block"+ className="ml-2 hidden whitespace-nowrap rounded-md bg-input px-2 py-1 text-xs @6xl:block">{filter.column}{filter.type === "stringObject" || filter.type === "numberObject"diff --git a/web/src/features/navigate-detail-pages/DetailPageNav.tsx b/web/src/features/navigate-detail-pages/DetailPageNav.tsxindex eb5fe42b41..323c0e666d 100644--- a/web/src/features/navigate-detail-pages/DetailPageNav.tsx+++ b/web/src/features/navigate-detail-pages/DetailPageNav.tsx@@ -72,7 +72,7 @@ export const DetailPageNav = (props: {</TooltipTrigger><TooltipContent><span>Navigate up</span>- <CommandShortcut className="ml-2 rounded-sm bg-gray-100 p-1 px-2">+ <CommandShortcut className="ml-2 rounded-sm bg-muted p-1 px-2">k</CommandShortcut></TooltipContent>@@ -96,7 +96,7 @@ export const DetailPageNav = (props: {</TooltipTrigger><TooltipContent><span>Navigate down</span>- <CommandShortcut className="ml-2 rounded-sm bg-gray-100 p-1 px-2">+ <CommandShortcut className="ml-2 rounded-sm bg-muted p-1 px-2">j</CommandShortcut></TooltipContent>diff --git a/web/src/features/notifications/Notification.tsx b/web/src/features/notifications/Notification.tsxindex c2838dbd67..d8591f2ea6 100644--- a/web/src/features/notifications/Notification.tsx+++ b/web/src/features/notifications/Notification.tsx@@ -25,17 +25,17 @@ const Notification: React.FC<NotificationProps> = ({return (<div className="flex justify-between"><div className="flex min-w-[300px] flex-1 flex-col justify-center">- <div className="m-0 text-sm font-medium leading-tight text-gray-800">+ <div className="m-0 text-sm font-medium leading-tight text-primary">{notification.message}</div>{notification.description && (- <div className="mt-2 flex-1 text-sm leading-tight text-gray-800">+ <div className="mt-2 flex-1 text-sm leading-tight text-primary">{notification.description}</div>)}</div><button- className="flex h-6 w-6 cursor-pointer items-start justify-end border-none bg-transparent p-0 text-gray-800 transition-colors duration-200"+ className="flex h-6 w-6 cursor-pointer items-start justify-end border-none bg-transparent p-0 text-primary transition-colors duration-200"onClick={() => {capture("notification:dismiss_notification", {notificationId: notification.id,diff --git a/web/src/features/projects/components/HostNameProject.tsx b/web/src/features/projects/components/HostNameProject.tsxindex cd349e4713..97bd37590d 100644--- a/web/src/features/projects/components/HostNameProject.tsx+++ b/web/src/features/projects/components/HostNameProject.tsx@@ -1,4 +1,4 @@-import { Card } from "@tremor/react";+import { Card } from "@/src/components/ui/card";import { CodeView } from "@/src/components/ui/CodeJsonViewer";import Header from "@/src/components/layouts/header";diff --git a/web/src/features/projects/components/RenameProject.tsx b/web/src/features/projects/components/RenameProject.tsxindex 1bfa463bc9..ee2b6c4be0 100644--- a/web/src/features/projects/components/RenameProject.tsx+++ b/web/src/features/projects/components/RenameProject.tsx@@ -1,4 +1,4 @@-import { Card } from "@tremor/react";+import { Card } from "@/src/components/ui/card";import { Button } from "@/src/components/ui/button";import { Input } from "@/src/components/ui/input";import { api } from "@/src/utils/api";@@ -66,12 +66,12 @@ export default function RenameProject(props: { projectId: string }) {<Header title="Project Name" level="h3" /><Card className="mb-4 p-4">{form.getValues().name !== "" ? (- <p className="mb-4 text-sm text-gray-700">+ <p className="mb-4 text-sm text-primary">Your Project will be renamed to "<b>{form.watch().name}</b>".</p>) : (- <p className="mb-4 text-sm text-gray-700" data-testid="project-name">+ <p className="mb-4 text-sm text-primary" data-testid="project-name">Your Project is currently named "<b>{projectName}</b>".</p>diff --git a/web/src/features/prompts/components/NewPromptForm/index.tsx b/web/src/features/prompts/components/NewPromptForm/index.tsxindex 4c0bc17f5d..89f4624d35 100644--- a/web/src/features/prompts/components/NewPromptForm/index.tsx+++ b/web/src/features/prompts/components/NewPromptForm/index.tsx@@ -329,7 +329,7 @@ export const NewPromptForm: React.FC<NewPromptFormProps> = (props) => {<FormLabel>Serve prompt as default to SDKs</FormLabel></div>{currentIsActive ? (- <div className="text-xs text-gray-500">+ <div className="text-xs text-muted-foreground">This makes the prompt available to the SDKs immediately.</div>) : null}diff --git a/web/src/features/prompts/components/auto-complete.tsx b/web/src/features/prompts/components/auto-complete.tsxindex bca090098a..4121a73985 100644--- a/web/src/features/prompts/components/auto-complete.tsx+++ b/web/src/features/prompts/components/auto-complete.tsx@@ -105,8 +105,8 @@ export const AutoComplete = ({</div><div className="relative mt-1">{isOpen ? (- <div className="absolute top-0 z-10 w-full rounded-xl bg-stone-50 outline-none animate-in fade-in-0 zoom-in-95">- <CommandList className="rounded-lg ring-1 ring-slate-200">+ <div className="absolute top-0 z-10 w-full rounded-xl bg-background outline-none animate-in fade-in-0 zoom-in-95">+ <CommandList className="rounded-lg ring-1 ring-border">{options.length > 0 ? (<CommandGroup>{options.map((option) => {diff --git a/web/src/features/prompts/components/prompt-description.tsx b/web/src/features/prompts/components/prompt-description.tsxindex 3c31d9c8a2..a15fc01fca 100644--- a/web/src/features/prompts/components/prompt-description.tsx+++ b/web/src/features/prompts/components/prompt-description.tsx@@ -7,7 +7,7 @@ export const PromptDescription = ({}) => {return (<>- <p className="text-sm text-gray-500">+ <p className="text-sm text-muted-foreground">You can use <code className="text-xs">{"{{variable}}"}</code> to insertvariables into your prompt.<b className="font-semibold"> Note:</b> Variables must be alphabeticaldiff --git a/web/src/features/prompts/components/prompt-detail.tsx b/web/src/features/prompts/components/prompt-detail.tsxindex 7ac25c8c61..42adb43181 100644--- a/web/src/features/prompts/components/prompt-detail.tsx+++ b/web/src/features/prompts/components/prompt-detail.tsx@@ -213,7 +213,7 @@ export const PromptDetail = () => {{prompt.config && JSON.stringify(prompt.config) !== "{}" && (<JSONView className="mt-5" json={prompt.config} title="Config" />)}- <p className="mt-6 text-xs text-gray-600">+ <p className="mt-6 text-xs text-muted-foreground">Fetch prompts via Python or JS/TS SDKs. See{" "}<ahref="https://langfuse.com/docs/prompts"diff --git a/web/src/features/prompts/components/prompt-history.tsx b/web/src/features/prompts/components/prompt-history.tsxindex 2195a5414a..ca131811a4 100644--- a/web/src/features/prompts/components/prompt-history.tsx+++ b/web/src/features/prompts/components/prompt-history.tsx@@ -26,8 +26,8 @@ const PromptHistoryTraceNode = (props: {return (<div- className={`group mb-2 flex cursor-pointer flex-col gap-1 rounded-sm p-2 hover:bg-gray-50 ${- props.currentPromptVersion === prompt.version ? "bg-gray-100" : ""+ className={`group mb-2 flex cursor-pointer flex-col gap-1 rounded-sm p-2 hover:bg-primary-foreground ${+ props.currentPromptVersion === prompt.version ? "bg-muted" : ""}`}onClick={() => {props.index === 0@@ -36,19 +36,19 @@ const PromptHistoryTraceNode = (props: {}}><div className="flex flex-wrap items-center gap-2">- <span className="rounded-sm bg-gray-200 p-1 text-xs">+ <span className="rounded-sm bg-input p-1 text-xs">Version {prompt.version}</span>{badges}</div><div className="flex gap-2">- <span className="text-xs text-gray-500">+ <span className="text-xs text-muted-foreground">{prompt.createdAt.toLocaleString()}</span></div><div className="flex gap-2">- <span className="text-xs text-gray-500">+ <span className="text-xs text-muted-foreground">by {prompt.creator || prompt.createdBy}</span></div>diff --git a/web/src/features/prompts/components/prompt-new.tsx b/web/src/features/prompts/components/prompt-new.tsxindex 170a1da2c6..37aefa8f35 100644--- a/web/src/features/prompts/components/prompt-new.tsx+++ b/web/src/features/prompts/components/prompt-new.tsx@@ -58,7 +58,7 @@ export const NewPrompt = () => {breadcrumb={breadcrumb}/>{initialPrompt ? (- <p className="text-sm text-gray-500">+ <p className="text-sm text-muted-foreground">Prompts are immutable in Langfuse. To update a prompt, create a newversion.</p>diff --git a/web/src/features/public-api/components/ApiKeyList.tsx b/web/src/features/public-api/components/ApiKeyList.tsxindex dd8957b67d..9674976da2 100644--- a/web/src/features/public-api/components/ApiKeyList.tsx+++ b/web/src/features/public-api/components/ApiKeyList.tsx@@ -50,19 +50,19 @@ export function ApiKeyList(props: { projectId: string }) {<Table><TableHeader><TableRow>- <TableHead className="hidden text-gray-900 md:table-cell">+ <TableHead className="hidden text-primary md:table-cell">Created</TableHead>- {/* <TableHead className="text-gray-900">Note</TableHead> */}- <TableHead className="text-gray-900">Public Key</TableHead>- <TableHead className="text-gray-900">Secret Key</TableHead>- {/* <TableHead className="text-gray-900">Last used</TableHead> */}+ {/* <TableHead className="text-primary">Note</TableHead> */}+ <TableHead className="text-primary">Public Key</TableHead>+ <TableHead className="text-primary">Secret Key</TableHead>+ {/* <TableHead className="text-primary">Last used</TableHead> */}<TableHead /></TableRow></TableHeader>- <TableBody className="text-gray-500">+ <TableBody className="text-muted-foreground">{apiKeys.data?.map((apiKey) => (- <TableRow key={apiKey.id} className="hover:bg-transparent">+ <TableRow key={apiKey.id} className="hover:bg-primary-foreground"><TableCell className="hidden md:table-cell">{apiKey.createdAt.toLocaleDateString()}</TableCell>diff --git a/web/src/features/public-api/components/LLMApiKeyList.tsx b/web/src/features/public-api/components/LLMApiKeyList.tsxindex e74a55dd46..bc6aa7b424 100644--- a/web/src/features/public-api/components/LLMApiKeyList.tsx+++ b/web/src/features/public-api/components/LLMApiKeyList.tsx@@ -73,19 +73,19 @@ export function LlmApiKeyList(props: { projectId: string }) {<Table><TableHeader><TableRow>- <TableHead className="hidden text-gray-900 md:table-cell">+ <TableHead className="hidden text-primary md:table-cell">Created</TableHead>- <TableHead className="hidden text-gray-900 md:table-cell">+ <TableHead className="hidden text-primary md:table-cell">Provider</TableHead>- <TableHead className="text-gray-900">Secret Key</TableHead>+ <TableHead className="text-primary">Secret Key</TableHead><TableHead /></TableRow></TableHeader>- <TableBody className="text-gray-500">+ <TableBody className="text-muted-foreground">{apiKeys.data?.data.map((apiKey) => (- <TableRow key={apiKey.id} className="hover:bg-transparent">+ <TableRow key={apiKey.id} className="hover:bg-primary-foreground"><TableCell className="hidden md:table-cell">{apiKey.createdAt.toLocaleDateString()}</TableCell>diff --git a/web/src/features/public-api/components/QuickstartExamples.tsx b/web/src/features/public-api/components/QuickstartExamples.tsxindex de97cdd14d..34ccf77fca 100644--- a/web/src/features/public-api/components/QuickstartExamples.tsx+++ b/web/src/features/public-api/components/QuickstartExamples.tsx@@ -47,12 +47,12 @@ export const QuickstartExamples = ({</TabsList></div><TabsContent value="python">- <CodeView content="pip install langfuse" className="mb-2 bg-blue-50" />+ <CodeView content="pip install langfuse" className="mb-2 bg-muted" /><CodeView- className="bg-blue-50"+ className="bg-muted"content={`from langfuse import Langfuse\n\nlangfuse = Langfuse(\n secret_key="${secretKey}",\n public_key="${publicKey}",\n host="${host}"\n)`}/>- <p className="mt-3 text-xs text-gray-600">+ <p className="mt-3 text-xs text-muted-foreground">See{" "}<ahref="https://langfuse.com/docs/get-started"@@ -75,12 +75,12 @@ export const QuickstartExamples = ({</p></TabsContent><TabsContent value="js">- <CodeView content="npm install langfuse" className="mb-2 bg-blue-50" />+ <CodeView content="npm install langfuse" className="mb-2 bg-muted" /><CodeView- className="bg-blue-50"+ className="bg-muted"content={`import { Langfuse } from "langfuse";\n\nconst langfuse = new Langfuse({\n secretKey: "${secretKey}",\n publicKey: "${publicKey}",\n baseUrl: "${host}"\n});`}/>- <p className="mt-3 text-xs text-gray-600">+ <p className="mt-3 text-xs text-muted-foreground">See{" "}<ahref="https://langfuse.com/docs/get-started"@@ -103,22 +103,22 @@ export const QuickstartExamples = ({</p></TabsContent><TabsContent value="openai">- <p className="mt-2 text-xs text-gray-600">+ <p className="mt-2 text-xs text-muted-foreground">The integration is a drop-in replacement for the OpenAI Python SDK. Bychanging the import, Langfuse will capture all LLM calls and send themto Langfuse asynchronously.</p>- <CodeView content="pip install langfuse" className="my-2 bg-blue-50" />+ <CodeView content="pip install langfuse" className="my-2 bg-muted" /><CodeViewtitle=".env"content={`LANGFUSE_SECRET_KEY=${secretKey}\nLANGFUSE_PUBLIC_KEY=${publicKey}\nLANGFUSE_HOST="${host}"`}- className="my-2 bg-blue-50"+ className="my-2 bg-muted"/><CodeViewcontent={`# remove: import openai\n\nfrom langfuse.openai import openai`}- className="my-2 bg-blue-50"+ className="my-2 bg-muted"/>- <p className="mt-2 text-xs text-gray-600">+ <p className="mt-2 text-xs text-muted-foreground">Use the OpenAI SDK as you would normally. See the{" "}<ahref="https://langfuse.com/docs/integrations/openai"@@ -132,16 +132,16 @@ export const QuickstartExamples = ({</p></TabsContent><TabsContent value="langchain">- <p className="mt-2 text-xs text-gray-600">+ <p className="mt-2 text-xs text-muted-foreground">The integration uses the Langchain callback system to automaticallycapture detailed traces of your Langchain executions.</p>- <CodeView content="pip install langfuse" className="my-2 bg-blue-50" />+ <CodeView content="pip install langfuse" className="my-2 bg-muted" /><CodeViewcontent={LANGCHAIN_PYTHON_CODE({ publicKey, secretKey, host })}- className="my-2 bg-blue-50"+ className="my-2 bg-muted"/>- <p className="mt-2 text-xs text-gray-600">+ <p className="mt-2 text-xs text-muted-foreground">See the{" "}<ahref="https://langfuse.com/docs/integrations/langchain/python"@@ -155,19 +155,19 @@ export const QuickstartExamples = ({</p></TabsContent><TabsContent value="langchain-js">- <p className="mt-2 text-xs text-gray-600">+ <p className="mt-2 text-xs text-muted-foreground">The integration uses the Langchain callback system to automaticallycapture detailed traces of your Langchain executions.</p><CodeViewcontent="npm install langfuse-langchain"- className="my-2 bg-blue-50"+ className="my-2 bg-muted"/><CodeViewcontent={LANGCHAIN_JS_CODE({ publicKey, secretKey, host })}- className="my-2 bg-blue-50"+ className="my-2 bg-muted"/>- <p className="mt-2 text-xs text-gray-600">+ <p className="mt-2 text-xs text-muted-foreground">See the{" "}<ahref="https://langfuse.com/docs/integrations/langchain/typescript"@@ -181,19 +181,19 @@ export const QuickstartExamples = ({</p></TabsContent><TabsContent value="llamaindex">- <p className="mt-2 text-xs text-gray-600">+ <p className="mt-2 text-xs text-muted-foreground">The integration uses the LlamaIndex callback system to automaticallycapture detailed traces of your LlamaIndex executions.</p><CodeViewcontent="pip install langfuse llama-index"- className="my-2 bg-blue-50"+ className="my-2 bg-muted"/><CodeViewcontent={LLAMA_INDEX_CODE({ publicKey, secretKey, host })}- className="my-2 bg-blue-50"+ className="my-2 bg-muted"/>- <p className="mt-2 text-xs text-gray-600">+ <p className="mt-2 text-xs text-muted-foreground">See the{" "}<ahref="https://langfuse.com/docs/integrations/llama-index"@@ -207,7 +207,7 @@ export const QuickstartExamples = ({</p></TabsContent><TabsContent value="other">- <p className="mt-2 text-xs text-gray-600">+ <p className="mt-2 text-xs text-muted-foreground">Use the{" "}<ahref="https://api.reference.langfuse.com/"diff --git a/web/src/features/rbac/components/ProjectMembersTable.tsx b/web/src/features/rbac/components/ProjectMembersTable.tsxindex e09d2e1da1..300dde7621 100644--- a/web/src/features/rbac/components/ProjectMembersTable.tsx+++ b/web/src/features/rbac/components/ProjectMembersTable.tsx@@ -58,13 +58,13 @@ export function ProjectMembersTable({ projectId }: { projectId: string }) {<Table className="text-sm"><TableHeader><TableRow>- <TableHead className="text-gray-900">Name</TableHead>- <TableHead className="text-gray-900">Email</TableHead>- <TableHead className="text-gray-900">Role</TableHead>+ <TableHead className="text-primary">Name</TableHead>+ <TableHead className="text-primary">Email</TableHead>+ <TableHead className="text-primary">Role</TableHead>{hasDeleteAccess ? <TableHead /> : null}</TableRow></TableHeader>- <TableBody className="text-gray-500">+ <TableBody className="text-muted-foreground">{memberships.map((m) => (<TableRow key={m.userId} className="hover:bg-transparent"><TableCell>{m.user.name}</TableCell>@@ -97,20 +97,20 @@ export function ProjectMembersTable({ projectId }: { projectId: string }) {</Card>{invitations.length > 0 ? (<>- <h3 className="mb-3 text-sm font-semibold leading-4 text-gray-600">+ <h3 className="mb-3 text-sm font-semibold leading-4 text-muted-foreground">Pending Invites</h3><Card className="mb-4"><Table className="text-sm"><TableHeader><TableRow>- <TableHead className="text-gray-900">Email</TableHead>- <TableHead className="text-gray-900">Role</TableHead>- <TableHead className="text-gray-900">Sent by</TableHead>+ <TableHead className="text-primary">Email</TableHead>+ <TableHead className="text-primary">Role</TableHead>+ <TableHead className="text-primary">Sent by</TableHead>{hasDeleteAccess ? <TableHead /> : null}</TableRow></TableHeader>- <TableBody className="text-gray-500">+ <TableBody className="text-muted-foreground">{invitations.map((invite) => (<TableRow key={invite.id} className="hover:bg-transparent"><TableCell>{invite.email}</TableCell>diff --git a/web/src/features/tag/components/TagButton.tsx b/web/src/features/tag/components/TagButton.tsxindex 151d9138d4..532a91b8d5 100644--- a/web/src/features/tag/components/TagButton.tsx+++ b/web/src/features/tag/components/TagButton.tsx@@ -7,7 +7,7 @@ export const TagButton: React.FC<{ tag: string; loading: boolean }> =key={tag}variant="secondary"size="xs"- className="text-xs font-semibold hover:bg-white"+ className="text-xs font-semibold hover:bg-background"loading={loading}>{tag}diff --git a/web/src/features/tag/components/TagInput.tsx b/web/src/features/tag/components/TagInput.tsxindex 927916aa25..7311e59d04 100644--- a/web/src/features/tag/components/TagInput.tsx+++ b/web/src/features/tag/components/TagInput.tsx@@ -46,7 +46,7 @@ export const TagInput = React.forwardRef<<CommandPrimitive.Inputref={ref}className={cn(- "flex h-11 w-full rounded-md border-transparent bg-transparent px-1 text-sm outline-none placeholder:text-slate-500 focus:border-0 focus:border-none focus:border-transparent focus:ring-0 disabled:cursor-not-allowed disabled:opacity-50 dark:placeholder:text-slate-400 ",+ "placeholder:muted-foreground flex h-11 w-full rounded-md border-transparent bg-transparent px-1 text-sm outline-none focus:border-0 focus:border-none focus:border-transparent focus:ring-0 disabled:cursor-not-allowed disabled:opacity-50",className,)}autoFocusdiff --git a/web/src/features/tag/components/TagList.tsx b/web/src/features/tag/components/TagList.tsxindex dcee96090e..3e362f249e 100644--- a/web/src/features/tag/components/TagList.tsx+++ b/web/src/features/tag/components/TagList.tsx@@ -15,7 +15,7 @@ const TagList = ({ selectedTags, isLoading }: TagListProps) => {<Buttonvariant="outline"size="xs"- className="text-xs font-bold opacity-0 hover:bg-white hover:opacity-100"+ className="text-xs font-bold opacity-0 hover:bg-background hover:opacity-100">Add tag</Button>diff --git a/web/src/features/theming/ThemeProvider.tsx b/web/src/features/theming/ThemeProvider.tsxnew file mode 100644index 0000000000..b0ff2660c6--- /dev/null+++ b/web/src/features/theming/ThemeProvider.tsx@@ -0,0 +1,9 @@+"use client";++import * as React from "react";+import { ThemeProvider as NextThemesProvider } from "next-themes";+import { type ThemeProviderProps } from "next-themes/dist/types";++export function ThemeProvider({ children, ...props }: ThemeProviderProps) {+ return <NextThemesProvider {...props}>{children}</NextThemesProvider>;+}diff --git a/web/src/features/theming/ThemeToggle.tsx b/web/src/features/theming/ThemeToggle.tsxnew file mode 100644index 0000000000..68160e8a85--- /dev/null+++ b/web/src/features/theming/ThemeToggle.tsx@@ -0,0 +1,49 @@+import * as React from "react";+import { Monitor, Moon, Sun } from "lucide-react";+import { useTheme } from "next-themes";+import { cn } from "@/src/utils/tailwind";++export function ThemeToggle() {+ const { theme, setTheme } = useTheme();++ return (+ <div className="ml-auto flex items-center space-x-1">+ <div title="Light mode">+ <Sun+ className={cn(+ theme === "light" ? "text-primary-accent" : "",+ "text:primary h-[1.6rem] w-[1.6rem] rounded-sm p-1 hover:bg-input hover:text-primary-accent",+ )}+ onClick={(e) => {+ e.preventDefault();+ setTheme("light");+ }}+ />+ </div>+ <div title="Dark mode">+ <Moon+ className={cn(+ theme === "dark" ? "text-primary-accent" : "",+ "h-[1.6rem] w-[1.6rem] rounded-sm p-1 hover:bg-input hover:text-primary-accent",+ )}+ onClick={(e) => {+ e.preventDefault();+ setTheme("dark");+ }}+ />+ </div>+ <div title="System mode">+ <Monitor+ className={cn(+ theme === "system" ? "text-primary-accent" : "",+ "h-[1.6rem] w-[1.6rem] rounded-sm p-1 hover:bg-input hover:text-primary-accent",+ )}+ onClick={(e) => {+ e.preventDefault();+ setTheme("system");+ }}+ />+ </div>+ </div>+ );+}diff --git a/web/src/features/usage-metering/ProjectUsageChart.tsx b/web/src/features/usage-metering/ProjectUsageChart.tsxindex 54107fc77b..d79abb79fa 100644--- a/web/src/features/usage-metering/ProjectUsageChart.tsx+++ b/web/src/features/usage-metering/ProjectUsageChart.tsx@@ -98,7 +98,7 @@ export const ProjectUsageChart: React.FC<{ projectId: string }> = ({</Link></Button>)}- <div className="inline-block text-sm text-gray-500">+ <div className="inline-block text-sm text-muted-foreground">Current plan: {plan}</div></div>diff --git a/web/src/pages/_app.tsx b/web/src/pages/_app.tsxindex 628579d67c..5485dd6675 100644--- a/web/src/pages/_app.tsx+++ b/web/src/pages/_app.tsx@@ -30,6 +30,7 @@ import "core-js/features/array/to-sorted";import "react18-json-view/src/style.css";import { DetailPageListsProvider } from "@/src/features/navigate-detail-pages/context";import { env } from "@/src/env.mjs";+import { ThemeProvider } from "@/src/features/theming/ThemeProvider";const setProjectInPosthog = () => {// project@@ -87,10 +88,16 @@ const MyApp: AppType<{ session: Session | null }> = ({<PostHogProvider client={posthog}><SessionProvider session={session} refetchOnWindowFocus={true}><DetailPageListsProvider>- <Layout>- <Component {...pageProps} />- <UserTracking />- </Layout>+ <ThemeProvider+ attribute="class"+ enableSystem+ disableTransitionOnChange+ >+ <Layout>+ <Component {...pageProps} />+ <UserTracking />+ </Layout>+ </ThemeProvider><CrispWidget /></DetailPageListsProvider></SessionProvider>diff --git a/web/src/pages/auth/sign-in.tsx b/web/src/pages/auth/sign-in.tsxindex 873bb514f4..c79bc7fba8 100644--- a/web/src/pages/auth/sign-in.tsx+++ b/web/src/pages/auth/sign-in.tsx@@ -104,7 +104,7 @@ export function SSOButtons({) ? (<div>{authProviders.credentials && (- <Divider className="text-gray-400">or {action} with</Divider>+ <Divider className="text-muted-foreground">or {action} with</Divider>)}<div className="flex flex-row flex-wrap items-center justify-center gap-4">{authProviders.google && (@@ -302,12 +302,12 @@ export default function SignIn({ authProviders, signUpDisabled }: PageProps) {<div className="flex flex-1 flex-col py-6 sm:min-h-full sm:justify-center sm:px-6 sm:py-12 lg:px-8"><div className="sm:mx-auto sm:w-full sm:max-w-md"><LangfuseIcon className="mx-auto" />- <h2 className="mt-4 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900">+ <h2 className="mt-4 text-center text-2xl font-bold leading-9 tracking-tight text-primary">Sign in to your account</h2></div>- <div className="mt-14 bg-white px-6 py-10 shadow sm:mx-auto sm:w-full sm:max-w-[480px] sm:rounded-lg sm:px-12">+ <div className="mt-14 bg-background px-6 py-10 shadow sm:mx-auto sm:w-full sm:max-w-[480px] sm:rounded-lg sm:px-12"><div className="space-y-6"><CloudRegionSwitch />{authProviders.credentials ? (@@ -399,7 +399,7 @@ export default function SignIn({ authProviders, signUpDisabled }: PageProps) {// Turnstile exists copy-paste also on sign-up.tsxenv.NEXT_PUBLIC_TURNSTILE_SITE_KEY !== undefined && (<>- <Divider className="text-gray-400" />+ <Divider className="text-muted-foreground" /><TurnstilesiteKey={env.NEXT_PUBLIC_TURNSTILE_SITE_KEY}options={{@@ -417,11 +417,11 @@ export default function SignIn({ authProviders, signUpDisabled }: PageProps) {{!signUpDisabled &&env.NEXT_PUBLIC_SIGN_UP_DISABLED !== "true" &&authProviders.credentials ? (- <p className="mt-10 text-center text-sm text-gray-500">+ <p className="mt-10 text-center text-sm text-muted-foreground">No account yet?{" "}<Linkhref="/auth/sign-up"- className="font-semibold leading-6 text-indigo-600 hover:text-indigo-500"+ className="hover:text-hover-primary-accent font-semibold leading-6 text-primary-accent">Sign up</Link>diff --git a/web/src/pages/auth/sign-up.tsx b/web/src/pages/auth/sign-up.tsxindex 381862970e..ac55942393 100644--- a/web/src/pages/auth/sign-up.tsx+++ b/web/src/pages/auth/sign-up.tsx@@ -94,7 +94,7 @@ export default function SignIn({ authProviders }: PageProps) {<div className="flex flex-1 flex-col py-6 sm:min-h-full sm:justify-center sm:px-6 sm:py-12 lg:px-8"><div className="sm:mx-auto sm:w-full sm:max-w-md"><LangfuseIcon className="mx-auto" />- <h2 className="mt-4 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900">+ <h2 className="mt-4 text-center text-2xl font-bold leading-9 tracking-tight text-primary">Create new account</h2></div>@@ -104,7 +104,7 @@ export default function SignIn({ authProviders }: PageProps) {</div>) : null}- <div className="mt-14 bg-white px-6 py-10 shadow sm:mx-auto sm:w-full sm:max-w-[480px] sm:rounded-lg sm:px-12">+ <div className="mt-14 bg-background px-6 py-10 shadow sm:mx-auto sm:w-full sm:max-w-[480px] sm:rounded-lg sm:px-12"><CloudRegionSwitch isSignUpPage /><Form {...form}><form@@ -175,7 +175,7 @@ export default function SignIn({ authProviders }: PageProps) {// Turnstile exists copy-paste also on sign-up.tsxenv.NEXT_PUBLIC_TURNSTILE_SITE_KEY !== undefined && (<>- <Divider className="text-gray-400" />+ <Divider className="text-muted-foreground" /><TurnstilesiteKey={env.NEXT_PUBLIC_TURNSTILE_SITE_KEY}options={{@@ -189,17 +189,16 @@ export default function SignIn({ authProviders }: PageProps) {</>)}- <p className="mt-10 text-center text-sm text-gray-500">- Already have an account?{" "}- <Link- href="/auth/sign-in"- className="font-semibold leading-6 text-indigo-600 hover:text-indigo-500"- >- Sign in- </Link>- </p></div>-+ <p className="mt-10 text-center text-sm text-muted-foreground">+ Already have an account?{" "}+ <Link+ href="/auth/sign-in"+ className="hover:text-hover-primary-accent font-semibold leading-6 text-primary-accent"+ >+ Sign in+ </Link>+ </p><CloudPrivacyNotice action="creating an account" /></div></>diff --git a/web/src/pages/onboarding.tsx b/web/src/pages/onboarding.tsxindex 93944436b7..2196a53b66 100644--- a/web/src/pages/onboarding.tsx+++ b/web/src/pages/onboarding.tsx@@ -47,11 +47,11 @@ export default function ReferralSource() {<div className="flex flex-1 flex-col py-6 sm:min-h-full sm:justify-center sm:px-6 sm:py-12 lg:px-8"><div className="sm:mx-auto sm:w-full sm:max-w-md"><LangfuseIcon className="mx-auto" />- <h2 className="mt-4 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900">+ <h2 className="mt-4 text-center text-2xl font-bold leading-9 tracking-tight text-primary">Welcome to Langfuse</h2></div>- <div className="mt-14 bg-white px-6 py-10 shadow sm:mx-auto sm:w-full sm:max-w-[480px] sm:rounded-lg sm:px-12">+ <div className="mt-14 bg-background px-6 py-10 shadow sm:mx-auto sm:w-full sm:max-w-[480px] sm:rounded-lg sm:px-12"><Form {...form}><formclassName="space-y-6"diff --git a/web/src/pages/project/[projectId]/datasets/[datasetId]/index.tsx b/web/src/pages/project/[projectId]/datasets/[datasetId]/index.tsxindex c0b5a4b6c6..fcc2b03ce6 100644--- a/web/src/pages/project/[projectId]/datasets/[datasetId]/index.tsx+++ b/web/src/pages/project/[projectId]/datasets/[datasetId]/index.tsx@@ -87,7 +87,7 @@ export default function Dataset() {}/>- <p className="mt-3 text-xs text-gray-600">+ <p className="mt-3 text-xs text-muted-foreground">Add new runs via Python or JS/TS SDKs. See{" "}<a href="https://langfuse.com/docs/datasets" className="underline">documentationdiff --git a/web/src/pages/project/[projectId]/index.tsx b/web/src/pages/project/[projectId]/index.tsxindex e4638a65f7..8c6b0e5e2f 100644--- a/web/src/pages/project/[projectId]/index.tsx+++ b/web/src/pages/project/[projectId]/index.tsx@@ -172,11 +172,11 @@ export default function Start() {id="date"variant={"outline"}className={- "group justify-start gap-x-3 text-left font-semibold text-gray-700 hover:bg-gray-50 hover:text-indigo-600"+ "hover:text-primary-accent group justify-start gap-x-3 text-left font-semibold text-primary hover:bg-primary-foreground"}><BarChart2- className="hidden h-6 w-6 shrink-0 text-gray-700 group-hover:text-indigo-600 lg:block"+ className="group-hover:text-primary-accent hidden h-6 w-6 shrink-0 text-primary lg:block"aria-hidden="true"/>Request Chartdiff --git a/web/src/pages/project/[projectId]/models.tsx b/web/src/pages/project/[projectId]/models.tsxindex 6830060991..b4f9a164c6 100644--- a/web/src/pages/project/[projectId]/models.tsx+++ b/web/src/pages/project/[projectId]/models.tsx@@ -25,6 +25,7 @@ export default function ModelsPage() {}}actionButtons={<Button+ variant="secondary"disabled={!hasWriteAccess}onClick={() => capture("models:new_form_open")}asChilddiff --git a/web/src/pages/project/[projectId]/settings.tsx b/web/src/pages/project/[projectId]/settings.tsxindex fe298d9137..76dd09d72b 100644--- a/web/src/pages/project/[projectId]/settings.tsx+++ b/web/src/pages/project/[projectId]/settings.tsx@@ -101,28 +101,30 @@ function Instructions() {<Header title="Docs" level="h3" /><ulrole="list"- className="mt-6 divide-y divide-gray-200 border-b border-t border-gray-200"+ className="mt-6 divide-y divide-border border-b border-t border-border">{instructionItems.map((item, itemIdx) => (<li key={itemIdx}><div className="group relative flex items-start space-x-3 py-4"><div className="flex-shrink-0">- <span className="inline-flex h-10 w-10 items-center justify-center rounded-lg border border-gray-200 text-gray-400 group-hover:border-indigo-600 group-hover:text-indigo-600">+ <span className="group-hover:border-primary-accent group-hover:text-primary-accent inline-flex h-10 w-10 items-center justify-center rounded-lg border border-border text-muted-foreground"><item.icon className="h-6 w-6" aria-hidden="true" /></span></div><div className="min-w-0 flex-1">- <div className="text-sm font-medium text-gray-900">+ <div className="text-sm font-medium text-primary"><a href={item.href} target="_blank" rel="noreferrer noopener"><span className="absolute inset-0" aria-hidden="true" />{item.name}</a></div>- <p className="text-sm text-gray-500">{item.description}</p>+ <p className="text-sm text-muted-foreground">+ {item.description}+ </p></div><div className="flex-shrink-0 self-center"><ChevronRightIcon- className="h-5 w-5 text-gray-400 group-hover:text-gray-500"+ className="h-5 w-5 text-muted-foreground group-hover:text-muted-foreground"aria-hidden="true"/></div>@@ -147,7 +149,7 @@ const Integrations = (props: { projectId: string }) => {alt="Posthog Logo"className="mb-4 w-32"/>- <p className="mb-4 text-sm text-gray-700">+ <p className="mb-4 text-sm text-primary">We have teamed up with PostHog (OSS product analytics) to makeLangfuse Events/Metrics available in your Posthog Dashboards.</p>diff --git a/web/src/pages/project/[projectId]/settings/posthog-integration.tsx b/web/src/pages/project/[projectId]/settings/posthog-integration.tsxindex 30b287d434..3422f2c626 100644--- a/web/src/pages/project/[projectId]/settings/posthog-integration.tsx+++ b/web/src/pages/project/[projectId]/settings/posthog-integration.tsx@@ -53,7 +53,7 @@ export default function PosthogIntegrationSettings() {: "inactive"}/>- <p className="mb-4 text-sm text-gray-700">+ <p className="mb-4 text-sm text-primary">We have teamed up with{" "}<Link href="https://posthog.com" className="underline">PostHog@@ -79,13 +79,13 @@ export default function PosthogIntegrationSettings() {{state.data?.enabled && (<><Header level="h3" title="Status" className="mt-8" />- <p className="text-sm text-gray-700">+ <p className="text-sm text-primary">Data synced until:{" "}{state.data?.lastSyncAt? new Date(state.data.lastSyncAt).toLocaleString(): "Never (pending)"}</p>- <p className="mt-2 text-sm text-gray-700">+ <p className="mt-2 text-sm text-primary">While in Beta, the sync is scheduled to run once a day.</p></>diff --git a/web/src/pages/project/[projectId]/users/[userId].tsx b/web/src/pages/project/[projectId]/users/[userId].tsxindex 81411cc692..88c1b6d6e5 100644--- a/web/src/pages/project/[projectId]/users/[userId].tsx+++ b/web/src/pages/project/[projectId]/users/[userId].tsx@@ -68,7 +68,7 @@ export default function UserPage() {<selectid="tabs"name="tabs"- className="block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm"+ className="block w-full rounded-md border-border py-2 pl-3 pr-10 text-base focus:outline-none sm:text-sm"defaultValue={currentTab}onChange={(e) => setCurrentTab(e.currentTarget.value)}>@@ -78,15 +78,15 @@ export default function UserPage() {</select></div><div className="hidden sm:block">- <div className="border-b border-gray-200">+ <div className="border-b border-border"><nav className="-mb-px flex space-x-8" aria-label="Tabs">{tabs.map((tab) => (<buttonkey={tab}className={classNames(tab === currentTab- ? "border-indigo-500 text-indigo-600"- : "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",+ ? "border-primary-accent text-primary-accent"+ : "border-transparent text-muted-foreground hover:border-border hover:text-primary","whitespace-nowrap border-b-2 px-1 py-4 text-sm font-medium",)}aria-current={tab === currentTab ? "page" : undefined}@@ -146,17 +146,17 @@ function DetailsTab({ userId, projectId }: TabProps) {return (<div className="mt-5 pt-5">- <div className="mt-6 border-t border-gray-100">- <dl className="divide-y divide-gray-100">+ <div className="mt-6 border-t border-muted">+ <dl className="divide-y divide-muted">{userData.map((item) => (<divkey={item.label}className="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0">- <dt className="text-sm font-medium leading-6 text-gray-900">+ <dt className="text-sm font-medium leading-6 text-primary">{item.label}</dt>- <dd className="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">+ <dd className="mt-1 text-sm leading-6 text-primary sm:col-span-2 sm:mt-0">{item.value ?? "-"}</dd></div>@@ -166,10 +166,10 @@ function DetailsTab({ userId, projectId }: TabProps) {key="score"className="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0">- <dt className="text-sm font-medium leading-6 text-gray-900">+ <dt className="text-sm font-medium leading-6 text-primary">Last Score</dt>- <dd className="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">+ <dd className="mt-1 text-sm leading-6 text-primary sm:col-span-2 sm:mt-0"><div className="flex items-center gap-4"><TableLinkpath={diff --git a/web/src/styles/globals.css b/web/src/styles/globals.cssindex 462fede288..13296b55d4 100644--- a/web/src/styles/globals.css+++ b/web/src/styles/globals.css@@ -33,30 +33,55 @@--ring: 215 20.2% 65.1%;+ --primary-accent: 243 75.4% 58.6%;+ --hover-primary-accent: 239 83.5% 66.7%;++ --muted-green: 141 84.2% 92.5%;+ --muted-orange: 34 100% 91.8%;+ --muted-blue: 214 94.6% 92.7%;+ --muted-gray: 210 50% 91.1%;++ --accent-light-green: 138 76.5% 96.7%;+ --accent-dark-green: 112 100% 32%;++ --light-red: 329 77.8% 94.7%;+ --dark-red: 0 72.2% 50.6%;++ --light-yellow: 55 91.7% 95.3%;+ --dark-yellow: 32 81% 28.8%;++ --light-green: 141 84.2% 92.5%;+ --dark-green: 176 60.8% 19%;++ --light-blue: 214 94.6% 92.7%;+ --dark-blue: 217 91.2% 59.8%;++ --accent-light-blue: 251 95.2% 91.8%;+ --accent-dark-blue: 224 76.3% 38%;--radius: 0.5rem;}.dark {--background: 222.2 84% 4.9%;- --foreground: 210 40% 98%;+ --foreground: 210 40% 88%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--popover: 222.2 84% 4.9%;- --popover-foreground: 210 40% 98%;+ --popover-foreground: 210 40% 88%;--card: 222.2 84% 4.9%;- --card-foreground: 210 40% 98%;+ --card-foreground: 210 40% 88%;- --border: 217.2 32.6% 17.5%;- --input: 217.2 32.6% 17.5%;+ --border: 217.2 32.6% 27.5%;+ --input: 217.2 32.6% 27.5%;- --primary: 210 40% 98%;+ --primary: 210 40% 88%;--primary-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;- --secondary-foreground: 210 40% 98%;+ --secondary-foreground: 210 40% 88%;--accent: 217.2 32.6% 17.5%;--accent-foreground: ;@@ -65,6 +90,34 @@--destructive-foreground: 0 85.7% 97.3%;--ring: 217.2 32.6% 17.5%;++ --primary-accent: 246 55% 70%;+ --muted-primary-accent: 239 83.5% 66.7%;++ --muted-blue: 226 60.7% 30.2%;+ --muted-green: 143 64.2% 24.1%;+ --muted-orange: 15 79.1% 33.7%;+ --muted-gray: 210 50% 25%;++ --light-red: 0 62.8% 30.6%;+ --dark-red: 0 90.6% 70.8%;++ --light-yellow: 32 81% 28.8%;+ --dark-yellow: 53 98.3% 76.9%;++ --light-green: 144 61.2% 20.2%;+ --dark-green: 142 76.7% 73.1%;++ --light-blue: 224 64.3% 32.9%;+ --dark-blue: 212 96.4% 78.4%;++ --accent-light-green: 192 21% 9%;+ --accent-dark-green: 124 21.8% 30.6%;++ --accent-light-blue: 263 60% 50.4%;+ --accent-dark-blue: 224 50% 90%;++ --radius: 0.5rem;}}diff --git a/web/tailwind.config.ts b/web/tailwind.config.tsindex 4ebca8a9b7..5b3c539147 100644--- a/web/tailwind.config.ts+++ b/web/tailwind.config.ts@@ -1,3 +1,5 @@+const colors = require("tailwindcss/colors");+/** @type {import('tailwindcss').Config} */module.exports = {darkMode: ["class"],@@ -16,65 +18,86 @@ module.exports = {"2xl": "1400px",},},+ transparent: "transparent",+ current: "currentColor",extend: {colors: {+ "primary-accent": "hsl(var(--primary-accent))",+ "hover-primary-accent": "hsl(var(--hover-primary-accent))",+ "muted-orange": "hsl(var(--muted-orange))",+ "muted-blue": "hsl(var(--muted-blue))",+ "muted-green": "hsl(var(--muted-green))",+ "muted-gray": "hsl(var(--muted-gray))",+ "accent-light-green": "hsl(var(--accent-light-green))",+ "accent-dark-green": "hsl(var(--accent-dark-green))",+ "light-red": "hsl(var(--light-red))",+ "dark-red": "hsl(var(--dark-red))",+ "light-yellow": "hsl(var(--light-yellow))",+ "dark-yellow": "hsl(var(--dark-yellow))",+ "light-green": "hsl(var(--light-green))",+ "dark-green": "hsl(var(--dark-green))",+ "light-blue": "hsl(var(--light-blue))",+ "dark-blue": "hsl(var(--dark-blue))",+ "accent-light-blue": "hsl(var(--accent-light-blue))",+ "accent-dark-blue": "hsl(var(--accent-dark-blue))",+tremor: {brand: {- faint: "#eff6ff", // blue-50- muted: "#bfdbfe", // blue-200- subtle: "#60a5fa", // blue-400- DEFAULT: "#3b82f6", // blue-500- emphasis: "#1d4ed8", // blue-700- inverted: "#ffffff", // white+ faint: colors.blue[50],+ muted: colors.blue[200],+ subtle: colors.blue[400],+ DEFAULT: colors.blue[500],+ emphasis: colors.blue[700],+ inverted: colors.white,},background: {- muted: "#f9fafb", // gray-50- subtle: "#f3f4f6", // gray-100- DEFAULT: "#ffffff", // white- emphasis: "#374151", // gray-700+ muted: colors.gray[50],+ subtle: colors.gray[100],+ DEFAULT: colors.white,+ emphasis: colors.gray[700],},border: {- DEFAULT: "#e5e7eb", // gray-200+ DEFAULT: colors.gray[200],},ring: {- DEFAULT: "#e5e7eb", // gray-200+ DEFAULT: colors.gray[200],},content: {- subtle: "#9ca3af", // gray-400- DEFAULT: "#6b7280", // gray-500- emphasis: "#374151", // gray-700- strong: "#111827", // gray-900- inverted: "#ffffff", // white+ subtle: colors.gray[400],+ DEFAULT: colors.gray[500],+ emphasis: colors.gray[700],+ strong: "hsl(var(--foreground))",+ inverted: colors.white,},},// dark mode"dark-tremor": {brand: {- faint: "#0B1229", // custom- muted: "#172554", // blue-950- subtle: "#1e40af", // blue-800- DEFAULT: "#3b82f6", // blue-500- emphasis: "#60a5fa", // blue-400- inverted: "#030712", // gray-950+ faint: "#0B1229",+ muted: colors.blue[950],+ subtle: colors.blue[800],+ DEFAULT: colors.blue[500],+ emphasis: colors.blue[400],+ inverted: colors.blue[950],},background: {- muted: "#131A2B", // custom- subtle: "#1f2937", // gray-800- DEFAULT: "#111827", // gray-900- emphasis: "#d1d5db", // gray-300+ muted: "#131A2B",+ subtle: colors.gray[800],+ DEFAULT: colors.gray[900],+ emphasis: colors.gray[300],},border: {- DEFAULT: "#1f2937", // gray-800+ DEFAULT: colors.gray[800],},ring: {- DEFAULT: "#1f2937", // gray-800+ DEFAULT: colors.gray[800],},content: {- subtle: "#4b5563", // gray-600- DEFAULT: "#6b7280", // gray-600- emphasis: "#e5e7eb", // gray-200- strong: "#f9fafb", // gray-50- inverted: "#000000", // black+ subtle: colors.gray[600],+ DEFAULT: colors.gray[500],+ emphasis: colors.gray[200],+ strong: "hsl(var(--foreground))",+ inverted: colors.gray[950],},},border: "hsl(var(--border))",@@ -134,7 +157,7 @@ module.exports = {sm: "calc(var(--radius) - 4px)",},fontSize: {- "tremor-label": "0.75rem",+ "tremor-label": ["0.75rem", { lineHeight: "1rem" }],"tremor-default": ["0.875rem", { lineHeight: "1.25rem" }],"tremor-title": ["1.125rem", { lineHeight: "1.75rem" }],"tremor-metric": ["1.875rem", { lineHeight: "2.25rem" }],