Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

refactor(web): colour is numbered steps, and every call site moved onto it (#15839)

moaaz01c29b6c147b
diff --git a/brain/knowledge/decisions/000035-platform-admin-is-fifteen-pages-derived-from-one-registry.md b/brain/knowledge/decisions/000035-platform-admin-is-fifteen-pages-derived-from-one-registry.md
index da5a4b3b20e..5368f336bf3 100644
--- a/brain/knowledge/decisions/000035-platform-admin-is-fifteen-pages-derived-from-one-registry.md
+++ b/brain/knowledge/decisions/000035-platform-admin-is-fifteen-pages-derived-from-one-registry.md
@@ -134,9 +134,9 @@ so a plain button is `{gate.crown ?? <Plus className="size-4" />}` and only ever
exception is `AnimatedIconButton`, whose icon is a prop rather than a child because it animates on hover:
a crown has no animation to drive, so the locked case renders a plain `Button` instead.
-`gate.crown` carries `text-primary-foreground/90`, which is white, so it only reads on the purple primary
-button it was written for and disappears on an `outline` one. `Customize Selector` is outline and renders
-its own `<Crown className="size-3.5 shrink-0 text-primary" />` instead, matching the sidebar crowns, while
+`gate.crown` carries `text-on-accent/90`, the ink measured for the brand solid, so it only reads on the
+filled button it was written for and disappears on an `outline` one. `Customize Selector` is outline and renders
+its own `<Crown className="size-3.5 shrink-0 text-accent-11" />` instead, matching the sidebar crowns, while
still taking `open` and `dialog` from the hook. Take the behaviour from the gate and the colour from the
button until the helper learns to inherit `currentColor`.
diff --git a/brain/knowledge/design-system/colour.md b/brain/knowledge/design-system/colour.md
new file mode 100644
index 00000000000..26005cf4853
--- /dev/null
+++ b/brain/knowledge/design-system/colour.md
@@ -0,0 +1,165 @@
+---
+icon: 🎨
+---
+
+# Colour
+
+Five scales of twelve steps, plus six exceptions. **There is no semantic layer**: the step number
+*is* the meaning, in both themes, and the table below is the contract.
+
+```
+--gray-1 … --gray-12 the neutral, tinted toward the brand hue
+--accent-1 … --accent-12 the brand
+--success- / --warning- / --danger- 1 … 12
+```
+
+| Step | Job |
+| --- | --- |
+| 1 | app background — and ink on an inverse ground |
+| 2 | subtle background — the sidebar, the flow canvas |
+| 3 | component background — a badge, a chip, a tinted banner |
+| 4 | that component, hovered |
+| 5 | that component, active or pressed |
+| 6 | subtle border — dividers and hairlines |
+| 7 | component border |
+| 8 | strong border, and the focus ring |
+| 9 | solid fill — a button, a filled shape; and, on `gray` only, the one ink allowed to be quiet, for decoration that owes 3:1 rather than 4.5:1 (a chevron, an empty-state glyph). `accent-9` is the tenant's hex, so it owes nothing as ink |
+| 10 | defined, but no call site uses it: a solid hovers as step 9 at 90% opacity, because `accent-9` is the tenant's hex and step 10 is not derived from it |
+| 11 | low-contrast text, **and every thin coloured mark** — status dots, meter lines; a filled block such as a health bar is step 9 |
+| 12 | high-contrast text |
+
+Steps **1 and 12 are an inverse pair**: `bg-gray-12 text-gray-1` is a dark chip in light mode and a
+light chip in dark mode, correct in both, with no `dark:`. `inverse`, the focus ring, the canvas and the
+divider need no names: they are `gray-12`, `accent-8`, `gray-2` and `gray-6`. A hover is stronger than
+the thing it hovers: a row on the page hovers to `gray-3` or `gray-4`, a `gray-3` component to `gray-4`. A
+chip inside a row that hovers or selects sits on `gray-5`, so neither state swallows it.
+
+A thin mark (a dot, a meter line) is step 11, because step 11 already owes 4.5:1 on every ground in both
+themes and matches the label beside it. A filled block, such as a health bar, is step 9: at that size
+step 11 reads dark in light mode and washed out in dark, and the solid is what the block is.
+
+## The six exceptions
+
+Each exists *because* no step can do its job. A new one has to pass the same test: if a step, or a step
+inside an island, can do it, it is not an exception.
+
+| Token | Why it cannot be a step |
+| --- | --- |
+| `--panel` | elevation runs opposite ways: a raised surface is whiter than the page in light and lighter in dark |
+| `--on-accent` | `accent-9` is the tenant's hex, so the label on it is measured at runtime — white for a violet brand, black for a yellow one |
+| `--on-success` `--on-warning` | dark in both themes: `success-9` and `warning-9` are bright solids in light and dark, and no step is dark in both. With a status seed, it is measured against the seed like `--on-accent` |
+| `--on-danger` | white in both themes; `gray-1` measures under 4.5:1 on the dark `danger-9`. With a status seed, it is measured against the seed like `--on-accent` |
+| `--scrim` | black at an alpha in both themes; not a member of any scale |
+
+`success-9` and `warning-9` are bright in both themes, so the health bars read as green and amber; in light mode `warning-9` is lighter than `warning-8`, the one place a light ramp is not monotonic.
+
+In light mode the page (`gray-1`) is very slightly tinted and panels are pure white, so a card lifts off
+the page by a 1.05:1 step. That is designed, not a patch.
+
+## Light and dark
+
+Light and dark are **authored independently**; dark is not an inversion of light, because an inverted
+ramp crowds the dark steps together. Dark mode is the `[data-theme='dark']` binding block in `styles.css`,
+not overrides in components.
+
+## White-labelling
+
+A platform's `primaryColor` drives the brand. `brandColors.cssVariables` turns it into a
+**fixed four-key seed** written on `<html>` in both themes: `--brand-h`, `--brand-c`, `--accent-9` (the
+tenant's hex, with a `#` added if it was missing) and `--on-accent` (white or black, whichever measures higher against it). The rest
+of the accent scale and the grey tint derive from hue and chroma in CSS, through plain `var()` inside
+`oklch()` — no relative colour syntax. The three status hues default to literals on `:root`: a tenant's purple must not tint
+the danger red. A black, grey or white brand colour has no hue, so it gets `--brand-c: 0` and
+the accent scale and grey tint render neutral. Each colour in the *Colors* block has a live preview under its picker (its button and key steps, in the viewer's own theme; `color-preview.tsx`). The label on every seeded solid is white or black, whichever measures higher, which always clears 4.5:1.
+
+An admin can also **seed each status scale**: danger, warning and success, set under Platform → General →
+*Colors* and stored under `themeColors.status` (`danger`, `warning`, `success`).
+`brandColors.statusCssVariables` gives each chosen hex the same four keys (`--danger-h`, `--danger-c`,
+`--danger-seed` for step 9, `--on-danger-seed` for its label); a scale with no seed keeps its stock values,
+because every seeded step falls back to them. Only the lightness ladder is ours, so step 11 keeps 4.5:1 at
+any hue: `test/styles/status-scales.test.ts` sweeps every hue in both themes. The status hues are still
+never *derived* from the brand. Only an explicit seed moves them. The `theme` flag serves `themeColors.status`
+as `statusColors`. The seeds live under their own key because the previous form wrote `danger`, `warn` and
+`success` with pre-filled defaults the admin never chose; those fields, like the rest of `themeColors`, are
+kept as stored and never rendered, so nothing has to guess which values were real.
+
+## Categorical colour
+
+A scale answers *"what does this mean?"*. For *"which one is this?"* — projects, notes, avatars, chart
+series, tag categories — use the twelve-hue swatch set: `swatch-1` … `swatch-12`, each with `-mark`,
+`-surface`, `-ink`, `-line` and `-on`. Every member is solved to the same contrast (3.2:1 on white for a
+mark) under a shared chroma ceiling, rather than to the same lightness and chroma, and a
+`@media (color-gamut: p3)` block re-runs the solve against the wider gamut, so most hues gain chroma and
+the sRGB-starved ones (teal, cyan, blue) gain the most.
+
+Store the **name** (`ColorName.YELLOW`), never the rendered value, so the value is free to differ per
+theme. A name maps to the same swatch for projects (`PROJECT_COLOR_SWATCH`) and notes. There are four warm
+names and three warm swatches, so `ORANGE` and `DEEP_ORANGE` share swatch 5 and no name uses swatch 7; `PICKABLE_COLOR_NAMES` leaves `DEEP_ORANGE` out of the pickers so
+they show no duplicate. Charts sample swatches 1, 5, 9, 3 and 7 through `--chart-1..5`. `swatchUtils.varsForSeed` picks a swatch deterministically from any string.
+
+## Logos
+
+**`<LogoPlate>` is the way to render a logo we did not make in a list, picker or card.** The sign-in
+provider icons (Google, SAML) are drawn for both grounds, and a tenant's own uploaded logo renders as-is. It is a
+light island (`data-theme="light"`, `bg-gray-1`, `text-gray-12`), so the chip stays light and a black mark stays visible in
+dark mode; a fallback glyph or monogram inside it inherits the dark `gray-12`. A border or ring passed in `className`
+resolves in the island's light values. `className` styles the plate and `innerClassName` the box that holds the image
+inside it (a percentage padding would resolve against the plate's *parent*). `PieceIcon` is a tooltip wrapper
+over it.
+
+Our *own* logo is not a plate: `activepieces-wordmark.tsx` inlines it so the lettering is `currentColor`.
+It renders only while the platform uses the stock logo; an uploaded logo renders as-is.
+
+`ImageWithFallback` splits its props across two elements: `className` is the box (size, radius, ring —
+the wrapper clips) and `imageClassName` the image. On failure it renders a monogram from `alt` with
+`role="img"`, and the error clears when `src` changes.
+
+## Where raw colour is allowed
+
+- **Shadows** — the alpha casts in the `--shadow-*` tokens and the few hand-written `shadow-[…]` values. A
+ shadow is darkness at an alpha, not a member of any scale.
+- **PNG exports** — `EXPORT_BACKGROUND` in `impact-utils.ts` and the fallback in
+ `flow-screenshot-utils.ts`. A downloaded image wants a light ground whatever the theme.
+- **Illustration** — the doodle palettes in `flow-build-card.tsx`, the window-button dots in
+ `tool-shimmer-pills.tsx`, and `#fff` stops inside SVG luminance masks, which must be white to work as masks.
+- **Colour-picker defaults** — stored data, not UI colour.
+- **User-content previews** — `bg-white` on the SVG and HTML preview frames, which render content
+ authored against a white page.
+- **The wordmark's mark** — keeps the literal Activepieces purple; the lettering is `currentColor`.
+- **The builder minimap** — fills each block with the average colour of its step's logo, so a long flow
+ stays readable at thumbnail size. It composites through `--panel` and falls back to `--gray-11`. This is
+ the only place colour is still sampled from an image; do not add another.
+- **Older effects** — the `.recurring-chip`, gradient-border and note-scrollbar colours in `styles.css`, and
+ the sheen, shimmer and ripple glows in `tag-with-bright.tsx`, `automatic-trial-activation.tsx`,
+ `automations-empty-state.tsx` and `theme-provider.tsx`. They predate the scales and read the same in both
+ themes; move one onto steps when you next touch it.
+
+## Rules
+
+- **No `dark:` colour utility in application code** (`dark:bg-`, `dark:text-`, `dark:border-` …). If the
+ system works, one is either redundant or a bug. It is legal in `src/styles.css` and in the shadcn
+ primitives under `src/components/ui/`. A `dark:` on something tokens cannot express, like an opacity,
+ is fine. So is a `dark:` that cancels a primitive's own `dark:` tint on a bare use (the chat answer
+ `Input`, the time and AM/PM segments, the sign-in fields): nothing else outranks the primitive's `dark:`.
+- **Dark mode is `[data-theme='dark']` on `<html>`, not a `.dark` class.** Anything injecting a
+ theme-scoped selector at runtime must use the attribute — see `THEMES` in `components/ui/chart.tsx`.
+- **A surface that is light in both themes is a light island** — `data-theme="light"`, then ordinary steps
+ inside. `<LogoPlate>` and the plan card are the two.
+- **A surface that is dark in both themes is a dark island** — `data-theme="dark"` on it, then ordinary
+ steps inside (the terminal, the function tooltip, anything on `--scrim`). Never `bg-gray-12`: that is the
+ inverse ground, near-white in dark mode, and step 11 is not tuned for it. The seed defaults sit on `:root`
+ only, so an island keeps the tenant's brand (seeds are written on `<html>`, so every island inherits them); `dark:` resolves to the nearest island, one level deep.
+- **Read `resolvedTheme`, never `preference`,** to decide what something looks like. `preference` can
+ be `'system'`, and comparing it to `'dark'` is how the code editors ended up light in a dark app.
+- **Never tint a surface or border with a solid at an opacity.** `bg-accent-9/10` is `accent-3` and `border-danger-9/40` is
+ `danger-7`: use the step. A solid's own hover (`bg-accent-9/90`) is fine, and so is an opacity on an ink
+ (`text-gray-12/80` is a prominence no step provides). A translucent *neutral* (`bg-gray-3/50`,
+ `border-gray-6/60`) is tolerated where it already exists; new code picks a step. Rings,
+ glows and overlays that must show what is under them (focus and invalid rings, the canvas selection box)
+ are not surfaces, and the `src/components/ui/` primitives keep their shadcn idioms.
+- **An invalid field's border is `danger-9`** (`aria-invalid:` in the primitives). Step 8 falls under 3:1 on
+ the light page, and an error has to read at least as strongly as the default border. Banners and badges
+ keep their step-7 frame.
+- **A selected item's border is on the accent scale** (`accent-7` to `accent-9`); a neutral selection (a
+ filter chip, an inverse `gray-12` box) stays neutral. Other borders stay on 6–8.
+- **The stock Tailwind palette still resolves.** Not using it is a convention, not a build error.
diff --git a/brain/knowledge/design-system/index.md b/brain/knowledge/design-system/index.md
new file mode 100644
index 00000000000..cd8d13600f3
--- /dev/null
+++ b/brain/knowledge/design-system/index.md
@@ -0,0 +1,52 @@
+---
+icon: 🎨
+---
+
+# Design System
+
+How the web app's visual language is defined. Colour is fully specified on its own page, *colour*;
+this page is the glossary around it.
+
+**Step** — a position 1–12 in a colour scale. The number *is* the meaning, in both themes; there are no
+semantic aliases. See *colour* for the job of each step. _Avoid_: "token" for a step, "shade", "ramp step"
+
+**Scale** — one of the five twelve-step ladders: `gray`, `accent`, `success`, `warning`, `danger`.
+_Avoid_: "palette" (that is the swatch set), "ramp"
+
+**Exception** — one of the six named tokens that exist because no step can do their job (`--panel`,
+`--on-accent`, `--on-success`, `--on-warning`, `--on-danger`, `--scrim`).
+
+**Seed colour** — a hex a platform picks. `primaryColor` seeds the accent scale and the grey tint; the optional
+danger, warning and success colours (`themeColors.status`) each seed their own scale.
+
+**Seed** — the four-key set `brandSeed` writes on `<html>` from a seed colour: for the brand `--brand-h`,
+`--brand-c`, `--accent-9`, `--on-accent`; for a status scale `--danger-h`, `--danger-c`, `--danger-seed`,
+`--on-danger-seed` (and the same for warning and success). Everything else derives from them in CSS.
+
+**Mark** — a coloured shape carrying no text: a status dot, a meter, a progress bar. Step 11, except a
+filled block such as a health bar, which is the solid, step 9.
+
+**Swatch** — the twelve-hue *categorical* set (`swatch-1` … `swatch-12`), for "which one is this?"
+rather than "what does this mean?" — projects, avatars, chart series. Not a scale.
+
+**Plate** — the light chip a third-party logo sits on. It is a light island, so it stays light in both
+themes, because we cannot recolour someone else's artwork. `<LogoPlate>` renders one.
+
+## Gotchas
+
+- `styles.css` points the `--shadow-*` theme keys that change per theme at a plain custom property
+ (`--shadow-edge: var(--edge)`). Tailwind copies a `--shadow-*` value into the utility literally, so a dark override of
+ the theme key itself never lands; the indirection is what lets shadows change per theme.
+- `PROJECT_COLOR_PALETTE` in `@activepieces/shared` reads `--swatch-N-on` through JS, not a Tailwind
+ class, so grepping for the class says it is dead when it is not.
+- Tailwind emits nothing for an unknown utility, and an unresolvable `var()` makes its declaration invalid, so a
+ removed colour token never fails the build. Web lint does: `scripts/check-tailwind-classes.mjs` fails on any class
+ Tailwind cannot generate and any `var()` that nothing defines.
+
+## Key files
+
+- `packages/web/src/styles.css` — the scales, exceptions, swatches and both theme blocks
+- `packages/core/shared/src/lib/core/common/` — `brandColors.cssVariables` and `statusCssVariables` (compute the seeds; `lib/brand-seed.ts` writes them) and
+ `swatchUtils`
+- `packages/web/src/components/custom/logo-plate.tsx` — the one way to render a third-party logo
+- `packages/web/src/lib/syntax-theme.ts` — the one place the code and JSON viewers pick a theme
diff --git a/brain/knowledge/engineering/web-feature-anatomy.md b/brain/knowledge/engineering/web-feature-anatomy.md
index ed81c7b2979..1c9e3fd8558 100644
--- a/brain/knowledge/engineering/web-feature-anatomy.md
+++ b/brain/knowledge/engineering/web-feature-anatomy.md
@@ -99,7 +99,7 @@ way back was to stash the handful of intended edits, `git checkout` the package,
- **`isLoading` is false while a failed query is retrying, so a retry button gated on it looks dead.** React Query sets `isLoading = isPending && isFetching`; once a query has errored its status is `error`, not `pending`, so `refetch()` raises only `isFetching`. Any skeleton or spinner keyed on `isLoading` therefore never fires on a retry — the user clicks and nothing visibly happens until the request resolves. `DataFetchErrorState` handles this itself rather than pushing `isFetching` out to every caller: it awaits whatever `onRetry` returns and drives the `Button`'s own `loading` prop, which is also the only option that works on the surfaces that have no skeleton branch to reuse. A retry wired to `invalidateQueries` needs the promise returned (`return Promise.all([...])`), or the spinner flashes for a single tick.
- **`useWarnBeforeLosingChanges`'s `standDown` ref has to be set *after* the destructive request succeeds, not before it.** `components/custom/leave-without-saving.tsx` guards a dirty panel against navigation and `beforeunload`; `standDown` is how a deliberate exit (deleting the thing being edited) avoids prompting on its own way out. Setting it before `await`ing the delete disarms the guard for the whole request, so a refresh or tab close mid-flight discards the draft silently — and if the delete then fails, the row is still there and the edits are not. A `finally` that restores the ref does not help: the window has already passed. The ordering only works if the mutation and the navigation are separable, so the panel can stand down between them — keep the delete prop to the mutation alone and let the panel call its own `onBack`, rather than handing it one callback that does both.
-- **`Button`'s `keyboardShortcut` does not stop firing while the button is loading, and its listener lags a render behind.** Two separate gaps in `components/ui/button.tsx`. The element gets `disabled={disabled || loading}`, but `useKeyboardShortcut` was handed the raw `disabled` prop, so a button mid-request still ran its handler on ⌘/Ctrl+key — latent for years because every caller before the AI Center Save button was a non-loading `variant="outline"` button. Fixing that still leaves a window: the listener is registered in a passive effect, which runs after paint, so between a click and the effect re-running the old closure keeps `disabled=false`. Anything whose handler must not run twice (a mutation) needs its own guard set synchronously inside the handler — a ref, not a `disabled` prop — because no prop can close an effect-timing window. Separately, `Shortcut` renders in `text-muted-foreground`, which is invisible on a filled button; `Button` now tints it per variant, so pass nothing.
+- **`Button`'s `keyboardShortcut` does not stop firing while the button is loading, and its listener lags a render behind.** Two separate gaps in `components/ui/button.tsx`. The element gets `disabled={disabled || loading}`, but `useKeyboardShortcut` was handed the raw `disabled` prop, so a button mid-request still ran its handler on ⌘/Ctrl+key — latent for years because every caller before the AI Center Save button was a non-loading `variant="outline"` button. Fixing that still leaves a window: the listener is registered in a passive effect, which runs after paint, so between a click and the effect re-running the old closure keeps `disabled=false`. Anything whose handler must not run twice (a mutation) needs its own guard set synchronously inside the handler — a ref, not a `disabled` prop — because no prop can close an effect-timing window. Separately, `Shortcut` renders in `text-gray-11`, which is invisible on a filled button; `Button` now tints it per variant, so pass nothing.
- **Exported types and constants belong at the *end* of the file**, after the components and logic. Reading a file should start with what it does, not its type declarations.
- **The web has two independent "something went wrong" surfaces, and they cover different failures.** `GlobalErrorBoundary` (`app/components/global-error-boundary.tsx`) is a React error boundary: it catches *render* crashes and replaces the page with a reload/go-home fallback. It structurally cannot see a React Query failure — a failed query is stored as state, not thrown during render, unless the query opts into `throwOnError` or Suspense. Nothing global covers that async gap any more: a failed primary query is reported by the surface itself, through `DataFetchErrorState`. The two landed independently (the query surface first, in #12476 for tables; the boundary later, in #13743) and were never calibrated against each other, so for a long stretch a single 404 got a *blocking modal with raw JSON* while an actual app crash got a friendly reload button. Keep that ordering right: a failed fetch on a page that still renders is an in-place placeholder, a dead render tree is the full-page fallback. A modal is only correct when the error payload is something the user must read and copy — flow publish showing the trigger piece's stderr (`flow-hooks.tsx`) is the one case that still earns `ApErrorDialog`.
- **`FriendlyErrorView` is the one renderer for a `FriendlyPieceError` — reach for it before hand-rolling a message line.** `app/builder/data-display/friendly-error-view.tsx` already turns the parsed payload into a status-keyed headline and hint (401 → "Authentication failed" + "Try reconnecting the account…"), an `HTTP {status}` badge, a labelled message block that prefers `apiMessage` over `message`, and its own `Technical Details` disclosure; it is wired to the run-details and test-step panels. For an auth failure the status-keyed *hint* is the part that actually prevents a misdiagnosis — naming whose credentials to fix beats quoting the third party's own sentence, which is what made a rejected Linear key read to a customer as their Activepieces session expiring (Pylon 5833). Three things make it non-trivial to drop into `ApErrorDialog` and all three are local fixes: it renders a second `Technical Details` next to the dialog's own, its disclosure shows `raw ?? payload` so it drops `standardOutput` (the piece's stderr, often the useful half of a failed trigger enable), and `useChangeFlowStatus` has only `flowId` so `pieceDisplayName` falls back to "What the service said". Fix those rather than growing a parallel renderer — a second one means the `message`-is-JSON trap (see *building pieces*) has to be fixed twice.
@@ -110,10 +110,10 @@ way back was to stash the handful of intended edits, `git checkout` the package,
- **An error state on the wrong query is worse than missing it.** On an auxiliary query it accuses a page that was working fine; on the primary query, omitting it leaves the user staring at an empty table with no explanation. This surface has been rebuilt twice: a blocking modal with raw JSON (`showErrorDialog`), then a global toast keyed on `meta.errorToastEntity`, and now an in-place placeholder and nothing else. Each move was driven by the same report — a failed fetch reading to customers as deleted data — and the toast went because it either duplicated the placeholder or, on its own, left the empty table unexplained.
- **A `data ?? []` default turns a failed query into an empty state, and nothing else will catch it.** Defaulting the data away means `isError` is the only remaining evidence the fetch failed — the body just renders "nothing here", which is the data-loss illusion this whole surface exists to prevent, and since the global toast was removed there is no second line of defence. Branch on `isError` *before* the empty state, always. `api.isApError(error, ErrorCode.X)` is how you tell an access denial apart from a network blip — note it reads the *response body's* `code`, so it needs the server's `ActivepiecesError` code, not an HTTP status.
- **A ref assigned during render (`const ref = useRef(x); ref.current = x`) is stale inside socket/event callbacks.** The value only advances when React commits a render, so two events handled before that commit both read the same base — a read-modify-write (merging a step into `run.steps`) silently drops the earlier event. Read the zustand store directly instead: `useBuilderStore().getState()` (`app/builder/builder-hooks.ts`) always returns current state. Bit the test-flow widget's progress merge, PR #14453.
-- **Builder overlays share one stacking context, so a big `z-` wins over everything — including portalled popovers.** Nothing between an overlay in the canvas panel and `<body>` creates a stacking context (the middle panel is `relative` + `z-auto`; `ResizablePanel` sets only flex/overflow), so a canvas child's `z-index` competes directly with Radix portals. The working ladder: canvas `z-30` (opaque `bg-builder-background` — anything below it is invisible), header and floating corner chrome `z-40`, data selector / canvas controls / popovers `z-50`. That is why the powered-by note at `z-10000` painted over the piece selector.
+- **Builder overlays share one stacking context, so a big `z-` wins over everything — including portalled popovers.** Nothing between an overlay in the canvas panel and `<body>` creates a stacking context (the middle panel is `relative` + `z-auto`; `ResizablePanel` sets only flex/overflow), so a canvas child's `z-index` competes directly with Radix portals. The working ladder: canvas `z-30` (opaque `bg-gray-2` — anything below it is invisible), header and floating corner chrome `z-40`, data selector / canvas controls / popovers `z-50`. That is why the powered-by note at `z-10000` painted over the piece selector.
- **The flow "download as image" only captures `.react-flow__viewport`.** `flowScreenshotUtils` (`flow-canvas/utils/flow-screenshot-utils.ts`) clones that one element into an SVG, so anything outside it — the dot-grid background, the powered-by note, canvas controls — is absent unless handled explicitly. Two seams: mark in-viewport chrome you want *omitted* (step chevron, badges) with `data-flow-screenshot-exclude`; anything *outside* the viewport you want *included* has to be redrawn onto the composited 2D canvas in `composeImageWithCanvasBackground` (that's how the background dots and the powered-by mark get there).
- **The piece-selector popover sizes its list to fit the viewport, but the fit needs slack or it clips against the screen edge.** `useAdjustPieceListHeightToAvailableSpace` (`features/pieces/utils/piece-selector-utils.ts`) measures the room above vs. below the trigger, renders the list on whichever side has more, and clamps the height to `[MIN 100, MAX 300]`. That measurement alone still let the popover butt flush against the top/bottom of the builder on short screens (the Radix content + its own padding/offset overran the raw available space). The fix is a `PIECE_SELECTOR_CLIPPING_THRESHOLD` (20px) subtracted from the computed `listHeight` at the call site in `builder/pieces-selector/index.tsx`, leaving a margin so the popover never touches the viewport edge. If it clips again, that constant — not the min/max clamp — is the lever.
-- **`Alert`'s `warning` and `destructive` variants ship without a background tint, so a tinted banner has to add one at the call site.** `components/ui/alert.tsx` gives `primary` and `success` a `bg-*-100/10` wash but leaves `warning` and `destructive` transparent (`destructive` sets `bg-card`, which reads as a plain panel on a page background, and unlike `warning` it sets no border colour either). A banner that needs to look like a banner rather than a bordered paragraph passes `bg-warning-100/10` / `bg-destructive-100/10 border-destructive/50` itself — that is what the credits usage alert does. Don't "fix" it in the variant without looking: eight-plus existing warning alerts sit inside dialogs on card backgrounds and were designed against the untinted look. Note also that `--warning-100` and `--destructive-100` are *not* redefined in the `.dark` block of `styles.css` (unlike `--primary-100`), so in dark mode both tints are a very pale hue at 10% over near-black — subtle by accident, not by design.
+- **`Alert`'s `warning` and `destructive` variants ship without a background tint, so a tinted banner has to add one at the call site.** `components/ui/alert.tsx` gives `primary` and `success` a step-3 fill (`bg-accent-3`, `bg-success-3`) but leaves `warning` transparent and `destructive` on `bg-panel`, which reads as a plain panel and sets no border colour either. A banner that needs to look like a banner passes `bg-warning-3` / `bg-danger-3 border-danger-7` itself — that is what the credits usage alert does. Don't "fix" it in the variant without looking: eight-plus existing warning alerts sit inside dialogs on card backgrounds and were designed against the untinted look.
- **`npx turbo run serve --filter=web -- --mode=cloud` cannot do OAuth2 connections.** The provider redirects to `cloud.activepieces.com` after sign-in instead of your local frontend. Use API-key or basic-auth connections, or run a fully local backend.
- **`--mode=cloud` also floods the terminal with `[vite] http proxy error: /ingest/... ETIMEDOUT 127.0.0.1:3000`.** The mode only redirects the API (`API_BASE_URL` → `https://cloud.activepieces.com` in `lib/api.ts`); PostHog still posts to the *relative* `api_host: '/ingest'` (a same-origin reverse proxy so ad blockers don't drop ingestion — `providers/telemetry-provider.tsx`, mirrored in prod by the `fastifyHttpProxy` in `server.ts`). Vite proxies `/ingest` to `127.0.0.1:3000`, which isn't running. Cloud flags also turn telemetry *on* (`TELEMETRY_ENABLED` + `EDITION=cloud`), unlike a local CE backend — so posthog-js keeps polling `/ingest/flags` and flushing `/ingest/e` every few seconds. Harmless, but note the same setup sends real dev clicks to production PostHog whenever `/ingest` does resolve; the clean fix is skipping `posthog.init` under `import.meta.env.DEV`.
- **A motion `layout` animation fired from inside a mutation's `.then()` fast-forwards and reads as a jump — defer the state write two frames.** Motion measures the FLIP offset at the commit that reorders the DOM, then tweens from the first animation frame. When the write happens synchronously after a mutation resolves, that frame arrives tens of ms late (the same commit is refetching a table, tearing down a dialog, re-rendering the page), motion sees a huge time delta and skips most of the tween: a rail row travelling 228px was measured collapsing to 103px in one 6ms frame, then limping through 13 frames. Wrapping the write in `requestAnimationFrame(() => requestAnimationFrame(write))` lets the mutation's re-render settle first, and the same interaction then gives up only 7.6% on the first frame and eases properly. Two traps when checking this: driving the write yourself from a console eval runs on a *quiet* main thread and always looks smooth, so it proves nothing — reproduce through the real UI action; and a route change in the same tick (creating a flow navigates straight to the builder) interrupts the projection outright, which no deferral fixes.
@@ -161,12 +161,12 @@ way back was to stash the handful of intended edits, `git checkout` the package,
- **Resolving a `translation.json` merge conflict is where that rule is hardest to keep and most worth keeping.** Both sides append to a flat map, so any long-lived web branch conflicts here, and the obvious resolution is to parse both sides and dump the union. That loses the duplicates and escapes exactly as above. It also has a three-way trap of its own: keeping every key that is in *ours* resurrects the keys main **deleted**, because our side never removed them either. Merge as main's bytes plus only the keys our side actually added (`in ours, not in the merge base`), appended as text before the closing brace, then confirm `git diff origin/main` is purely additive. Anything else and a reviewer sees deletions in a file they expected to grow.
- **`AllowOnlyLoggedInUserOnlyGuard` calls its hooks after two early returns, and the linter only lets it.** `react-hooks/rules-of-hooks` does not flag member-expression calls, so `platformHooks.useCurrentPlatform()` / `flagsHooks.useFlags()` sail past it — but add a bare `useSomething()` there and the rule fires, correctly: `isLoggedIn()` can change between renders, so those calls really are conditional. Anything new that needs to run once a session is authenticated belongs in a null-rendering component placed inside the returned `<SocketProvider>` subtree, which mounts only after the guard passes. That is why automatic trial activation is `<AutomaticTrialActivation />` and not a hook.
- **The layering is lint-enforced, not just a convention.** `packages/web/.eslintrc.json` has an `import/no-restricted-paths` zone making the codebase unidirectional: `src/app` may import `src/features`, and both may import `src/lib`/`hooks`/`components`/`types`/`utils` — never the reverse (the one exception is `app/query-client.ts`). So a hook that a public route needs belongs in `src/lib`, but anything rendering a feature's components has to live in that feature; you cannot keep the pair in one `lib` file. It fails as an `import/no-restricted-paths` **error**, not a warning, so it blocks lint.
-- **Arbitrary Tailwind values for type, tracking and radius get sent back in review — `packages/web` has its own scale and it is not stock Tailwind.** There is no `tailwind.config.js`; this is Tailwind v4 and the theme lives in the `@theme` block of `src/styles.css`, which *adds* `--text-xss: 0.65rem`, *overrides* `--text-3xl` to 1.75rem and `--text-4xl` to 2rem (both smaller than stock), and derives `--radius-{sm,md,lg,xs,xss}` from a single `--radius: 0.5rem`. So `text-[13px]`, `tracking-[-0.025em]` and `rounded-[11px]` are not just style nits — they sit *between* real tokens and drift the page off the scale. Map them: 10–11px → `text-xss`, 11.5–12.5px → `text-xs`, 13–13.5px → `text-sm`, 15–15.5px → `text-base`; negative tracking → `tracking-tight`, uppercase-eyebrow tracking → `tracking-wide`/`wider`; any `rounded-[9–11px]` → `rounded-md`. **A colour handed over as a hex is usually a token at low opacity, and hardcoding it breaks dark mode**: `styles.css` redefines `--primary` inside `.dark` (violet `257 74% 57%` becomes blue `210 90% 50%`), so a light-mode lavender sits under dark-mode text unchanged. Composite the hex against the background before reaching for `bg-[#...]`; a design handing over `#f6f3fe` turned out to be `bg-primary/6` to within one unit per channel. Layout constraints are the exception and stay arbitrary — `max-w-[628px]` for a reading measure or `lg:w-[344px]` for a sidebar have no token equivalent and are idiomatic. Fractional spacing (`size-5.5`, `size-8.5`, `size-13`) is valid in v4 and beats `size-[22px]`, but **only at half-steps** — v4 generates `.5` and whole numbers, so a finer fraction like `ml-3.9` produces no rule at all and the property computes to `0`, with no build error and no lint error to say so. If a measured value falls between half-steps, either derive it from the geometry and round to the nearest real step, or use the arbitrary value; never invent a decimal and assume it took. Read the computed style back in the browser rather than trusting the class name. Neither eslint nor `tsc` catches any of this, so it only ever surfaces in review — the mapping is written up in the *Tailwind / Styling* section of `packages/web/AGENTS.md` so agents meet it before writing the class. Above 15.5px there is no px mapping, because heading sizes are a per-surface decision: copy the token the neighbouring heading on the same page already uses (a `text-[22px]` page heading becomes the `text-xl` its sibling section headings use) rather than rounding to the closest number.
+- **Arbitrary Tailwind values for type, tracking and radius get sent back in review — `packages/web` has its own scale and it is not stock Tailwind.** There is no `tailwind.config.js`; this is Tailwind v4 and the theme lives in the `@theme` block of `src/styles.css`, which *adds* `--text-xss: 0.65rem`, *overrides* `--text-3xl` to 1.75rem and `--text-4xl` to 2rem (both smaller than stock), and derives `--radius-{sm,md,lg,xs,xss}` from a single `--radius: 0.5rem`. So `text-[13px]`, `tracking-[-0.025em]` and `rounded-[11px]` are not just style nits — they sit *between* real tokens and drift the page off the scale. Map them: 10–11px → `text-xss`, 11.5–12.5px → `text-xs`, 13–13.5px → `text-sm`, 15–15.5px → `text-base`; negative tracking → `tracking-tight`, uppercase-eyebrow tracking → `tracking-wide`/`wider`; any `rounded-[9–11px]` → `rounded-md`. **A colour handed over as a hex is usually a step, and hardcoding it breaks dark mode**: every step but the brand solid is rebound in the `[data-theme='dark']` block, so a light-mode lavender hardcoded as hex sits under dark-mode text unchanged. Match the hex to the nearest step (a pale lavender is `accent-2` or `accent-3`) rather than reaching for `bg-[#...]`; see *design-system/colour*. Layout constraints are the exception and stay arbitrary — `max-w-[628px]` for a reading measure or `lg:w-[344px]` for a sidebar have no token equivalent and are idiomatic. Fractional spacing (`size-5.5`, `size-8.5`, `size-13`) is valid in v4 and beats `size-[22px]`, but **only at half-steps** — v4 generates `.5` and whole numbers, so a finer fraction like `ml-3.9` produces no rule at all and the property computes to `0`, with no build error and no lint error to say so. If a measured value falls between half-steps, either derive it from the geometry and round to the nearest real step, or use the arbitrary value; never invent a decimal and assume it took. Read the computed style back in the browser rather than trusting the class name. Neither eslint nor `tsc` catches any of this, so it only ever surfaces in review — the mapping is written up in the *Tailwind / Styling* section of `packages/web/AGENTS.md` so agents meet it before writing the class. Above 15.5px there is no px mapping, because heading sizes are a per-surface decision: copy the token the neighbouring heading on the same page already uses (a `text-[22px]` page heading becomes the `text-xl` its sibling section headings use) rather than rounding to the closest number.
- **`npx prettier --check` lies about `packages/web` — it flags files nobody has touched, so never treat it as a gate.** Prettier is not in any CI workflow, and the root `.prettierrc` is a single `{"singleQuote": true}` while the resolved binary is prettier **2.8.4**, whose `trailingComma` default is `es5`. The checked-in code is formatted by prettier 3 (via the editor / eslint integration), which defaults to `all` — so every multi-line call with a trailing comma reads as a "code style issue". Running `--check` on a file straight out of `git show HEAD:` reproduces it. If you want to know whether your own edit is formatted, diff `npx prettier <file>` against the file and check the hunks are yours; the pass/fail verdict is meaningless. `npx turbo run lint --filter=web` is the real gate.
- **A date test with hardcoded `Z` fixtures is a false green — CI runs UTC, and both `dayjs().isSame(x, 'day')` and `formatUtils.formatDate` are *local*.** Freezing the clock with `vi.setSystemTime(new Date('…Z'))` and then asserting against a literal `'2025-09-15T00:30:00Z'` only holds where local time is UTC. `grant-utils.test.ts` on [#15079](https://github.com/activepieces/activepieces/pull/15079) was 3/3 green in CI and on `TZ=UTC`, 1 failed on `TZ=America/New_York` (`00:30Z` is the *previous* local day, so "Active today" flips to "Last used Yesterday"), 2 failed on `TZ=Pacific/Honolulu` (the second being `formatDate` rendering `Aug 11` where the test asserted `Aug 12`). Nobody in the Americas can run the suite clean, and nothing in CI will ever tell you. Derive every fixture from the frozen clock instead of writing a literal — `dayjs(NOW).startOf('day').add(30, 'minute')`, `dayjs(NOW).subtract(34, 'day')` — and assert with the same local formatter the code uses (`earlier.format('MMM D')`), so fixture and assertion move together in any zone. Check any new date test with `TZ=America/New_York` and `TZ=Pacific/Honolulu` before pushing; those two straddle UTC on both sides and catch it. The production `isSame(…, 'day')` is *correct* — a user's "today" is their own day — so the bug is always in the test, never in the formatter.
- **`ConfirmationDeleteDialog`'s `entityName` is a required prop that renders nowhere unless you also pass `showToast` — 25 of its 30 call sites compute a label and throw it away.** `components/custom/delete-dialog.tsx` mentions `entityName` three times: the prop type, the destructure, and one `toast.success(t('Removed {entityName}', …))` sitting inside `if (showToast)`. `showToast` is optional and there is no default, so every caller that omits it (or passes `false`) gets no toast and no other use of the value. The dialog body renders `title` and `message` only, so the confirmation never names what is about to be deleted. `project-member-card.tsx` builds `` `${firstName} ${lastName}` `` for nothing; `api-keys/index.tsx` passes `t('API Key')` for nothing. Nothing catches it — the prop is required, so TypeScript is satisfied, and lint has no opinion. Caught on [#15079](https://github.com/activepieces/activepieces/pull/15079), where it also made a newly added `revokedGrants` ICU plural rule unreachable in every locale — a dead translation key that `i18n:extract` will happily keep regenerating. When you want the name on screen, interpolate it into `message` yourself (`t('Revoking {entityName}. …', { entityName: label })`); passing `entityName` alone does nothing. Before adding a translation key for a dialog label, grep for where the prop you are feeding actually renders.
-- **A `bg-muted/40` panel is `#FBFBFB`, not `#F5F5F5` — an alpha wash over white is far lighter than the token it names, so a Paper mock's flat grey slab is not what the code renders.** `--muted` is `neutral-100` (`#F5F5F5`); at 40% over a white card that resolves to about `#FBFBFB`, a shade nobody would call grey. This matters when a design review compares a mock to the app: the MCP Pieces action panel *looked* like low-contrast text on a grey ground in Paper, while the shipped panel was already near-white and its real contrast problem was elsewhere (10px labels, a count at `--color-text-faint` on the mock's grey ≈ 2.3:1). Resolve the alpha before concluding anything about contrast, and prefer stating the computed hex in review. Related: for a *tinted* pill or frame, reach for the `Badge` variants (`destructive` / `warning` / `success` / `info` in `components/ui/badge.tsx`) rather than hand-rolling `bg-*-50 text-*-700` — each already carries the matching `dark:bg-*-950 dark:text-*-300` pair, which you have to write yourself otherwise because the numbered scales are not redefined in the `.dark` block.
-- **Two everyday building blocks carry a hidden per-instance cost, so a long list gets expensive well before anyone notices — and `VirtualizedList` only helps if the list has a scrollable ancestor.** `TextWithTooltip` registers its own `window` resize listener and does a `scrollWidth`/`clientWidth` layout read per instance (`components/custom/text-with-tooltip.tsx`), and `PieceIcon` renders `ImageWithColorBackground`, which fetches the logo *and* runs `fast-average-color` `getColorAsync` on it, then sets state two or three times (`components/custom/image-with-color-background.tsx`). A row using one icon and two tooltips therefore costs an image fetch, a canvas colour extraction and two resize listeners; the MCP Pieces list hits ~740 rows behind its "Show N more" button, which is a thousand-plus listeners and as many colour extractions from one click. Reach for `components/ui/virtualized-list.tsx` (already on `@tanstack/react-virtual`) rather than rolling one: its `virtualizeThreshold` defaults to 100 so a short list keeps its plain inline render, and it measures rows with `measureElement`, so variable heights work. The prerequisite is that `findScrollParent` locates an `overflow: auto|scroll` ancestor or a Radix `data-slot="scroll-area-viewport"` — dashboard pages get one from `app/components/project-layout` — because with no scroll element the virtualizer keeps its seeded viewport and never responds to scrolling. Note also that virtualization does nothing for a *re-render* storm: deriving rows in the render body (filter + sort + fresh objects) and un-memoised rows re-do that work on every keystroke, which is a `useMemo`/`memo` problem, not a windowing one.
+- **An alpha wash over white is far lighter than the colour it names, so a mock's flat grey slab is not what an opacity class renders.** A neutral at 40% over a white card resolves to a shade nobody would call grey. This matters when a design review compares a mock to the app: the MCP Pieces action panel *looked* like low-contrast text on a grey ground in Paper, while the shipped panel was already near-white and its real contrast problem was elsewhere (10px labels, a faint count ≈ 2.3:1). Resolve the alpha before concluding anything about contrast, and prefer an opaque step, which renders the same in the mock and the app. For a *tinted* pill or frame, reach for the `Badge` variants (`destructive` / `warning` / `success` / `info` in `components/ui/badge.tsx`) — each is a step-3 fill, step-11 ink and step-7 border that holds in both themes with no `dark:`.
+- **Two everyday building blocks carry a hidden per-instance cost, so a long list gets expensive well before anyone notices — and `VirtualizedList` only helps if the list has a scrollable ancestor.** `TextWithTooltip` registers its own `window` resize listener and does a `scrollWidth`/`clientWidth` layout read per instance (`components/custom/text-with-tooltip.tsx`), and `PieceIcon` wraps every logo in a Radix `Tooltip` (`features/pieces/components/piece-icon.tsx`). A row using one icon and two tooltips therefore costs an image fetch, a tooltip root and two resize listeners; the MCP Pieces list hits ~740 rows behind its "Show N more" button, which is a thousand-plus listeners from one click. Reach for `components/ui/virtualized-list.tsx` (already on `@tanstack/react-virtual`) rather than rolling one: its `virtualizeThreshold` defaults to 100 so a short list keeps its plain inline render, and it measures rows with `measureElement`, so variable heights work. The prerequisite is that `findScrollParent` locates an `overflow: auto|scroll` ancestor or a Radix `data-slot="scroll-area-viewport"` — dashboard pages get one from `app/components/project-layout` — because with no scroll element the virtualizer keeps its seeded viewport and never responds to scrolling. Note also that virtualization does nothing for a *re-render* storm: deriving rows in the render body (filter + sort + fresh objects) and un-memoised rows re-do that work on every keystroke, which is a `useMemo`/`memo` problem, not a windowing one.
- **Virtualizing an existing list silently kills every `:last-child` style on its rows.** `VirtualizedList` wraps each row in its own absolutely-positioned element, so a row that was one of many siblings becomes an only child — `last:border-b-0`, meant to drop the final separator, then matches *every* row and removes all of them. Nothing errors and the list still renders; the borders are just gone. Its non-virtualized branch wraps items in fragments, which create no DOM, so `:last-child` keeps working below the threshold and the two paths disagree — the bug appears only once the list crosses 100 items. Make the separator explicit (pass the row its index or an `isLastRow` flag) before wrapping an existing bordered list, and check the same styles for `:first-child`, `:nth-child` and sibling combinators like `space-y-*`.
- **`placeholderData: keepPreviousData` reuses the last result on *any* query-key change, so on a scoped query it renders one scope's data under another scope's label.** It is reached for to stop a debounced search flashing a skeleton on every settle, which is the transition it earns its keep on — but the key usually carries a scope segment too (a `projectId`), and switching that is treated identically. The MCP Reach tab showed the previous project's pieces under the newly picked project until the replacement landed, and for a project the user cannot see, until the denial swapped in the access alert. Nothing crosses a permission boundary (the rows were fetched and authorised under the previous scope, and the pending request can only return the new scope's data or a denial) so it is misattribution, not disclosure — but on a page whose claim is "this is what a client can reach in *this* project", an admin reads a restricted project as wide open. Scope the placeholder instead of dropping it: the v5 form takes a second argument, so `(previousData, previousQuery) => previousQuery?.queryKey[SCOPE] === scope ? previousData : undefined` keeps the search behaviour and restores the loading state on a scope switch, where it is the correct feedback anyway. Put the scope segment early in the key so the comparison is stable, and cover it with a test — the positional index is exactly what a later key reorder breaks silently. A filter-driven list (a multi-select of projects in the URL, as on the Connections tab) is *not* the same case and wants the plain `keepPreviousData`.
- **`<label for>` never gives an accessible name to a `contenteditable` div — only `aria-label`/`aria-labelledby` does.** HTML restricts `for` to *labelable* elements (`input`, `select`, `textarea`, `button`, `meter`, `output`, `progress`), so `HTMLLabelElement.control()` returns null for a `div[role="textbox"]` and no browser feeds that label into the accname computation. This bites every piece property in the builder: `FormLabel` mints `htmlFor={formItemId}` ([components/ui/form.tsx](packages/web/src/components/ui/form.tsx)) but the mention editor is a ProseMirror contenteditable, so the field is announced as "edit text, blank". The trap in verifying it is that `document.getElementById(label.getAttribute('for'))` resolving proves *id resolution*, not naming — an a11y probe built on `getElementById` reports a fix that screen readers do not see. Check Chrome DevTools → Elements → Accessibility → Computed Properties → Name instead. Attributes reach the editable node through tiptap's `editorProps.attributes`, not through `FormControl`: Radix `Slot` targets `TiptapEditor`'s wrapper div, and prosemirror-view's `computeDocDeco` copies every key of `attributes` onto the contenteditable except `class`/`style`/`contenteditable`/`nodeName`. See [#15217](https://github.com/activepieces/activepieces/pull/15217).
@@ -176,7 +176,7 @@ way back was to stash the handful of intended edits, `git checkout` the package,
- **The f(x) toggle round-trips a property's value through a text box, and only the types named in `parseDynamicValue` survive it.** Toggling f(x) *on* stringifies the current value; toggling *off* runs `formUtils.parseDynamicValue` and falls back to `getDefaultPropertyValue` on `undefined` — so any type the switch does not name has its value silently replaced by the type's default. That is how a Dropdown holding `{{ variables['X'] }}` became `null` and, toggled back, the literal string `"null"` (GIT-1767, hit by a customer on Slack's Channel field, whose own markdown tells people to click (F) and type the id). **Do not generalize the `default:` branch to "keep any string that has a mustache token"**, which is the obvious cleanup and is wrong: `ARRAY` also carries the toggle, and `array-property.tsx` calls `formValues.map(...)`, so a preserved string throws straight into the wrapper's "input value is invalid, please contact support" boundary. Add types one at a time, checking that the manual editor tolerates a string it did not produce — `SearchableSelect` and `MultiSelectPieceProperty` just fail to match and show the placeholder (the value survives, invisibly), `ColorPicker` renders any string, `Switch` shows a non-empty string as ON. Still unhandled and still losing data: `OBJECT` and `JSON`, where a plain `{a: 1}` comes back as `{}` because only the `[`/`{` JSON restore in the dropdown branch reverses `JSON.stringify`. The toggle is offered wherever `allowDynamicValues` is true in `properties-utils.tsx`, which is the list to check against — the text-like types pass `false` there because their manual editor already accepts mentions.
- **`deepEqual` from the `deep-equal` package is LOOSE by default, so matching an option is not the same as matching its type.** Verified on `[email protected]`: `deepEqual('5', 5)`, `deepEqual(0, false)`, `deepEqual('', 0)` and `deepEqual({a:'1'}, {a:1})` are all `true`. Every option-matching call in the web dropdowns relies on this (`searchable-select.tsx`, `multi-select-piece-property.tsx`, `dynamic-dropdown-piece-property.tsx`), which is fine while the result is only used to *find* a row. It stops being fine the moment you write the matched option's value back into the form: `restoreValueIfStillInOptions` restoring `matchingOption.value` instead of the stored value silently rewrites a saved `'12345'` into `12345` when a connection switch re-resolves the dropdown, and the piece — or the backend schema — then sees a number where a string was persisted. Decide deliberately: canonicalize to the option's value (what the option list says is correct) or echo back the value the form already held; if you need the strict comparison, `deep-equal` takes `{ strict: true }`. The same looseness means a stored `0` can match an option whose value is `false`.
- **CI never type checked `packages/web`, so a `tsc` error could sit on `main` while every check stayed green.** The web build script is `vite build`, and esbuild transpiles without reading types — `packages/server/{api,worker,sandbox,utils}` build with `tsc -p` and so get the type check for free from the build step, but `packages/server/engine` is bundled by esbuild and has the same hole — it carries pre-existing type errors today, so it cannot just be added to the step. Nothing else in `ci.yml` ran `tsc` against web. The failure mode is that the author's editor is the only thing that sees the error, and it reaches whoever pulls next: [#15524](https://github.com/activepieces/activepieces/pull/15524) landed a `'message' in apError.params` on a union where `INVALID_CREDENTIALS` declares `params: null`, and `main` was red in every contributor's IDE for hours with no CI signal. **Read that class of error as a runtime bug, not a lint nit**: `in` throws a `TypeError` on `null` and `undefined`, so the suppressed complaint was describing a real crash inside a React Query `onError` — the toast never rendered and the user got no feedback at all. The narrowing was honest and the cast was not: `error.response.data as ApErrorParams` promises a `params` object that a proxy 500, a gateway HTML page or a bare `{ message }` body does not carry, so the property is `undefined` at runtime no matter what the cast says. `ci.yml` now runs `npx turbo run typecheck --filter=web` (the `typecheck` task already existed in `turbo.json`) before the core build. When adding a package that builds through a bundler rather than `tsc`, give it the same explicit step.
-- **The UI theme default is `light`, not `system` — and the embed pins to light too.** `ThemeProvider` ([components/providers/theme-provider.tsx](packages/web/src/components/providers/theme-provider.tsx)) falls back to `light` when `vite-ui-theme` is unset, and the embed route calls `setThemeWithoutPersisting(event.data.data.mode ?? 'light')` so a vendor that passes no `styling.mode` never inherits the *viewer's* OS theme inside the iframe. **The embed must use the non-persisting setter**: the iframe is same-origin with the main app, so the plain `setTheme` writes the vendor's styling choice into the shared `vite-ui-theme` key and the user's own UI silently loses the theme they picked — one visit to a customer's embed and their dark mode is gone. Anything that is a *surface's* display choice rather than the user's preference wants that setter (or `forceLightMode`, which the auth pages use). The flip side is that non-persisted theme state only survives while the provider does, and `app.tsx` remounts its subtree on every language change via `<React.Fragment key={i18n.language}>` — a fresh `ThemeProvider` re-reads `vite-ui-theme` and the override is gone. So `ThemeProvider` sits *outside* that keyed fragment, and any other provider holding state that is not written to storage has to as well. The embed hits this exactly: `VENDOR_INIT` applies `styling.mode` and then `i18n.changeLanguage(locale)` inside the same handler, so a vendor asking for dark plus a non-`en` locale is the case that breaks. `system` is still a real option, but only when a user picks it in Settings > Appearance. The default used to be `system` and nobody noticed, because `system` was silently broken — it read `prefers-color-scheme` once at mount and never re-read it, so in practice everyone landed on light; fixing that (GIT-1478, #15463) flipped every dark-OS user with no stored preference into dark overnight, which is what GIT-1888 reverses. So a "dark mode is the default now" report is not a regression in the toggle, it is this default. Note the resolution happens in one `useEffect` that also depends on `branding`: with no branding loaded it returns early and *no* theme class is on `<html>` at all, which reads as light because that is the unclassed stylesheet.
+- **The UI theme default is `light`, not `system` — and the embed pins to light too.** `ThemeProvider` ([components/providers/theme-provider.tsx](packages/web/src/components/providers/theme-provider.tsx)) falls back to `light` when `vite-ui-theme` is unset, and the embed route calls `setPreferenceWithoutPersisting(event.data.data.mode ?? 'light')` so a vendor that passes no `styling.mode` never inherits the *viewer's* OS theme inside the iframe. **The embed must use the non-persisting setter**: the iframe is same-origin with the main app, so the plain `setPreference` writes the vendor's styling choice into the shared `vite-ui-theme` key and the user's own UI silently loses the theme they picked — one visit to a customer's embed and their dark mode is gone. Anything that is a *surface's* display choice rather than the user's preference wants that setter. The flip side is that non-persisted theme state only survives while the provider does, and `app.tsx` remounts its subtree on every language change via `<React.Fragment key={i18n.language}>` — a fresh `ThemeProvider` re-reads `vite-ui-theme` and the override is gone. So `ThemeProvider` sits *outside* that keyed fragment, and any other provider holding state that is not written to storage has to as well. The embed hits this exactly: `VENDOR_INIT` applies `styling.mode` and then `i18n.changeLanguage(locale)` inside the same handler, so a vendor asking for dark plus a non-`en` locale is the case that breaks. `system` is still a real option, but only when a user picks it in Settings > Appearance. The default used to be `system` and nobody noticed, because `system` was silently broken — it read `prefers-color-scheme` once at mount and never re-read it, so in practice everyone landed on light; fixing that (GIT-1478, #15463) flipped every dark-OS user with no stored preference into dark overnight, which is what GIT-1888 reverses. So a "dark mode is the default now" report is not a regression in the toggle, it is this default. The resolved theme is written as `data-theme` on `<html>` in its own effect, independent of branding, so it is set before the flags load.
- **A `.ts` and a `.tsx` of the same name can both sit in the tree, and every importer silently binds to the `.ts`.** `hooks/use-mobile.ts` and `hooks/use-mobile.tsx` were byte-for-byte identical for months: the `.ts` arrived with #11554 and nothing removed the `.tsx` that #11440 had left. Both TypeScript's Node resolution and Vite try `.ts` before `.tsx`, so all five importers of `@/hooks/use-mobile` resolved to the `.ts` and the `.tsx` was unreachable — while still being edited, linted and typechecked like live code. Nothing flags this: the import resolves, tsc is happy, and a `grep` for the symbol shows five healthy importers, which reads as proof the file is *used*. Only a reachability tool sees it. When a file looks dead but its symbol has importers, check for a same-named sibling with the other extension before concluding the tool is wrong.
- **`knip` is the reachability check for `packages/web`; `npm run knip` must exit clean.** Config in `knip.json` at the repo root, every rule at its default `error` severity — nothing is muted, so a non-zero exit means real dead code, not noise. Two settings carry the weight. `src/features/*/index.ts` are **entry points**, because a feature barrel is that feature's public surface (see *Feature folder* above) and is meant to export more than today's callers import; without that, reachability reports the convention itself as dead. `ignoreExportsUsedInFile: true` means anything it does report is referenced *nowhere*, not even in its own file. The two `ignore*` lists cover what knip genuinely cannot see: `tailwindcss`/`tw-animate-css` arrive via `@import` in `styles.css` (knip does not follow CSS), and `dwebp`/`sips`/`cwebp` are system binaries shelled out to by `scripts/generate-usecase-images.mjs`.
diff --git a/brain/knowledge/engineering/web-navigation-shell.md b/brain/knowledge/engineering/web-navigation-shell.md
index 359c37d6fe0..7b0cb884439 100644
--- a/brain/knowledge/engineering/web-navigation-shell.md
+++ b/brain/knowledge/engineering/web-navigation-shell.md
@@ -70,7 +70,7 @@ route gets. `PlatformLayout` mounts the platform sidebar with no rail beside it.
- **Tailwind v4's `data-*:` variant matches the attribute's *presence*, so a component that always renders `data-active={bool}` styles every instance as active.** React writes `data-active="false"` for a false value rather than omitting the attribute, and `data-active:bg-sidebar-accent` compiles to `[data-active]` — so `SidebarMenuSubButton`, which defaults `isActive = false` and always spreads it, painted the accent background on *every* child row at once, leaving the URL as the only signal of which one you were on. Write `data-[active=true]:` whenever the attribute is always present. The same shape sits in `sidebarMenuButtonVariants`, where it is *not* harmless: `data-active:text-sidebar-accent-foreground` paints every row at the accent foreground, so a plain `text-*` class on a row — a muted treatment for a plan-locked entry, say — loses to it (0,2,0 beats 0,1,0) and silently does nothing. Fix the variant rather than reaching for `!` on the row: an `!important` colour also beats the base's `hover:text-sidebar-accent-foreground`, so the row silently stops responding to hover. Related: that cva has no active *background* at all, so a row cannot be highlighted through `isActive` alone — the platform rail sets the background with `cn()` and an explicit `hover:bg-sidebar-accent!`, because the base's `hover:bg-sidebar-accent` is (0,2,0) and a plain `bg-*` is (0,1,0); tailwind-merge does not collapse them, since the modifiers differ.
- **The animated icons in `components/icons/*` wrap their `<svg>` in a plain `<div>`, so a size class on the icon sizes the wrapper and not the drawing.** The wrapper takes `className`; the svg inside carries `width`/`height` from a `size` prop (28 in 32 of the 38, 16 in five, 20 in `zap.tsx` alone) and is then overridden by whatever `[&_svg]:size-*` the parent sets — a descendant selector, which outranks any plain class on the svg. A rail asking for 20px icons therefore rendered 16px ones until the *parent* said `[&_svg]:size-5` — which wins not on specificity (it is the identical selector to the base) but because `SidebarMenuButton` composes through `cn()` and tailwind-merge drops the base for the same key. On a component that does not run its classes through `cn()`, the two rules tie and the generated stylesheet's own ordering decides — not the order you write them in the class attribute. Worse, the svg is `display: inline`, so inside that wrapper it sits on the text baseline rather than centred: two pixels high, while any bare svg beside it (`McpSvg`, the user avatar) centres correctly — which reads as a rail where the icons are subtly, inconsistently off. `[&_svg]:block` removes the baseline gap for both shapes. Measure rather than eyeball: compare each icon's `getBoundingClientRect()` centre against its row's.
- **`SidebarContent` is already a scroll container, so wrapping it in another one gives you two scrollers.** It ships `overflow-auto`, and used to carry a `no-scrollbar` class that was defined nowhere (`styles.css` defines `scrollbar-none`); the dead class has since been removed. Note that the global "6px pill" in `styles.css` is not what Chrome draws: the same block sets the standard `scrollbar-width: thin` on `*`, and from Chrome 121 a standard `scrollbar-width` makes the browser ignore every `::-webkit-scrollbar` rule, so what renders is a ~10px track that takes layout width whenever the box overflows and shows arrow buttons at both ends once `*:hover` colours it. That track is why a scrolling list's right padding reads wider than its left. Reach for `ScrollArea` wherever a thin bar matters; its `type` decides whether it shows always or on hover. The platform rail had a hand-rolled `flex-1 overflow-y-auto` around it: two nested scrollers, wheel events chaining between them, and the visible thumb belonging to the outer box. Have exactly one scroller. The platform rail makes `SidebarContent` `overflow-hidden` and scrolls through `ScrollArea` instead, whose Radix scrollbar is an overlay: it takes no layout width and has no arrow buttons, so it can sit in the rail's right padding without unbalancing it. To say there is more below, pass `showGradient` to `ScrollArea`: it veils the bottom of the list into the sidebar colour only while the viewport can still scroll down, and `gradientClassName` sets its height (the default fifth of the viewport is far too tall for a nav rail).
-- **A sidebar painted the same colour as the page is judged against the content card, not its own edge.** `bg-sidebar` is also the background behind the dashboard card, so the rail's right edge is invisible and the eye measures a row's right padding to the card's border. `ProjectDashboardLayout` puts the card flush against the rail (`pr-2 pt-3 pb-3`); a layout that pads the card on the left too (`p-2`) adds that padding to the rail's apparent right gutter, and the rail reads as lopsided however symmetric its own insets measure.
+- **A sidebar painted the same colour as the page is judged against the content card, not its own edge.** `bg-gray-2`, the sidebar's ground, is also the background behind the dashboard card, so the rail's right edge is invisible and the eye measures a row's right padding to the card's border. `ProjectDashboardLayout` puts the card flush against the rail (`pr-2 pt-3 pb-3`); a layout that pads the card on the left too (`p-2`) adds that padding to the rail's apparent right gutter, and the rail reads as lopsided however symmetric its own insets measure.
## Key files
diff --git a/brain/knowledge/platform-editions-ee/index.md b/brain/knowledge/platform-editions-ee/index.md
index 04251d553c0..03dc687a320 100644
--- a/brain/knowledge/platform-editions-ee/index.md
+++ b/brain/knowledge/platform-editions-ee/index.md
@@ -7,7 +7,7 @@ icon: 🏢
How Activepieces' tenancy (Platform → Project) and Community/Enterprise split work. Rule of thumb: CE never imports `src/app/ee/`; CE declares hook interfaces via `hooksFactory.create<T>(ceDefault)`, EE injects the real impl via `.set(eeImpl)` in the `app.ts` edition switch. Plan flags and numeric limits on `PlatformPlan` — projected from the platform's Autumn billing customer — gate features per-endpoint with `platformMustHaveFeatureEnabled()` (HTTP 402).
### Platform (CE)
-Top-level tenant namespace; every install has ≥1. Owns branding (logos, theme colors, favicon), auth config (email toggle, allowed domains, SSO providers), pinned pieces, and piece-selector tab layout. Entity `platform`; `platformService` (create/update, `getOneWithPlanAndUsageOrThrow`). Endpoints under `/v1/platforms/:id`. Gotcha: sensitive SSO/SAML secrets stripped → `PlatformWithoutSensitiveData`; SAML config change invalidates the SAML client cache; DELETE is Cloud-only (async hard-delete job). All editions.
+Top-level tenant namespace; every install has ≥1. Owns branding (logos, one brand colour plus optional danger, warning and success colours, favicon), auth config (email toggle, allowed domains, SSO providers), pinned pieces, and piece-selector tab layout. Entity `platform`; `platformService` (create/update, `getOneWithPlanAndUsageOrThrow`). Endpoints under `/v1/platforms/:id`. Gotcha: sensitive SSO/SAML secrets stripped → `PlatformWithoutSensitiveData`; SAML config change invalidates the SAML client cache; DELETE is Cloud-only (async hard-delete job). All editions.
### Project (CE)
Workspace inside a platform holding flows, connections, tables. `PERSONAL` (auto-created per user) or `TEAM` (EE). Always scoped by `platformId`; soft-delete via `deleted`. `projectService`; entity `project`. Gotcha: `projectHooks.postCreate` is the CE→EE seam — EE creates the `ProjectPlan`, sets piece filters, subscribes alert receiver. `externalId` maps projects to an embedder's own IDs.
diff --git a/brain/knowledge/platform-editions-ee/platform-configuration.md b/brain/knowledge/platform-editions-ee/platform-configuration.md
index 7a73c346733..9c08f093a71 100644
--- a/brain/knowledge/platform-editions-ee/platform-configuration.md
+++ b/brain/knowledge/platform-editions-ee/platform-configuration.md
@@ -4,10 +4,10 @@ icon: 🏢
# Platform Configuration
-A **Platform** is the top-level tenant namespace in Activepieces. Every install has at least one. It owns branding (logo, colors, favicon), auth settings (email auth toggle, allowed auth domains, federated SSO), and a `PlatformPlan` that governs feature flags and limits. On Cloud a user can own many platforms; on CE/EE there's typically one. Available in all editions.
+A **Platform** is the top-level tenant namespace in Activepieces. Every install has at least one. It owns branding (logo, one brand colour, optional danger, warning and success colours, favicon), auth settings (email auth toggle, allowed auth domains, federated SSO), and a `PlatformPlan` that governs feature flags and limits. On Cloud a user can own many platforms; on CE/EE there's typically one. Available in all editions.
### Entities & services
-- `platform` entity: `ownerId`, `name`, `primaryColor`, `themeColors` (jsonb, null = derived from primaryColor), logo/favicon URLs, `cloudAuthEnabled`, `allowedAuthDomains`, `emailAuthEnabled`, `federatedAuthProviders` (jsonb OAuth2 + SAML), `pinnedPieces`, `pieceSelectorConfig` (jsonb, null = default tabs).
+- `platform` entity: `ownerId`, `name`, `primaryColor` (drives the whole palette; see *design-system/colour*), `themeColors` (jsonb, set under Platform → General → *Colors*; only `themeColors.status` is rendered, as the status seeds served in the `theme` flag's `statusColors`; see *design-system/colour*), logo/favicon URLs, `cloudAuthEnabled`, `allowedAuthDomains`, `emailAuthEnabled`, `federatedAuthProviders` (jsonb OAuth2 + SAML), `pinnedPieces`, `pieceSelectorConfig` (jsonb, null = default tabs).
- `platformService`: `create`, `update`, `getOneWithPlanAndUsageOrThrow`, `getOneWithPlanOrThrow` (flags only, used in auth guards), `listPlatformsForIdentityWithAtleastProject` (platform-switcher), `getOldestPlatform` (CE single-platform resolution).
### Endpoints
@@ -18,7 +18,7 @@ A **Platform** is the top-level tenant namespace in Activepieces. Every install
### Gotchas
- **A new platform column breaks the cloud `platform.test.ts` key list.** "Always Returns non-sensitive information for platform" pins `Object.keys(response).sort()` with `toStrictEqual`, so adding a field to `PlatformWithoutSensitiveData` fails `api (cloud)` until the key is added there, in sorted order. It only runs in the cloud suite, so a CE run won't catch it.
-- **The platform name is editable on every edition, even though it lives inside the Appearance section.** `appearance-section.tsx` computes `brandingLocked = !platform.plan.customAppearanceEnabled` and passes `disabled={brandingLocked}` to the logo, icon, favicon and theme-colour inputs, but **not** to the `Platform Name` input, and `formdata.append('name', name)` sits outside the `if (!brandingLocked)` block. So a Community or unlicensed platform can rename itself at Settings > Platform > Account > General while every other field on that form is locked. Reading the file top-down makes the whole section look gated; it is per-field. `UpdatePlatformRequestBody.name` is likewise ungated on the API and only validated against `SAFE_STRING_PATTERN` (no `.` or `/`).
+- **The platform name is editable on every edition, even though it lives inside the Appearance section.** `appearance-section.tsx` computes `brandingLocked = !platform.plan.customAppearanceEnabled` and passes `disabled={brandingLocked}` to the logo, icon, favicon and brand-colour inputs, but **not** to the `Platform Name` input, and `formdata.append('name', name)` sits outside the `if (!brandingLocked)` block. So a Community or unlicensed platform can rename itself at Settings > Platform > Account > General while every other field on that form is locked. Reading the file top-down makes the whole section look gated; it is per-field. `UpdatePlatformRequestBody.name` is likewise ungated on the API and only validated against `SAFE_STRING_PATTERN` (no `.` or `/`).
- Per-project piece/action/trigger visibility is done via **piece sets**, NOT the platform.
- On GET for USER principals, `plan.chatEnabled` is rewritten to effective per-user chat visibility, and `licenseKey` is nulled for embedded users.
- Updating SAML config clears the cached SAML client (`invalidateSamlClientCache`).
diff --git a/bun.lock b/bun.lock
index a57116784e6..c0abd161d6d 100644
--- a/bun.lock
+++ b/bun.lock
@@ -165,7 +165,7 @@
},
"packages/core/shared": {
"name": "@activepieces/shared",
- "version": "0.189.0",
+ "version": "0.190.0",
"dependencies": {
"@activepieces/core-execution": "workspace:*",
"@activepieces/core-formula": "workspace:*",
@@ -11187,6 +11187,7 @@
"zustand": "4.5.4",
},
"devDependencies": {
+ "@tailwindcss/node": "4.1.17",
"@tailwindcss/postcss": "4.1.17",
"@tailwindcss/vite": "4.1.17",
"@testing-library/react": "16.3.3",
@@ -11201,6 +11202,7 @@
"jsdom": "26.1.0",
"pg": "8.20.0",
"tailwindcss": "4.1.17",
+ "typescript": "5.5.4",
},
},
},
diff --git a/docs/admin-guide/guides/general.mdx b/docs/admin-guide/guides/general.mdx
index 0b46a1c24ab..1a88da714a0 100644
--- a/docs/admin-guide/guides/general.mdx
+++ b/docs/admin-guide/guides/general.mdx
@@ -5,7 +5,7 @@ icon: "gears"
This is where you can change the basic appearance of your platform
-You can change the platform name, icon, logo , fav icon url, primary color, or customize your theme colors
+You can change the platform name, icon, logo, favicon, primary color, and the danger, warning and success colors. Each color sets its whole scale in light and dark mode, and **Reset** puts a status color back on the standard palette.
You also have the **Danger Zone,** which is where you can delete your platform.
diff --git a/packages/core/shared/package.json b/packages/core/shared/package.json
index cbecabd952d..f99d70d6eb6 100644
--- a/packages/core/shared/package.json
+++ b/packages/core/shared/package.json
@@ -1,6 +1,6 @@
{
"name": "@activepieces/shared",
- "version": "0.189.0",
+ "version": "0.190.0",
"type": "commonjs",
"sideEffects": false,
"main": "./dist/src/index.js",
diff --git a/packages/core/shared/src/index.ts b/packages/core/shared/src/index.ts
index 43d6384a323..b4240af65a6 100755
--- a/packages/core/shared/src/index.ts
+++ b/packages/core/shared/src/index.ts
@@ -1,6 +1,9 @@
export * from './lib/core/common/telemetry'
export * from './lib/core/common/telemetry-pii'
export * from './lib/core/common/attribution'
+export * from './lib/core/common/brand-colors'
+export * from './lib/core/common/brand-logos'
+export * from './lib/core/common/swatch'
export * from './lib/core/authentication/dto/authentication-response'
export * from './lib/core/authentication/dto/sign-up-request'
export * from './lib/core/authentication/dto/sign-in-request'
diff --git a/packages/core/shared/src/lib/core/common/brand-colors.ts b/packages/core/shared/src/lib/core/common/brand-colors.ts
new file mode 100644
index 00000000000..f765c2495e6
--- /dev/null
+++ b/packages/core/shared/src/lib/core/common/brand-colors.ts
@@ -0,0 +1,233 @@
+const REFERENCE_CHROMA = 0.2281
+const MIN_CHROMA_SCALE = 0.4
+const MAX_CHROMA_SCALE = 1
+const ACHROMATIC_CHROMA = 0.02
+const DEFAULT_BRAND_HUE = 288.86
+const DEFAULT_ACCENT_SOLID = '#6e41e2'
+const WHITE = '#ffffff'
+const BLACK = '#000000'
+const STATUS_SCALE_DEFAULTS: Record<StatusScale, { hue: number, referenceChroma: number, solid: string }> = {
+ danger: { hue: 25, referenceChroma: 0.1994, solid: '#c11825' },
+ warning: { hue: 75, referenceChroma: 0.1591, solid: '#f9ad28' },
+ success: { hue: 150, referenceChroma: 0.16, solid: '#33ac5a' },
+}
+
+const STATUS_SCALES = ['danger', 'warning', 'success'] as const
+
+function clamp({ value, min, max }: { value: number, min: number, max: number }): number {
+ return Math.min(max, Math.max(min, value))
+}
+
+function parseHex(hex: string): Srgb | null {
+ const cleaned = hex.trim().replace(/^#/, '')
+ const expanded =
+ cleaned.length === 3
+ ? cleaned
+ .split('')
+ .map((char) => char + char)
+ .join('')
+ : cleaned
+ if (!/^[0-9a-fA-F]{6}$/.test(expanded)) {
+ return null
+ }
+ return {
+ r: parseInt(expanded.slice(0, 2), 16) / 255,
+ g: parseInt(expanded.slice(2, 4), 16) / 255,
+ b: parseInt(expanded.slice(4, 6), 16) / 255,
+ }
+}
+
+function toLinear(channel: number): number {
+ return channel <= 0.04045
+ ? channel / 12.92
+ : Math.pow((channel + 0.055) / 1.055, 2.4)
+}
+
+function srgbToOklch({ r, g, b }: Srgb): Oklch {
+ const lr = toLinear(r)
+ const lg = toLinear(g)
+ const lb = toLinear(b)
+
+ const l = Math.cbrt(
+ 0.4122214708 * lr + 0.5363325363 * lg + 0.0514459929 * lb,
+ )
+ const m = Math.cbrt(
+ 0.2119034982 * lr + 0.6806995451 * lg + 0.1073969566 * lb,
+ )
+ const s = Math.cbrt(
+ 0.0883024619 * lr + 0.2817188376 * lg + 0.6299787005 * lb,
+ )
+
+ const a = 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s
+ const bAxis = 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s
+
+ const hue = (Math.atan2(bAxis, a) * 180) / Math.PI
+
+ return {
+ chroma: Math.sqrt(a * a + bAxis * bAxis),
+ hue: hue < 0 ? hue + 360 : hue,
+ }
+}
+
+function relativeLuminance({ r, g, b }: Srgb): number {
+ return 0.2126 * toLinear(r) + 0.7152 * toLinear(g) + 0.0722 * toLinear(b)
+}
+
+function round({ value, places }: { value: number, places: number }): number {
+ const factor = Math.pow(10, places)
+ return Math.round(value * factor) / factor
+}
+
+function contrastRatio({
+ foreground,
+ background,
+}: {
+ foreground: string
+ background: string
+}): number {
+ const first = parseHex(foreground)
+ const second = parseHex(background)
+ if (first === null || second === null) {
+ return 1
+ }
+ const lighter = Math.max(relativeLuminance(first), relativeLuminance(second))
+ const darker = Math.min(relativeLuminance(first), relativeLuminance(second))
+ return (lighter + 0.05) / (darker + 0.05)
+}
+
+function withHash({ hex }: { hex: string }): string {
+ const trimmed = hex.trim()
+ return trimmed.startsWith('#') ? trimmed : `#${trimmed}`
+}
+
+function onPrimaryFor({ hex }: { hex: string }): string {
+ const onWhite = contrastRatio({ foreground: WHITE, background: hex })
+ const onBlack = contrastRatio({ foreground: BLACK, background: hex })
+ return onWhite >= onBlack ? WHITE : BLACK
+}
+
+function cssVariables({
+ primaryColor,
+}: {
+ primaryColor: string
+}): Record<string, string> {
+ const parsed = parseHex(primaryColor)
+ if (parsed === null) {
+ return {
+ '--brand-h': String(DEFAULT_BRAND_HUE),
+ '--brand-c': '1',
+ '--accent-9': DEFAULT_ACCENT_SOLID,
+ '--on-accent': onPrimaryFor({ hex: DEFAULT_ACCENT_SOLID }),
+ }
+ }
+
+ const solid = withHash({ hex: primaryColor })
+ const { hue, chromaScale } = scaleSeed({
+ srgb: parsed,
+ fallbackHue: DEFAULT_BRAND_HUE,
+ referenceChroma: REFERENCE_CHROMA,
+ })
+ return {
+ '--brand-h': String(hue),
+ '--brand-c': String(chromaScale),
+ '--accent-9': solid,
+ '--on-accent': onPrimaryFor({ hex: solid }),
+ }
+}
+
+function statusCssVariables({
+ statusColors,
+}: {
+ statusColors: StatusColors
+}): Record<string, string> {
+ return Object.fromEntries(
+ STATUS_SCALES.flatMap((scale) => {
+ const hex = statusColors[scale]
+ const parsed = hex === undefined ? null : parseHex(hex)
+ if (hex === undefined || parsed === null) {
+ return []
+ }
+ const solid = withHash({ hex })
+ const { hue, chromaScale } = scaleSeed({
+ srgb: parsed,
+ fallbackHue: STATUS_SCALE_DEFAULTS[scale].hue,
+ referenceChroma: STATUS_SCALE_DEFAULTS[scale].referenceChroma,
+ })
+ const [hueName, chromaName, solidName, onSolidName] = statusVariableNamesFor({ scale })
+ return [
+ [hueName, String(hue)],
+ [chromaName, String(chromaScale)],
+ [solidName, solid],
+ [onSolidName, onPrimaryFor({ hex: solid })],
+ ]
+ }),
+ )
+}
+
+function statusVariableNames(): string[] {
+ return STATUS_SCALES.flatMap((scale) => statusVariableNamesFor({ scale }))
+}
+
+function defaultPrimaryColor(): string {
+ return DEFAULT_ACCENT_SOLID
+}
+
+function defaultStatusColor({ scale }: { scale: StatusScale }): string {
+ return STATUS_SCALE_DEFAULTS[scale].solid
+}
+
+function statusVariableNamesFor({ scale }: { scale: StatusScale }): [string, string, string, string] {
+ return [`--${scale}-h`, `--${scale}-c`, `--${scale}-seed`, `--on-${scale}-seed`]
+}
+
+function scaleSeed({
+ srgb,
+ fallbackHue,
+ referenceChroma,
+}: {
+ srgb: Srgb
+ fallbackHue: number
+ referenceChroma: number
+}): { hue: number, chromaScale: number } {
+ const { chroma, hue } = srgbToOklch(srgb)
+ if (chroma < ACHROMATIC_CHROMA) {
+ return { hue: fallbackHue, chromaScale: 0 }
+ }
+ return {
+ hue: round({ value: hue, places: 2 }),
+ chromaScale: round({
+ value: clamp({
+ value: chroma / referenceChroma,
+ min: MIN_CHROMA_SCALE,
+ max: MAX_CHROMA_SCALE,
+ }),
+ places: 4,
+ }),
+ }
+}
+
+export const brandColors = {
+ statusScales: STATUS_SCALES,
+ cssVariables,
+ statusCssVariables,
+ statusVariableNames,
+ defaultPrimaryColor,
+ defaultStatusColor,
+ contrastRatio,
+ onPrimaryFor,
+}
+
+export type StatusScale = (typeof STATUS_SCALES)[number]
+
+export type StatusColors = Partial<Record<StatusScale, string>>
+
+type Srgb = {
+ r: number
+ g: number
+ b: number
+}
+
+type Oklch = {
+ chroma: number
+ hue: number
+}
diff --git a/packages/core/shared/src/lib/core/common/brand-logos.ts b/packages/core/shared/src/lib/core/common/brand-logos.ts
new file mode 100644
index 00000000000..0dcace32a9c
--- /dev/null
+++ b/packages/core/shared/src/lib/core/common/brand-logos.ts
@@ -0,0 +1,5 @@
+export const DEFAULT_BRAND_LOGOS = {
+ fullLogoUrl: 'https://cdn.activepieces.com/brand/full-logo.png',
+ favIconUrl: 'https://cdn.activepieces.com/brand/logo.svg',
+ logoIconUrl: 'https://cdn.activepieces.com/brand/logo.svg',
+} as const
diff --git a/packages/core/shared/src/lib/core/common/swatch.ts b/packages/core/shared/src/lib/core/common/swatch.ts
new file mode 100644
index 00000000000..4470237d36b
--- /dev/null
+++ b/packages/core/shared/src/lib/core/common/swatch.ts
@@ -0,0 +1,39 @@
+const SWATCH_COUNT = 12
+
+function hashToIndex({ seed }: { seed: string }): number {
+ let hash = 0
+ for (let position = 0; position < seed.length; position++) {
+ hash = (hash << 5) - hash + seed.charCodeAt(position)
+ hash |= 0
+ }
+ return Math.abs(hash) % SWATCH_COUNT
+}
+
+function varsFor({ index }: { index: number }): SwatchVars {
+ const slot = (((index % SWATCH_COUNT) + SWATCH_COUNT) % SWATCH_COUNT) + 1
+ return {
+ mark: `var(--swatch-${slot}-mark)`,
+ on: `var(--swatch-${slot}-on)`,
+ surface: `var(--swatch-${slot}-surface)`,
+ ink: `var(--swatch-${slot}-ink)`,
+ line: `var(--swatch-${slot}-line)`,
+ }
+}
+
+function varsForSeed({ seed }: { seed: string }): SwatchVars {
+ return varsFor({ index: hashToIndex({ seed }) })
+}
+
+export const swatchUtils = {
+ hashToIndex,
+ varsFor,
+ varsForSeed,
+}
+
+export type SwatchVars = {
+ mark: string
+ on: string
+ surface: string
+ ink: string
+ line: string
+}
diff --git a/packages/core/shared/src/lib/management/platform/platform.model.ts b/packages/core/shared/src/lib/management/platform/platform.model.ts
index 13f8bc5caeb..c5198a7c1f2 100644
--- a/packages/core/shared/src/lib/management/platform/platform.model.ts
+++ b/packages/core/shared/src/lib/management/platform/platform.model.ts
@@ -133,26 +133,31 @@ export type PlatformPlanWithOnlyLimits = PlatformPlanLimits
export const HEX_COLOR_PATTERN = /^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/
-const hexColor = z.string().regex(HEX_COLOR_PATTERN, 'invalidHexColor')
+export const ThemeHexColor = z.string().regex(HEX_COLOR_PATTERN, 'invalidHexColor')
export const PlatformThemeColors = z.object({
- avatar: hexColor.optional(),
- 'blue-link': hexColor.optional(),
- danger: hexColor.optional(),
- selection: hexColor.optional(),
+ avatar: ThemeHexColor.optional(),
+ 'blue-link': ThemeHexColor.optional(),
+ danger: ThemeHexColor.optional(),
+ selection: ThemeHexColor.optional(),
primary: z.object({
- dark: hexColor.optional(),
- light: hexColor.optional(),
- medium: hexColor.optional(),
+ dark: ThemeHexColor.optional(),
+ light: ThemeHexColor.optional(),
+ medium: ThemeHexColor.optional(),
}).optional(),
warn: z.object({
- default: hexColor.optional(),
- light: hexColor.optional(),
- dark: hexColor.optional(),
+ default: ThemeHexColor.optional(),
+ light: ThemeHexColor.optional(),
+ dark: ThemeHexColor.optional(),
}).optional(),
success: z.object({
- default: hexColor.optional(),
- light: hexColor.optional(),
+ default: ThemeHexColor.optional(),
+ light: ThemeHexColor.optional(),
+ }).optional(),
+ status: z.object({
+ danger: ThemeHexColor.optional(),
+ warning: ThemeHexColor.optional(),
+ success: ThemeHexColor.optional(),
}).optional(),
})
export type PlatformThemeColors = z.infer<typeof PlatformThemeColors>
diff --git a/packages/core/shared/src/lib/management/project/project.ts b/packages/core/shared/src/lib/management/project/project.ts
index d69fa54fb38..d2b71379df1 100755
--- a/packages/core/shared/src/lib/management/project/project.ts
+++ b/packages/core/shared/src/lib/management/project/project.ts
@@ -1,6 +1,8 @@
import { ApId, BaseModelSchema, DateOrString, Metadata, Nullable } from '@activepieces/core-utils'
import { z } from 'zod'
+import { swatchUtils } from '../../core/common/swatch'
+
export enum ColorName {
RED = 'RED',
BLUE = 'BLUE',
@@ -99,53 +101,45 @@ const ProjectColor = z.object({
})
type ProjectColor = z.infer<typeof ProjectColor>
+function projectColorFor(name: ColorName): ProjectColor {
+ const vars = swatchUtils.varsFor({ index: PROJECT_COLOR_SWATCH[name] })
+ return {
+ color: vars.mark,
+ textColor: vars.on,
+ }
+}
+
+export const PROJECT_COLOR_SWATCH: Record<ColorName, number> = {
+ [ColorName.PURPLE]: 0,
+ [ColorName.VIOLET]: 1,
+ [ColorName.PINK]: 2,
+ [ColorName.RED]: 3,
+ [ColorName.DEEP_ORANGE]: 4,
+ [ColorName.ORANGE]: 4,
+ [ColorName.YELLOW]: 5,
+ [ColorName.GREEN]: 7,
+ [ColorName.DARK_GREEN]: 8,
+ [ColorName.CYAN]: 9,
+ [ColorName.BLUE]: 10,
+ [ColorName.LAVENDER]: 11,
+}
+
+export const PICKABLE_COLOR_NAMES: ColorName[] = Object.values(ColorName).filter(
+ (name) => name !== ColorName.DEEP_ORANGE,
+)
+
export const PROJECT_COLOR_PALETTE: Record<ColorName, ProjectColor> = {
- [ColorName.RED]: {
- textColor: '#ffffff',
- color: '#ef4444',
- },
- [ColorName.BLUE]: {
- textColor: '#ffffff',
- color: '#3b82f6',
- },
- [ColorName.YELLOW]: {
- textColor: '#ffffff',
- color: '#eab308',
- },
- [ColorName.PURPLE]: {
- textColor: '#ffffff',
- color: '#a855f7',
- },
- [ColorName.GREEN]: {
- textColor: '#ffffff',
- color: '#22c55e',
- },
- [ColorName.PINK]: {
- textColor: '#ffffff',
- color: '#f472b6',
- },
- [ColorName.VIOLET]: {
- textColor: '#ffffff',
- color: '#9333ea',
- },
- [ColorName.ORANGE]: {
- textColor: '#ffffff',
- color: '#f97316',
- },
- [ColorName.DARK_GREEN]: {
- textColor: '#ffffff',
- color: '#15803d',
- },
- [ColorName.CYAN]: {
- textColor: '#ffffff',
- color: '#06b6d4',
- },
- [ColorName.LAVENDER]: {
- textColor: '#ffffff',
- color: '#8b5cf6',
- },
- [ColorName.DEEP_ORANGE]: {
- textColor: '#ffffff',
- color: '#ea580c',
- },
+ [ColorName.PURPLE]: projectColorFor(ColorName.PURPLE),
+ [ColorName.VIOLET]: projectColorFor(ColorName.VIOLET),
+ [ColorName.PINK]: projectColorFor(ColorName.PINK),
+ [ColorName.RED]: projectColorFor(ColorName.RED),
+ [ColorName.DEEP_ORANGE]: projectColorFor(ColorName.DEEP_ORANGE),
+ [ColorName.ORANGE]: projectColorFor(ColorName.ORANGE),
+ [ColorName.YELLOW]: projectColorFor(ColorName.YELLOW),
+ [ColorName.GREEN]: projectColorFor(ColorName.GREEN),
+ [ColorName.DARK_GREEN]: projectColorFor(ColorName.DARK_GREEN),
+ [ColorName.CYAN]: projectColorFor(ColorName.CYAN),
+ [ColorName.BLUE]: projectColorFor(ColorName.BLUE),
+ [ColorName.LAVENDER]: projectColorFor(ColorName.LAVENDER),
}
+
diff --git a/packages/core/shared/test/common/brand-colors.test.ts b/packages/core/shared/test/common/brand-colors.test.ts
new file mode 100644
index 00000000000..1e35f24ca70
--- /dev/null
+++ b/packages/core/shared/test/common/brand-colors.test.ts
@@ -0,0 +1,156 @@
+import { brandColors } from '../../src/lib/core/common/brand-colors'
+
+describe('brandColors.cssVariables', () => {
+ it('writes exactly the four seed properties', () => {
+ const variables = brandColors.cssVariables({ primaryColor: '#6e41e2' })
+ expect(Object.keys(variables).sort()).toEqual(['--accent-9', '--brand-c', '--brand-h', '--on-accent'])
+ })
+
+ it('renders the tenant hex verbatim as --accent-9', () => {
+ expect(brandColors.cssVariables({ primaryColor: '#FF6600' })['--accent-9']).toBe('#FF6600')
+ })
+
+ it('follows the tenant hue', () => {
+ const orange = brandColors.cssVariables({ primaryColor: '#FF6600' })
+ const violet = brandColors.cssVariables({ primaryColor: '#6e41e2' })
+ expect(orange['--brand-h']).not.toBe(violet['--brand-h'])
+ })
+
+ it('keeps the chroma scale of a coloured brand between 0.4 and 1', () => {
+ const muted = brandColors.cssVariables({ primaryColor: '#1f2937' })
+ const vivid = brandColors.cssVariables({ primaryColor: '#ff00ff' })
+ expect(Number(muted['--brand-c'])).toBe(0.4)
+ expect(Number(vivid['--brand-c'])).toBeLessThanOrEqual(1)
+ })
+
+ it('drops all chroma for a black, grey or white brand', () => {
+ ['#000000', '#333333', '#808080', '#ffffff'].forEach((primaryColor) => {
+ expect(brandColors.cssVariables({ primaryColor })['--brand-c']).toBe('0')
+ })
+ })
+
+ it('measures --on-accent against the tenant hex', () => {
+ expect(brandColors.cssVariables({ primaryColor: '#eab308' })['--on-accent']).toBe('#000000')
+ expect(brandColors.cssVariables({ primaryColor: '#6e41e2' })['--on-accent']).toBe('#ffffff')
+ })
+
+ it('falls back to the default seed for an unparseable colour', () => {
+ expect(brandColors.cssVariables({ primaryColor: 'not-a-colour' })).toEqual({
+ '--brand-h': '288.86',
+ '--brand-c': '1',
+ '--accent-9': '#6e41e2',
+ '--on-accent': '#ffffff',
+ })
+ })
+
+ it('writes a hex given without its hash as valid css', () => {
+ expect(brandColors.cssVariables({ primaryColor: 'ff6600' })['--accent-9']).toBe('#ff6600')
+ })
+
+ it('reads shorthand hex the same as its long form', () => {
+ const short = brandColors.cssVariables({ primaryColor: '#f60' })
+ const long = brandColors.cssVariables({ primaryColor: '#ff6600' })
+ expect(short['--brand-h']).toBe(long['--brand-h'])
+ expect(short['--brand-c']).toBe(long['--brand-c'])
+ expect(short['--accent-9']).toBe('#f60')
+ })
+})
+
+describe('brandColors.statusCssVariables', () => {
+ it('writes nothing when no status colour is chosen', () => {
+ expect(brandColors.statusCssVariables({ statusColors: {} })).toEqual({})
+ })
+
+ it('writes exactly the four seed properties of each chosen scale', () => {
+ const variables = brandColors.statusCssVariables({ statusColors: { danger: '#b91c1c', success: '#16a34a' } })
+ expect(Object.keys(variables).sort()).toEqual([
+ '--danger-c',
+ '--danger-h',
+ '--danger-seed',
+ '--on-danger-seed',
+ '--on-success-seed',
+ '--success-c',
+ '--success-h',
+ '--success-seed',
+ ])
+ })
+
+ it('renders the chosen hex verbatim as the solid', () => {
+ expect(brandColors.statusCssVariables({ statusColors: { warning: '#FACC15' } })['--warning-seed']).toBe('#FACC15')
+ })
+
+ it('follows the chosen hue', () => {
+ const pink = brandColors.statusCssVariables({ statusColors: { danger: '#db2777' } })
+ const red = brandColors.statusCssVariables({ statusColors: { danger: '#dc2626' } })
+ expect(pink['--danger-h']).not.toBe(red['--danger-h'])
+ })
+
+ it('keeps the stock scale for its own default solid', () => {
+ brandColors.statusScales.forEach((scale) => {
+ const variables = brandColors.statusCssVariables({
+ statusColors: { [scale]: brandColors.defaultStatusColor({ scale }) },
+ })
+ expect(Number(variables[`--${scale}-c`])).toBeCloseTo(1, 1)
+ })
+ })
+
+ it('drops all chroma for a grey status colour and keeps the stock hue', () => {
+ const variables = brandColors.statusCssVariables({ statusColors: { success: '#808080' } })
+ expect(variables['--success-c']).toBe('0')
+ expect(variables['--success-h']).toBe('150')
+ })
+
+ it('measures the label colour against the chosen solid', () => {
+ expect(brandColors.statusCssVariables({ statusColors: { warning: '#facc15' } })['--on-warning-seed']).toBe('#000000')
+ expect(brandColors.statusCssVariables({ statusColors: { danger: '#991b1b' } })['--on-danger-seed']).toBe('#ffffff')
+ })
+
+ it('ignores an unparseable colour instead of writing a broken seed', () => {
+ expect(brandColors.statusCssVariables({ statusColors: { danger: 'not-a-colour' } })).toEqual({})
+ })
+})
+
+describe('brandColors.defaultPrimaryColor', () => {
+ it('is the solid an unparseable primary colour falls back to', () => {
+ expect(brandColors.defaultPrimaryColor()).toBe(
+ brandColors.cssVariables({ primaryColor: 'not-a-colour' })['--accent-9'],
+ )
+ })
+})
+
+describe('brandColors.statusVariableNames', () => {
+ it('names every property statusCssVariables can write', () => {
+ const everything = brandColors.statusCssVariables({
+ statusColors: { danger: '#b91c1c', warning: '#facc15', success: '#16a34a' },
+ })
+ expect(brandColors.statusVariableNames().sort()).toEqual(Object.keys(everything).sort())
+ })
+})
+
+describe('brandColors.onPrimaryFor', () => {
+ it('picks white on the default purple', () => {
+ expect(brandColors.onPrimaryFor({ hex: '#6e41e2' })).toBe('#ffffff')
+ })
+
+ it('picks black on a bright yellow, where white measures 1.9:1', () => {
+ expect(brandColors.onPrimaryFor({ hex: '#eab308' })).toBe('#000000')
+ })
+
+ it('picks black on the sky blue that fails AA under white', () => {
+ expect(brandColors.onPrimaryFor({ hex: '#0ea5e9' })).toBe('#000000')
+ })
+})
+
+describe('brandColors.contrastRatio', () => {
+ it('measures black on white at 21:1', () => {
+ expect(brandColors.contrastRatio({ foreground: '#000000', background: '#ffffff' })).toBeCloseTo(21, 1)
+ })
+
+ it('measures a colour against itself at 1:1', () => {
+ expect(brandColors.contrastRatio({ foreground: '#6e41e2', background: '#6e41e2' })).toBeCloseTo(1, 5)
+ })
+
+ it('reproduces the 5.97:1 that white on the default purple measures', () => {
+ expect(brandColors.contrastRatio({ foreground: '#ffffff', background: '#6e41e2' })).toBeCloseTo(5.97, 1)
+ })
+})
diff --git a/packages/server/api/src/app/flags/theme.ts b/packages/server/api/src/app/flags/theme.ts
index 00a5c17eac3..f9f21151e44 100644
--- a/packages/server/api/src/app/flags/theme.ts
+++ b/packages/server/api/src/app/flags/theme.ts
@@ -1,4 +1,4 @@
-import { PlatformThemeColors } from '@activepieces/shared'
+import { DEFAULT_BRAND_LOGOS, PlatformThemeColors } from '@activepieces/shared'
import tinycolor from 'tinycolor2'
function generateColorVariations(defaultColor: string) {
@@ -64,6 +64,7 @@ export function generateTheme({
},
selection: themeColors?.selection ?? generateSelectionColor(primaryColor),
},
+ statusColors: themeColors?.status ?? {},
logos: {
fullLogoUrl,
favIconUrl,
@@ -75,7 +76,5 @@ export function generateTheme({
export const defaultTheme = generateTheme({
primaryColor: '#6e41e2',
websiteName: 'Activepieces',
- fullLogoUrl: 'https://cdn.activepieces.com/brand/full-logo.png',
- favIconUrl: 'https://cdn.activepieces.com/brand/logo.svg',
- logoIconUrl: 'https://cdn.activepieces.com/brand/logo.svg',
+ ...DEFAULT_BRAND_LOGOS,
})
diff --git a/packages/server/api/test/integration/ee/flags/flags.test.ts b/packages/server/api/test/integration/ee/flags/flags.test.ts
index 8b128ed9dc2..1527e2f5048 100644
--- a/packages/server/api/test/integration/ee/flags/flags.test.ts
+++ b/packages/server/api/test/integration/ee/flags/flags.test.ts
@@ -78,5 +78,83 @@ describe('Flags API', () => {
expect(theme.colors['blue-link']).toBe('#1890ff')
})
+ it('should return the status colors saved under status, whatever their hex', async () => {
+ const ctx = await createTestContext(app!, {
+ platform: {
+ themeColors: {
+ status: {
+ danger: '#f94949',
+ success: '#00a367',
+ },
+ },
+ },
+ plan: {
+ customAppearanceEnabled: true,
+ },
+ })
+
+ const response = await ctx.get('/v1/flags')
+
+ expect(response.statusCode).toBe(StatusCodes.OK)
+ expect(response.json()[ApFlagId.THEME].statusColors).toStrictEqual({
+ danger: '#f94949',
+ success: '#00a367',
+ })
+ })
+
+ it('should not read status colors from the fields the old form saved', async () => {
+ const ctx = await createTestContext(app!, {
+ platform: {
+ themeColors: {
+ avatar: '#515151',
+ danger: '#e82c51',
+ warn: {
+ default: '#f78a3b',
+ },
+ },
+ },
+ plan: {
+ customAppearanceEnabled: true,
+ },
+ })
+
+ const response = await ctx.get('/v1/flags')
+
+ expect(response.statusCode).toBe(StatusCodes.OK)
+ expect(response.json()[ApFlagId.THEME].statusColors).toStrictEqual({})
+ })
+
+ it('should return no status colors when the platform has not set any', async () => {
+ const ctx = await createTestContext(app!, {
+ plan: {
+ customAppearanceEnabled: true,
+ },
+ })
+
+ const response = await ctx.get('/v1/flags')
+
+ expect(response.statusCode).toBe(StatusCodes.OK)
+ expect(response.json()[ApFlagId.THEME].statusColors).toStrictEqual({})
+ })
+
+ it('should return no status colors when custom appearance is not in the plan', async () => {
+ const ctx = await createTestContext(app!, {
+ platform: {
+ themeColors: {
+ status: {
+ danger: '#e82c51',
+ },
+ },
+ },
+ plan: {
+ customAppearanceEnabled: false,
+ },
+ })
+
+ const response = await ctx.get('/v1/flags')
+
+ expect(response.statusCode).toBe(StatusCodes.OK)
+ expect(response.json()[ApFlagId.THEME].statusColors).toStrictEqual({})
+ })
})
})
diff --git a/packages/web/AGENTS.md b/packages/web/AGENTS.md
index 4bd00645266..ba8eadfe3bc 100644
--- a/packages/web/AGENTS.md
+++ b/packages/web/AGENTS.md
@@ -34,6 +34,7 @@ You are working in the Activepieces web application (`packages/web`).
- **Always use `cn()` from `@/lib/utils` for className composition.** It uses `clsx` + `tailwind-merge` and handles conflicts and conditionals correctly. Never use template literals (`` `class-a ${someVar}` ``) or string concatenation for `className` props.
- **Use the predefined type scale, never an arbitrary font size.** This is Tailwind v4 and the theme lives in the `@theme` block of `src/styles.css` — it is *not* stock Tailwind: it adds `--text-xss` (10.4px) and shrinks `--text-3xl` to 1.75rem and `--text-4xl` to 2rem. Pick the token, never `text-[13px]`: 10-11px → `text-xss` (eyebrows, dense badges), 11.5-12.5px → `text-xs` (metadata), 13-13.5px → `text-sm` (**body default**), 15-15.5px → `text-base`, then `text-lg` (card titles), `text-xl` (section titles), `text-2xl` (page titles), `text-3xl` / `text-4xl` (display). Drop the class entirely when the component already sets it (a `Badge` is `text-xs` on its own). Same for arbitrary `leading-[...]` / `tracking-[...]`: use `leading-*`, `tracking-tight` for headings, `tracking-wide` / `tracking-wider` for uppercase eyebrows. Fractional spacing is valid in v4, so `size-4.5` beats `size-[18px]`. The one exception is a layout constraint with no token equivalent (`max-w-[628px]` for a reading measure, `lg:w-[344px]` for a sidebar) — those stay arbitrary and are idiomatic. Neither eslint nor `tsc` catches any of this, so it only ever surfaces in review.
- **Never use negative margins** (`-mt-`, `-mb-`, `-mx-`, `-my-`, `-ml-`, `-mr-`, etc.). They introduce subtle layout bugs and make spacing hard to reason about. Use `gap`, `padding`, or `space-*` utilities instead.
+- **Colour is numbered steps, not names.** Read `brain/knowledge/design-system/colour.md` before writing a colour class: it holds the job of each step, the six exceptions, and the rules (no `dark:` colour utilities, `[data-theme='dark']`, `<LogoPlate>` for third-party logos).
## Components
diff --git a/packages/web/package.json b/packages/web/package.json
index ae975f1ed95..5242124dbfc 100644
--- a/packages/web/package.json
+++ b/packages/web/package.json
@@ -116,6 +116,7 @@
"zustand": "4.5.4"
},
"devDependencies": {
+ "@tailwindcss/node": "4.1.17",
"@tailwindcss/postcss": "4.1.17",
"@testing-library/react": "16.3.3",
"jsdom": "26.1.0",
@@ -129,14 +130,15 @@
"@types/react-dom": "19",
"@types/semver": "7.5.6",
"pg": "8.20.0",
- "tailwindcss": "4.1.17"
+ "tailwindcss": "4.1.17",
+ "typescript": "5.5.4"
},
"scripts": {
"build": "vite build",
"serve": "vite",
"preview": "vite preview",
"test": "vitest run --passWithNoTests",
- "lint": "eslint 'src/**/*.{ts,tsx}'",
+ "lint": "node scripts/check-tailwind-classes.mjs && eslint 'src/**/*.{ts,tsx}'",
"typecheck": "tsc --noEmit -p tsconfig.app.json && tsc --noEmit -p tsconfig.spec.json"
}
}
diff --git a/packages/web/public/locales/en/translation.json b/packages/web/public/locales/en/translation.json
index b98209694eb..b321f2c5d85 100644
--- a/packages/web/public/locales/en/translation.json
+++ b/packages/web/public/locales/en/translation.json
@@ -1542,9 +1542,11 @@
"Logo": "Logo",
"Icon": "Icon",
"Favicon URL": "Favicon URL",
- "Primary Color": "Primary Color",
- "Customize theme colors": "Customize theme colors",
- "When disabled, theme colors are derived from your primary color.": "When disabled, theme colors are derived from your primary color.",
+ "Colors": "Colors",
+ "Primary": "Primary",
+ "Your brand and status colors.": "Your brand and status colors.",
+ "Danger": "Danger",
+ "Warning": "Warning",
"Danger zone": "Danger zone",
"Delete platform": "Delete platform",
"Once deleted, your platform cannot be recovered.": "Once deleted, your platform cannot be recovered.",
@@ -3165,5 +3167,12 @@
"Pay your provider directly, with no model markup": "Pay your provider directly, with no model markup",
"Add an AI provider before uploading. Files are indexed when uploaded so agents can search them.": "Add an AI provider before uploading. Files are indexed when uploaded so agents can search them.",
"This file has no text that can be searched.": "This file has no text that can be searched.",
- "{value} (not in the list)": "{value} (not in the list)"
+ "{value} (not in the list)": "{value} (not in the list)",
+ "invalidHexColor": "Enter a color as #abc or #aabbcc",
+ "Surface": "Surface",
+ "Border": "Border",
+ "Solid": "Solid",
+ "Text and marks": "Text and marks",
+ "Button": "Button",
+ "Hover": "Hover"
}
diff --git a/packages/web/scripts/check-tailwind-classes.mjs b/packages/web/scripts/check-tailwind-classes.mjs
new file mode 100644
index 00000000000..32c04720fcb
--- /dev/null
+++ b/packages/web/scripts/check-tailwind-classes.mjs
@@ -0,0 +1,260 @@
+import fs from 'node:fs';
+import { createRequire } from 'node:module';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+import { __unstable__loadDesignSystem } from '@tailwindcss/node';
+import ts from 'typescript';
+
+const WEB_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
+const SRC = path.join(WEB_ROOT, 'src');
+const ENTRY_CSS = path.join(SRC, 'styles.css');
+const require = createRequire(path.join(WEB_ROOT, 'package.json'));
+
+const CLASS_FUNCTIONS = new Set(['cn', 'clsx', 'cva', 'cx', 'twMerge']);
+const CLASS_NAME = /class(es|name)?$/i;
+
+const ALLOWED = [
+ /^(group|peer)(\/[\w-]+)?$/,
+ /^(nodrag|nopan|nowheel)$/,
+];
+
+const RUNTIME_VARIABLE_PREFIXES = ['--tw-', '--radix-', '--shiki-'];
+const RUNTIME_VARIABLE_SUFFIX = '-seed';
+
+const THIRD_PARTY_CSS = ['@xyflow/react/dist/style.css', 'react-data-grid/lib/styles.css'];
+
+const files = process.argv.length > 2 ? process.argv.slice(2).map((file) => path.resolve(file)) : walk(SRC);
+const design = await __unstable__loadDesignSystem(fs.readFileSync(ENTRY_CSS, 'utf8'), { base: SRC });
+const stylesheetClasses = collectStylesheetClasses();
+
+const usages = files.filter((file) => /\.(ts|tsx)$/.test(file)).flatMap(findClassUsages);
+const candidates = [...new Set(usages.map((usage) => usage.className))];
+const selectorClasses = new Set(candidates.flatMap((candidate) => [...candidate.matchAll(/\[[^\]]*?\.([A-Za-z_][\w-]*)/g)].map((match) => match[1])));
+const generated = design.candidatesToCss(candidates);
+const known = new Set(candidates.filter((candidate, index) => generated[index] !== null || isDefinedElsewhere(candidate)));
+const unknownClasses = usages.filter((usage) => !known.has(usage.className));
+const unknownVariables = findUnknownVariables();
+
+report({ title: 'Unknown classes: Tailwind cannot generate them and no stylesheet defines them.', usages: unknownClasses });
+report({ title: 'Unknown CSS variables: nothing defines them.', usages: unknownVariables });
+
+function report({ title, usages }) {
+ if (usages.length === 0) return;
+ console.error(`${title}\n`);
+ for (const usage of usages) {
+ console.error(`${path.relative(process.cwd(), usage.file)}:${usage.line}:${usage.column} ${usage.className}`);
+ }
+ console.error(`\n${usages.length} usage(s). See brain/knowledge/design-system/colour.md for colour names.\n`);
+ process.exitCode = 1;
+}
+
+function findUnknownVariables() {
+ const sources = files.filter((file) => /\.(ts|tsx|css)$/.test(file));
+ const definers = new Set([...walk(SRC), ...sources.filter((file) => !file.endsWith('.css'))]);
+ const everything = [...definers].filter((file) => /\.(ts|tsx|css)$/.test(file));
+ const defined = new Set([...design.theme.entries()].map(([name]) => name));
+ for (const file of [...everything, ...THIRD_PARTY_CSS.map((sheet) => require.resolve(sheet))]) {
+ const text = fs.readFileSync(file, 'utf8');
+ const definitions = file.endsWith('.css') ? /(--[\w-]+)\s*:/g : /['"`](--[\w-]+)['"`]/g;
+ for (const match of text.matchAll(definitions)) defined.add(match[1]);
+ }
+ return sources.flatMap((file) =>
+ fs.readFileSync(file, 'utf8').split('\n').flatMap((line, index) =>
+ [...line.matchAll(/var\(\s*(--[\w-]+)/g)]
+ .filter((match) => !defined.has(match[1]) && !isRuntimeVariable({ name: match[1] }))
+ .map((match) => ({ file, line: index + 1, column: match.index + 1, className: `var(${match[1]})` })),
+ ),
+ );
+}
+
+function findClassUsages(file) {
+ const source = ts.createSourceFile(file, fs.readFileSync(file, 'utf8'), ts.ScriptTarget.Latest, true, ts.ScriptKind.TSX);
+ const usages = [];
+ const seen = new Set();
+ const followed = new Set();
+ const declarations = collectDeclarations(source);
+
+ const addText = (text, start, { trimStart = false, trimEnd = false } = {}) => {
+ for (const match of text.matchAll(/\S+/g)) {
+ const touchesStart = trimStart && match.index === 0;
+ const touchesEnd = trimEnd && match.index + match[0].length === text.length;
+ if (touchesStart || touchesEnd) continue;
+ const position = start + match.index;
+ if (seen.has(position)) continue;
+ seen.add(position);
+ const { line, character } = source.getLineAndCharacterOfPosition(position);
+ usages.push({ file, line: line + 1, column: character + 1, className: match[0] });
+ }
+ };
+
+ const collectStrings = (node) => {
+ if (!node) return;
+ if (ts.isStringLiteral(node) || ts.isNoSubstitutionTemplateLiteral(node)) {
+ addText(node.text, node.getStart(source) + 1);
+ } else if (ts.isTemplateExpression(node)) {
+ addText(node.head.text, node.head.getStart(source) + 1, { trimEnd: true });
+ for (const span of node.templateSpans) {
+ const isLast = span === node.templateSpans.at(-1);
+ collectStrings(span.expression);
+ addText(span.literal.text, span.literal.getStart(source) + 1, { trimStart: true, trimEnd: !isLast });
+ }
+ } else if (ts.isConditionalExpression(node)) {
+ collectStrings(node.whenTrue);
+ collectStrings(node.whenFalse);
+ } else if (ts.isBinaryExpression(node)) {
+ const operator = node.operatorToken.kind;
+ if (operator === ts.SyntaxKind.AmpersandAmpersandToken) collectStrings(node.right);
+ if (operator === ts.SyntaxKind.BarBarToken || operator === ts.SyntaxKind.QuestionQuestionToken || operator === ts.SyntaxKind.PlusToken) {
+ collectStrings(node.left);
+ collectStrings(node.right);
+ }
+ } else if (ts.isArrayLiteralExpression(node)) {
+ node.elements.forEach(collectStrings);
+ } else if (ts.isObjectLiteralExpression(node)) {
+ for (const property of node.properties) {
+ if (ts.isPropertyAssignment(property) && ts.isStringLiteral(property.name)) {
+ addText(property.name.text, property.name.getStart(source) + 1);
+ }
+ }
+ } else if (ts.isParenthesizedExpression(node) || ts.isAsExpression(node) || ts.isSatisfiesExpression(node)) {
+ collectStrings(node.expression);
+ } else if (ts.isJsxExpression(node)) {
+ collectStrings(node.expression);
+ } else if (ts.isIdentifier(node)) {
+ follow(node.text, (declaration) => collectStrings(declaration));
+ } else if (ts.isPropertyAccessExpression(node) && ts.isIdentifier(node.expression)) {
+ follow(node.expression.text, (declaration) => {
+ const property = ts.isObjectLiteralExpression(declaration) && findProperty(declaration, node.name.text);
+ if (property) collectStrings(property.initializer);
+ });
+ } else if (ts.isElementAccessExpression(node) && ts.isIdentifier(node.expression)) {
+ follow(node.expression.text, collectObjectValues);
+ } else if (ts.isCallExpression(node)) {
+ if (ts.isIdentifier(node.expression) && CLASS_FUNCTIONS.has(node.expression.text)) collectClassCall(node);
+ else if (ts.isIdentifier(node.expression)) follow(node.expression.text, (declaration) => returnedExpressions(declaration).forEach(collectStrings));
+ }
+ };
+
+ const collectObjectValues = (node) => {
+ if (!ts.isObjectLiteralExpression(node)) return collectStrings(node);
+ for (const property of node.properties) {
+ if (ts.isPropertyAssignment(property)) collectObjectValues(property.initializer);
+ }
+ };
+ const follow = (name, collect) => {
+ for (const declaration of declarations.get(name) ?? []) {
+ if (followed.has(declaration)) continue;
+ followed.add(declaration);
+ collect(declaration);
+ }
+ };
+
+ const collectClassCall = (node) => {
+ if (node.expression.text === 'cva') {
+ collectStrings(node.arguments[0]);
+ collectCvaConfig(node.arguments[1]);
+ } else {
+ node.arguments.forEach(collectStrings);
+ }
+ };
+
+ const collectCvaConfig = (config) => {
+ if (!config || !ts.isObjectLiteralExpression(config)) return;
+ for (const property of config.properties) {
+ if (!ts.isPropertyAssignment(property)) continue;
+ const name = property.name.getText(source);
+ if (name === 'variants' && ts.isObjectLiteralExpression(property.initializer)) {
+ for (const variant of property.initializer.properties) {
+ if (!ts.isPropertyAssignment(variant) || !ts.isObjectLiteralExpression(variant.initializer)) continue;
+ for (const option of variant.initializer.properties) {
+ if (ts.isPropertyAssignment(option)) collectStrings(option.initializer);
+ }
+ }
+ } else if (name === 'compoundVariants' && ts.isArrayLiteralExpression(property.initializer)) {
+ for (const compound of property.initializer.elements) {
+ if (!ts.isObjectLiteralExpression(compound)) continue;
+ for (const field of compound.properties) {
+ if (ts.isPropertyAssignment(field) && CLASS_NAME.test(field.name.getText(source))) collectStrings(field.initializer);
+ }
+ }
+ }
+ }
+ };
+
+ const visit = (node) => {
+ if (ts.isJsxAttribute(node) && CLASS_NAME.test(node.name.getText(source))) {
+ collectStrings(node.initializer);
+ } else if (ts.isPropertyAssignment(node) && CLASS_NAME.test(node.name.getText(source))) {
+ collectObjectValues(node.initializer);
+ } else if (ts.isVariableDeclaration(node) && ts.isIdentifier(node.name) && CLASS_NAME.test(node.name.text) && node.initializer) {
+ collectObjectValues(node.initializer);
+ } else if (ts.isBinaryExpression(node) && node.operatorToken.kind === ts.SyntaxKind.EqualsToken && ts.isPropertyAccessExpression(node.left) && CLASS_NAME.test(node.left.name.text)) {
+ collectStrings(node.right);
+ } else if (ts.isCallExpression(node) && ts.isIdentifier(node.expression) && CLASS_FUNCTIONS.has(node.expression.text)) {
+ collectClassCall(node);
+ }
+ ts.forEachChild(node, visit);
+ };
+
+ visit(source);
+ return usages;
+}
+
+function collectDeclarations(source) {
+ const declarations = new Map();
+ const add = (name, node) => declarations.set(name, [...(declarations.get(name) ?? []), node]);
+ const visit = (node) => {
+ if (ts.isVariableDeclaration(node) && ts.isIdentifier(node.name) && node.initializer) add(node.name.text, node.initializer);
+ if (ts.isFunctionDeclaration(node) && node.name) add(node.name.text, node);
+ ts.forEachChild(node, visit);
+ };
+ visit(source);
+ return declarations;
+}
+
+function returnedExpressions(node) {
+ if (ts.isArrowFunction(node) && !ts.isBlock(node.body)) return [node.body];
+ if (!ts.isFunctionDeclaration(node) && !ts.isArrowFunction(node) && !ts.isFunctionExpression(node)) return [];
+ const returns = [];
+ const visit = (child) => {
+ if (ts.isFunctionLike(child)) return;
+ if (ts.isReturnStatement(child) && child.expression) returns.push(child.expression);
+ ts.forEachChild(child, visit);
+ };
+ if (node.body) ts.forEachChild(node.body, visit);
+ return returns;
+}
+
+function findProperty(object, name) {
+ return object.properties.find((property) => ts.isPropertyAssignment(property) && property.name.getText() === name);
+}
+
+function isDefinedElsewhere(candidate) {
+ const base = candidate.split(/:(?![^[]*\])/).at(-1).replace(/^!|!$/g, '');
+ return stylesheetClasses.has(base) || selectorClasses.has(base) || ALLOWED.some((pattern) => pattern.test(base));
+}
+
+function collectStylesheetClasses() {
+ const sheets = [
+ ...walk(SRC).filter((file) => file.endsWith('.css')),
+ ...THIRD_PARTY_CSS.map((sheet) => require.resolve(sheet)),
+ ];
+ const classes = new Set();
+ for (const sheet of sheets) {
+ const css = fs.readFileSync(sheet, 'utf8').replace(/\/\*[\s\S]*?\*\//g, '').replace(/url\([^)]*\)/g, '');
+ for (const match of css.matchAll(/\.(-?[A-Za-z_][\w-]*)/g)) classes.add(match[1]);
+ }
+ return classes;
+}
+
+function isRuntimeVariable({ name }) {
+ return RUNTIME_VARIABLE_PREFIXES.some((prefix) => name.startsWith(prefix)) || name.endsWith(RUNTIME_VARIABLE_SUFFIX);
+}
+
+function walk(dir) {
+ return fs.readdirSync(dir, { withFileTypes: true }).flatMap((entry) => {
+ const full = path.join(dir, entry.name);
+ if (entry.isDirectory()) return entry.name === 'node_modules' ? [] : walk(full);
+ return [full];
+ });
+}
diff --git a/packages/web/src/app/builder/builder-header/builder-header.tsx b/packages/web/src/app/builder/builder-header/builder-header.tsx
index ae27997ac96..3266ef0bb42 100644
--- a/packages/web/src/app/builder/builder-header/builder-header.tsx
+++ b/packages/web/src/app/builder/builder-header/builder-header.tsx
@@ -163,7 +163,7 @@ export const BuilderHeader = () => {
variant="ghost"
className="size-6 flex items-center justify-center"
>
- <ChevronDown className="h-4 w-4 text-muted-foreground" />
+ <ChevronDown className="h-4 w-4 text-gray-11" />
</Button>
</FlowActionMenu>
</div>
diff --git a/packages/web/src/app/builder/data-display/copy-ai-prompt.tsx b/packages/web/src/app/builder/data-display/copy-ai-prompt.tsx
index 82da155621d..d57e6508f69 100644
--- a/packages/web/src/app/builder/data-display/copy-ai-prompt.tsx
+++ b/packages/web/src/app/builder/data-display/copy-ai-prompt.tsx
@@ -60,7 +60,7 @@ const CopyAiPromptButton = ({
};
return (
- <div className={cn('px-4 py-3 border-t border-border', className)}>
+ <div className={cn('px-4 py-3 border-t border-gray-6', className)}>
<Button
type="button"
variant="outline"
@@ -69,9 +69,9 @@ const CopyAiPromptButton = ({
className="gap-1.5"
>
{copied ? (
- <Check className="size-3.5 text-success" />
+ <Check className="size-3.5 text-success-11" />
) : (
- <Sparkles className="size-3.5 text-primary" />
+ <Sparkles className="size-3.5 text-accent-11" />
)}
{copied ? t('Copied') : t('Copy Error for AI')}
</Button>
diff --git a/packages/web/src/app/builder/data-display/data-display-tabs.tsx b/packages/web/src/app/builder/data-display/data-display-tabs.tsx
index 13335f9c913..85772aa0f93 100644
--- a/packages/web/src/app/builder/data-display/data-display-tabs.tsx
+++ b/packages/web/src/app/builder/data-display/data-display-tabs.tsx
@@ -61,7 +61,7 @@ const DataDisplayTabs = ({
{canActOnData && (
<TooltipProvider>
<div className="sticky top-0 z-10 flex justify-end pointer-events-none">
- <div className="flex items-center gap-0.5 bg-background/90 backdrop-blur-sm rounded-md border border-border shadow-sm pointer-events-auto opacity-0 group-hover:opacity-100 focus-within:opacity-100 transition-opacity">
+ <div className="flex items-center gap-0.5 bg-gray-1/90 backdrop-blur-sm rounded-md border border-gray-6 shadow-sm pointer-events-auto opacity-0 group-hover:opacity-100 focus-within:opacity-100 transition-opacity">
<Tooltip>
<TooltipTrigger asChild>
<Button
diff --git a/packages/web/src/app/builder/data-display/friendly-error-view.tsx b/packages/web/src/app/builder/data-display/friendly-error-view.tsx
index ad351b5f417..c4d9206520b 100644
--- a/packages/web/src/app/builder/data-display/friendly-error-view.tsx
+++ b/packages/web/src/app/builder/data-display/friendly-error-view.tsx
@@ -47,7 +47,7 @@ const FriendlyErrorView = ({
return (
<div
className={cn(
- 'flex flex-col rounded-md border border-border overflow-hidden',
+ 'flex flex-col rounded-md border border-gray-6 overflow-hidden',
className,
)}
>
@@ -67,17 +67,15 @@ const FriendlyErrorView = ({
</Badge>
)}
</div>
- <p className="text-xs text-muted-foreground leading-relaxed">
- {hint}
- </p>
+ <p className="text-xs text-gray-11 leading-relaxed">{hint}</p>
</div>
</div>
{showMessage && (
- <div className="px-4 py-3 border-t border-border bg-background flex flex-col gap-1">
- <span className="text-xs font-medium uppercase tracking-wide text-muted-foreground">
+ <div className="px-4 py-3 border-t border-gray-6 bg-gray-1 flex flex-col gap-1">
+ <span className="text-xs font-medium uppercase tracking-wide text-gray-11">
{messageLabel}
</span>
- <p className="text-sm text-foreground break-words whitespace-pre-wrap">
+ <p className="text-sm text-gray-12 break-words whitespace-pre-wrap">
{messageText}
</p>
</div>
@@ -88,7 +86,7 @@ const FriendlyErrorView = ({
<CollapsibleJson
json={error.raw ?? technicalPayload}
label={t('Technical Details')}
- className="border-t border-border px-4 py-3"
+ className="border-t border-gray-6 px-4 py-3"
/>
</div>
);
@@ -128,17 +126,17 @@ type StatusTone = {
};
const DESTRUCTIVE_TONE: StatusTone = {
- headerBg: 'bg-destructive/10',
- iconColor: 'text-destructive',
- headlineColor: 'text-destructive',
- badgeColor: 'border-destructive/40 text-destructive bg-destructive/5',
+ headerBg: 'bg-danger-3',
+ iconColor: 'text-danger-11',
+ headlineColor: 'text-danger-11',
+ badgeColor: 'border-danger-7 text-danger-11 bg-danger-3',
};
const WARNING_TONE: StatusTone = {
- headerBg: 'bg-warning/10',
- iconColor: 'text-warning',
- headlineColor: 'text-foreground',
- badgeColor: 'border-warning/40 text-warning bg-warning/5',
+ headerBg: 'bg-warning-3',
+ iconColor: 'text-warning-11',
+ headlineColor: 'text-gray-12',
+ badgeColor: 'border-warning-7 text-warning-11 bg-warning-3',
};
const getStatusPresentation = (
diff --git a/packages/web/src/app/builder/data-selector/data-selector-node-content.tsx b/packages/web/src/app/builder/data-selector/data-selector-node-content.tsx
index 611a8e686f4..526bae378c6 100644
--- a/packages/web/src/app/builder/data-selector/data-selector-node-content.tsx
+++ b/packages/web/src/app/builder/data-selector/data-selector-node-content.tsx
@@ -97,7 +97,7 @@ const DataSelectorNodeContent = ({
aria-expanded={isExpandable ? expanded : undefined}
className={cn(
'w-full max-w-full relative select-none focus:outline-hidden cursor-pointer group transition-colors',
- 'hover:bg-accent/60 focus:bg-accent dark:hover:bg-accent/20',
+ 'hover:bg-gray-4/60 focus:bg-gray-4',
)}
data-depth={depth}
>
@@ -111,7 +111,7 @@ const DataSelectorNodeContent = ({
{!isStepRoot && isExpandable && (
<ChevronRight
className={cn(
- 'size-3.5 shrink-0 text-muted-foreground transition-transform',
+ 'size-3.5 shrink-0 text-gray-11 transition-transform',
expanded && 'rotate-90',
)}
/>
@@ -132,8 +132,8 @@ const DataSelectorNodeContent = ({
className={cn(
'truncate min-w-0 shrink-0 max-w-[30ch]',
isStepRoot
- ? 'font-medium text-foreground text-sm'
- : 'text-foreground text-sm',
+ ? 'font-medium text-gray-12 text-sm'
+ : 'text-gray-12 text-sm',
node.data.displayNameClassName,
)}
>
@@ -142,7 +142,7 @@ const DataSelectorNodeContent = ({
)}
{showArrayCount && (
- <span className="shrink-0 text-xs text-muted-foreground">
+ <span className="shrink-0 text-xs text-gray-11">
{t('{count, plural, =1 {1 item} other {# items}}', {
count: arrayValue?.length ?? 0,
})}
@@ -151,9 +151,9 @@ const DataSelectorNodeContent = ({
{showValuePreview && valuePreview !== '' && (
<>
- <span className="shrink-0 text-muted-foreground">:</span>
+ <span className="shrink-0 text-gray-11">:</span>
<TextWithTooltip tooltipMessage={String(valuePreview)}>
- <span className="min-w-0 truncate text-primary text-sm flex-1">
+ <span className="min-w-0 truncate text-accent-11 text-sm flex-1">
{valuePreview}
</span>
</TextWithTooltip>
@@ -173,7 +173,7 @@ const DataSelectorNodeContent = ({
}
}}
className={cn(
- 'h-6 px-2 text-xs text-primary shrink-0 opacity-0 transition-opacity',
+ 'h-6 px-2 text-xs text-accent-11 shrink-0 opacity-0 transition-opacity',
'group-hover:opacity-100 focus-visible:opacity-100',
)}
>
@@ -184,7 +184,7 @@ const DataSelectorNodeContent = ({
{isStepRoot && isExpandable && (
<ChevronDown
className={cn(
- 'size-4 shrink-0 text-muted-foreground transition-transform',
+ 'size-4 shrink-0 text-gray-11 transition-transform',
!expanded && '-rotate-90',
)}
/>
diff --git a/packages/web/src/app/builder/data-selector/data-selector-size-togglers.tsx b/packages/web/src/app/builder/data-selector/data-selector-size-togglers.tsx
index 13f1866c281..3d1a331607c 100644
--- a/packages/web/src/app/builder/data-selector/data-selector-size-togglers.tsx
+++ b/packages/web/src/app/builder/data-selector/data-selector-size-togglers.tsx
@@ -31,8 +31,7 @@ export const DataSelectorSizeTogglers = ({
const buttonClassName = (btnState: DataSelectorSizeState) =>
cn('', {
- 'text-outline': state === btnState,
- 'text-outline opacity-50': state !== btnState,
+ 'opacity-50': state !== btnState,
});
return (
diff --git a/packages/web/src/app/builder/data-selector/index.tsx b/packages/web/src/app/builder/data-selector/index.tsx
index dee048f26dd..1dd312b83b3 100644
--- a/packages/web/src/app/builder/data-selector/index.tsx
+++ b/packages/web/src/app/builder/data-selector/index.tsx
@@ -364,7 +364,7 @@ const DataSelector = ({ parentHeight, parentWidth }: DataSelectorProps) => {
ref={containerRef}
tabIndex={0}
className={cn(
- 'absolute bottom-0 mr-5 mb-5 right-0 z-50 transition-all border border-solid border-outline overflow-x-hidden bg-background shadow-lg rounded-md',
+ 'absolute bottom-0 mr-5 mb-5 right-0 z-50 transition-all border border-solid overflow-x-hidden bg-gray-1 shadow-lg rounded-md',
{
'opacity-0 pointer-events-none': !showDataSelector,
},
@@ -400,12 +400,12 @@ const DataSelector = ({ parentHeight, parentWidth }: DataSelectorProps) => {
>
<TabsList
variant="outline"
- className="px-3 shrink-0 gap-1 border-b border-border w-full justify-start"
+ className="px-3 shrink-0 gap-1 border-b border-gray-6 w-full justify-start"
>
<TabsTrigger
value="data"
variant="outline"
- className="gap-2 px-3 py-2 hover:text-foreground rounded-none"
+ className="gap-2 px-3 py-2 hover:text-gray-12 rounded-none"
>
<Database className="w-4 h-4" />
{t('Data')}
@@ -413,7 +413,7 @@ const DataSelector = ({ parentHeight, parentWidth }: DataSelectorProps) => {
<TabsTrigger
value="variables"
variant="outline"
- className="gap-2 px-3 py-2 hover:text-foreground rounded-none"
+ className="gap-2 px-3 py-2 hover:text-gray-12 rounded-none"
>
<Variable className="w-4 h-4" />
{t('Variables')}
@@ -460,7 +460,7 @@ const DataSelector = ({ parentHeight, parentWidth }: DataSelectorProps) => {
{filteredNodes.length === 0 && (
<div className="flex items-center justify-center gap-2 mt-5 flex-col">
<SearchXIcon className="w-[35px] h-[35px]"></SearchXIcon>
- <div className="text-center font-semibold text-md">
+ <div className="text-center font-semibold">
{t('No matching data')}
</div>
<div className="text-center ">
diff --git a/packages/web/src/app/builder/data-selector/test-step-section.tsx b/packages/web/src/app/builder/data-selector/test-step-section.tsx
index 9914b27850d..e3ee28271a3 100644
--- a/packages/web/src/app/builder/data-selector/test-step-section.tsx
+++ b/packages/web/src/app/builder/data-selector/test-step-section.tsx
@@ -12,8 +12,8 @@ export const TestStepSection = ({ stepName }: { stepName: string }) => {
);
return (
- <div className="flex items-center justify-between gap-2 mx-3 my-2 px-3 py-2 rounded-md bg-muted/50 border border-dashed border-border">
- <span className="text-xs text-muted-foreground leading-snug">
+ <div className="flex items-center justify-between gap-2 mx-3 my-2 px-3 py-2 rounded-md bg-gray-3/50 border border-dashed border-gray-6">
+ <span className="text-xs text-gray-11 leading-snug">
{isTrigger
? t('No sample data yet — load it from the trigger.')
: t('No sample data yet — test this step first.')}
@@ -22,7 +22,7 @@ export const TestStepSection = ({ stepName }: { stepName: string }) => {
onClick={() => selectStepByName(stepName)}
variant="ghost"
size="sm"
- className="h-6 px-2 text-xs text-primary hover:text-primary hover:bg-primary/10 shrink-0"
+ className="h-6 px-2 text-xs text-accent-11 hover:text-accent-11 hover:bg-accent-3 shrink-0"
>
{isTrigger ? t('Go to trigger') : t('Go to step')}
<ArrowUpRight className="size-3" />
diff --git a/packages/web/src/app/builder/data-selector/utils.ts b/packages/web/src/app/builder/data-selector/utils.ts
index 58b3a491db5..2861b046d25 100644
--- a/packages/web/src/app/builder/data-selector/utils.ts
+++ b/packages/web/src/app/builder/data-selector/utils.ts
@@ -368,7 +368,7 @@ function traverseStep(
data: {
type: 'chunk',
displayName: t('On success'),
- displayNameClassName: 'text-success-800 dark:text-success-200',
+ displayNameClassName: 'text-success-11',
},
children: stepNode.children,
};
@@ -378,8 +378,7 @@ function traverseStep(
data: {
type: 'chunk',
displayName: t('On failure'),
- displayNameClassName:
- 'text-destructive-800 dark:text-destructive-200',
+ displayNameClassName: 'text-danger-11',
},
children: [errorMessageLeaf],
};
diff --git a/packages/web/src/app/builder/data-selector/variables-tab.tsx b/packages/web/src/app/builder/data-selector/variables-tab.tsx
index 69ee3d9df91..432f00f2b68 100644
--- a/packages/web/src/app/builder/data-selector/variables-tab.tsx
+++ b/packages/web/src/app/builder/data-selector/variables-tab.tsx
@@ -61,7 +61,7 @@ const VariablesTab = () => {
<ScrollArea className="transition-all flex-1 w-full">
{isLoading && (
- <div className="text-center text-sm text-muted-foreground py-8">
+ <div className="text-center text-sm text-gray-11 py-8">
{t('Loading…')}
</div>
)}
@@ -71,22 +71,22 @@ const VariablesTab = () => {
{debouncedSearch ? (
<>
<SearchXIcon className="w-[35px] h-[35px]" />
- <div className="text-center font-semibold text-md">
+ <div className="text-center font-semibold">
{t('No matching variables')}
</div>
- <div className="text-center text-sm text-muted-foreground">
+ <div className="text-center text-sm text-gray-11">
{t('Try adjusting your search')}
</div>
</>
) : (
<>
- <div className="flex items-center justify-center w-12 h-12 rounded-full bg-primary/10 text-primary">
+ <div className="flex items-center justify-center w-12 h-12 rounded-full bg-accent-3 text-accent-11">
<Variable className="w-5 h-5" />
</div>
- <div className="text-center font-semibold text-md">
+ <div className="text-center font-semibold">
{t('No variables yet')}
</div>
- <div className="text-center text-sm text-muted-foreground max-w-[280px]">
+ <div className="text-center text-sm text-gray-11 max-w-[280px]">
{t(
'Create a variable to reference a value from any step input.',
)}
@@ -128,11 +128,11 @@ const VariablesTab = () => {
}}
className={cn(
'group w-full max-w-full select-none focus:outline-hidden',
- 'hover:bg-accent dark:hover:bg-accent/20 focus:bg-accent focus:bg-opacity-75',
+ 'hover:bg-gray-4 focus:bg-gray-4',
'cursor-pointer flex items-center gap-3 px-5 py-3',
)}
>
- <div className="shrink-0 flex items-center justify-center w-8 h-8 rounded-md bg-primary/10 text-primary">
+ <div className="shrink-0 flex items-center justify-center w-8 h-8 rounded-md bg-accent-3 text-accent-11">
<Variable className="w-4 h-4" />
</div>
<div className="flex-1 min-w-0">
diff --git a/packages/web/src/app/builder/flow-canvas/canvas-controls/index.tsx b/packages/web/src/app/builder/flow-canvas/canvas-controls/index.tsx
index 19bb9b47c33..4556f32ae3b 100644
--- a/packages/web/src/app/builder/flow-canvas/canvas-controls/index.tsx
+++ b/packages/web/src/app/builder/flow-canvas/canvas-controls/index.tsx
@@ -133,7 +133,7 @@ const CanvasControls = ({
id="canvas-controls"
className="z-50 absolute bottom-2 left-0 flex items-center w-full pointer-events-none "
>
- <div className=" absolute flex ml-2 items-center justify-center p-1.5 pointer-events-auto rounded-lg bg-background border border-sidebar-border">
+ <div className=" absolute flex ml-2 items-center justify-center p-1.5 pointer-events-auto rounded-lg bg-gray-1 border border-gray-6">
<CanvasControlButton
tooltip={t('Minimap' + (isMac() ? ' (⌘ + M)' : ' (Ctrl + M)'))}
icon={Map}
@@ -143,7 +143,7 @@ const CanvasControls = ({
</div>
<div className="grow"></div>
- <div className="bg-background gap-2 flex items-center shadow-2xl justify-center border border-sidebar-border p-1.5 rounded-lg pointer-events-auto">
+ <div className="bg-gray-1 gap-2 flex items-center shadow-2xl justify-center border border-gray-6 p-1.5 rounded-lg pointer-events-auto">
<CanvasControlButton
tooltip={t('Zoom in')}
icon={Plus}
diff --git a/packages/web/src/app/builder/flow-canvas/context-menu/canvas-context-menu-content.tsx b/packages/web/src/app/builder/flow-canvas/context-menu/canvas-context-menu-content.tsx
index 53500f3f305..b2c1f778cf0 100644
--- a/packages/web/src/app/builder/flow-canvas/context-menu/canvas-context-menu-content.tsx
+++ b/packages/web/src/app/builder/flow-canvas/context-menu/canvas-context-menu-content.tsx
@@ -413,8 +413,8 @@ export const CanvasContextMenuContent = ({
}}
>
<ShortcutWrapper shortcut={CanvasShortcuts['Delete']}>
- <Trash className="w-4 stroke-destructive h-4"></Trash>{' '}
- <div className="text-destructive">{t('Delete')}</div>
+ <Trash className="w-4 stroke-danger-11 h-4"></Trash>{' '}
+ <div className="text-danger-11">{t('Delete')}</div>
</ShortcutWrapper>
</ContextMenuItem>
</>
diff --git a/packages/web/src/app/builder/flow-canvas/edges/add-button.tsx b/packages/web/src/app/builder/flow-canvas/edges/add-button.tsx
index c4583f18ebc..9958f78b037 100644
--- a/packages/web/src/app/builder/flow-canvas/edges/add-button.tsx
+++ b/packages/web/src/app/builder/flow-canvas/edges/add-button.tsx
@@ -49,7 +49,7 @@ const ApAddButton = React.memo((props: ApButtonData) => {
width: flowCanvasConsts.AP_NODE_SIZE.ADD_BUTTON.width + 'px',
height: flowCanvasConsts.AP_NODE_SIZE.ADD_BUTTON.height + 'px',
}}
- className={cn('transition-all bg-primary/90 rounded-md', {
+ className={cn('transition-all bg-accent-9/90 rounded-md', {
'shadow-add-button': isStepInsideDropZone,
})}
>
@@ -108,15 +108,15 @@ const ApAddButton = React.memo((props: ApButtonData) => {
flowCanvasConsts.AP_NODE_SIZE.ADD_BUTTON.height + 'px',
}}
className={cn(
- 'bg-background border border-border border-solid relative group overflow-visible rounded-md cursor-pointer flex items-center justify-center transition-all duration-300 ease-in-out',
+ 'bg-gray-1 border border-gray-6 border-solid relative group overflow-visible rounded-md cursor-pointer flex items-center justify-center transition-all duration-300',
{
- 'bg-primary border-primary': isPieceSelectorOpen,
+ 'bg-accent-9 border-accent-9': isPieceSelectorOpen,
},
)}
data-testid="add-action-button"
>
{!isPieceSelectorOpen && (
- <Plus className="w-3 h-3 stroke-[3px] text-foreground" />
+ <Plus className="w-3 h-3 stroke-[3px] text-gray-12" />
)}
</div>
</div>
diff --git a/packages/web/src/app/builder/flow-canvas/edges/branch-label.tsx b/packages/web/src/app/builder/flow-canvas/edges/branch-label.tsx
index 9ed199049a1..b2ab6cb7af2 100644
--- a/packages/web/src/app/builder/flow-canvas/edges/branch-label.tsx
+++ b/packages/web/src/app/builder/flow-canvas/edges/branch-label.tsx
@@ -108,7 +108,7 @@ const BranchLabel = (props: BaseBranchLabel) => {
}}
>
<div
- className="bg-builder-background pointer-events-auto"
+ className="bg-gray-2 pointer-events-auto"
style={{
paddingTop: flowCanvasConsts.LABEL_VERTICAL_PADDING / 2 + 'px',
paddingBottom: flowCanvasConsts.LABEL_VERTICAL_PADDING / 2 + 'px',
@@ -116,14 +116,14 @@ const BranchLabel = (props: BaseBranchLabel) => {
>
<div
className={cn(
- 'flex items-center justify-center gap-0.5 select-none transition-all rounded-md text-sm border border-solid bg-primary-100/30 dark:bg-primary-100/15 border-primary/50 px-2 text-primary/80 dark:text-primary/90 hover:text-primary hover:border-primary',
+ 'flex items-center justify-center gap-0.5 select-none transition-all rounded-md text-sm border border-solid bg-accent-3 border-accent-7 px-2 text-accent-11 hover:text-accent-11 hover:border-accent-9',
{
- 'border-primary text-primary': isBranchSelected,
- 'bg-border/60 text-foreground/70 dark:text-foreground/70 border-border hover:text-foreground/70 hover:bg-border/60 hover:border-border cursor-default':
+ 'border-accent-9 text-accent-11': isBranchSelected,
+ 'bg-gray-3 text-gray-11 border-gray-7 hover:text-gray-11 hover:bg-gray-3 hover:border-gray-7 cursor-default':
isOtherwiseBranch,
- 'text-success-800 bg-success-50 border-success-200 dark:text-success-200 dark:bg-success-900 dark:border-success-800 hover:text-success-800 hover:bg-success-50 hover:border-success-200 cursor-default':
+ 'text-success-11 bg-success-3 border-success-7 hover:text-success-11 hover:bg-success-3 hover:border-success-7 cursor-default':
isOnSuccessBranch,
- 'text-destructive-800 bg-destructive-50 border-destructive-200 dark:text-destructive-200 dark:bg-destructive-900 dark:border-destructive-800 hover:text-destructive-800 hover:bg-destructive-50 hover:border-destructive-200 cursor-default':
+ 'text-danger-11 bg-danger-3 border-danger-7 hover:text-danger-11 hover:bg-danger-3 hover:border-danger-7 cursor-default':
isOnFailureBranch,
},
)}
@@ -157,7 +157,7 @@ const BranchLabel = (props: BaseBranchLabel) => {
>
<DropdownMenuTrigger asChild>
<div
- className="h-5 shrink-0 border border-transparent hover:border-solid hover:border-primary-300/50 transition-all rounded-full w-5 flex items-center justify-center"
+ className="h-5 shrink-0 border border-transparent hover:border-solid hover:border-accent-7 transition-all rounded-full w-5 flex items-center justify-center"
onClick={(e) => e.stopPropagation()}
>
<EllipsisVertical className="h-4 w-4" />
@@ -208,8 +208,8 @@ const BranchLabel = (props: BaseBranchLabel) => {
}}
>
<div className="flex cursor-pointer flex-row gap-2 items-center">
- <Trash2 className="h-4 w-4 text-destructive" />
- <span className="text-destructive">
+ <Trash2 className="h-4 w-4 text-danger-11" />
+ <span className="text-danger-11">
{t('Delete Branch')}
</span>
</div>
diff --git a/packages/web/src/app/builder/flow-canvas/index.tsx b/packages/web/src/app/builder/flow-canvas/index.tsx
index c33710dbe4f..e0752331716 100644
--- a/packages/web/src/app/builder/flow-canvas/index.tsx
+++ b/packages/web/src/app/builder/flow-canvas/index.tsx
@@ -205,7 +205,7 @@ export const FlowCanvas = React.memo(
return (
<div
ref={containerRef}
- className="size-full relative overflow-hidden z-30 bg-builder-background"
+ className="size-full relative overflow-hidden z-30 bg-gray-2"
onMouseMove={(event) => {
const cursorPosition = { x: event.clientX, y: event.clientY };
setCursorPosition(cursorPosition);
@@ -215,7 +215,7 @@ export const FlowCanvas = React.memo(
<CanvasContextMenu contextMenuType={contextMenuType}>
<ReactFlow
key={`canvas-${canvasOrientation}`}
- className="bg-builder-background"
+ className="bg-gray-2"
onContextMenu={onContextMenu}
onPaneClick={() => {
reactFlowStore.getState().unselectNodesAndEdges();
@@ -252,8 +252,8 @@ export const FlowCanvas = React.memo(
gap={10}
size={1}
variant={BackgroundVariant.Dots}
- bgColor={`var(--builder-background)`}
- color={`var(--builder-background-pattern)`}
+ bgColor={`var(--gray-2)`}
+ color={`var(--gray-5)`}
/>
<Minimap key={graphKey} />
</ReactFlow>
diff --git a/packages/web/src/app/builder/flow-canvas/nodes/big-add-button-node.tsx b/packages/web/src/app/builder/flow-canvas/nodes/big-add-button-node.tsx
index df43b5e9961..beb1e881fc1 100644
--- a/packages/web/src/app/builder/flow-canvas/nodes/big-add-button-node.tsx
+++ b/packages/web/src/app/builder/flow-canvas/nodes/big-add-button-node.tsx
@@ -58,7 +58,7 @@ const ApBigAddButtonCanvasNode = React.memo(
>
{!readonly && (
//we use transparent colors when opening the piece selector, so to not show the pattern of the background inside the button, we wrap the big add button in a div with the background color
- <div className="bg-builder-background">
+ <div className="bg-gray-2">
<div
style={{
height: `${flowCanvasConsts.AP_NODE_SIZE.BIG_ADD_BUTTON.height}px`,
@@ -72,8 +72,8 @@ const ApBigAddButtonCanvasNode = React.memo(
width: `${flowCanvasConsts.AP_NODE_SIZE.BIG_ADD_BUTTON.width}px`,
}}
id={id}
- className={cn('rounded-lg bg-background relative', {
- 'bg-primary/80':
+ className={cn('rounded-lg bg-gray-1 relative', {
+ 'bg-accent-9/80':
isShowingDropIndicator || isPieceSelectorOpened,
'shadow-add-button':
isIsStepInsideDropzone || isPieceSelectorOpened,
@@ -93,10 +93,10 @@ const ApBigAddButtonCanvasNode = React.memo(
<span>
<Button
variant="transparent"
- className="w-full h-full flex items-center hover:bg-accent-foreground rounded-lg border-border border-solid border"
+ className="w-full h-full flex items-center enabled:hover:bg-gray-4 rounded-lg border-gray-6 border-solid border"
>
<Plus
- className={cn('w-6 h-6 text-foreground ', {
+ className={cn('w-6 h-6 text-gray-12 ', {
'opacity-0':
isShowingDropIndicator ||
isPieceSelectorOpened,
diff --git a/packages/web/src/app/builder/flow-canvas/nodes/note-node/index.tsx b/packages/web/src/app/builder/flow-canvas/nodes/note-node/index.tsx
index 498af89d9df..5883155708b 100644
--- a/packages/web/src/app/builder/flow-canvas/nodes/note-node/index.tsx
+++ b/packages/web/src/app/builder/flow-canvas/nodes/note-node/index.tsx
@@ -79,7 +79,7 @@ const ApNoteCanvasNode = (props: NodeProps & Omit<ApNoteNode, 'position'>) => {
>
<button
className={cn(
- 'group-focus-within:block hidden outline-none cursor-nwse-resize rounded-full bg-stone-50 border border-solid -translate-x-[60%] -translate-y-[60%] p-0.75',
+ 'group-focus-within:block hidden outline-none cursor-nwse-resize rounded-full bg-panel border border-solid -translate-x-[60%] -translate-y-[60%] p-0.75',
FocusedBorderClassName[note.color],
)}
></button>
@@ -186,7 +186,7 @@ const NoteContent = ({ note, isDragging }: NoteContentProps) => {
NoteColorVariantClassName[color],
{
'!cursor-grabbing': isDragging,
- '!text-foreground': true,
+ '!text-gray-12': true,
},
)}
onlyEditableOnDoubleClick={true}
@@ -222,31 +222,19 @@ type NoteContentProps = {
};
const NoteColorVariantClassName = {
- [NoteColorVariant.YELLOW]:
- 'dark:bg-[oklch(0.3052_0.0455_83.74)] dark:text-[oklch(0.8826_0.1328_86.23)] bg-[oklch(0.9638_0.0522_92.93)] text-[oklch(0.4784_0.1089_63.21)]',
- [NoteColorVariant.ORANGE]:
- 'dark:bg-[oklch(0.2968_0.0566_51.71)] dark:text-[oklch(0.8717_0.0836_58.75)] text-[oklch(0.4905_0.140461_44.9084)] bg-[oklch(0.9583_0.0245_61.65)]',
- [NoteColorVariant.RED]:
- 'dark:bg-[oklch(0.3046_0.0779_7.16)] dark:text-[oklch(0.9002_0.052_18.16)] bg-[oklch(0.956_0.0218_17.54)] text-[oklch(0.5141_0.1849_26.72)]',
- [NoteColorVariant.GREEN]:
- 'dark:bg-[oklch(0.3411_0.0464_168.94)] dark:text-[oklch(0.9025_0.0888_163.86)] text-[oklch(0.5208_0.115675_161.168)] bg-[oklch(0.9667_0.0353_162.37)]',
- [NoteColorVariant.BLUE]:
- 'dark:bg-[oklch(0.3086_0.0738_264.7)] dark:text-[oklch(0.8746_0.061_264.64)] bg-[oklch(0.9474_0.0249_263.33)] text-[oklch(0.4975_0.1752_261.14)]',
- [NoteColorVariant.PURPLE]:
- 'dark:bg-[oklch(0.2936_0.1027_291.89)] dark:text-[oklch(0.8565_0.0834_300.16)] text-[oklch(0.4647_0.186_293.18)] bg-[oklch(0.9633_0.0206_301.15)]',
+ [NoteColorVariant.YELLOW]: 'bg-swatch-6-surface text-swatch-6-ink',
+ [NoteColorVariant.ORANGE]: 'bg-swatch-5-surface text-swatch-5-ink',
+ [NoteColorVariant.RED]: 'bg-swatch-4-surface text-swatch-4-ink',
+ [NoteColorVariant.GREEN]: 'bg-swatch-8-surface text-swatch-8-ink',
+ [NoteColorVariant.BLUE]: 'bg-swatch-11-surface text-swatch-11-ink',
+ [NoteColorVariant.PURPLE]: 'bg-swatch-1-surface text-swatch-1-ink',
};
const FocusedBorderClassName = {
- [NoteColorVariant.YELLOW]:
- 'dark:group-focus-within:text-[oklch(0.8826_0.1328_86.23)] group-focus-within:border-[oklch(0.4784_0.1089_63.21)]',
- [NoteColorVariant.ORANGE]:
- 'dark:group-focus-within:text-[oklch(0.8717_0.0836_58.75)] group-focus-within:border-[oklch(0.4905_0.140461_44.9084)]',
- [NoteColorVariant.RED]:
- 'dark:group-focus-within:text-[oklch(0.9002_0.052_18.16)] group-focus-within:border-[oklch(0.5141_0.1849_26.72)]',
- [NoteColorVariant.GREEN]:
- 'dark:group-focus-within:text-[oklch(0.9025_0.0888_163.86)] group-focus-within:border-[oklch(0.5208_0.115675_161.168)]',
- [NoteColorVariant.BLUE]:
- 'dark:group-focus-within:text-[oklch(0.8746_0.061_264.64)] group-focus-within:border-[oklch(0.4975_0.1752_261.14)]',
- [NoteColorVariant.PURPLE]:
- 'dark:group-focus-within:text-[oklch(0.8565_0.0834_300.16)] group-focus-within:border-[oklch(0.4647_0.186_293.18)]',
+ [NoteColorVariant.YELLOW]: 'group-focus-within:border-swatch-6-mark',
+ [NoteColorVariant.ORANGE]: 'group-focus-within:border-swatch-5-mark',
+ [NoteColorVariant.RED]: 'group-focus-within:border-swatch-4-mark',
+ [NoteColorVariant.GREEN]: 'group-focus-within:border-swatch-8-mark',
+ [NoteColorVariant.BLUE]: 'group-focus-within:border-swatch-11-mark',
+ [NoteColorVariant.PURPLE]: 'group-focus-within:border-swatch-1-mark',
};
diff --git a/packages/web/src/app/builder/flow-canvas/nodes/note-node/note-tools.tsx b/packages/web/src/app/builder/flow-canvas/nodes/note-node/note-tools.tsx
index 66e6d93f763..3851380172b 100644
--- a/packages/web/src/app/builder/flow-canvas/nodes/note-node/note-tools.tsx
+++ b/packages/web/src/app/builder/flow-canvas/nodes/note-node/note-tools.tsx
@@ -30,7 +30,7 @@ export const NoteTools = ({ editor, currentColor, id }: NoteToolsProps) => {
className="absolute cursor-default -top-[45px] w-full left-0"
>
<div className="flex items-center justify-center">
- <div className="p-1 bg-background flex items-center gap-0.5 shadow-md rounded-lg scale-65 border border-solid border-border">
+ <div className="p-1 bg-gray-1 flex items-center gap-0.5 shadow-md rounded-lg scale-65 border border-solid border-gray-6">
<NoteColorPicker
currentColor={currentColor}
setCurrentColor={(color: NoteColorVariant) => {
@@ -48,7 +48,7 @@ export const NoteTools = ({ editor, currentColor, id }: NoteToolsProps) => {
deleteNote(id);
}}
>
- <TrashIcon className="size-4 text-destructive" />
+ <TrashIcon className="size-4 text-danger-11" />
</Button>
</ToolWrapper>
</div>
@@ -58,12 +58,12 @@ export const NoteTools = ({ editor, currentColor, id }: NoteToolsProps) => {
};
const NoteColorPickerClassName = {
- [NoteColorVariant.YELLOW]: 'bg-amber-400',
- [NoteColorVariant.ORANGE]: 'bg-orange-400',
- [NoteColorVariant.RED]: 'bg-red-400',
- [NoteColorVariant.GREEN]: 'bg-green-400',
- [NoteColorVariant.BLUE]: 'bg-blue-400',
- [NoteColorVariant.PURPLE]: 'bg-purple-400',
+ [NoteColorVariant.YELLOW]: 'bg-swatch-6-mark',
+ [NoteColorVariant.ORANGE]: 'bg-swatch-5-mark',
+ [NoteColorVariant.RED]: 'bg-swatch-4-mark',
+ [NoteColorVariant.GREEN]: 'bg-swatch-8-mark',
+ [NoteColorVariant.BLUE]: 'bg-swatch-11-mark',
+ [NoteColorVariant.PURPLE]: 'bg-swatch-1-mark',
};
const NoteColorPicker = ({
diff --git a/packages/web/src/app/builder/flow-canvas/nodes/step-node/index.tsx b/packages/web/src/app/builder/flow-canvas/nodes/step-node/index.tsx
index d7b997d0ac5..8b28da33c11 100644
--- a/packages/web/src/app/builder/flow-canvas/nodes/step-node/index.tsx
+++ b/packages/web/src/app/builder/flow-canvas/nodes/step-node/index.tsx
@@ -133,15 +133,15 @@ const ApStepCanvasNode = React.memo(
}}
onContextMenu={(e) => handleContextMenu(e)}
className={cn(
- 'transition-all border-box rounded-md border border-solid border-border relative overflow-visible group',
+ 'transition-all rounded-md border border-solid border-gray-6 relative overflow-visible group',
{
- 'border-primary': isSelected,
- 'bg-background': !isDragging,
+ 'border-accent-9': isSelected,
+ 'bg-gray-1': !isDragging,
'border-none': isDragging,
'shadow-none': isDragging,
- 'bg-accent': isSkipped,
+ 'bg-gray-4': isSkipped,
'rounded-tl-none': isTrigger && !isHorizontal,
- 'hover:border-ring': !isSelected,
+ 'hover:border-gray-8': !isSelected,
},
)}
onClick={(e) => handleStepClick(e)}
diff --git a/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-drag-overlay.tsx b/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-drag-overlay.tsx
index bd09d14790f..010ae5b39bb 100644
--- a/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-drag-overlay.tsx
+++ b/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-drag-overlay.tsx
@@ -3,6 +3,7 @@ import { useStore } from '@xyflow/react';
import { t } from 'i18next';
import { useState } from 'react';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { stepsHooks } from '@/features/pieces';
import {
@@ -36,7 +37,7 @@ const StepDragOverlay = ({ step }: { step: FlowAction | FlowTrigger }) => {
return (
<div
className={
- 'p-4 absolute left-0 top-0 cursor-grabbing z-50 opacity-75 flex items-center justify-center rounded-2xl border border-solid border bg-background cursor-grabbing'
+ 'p-4 absolute left-0 top-0 cursor-grabbing z-50 opacity-75 flex items-center justify-center rounded-2xl border border-solid border bg-gray-1 cursor-grabbing'
}
style={{
left,
@@ -47,9 +48,8 @@ const StepDragOverlay = ({ step }: { step: FlowAction | FlowTrigger }) => {
}}
id={'dragged-step-overlay'}
>
- <img
- id={t('logo')}
- className={'object-contain left-0 right-0 static !cursor-grabbing'}
+ <LogoPlate
+ className="h-full w-full !cursor-grabbing"
src={step?.settings?.customLogoUrl ?? stepMetadata?.logoUrl}
alt={t('Step Icon')}
/>
diff --git a/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-chevron.tsx b/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-chevron.tsx
index 5cc4bc973d4..25272423f4f 100644
--- a/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-chevron.tsx
+++ b/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-chevron.tsx
@@ -35,7 +35,7 @@ const StepNodeChevron = ({
}
}}
>
- <ChevronDown className="w-4 h-4 stroke-muted-foreground" />
+ <ChevronDown className="w-4 h-4 stroke-gray-11" />
</Button>
);
};
diff --git a/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-display-name.tsx b/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-display-name.tsx
index 6063cf3b3c0..3fb68b918b5 100644
--- a/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-display-name.tsx
+++ b/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-display-name.tsx
@@ -37,7 +37,7 @@ const StepNodeDisplayName = ({
<TextWithTooltip tooltipMessage={stepDisplayName} key={stepDisplayName}>
<div
className={cn('text-sm truncate grow shrink ', {
- 'text-accent-foreground/70': isSkipped,
+ 'text-gray-12/70': isSkipped,
'text-center': isHorizontal,
})}
>
diff --git a/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-logo.tsx b/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-logo.tsx
index 874495beb6e..28a25490fd7 100644
--- a/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-logo.tsx
+++ b/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-logo.tsx
@@ -1,5 +1,5 @@
import { useBuilderStateContext } from '@/app/builder/builder-hooks';
-import { ImageWithColorBackground } from '@/components/custom/image-with-color-background';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { cn } from '@/lib/utils';
const StepNodeLogo = ({
@@ -21,16 +21,14 @@ const StepNodeLogo = ({
'opacity-80': isSkipped,
})}
>
- <ImageWithColorBackground
+ <LogoPlate
src={logoUrl}
alt={displayName}
- key={logoUrl + displayName}
- border={true}
- className={cn({
- 'w-9 h-9 p-2': !isHorizontal,
- 'w-12 h-12 p-2.5': isHorizontal,
+ className={cn('rounded-lg border-gray-6/50', {
+ 'size-9 p-2': !isHorizontal,
+ 'size-12 p-2.5': isHorizontal,
})}
- roundedCorner={true}
+ border
/>
</div>
);
diff --git a/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-run-duration-and-piece-name.tsx b/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-run-duration-and-piece-name.tsx
index 5e0dd3b4963..4c684bfb445 100644
--- a/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-run-duration-and-piece-name.tsx
+++ b/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-run-duration-and-piece-name.tsx
@@ -9,7 +9,7 @@ import { cn } from '@/lib/utils';
const StepNodeRunDuration = ({ duration }: { duration: number }) => {
return (
- <div className="text-xs text-muted-foreground shrink-0 flex items-center gap-1">
+ <div className="text-xs text-gray-11 shrink-0 flex items-center gap-1">
<Timer className="size-3" />
<span>{formatUtils.formatDuration(duration, true)}</span>
</div>
@@ -49,7 +49,7 @@ const StepNodeRunDurationAndPieceName = ({
key={pieceDisplayName + selectedStepOutput?.duration}
>
<div
- className={cn('text-xs text-muted-foreground truncate grow shrink', {
+ className={cn('text-xs text-gray-11 truncate grow shrink', {
'w-full': !isHorizontal,
'text-center': isHorizontal,
})}
diff --git a/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-skipped-status.tsx b/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-skipped-status.tsx
index 74f87c7cf37..61b8adba822 100644
--- a/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-skipped-status.tsx
+++ b/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-skipped-status.tsx
@@ -35,7 +35,10 @@ const ApStepNodeSkippedStatus = ({ stepName }: { stepName: string }) => {
return (
<StepNodeBadgeContainer>
<div
- className={flowRunUtils.getStatusContainerClassName('default', true)}
+ className={flowRunUtils.getStatusContainerClassName({
+ variant: 'default',
+ withPaddingAndAnimation: true,
+ })}
>
<RouteOff className="size-3" />
<div>{t('Skipped')}</div>
diff --git a/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-status-in-draft.tsx b/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-status-in-draft.tsx
index c7dd9e38c99..30770bf0ac0 100644
--- a/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-status-in-draft.tsx
+++ b/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-status-in-draft.tsx
@@ -149,10 +149,10 @@ const ApStepNodeStatusInDraft = ({ stepName }: { stepName: string }) => {
}
const config = draftStatusConfig[status];
- const badgeClassName = flowRunUtils.getStatusContainerClassName(
- config.variant,
- true,
- );
+ const badgeClassName = flowRunUtils.getStatusContainerClassName({
+ variant: config.variant,
+ withPaddingAndAnimation: true,
+ });
return (
<StepNodeBadgeContainer>
diff --git a/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-status-in-run.tsx b/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-status-in-run.tsx
index a36f0fd68d2..3bc5fb0476f 100644
--- a/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-status-in-run.tsx
+++ b/packages/web/src/app/builder/flow-canvas/nodes/step-node/step-node-status-in-run.tsx
@@ -24,7 +24,12 @@ const ApStepNodeStatusInRun = ({ stepName }: { stepName: string }) => {
: ({ variant: 'default', text: t('Testing...') } as const);
return (
<StepNodeBadgeContainer>
- <div className={flowRunUtils.getStatusContainerClassName(variant, true)}>
+ <div
+ className={flowRunUtils.getStatusContainerClassName({
+ variant,
+ withPaddingAndAnimation: true,
+ })}
+ >
<StepStatusIcon
status={stepStatusInRun}
size="3"
diff --git a/packages/web/src/app/builder/flow-canvas/nodes/step-node/trigger-widget.tsx b/packages/web/src/app/builder/flow-canvas/nodes/step-node/trigger-widget.tsx
index 0fce9016983..ba380d5a471 100644
--- a/packages/web/src/app/builder/flow-canvas/nodes/step-node/trigger-widget.tsx
+++ b/packages/web/src/app/builder/flow-canvas/nodes/step-node/trigger-widget.tsx
@@ -13,10 +13,10 @@ const TriggerWidget = ({ isSelected }: { isSelected: boolean }) => {
return (
<div
className={cn(
- 'absolute right-full top-1/2 -translate-y-1/2 mr-2 flex size-7 items-center justify-center rounded-full border border-border bg-background text-muted-foreground z-10 transition-all',
+ 'absolute right-full top-1/2 -translate-y-1/2 mr-2 flex size-7 items-center justify-center rounded-full border border-gray-6 bg-gray-1 text-gray-11 z-10 transition-all',
{
- 'border-primary text-primary': isSelected,
- 'group-hover:border-ring': !isSelected,
+ 'border-accent-9 text-accent-11': isSelected,
+ 'group-hover:border-gray-8': !isSelected,
},
)}
>
@@ -28,10 +28,10 @@ const TriggerWidget = ({ isSelected }: { isSelected: boolean }) => {
return (
<div
className={cn(
- 'flex items-center absolute transition-all -translate-y-[26px] -translate-x-[1px] border-border border border-1 justify-center gap-1 rounded-t-md bg-background text-muted-foreground text-xs py-1 px-2 z-10 ',
+ 'flex items-center absolute transition-all -translate-y-[26px] -translate-x-[1px] border-gray-6 border border-1 justify-center gap-1 rounded-t-md bg-gray-1 text-gray-11 text-xs py-1 px-2 z-10 ',
{
- 'border-primary text-primary ': isSelected,
- 'group-hover:border-ring ': !isSelected,
+ 'border-accent-9 text-accent-11 ': isSelected,
+ 'group-hover:border-gray-8 ': !isSelected,
},
)}
>
diff --git a/packages/web/src/app/builder/flow-canvas/widgets/above-trigger-button.tsx b/packages/web/src/app/builder/flow-canvas/widgets/above-trigger-button.tsx
index 2905ad4a811..ad8a494c7ae 100644
--- a/packages/web/src/app/builder/flow-canvas/widgets/above-trigger-button.tsx
+++ b/packages/web/src/app/builder/flow-canvas/widgets/above-trigger-button.tsx
@@ -63,13 +63,13 @@ const AboveTriggerButton = ({
return (
<Tooltip>
<TooltipTrigger asChild>
- <div className="bg-builder-background">
+ <div className="bg-gray-2">
<Button
variant="ghost"
className={cn(
- 'h-8 bg-background border-input hover:border-border border p-2.5 border-solid rounded-lg animate-fade',
+ 'h-8 bg-gray-1 border-gray-6 border p-2.5 border-solid rounded-lg animate-fade',
{
- 'bg-primary-100/50! dark:text-primary-foreground text-primary hover:text-primary disabled:pointer-events-auto hover:border-primary! border-primary/50':
+ 'bg-accent-3! text-accent-11 hover:text-accent-11 disabled:pointer-events-auto hover:border-accent-9! border-accent-7':
showPrimaryBg,
},
)}
@@ -82,9 +82,9 @@ const AboveTriggerButton = ({
{showKeyboardShortcut && (
<span
className={cn(
- 'text-[10px] bg-muted h-[20px] flex items-center justify-center px-1 rounded-sm tracking-widest whitespace-nowrap text-muted-foreground',
+ 'text-[10px] bg-gray-3 h-[20px] flex items-center justify-center px-1 rounded-sm tracking-widest whitespace-nowrap text-gray-11',
{
- 'bg-primary/13 text-primary': showPrimaryBg,
+ 'bg-accent-5 text-accent-11': showPrimaryBg,
},
)}
>
diff --git a/packages/web/src/app/builder/flow-canvas/widgets/flow-approval-banner.tsx b/packages/web/src/app/builder/flow-canvas/widgets/flow-approval-banner.tsx
index ff019ed525e..a743a1f90c4 100644
--- a/packages/web/src/app/builder/flow-canvas/widgets/flow-approval-banner.tsx
+++ b/packages/web/src/app/builder/flow-canvas/widgets/flow-approval-banner.tsx
@@ -121,7 +121,7 @@ const FlowApprovalBanner = () => {
<span>{t('Awaiting approval to publish this flow.')}</span>
<Tooltip>
<TooltipTrigger asChild>
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{t('Submitted {time}', { time: submittedAgo })}
</span>
</TooltipTrigger>
diff --git a/packages/web/src/app/builder/flow-canvas/widgets/flow-end-widget.tsx b/packages/web/src/app/builder/flow-canvas/widgets/flow-end-widget.tsx
index 5ef8bc93fe0..71154f41b46 100644
--- a/packages/web/src/app/builder/flow-canvas/widgets/flow-end-widget.tsx
+++ b/packages/web/src/app/builder/flow-canvas/widgets/flow-end-widget.tsx
@@ -3,11 +3,11 @@ import { t } from 'i18next';
const FlowEndWidget = () => {
return (
<div
- className=" text-center w-[41px] bg-builder-background text-foreground/70 rounded-md animate-fade -ml-[20px]"
+ className=" text-center w-[41px] bg-gray-2 text-gray-12/70 rounded-md animate-fade -ml-[20px]"
key={'flow-end-button'}
id="flow-end-button"
>
- <div className="w-full text-center text-sm h-full bg-border/80 p-1 rounded-md">
+ <div className="w-full text-center text-sm h-full bg-gray-6/80 p-1 rounded-md">
{t('End')}
</div>
</div>
diff --git a/packages/web/src/app/builder/flow-canvas/widgets/incomplete-settings-widget.tsx b/packages/web/src/app/builder/flow-canvas/widgets/incomplete-settings-widget.tsx
index b9b9196c40e..34dee84b647 100644
--- a/packages/web/src/app/builder/flow-canvas/widgets/incomplete-settings-widget.tsx
+++ b/packages/web/src/app/builder/flow-canvas/widgets/incomplete-settings-widget.tsx
@@ -50,7 +50,7 @@ const IncompleteSettingsButton: React.FC<IncompleteSettingsButtonProps> = ({
!flowVersion.valid && (
<Button
variant="ghost"
- className="h-[28px] hover:bg-amber-50 p-2 dark:hover:bg-amber-950 dark:bg-amber-950 bg-amber-50 border border-solid border-amber-500 hover:border-amber-700 dark:hover:border-amber-600 dark:border-amber-900 dark:text-amber-600 text-amber-700 hover:text-amber-700 dark:hover:text-amber-600 animate-fade"
+ className="h-[28px] p-2 bg-warning-3 border border-solid border-warning-7 hover:bg-warning-4 hover:border-warning-8 text-warning-11 hover:text-warning-11 animate-fade"
key={'complete-flow-button'}
onClick={(e) => {
onClick();
diff --git a/packages/web/src/app/builder/flow-canvas/widgets/large-widget-wrapper.tsx b/packages/web/src/app/builder/flow-canvas/widgets/large-widget-wrapper.tsx
index 03f72238fde..fadd85081b7 100644
--- a/packages/web/src/app/builder/flow-canvas/widgets/large-widget-wrapper.tsx
+++ b/packages/web/src/app/builder/flow-canvas/widgets/large-widget-wrapper.tsx
@@ -11,7 +11,7 @@ const LargeWidgetWrapper = ({
<div className="absolute top-[12px] z-40 w-full px-2 flex justify-center">
<div
className={cn(
- 'py-1.5 px-3.5 border min-h-11.5 border border-border bg-background z-40 w-full animate animate-fade duration-300 rounded-md flex items-center justify-between',
+ 'py-1.5 px-3.5 border min-h-11.5 border border-gray-6 bg-gray-1 z-40 w-full animate-fade duration-300 rounded-md flex items-center justify-between',
containerClassName,
)}
>
diff --git a/packages/web/src/app/builder/flow-canvas/widgets/minimap.tsx b/packages/web/src/app/builder/flow-canvas/widgets/minimap.tsx
index 1ffcd43f8c0..692ee017328 100644
--- a/packages/web/src/app/builder/flow-canvas/widgets/minimap.tsx
+++ b/packages/web/src/app/builder/flow-canvas/widgets/minimap.tsx
@@ -2,27 +2,26 @@ import { isNil } from '@activepieces/core-utils';
import { flowStructureUtil, Step } from '@activepieces/shared';
import { MiniMap, MiniMapNodeProps } from '@xyflow/react';
-import { useTheme } from '@/components/providers/theme-provider';
import { stepsHooks, StepMetadata } from '@/features/pieces';
import { colorsUtils } from '@/lib/color-utils';
import { useBuilderStateContext } from '../../builder-hooks';
+const NODE_COLOR_STRENGTH = 72;
+
const Minimap = () => {
const [showMinimap] = useBuilderStateContext((state) => [state.showMinimap]);
- const { theme } = useTheme();
- const maskTransparency = theme === 'dark' ? 0.8 : 0.055;
return (
<>
{showMinimap && (
<MiniMap
position="bottom-left"
- className="!rounded-md border border-border !left-0 !ml-2 overflow-hidden !bottom-[45px] animate-in fade-in duration-300"
+ className="!rounded-md border border-gray-6 !left-0 !ml-2 overflow-hidden !bottom-[45px] animate-in fade-in duration-300"
zoomable
pannable
zoomStep={0.3}
- bgColor="var(--background)"
- maskColor={`rgba(0, 0, 0, ${maskTransparency})`}
+ bgColor="var(--gray-2)"
+ maskColor="color-mix(in oklab, var(--gray-12) 8%, transparent)"
nodeComponent={(node) => <MinimapNode node={node} />}
/>
)}
@@ -39,9 +38,8 @@ const MinimapNodeContent = ({
}) => {
const nodeColor = colorsUtils.useAverageColorInImage({
imgUrl: stepMetadata.logoUrl ?? '',
- transparency: 50,
+ strength: NODE_COLOR_STRENGTH,
});
- const defaultColor = 'oklch(92.8% 0.006 264.531)';
return (
<rect
@@ -50,7 +48,7 @@ const MinimapNodeContent = ({
height={node.height}
x={node.x}
y={node.y}
- fill={nodeColor ?? defaultColor}
+ fill={nodeColor ?? 'var(--gray-11)'}
></rect>
);
};
diff --git a/packages/web/src/app/builder/flow-canvas/widgets/publish-flow-reminder-widget.tsx b/packages/web/src/app/builder/flow-canvas/widgets/publish-flow-reminder-widget.tsx
index f829eff9906..0954f881a45 100644
--- a/packages/web/src/app/builder/flow-canvas/widgets/publish-flow-reminder-widget.tsx
+++ b/packages/web/src/app/builder/flow-canvas/widgets/publish-flow-reminder-widget.tsx
@@ -112,14 +112,14 @@ const PublishFlowReminderWidget = () => {
{showLoading ? loadingText : t('You have unpublished changes')}
</div>
{showLoading ? (
- <LoadingSpinner className="size-5 stroke-foreground" />
+ <LoadingSpinner className="size-5 stroke-gray-12" />
) : (
<div className="flex items-center gap-2">
{!isNil(flow.publishedVersionId) && !isSaving && (
<Button
size="sm"
variant="ghost"
- className="hover:bg-gray-300/10 text-foreground"
+ className="hover:bg-gray-4 text-gray-12"
onClick={() => discardChange()}
>
{t('Discard changes')}
@@ -128,7 +128,7 @@ const PublishFlowReminderWidget = () => {
<Tooltip>
<TooltipTrigger asChild>
- <div className="tooltip-wrapper">
+ <div>
<Button
size="sm"
variant="default"
diff --git a/packages/web/src/app/builder/flow-canvas/widgets/run-info-widget.tsx b/packages/web/src/app/builder/flow-canvas/widgets/run-info-widget.tsx
index 40213a05ac3..2be526e0d2b 100644
--- a/packages/web/src/app/builder/flow-canvas/widgets/run-info-widget.tsx
+++ b/packages/web/src/app/builder/flow-canvas/widgets/run-info-widget.tsx
@@ -102,15 +102,15 @@ const RunInfoWidget = () => {
return (
<LargeWidgetWrapper
containerClassName={cn(
- flowRunUtils.getStatusContainerClassName(variant),
- 'bg-background border border-border dark:bg-background dark:border-border',
+ flowRunUtils.getStatusContainerClassName({ variant }),
+ 'bg-gray-1 border border-gray-6',
)}
key={run.id + run.status}
>
<div className="flex items-center justify-between w-full flex-wrap">
<div className="flex items-center text-sm shrink-0">
<Icon className="size-5 mr-2" />
- <span className="text-foreground dark:text-foreground font-medium">
+ <span className="text-gray-12 font-medium">
{getStatusText({
status: run.status,
timeout: timeoutSeconds ?? -1,
@@ -119,7 +119,7 @@ const RunInfoWidget = () => {
})}
</span>
- <div className="shrink-0 text-foreground dark:text-foreground">
+ <div className="shrink-0 text-gray-12">
{isRunTerminal && (
<>
&nbsp;-&nbsp;
@@ -148,7 +148,7 @@ const RunInfoWidget = () => {
{isRunTerminal && !isTimelineEmpty(run.timeline) && (
<HoverCard openDelay={200} closeDelay={100}>
<HoverCardTrigger className="ml-1 inline-flex cursor-default items-center">
- <Info className="size-4 text-muted-foreground" />
+ <Info className="size-4 text-gray-11" />
</HoverCardTrigger>
<HoverCardContent className="w-[28rem] p-3">
<TimelineBar timeline={run.timeline} />
@@ -245,7 +245,7 @@ const JumpToFailedStepButton = ({
variant="ghost"
size="sm"
onClick={handleClick}
- className="text-destructive-700 hover:text-destructive-700 dark:text-destructive-200 dark:hover:text-destructive-200"
+ className="text-danger-11 hover:text-danger-11"
>
<ArrowRight className="size-4" />
{t('See error')}
diff --git a/packages/web/src/app/builder/flow-versions/flow-versions-card.tsx b/packages/web/src/app/builder/flow-versions/flow-versions-card.tsx
index 6b48de8c0b5..9d2f9696c13 100644
--- a/packages/web/src/app/builder/flow-versions/flow-versions-card.tsx
+++ b/packages/web/src/app/builder/flow-versions/flow-versions-card.tsx
@@ -72,7 +72,7 @@ const FlowVersionDetailsCard = React.memo(
includeTime={true}
className="text-sm font-medium leading-none select-none cursor-default"
></FormattedDate>
- <p className="flex gap-1 text-xs text-muted-foreground">
+ <p className="flex gap-1 text-xs text-gray-11">
{t('Version')} #{flowVersionNumber}
</p>
</div>
diff --git a/packages/web/src/app/builder/index.tsx b/packages/web/src/app/builder/index.tsx
index 3bf339db148..68690b0d325 100644
--- a/packages/web/src/app/builder/index.tsx
+++ b/packages/web/src/app/builder/index.tsx
@@ -211,7 +211,7 @@ const BuilderPage = () => {
? '95%'
: '60%'
}
- className={cn('min-w-0 bg-background z-30', {
+ className={cn('min-w-0 bg-gray-1 z-30', {
[animateResizeClassName]: !isDraggingHandle,
})}
style={{
diff --git a/packages/web/src/app/builder/piece-properties/action-error-handling.tsx b/packages/web/src/app/builder/piece-properties/action-error-handling.tsx
index ce71198be61..e33b3960b33 100644
--- a/packages/web/src/app/builder/piece-properties/action-error-handling.tsx
+++ b/packages/web/src/app/builder/piece-properties/action-error-handling.tsx
@@ -35,13 +35,13 @@ const ActionErrorHandlingForm = React.memo(
return (
<div
className={cn(
- 'flex flex-col border-t border-border pt-4',
+ 'flex flex-col border-t border-gray-6 pt-4',
GAP_SIZE_FOR_STEP_SETTINGS,
)}
>
- <div className="flex items-center gap-2 text-muted-foreground">
+ <div className="flex items-center gap-2 text-gray-11">
<ShieldAlert className="size-4" />
- <span className="text-[13px] font-semibold tracking-[-0.005em] text-muted-foreground">
+ <span className="text-[13px] font-semibold tracking-[-0.005em] text-gray-11">
{t('Error handling')}
</span>
</div>
diff --git a/packages/web/src/app/builder/piece-properties/advanced-section.tsx b/packages/web/src/app/builder/piece-properties/advanced-section.tsx
index 2f5022a5c1a..5f8d881f060 100644
--- a/packages/web/src/app/builder/piece-properties/advanced-section.tsx
+++ b/packages/web/src/app/builder/piece-properties/advanced-section.tsx
@@ -64,27 +64,27 @@ function AdvancedSection({
<Collapsible
open={open}
onOpenChange={setOpen}
- className="border-t border-border pt-4"
+ className="border-t border-gray-6 pt-4"
>
<CollapsibleTrigger
className={cn(
'group flex items-center gap-2 w-full text-left',
'rounded-md focus-visible:outline-none focus-visible:ring-2',
- 'focus-visible:ring-primary/35 focus-visible:ring-offset-2',
+ 'focus-visible:ring-accent-8/50 focus-visible:ring-offset-2 focus-visible:ring-offset-gray-1',
)}
>
- <SlidersHorizontal className="size-4 text-muted-foreground" />
- <span className="text-[13px] font-semibold tracking-[-0.005em] text-muted-foreground">
+ <SlidersHorizontal className="size-4 text-gray-11" />
+ <span className="text-[13px] font-semibold tracking-[-0.005em] text-gray-11">
{t('Advanced')}
</span>
- <span className="ml-auto text-xs text-muted-foreground tabular-nums">
+ <span className="ml-auto text-xs text-gray-11 tabular-nums">
{open
? t('Hide')
: t('{count, plural, =1 {1 option} other {# options}}', { count })}
</span>
<ChevronDown
className={cn(
- 'h-4 w-4 text-muted-foreground transition-transform duration-200',
+ 'h-4 w-4 text-gray-11 transition-transform duration-200',
!open && '-rotate-90',
)}
/>
diff --git a/packages/web/src/app/builder/piece-properties/array-property.tsx b/packages/web/src/app/builder/piece-properties/array-property.tsx
index ab5da7a74bb..f8607789f41 100644
--- a/packages/web/src/app/builder/piece-properties/array-property.tsx
+++ b/packages/web/src/app/builder/piece-properties/array-property.tsx
@@ -149,7 +149,7 @@ const ArrayPieceProperty = React.memo(
disabled={disabled}
>
<TrashIcon
- className="size-4 text-destructive"
+ className="size-4 text-danger-11"
aria-hidden="true"
/>
<span className="sr-only">{t('Remove')}</span>
diff --git a/packages/web/src/app/builder/piece-properties/auto-form-field-wrapper.tsx b/packages/web/src/app/builder/piece-properties/auto-form-field-wrapper.tsx
index c5e11876f9e..7aa8fc71348 100644
--- a/packages/web/src/app/builder/piece-properties/auto-form-field-wrapper.tsx
+++ b/packages/web/src/app/builder/piece-properties/auto-form-field-wrapper.tsx
@@ -126,7 +126,7 @@ function AutoFormFielWrapperErrorBoundary({
<ErrorBoundary
fallbackRender={() => (
<div className="text-sm flex items-center justify-between">
- <div className="text-destructive">
+ <div className="text-danger-11">
{t('input value is invalid, please contact support')}
</div>
<Button
@@ -265,10 +265,10 @@ function PropertyTypeTooltip({ property }: { property: PieceProperty }) {
<Tooltip>
<TooltipTrigger asChild>
{property.type === PropertyType.FILE ? (
- <File className="w-4 h-4 stroke-foreground/55"></File>
+ <File className="w-4 h-4 stroke-gray-12/55"></File>
) : (
property.type === PropertyType.DATE_TIME && (
- <Calendar className="w-4 h-4 stroke-foreground/55"></Calendar>
+ <Calendar className="w-4 h-4 stroke-gray-12/55"></Calendar>
)
)}
</TooltipTrigger>
diff --git a/packages/web/src/app/builder/piece-properties/date-range-property.tsx b/packages/web/src/app/builder/piece-properties/date-range-property.tsx
index 537d25b6370..9f9ac9a2d86 100644
--- a/packages/web/src/app/builder/piece-properties/date-range-property.tsx
+++ b/packages/web/src/app/builder/piece-properties/date-range-property.tsx
@@ -59,10 +59,10 @@ function DateRangeProperty({
aria-pressed={selected}
onClick={() => selectPreset(option.value)}
className={cn(
- 'rounded-full border px-3 py-1 text-sm font-medium outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring/50',
+ 'rounded-full border px-3 py-1 text-sm font-medium outline-none transition-colors focus-visible:ring-2 focus-visible:ring-accent-8/50',
selected
- ? 'border-primary bg-primary/5 text-primary'
- : 'border-input text-muted-foreground hover:text-foreground',
+ ? 'border-accent-9 bg-accent-3 text-accent-11'
+ : 'border-gray-6 text-gray-11 hover:text-gray-12',
disabled && 'pointer-events-none opacity-50',
)}
>
@@ -75,7 +75,7 @@ function DateRangeProperty({
{preset === 'custom' && (
<div className="flex items-end gap-2">
<label className="flex min-w-0 flex-1 flex-col gap-1">
- <span className="text-xs text-muted-foreground">{t('After')}</span>
+ <span className="text-xs text-gray-11">{t('After')}</span>
<input
type="date"
disabled={disabled}
@@ -90,9 +90,9 @@ function DateRangeProperty({
className={inputClass}
/>
</label>
- <ArrowRight className="mb-2 size-4 shrink-0 text-muted-foreground" />
+ <ArrowRight className="mb-2 size-4 shrink-0 text-gray-11" />
<label className="flex min-w-0 flex-1 flex-col gap-1">
- <span className="text-xs text-muted-foreground">{t('Before')}</span>
+ <span className="text-xs text-gray-11">{t('Before')}</span>
<input
type="date"
disabled={disabled}
diff --git a/packages/web/src/app/builder/piece-properties/dynamic-piece-properties-error-boundary.tsx b/packages/web/src/app/builder/piece-properties/dynamic-piece-properties-error-boundary.tsx
index f02d4a8b814..5b023023420 100644
--- a/packages/web/src/app/builder/piece-properties/dynamic-piece-properties-error-boundary.tsx
+++ b/packages/web/src/app/builder/piece-properties/dynamic-piece-properties-error-boundary.tsx
@@ -17,7 +17,7 @@ const DynamicPropertiesErrorBoundary = ({
key={key}
fallback={
!triedRerenderingRef.current ? (
- <div className="text-sm text-destructive italic flex justify-between items-center">
+ <div className="text-sm text-danger-11 italic flex justify-between items-center">
{t('Unexpected error, please retry')}
<Button
size="icon"
@@ -27,11 +27,11 @@ const DynamicPropertiesErrorBoundary = ({
triedRerenderingRef.current = true;
}}
>
- {<RefreshCcw className="w-4 h-4 text-foreground!"></RefreshCcw>}{' '}
+ {<RefreshCcw className="w-4 h-4 text-gray-12!"></RefreshCcw>}{' '}
</Button>
</div>
) : (
- <div className="text-sm text-destructive italic flex justify-between items-center">
+ <div className="text-sm text-danger-11 italic flex justify-between items-center">
{t('Unexpected error, please refresh the page or contact support')}
<Button
size="icon"
@@ -40,7 +40,7 @@ const DynamicPropertiesErrorBoundary = ({
window.location.reload();
}}
>
- {<RefreshCcw className="w-4 h-4 text-foreground!"></RefreshCcw>}{' '}
+ {<RefreshCcw className="w-4 h-4 text-gray-12!"></RefreshCcw>}{' '}
</Button>
</div>
)
diff --git a/packages/web/src/app/builder/piece-properties/dynamic-value-toggle-button.tsx b/packages/web/src/app/builder/piece-properties/dynamic-value-toggle-button.tsx
index 0fda2054364..13e8b3875f0 100644
--- a/packages/web/src/app/builder/piece-properties/dynamic-value-toggle-button.tsx
+++ b/packages/web/src/app/builder/piece-properties/dynamic-value-toggle-button.tsx
@@ -28,8 +28,8 @@ function DynamicValueToggleButton({
>
<SquareFunction
className={cn('size-5', {
- 'text-foreground': pressed,
- 'text-muted-foreground': !pressed,
+ 'text-gray-12': pressed,
+ 'text-gray-11': !pressed,
})}
/>
</Toggle>
diff --git a/packages/web/src/app/builder/piece-properties/filter-builder-layout.tsx b/packages/web/src/app/builder/piece-properties/filter-builder-layout.tsx
index bfe71ac3559..24cc19d8b1b 100644
--- a/packages/web/src/app/builder/piece-properties/filter-builder-layout.tsx
+++ b/packages/web/src/app/builder/piece-properties/filter-builder-layout.tsx
@@ -111,11 +111,11 @@ function FilterBuilderLayout({
return (
<div className="flex flex-col gap-3">
- <div className="rounded-2xl border border-input bg-background">
+ <div className="rounded-2xl border border-gray-6 bg-gray-1">
{openNames.length === 0 ? (
<EmptyFilterState />
) : (
- <div className="divide-y divide-border/70">
+ <div className="divide-y divide-gray-6/70">
{openNames.map((name) => (
<FilterRow
key={name}
@@ -129,7 +129,7 @@ function FilterBuilderLayout({
))}
</div>
)}
- <div className="border-t border-border/70 px-3.5 py-3">
+ <div className="border-t border-gray-6/70 px-3.5 py-3">
<AddFilterPopover
builderGroups={builderGroups}
props={props}
@@ -158,13 +158,13 @@ FilterBuilderLayout.displayName = 'FilterBuilderLayout';
function EmptyFilterState() {
return (
<div className="flex flex-col items-center gap-2 px-6 pb-2.5 pt-[34px] text-center">
- <span className="mb-1 flex size-12 items-center justify-center rounded-2xl bg-primary/10 text-primary">
+ <span className="mb-1 flex size-12 items-center justify-center rounded-2xl bg-accent-3 text-accent-11">
<Filter className="size-5" />
</span>
- <span className="text-sm font-semibold text-foreground">
+ <span className="text-sm font-semibold text-gray-12">
{t('No filters added')}
</span>
- <span className="max-w-xs text-sm text-muted-foreground">
+ <span className="max-w-xs text-sm text-gray-11">
{t(
'Without filters, this step returns the most recent results. Add a filter to narrow them.',
)}
@@ -199,11 +199,11 @@ function FilterRow({
return (
<div className="flex items-start gap-[11px] px-3.5 py-[13px]">
<span className="flex h-[38px] w-[30px] shrink-0 items-center justify-center">
- <span className="flex size-[30px] items-center justify-center rounded-lg bg-primary/10 text-primary">
+ <span className="flex size-[30px] items-center justify-center rounded-lg bg-accent-3 text-accent-11">
{Icon ? <Icon className="size-4" /> : null}
</span>
</span>
- <span className="flex h-[38px] w-[104px] shrink-0 items-center text-sm font-semibold text-foreground">
+ <span className="flex h-[38px] w-[104px] shrink-0 items-center text-sm font-semibold text-gray-12">
{t(label)}
</span>
<div className="flex min-w-0 flex-1 flex-col gap-1.5">
@@ -214,9 +214,7 @@ function FilterRow({
renderField={renderField}
/>
{showDescription && (
- <span className="text-xs text-muted-foreground">
- {t(description)}
- </span>
+ <span className="text-xs text-gray-11">{t(description)}</span>
)}
</div>
<button
@@ -224,7 +222,7 @@ function FilterRow({
aria-label={t('Remove filter')}
disabled={disabled}
onClick={onRemove}
- className="flex h-[38px] w-[30px] shrink-0 items-center justify-center rounded-md text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50"
+ className="flex h-[38px] w-[30px] shrink-0 items-center justify-center rounded-md text-gray-11 outline-none transition-colors hover:text-gray-12 focus-visible:ring-2 focus-visible:ring-accent-8/50 disabled:pointer-events-none disabled:opacity-50"
>
<X className="size-4" />
</button>
@@ -261,7 +259,7 @@ function FilterRowControl({
? property.description
: '';
return (
- <span className="flex h-[38px] items-center text-sm text-muted-foreground">
+ <span className="flex h-[38px] items-center text-sm text-gray-11">
{description ? t(description) : null}
</span>
);
@@ -285,7 +283,7 @@ function AddFilterPopover({
<button
type="button"
disabled={disabled}
- className="flex w-full items-center justify-center gap-2 rounded-[11px] border-[1.5px] border-dashed border-primary/30 bg-primary/5 py-[13px] text-sm font-semibold text-primary outline-none transition-colors hover:bg-primary/10 focus-visible:ring-2 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50"
+ className="flex w-full items-center justify-center gap-2 rounded-[11px] border-[1.5px] border-dashed border-accent-6 bg-accent-3 py-[13px] text-sm font-semibold text-accent-11 outline-none transition-colors hover:bg-accent-4 focus-visible:ring-2 focus-visible:ring-accent-8/50 disabled:pointer-events-none disabled:opacity-50"
>
<Plus className="size-4" />
{t('Add filter')}
@@ -294,7 +292,7 @@ function AddFilterPopover({
<button
type="button"
disabled={disabled}
- className="flex items-center gap-2 rounded-[9px] border border-input bg-background px-3.5 py-2 text-sm font-semibold text-primary outline-none transition-colors hover:bg-primary/5 focus-visible:ring-2 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50"
+ className="flex items-center gap-2 rounded-[9px] border border-gray-6 bg-gray-1 px-3.5 py-2 text-sm font-semibold text-accent-11 outline-none transition-colors hover:bg-accent-3 focus-visible:ring-2 focus-visible:ring-accent-8/50 disabled:pointer-events-none disabled:opacity-50"
>
<Plus className="size-4" />
{t('Add filter')}
@@ -333,12 +331,10 @@ function AddFilterPopover({
}
}}
>
- {Icon ? (
- <Icon className="size-4 text-muted-foreground" />
- ) : null}
+ {Icon ? <Icon className="size-4 text-gray-11" /> : null}
<span className="flex-1">{t(label)}</span>
{added && (
- <span className="flex items-center gap-1 text-xs font-medium text-primary">
+ <span className="flex items-center gap-1 text-xs font-medium text-accent-11">
<Check className="size-3.5" />
{t('Added')}
</span>
@@ -376,18 +372,18 @@ function FilterFooter({
const count = typeof countRaw === 'number' ? countRaw : Number(countRaw) || 0;
return (
- <div className="flex items-center justify-between gap-3 rounded-[14px] border border-input bg-background px-4 py-[13px]">
+ <div className="flex items-center justify-between gap-3 rounded-[14px] border border-gray-6 bg-gray-1 px-4 py-[13px]">
<div className="flex min-w-0 items-center gap-3">
- <span className="flex size-[30px] shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary">
+ <span className="flex size-[30px] shrink-0 items-center justify-center rounded-lg bg-accent-3 text-accent-11">
{Icon ? <Icon className="size-4" /> : null}
</span>
<div className="min-w-0">
- <div className="text-sm font-semibold text-foreground">
+ <div className="text-sm font-semibold text-gray-12">
{numberName
? t('Returns up to {count} results', { count })
: t(group.label ?? '')}
</div>
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-gray-11">
{activeCount === 0
? t('No filters — newest first')
: t(
diff --git a/packages/web/src/app/builder/piece-properties/filter-layout.tsx b/packages/web/src/app/builder/piece-properties/filter-layout.tsx
index 9de0ed5b566..c086d42681a 100644
--- a/packages/web/src/app/builder/piece-properties/filter-layout.tsx
+++ b/packages/web/src/app/builder/piece-properties/filter-layout.tsx
@@ -87,14 +87,14 @@ function PropertySection({
const Icon = propertyIcons.get(group.icon);
const memberNames = group.props.filter((name) => !!props[name]);
return (
- <div className="flex flex-col gap-3 rounded-lg border border-input bg-background p-4">
+ <div className="flex flex-col gap-3 rounded-lg border border-gray-6 bg-gray-1 p-4">
<div className="flex items-center gap-2">
{Icon && (
- <span className="flex size-7 shrink-0 items-center justify-center rounded-md bg-primary/10 text-primary">
+ <span className="flex size-7 shrink-0 items-center justify-center rounded-md bg-accent-3 text-accent-11">
<Icon className="size-4" />
</span>
)}
- <span className="text-sm font-semibold tracking-[-0.005em] text-foreground">
+ <span className="text-sm font-semibold tracking-[-0.005em] text-gray-12">
{group.label}
</span>
</div>
@@ -151,7 +151,7 @@ function ToggleRevealCard({
'description' in checkbox ? checkbox.description : undefined;
return (
- <div className="rounded-lg border border-input bg-muted/30 px-3.5 py-3">
+ <div className="rounded-lg border border-gray-6 bg-gray-3/30 px-3.5 py-3">
<FormField
name={checkboxInputName}
control={form.control}
@@ -174,20 +174,18 @@ function ToggleRevealCard({
}}
/>
<div className="min-w-0 flex-1">
- <div className="text-sm font-semibold text-foreground">
+ <div className="text-sm font-semibold text-gray-12">
{t(title)}
</div>
{description && (
- <div className="text-xs text-muted-foreground">
- {t(description)}
- </div>
+ <div className="text-xs text-gray-11">{t(description)}</div>
)}
</div>
</label>
)}
/>
{checked && reveals.length > 0 && (
- <div className="mt-3 flex flex-col gap-3 border-t border-dashed border-input pt-3">
+ <div className="mt-3 flex flex-col gap-3 border-t border-dashed border-gray-6 pt-3">
{reveals.map((name) => (
<React.Fragment key={name}>{renderField(name)}</React.Fragment>
))}
@@ -233,10 +231,10 @@ function FilterSummary({
};
return (
- <div className="flex flex-col gap-2 rounded-lg border border-input bg-muted/30 p-4">
+ <div className="flex flex-col gap-2 rounded-lg border border-gray-6 bg-gray-3/30 p-4">
<div className="flex items-center justify-between">
- <span className="flex items-center gap-1.5 text-sm font-semibold text-foreground">
- <Search className="size-4 text-primary" />
+ <span className="flex items-center gap-1.5 text-sm font-semibold text-gray-12">
+ <Search className="size-4 text-accent-11" />
{t('Active filters')}
</span>
{active.length > 0 && (
@@ -246,22 +244,20 @@ function FilterSummary({
onClick={() =>
active.forEach(({ name, property }) => clearOne(name, property))
}
- className="text-xs text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:text-foreground disabled:pointer-events-none disabled:opacity-50"
+ className="text-xs text-gray-11 outline-none transition-colors hover:text-gray-12 focus-visible:text-gray-12 disabled:pointer-events-none disabled:opacity-50"
>
{t('Clear all')}
</button>
)}
</div>
{active.length === 0 ? (
- <span className="text-sm text-muted-foreground">
- {t('No filters yet')}
- </span>
+ <span className="text-sm text-gray-11">{t('No filters yet')}</span>
) : (
<div className="flex flex-wrap gap-1.5">
{active.map(({ name, property, value }) => (
<span
key={name}
- className="inline-flex max-w-full items-center gap-1 rounded-full bg-primary/10 py-0.5 pl-2.5 pr-1.5 text-xs font-medium text-primary"
+ className="inline-flex max-w-full items-center gap-1 rounded-full bg-accent-3 py-0.5 pl-2.5 pr-1.5 text-xs font-medium text-accent-11"
>
<span className="truncate">{chipLabel(property, value)}</span>
<button
@@ -269,7 +265,7 @@ function FilterSummary({
aria-label={t('Remove')}
disabled={disabled}
onClick={() => clearOne(name, property)}
- className="shrink-0 rounded-full p-0.5 text-primary/70 outline-none transition-colors hover:text-primary focus-visible:ring-2 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50"
+ className="shrink-0 rounded-full p-0.5 text-accent-11/70 outline-none transition-colors hover:text-accent-11 focus-visible:ring-2 focus-visible:ring-accent-8/50 disabled:pointer-events-none disabled:opacity-50"
>
<X className="size-3" />
</button>
diff --git a/packages/web/src/app/builder/piece-properties/mention-chips-input.tsx b/packages/web/src/app/builder/piece-properties/mention-chips-input.tsx
index a478a93ae99..8cd7efb419c 100644
--- a/packages/web/src/app/builder/piece-properties/mention-chips-input.tsx
+++ b/packages/web/src/app/builder/piece-properties/mention-chips-input.tsx
@@ -31,7 +31,7 @@ const composeInnerClass =
const chipWrapperClass = cn(
'w-auto',
'[&_.ProseMirror]:!cursor-pointer [&_.ProseMirror]:!opacity-100 [&_.ProseMirror]:pointer-events-none',
- '[&_[data-type=mention]]:!inline [&_[data-type=mention]]:!align-baseline [&_[data-type=mention]]:!my-0 [&_[data-type=mention]]:!mx-0 [&_[data-type=mention]]:!border-0 [&_[data-type=mention]]:!bg-transparent [&_[data-type=mention]]:!px-0 [&_[data-type=mention]]:!py-0 [&_[data-type=mention]]:!rounded-none [&_[data-type=mention]]:!text-primary [&_[data-type=mention]]:!font-medium',
+ '[&_[data-type=mention]]:!inline [&_[data-type=mention]]:!align-baseline [&_[data-type=mention]]:!my-0 [&_[data-type=mention]]:!mx-0 [&_[data-type=mention]]:!border-0 [&_[data-type=mention]]:!bg-transparent [&_[data-type=mention]]:!px-0 [&_[data-type=mention]]:!py-0 [&_[data-type=mention]]:!rounded-none [&_[data-type=mention]]:!text-accent-11 [&_[data-type=mention]]:!font-medium',
'[&_[data-type=mention]>*]:!hidden',
);
@@ -165,13 +165,12 @@ function MentionChipsInput({
}
}}
className={cn(
- 'inline-flex max-w-full items-start gap-1 rounded-md bg-muted py-0.5 pl-2.5 pr-1 text-sm outline-none transition-colors',
+ 'inline-flex max-w-full items-start gap-1 rounded-md bg-gray-3 py-0.5 pl-2.5 pr-1 text-sm outline-none transition-colors',
disabled
? 'cursor-default'
- : 'cursor-pointer hover:bg-muted/70 focus-visible:ring-2 focus-visible:ring-ring/50',
+ : 'cursor-pointer hover:bg-gray-3/70 focus-visible:ring-2 focus-visible:ring-accent-8/50',
{
- 'bg-destructive/10 text-destructive hover:bg-destructive/15':
- invalid,
+ 'bg-danger-3 text-danger-11 hover:bg-danger-4': invalid,
},
)}
>
@@ -190,8 +189,8 @@ function MentionChipsInput({
type="button"
aria-label={t('Remove')}
className={cn(
- 'shrink-0 rounded-full px-1 py-0.5 text-muted-foreground/70 outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/50',
- { 'text-destructive/70 hover:text-destructive': invalid },
+ 'shrink-0 rounded-full px-1 py-0.5 text-gray-11 outline-none transition-colors hover:text-gray-12 focus-visible:ring-2 focus-visible:ring-accent-8/50',
+ { 'text-danger-11/70 hover:text-danger-11': invalid },
)}
onClick={(event) => {
event.stopPropagation();
@@ -207,7 +206,7 @@ function MentionChipsInput({
{!disabled && (
<div
- className="min-w-[140px] flex-1 rounded-sm focus-within:ring-2 focus-within:ring-ring/50"
+ className="min-w-[140px] flex-1 rounded-sm focus-within:ring-2 focus-within:ring-accent-8/50"
onKeyDownCapture={handleKeyDownCapture}
onPasteCapture={handlePasteCapture}
onBlur={handleComposeBlur}
diff --git a/packages/web/src/app/builder/piece-properties/number-stepper.tsx b/packages/web/src/app/builder/piece-properties/number-stepper.tsx
index a3520d23bfe..7566493a86b 100644
--- a/packages/web/src/app/builder/piece-properties/number-stepper.tsx
+++ b/packages/web/src/app/builder/piece-properties/number-stepper.tsx
@@ -3,7 +3,7 @@ import { Minus, Plus } from 'lucide-react';
import React from 'react';
const buttonClass =
- 'flex size-8 items-center justify-center text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground disabled:pointer-events-none disabled:opacity-40 focus-visible:ring-2 focus-visible:ring-ring/50';
+ 'flex size-8 items-center justify-center text-gray-11 outline-none transition-colors hover:bg-gray-4 hover:text-gray-12 disabled:pointer-events-none disabled:opacity-40 focus-visible:ring-2 focus-visible:ring-accent-8/50';
function NumberStepper({
value,
@@ -28,7 +28,7 @@ function NumberStepper({
const atMax = typeof max === 'number' && current >= max;
return (
- <div className="inline-flex items-center overflow-hidden rounded-md border border-input">
+ <div className="inline-flex items-center overflow-hidden rounded-md border border-gray-6">
<button
type="button"
aria-label={t('Decrease')}
@@ -50,7 +50,7 @@ function NumberStepper({
event.target.value === '' ? undefined : Number(event.target.value),
)
}
- className="h-8 w-14 border-x border-input bg-transparent text-center text-sm font-medium tabular-nums outline-none [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"
+ className="h-8 w-14 border-x border-gray-6 bg-transparent text-center text-sm font-medium tabular-nums outline-none [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"
/>
<button
type="button"
diff --git a/packages/web/src/app/builder/piece-properties/property-group-tabs.tsx b/packages/web/src/app/builder/piece-properties/property-group-tabs.tsx
index 190a3c53ee5..c966a184bda 100644
--- a/packages/web/src/app/builder/piece-properties/property-group-tabs.tsx
+++ b/packages/web/src/app/builder/piece-properties/property-group-tabs.tsx
@@ -132,7 +132,7 @@ function PropertyGroupTabs({
<button
type="button"
aria-label={group.description}
- className="text-muted-foreground/70 outline-none transition-colors hover:text-foreground focus-visible:text-foreground"
+ className="text-gray-11 outline-none transition-colors hover:text-gray-12 focus-visible:text-gray-12"
>
<Info className="size-3.5" />
</button>
@@ -157,13 +157,13 @@ function PropertyGroupTabs({
<Tabs value={safeActiveKey} onValueChange={setActiveKey}>
<div
ref={tabsWrapperRef}
- className="overflow-hidden rounded-md border border-input bg-background"
+ className="overflow-hidden rounded-md border border-gray-6 bg-gray-1"
>
- <TabsList className="relative h-auto w-full gap-1 rounded-none bg-muted/50 p-1">
+ <TabsList className="relative h-auto w-full gap-1 rounded-none bg-gray-3/50 p-1">
{indicator && (
<span
aria-hidden
- className="pointer-events-none absolute z-0 rounded-sm bg-background shadow-sm transition-[left,width] duration-200 ease-[cubic-bezier(0.35,0,0.25,1)] motion-reduce:transition-none"
+ className="pointer-events-none absolute z-0 rounded-sm bg-gray-1 shadow-sm transition-[left,width] duration-200 ease-[cubic-bezier(0.35,0,0.25,1)] motion-reduce:transition-none"
style={{
left: indicator.left,
top: indicator.top,
@@ -189,10 +189,10 @@ function PropertyGroupTabs({
disabled={disabled}
aria-invalid={hasError}
className={cn(
- 'relative z-10 flex-1 gap-1.5 rounded-sm px-2 py-1.5 text-sm font-medium transition-colors focus-visible:ring-2 focus-visible:ring-ring/50 data-[state=active]:bg-transparent data-[state=active]:shadow-none',
+ 'relative z-10 flex-1 gap-1.5 rounded-sm px-2 py-1.5 text-sm font-medium transition-colors focus-visible:ring-2 focus-visible:ring-accent-8/50 data-[state=active]:bg-transparent data-[state=active]:shadow-none',
hasError
- ? 'text-destructive data-[state=active]:text-destructive'
- : 'text-muted-foreground hover:text-foreground data-[state=active]:text-foreground',
+ ? 'text-danger-11 data-[state=active]:text-danger-11'
+ : 'text-gray-11 hover:text-gray-12 data-[state=active]:text-gray-12',
)}
>
<span className="whitespace-nowrap">
@@ -204,7 +204,7 @@ function PropertyGroupTabs({
aria-hidden
className={cn(
'size-3.5 shrink-0',
- active ? 'text-foreground' : 'text-muted-foreground/80',
+ active ? 'text-gray-12' : 'text-gray-11',
)}
/>
) : count > 0 ? (
@@ -212,8 +212,8 @@ function PropertyGroupTabs({
className={cn(
'inline-flex min-w-4 shrink-0 items-center justify-center rounded-full px-1 text-xs font-semibold leading-none tabular-nums',
active
- ? 'bg-muted text-foreground'
- : 'bg-muted-foreground/15 text-muted-foreground',
+ ? 'bg-gray-3 text-gray-12'
+ : 'bg-gray-4 text-gray-11',
)}
>
{count}
@@ -221,7 +221,7 @@ function PropertyGroupTabs({
) : null}
{hasError && (
<span
- className="size-1.5 shrink-0 rounded-full bg-destructive"
+ className="size-1.5 shrink-0 rounded-full bg-danger-11"
aria-hidden
/>
)}
@@ -241,7 +241,7 @@ function PropertyGroupTabs({
<TabsContent
key={key}
value={key}
- className="mt-0 border-t border-input p-2 duration-150 animate-in fade-in-0 motion-reduce:animate-none"
+ className="mt-0 border-t border-gray-6 p-2 duration-150 animate-in fade-in-0 motion-reduce:animate-none"
>
<div className="min-w-0 py-0.5">
{dynamic ? (
@@ -276,7 +276,7 @@ function PropertyGroupTabs({
<div aria-live="polite" className="empty:hidden">
{showActiveError && activeErrorMessage && (
- <p className="text-sm font-medium text-destructive wrap-break-word">
+ <p className="text-sm font-medium text-danger-11 wrap-break-word">
{activeErrorMessage}
</p>
)}
diff --git a/packages/web/src/app/builder/piece-properties/rich-text-property.tsx b/packages/web/src/app/builder/piece-properties/rich-text-property.tsx
index 77b35836c24..5802daa9e09 100644
--- a/packages/web/src/app/builder/piece-properties/rich-text-property.tsx
+++ b/packages/web/src/app/builder/piece-properties/rich-text-property.tsx
@@ -77,7 +77,7 @@ function RichTextProperty({
{property.required && <RequiredFieldAsterisk />}
</div>
<span className="grow" />
- <span className="text-xs text-muted-foreground tabular-nums">
+ <span className="text-xs text-gray-11 tabular-nums">
{t('{count, plural, other {# chars}}', { count: charCount })}
</span>
</FormLabel>
diff --git a/packages/web/src/app/builder/piece-properties/static-dropdown-cards.tsx b/packages/web/src/app/builder/piece-properties/static-dropdown-cards.tsx
index 3490da9f3f4..6a39db99dec 100644
--- a/packages/web/src/app/builder/piece-properties/static-dropdown-cards.tsx
+++ b/packages/web/src/app/builder/piece-properties/static-dropdown-cards.tsx
@@ -25,10 +25,10 @@ function StaticDropdownCards({
disabled={disabled}
onClick={() => onChange(option.value)}
className={cn(
- 'flex min-w-32 flex-1 items-center gap-2.5 rounded-md border px-3 py-2.5 text-left outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring/50',
+ 'flex min-w-32 flex-1 items-center gap-2.5 rounded-md border px-3 py-2.5 text-left outline-none transition-colors focus-visible:ring-2 focus-visible:ring-accent-8/50',
selected
- ? 'border-primary bg-primary/5'
- : 'border-input bg-background hover:bg-muted/50',
+ ? 'border-accent-9 bg-accent-3'
+ : 'border-gray-6 bg-gray-1 hover:bg-gray-3/50',
disabled && 'pointer-events-none opacity-50',
)}
>
@@ -37,19 +37,19 @@ function StaticDropdownCards({
className={cn(
'flex size-8 shrink-0 items-center justify-center rounded-md transition-colors',
selected
- ? 'bg-primary/10 text-primary'
- : 'bg-muted text-muted-foreground',
+ ? 'bg-accent-5 text-accent-11'
+ : 'bg-gray-3 text-gray-11',
)}
>
<Icon className="size-4" />
</span>
)}
<span className="min-w-0">
- <span className="block truncate text-sm font-medium text-foreground">
+ <span className="block truncate text-sm font-medium text-gray-12">
{option.label}
</span>
{option.description && (
- <span className="block truncate text-xs text-muted-foreground">
+ <span className="block truncate text-xs text-gray-11">
{option.description}
</span>
)}
diff --git a/packages/web/src/app/builder/piece-properties/text-input-with-mentions/components/function-hover-popover.tsx b/packages/web/src/app/builder/piece-properties/text-input-with-mentions/components/function-hover-popover.tsx
index 0fde527d487..d20b22d5a34 100644
--- a/packages/web/src/app/builder/piece-properties/text-input-with-mentions/components/function-hover-popover.tsx
+++ b/packages/web/src/app/builder/piece-properties/text-input-with-mentions/components/function-hover-popover.tsx
@@ -248,8 +248,9 @@ export function FunctionTooltipCard({
return createPortal(
<div
data-fn-tooltip
+ data-theme="dark"
className={cn(
- 'fixed z-[9999] bg-gray-900 border border-gray-700 rounded-lg shadow-2xl p-3 space-y-2 transition-opacity duration-150',
+ 'fixed z-[9999] bg-gray-2 border border-gray-6 rounded-lg shadow-2xl p-3 space-y-2 transition-opacity duration-150',
visible
? 'opacity-100 pointer-events-auto'
: 'opacity-0 pointer-events-none',
@@ -269,13 +270,13 @@ export function FunctionTooltipCard({
>
{fnDef.deprecated && (
<div className="flex items-center gap-1.5 text-[11px]">
- <span className="px-1.5 py-0.5 rounded bg-amber-500/20 text-amber-300 font-semibold uppercase tracking-wide text-[10px]">
+ <span className="px-1.5 py-0.5 rounded bg-warning-4 text-warning-11 font-semibold uppercase tracking-wide text-[10px]">
{t('Deprecated')}
</span>
{fnDef.deprecated.replacement && (
- <span className="text-gray-300">
+ <span className="text-gray-12/80">
{t('Use')}{' '}
- <code className="font-mono text-amber-300">
+ <code className="font-mono text-warning-11">
{fnDef.deprecated.replacement}
</code>{' '}
{t('instead')}
@@ -283,39 +284,39 @@ export function FunctionTooltipCard({
)}
</div>
)}
- <p className="text-[12px] text-gray-100 leading-snug">
+ <p className="text-[12px] text-gray-12 leading-snug">
{t(fnDef.description)}
</p>
{argNames.length > 0 && currentArgIndex != null && (
- <div className="flex flex-wrap gap-x-0.5 gap-y-0.5 text-[12px] font-mono bg-gray-800 rounded px-2 py-1">
- <span className="text-purple-400">{fnDef.name}(</span>
+ <div className="flex flex-wrap gap-x-0.5 gap-y-0.5 text-[12px] font-mono bg-gray-4 rounded px-2 py-1">
+ <span className="text-accent-11">{fnDef.name}(</span>
{argNames.map((arg, i) => (
<React.Fragment key={i}>
- {i > 0 && <span className="text-gray-500">; </span>}
+ {i > 0 && <span className="text-gray-12/60">; </span>}
<span
className={cn(
i === currentArgIndex
- ? 'text-amber-400 font-semibold'
- : 'text-gray-400',
+ ? 'text-warning-11 font-semibold'
+ : 'text-gray-12/70',
)}
>
{arg}
</span>
</React.Fragment>
))}
- <span className="text-purple-400">)</span>
+ <span className="text-accent-11">)</span>
</div>
)}
<div className="space-y-1">
- <p className="text-[10px] font-semibold text-gray-400 uppercase tracking-wide">
+ <p className="text-[10px] font-semibold text-gray-12/70 uppercase tracking-wide">
Example
</p>
- <code className="block bg-gray-800 rounded px-2 py-1.5 text-[11px] font-mono text-gray-100 break-all leading-relaxed">
+ <code className="block bg-gray-4 rounded px-2 py-1.5 text-[11px] font-mono text-gray-12 break-all leading-relaxed">
{t(fnDef.example)}
</code>
- <code className="flex items-center gap-1.5 bg-gray-800 rounded px-2 py-1.5 text-[11px] font-mono break-all leading-relaxed">
- <span className="text-gray-500 shrink-0">↳</span>
- <span className="text-green-400">{t(fnDef.exampleResult)}</span>
+ <code className="flex items-center gap-1.5 bg-gray-4 rounded px-2 py-1.5 text-[11px] font-mono break-all leading-relaxed">
+ <span className="text-gray-12/60 shrink-0">↳</span>
+ <span className="text-success-11">{t(fnDef.exampleResult)}</span>
</code>
</div>
</div>,
diff --git a/packages/web/src/app/builder/piece-properties/text-input-with-mentions/components/function-search-popover.tsx b/packages/web/src/app/builder/piece-properties/text-input-with-mentions/components/function-search-popover.tsx
index ab6b0664ad9..057b3c49e7a 100644
--- a/packages/web/src/app/builder/piece-properties/text-input-with-mentions/components/function-search-popover.tsx
+++ b/packages/web/src/app/builder/piece-properties/text-input-with-mentions/components/function-search-popover.tsx
@@ -12,11 +12,11 @@ import { FunctionTooltipCard } from './function-hover-popover';
const SCREEN_MARGIN = 8;
const CATEGORY_COLORS: Record<string, string> = {
- text: 'bg-blue-100 text-blue-700 border-blue-200',
- number: 'bg-green-100 text-green-700 border-green-200',
- date: 'bg-orange-100 text-orange-700 border-orange-200',
- list: 'bg-pink-100 text-pink-700 border-pink-200',
- logic: 'bg-yellow-100 text-yellow-700 border-yellow-200',
+ text: 'bg-swatch-11-surface text-swatch-11-ink border-swatch-11-line',
+ number: 'bg-swatch-8-surface text-swatch-8-ink border-swatch-8-line',
+ date: 'bg-swatch-5-surface text-swatch-5-ink border-swatch-5-line',
+ list: 'bg-swatch-3-surface text-swatch-3-ink border-swatch-3-line',
+ logic: 'bg-swatch-6-surface text-swatch-6-ink border-swatch-6-line',
};
type FunctionSearchPopoverProps = {
@@ -118,10 +118,10 @@ export function FunctionSearchPopover({
let globalIdx = 0;
const footer = (
- <div className="border-t border-border px-3 py-2 text-xs text-muted-foreground flex items-center justify-between">
+ <div className="border-t border-gray-6 px-3 py-2 text-xs text-gray-11 flex items-center justify-between">
<div className="flex items-center gap-1">
{t('Press')}
- <kbd className="bg-muted border border-border rounded px-1 flex justify-center text-[10px]">
+ <kbd className="bg-gray-3 border border-gray-6 rounded px-1 flex justify-center text-[10px]">
↵
</kbd>
{t('to apply')}
@@ -145,10 +145,10 @@ export function FunctionSearchPopover({
return createPortal(
<div
ref={popoverRef}
- className="fixed z-9998 bg-popover border border-border rounded-lg shadow-lg overflow-hidden"
+ className="fixed z-9998 bg-panel border border-gray-6 rounded-lg shadow-lg overflow-hidden"
style={{ top: popoverTop, left: popoverLeft, width: popoverWidth }}
>
- <div className="px-3 py-8 text-sm text-muted-foreground text-center">
+ <div className="px-3 py-8 text-sm text-gray-11 text-center">
{t('Type to search functions...')}
</div>
{footer}
@@ -161,10 +161,10 @@ export function FunctionSearchPopover({
return createPortal(
<div
ref={popoverRef}
- className="fixed z-9998 bg-popover border border-border rounded-lg shadow-lg overflow-hidden"
+ className="fixed z-9998 bg-panel border border-gray-6 rounded-lg shadow-lg overflow-hidden"
style={{ top: popoverTop, left: popoverLeft, width: popoverWidth }}
>
- <div className="px-3 py-8 text-sm text-muted-foreground text-center">
+ <div className="px-3 py-8 text-sm text-gray-11 text-center">
{t('No functions found')}
</div>
{footer}
@@ -177,7 +177,7 @@ export function FunctionSearchPopover({
<>
<div
ref={popoverRef}
- className="fixed z-999 bg-popover border border-border rounded-lg shadow-lg overflow-hidden"
+ className="fixed z-999 bg-panel border border-gray-6 rounded-lg shadow-lg overflow-hidden"
style={{ top: popoverTop, left: popoverLeft, width: popoverWidth }}
>
<div
@@ -187,7 +187,7 @@ export function FunctionSearchPopover({
>
{Object.entries(grouped).map(([category, fns]) => (
<div key={category}>
- <div className="px-3 py-1 text-[10px] font-semibold text-muted-foreground uppercase tracking-wide sticky top-0 bg-popover">
+ <div className="px-3 py-1 text-[10px] font-semibold text-gray-11 uppercase tracking-wide sticky top-0 bg-panel">
{category}
</div>
{fns.map((fn) => {
@@ -201,7 +201,7 @@ export function FunctionSearchPopover({
aria-selected={isActive}
className={cn(
'flex items-center gap-2 px-3 py-2 cursor-pointer',
- isActive ? 'bg-accent' : 'hover:bg-accent',
+ isActive ? 'bg-gray-4' : 'hover:bg-gray-4',
)}
onMouseEnter={(e) => {
setActiveIdx(idx);
@@ -225,12 +225,12 @@ export function FunctionSearchPopover({
className={cn(
'text-[11px] font-mono font-medium px-1.5 py-0.5 rounded border shrink-0',
CATEGORY_COLORS[fn.category] ??
- 'bg-muted text-muted-foreground',
+ 'bg-gray-3 text-gray-11',
)}
>
{fn.name}
</span>
- <span className="text-muted-foreground text-[11px] truncate">
+ <span className="text-gray-11 text-[11px] truncate">
{t(fn.description)}
</span>
</div>
diff --git a/packages/web/src/app/builder/piece-properties/text-input-with-mentions/extensions/bracket-nodes.tsx b/packages/web/src/app/builder/piece-properties/text-input-with-mentions/extensions/bracket-nodes.tsx
index 39b0e89bba1..b55d54cc3dc 100644
--- a/packages/web/src/app/builder/piece-properties/text-input-with-mentions/extensions/bracket-nodes.tsx
+++ b/packages/web/src/app/builder/piece-properties/text-input-with-mentions/extensions/bracket-nodes.tsx
@@ -6,7 +6,7 @@ export const FUNCTION_END_NODE_TYPE = 'function_end';
export const FUNCTION_SEP_NODE_TYPE = 'function_sep';
const BADGE_CLASS =
- 'ap-fn-badge inline-flex items-center bg-primary/15 text-primary rounded-sm px-[3px] py-[2px] mx-[6px] text-[12px] font-medium cursor-default select-none whitespace-nowrap';
+ 'ap-fn-badge inline-flex items-center bg-accent-4 text-accent-11 rounded-sm px-[3px] py-[2px] mx-[6px] text-[12px] font-medium cursor-default select-none whitespace-nowrap';
export const FunctionStartNode = Node.create({
name: FUNCTION_START_NODE_TYPE,
diff --git a/packages/web/src/app/builder/piece-properties/text-input-with-mentions/text-input-utils.ts b/packages/web/src/app/builder/piece-properties/text-input-with-mentions/text-input-utils.ts
index 98aab56344c..38bbba81429 100644
--- a/packages/web/src/app/builder/piece-properties/text-input-with-mentions/text-input-utils.ts
+++ b/packages/web/src/app/builder/piece-properties/text-input-with-mentions/text-input-utils.ts
@@ -475,7 +475,7 @@ function convertTiptapJsonToText(
// eslint-disable-next-line testing-library/render-result-naming-convention
const VARIABLE_ICON_SVG_MARKUP = renderToStaticMarkup(
createElement(VariableIcon, {
- className: 'w-4 h-4 shrink-0 text-primary',
+ className: 'w-4 h-4 shrink-0 text-accent-11',
'aria-hidden': true,
}),
);
@@ -494,7 +494,7 @@ const generateMentionHtmlElement = (mentionAttrs: MentionNodeAttrs) => {
mentionAttrs.label || '{}',
);
mentionElement.className =
- 'inline-flex bg-muted/10 break-all my-1 mx-px border border-[#9e9e9e] border-solid items-center gap-2 py-1 px-2 rounded-[3px] text-muted-foreground ';
+ 'inline-flex bg-gray-3/10 break-all my-1 mx-px border border-gray-6 border-solid items-center gap-2 py-1 px-2 rounded-[3px] text-gray-11 ';
assertNotNullOrUndefined(mentionAttrs.label, 'mentionAttrs.label');
assertNotNullOrUndefined(mentionAttrs.id, 'mentionAttrs.id');
assertNotNullOrUndefined(
diff --git a/packages/web/src/app/builder/piece-properties/text-input-with-mentions/tiptap-editor.tsx b/packages/web/src/app/builder/piece-properties/text-input-with-mentions/tiptap-editor.tsx
index 0b6e12cb268..961a016fea4 100644
--- a/packages/web/src/app/builder/piece-properties/text-input-with-mentions/tiptap-editor.tsx
+++ b/packages/web/src/app/builder/piece-properties/text-input-with-mentions/tiptap-editor.tsx
@@ -104,7 +104,7 @@ function getExtensions({
const baseExtensions = [
Placeholder.configure({
placeholder: placeholder,
- emptyNodeClass: 'before:text-muted-foreground opacity-75',
+ emptyNodeClass: 'before:text-gray-11 opacity-75',
}),
Mention.configure({
suggestion: { char: '' },
@@ -202,7 +202,7 @@ function RichTextToolbar({
},
];
return (
- <div className="flex items-center gap-0.5 border-b border-input px-1.5 py-1">
+ <div className="flex items-center gap-0.5 border-b border-gray-6 px-1.5 py-1">
{buttons.map(({ key, label, icon: Icon, run }) => {
const active = editor.isActive(key);
return (
@@ -215,8 +215,8 @@ function RichTextToolbar({
onMouseDown={(event) => event.preventDefault()}
onClick={run}
className={cn(
- 'flex size-7 items-center justify-center rounded text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/50',
- active && 'bg-muted text-foreground',
+ 'flex size-7 items-center justify-center rounded text-gray-11 outline-none transition-colors hover:bg-gray-3 hover:text-gray-12 focus-visible:ring-2 focus-visible:ring-accent-8/50',
+ active && 'bg-gray-3 text-gray-12',
)}
>
<Icon className="size-4" />
@@ -580,7 +580,7 @@ export const TiptapEditor = ({
className={cn(
'relative w-full',
isHtml &&
- 'overflow-hidden rounded-md border border-input bg-transparent transition-[color,box-shadow] focus-within:border-ring focus-within:ring-[1px] focus-within:ring-ring/50',
+ 'overflow-hidden rounded-md border border-gray-6 bg-transparent transition-[color,box-shadow] focus-within:border-accent-8 focus-within:ring-[1px] focus-within:ring-accent-8/50',
wrapperClassName,
)}
ref={editorWrapperRef}
@@ -590,13 +590,13 @@ export const TiptapEditor = ({
{showPreview && (
<div
- className="absolute left-0 right-0 top-full z-50 rounded-b-md border border-t-0 border-border bg-background shadow-md text-[13px]"
+ className="absolute left-0 right-0 top-full z-50 rounded-b-md border border-t-0 border-gray-6 bg-gray-1 shadow-md text-[13px]"
onMouseDown={(e) => e.preventDefault()}
>
{(typeErrors.length > 0 || previewErrorMsg) && (
- <div className="border-b border-border">
+ <div className="border-b border-gray-6">
<div className="flex items-center justify-between px-3 py-2">
- <span className="flex items-center gap-1.5 text-destructive font-medium text-xs">
+ <span className="flex items-center gap-1.5 text-danger-11 font-medium text-xs">
<XCircle className="size-3" />
{t('Error')}
</span>
@@ -609,7 +609,7 @@ export const TiptapEditor = ({
.join('\n')}
/>
</div>
- <div className="px-3 pb-2 text-destructive break-all whitespace-pre-wrap space-y-0.5">
+ <div className="px-3 pb-2 text-danger-11 break-all whitespace-pre-wrap space-y-0.5">
{typeErrors.map((err, i) => (
<div key={i}>{err}</div>
))}
@@ -632,11 +632,9 @@ export const TiptapEditor = ({
/>
</div>
- <div className="px-3 pb-2 text-foreground break-all whitespace-pre-wrap">
+ <div className="px-3 pb-2 text-gray-12 break-all whitespace-pre-wrap">
{previewResult || (
- <span className="text-muted-foreground italic">
- {t('empty')}
- </span>
+ <span className="text-gray-11 italic">{t('empty')}</span>
)}
</div>
</div>
diff --git a/packages/web/src/app/builder/pieces-selector/ai-tab-content/index.tsx b/packages/web/src/app/builder/pieces-selector/ai-tab-content/index.tsx
index 143ec7461bb..0bac9c5f25a 100644
--- a/packages/web/src/app/builder/pieces-selector/ai-tab-content/index.tsx
+++ b/packages/web/src/app/builder/pieces-selector/ai-tab-content/index.tsx
@@ -46,7 +46,7 @@ const AITabContent = ({ operation }: { operation: PieceSelectorOperation }) => {
) {
return (
<div className="flex items-center justify-center h-full w-full">
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t('AI piece is not available for this platform')}
</p>
</div>
diff --git a/packages/web/src/app/builder/pieces-selector/explore-tab-content.tsx b/packages/web/src/app/builder/pieces-selector/explore-tab-content.tsx
index 4b378c76eaa..d71e018cf13 100644
--- a/packages/web/src/app/builder/pieces-selector/explore-tab-content.tsx
+++ b/packages/web/src/app/builder/pieces-selector/explore-tab-content.tsx
@@ -59,9 +59,7 @@ const ExploreTabContent = ({
<div className="flex p-2 ">
{categories.map((category) => (
<div key={category.title} className="flex w-[50%] flex-col gap-0.5 ">
- <div className="text-sm text-muted-foreground mb-1.5">
- {category.title}
- </div>
+ <div className="text-sm text-gray-11 mb-1.5">{category.title}</div>
{category.metadata.map((pieceMetadata) => (
<CardListItem
@@ -76,7 +74,7 @@ const ExploreTabContent = ({
showTooltip={false}
size={'sm'}
/>
- <div className="grow h-full flex items-center justify-left text-sm">
+ <div className="grow h-full flex items-center text-sm">
{pieceMetadata.displayName}
</div>
</div>{' '}
diff --git a/packages/web/src/app/builder/pieces-selector/generic-piece-selector-item.tsx b/packages/web/src/app/builder/pieces-selector/generic-piece-selector-item.tsx
index 20da00558c8..6a6b22f3b8e 100644
--- a/packages/web/src/app/builder/pieces-selector/generic-piece-selector-item.tsx
+++ b/packages/web/src/app/builder/pieces-selector/generic-piece-selector-item.tsx
@@ -87,7 +87,7 @@ const GenericActionOrTriggerItem = ({
)}
</div>
<div
- className={cn('text-xs text-muted-foreground', {
+ className={cn('text-xs text-gray-11', {
truncate: hidePieceIconAndDescription,
})}
>
diff --git a/packages/web/src/app/builder/pieces-selector/no-results-found.tsx b/packages/web/src/app/builder/pieces-selector/no-results-found.tsx
index 0527324c55f..2fea59346cb 100644
--- a/packages/web/src/app/builder/pieces-selector/no-results-found.tsx
+++ b/packages/web/src/app/builder/pieces-selector/no-results-found.tsx
@@ -15,14 +15,14 @@ const NoResultsFound = () => {
return (
<div className="flex flex-col items-center justify-center gap-3 h-full px-6 text-center">
- <div className="flex items-center justify-center size-12 rounded-full bg-muted">
- <SearchXIcon className="size-6 text-muted-foreground" />
+ <div className="flex items-center justify-center size-12 rounded-full bg-gray-3">
+ <SearchXIcon className="size-6 text-gray-11" />
</div>
<div className="flex flex-col gap-1">
- <div className="text-sm font-medium text-foreground">
+ <div className="text-sm font-medium text-gray-12">
{t('No results found')}
</div>
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-gray-11">
{t('Try a different search term')}
</div>
</div>
diff --git a/packages/web/src/app/builder/pieces-selector/piece-card-item.tsx b/packages/web/src/app/builder/pieces-selector/piece-card-item.tsx
index ec1a677cd9a..711738536b1 100644
--- a/packages/web/src/app/builder/pieces-selector/piece-card-item.tsx
+++ b/packages/web/src/app/builder/pieces-selector/piece-card-item.tsx
@@ -81,7 +81,7 @@ const PieceCardListItem = ({
showTooltip={false}
size={'sm'}
/>
- <div className="grow h-full flex items-center justify-left text-sm">
+ <div className="grow h-full flex items-center text-sm">
{pieceMetadata.displayName}
</div>
</div>
diff --git a/packages/web/src/app/builder/pieces-selector/pieces-card-list.tsx b/packages/web/src/app/builder/pieces-selector/pieces-card-list.tsx
index 2bbdfea50fa..6bb0988cd4c 100644
--- a/packages/web/src/app/builder/pieces-selector/pieces-card-list.tsx
+++ b/packages/web/src/app/builder/pieces-selector/pieces-card-list.tsx
@@ -109,7 +109,7 @@ export const PiecesCardList: React.FC<PiecesCardListProps> = ({
if (item.isCategory) {
return (
<div
- className={cn('p-2 pb-0 text-sm text-muted-foreground')}
+ className={cn('p-2 pb-0 text-sm text-gray-11')}
id={item.displayName}
>
{item.displayName}
diff --git a/packages/web/src/app/builder/run-details/ai-router-routes.tsx b/packages/web/src/app/builder/run-details/ai-router-routes.tsx
index da76707d276..94d4018f31d 100644
--- a/packages/web/src/app/builder/run-details/ai-router-routes.tsx
+++ b/packages/web/src/app/builder/run-details/ai-router-routes.tsx
@@ -21,19 +21,19 @@ export const AiRouterRoutes = ({ output, input }: AiRouterRoutesProps) => {
return (
<div className="flex flex-col gap-2 p-3 rounded-lg border">
- <span className="text-xs font-medium text-muted-foreground">
+ <span className="text-xs font-medium text-gray-11">
{t('How sure the model was')}
</span>
{shown.map((route) => (
<div key={route.name} className="flex items-center gap-2">
<span className="flex size-4 shrink-0 items-center justify-center">
- {route.chosen && <Check className="size-3.5 text-primary" />}
+ {route.chosen && <Check className="size-3.5 text-accent-11" />}
</span>
<TextWithTooltip tooltipMessage={route.name}>
<span
className={cn('text-sm w-28 shrink-0 truncate block', {
- 'font-medium text-primary': route.chosen,
- 'text-muted-foreground': !route.chosen,
+ 'font-medium text-accent-11': route.chosen,
+ 'text-gray-11': !route.chosen,
})}
>
{route.name}
@@ -41,15 +41,15 @@ export const AiRouterRoutes = ({ output, input }: AiRouterRoutesProps) => {
</TextWithTooltip>
<Progress
value={route.percent ?? 0}
- className={cn('h-1.5 grow', { 'bg-muted': !route.chosen })}
+ className={cn('h-1.5 grow', { 'bg-gray-3': !route.chosen })}
indicatorClassName={cn({
- 'bg-muted-foreground/50': !route.chosen,
+ 'bg-gray-8': !route.chosen,
})}
/>
<span
className={cn('text-xs w-10 shrink-0 text-right tabular-nums', {
- 'font-medium text-primary': route.chosen,
- 'text-muted-foreground': !route.chosen,
+ 'font-medium text-accent-11': route.chosen,
+ 'text-gray-11': !route.chosen,
})}
>
{isNil(route.percent) ? '—' : `${route.percent}%`}
@@ -57,12 +57,12 @@ export const AiRouterRoutes = ({ output, input }: AiRouterRoutesProps) => {
</div>
))}
{hidden > 0 && (
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{t('and {count} more', { count: hidden })}
</span>
)}
{!isNil(floor) && (
- <div className="flex items-start gap-2 border-t pt-2 text-xs text-muted-foreground">
+ <div className="flex items-start gap-2 border-t pt-2 text-xs text-gray-11">
<Info className="size-3.5 shrink-0 mt-0.5" />
<span>
{t(
diff --git a/packages/web/src/app/builder/run-details/flow-step-input-output.tsx b/packages/web/src/app/builder/run-details/flow-step-input-output.tsx
index a2932ec2c7b..28eca61c70a 100644
--- a/packages/web/src/app/builder/run-details/flow-step-input-output.tsx
+++ b/packages/web/src/app/builder/run-details/flow-step-input-output.tsx
@@ -145,10 +145,8 @@ export const FlowStepInputOutput = () => {
if (message) {
return (
<div className="flex flex-col justify-center items-center gap-4 w-full pt-8 px-5">
- <Info size={36} className="text-muted-foreground" />
- <h4 className="px-6 text-sm text-center text-muted-foreground">
- {message}
- </h4>
+ <Info size={36} className="text-gray-11" />
+ <h4 className="px-6 text-sm text-center text-gray-11">{message}</h4>
</div>
);
}
@@ -161,14 +159,14 @@ export const FlowStepInputOutput = () => {
<ClosePanelButton />
</div>
<div className="grow flex flex-col items-center justify-center w-full px-6 py-10 gap-4 text-center">
- <div className="flex items-center justify-center size-12 rounded-full bg-muted text-muted-foreground">
+ <div className="flex items-center justify-center size-12 rounded-full bg-gray-3 text-gray-11">
<Info className="size-6" />
</div>
<div className="flex flex-col gap-1.5 max-w-[280px]">
- <span className="text-sm font-medium text-foreground">
+ <span className="text-sm font-medium text-gray-12">
{t("This step didn't run")}
</span>
- <span className="text-xs text-muted-foreground leading-relaxed">
+ <span className="text-xs text-gray-11 leading-relaxed">
{t(
'This step was skipped during this run, no input or output was captured.',
)}
@@ -318,14 +316,14 @@ const InternalErrorPanel = ({
<ScrollArea className="h-full">
<div className="flex flex-col gap-3 p-4">
<div className="flex items-center gap-2 flex-wrap">
- <ShieldAlert className="w-4 h-4 text-destructive shrink-0" />
+ <ShieldAlert className="w-4 h-4 text-danger-11 shrink-0" />
<span className="text-sm font-medium">{t('Internal error')}</span>
<Badge variant="outline" className="gap-1">
<ShieldAlert className="w-3 h-3" />
{t('Platform Admin Only')}
</Badge>
</div>
- <div className="flex flex-col gap-1 text-xs text-muted-foreground">
+ <div className="flex flex-col gap-1 text-xs text-gray-11">
<span>
{t('Source')}: {internalError.source}
</span>
@@ -339,7 +337,7 @@ const InternalErrorPanel = ({
{formatUtils.formatDate(new Date(internalError.occurredAt))}
</span>
</div>
- <pre className="text-xs bg-muted rounded-md p-3 whitespace-pre-wrap break-words font-mono">
+ <pre className="text-xs bg-gray-3 rounded-md p-3 whitespace-pre-wrap break-words font-mono">
{internalError.message}
</pre>
</div>
@@ -347,8 +345,8 @@ const InternalErrorPanel = ({
);
const TruncatedInputNotice = () => (
- <div className="flex items-start gap-2 p-3 bg-muted rounded-md text-sm">
- <Info className="w-4 h-4 mt-0.5 text-muted-foreground shrink-0" />
+ <div className="flex items-start gap-2 p-3 bg-gray-3 rounded-md text-sm">
+ <Info className="w-4 h-4 mt-0.5 text-gray-11 shrink-0" />
<span>
{t(
'Some input values were too large to keep in the run logs and are shown as truncated. The step ran with the full values.',
@@ -357,7 +355,7 @@ const TruncatedInputNotice = () => (
href="https://www.activepieces.com/docs/install/troubleshooting/truncated-logs"
target="_blank"
rel="noreferrer"
- className="text-primary underline"
+ className="text-accent-11 underline"
>
{t('Learn more')}
</a>
@@ -370,9 +368,9 @@ const SlicedOutputDownload = ({
}: {
slicedOutputRef: LogSliceRef;
}) => (
- <div className="flex flex-col gap-3 p-4 bg-muted rounded-md">
+ <div className="flex flex-col gap-3 p-4 bg-gray-3 rounded-md">
<div className="flex items-start gap-2 text-sm">
- <Info className="w-4 h-4 mt-0.5 text-muted-foreground shrink-0" />
+ <Info className="w-4 h-4 mt-0.5 text-gray-11 shrink-0" />
<span>
{t(
'Output is too large to display inline ({size}). Download to inspect.',
diff --git a/packages/web/src/app/builder/run-details/loop-iteration-input.tsx b/packages/web/src/app/builder/run-details/loop-iteration-input.tsx
index 8afde560ba0..2b320887476 100644
--- a/packages/web/src/app/builder/run-details/loop-iteration-input.tsx
+++ b/packages/web/src/app/builder/run-details/loop-iteration-input.tsx
@@ -88,8 +88,10 @@ const LoopIterationInput = ({ stepName }: { stepName: string }) => {
<TooltipTrigger>
<Input
ref={inputRef}
- className={`py-2 w-[35px] px-0 h-[35px] animate-in fade-in bg-background border-solid rounded-md text-center !text-xs transition-all duration-300 ease-in-out ${
- isAnimating ? 'border-2 border-primary' : 'border border-border'
+ className={`py-2 w-[35px] px-0 h-[35px] animate-in fade-in bg-gray-1 border-solid rounded-md text-center !text-xs transition-all duration-300 ${
+ isAnimating
+ ? 'border-2 border-accent-9'
+ : 'border border-gray-6'
}`}
type="number"
value={currentIndex + 1}
@@ -138,10 +140,10 @@ const LoopIterationInput = ({ stepName }: { stepName: string }) => {
setLoopIndex(stepName, index);
}}
className={cn(
- 'size-2.5 shrink-0 rounded-full border border-background transition-transform hover:scale-125',
+ 'size-2.5 shrink-0 rounded-full border border-gray-1 transition-transform hover:scale-125',
getIterationDotClassName(status),
index === currentIndex &&
- 'ring-1 ring-primary ring-offset-1',
+ 'ring-1 ring-accent-9 ring-offset-1',
)}
/>
</TooltipTrigger>
@@ -183,13 +185,13 @@ function getIterationStatus(
function getIterationDotClassName(status: StepOutputStatus): string {
switch (status) {
case StepOutputStatus.FAILED:
- return 'bg-destructive';
+ return 'bg-danger-11';
case StepOutputStatus.RUNNING:
- return 'bg-primary animate-pulse';
+ return 'bg-accent-11 animate-pulse';
case StepOutputStatus.PAUSED:
- return 'bg-warning';
+ return 'bg-warning-11';
default:
- return 'bg-success';
+ return 'bg-success-11';
}
}
@@ -225,7 +227,7 @@ const LoopIterationInputButton = ({
e.stopPropagation();
onChange((currentIndex + (isIncreasing ? 2 : 0)).toString());
}}
- className="hover:bg-builder-background size-6"
+ className="hover:bg-gray-2 size-6"
size="icon"
>
{isIncreasing ? (
diff --git a/packages/web/src/app/builder/run-list/flow-run-card.tsx b/packages/web/src/app/builder/run-list/flow-run-card.tsx
index bffcabc5858..03023ed5663 100644
--- a/packages/web/src/app/builder/run-list/flow-run-card.tsx
+++ b/packages/web/src/app/builder/run-list/flow-run-card.tsx
@@ -62,7 +62,7 @@ const FlowRunCard = React.memo(
return (
<CardListItem
className={cn('px-3 group', {
- 'bg-accent text-accent-foreground': run.id === viewedRunId,
+ 'bg-gray-5 text-gray-12': run.id === viewedRunId,
})}
style={{ height: `${FLOW_CARD_HEIGHT}px` }}
onClick={() => {
@@ -77,8 +77,10 @@ const FlowRunCard = React.memo(
<TooltipTrigger>
<Icon
className={cn('w-5 h-5', {
- 'text-success': variant === 'success',
- 'text-destructive': variant === 'error',
+ 'text-success-11': variant === 'success',
+ 'text-danger-11': variant === 'error',
+ 'text-warning-11': variant === 'warning',
+ 'text-accent-11': variant === 'primary',
})}
/>
</TooltipTrigger>
@@ -87,8 +89,10 @@ const FlowRunCard = React.memo(
) : (
<Icon
className={cn('w-5 h-5', {
- 'text-success': variant === 'success',
- 'text-destructive': variant === 'error',
+ 'text-success-11': variant === 'success',
+ 'text-danger-11': variant === 'error',
+ 'text-warning-11': variant === 'warning',
+ 'text-accent-11': variant === 'primary',
})}
/>
)}
@@ -107,7 +111,7 @@ const FlowRunCard = React.memo(
status: run.status,
ignoreInternalError: false,
}) && (
- <p className="flex gap-1 text-xs text-muted-foreground">
+ <p className="flex gap-1 text-xs text-gray-11">
<Timer className="h-3.5 w-3.5" />
{t('Took')}{' '}
{formatUtils.formatDuration(
@@ -120,14 +124,10 @@ const FlowRunCard = React.memo(
</p>
)}
{run.status === FlowRunStatus.RUNNING && (
- <p className="flex gap-1 text-xs text-muted-foreground">
- {t('Running')}...
- </p>
+ <p className="flex gap-1 text-xs text-gray-11">{t('Running')}...</p>
)}
{run.status === FlowRunStatus.QUEUED && (
- <p className="flex gap-1 text-xs text-muted-foreground">
- {t('Queued')}...
- </p>
+ <p className="flex gap-1 text-xs text-gray-11">{t('Queued')}...</p>
)}
</div>
<div className="ml-auto font-medium">
@@ -151,7 +151,7 @@ const FlowRunCard = React.memo(
variant="ghost"
size={'icon'}
className={cn(
- 'group-hover:opacity-100 opacity-0 rounded-full bg-accent drop-shadow-md',
+ 'group-hover:opacity-100 opacity-0 rounded-full bg-gray-4 drop-shadow-md',
{
'opacity-100': isRetryDropdownOpen,
},
diff --git a/packages/web/src/app/builder/step-data/close-panel-button.tsx b/packages/web/src/app/builder/step-data/close-panel-button.tsx
index c4a082b4341..de1edd120f7 100644
--- a/packages/web/src/app/builder/step-data/close-panel-button.tsx
+++ b/packages/web/src/app/builder/step-data/close-panel-button.tsx
@@ -33,7 +33,7 @@ const ClosePanelButton = ({
onClick={() => setStepDataPanelOpen(false)}
disabled={disabled}
aria-label={t('Close')}
- className={cn('size-8 shrink-0 text-muted-foreground', className)}
+ className={cn('size-8 shrink-0 text-gray-11', className)}
>
<X className="size-4" />
</Button>
diff --git a/packages/web/src/app/builder/step-data/step-data-panel-header.tsx b/packages/web/src/app/builder/step-data/step-data-panel-header.tsx
index 494d3974fdf..cdc15296d91 100644
--- a/packages/web/src/app/builder/step-data/step-data-panel-header.tsx
+++ b/packages/web/src/app/builder/step-data/step-data-panel-header.tsx
@@ -28,9 +28,9 @@ const StepDataPanelHeader = ({
<div
className={cn(
'flex items-center justify-between px-3 py-2 shrink-0 gap-2',
- status === 'success' && 'bg-success-100',
- status === 'failed' && 'bg-destructive/10',
- status === 'testing' && 'bg-primary/10',
+ status === 'success' && 'bg-success-3',
+ status === 'failed' && 'bg-danger-3',
+ status === 'testing' && 'bg-accent-3',
)}
>
<StepDataPanelStatusBadge status={status} viewMode={viewMode} />
@@ -38,8 +38,8 @@ const StepDataPanelHeader = ({
<span
className={cn(
'text-xs truncate',
- status === 'success' && 'text-success-700/80',
- status === 'failed' && 'text-destructive/80',
+ status === 'success' && 'text-success-11',
+ status === 'failed' && 'text-danger-11/80',
)}
>
{formatUtils.formatDateWithTime(new Date(lastTestDate), false)}
@@ -62,7 +62,7 @@ const StepDataPanelStatusBadge = ({
return (
<div className="flex items-center gap-1.5 text-sm">
<StepStatusIcon status={StepOutputStatus.FAILED} size="4.5" />
- <span className="text-destructive-700 dark:text-destructive-200 font-medium">
+ <span className="text-danger-11 font-medium">
{viewMode === 'run' ? t('Failed') : t('Test Failed')}
</span>
</div>
@@ -70,7 +70,7 @@ const StepDataPanelStatusBadge = ({
}
if (status === 'testing') {
return (
- <div className="flex items-center gap-1.5 text-sm text-primary">
+ <div className="flex items-center gap-1.5 text-sm text-accent-11">
<Loader2 className="size-4 animate-spin" />
<span className="font-medium">{t('Testing...')}</span>
</div>
@@ -79,7 +79,7 @@ const StepDataPanelStatusBadge = ({
return (
<div className="flex items-center gap-1.5 text-sm">
<StepStatusIcon status={StepOutputStatus.SUCCEEDED} size="4.5" />
- <span className="text-success-700 font-medium">
+ <span className="text-success-11 font-medium">
{viewMode === 'run' ? t('Success') : t('Tested Successfully')}
</span>
</div>
diff --git a/packages/web/src/app/builder/step-data/step-data-panel-host.tsx b/packages/web/src/app/builder/step-data/step-data-panel-host.tsx
index 9c56c0da163..8863c1d84f2 100644
--- a/packages/web/src/app/builder/step-data/step-data-panel-host.tsx
+++ b/packages/web/src/app/builder/step-data/step-data-panel-host.tsx
@@ -77,7 +77,7 @@ const StepDataPanelHost = ({
<div
ref={drawerRef}
className={cn(
- 'group relative h-full w-full bg-background flex flex-col overflow-hidden border border-border',
+ 'group relative h-full w-full bg-gray-1 flex flex-col overflow-hidden border border-gray-6',
mode === 'drawer' && 'rounded-t-xl shadow-lg border-b-0 border-x-0',
mode === 'split' && 'rounded-t-xl border-b-0',
)}
diff --git a/packages/web/src/app/builder/step-settings/agent-settings/agent-link.tsx b/packages/web/src/app/builder/step-settings/agent-settings/agent-link.tsx
index 7abbeffd456..61543ca3e62 100644
--- a/packages/web/src/app/builder/step-settings/agent-settings/agent-link.tsx
+++ b/packages/web/src/app/builder/step-settings/agent-settings/agent-link.tsx
@@ -210,9 +210,7 @@ export const AgentLink = ({ disabled }: AgentLinkProps) => {
<div className="flex flex-col gap-2.5 rounded-lg border p-3">
{summaryText && (
<TextWithTooltip tooltipMessage={summaryText}>
- <p className="line-clamp-2 text-xs text-muted-foreground">
- {summaryText}
- </p>
+ <p className="line-clamp-2 text-xs text-gray-11">{summaryText}</p>
</TextWithTooltip>
)}
@@ -239,9 +237,7 @@ export const AgentLink = ({ disabled }: AgentLinkProps) => {
<p
className={cn(
'text-xs',
- isNil(blockedReason)
- ? 'text-muted-foreground'
- : 'text-warning-700 dark:text-warning-300',
+ isNil(blockedReason) ? 'text-gray-11' : 'text-warning-11',
)}
>
{blockedReason ??
diff --git a/packages/web/src/app/builder/step-settings/agent-settings/agent-tools.tsx b/packages/web/src/app/builder/step-settings/agent-settings/agent-tools.tsx
index aaa6f207040..b2003dbbb79 100644
--- a/packages/web/src/app/builder/step-settings/agent-settings/agent-tools.tsx
+++ b/packages/web/src/app/builder/step-settings/agent-settings/agent-tools.tsx
@@ -8,6 +8,7 @@ import type {
import { t } from 'i18next';
import { Plus } from 'lucide-react';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { Accordion } from '@/components/ui/accordion';
import { Button } from '@/components/ui/button';
import {
@@ -134,30 +135,31 @@ export const AgentTools = ({
<AddRow label={t('Add tool')} disabled={disabled} />
</AddToolDropdown>
) : (
- <div className="flex flex-col items-center justify-center gap-4 rounded-xl border bg-card px-4 py-8 text-center">
+ <div className="flex flex-col items-center justify-center gap-4 rounded-xl border bg-panel px-4 py-8 text-center">
<div className="flex items-center">
{icons.slice(0, 4).map((icon, index) => (
- <div
+ <span
key={icon}
- className="relative flex size-9 items-center justify-center rounded-full border bg-background"
+ className="relative"
style={{ marginLeft: index === 0 ? 0 : -10 }}
>
- <img
+ <LogoPlate
src={icon}
- alt={icon}
- className="size-4 object-contain"
+ alt=""
+ border
+ className="size-9 rounded-full p-2.5"
/>
- </div>
+ </span>
))}
<div
- className="relative flex size-9 items-center justify-center rounded-full border text-[10px] bg-background text-foreground font-medium"
+ className="relative flex size-9 items-center justify-center rounded-full border text-[10px] bg-gray-1 text-gray-12 font-medium"
style={{ marginLeft: -10 }}
>
<span>+500</span>
</div>
</div>
- <p className="text-sm font-medium text-muted-foreground">
+ <p className="text-sm font-medium text-gray-11">
{t('Connect apps, flows, MCPs and more.')}
</p>
diff --git a/packages/web/src/app/builder/step-settings/agent-settings/predefined-inputs-form.tsx b/packages/web/src/app/builder/step-settings/agent-settings/predefined-inputs-form.tsx
index 9831d09d08b..ede822054ee 100644
--- a/packages/web/src/app/builder/step-settings/agent-settings/predefined-inputs-form.tsx
+++ b/packages/web/src/app/builder/step-settings/agent-settings/predefined-inputs-form.tsx
@@ -7,6 +7,7 @@ import { useEffect, useMemo } from 'react';
import { useForm } from 'react-hook-form';
import { z } from 'zod';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { ApMarkdown } from '@/components/custom/markdown';
import { Form, FormField } from '@/components/ui/form';
import { ScrollArea } from '@/components/ui/scroll-area';
@@ -154,19 +155,18 @@ export const PredefinedInputsForm = () => {
<Form {...form}>
<ScrollArea className="h-full">
<div className="flex items-start border-b gap-3 p-4">
- <div className="flex size-11 shrink-0 items-center justify-center rounded-sm border bg-background">
- <img
- className="size-8 object-contain"
- src={selectedPiece?.logoUrl}
- alt={selectedPiece?.displayName}
- />
- </div>
+ <LogoPlate
+ className="size-11 rounded-sm p-1.5"
+ border
+ src={selectedPiece?.logoUrl}
+ alt=""
+ />
<div className="min-w-0 flex-1">
<div className="text-sm font-medium">
{selectedAction?.displayName}
</div>
{selectedAction?.description && (
- <p className="mt-0.5 text-xs text-muted-foreground line-clamp-2">
+ <p className="mt-0.5 text-xs text-gray-11 line-clamp-2">
{selectedAction.description}
</p>
)}
diff --git a/packages/web/src/app/builder/step-settings/ai-router-settings/index.tsx b/packages/web/src/app/builder/step-settings/ai-router-settings/index.tsx
index 243dee15094..9753d6edaf0 100644
--- a/packages/web/src/app/builder/step-settings/ai-router-settings/index.tsx
+++ b/packages/web/src/app/builder/step-settings/ai-router-settings/index.tsx
@@ -170,7 +170,7 @@ export const AiRouterSettings = memo(({ readonly }: { readonly: boolean }) => {
form.trigger();
}}
/>
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{t('The model reads this to decide. Be specific, not long.')}
</span>
<FormMessage />
@@ -196,7 +196,7 @@ export const AiRouterSettings = memo(({ readonly }: { readonly: boolean }) => {
}}
initialValue={field.value}
></TextInputWithMentions>
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{t('The text the model should read.')}
</span>
</FormItem>
@@ -217,7 +217,7 @@ export const AiRouterSettings = memo(({ readonly }: { readonly: boolean }) => {
}}
initialValue={field.value}
></TextInputWithMentions>
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{t('One question, answered by exactly one route below.')}
</span>
</FormItem>
@@ -250,7 +250,7 @@ export const AiRouterSettings = memo(({ readonly }: { readonly: boolean }) => {
</SelectItem>
</SelectContent>
</Select>
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{field.value === AiRouterMatchMode.ALL_MATCHES
? t(
'Asks the model once per route, so it costs more than picking one.',
@@ -352,7 +352,7 @@ export const AiRouterSettings = memo(({ readonly }: { readonly: boolean }) => {
form.trigger();
}}
/>
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{t('Below this, the flow takes the Otherwise route.')}
</span>
</FormItem>
diff --git a/packages/web/src/app/builder/step-settings/branch-settings/branch-single-condition.tsx b/packages/web/src/app/builder/step-settings/branch-settings/branch-single-condition.tsx
index bbeca9a473d..85579e05e27 100644
--- a/packages/web/src/app/builder/step-settings/branch-settings/branch-single-condition.tsx
+++ b/packages/web/src/app/builder/step-settings/branch-settings/branch-single-condition.tsx
@@ -201,7 +201,7 @@ const BranchSingleCondition = ({
{showDelete && (
<Button
variant={'basic'}
- className="text-destructive gap-2 items-center"
+ className="text-danger-11 gap-2 items-center"
size={'sm'}
onClick={deleteClick}
>
diff --git a/packages/web/src/app/builder/step-settings/branch-settings/index.tsx b/packages/web/src/app/builder/step-settings/branch-settings/index.tsx
index ad6fc15548c..04301fd8ec2 100644
--- a/packages/web/src/app/builder/step-settings/branch-settings/index.tsx
+++ b/packages/web/src/app/builder/step-settings/branch-settings/index.tsx
@@ -50,7 +50,7 @@ const BranchSettings = React.memo(
return (
<div className="flex flex-col gap-4" onSubmit={(e) => e.preventDefault()}>
- <div className="text-md ">{t('Execute If')}</div>
+ <div>{t('Execute If')}</div>
{fields.map((fieldGroup, groupIndex) => (
<BranchConditionGroup
key={fieldGroup.id}
diff --git a/packages/web/src/app/builder/step-settings/code-settings/code-editor.tsx b/packages/web/src/app/builder/step-settings/code-settings/code-editor.tsx
index 3c74533d1fe..06fafd8dae2 100644
--- a/packages/web/src/app/builder/step-settings/code-settings/code-editor.tsx
+++ b/packages/web/src/app/builder/step-settings/code-settings/code-editor.tsx
@@ -2,7 +2,6 @@ import { deepMergeAndCast } from '@activepieces/core-utils';
import { ApFlagId, SourceCode } from '@activepieces/shared';
import { javascript } from '@codemirror/lang-javascript';
import { json } from '@codemirror/lang-json';
-import { githubDark, githubLight } from '@uiw/codemirror-theme-github';
import CodeMirror, { EditorState, EditorView } from '@uiw/react-codemirror';
import { t } from 'i18next';
import { Code, Package } from 'lucide-react';
@@ -12,6 +11,7 @@ import { useTheme } from '@/components/providers/theme-provider';
import { Button } from '@/components/ui/button';
import { internalErrorToast } from '@/components/ui/sonner';
import { flagsHooks } from '@/hooks/flags-hooks';
+import { syntaxTheme } from '@/lib/syntax-theme';
import { cn } from '@/lib/utils';
import { AddNpmDialog } from './add-npm-dialog';
@@ -41,10 +41,10 @@ const CodeEditor = ({
const [activeTab, setActiveTab] = useState<keyof SourceCode>('code');
const [language, setLanguage] = useState<'typescript' | 'json'>('typescript');
const codeApplicationEnabled = typeof applyCodeToCurrentStep === 'function';
- const { theme } = useTheme();
+ const { resolvedTheme } = useTheme();
const containerRef = useRef<HTMLDivElement | null>(null);
- const codeEditorTheme = theme === 'dark' ? githubDark : githubLight;
+ const codeEditorTheme = syntaxTheme.codeMirror(resolvedTheme);
const { data: allowNpmPackagesInCodeStep } = flagsHooks.useFlag<boolean>(
ApFlagId.ALLOW_NPM_PACKAGES_IN_CODE_STEP,
diff --git a/packages/web/src/app/builder/step-settings/editable-step-name.tsx b/packages/web/src/app/builder/step-settings/editable-step-name.tsx
index fb03b84f5c8..793fb6e8886 100644
--- a/packages/web/src/app/builder/step-settings/editable-step-name.tsx
+++ b/packages/web/src/app/builder/step-settings/editable-step-name.tsx
@@ -111,15 +111,15 @@ const EditableStepName: React.FC<EditableStepNameProps> = ({
className={cn(
'flex items-center gap-1.5 min-w-0',
!readonly &&
- 'cursor-text rounded-sm hover:text-foreground/80 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring',
+ 'cursor-text rounded-sm hover:text-gray-12/80 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent-8',
)}
>
- <span className="truncate text-foreground">
+ <span className="truncate text-gray-12">
{typeof stepIndex === 'number' && `${stepIndex}. `}
{displayName}
</span>
{!readonly && (
- <Pencil className="size-3.5 shrink-0 text-muted-foreground" />
+ <Pencil className="size-3.5 shrink-0 text-gray-11" />
)}
</div>
</TooltipTrigger>
@@ -132,19 +132,19 @@ const EditableStepName: React.FC<EditableStepNameProps> = ({
{tooltipTitle}
</span>
{pieceVersion && (
- <span className="text-[11px] font-mono text-background/90">
+ <span className="text-[11px] font-mono text-gray-1/90">
(v{pieceVersion})
</span>
)}
</div>
)}
{!tooltipTitle && pieceVersion && (
- <span className="text-[11px] font-mono text-background/90">
+ <span className="text-[11px] font-mono text-gray-1/90">
(v{pieceVersion})
</span>
)}
{tooltipDescription && (
- <div className="text-xs text-background/90">
+ <div className="text-xs text-gray-1/90">
{tooltipDescription}
</div>
)}
@@ -161,7 +161,7 @@ const EditableStepName: React.FC<EditableStepNameProps> = ({
<Button
variant="ghost"
size="icon"
- className="size-6 shrink-0 text-muted-foreground hover:text-foreground"
+ className="size-6 shrink-0 text-gray-11 hover:text-gray-12"
onClick={handleStartEditing}
aria-label={t('Edit Branch Name')}
>
diff --git a/packages/web/src/app/builder/step-settings/index.tsx b/packages/web/src/app/builder/step-settings/index.tsx
index 94bc7a4d02b..e964523cda9 100644
--- a/packages/web/src/app/builder/step-settings/index.tsx
+++ b/packages/web/src/app/builder/step-settings/index.tsx
@@ -246,7 +246,7 @@ const StepSettingsContainer = () => {
>
<div
ref={sidebarHeaderContainerRef}
- className="relative z-10 bg-background"
+ className="relative z-10 bg-gray-1"
>
<SidebarHeader
onClose={() => exitStepSettings()}
@@ -327,7 +327,7 @@ const StepSettingsContainer = () => {
</SidebarHeader>
<div
aria-hidden
- className="pointer-events-none absolute -bottom-3 left-0 right-0 h-3 bg-gradient-to-b from-background to-transparent"
+ className="pointer-events-none absolute -bottom-3 left-0 right-0 h-3 bg-gradient-to-b from-gray-1 to-transparent"
/>
</div>
@@ -441,7 +441,7 @@ const PieceVersionInHeader = ({
(step.type === FlowActionType.PIECE || step.type === FlowTriggerType.PIECE);
return (
<div className="flex items-center gap-1 shrink-0">
- <span className="text-xs text-muted-foreground">v{exactVersion}</span>
+ <span className="text-xs text-gray-11">v{exactVersion}</span>
{showSwitcher && (
<UpdatePieceVersionDialog step={step} currentVersion={exactVersion} />
)}
diff --git a/packages/web/src/app/builder/step-settings/piece-settings/connection-select.tsx b/packages/web/src/app/builder/step-settings/piece-settings/connection-select.tsx
index dc07aa3157f..8f08b2c5c4c 100644
--- a/packages/web/src/app/builder/step-settings/piece-settings/connection-select.tsx
+++ b/packages/web/src/app/builder/step-settings/piece-settings/connection-select.tsx
@@ -181,7 +181,7 @@ function ConnectionSelect(params: ConnectionSelectProps) {
canShowConnectionStatus &&
statusDisplay && (
<div className="z-50 absolute right-8 top-1.5 flex items-center gap-1.5 pointer-events-none">
- <span className="flex items-center gap-1 text-xs text-muted-foreground select-none pointer-events-none">
+ <span className="flex items-center gap-1 text-xs text-gray-11 select-none pointer-events-none">
<statusDisplay.Icon
className={cn(
'size-3.5 shrink-0',
@@ -281,9 +281,9 @@ function ConnectionSelect(params: ConnectionSelectProps) {
>
<span
className={cn(
- 'flex items-center gap-1 text-primary w-full',
+ 'flex items-center gap-1 text-accent-11 w-full',
{
- 'text-muted-foreground cursor-not-allowed':
+ 'text-gray-11 cursor-not-allowed':
!hasPermissionToCreateConnection,
},
)}
@@ -323,14 +323,14 @@ function ConnectionSelect(params: ConnectionSelectProps) {
{connection.displayName}
</span>
{accountIdentifier && (
- <span className="ml-auto shrink-0 truncate max-w-[50%] text-xs text-muted-foreground">
+ <span className="ml-auto shrink-0 truncate max-w-[50%] text-xs text-gray-11">
{accountIdentifier}
</span>
)}
{rowStatus && (
<span
className={cn(
- 'flex items-center gap-1 text-xs text-muted-foreground shrink-0',
+ 'flex items-center gap-1 text-xs text-gray-11 shrink-0',
{ 'ml-auto': !accountIdentifier },
)}
>
@@ -386,19 +386,19 @@ function getConnectionStatusDisplay(status: AppConnectionStatus): {
case AppConnectionStatus.ACTIVE:
return {
Icon: Check,
- iconClassName: 'text-success',
+ iconClassName: 'text-success-11',
label: t('Connected'),
};
case AppConnectionStatus.ERROR:
return {
Icon: X,
- iconClassName: 'text-destructive',
+ iconClassName: 'text-danger-11',
label: t('Error'),
};
case AppConnectionStatus.MISSING:
return {
Icon: Unplug,
- iconClassName: 'text-muted-foreground',
+ iconClassName: 'text-gray-11',
label: t('Missing'),
};
}
diff --git a/packages/web/src/app/builder/step-settings/router-settings/branches-list.tsx b/packages/web/src/app/builder/step-settings/router-settings/branches-list.tsx
index 9bc7eaee766..9b8ff40eb35 100644
--- a/packages/web/src/app/builder/step-settings/router-settings/branches-list.tsx
+++ b/packages/web/src/app/builder/step-settings/router-settings/branches-list.tsx
@@ -174,7 +174,7 @@ export const BranchListItem = ({
return (
<div
className={
- 'flex items-center gap-2 hover:transition-colors has-[div.button-group:hover]:bg-background text-sm hover:bg-gray-100 dark:hover:bg-accent px-2 cursor-pointer'
+ 'flex items-center gap-2 hover:transition-colors has-[div.button-group:hover]:bg-gray-1 text-sm hover:bg-gray-4 px-2 cursor-pointer'
}
onClick={() => {
onClick();
@@ -224,7 +224,7 @@ export const BranchListItem = ({
deleteBranch();
}}
>
- <Trash className="w-4 h-4 stroke-destructive"></Trash>
+ <Trash className="w-4 h-4 stroke-danger-11"></Trash>
</Button>
</TooltipTrigger>
<TooltipContent side="bottom">{t('Delete')}</TooltipContent>
diff --git a/packages/web/src/app/builder/step-settings/update-piece-version-dialog/update-piece-version-dialog.tsx b/packages/web/src/app/builder/step-settings/update-piece-version-dialog/update-piece-version-dialog.tsx
index 6e5d2e9e136..1125147f82b 100644
--- a/packages/web/src/app/builder/step-settings/update-piece-version-dialog/update-piece-version-dialog.tsx
+++ b/packages/web/src/app/builder/step-settings/update-piece-version-dialog/update-piece-version-dialog.tsx
@@ -73,7 +73,7 @@ const UpdatePieceVersionDialog: React.FC<UpdatePieceVersionDialogProps> = ({
loading={isLoading}
>
{hasNewerVersion ? (
- <ArrowUp className="size-3.5 text-green-500" />
+ <ArrowUp className="size-3.5 text-success-11" />
) : (
<ArrowUpDown className="size-3.5" />
)}
@@ -278,7 +278,7 @@ const AdvancedForm: React.FC<AdvancedFormProps> = ({
{isPatchDowngrade && <PatchDowngradeInfoAlert />}
{form.formState.errors.root?.serverError && (
- <p className="text-sm font-medium text-destructive">
+ <p className="text-sm font-medium text-danger-11">
{form.formState.errors.root.serverError.message}
</p>
)}
diff --git a/packages/web/src/app/builder/step-settings/update-piece-version-dialog/upgrade-piece-version-dialog.tsx b/packages/web/src/app/builder/step-settings/update-piece-version-dialog/upgrade-piece-version-dialog.tsx
index f9cc361b865..a43af8b5fc8 100644
--- a/packages/web/src/app/builder/step-settings/update-piece-version-dialog/upgrade-piece-version-dialog.tsx
+++ b/packages/web/src/app/builder/step-settings/update-piece-version-dialog/upgrade-piece-version-dialog.tsx
@@ -53,7 +53,7 @@ export const UpgradePieceVersionContent: React.FC<
/>
{serverError && (
- <p className="text-sm font-medium text-destructive">{serverError}</p>
+ <p className="text-sm font-medium text-danger-11">{serverError}</p>
)}
<DialogFooter>
diff --git a/packages/web/src/app/builder/test-step/custom-test-step/mcp-tool-testing-dialog.tsx b/packages/web/src/app/builder/test-step/custom-test-step/mcp-tool-testing-dialog.tsx
index a6a9478567d..5ee5f3e60f7 100644
--- a/packages/web/src/app/builder/test-step/custom-test-step/mcp-tool-testing-dialog.tsx
+++ b/packages/web/src/app/builder/test-step/custom-test-step/mcp-tool-testing-dialog.tsx
@@ -172,7 +172,7 @@ function McpToolTestingDialog({
/>
{fieldError && (
- <p className="text-xs text-destructive font-medium">
+ <p className="text-xs text-danger-11 font-medium">
{fieldError.message?.toString()}
</p>
)}
@@ -183,7 +183,7 @@ function McpToolTestingDialog({
</div>
) : (
<div className="p-4 rounded-lg text-center">
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t('No input fields defined in the schema')}
</p>
</div>
diff --git a/packages/web/src/app/builder/test-step/test-action-section.tsx b/packages/web/src/app/builder/test-step/test-action-section.tsx
index d3059f3cd7c..42c190fbf86 100644
--- a/packages/web/src/app/builder/test-step/test-action-section.tsx
+++ b/packages/web/src/app/builder/test-step/test-action-section.tsx
@@ -115,14 +115,14 @@ const TestStepSectionImplementation = React.memo(
<StepDataPanelViewToggle />
</div>
<div className="grow flex flex-col items-center justify-center w-full px-6 py-10 gap-4 text-center">
- <div className="flex items-center justify-center size-12 rounded-full bg-primary/10 text-primary">
+ <div className="flex items-center justify-center size-12 rounded-full bg-accent-3 text-accent-11">
<FlaskConical className="size-6" />
</div>
<div className="flex flex-col gap-1.5 max-w-[280px]">
- <span className="text-sm font-medium text-foreground">
+ <span className="text-sm font-medium text-gray-12">
{t('No sample data yet')}
</span>
- <span className="text-xs text-muted-foreground leading-relaxed">
+ <span className="text-xs text-gray-11 leading-relaxed">
{t(
'Run this step to capture sample data. You can then use the result in following steps.',
)}
@@ -134,7 +134,7 @@ const TestStepSectionImplementation = React.memo(
onClick={onTestButtonClick}
loading={isTesting || isSaving}
disabled={!currentStep.valid || isLoadingDynamicProperties}
- className="bg-primary text-primary-foreground hover:bg-primary/90"
+ className="bg-accent-9 text-on-accent hover:bg-accent-9/90"
>
<Play className="size-3.5 fill-current" />
{t('Test Step')}
diff --git a/packages/web/src/app/builder/test-step/test-sample-data-viewer.tsx b/packages/web/src/app/builder/test-step/test-sample-data-viewer.tsx
index a40d96b452e..5f7d1dce379 100644
--- a/packages/web/src/app/builder/test-step/test-sample-data-viewer.tsx
+++ b/packages/web/src/app/builder/test-step/test-sample-data-viewer.tsx
@@ -126,7 +126,7 @@ export const TestSampleDataViewer = React.memo(
<StepDataPanelHeader status={status} lastTestDate={lastTestDate} />
<div className="flex-1 flex flex-col w-full text-start min-h-0">
{errorMessage && !isTesting && (
- <div className="px-3 pt-2 text-xs text-muted-foreground shrink-0">
+ <div className="px-3 pt-2 text-xs text-gray-11 shrink-0">
{t('Errors are not saved on refresh')}
</div>
)}
@@ -235,7 +235,7 @@ const SegmentedTabs = ({
}: SegmentedTabsProps) => (
<div
className={cn(
- 'inline-flex items-center rounded-md bg-muted p-0.5 gap-0.5',
+ 'inline-flex items-center rounded-md bg-gray-3 p-0.5 gap-0.5',
disabled && 'opacity-50',
)}
>
@@ -284,8 +284,8 @@ const SegmentedTabsButton = ({
className={cn(
'px-3 py-1 text-xs font-medium rounded-sm transition-colors disabled:cursor-not-allowed',
active
- ? 'bg-background text-foreground shadow-sm'
- : 'text-muted-foreground hover:text-foreground',
+ ? 'bg-gray-1 text-gray-12 shadow-sm'
+ : 'text-gray-11 hover:text-gray-12',
)}
>
{label}
@@ -307,11 +307,11 @@ const RetestActionBar = ({
}: RetestActionBarProps) => (
<div
data-test-panel-trigger
- className="relative px-3 py-3 bg-background z-10 shrink-0"
+ className="relative px-3 py-3 bg-gray-1 z-10 shrink-0"
>
<div
aria-hidden
- className="pointer-events-none absolute -top-6 left-0 right-0 h-6 bg-gradient-to-t from-background to-transparent"
+ className="pointer-events-none absolute -top-6 left-0 right-0 h-6 bg-gradient-to-t from-gray-1 to-transparent"
/>
<TestButtonTooltip saving={isSaving} invalid={!isValid}>
<Button
@@ -320,7 +320,7 @@ const RetestActionBar = ({
disabled={disabled}
keyboardShortcut="G"
onKeyboardShortcut={onRetest}
- className="w-full justify-center bg-primary/5 enabled:hover:bg-primary/15 enabled:hover:text-primary text-primary border-primary/20"
+ className="w-full justify-center bg-accent-3 enabled:hover:bg-accent-4 enabled:hover:text-accent-11 text-accent-11 border-accent-6"
size="sm"
>
<Play className="size-4 fill-current" />
@@ -337,17 +337,17 @@ type CancelTestingBarProps = {
const CancelTestingBar = ({ onCancel }: CancelTestingBarProps) => (
<div
data-test-panel-trigger
- className="relative px-3 py-3 bg-background z-10 shrink-0"
+ className="relative px-3 py-3 bg-gray-1 z-10 shrink-0"
>
<div
aria-hidden
- className="pointer-events-none absolute -top-6 left-0 right-0 h-6 bg-gradient-to-t from-background to-transparent"
+ className="pointer-events-none absolute -top-6 left-0 right-0 h-6 bg-gradient-to-t from-gray-1 to-transparent"
/>
<Button
onClick={onCancel}
disabled={!onCancel}
variant="outline"
- className="w-full justify-center bg-primary/5 hover:bg-primary/10 text-primary border-primary/20"
+ className="w-full justify-center bg-accent-3 enabled:hover:bg-accent-4 enabled:hover:text-accent-11 text-accent-11 border-accent-6"
size="sm"
>
<Loader2 className="size-4 animate-spin" />
diff --git a/packages/web/src/app/builder/test-step/test-step-cta-button.tsx b/packages/web/src/app/builder/test-step/test-step-cta-button.tsx
index 39351ca627a..7e41ff9759d 100644
--- a/packages/web/src/app/builder/test-step/test-step-cta-button.tsx
+++ b/packages/web/src/app/builder/test-step/test-step-cta-button.tsx
@@ -24,7 +24,7 @@ import {
import { TestButtonTooltip } from './test-step-tooltip';
const SOFT_PRIMARY_CTA_CLASSES =
- 'w-full justify-center bg-primary/5 enabled:hover:bg-primary/15 enabled:hover:text-primary text-primary border-primary/20';
+ 'w-full justify-center bg-accent-3 enabled:hover:bg-accent-4 enabled:hover:text-accent-11 text-accent-11 border-accent-6';
const TestStepCTAButton = () => {
const [
@@ -317,11 +317,11 @@ const useConfigureStepShortcutToast = (stepIsValid: boolean) => {
const CTAShell = ({ children }: { children: React.ReactNode }) => (
<div
data-test-panel-trigger
- className="relative px-3 py-3 bg-background z-10 flex flex-col gap-2 shrink-0"
+ className="relative px-3 py-3 bg-gray-1 z-10 flex flex-col gap-2 shrink-0"
>
<div
aria-hidden
- className="pointer-events-none absolute -top-6 left-0 right-0 h-6 bg-gradient-to-t from-background to-transparent"
+ className="pointer-events-none absolute -top-6 left-0 right-0 h-6 bg-gradient-to-t from-gray-1 to-transparent"
/>
{children}
</div>
diff --git a/packages/web/src/app/builder/test-step/test-trigger-section/index.tsx b/packages/web/src/app/builder/test-step/test-trigger-section/index.tsx
index f9e5f66807a..10a81102f5d 100644
--- a/packages/web/src/app/builder/test-step/test-trigger-section/index.tsx
+++ b/packages/web/src/app/builder/test-step/test-trigger-section/index.tsx
@@ -182,14 +182,14 @@ const TestTriggerSection = React.memo(
<StepDataPanelViewToggle />
</div>
<div className="grow flex flex-col items-center justify-center w-full px-6 py-10 gap-4 text-center">
- <div className="flex items-center justify-center size-12 rounded-full bg-primary/10 text-primary">
+ <div className="flex items-center justify-center size-12 rounded-full bg-accent-3 text-accent-11">
<Zap className="size-6" />
</div>
<div className="flex flex-col gap-1.5 max-w-[280px]">
- <span className="text-sm font-medium text-foreground">
+ <span className="text-sm font-medium text-gray-12">
{t('No sample data yet')}
</span>
- <span className="text-xs text-muted-foreground leading-relaxed">
+ <span className="text-xs text-gray-11 leading-relaxed">
{t(
'Test the trigger to capture sample data. You can then use the result in the following steps.',
)}
diff --git a/packages/web/src/app/builder/test-step/test-trigger-section/simulation-section.tsx b/packages/web/src/app/builder/test-step/test-trigger-section/simulation-section.tsx
index 6dc2d887f35..a4d89ac5d51 100644
--- a/packages/web/src/app/builder/test-step/test-trigger-section/simulation-section.tsx
+++ b/packages/web/src/app/builder/test-step/test-trigger-section/simulation-section.tsx
@@ -39,11 +39,11 @@ export const SimulationNote = ({
{note && (
<Alert>
- <AlertCircle className="h-4 w-4 text-warning" />
+ <AlertCircle className="h-4 w-4 text-warning-11" />
<div className="flex flex-col gap-1">
<AlertTitle>{t('Action Required')}:</AlertTitle>
<AlertDescription>
- <div className="break-wrods">{note}</div>
+ <div>{note}</div>
</AlertDescription>
</div>
</Alert>
diff --git a/packages/web/src/app/builder/test-step/test-trigger-section/trigger-event-select.tsx b/packages/web/src/app/builder/test-step/test-trigger-section/trigger-event-select.tsx
index 38ad3544f6c..91f4763d4ab 100644
--- a/packages/web/src/app/builder/test-step/test-trigger-section/trigger-event-select.tsx
+++ b/packages/web/src/app/builder/test-step/test-trigger-section/trigger-event-select.tsx
@@ -67,7 +67,7 @@ export const TriggerEventSelect = React.memo(
))}
</SelectContent>
</Select>
- <span className="text-sm mt-2 text-muted-foreground">
+ <span className="text-sm mt-2 text-gray-11">
{t('The sample data can be used in the next steps.')}
</span>
</div>
diff --git a/packages/web/src/app/components/account-settings/index.tsx b/packages/web/src/app/components/account-settings/index.tsx
index fb659fa0161..5bd9732fce5 100644
--- a/packages/web/src/app/components/account-settings/index.tsx
+++ b/packages/web/src/app/components/account-settings/index.tsx
@@ -91,8 +91,11 @@ export function AccountSettingsDialog({
disableTooltip
imageUrl={user?.imageUrl}
/>
- <div className="absolute inset-0 flex items-center justify-center bg-black/50 rounded-full opacity-0 group-hover:opacity-100 transition-opacity">
- <Camera className="h-5 w-5 text-white" />
+ <div
+ data-theme="dark"
+ className="absolute inset-0 flex items-center justify-center bg-scrim rounded-full opacity-0 group-hover:opacity-100 transition-opacity"
+ >
+ <Camera className="h-5 w-5 text-gray-12" />
</div>
<input
ref={fileInputRef}
@@ -107,7 +110,7 @@ export function AccountSettingsDialog({
<div className="text-sm font-semibold">
{user?.firstName} {user?.lastName}
</div>
- <div className="text-xs text-muted-foreground flex items-center gap-1">
+ <div className="text-xs text-gray-11 flex items-center gap-1">
<Mail className="w-3.5 h-3.5" />
{user?.email}
</div>
diff --git a/packages/web/src/app/components/account-settings/language-toggle.tsx b/packages/web/src/app/components/account-settings/language-toggle.tsx
index 649f8b4f8bd..a0cad570096 100644
--- a/packages/web/src/app/components/account-settings/language-toggle.tsx
+++ b/packages/web/src/app/components/account-settings/language-toggle.tsx
@@ -60,7 +60,7 @@ export const LanguageToggle = () => {
role="combobox"
className={cn(
'w-full justify-between font-normal',
- !selectedLanguage && 'text-muted-foreground',
+ !selectedLanguage && 'text-gray-11',
)}
disabled={isPending}
>
@@ -113,7 +113,7 @@ export const LanguageToggle = () => {
{showCommunity && (
<div className="pt-1">
<Link
- className="text-xs text-primary hover:underline font-medium"
+ className="text-xs text-accent-11 hover:underline font-medium"
rel="noopener noreferrer"
target="_blank"
to="https://www.activepieces.com/docs/about/i18n"
diff --git a/packages/web/src/app/components/account-settings/theme-toggle.tsx b/packages/web/src/app/components/account-settings/theme-toggle.tsx
index 36b69c12f04..a7c168f849a 100644
--- a/packages/web/src/app/components/account-settings/theme-toggle.tsx
+++ b/packages/web/src/app/components/account-settings/theme-toggle.tsx
@@ -12,7 +12,7 @@ import {
} from '@/components/ui/select';
export const ThemeToggle = () => {
- const { theme, setTheme } = useTheme();
+ const { preference, setPreference } = useTheme();
return (
<div className="space-y-2">
@@ -20,7 +20,7 @@ export const ThemeToggle = () => {
<Palette className="w-4 h-4" />
{t('Theme')}
</Label>
- <Select value={theme} onValueChange={setTheme}>
+ <Select value={preference} onValueChange={setPreference}>
<SelectTrigger>
<SelectValue />
</SelectTrigger>
diff --git a/packages/web/src/app/components/builder-layout/index.tsx b/packages/web/src/app/components/builder-layout/index.tsx
index 2eed5b06991..621095546ea 100644
--- a/packages/web/src/app/components/builder-layout/index.tsx
+++ b/packages/web/src/app/components/builder-layout/index.tsx
@@ -33,7 +33,7 @@ function BuilderLayoutInner({ children }: { children: React.ReactNode }) {
defaultOpen={false}
className="flex-1 min-w-0 w-auto will-change-transform"
>
- <SidebarInset className="flex flex-col h-full overflow-hidden bg-sidebar">
+ <SidebarInset className="flex flex-col h-full overflow-hidden bg-gray-2">
<div
className={cn(
'flex-1 flex flex-col overflow-hidden',
@@ -42,10 +42,10 @@ function BuilderLayoutInner({ children }: { children: React.ReactNode }) {
>
<div
className={cn(
- 'flex flex-col h-full bg-background overflow-hidden',
+ 'flex flex-col h-full bg-gray-1 overflow-hidden',
embedState.isEmbedded
? 'border-l'
- : 'rounded-xl shadow-[2px_0px_4px_-2px_rgba(0,0,0,0.05),0px_2px_4px_-2px_rgba(0,0,0,0.05)] border',
+ : 'rounded-xl shadow-panel border',
)}
>
{children}
diff --git a/packages/web/src/app/components/centered-page.tsx b/packages/web/src/app/components/centered-page.tsx
index a8c5d9ffee7..fac7b916b5c 100644
--- a/packages/web/src/app/components/centered-page.tsx
+++ b/packages/web/src/app/components/centered-page.tsx
@@ -32,7 +32,7 @@ export const CenteredPage = ({
<h1 className="text-xl font-medium">{title}</h1>
)}
{description && (
- <div className="text-sm text-muted-foreground">{description}</div>
+ <div className="text-sm text-gray-11">{description}</div>
)}
</div>
{actions && <div className="shrink-0">{actions}</div>}
@@ -62,7 +62,7 @@ export const CenteredPage = ({
<div className={cn('w-full mx-auto', widthClassName)}>{children}</div>
</div>
</ScrollArea>
- <div className="shrink-0 border-t bg-background">
+ <div className="shrink-0 border-t bg-gray-1">
<div className={cn(GUTTER, 'py-3')}>
<div
className={cn(
diff --git a/packages/web/src/app/components/feature-banner.tsx b/packages/web/src/app/components/feature-banner.tsx
index 1d378fd980c..62130907d19 100644
--- a/packages/web/src/app/components/feature-banner.tsx
+++ b/packages/web/src/app/components/feature-banner.tsx
@@ -25,7 +25,7 @@ export function FeatureBanner({
href={docsUrl}
target="_blank"
rel="noopener noreferrer"
- className="inline-flex items-center gap-1 font-medium text-primary hover:underline"
+ className="inline-flex items-center gap-1 font-medium text-accent-11 hover:underline"
>
{t('Read the docs')}
<ExternalLink className="size-3.5" />
@@ -34,7 +34,7 @@ export function FeatureBanner({
<button
type="button"
onClick={() => openManagePlanDialog()}
- className="font-medium text-primary hover:underline"
+ className="font-medium text-accent-11 hover:underline"
>
{t('Upgrade plan')}
</button>
diff --git a/packages/web/src/app/components/feature-sample.tsx b/packages/web/src/app/components/feature-sample.tsx
index 151e07fe9b7..f9613ce989c 100644
--- a/packages/web/src/app/components/feature-sample.tsx
+++ b/packages/web/src/app/components/feature-sample.tsx
@@ -43,14 +43,14 @@ export function FeatureSample({
</div>
<div className="absolute inset-0 grid place-items-center overflow-auto p-6">
- <div className="pointer-events-auto flex w-full max-w-md flex-col items-center gap-5 rounded-2xl border bg-background px-8 py-9 text-center shadow-xl">
- <div className="grid size-12 place-items-center rounded-xl bg-primary/10">
- <Lock className="size-5.5 text-primary" />
+ <div className="pointer-events-auto flex w-full max-w-md flex-col items-center gap-5 rounded-2xl border bg-gray-1 px-8 py-9 text-center shadow-xl">
+ <div className="grid size-12 place-items-center rounded-xl bg-accent-3">
+ <Lock className="size-5.5 text-accent-11" />
</div>
<div className="flex flex-col gap-2">
<h2 className="text-lg font-semibold">{t(title)}</h2>
{description !== undefined && description !== '' && (
- <p className="text-sm leading-relaxed text-muted-foreground">
+ <p className="text-sm leading-relaxed text-gray-11">
{t(description)}
</p>
)}
@@ -64,7 +64,7 @@ export function FeatureSample({
href={documentationUrl ?? ENTERPRISE_DOCUMENTATION_URL}
target="_blank"
rel="noopener noreferrer"
- className="inline-flex items-center gap-1 text-sm font-medium text-primary hover:underline"
+ className="inline-flex items-center gap-1 text-sm font-medium text-accent-11 hover:underline"
>
{t('Read the docs')}
<ExternalLink className="size-3.5" />
@@ -79,8 +79,8 @@ export function FeatureSample({
)}
{tier !== undefined && !isCommunity && (
<>
- <div className="h-px w-full bg-border" />
- <span className="text-xs text-muted-foreground">
+ <div className="h-px w-full bg-gray-6" />
+ <span className="text-xs text-gray-11">
{t('Included with the {tier} plan and above.', {
tier: TIER_LABELS[tier],
})}
diff --git a/packages/web/src/app/components/feature-teaser.tsx b/packages/web/src/app/components/feature-teaser.tsx
index ada0368be07..319e93b5b65 100644
--- a/packages/web/src/app/components/feature-teaser.tsx
+++ b/packages/web/src/app/components/feature-teaser.tsx
@@ -46,14 +46,14 @@ export function FeatureTeaserContent({
return (
<div className="flex max-w-md flex-col gap-2">
<h2 className="text-base font-medium">{t(title)}</h2>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t('This is an Enterprise feature, available on our paid plans.')}
</p>
<a
href={docsUrl}
target="_blank"
rel="noopener noreferrer"
- className="inline-flex w-fit items-center gap-1 text-sm font-medium text-primary hover:underline"
+ className="inline-flex w-fit items-center gap-1 text-sm font-medium text-accent-11 hover:underline"
>
{t('Read the docs')}
<ExternalLink className="size-3.5" />
@@ -77,16 +77,14 @@ export function FeatureTeaserContent({
<Badge variant="outline">{TIER_LABELS[tier]}</Badge>
)}
</div>
- <p className="text-sm leading-relaxed text-muted-foreground">
- {t(description)}
- </p>
+ <p className="text-sm leading-relaxed text-gray-11">{t(description)}</p>
</div>
{bullets !== undefined && bullets.length > 0 && (
<ul className="flex flex-col gap-2">
{bullets.map((bullet) => (
<li key={bullet} className="flex items-start gap-2 text-sm">
- <Check className="mt-0.5 size-4 shrink-0 text-primary" />
+ <Check className="mt-0.5 size-4 shrink-0 text-accent-11" />
<span>{t(bullet)}</span>
</li>
))}
@@ -102,7 +100,7 @@ export function FeatureTeaserContent({
href={documentationUrl}
target="_blank"
rel="noopener noreferrer"
- className="inline-flex items-center gap-1 text-sm font-medium text-primary hover:underline"
+ className="inline-flex items-center gap-1 text-sm font-medium text-accent-11 hover:underline"
>
{t('Read the docs')}
<ExternalLink className="size-3.5" />
diff --git a/packages/web/src/app/components/flow-actions-menu.tsx b/packages/web/src/app/components/flow-actions-menu.tsx
index 10ad387231e..5a9f7705b24 100644
--- a/packages/web/src/app/components/flow-actions-menu.tsx
+++ b/packages/web/src/app/components/flow-actions-menu.tsx
@@ -392,8 +392,8 @@ const FlowActionMenu: React.FC<FlowActionMenuProps> = ({
onClick={(e) => e.stopPropagation()}
>
<div className="flex cursor-pointer flex-row gap-2 items-center">
- <Trash2 className="h-4 w-4 text-destructive" />
- <span className="text-destructive">{t('Delete')}</span>
+ <Trash2 className="h-4 w-4 text-danger-11" />
+ <span className="text-danger-11">{t('Delete')}</span>
</div>
</DropdownMenuItem>
</ConfirmationDeleteDialog>
diff --git a/packages/web/src/app/components/global-error-boundary.tsx b/packages/web/src/app/components/global-error-boundary.tsx
index 5744f4dbec2..2c2c8f281a5 100644
--- a/packages/web/src/app/components/global-error-boundary.tsx
+++ b/packages/web/src/app/components/global-error-boundary.tsx
@@ -41,19 +41,19 @@ const ErrorFallbackContent = ({
const isChunkError = errorReporting.isChunkLoadError(error);
return (
- <div className="min-h-screen w-full bg-background flex items-center justify-center p-6">
+ <div className="min-h-screen w-full bg-gray-1 flex items-center justify-center p-6">
<div className="w-full max-w-md flex flex-col items-center text-center gap-6">
- <div className="flex size-14 items-center justify-center rounded-full bg-muted">
- <AlertTriangle className="size-7 text-muted-foreground" />
+ <div className="flex size-14 items-center justify-center rounded-full bg-gray-3">
+ <AlertTriangle className="size-7 text-gray-11" />
</div>
<div className="flex flex-col gap-2">
- <h1 className="text-xl font-semibold tracking-tight text-foreground">
+ <h1 className="text-xl font-semibold tracking-tight text-gray-12">
{isChunkError
? t('A new version is available')
: t('Something went wrong')}
</h1>
- <p className="text-sm text-muted-foreground leading-relaxed text-balance">
+ <p className="text-sm text-gray-11 leading-relaxed text-balance">
{isChunkError
? t(
'The application was updated. Please reload the page to get the latest version.',
@@ -77,7 +77,7 @@ const ErrorFallbackContent = ({
<div className="w-full flex flex-col items-center gap-3">
<button
type="button"
- className="text-xs text-muted-foreground hover:text-foreground transition-colors"
+ className="text-xs text-gray-11 hover:text-gray-12 transition-colors"
onClick={() => setShowDetails((prev) => !prev)}
>
{showDetails
@@ -90,9 +90,9 @@ const ErrorFallbackContent = ({
textToCopy={buildDiagnosticsText(error, componentStack)}
variant="ghost"
withoutTooltip
- className="absolute right-2 top-2 size-7 text-muted-foreground"
+ className="absolute right-2 top-2 size-7 text-gray-11"
/>
- <pre className="max-h-56 overflow-auto rounded-lg border bg-muted/40 p-4 pr-12 font-mono text-xs leading-relaxed text-muted-foreground whitespace-pre-wrap break-words">
+ <pre className="max-h-56 overflow-auto rounded-lg border bg-gray-3/40 p-4 pr-12 font-mono text-xs leading-relaxed text-gray-11 whitespace-pre-wrap break-words">
{buildDiagnosticsText(error, componentStack)}
</pre>
</div>
diff --git a/packages/web/src/app/components/global-search/global-search-command.tsx b/packages/web/src/app/components/global-search/global-search-command.tsx
index ab6bb73c4d3..f50d6371a3a 100644
--- a/packages/web/src/app/components/global-search/global-search-command.tsx
+++ b/packages/web/src/app/components/global-search/global-search-command.tsx
@@ -23,15 +23,15 @@ export function GlobalSearchCommand() {
onClick={() => setOpen(true)}
className={cn(
'h-8 w-full justify-start gap-2 overflow-hidden rounded-md p-2! text-sm font-normal mr-auto',
- 'border border-sidebar-border bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',
+ 'border border-gray-6 bg-gray-1 hover:bg-gray-4 hover:text-gray-12',
'group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:border-0 group-data-[collapsible=icon]:bg-transparent group-data-[collapsible=icon]:p-2!',
)}
>
<Search className="size-4 shrink-0 mr-auto" />
- <span className="flex-1 text-left text-muted-foreground group-data-[collapsible=icon]:hidden">
+ <span className="flex-1 text-left text-gray-11 group-data-[collapsible=icon]:hidden">
{t('Search...')}
</span>
- <kbd className="pointer-events-none hidden h-5 select-none items-center gap-1 rounded border bg-muted py-0.5 px-1 font-mono text-[9px] font-medium sm:flex group-data-[collapsible=icon]:hidden!">
+ <kbd className="pointer-events-none hidden h-5 select-none items-center gap-1 rounded border bg-gray-3 py-0.5 px-1 font-mono text-[9px] font-medium sm:flex group-data-[collapsible=icon]:hidden!">
{isMac ? '⌘' : 'Ctrl'}&nbsp;K
</kbd>
</Button>
diff --git a/packages/web/src/app/components/global-search/global-search-context.tsx b/packages/web/src/app/components/global-search/global-search-context.tsx
index a792ffb69d9..9e083bc8518 100644
--- a/packages/web/src/app/components/global-search/global-search-context.tsx
+++ b/packages/web/src/app/components/global-search/global-search-context.tsx
@@ -48,9 +48,9 @@ function SkeletonRows() {
<>
{[1, 2, 3].map((i) => (
<div key={i} className="flex items-center gap-2 px-2 py-2">
- <div className="size-4 shrink-0 animate-pulse rounded bg-muted" />
- <div className="h-3.5 flex-1 animate-pulse rounded bg-muted" />
- <div className="h-3.5 w-24 animate-pulse rounded bg-muted" />
+ <div className="size-4 shrink-0 animate-pulse rounded bg-gray-3" />
+ <div className="h-3.5 flex-1 animate-pulse rounded bg-gray-3" />
+ <div className="h-3.5 w-24 animate-pulse rounded bg-gray-3" />
</div>
))}
</>
@@ -142,7 +142,7 @@ function GlobalSearchDialogContent({
{search && (
<button
type="button"
- className="absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors"
+ className="absolute right-3 top-1/2 -translate-y-1/2 text-gray-11 hover:text-gray-12 transition-colors"
onClick={() => setSearch('')}
>
<X className="size-3.5" />
@@ -150,15 +150,13 @@ function GlobalSearchDialogContent({
)}
</div>
- <CommandList className="flex-1 min-h-0 max-h-none overflow-y-auto! scrollbar-hover">
+ <CommandList className="flex-1 min-h-0 max-h-none overflow-y-auto!">
{noResults && (
<div className="flex flex-col items-center justify-center gap-3 py-16 text-center">
- <p className="text-sm text-muted-foreground">
- {t('No results found.')}
- </p>
+ <p className="text-sm text-gray-11">{t('No results found.')}</p>
<button
type="button"
- className="text-xs text-primary underline hover:no-underline"
+ className="text-xs text-accent-11 underline hover:no-underline"
onClick={() => setSearch('')}
>
{t('Clear search')}
@@ -178,13 +176,13 @@ function GlobalSearchDialogContent({
key={item.id}
value={item.id}
onSelect={() => handleSelectResult(item)}
- className="group flex items-center data-[selected=true]:bg-foreground/10"
+ className="group flex items-center data-[selected=true]:bg-gray-4"
>
<SearchResultRow
item={item}
query={hasQuery ? debouncedSearch : undefined}
/>
- <CornerDownLeft className="ml-auto size-2 shrink-0 text-muted-foreground/70 opacity-0 transition-opacity group-data-[selected=true]:opacity-100" />
+ <CornerDownLeft className="ml-auto size-2 shrink-0 text-gray-11 opacity-0 transition-opacity group-data-[selected=true]:opacity-100" />
</CommandItem>
))
)}
@@ -193,24 +191,24 @@ function GlobalSearchDialogContent({
))}
</CommandList>
- <div className="flex items-center gap-4 border-t bg-muted/50 px-4 py-2.5 text-[11px] text-muted-foreground">
+ <div className="flex items-center gap-4 border-t bg-gray-3/50 px-4 py-2.5 text-[11px] text-gray-11">
<span className="flex items-center gap-1.5">
- <kbd className="inline-flex h-5 items-center rounded border bg-background px-1 font-mono">
+ <kbd className="inline-flex h-5 items-center rounded border bg-gray-1 px-1 font-mono">
↑
</kbd>
- <kbd className="inline-flex h-5 items-center rounded border bg-background px-1 font-mono">
+ <kbd className="inline-flex h-5 items-center rounded border bg-gray-1 px-1 font-mono">
↓
</kbd>
{t('to navigate')}
</span>
<span className="flex items-center gap-1.5">
- <kbd className="inline-flex h-5 items-center rounded border bg-background px-1 font-mono">
+ <kbd className="inline-flex h-5 items-center rounded border bg-gray-1 px-1 font-mono">
↵
</kbd>
{t('to select')}
</span>
<span className="flex items-center gap-1.5">
- <kbd className="inline-flex h-5 items-center rounded border bg-background px-1.5 font-mono text-[10px]">
+ <kbd className="inline-flex h-5 items-center rounded border bg-gray-1 px-1.5 font-mono text-[10px]">
esc
</kbd>
{t('to close')}
diff --git a/packages/web/src/app/components/global-search/search-result-item.tsx b/packages/web/src/app/components/global-search/search-result-item.tsx
index 525e6072b37..0286f3693a3 100644
--- a/packages/web/src/app/components/global-search/search-result-item.tsx
+++ b/packages/web/src/app/components/global-search/search-result-item.tsx
@@ -43,12 +43,12 @@ function ItemIcon({
</span>
);
}
- return <User className="size-4 shrink-0 text-muted-foreground" />;
+ return <User className="size-4 shrink-0 text-gray-11" />;
}
if (type === 'flow') {
return (
- <span className="[&_svg]:text-violet-500! shrink-0">
+ <span className="[&_svg]:text-accent-11! shrink-0">
<WorkflowIcon className="size-4" />
</span>
);
@@ -56,7 +56,7 @@ function ItemIcon({
if (type === 'table') {
return (
- <span className="[&_svg]:text-emerald-500! shrink-0">
+ <span className="[&_svg]:text-success-11! shrink-0">
<TableIcon className="size-4" />
</span>
);
@@ -65,7 +65,7 @@ function ItemIcon({
if (type === 'folder') {
return (
<FolderIcon
- className="size-4 shrink-0 text-muted-foreground"
+ className="size-4 shrink-0 text-gray-11"
fill="currentColor"
strokeWidth={0}
/>
@@ -73,7 +73,7 @@ function ItemIcon({
}
if (type === 'page' && PageIcon) {
- return <PageIcon className="size-4 shrink-0 text-muted-foreground" />;
+ return <PageIcon className="size-4 shrink-0 text-gray-11" />;
}
return null;
@@ -95,14 +95,14 @@ function ItemMeta({
if (!hasProject && !hasFolder && !hasUpdated) return null;
return (
- <span className="flex shrink-0 items-center gap-1 text-xs text-muted-foreground/80">
+ <span className="flex shrink-0 items-center gap-1 text-xs text-gray-11">
<span>—</span>
{hasProject && <span>{projectName}</span>}
{hasProject && hasFolder && <span>/</span>}
{hasFolder && (
<span className="flex items-center gap-0.5">
<FolderIcon
- className="size-4! mr-0.5 text-muted-foreground/80 shrink-0"
+ className="size-4! mr-0.5 text-gray-11 shrink-0"
fill="currentColor"
strokeWidth={0}
/>
@@ -110,7 +110,7 @@ function ItemMeta({
</span>
)}
{(hasProject || hasFolder) && hasUpdated && (
- <Dot className="size-3! shrink-0 text-muted-foreground/80" />
+ <Dot className="size-3! shrink-0 text-gray-11" />
)}
{hasUpdated && (
<span className="whitespace-nowrap">{`Last Modified: ${timeAgo(
@@ -172,7 +172,7 @@ export function SearchResultRow({
<HighlightText text={item.label} query={query ?? ''} />
</span>
{item.status === 'ENABLED' && (
- <span className="shrink-0 rounded-full bg-green-500/10 px-1.5 py-0.5 text-[10px] font-medium text-green-600">
+ <span className="shrink-0 rounded-full bg-success-3 px-1.5 py-0.5 text-[10px] font-medium text-success-11">
{t('Live')}
</span>
)}
diff --git a/packages/web/src/app/components/help-and-feedback.tsx b/packages/web/src/app/components/help-and-feedback.tsx
index c8734638332..072f0d7fb97 100644
--- a/packages/web/src/app/components/help-and-feedback.tsx
+++ b/packages/web/src/app/components/help-and-feedback.tsx
@@ -53,7 +53,7 @@ export const HelpAndFeedback = () => {
{showCommunity && (
<>
- <div className="flex text-xs text-muted-foreground items-center gap-2 px-2 py-1">
+ <div className="flex text-xs text-gray-11 items-center gap-2 px-2 py-1">
<span>Need Help?</span>
</div>
<DropdownMenuItem asChild>
diff --git a/packages/web/src/app/components/no-projects-state.tsx b/packages/web/src/app/components/no-projects-state.tsx
index d9f31621752..2ce0ca67d19 100644
--- a/packages/web/src/app/components/no-projects-state.tsx
+++ b/packages/web/src/app/components/no-projects-state.tsx
@@ -9,17 +9,17 @@ export const NoProjectsState = () => {
<Badge
variant="secondary"
- className="bg-primary/10 text-primary hover:bg-primary/10 gap-1.5 font-medium"
+ className="bg-accent-3 text-accent-11 hover:bg-accent-3 gap-1.5 font-medium"
>
- <span className="size-1.5 rounded-full bg-primary" />
+ <span className="size-1.5 rounded-full bg-accent-11" />
{t('Waiting for access')}
</Badge>
<div className="flex flex-col gap-2">
- <h1 className="text-2xl font-semibold text-foreground">
+ <h1 className="text-2xl font-semibold text-gray-12">
{t("You're all signed in, but you've got no projects yet.")}
</h1>
- <p className="text-base text-muted-foreground">
+ <p className="text-base text-gray-11">
{t(
"You haven't been added to a project. Ask your workspace admin to invite you and you'll be up and running in no time.",
)}
@@ -46,7 +46,7 @@ const MascotIllustration = () => {
height="24"
rx="6"
transform="rotate(-12 42 46)"
- className="fill-emerald-200 stroke-emerald-400"
+ className="fill-success-3 stroke-success-11"
strokeWidth="1.5"
/>
<rect
@@ -56,28 +56,34 @@ const MascotIllustration = () => {
height="22"
rx="6"
transform="rotate(15 151 41)"
- className="fill-amber-200 stroke-amber-400"
+ className="fill-warning-3 stroke-warning-11"
strokeWidth="1.5"
/>
- <ellipse cx="96" cy="140" rx="46" ry="4" className="fill-muted" />
+ <ellipse cx="96" cy="140" rx="46" ry="4" className="fill-gray-3" />
<path
d="M62 56 Q62 46 72 46 L120 46 Q130 46 130 56 L136 96 Q136 130 116 130 L76 130 Q56 130 56 96 Z"
- className="fill-primary/10 stroke-primary"
+ className="fill-accent-11/10 stroke-accent-11"
strokeWidth="2"
strokeLinejoin="round"
/>
- <ellipse cx="82" cy="86" rx="3" ry="4" className="fill-primary" />
- <ellipse cx="110" cy="86" rx="3" ry="4" className="fill-primary" />
+ <ellipse cx="82" cy="86" rx="3" ry="4" className="fill-accent-11" />
+ <ellipse cx="110" cy="86" rx="3" ry="4" className="fill-accent-11" />
- <ellipse cx="74" cy="100" rx="5" ry="3" className="fill-primary/25" />
- <ellipse cx="118" cy="100" rx="5" ry="3" className="fill-primary/25" />
+ <ellipse cx="74" cy="100" rx="5" ry="3" className="fill-accent-11/25" />
+ <ellipse
+ cx="118"
+ cy="100"
+ rx="5"
+ ry="3"
+ className="fill-accent-11/25"
+ />
<path
d="M84 102 Q96 112 108 102"
- className="stroke-primary"
+ className="stroke-accent-11"
strokeWidth="2"
strokeLinecap="round"
fill="none"
diff --git a/packages/web/src/app/components/platform-layout.tsx b/packages/web/src/app/components/platform-layout.tsx
index ebcbb5d9209..bdb1e942147 100644
--- a/packages/web/src/app/components/platform-layout.tsx
+++ b/packages/web/src/app/components/platform-layout.tsx
@@ -21,11 +21,11 @@ export function PlatformLayout({ children }: { children: React.ReactNode }) {
{showPlatformAdminDashboard ? (
<SidebarProvider open={true} style={PLATFORM_SIDEBAR_STYLE}>
<PlatformSidebar />
- <SidebarInset className="flex flex-col h-full overflow-hidden bg-sidebar">
+ <SidebarInset className="flex flex-col h-full overflow-hidden bg-gray-2">
<div className="flex-1 flex flex-col pr-2 pt-3 pb-3 overflow-hidden">
<div
id="dashboard-content-container"
- className="relative flex flex-col h-full bg-background rounded-xl shadow-[2px_0px_4px_-2px_rgba(0,0,0,0.05),0px_2px_4px_-2px_rgba(0,0,0,0.05)] border overflow-clip"
+ className="relative flex flex-col h-full bg-gray-1 rounded-xl shadow-panel border overflow-clip"
>
<div className="flex flex-col flex-1 overflow-auto">
{children}
diff --git a/packages/web/src/app/components/primary-rail/index.tsx b/packages/web/src/app/components/primary-rail/index.tsx
index 24d69aeca87..024d695fb49 100644
--- a/packages/web/src/app/components/primary-rail/index.tsx
+++ b/packages/web/src/app/components/primary-rail/index.tsx
@@ -106,7 +106,7 @@ export function PrimaryRail() {
onClick={collapsed ? openSidebar : undefined}
title={collapsed ? t('Open sidebar') : undefined}
className={cn(
- 'flex h-svh shrink-0 flex-col overflow-hidden whitespace-nowrap bg-sidebar py-3 transition-[width] duration-200 ease-out motion-reduce:transition-none',
+ 'flex h-svh shrink-0 flex-col overflow-hidden whitespace-nowrap bg-gray-2 py-3 transition-[width] duration-200 motion-reduce:transition-none',
collapsed ? 'w-14 cursor-ew-resize items-center' : 'w-62',
)}
>
@@ -213,7 +213,7 @@ function RailHeader({
type="button"
onClick={onToggle}
aria-label={t('Open sidebar')}
- className="flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-md hover:bg-sidebar-accent"
+ className="flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-md hover:bg-gray-4"
>
<img
src={branding.logos.logoIconUrl}
@@ -235,7 +235,7 @@ function RailHeader({
setSearchOpen(true);
}}
aria-label={t('Search')}
- className="flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground"
+ className="flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-gray-11 hover:bg-gray-4 hover:text-gray-12"
>
<Search className="size-4" />
</button>
@@ -252,7 +252,7 @@ function RailHeader({
<TooltipTrigger asChild>
<Link
to="/"
- className="flex size-9 shrink-0 items-center justify-center rounded-md hover:bg-sidebar-accent"
+ className="flex size-9 shrink-0 items-center justify-center rounded-md hover:bg-gray-4"
>
<img
src={branding.logos.logoIconUrl}
@@ -270,7 +270,7 @@ function RailHeader({
<PlatformSwitcher>
<button
type="button"
- className="flex h-9 w-full items-center gap-2 rounded-md px-2 text-left hover:bg-sidebar-accent"
+ className="flex h-9 w-full items-center gap-2 rounded-md px-2 text-left hover:bg-gray-4"
>
<span className="flex-1 truncate text-sm font-medium">
{currentPlatform?.name ?? t('platform')}
@@ -291,7 +291,7 @@ function RailHeader({
<Button
variant="ghost"
size="icon"
- className="size-8 shrink-0 rounded-full text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground"
+ className="size-8 shrink-0 rounded-full text-gray-11 hover:bg-gray-4 hover:text-gray-12"
onClick={() => setSearchOpen(true)}
aria-label={t('Search')}
>
@@ -306,7 +306,7 @@ function RailHeader({
<Button
variant="ghost"
size="icon"
- className="size-8 shrink-0 rounded-full text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground"
+ className="size-8 shrink-0 rounded-full text-gray-11 hover:bg-gray-4 hover:text-gray-12"
onClick={onToggle}
aria-label={t('Close sidebar')}
>
@@ -332,7 +332,7 @@ function RailPlatformAdminButton({ collapsed }: { collapsed: boolean }) {
<div className={cn('flex flex-col px-2 pb-1', collapsed && 'items-center')}>
<div
className={cn(
- 'mb-1 h-px shrink-0 bg-sidebar-border',
+ 'mb-1 h-px shrink-0 bg-gray-6',
collapsed ? 'w-6' : 'mx-3',
)}
/>
@@ -374,12 +374,14 @@ function RailNavButton({
onClick?.();
}}
className={cn(
- 'flex shrink-0 items-center gap-3 rounded-full text-sm text-sidebar-foreground/80 hover:bg-sidebar-accent hover:text-sidebar-foreground',
+ 'flex shrink-0 items-center gap-3 rounded-full text-sm text-gray-12 hover:bg-gray-4 hover:text-gray-12',
collapsed ? 'size-9 cursor-pointer justify-center' : 'h-10 px-3',
- active && 'bg-sidebar-accent font-medium text-sidebar-foreground',
+ active && 'bg-gray-4 font-medium text-gray-12',
)}
>
- <Icon className={cn('size-[18px] shrink-0', active && 'text-primary')} />
+ <Icon
+ className={cn('size-[18px] shrink-0', active && 'text-accent-11')}
+ />
{!collapsed && <span className="truncate">{label}</span>}
</Link>
);
@@ -451,13 +453,13 @@ function RailPinnedProjects({ collapsed }: { collapsed: boolean }) {
>
<div
className={cn(
- 'mb-1 h-px shrink-0 bg-sidebar-border',
+ 'mb-1 h-px shrink-0 bg-gray-6',
collapsed ? 'w-6' : 'mx-3',
)}
/>
{!collapsed && (
<div className="flex shrink-0 items-center gap-1 py-0.5 pl-3 pr-1">
- <span className="text-[11px] font-medium uppercase tracking-wide text-sidebar-foreground/50">
+ <span className="text-[11px] font-medium uppercase tracking-wide text-gray-11">
{t('Projects')}
</span>
<div className="ml-auto flex items-center gap-0.5">
@@ -524,7 +526,7 @@ function ProjectRow({
{isTeam ? (
name.charAt(0).toUpperCase()
) : (
- <Lock className="size-3 text-sidebar-foreground/70" />
+ <Lock className="size-3 text-gray-11" />
)}
</span>
);
@@ -540,9 +542,9 @@ function ProjectRow({
}}
aria-label={name}
className={cn(
- 'flex shrink-0 items-center gap-3 rounded-full text-sm text-sidebar-foreground/80 hover:bg-sidebar-accent hover:text-sidebar-foreground',
+ 'flex shrink-0 items-center gap-3 rounded-full text-sm text-gray-12 hover:bg-gray-4 hover:text-gray-12',
collapsed ? 'size-9 cursor-pointer justify-center' : 'h-9 w-full px-3',
- active && 'bg-sidebar-accent font-medium text-sidebar-foreground',
+ active && 'bg-gray-4 font-medium text-gray-12',
)}
>
{badge}
@@ -577,7 +579,7 @@ function PinnedSortMenu({
aria-label={t('Sort pinned projects')}
className={cn(
RAIL_HEADER_ICON_BUTTON,
- 'flex items-center justify-center data-[state=open]:bg-sidebar-accent',
+ 'flex items-center justify-center data-[state=open]:bg-gray-4',
)}
>
<SlidersHorizontal className="size-3.5" />
@@ -615,7 +617,7 @@ function PinnedMenuOption({
return (
<DropdownMenuItem onClick={onClick} className="justify-between">
{label}
- {active && <span className="text-primary">✓</span>}
+ {active && <span className="text-accent-11">✓</span>}
</DropdownMenuItem>
);
}
@@ -698,7 +700,7 @@ function RailAccountRow({ collapsed }: { collapsed: boolean }) {
aria-label={t('Account')}
onClick={(e) => e.stopPropagation()}
className={cn(
- 'flex items-center gap-2 rounded-full hover:bg-sidebar-accent',
+ 'flex items-center gap-2 rounded-full hover:bg-gray-4',
collapsed
? 'size-9 cursor-pointer justify-center'
: 'h-10 min-w-0 flex-1 px-2',
@@ -775,7 +777,7 @@ function RailAccountRow({ collapsed }: { collapsed: boolean }) {
<Button
variant="ghost"
size="icon"
- className="size-8 shrink-0 cursor-pointer rounded-full text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground"
+ className="size-8 shrink-0 cursor-pointer rounded-full text-gray-11 hover:bg-gray-4 hover:text-gray-12"
onClick={(e) => {
e.stopPropagation();
setAccountSettingsOpen(true);
@@ -797,7 +799,7 @@ function RailAccountRow({ collapsed }: { collapsed: boolean }) {
}
const RAIL_HEADER_ICON_BUTTON =
- 'size-6 rounded-md text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground [&_svg]:size-3.5!';
+ 'size-6 rounded-md text-gray-11 hover:bg-gray-4 hover:text-gray-12 [&_svg]:size-3.5!';
const PINNED_SORT_KEY = 'rail-pinned-sort';
diff --git a/packages/web/src/app/components/project-avatar.tsx b/packages/web/src/app/components/project-avatar.tsx
index 90938a77cdb..fc20bed6a82 100644
--- a/packages/web/src/app/components/project-avatar.tsx
+++ b/packages/web/src/app/components/project-avatar.tsx
@@ -54,7 +54,7 @@ export const ProjectAvatar = ({
showBackground ? 'rounded-tr-md' : ''
} ${showDetails ? 'py-6' : ''}`}
style={{
- backgroundColor: showBackground ? '#f3f4f6' : 'transparent',
+ backgroundColor: showBackground ? 'var(--gray-3)' : 'transparent',
}}
>
<Avatar
@@ -64,8 +64,8 @@ export const ProjectAvatar = ({
showDetails ? 'mb-3' : ''
}`}
style={{
- backgroundColor: '#9ca3af',
- color: '#ffffff',
+ backgroundColor: 'var(--gray-9)',
+ color: 'var(--gray-1)',
}}
>
<span className={currentSize.text}>
@@ -74,11 +74,11 @@ export const ProjectAvatar = ({
</Avatar>
{showDetails && (
<div className="px-4 text-center">
- <div className="font-semibold text-sm text-black">
+ <div className="font-semibold text-sm text-gray-12">
{displayName}
</div>
{createdDate && (
- <div className="text-xs text-muted-foreground mt-1">
+ <div className="text-xs text-gray-11 mt-1">
Created on{' '}
{new Intl.DateTimeFormat('en-US', {
month: 'numeric',
@@ -102,7 +102,7 @@ export const ProjectAvatar = ({
} ${showDetails ? 'py-6' : ''}`}
style={{
backgroundColor: showBackground
- ? PROJECT_COLOR_PALETTE[iconColor].color + '26'
+ ? `color-mix(in oklab, ${PROJECT_COLOR_PALETTE[iconColor].color}, transparent 85%)`
: 'transparent',
}}
>
@@ -123,9 +123,11 @@ export const ProjectAvatar = ({
</Avatar>
{showDetails && (
<div className="px-4 text-center">
- <div className="font-semibold text-sm text-black">{displayName}</div>
+ <div className="font-semibold text-sm text-gray-12">
+ {displayName}
+ </div>
{createdDate && (
- <div className="text-xs text-muted-foreground mt-1">
+ <div className="text-xs text-gray-11 mt-1">
Created on{' '}
{new Intl.DateTimeFormat('en-US', {
month: 'numeric',
diff --git a/packages/web/src/app/components/project-layout/index.tsx b/packages/web/src/app/components/project-layout/index.tsx
index be3b9d9747e..91778ff88b2 100644
--- a/packages/web/src/app/components/project-layout/index.tsx
+++ b/packages/web/src/app/components/project-layout/index.tsx
@@ -146,7 +146,7 @@ function ProjectDashboardLayoutInner({
hoverMode={!searchOpen}
className="flex-1 min-w-0 w-auto will-change-transform"
>
- <SidebarInset className="flex flex-col h-full overflow-hidden bg-sidebar">
+ <SidebarInset className="flex flex-col h-full overflow-hidden bg-gray-2">
<div
className={cn(
'flex-1 flex flex-col overflow-hidden',
@@ -156,9 +156,8 @@ function ProjectDashboardLayoutInner({
<div
id="dashboard-content-container"
className={cn(
- 'relative flex flex-col h-full bg-background overflow-clip',
- !isEmbedded &&
- 'rounded-xl shadow-[2px_0px_4px_-2px_rgba(0,0,0,0.05),0px_2px_4px_-2px_rgba(0,0,0,0.05)] border',
+ 'relative flex flex-col h-full bg-gray-1 overflow-clip',
+ !isEmbedded && 'rounded-xl shadow-panel border',
)}
>
{!hideHeader && (
diff --git a/packages/web/src/app/components/project-layout/project-dashboard-layout-header.tsx b/packages/web/src/app/components/project-layout/project-dashboard-layout-header.tsx
index 6e4104844eb..91e56af30b7 100644
--- a/packages/web/src/app/components/project-layout/project-dashboard-layout-header.tsx
+++ b/packages/web/src/app/components/project-layout/project-dashboard-layout-header.tsx
@@ -57,12 +57,12 @@ const AnimatedTab = ({
<IconComponent ref={iconRef} size={16} className="mr-2" />
{tab.label}
{tab.beta && (
- <span className="ml-1.5 rounded-full bg-primary/10 px-1.5 py-0.5 text-[10px] font-medium leading-none text-primary">
+ <span className="ml-1.5 rounded-full bg-accent-3 px-1.5 py-0.5 text-[10px] font-medium leading-none text-accent-11">
Beta
</span>
)}
{!isNil(tab.badgeCount) && tab.badgeCount > 0 && (
- <span className="ml-1.5 rounded-full bg-primary px-1.5 py-0.5 text-[10px] font-medium leading-none text-primary-foreground">
+ <span className="ml-1.5 rounded-full bg-accent-9 px-1.5 py-0.5 text-[10px] font-medium leading-none text-on-accent">
{tab.badgeCount > 10 ? '10+' : tab.badgeCount}
</span>
)}
diff --git a/packages/web/src/app/components/project-settings/alerts/personal-project-alerts.tsx b/packages/web/src/app/components/project-settings/alerts/personal-project-alerts.tsx
index 87e96910721..7d1e6116af8 100644
--- a/packages/web/src/app/components/project-settings/alerts/personal-project-alerts.tsx
+++ b/packages/web/src/app/components/project-settings/alerts/personal-project-alerts.tsx
@@ -55,7 +55,7 @@ export const PersonalProjectAlerts = () => {
<Label htmlFor="personal-alerts-switch" className="text-sm">
{t('Email me when my flows fail')}
</Label>
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{t(
'Turn off to stop receiving emails when flows in this project fail.',
)}
diff --git a/packages/web/src/app/components/project-settings/alerts/team-project-alerts.tsx b/packages/web/src/app/components/project-settings/alerts/team-project-alerts.tsx
index 03f54147f46..d606b9a81e7 100644
--- a/packages/web/src/app/components/project-settings/alerts/team-project-alerts.tsx
+++ b/packages/web/src/app/components/project-settings/alerts/team-project-alerts.tsx
@@ -43,7 +43,7 @@ export const TeamProjectAlerts = () => {
return (
<>
<Alert variant="default">
- <Bell className="inline w-4 h-4 text-amber-900" />
+ <Bell className="inline w-4 h-4 text-warning-11" />
<div className="flex flex-col gap-1">
<AlertTitle>{t('Frequency')}</AlertTitle>
<AlertDescription className="text-sm">
@@ -95,12 +95,12 @@ export const TeamProjectAlerts = () => {
</div>
)}
{alertsError && (
- <div className="text-center text-destructive py-8 text-sm">
+ <div className="text-center text-danger-11 py-8 text-sm">
{t('Error, please try again.')}
</div>
)}
{alertsData && alertsData.length === 0 && (
- <div className="text-center text-muted-foreground py-8 text-sm">
+ <div className="text-center text-gray-11 py-8 text-sm">
{t('No emails added yet.')}
</div>
)}
@@ -120,11 +120,11 @@ export const TeamProjectAlerts = () => {
<Button
variant="ghost"
size="sm"
- className="size-8 p-0 hover:bg-destructive-50"
+ className="size-8 p-0 hover:bg-danger-3"
onClick={() => deleteAlert(alert)}
disabled={writeAlertPermission === false}
>
- <Trash className="size-4 text-destructive" />
+ <Trash className="size-4 text-danger-11" />
</Button>
</TooltipTrigger>
{writeAlertPermission === false && (
diff --git a/packages/web/src/app/components/project-settings/environment/index.tsx b/packages/web/src/app/components/project-settings/environment/index.tsx
index 73c09b5b1c5..0aaf3d0bf04 100644
--- a/packages/web/src/app/components/project-settings/environment/index.tsx
+++ b/packages/web/src/app/components/project-settings/environment/index.tsx
@@ -67,7 +67,7 @@ const EnvironmentSettings = () => {
<Button
size={'sm'}
onClick={() => gitSync && mutate(gitSync.id)}
- className="w-32 text-destructive"
+ className="w-32 text-danger-11"
variant={'basic'}
>
{t('Disconnect')}
diff --git a/packages/web/src/app/components/project-settings/environment/release-card.tsx b/packages/web/src/app/components/project-settings/environment/release-card.tsx
index 50a0514f0ac..9f6e74bf178 100644
--- a/packages/web/src/app/components/project-settings/environment/release-card.tsx
+++ b/packages/web/src/app/components/project-settings/environment/release-card.tsx
@@ -17,7 +17,7 @@ const ReleaseCard = () => {
</div>
<div className="flex grow flex-col">
<div className="text-lg">{t('Releases')}</div>
- <div className="text-sm text-muted-foreground">
+ <div className="text-sm text-gray-11">
{t('Enable releases to easily create and manage project releases.')}
</div>
</div>
@@ -30,7 +30,7 @@ const ReleaseCard = () => {
})
}
className={cn('', {
- 'text-destructive': project.releasesEnabled,
+ 'text-danger-11': project.releasesEnabled,
})}
>
{project.releasesEnabled ? t('Disable') : t('Enable')}
diff --git a/packages/web/src/app/components/project-settings/general/index.tsx b/packages/web/src/app/components/project-settings/general/index.tsx
index 246ba26486a..63893007ddc 100644
--- a/packages/web/src/app/components/project-settings/general/index.tsx
+++ b/packages/web/src/app/components/project-settings/general/index.tsx
@@ -1,8 +1,10 @@
import {
ApFlagId,
ColorName,
+ PICKABLE_COLOR_NAMES,
PlatformRole,
PROJECT_COLOR_PALETTE,
+ PROJECT_COLOR_SWATCH,
ProjectIcon,
ProjectType,
} from '@activepieces/shared';
@@ -61,7 +63,7 @@ export const GeneralSettings = ({ form }: GeneralSettingsProps) => {
const showGeneralSettings = project.type === ProjectType.TEAM;
const showExternalIdSettings =
platform.plan.embeddingEnabled && platformRole === PlatformRole.ADMIN;
- const colorOptions = Object.values(ColorName);
+ const colorOptions = PICKABLE_COLOR_NAMES;
return (
<Form {...form}>
@@ -109,8 +111,9 @@ export const GeneralSettings = ({ form }: GeneralSettingsProps) => {
size="icon"
className={cn(
'h-8 w-8 rounded-sm transition-all hover:scale-110 p-0',
- currentColor === colorName &&
- 'ring-2 ring-offset-2 ring-foreground',
+ PROJECT_COLOR_SWATCH[currentColor] ===
+ PROJECT_COLOR_SWATCH[colorName] &&
+ 'ring-2 ring-offset-2 ring-offset-panel ring-gray-12',
)}
style={{
backgroundColor:
@@ -165,7 +168,7 @@ export const GeneralSettings = ({ form }: GeneralSettingsProps) => {
className="h-10 font-mono"
disabled={form.formState.disabled}
/>
- <FormDescription className="text-xs text-muted-foreground">
+ <FormDescription className="text-xs text-gray-11">
{t('Used to identify the project based on your SaaS ID')}
</FormDescription>
<FormMessage />
@@ -182,7 +185,7 @@ export const GeneralSettings = ({ form }: GeneralSettingsProps) => {
<Label htmlFor="sensitive" className="text-sm font-medium">
{t('Sensitive Project')}
</Label>
- <FormDescription className="text-xs text-muted-foreground">
+ <FormDescription className="text-xs text-gray-11">
{t(
'When enabled, publishing flows in this project requires approval.',
)}
@@ -232,7 +235,7 @@ export const GeneralSettings = ({ form }: GeneralSettingsProps) => {
onClear={() => field.onChange(null)}
disabled={form.formState.disabled || !isRateLimiterEnabled}
/>
- <FormDescription className="text-xs text-muted-foreground">
+ <FormDescription className="text-xs text-gray-11">
{isRateLimiterEnabled === false
? t(
'The rate limiting feature is disabled. Enable the PROJECT_RATE_LIMITER_ENABLED environment variable to use this feature.',
@@ -273,7 +276,7 @@ export const GeneralSettings = ({ form }: GeneralSettingsProps) => {
onClear={() => field.onChange(null)}
disabled={form.formState.disabled}
/>
- <FormDescription className="text-xs text-muted-foreground">
+ <FormDescription className="text-xs text-gray-11">
{t(
'Maximum number of enabled flows in this project. Leave empty for no limit.',
)}
diff --git a/packages/web/src/app/components/project-settings/index.tsx b/packages/web/src/app/components/project-settings/index.tsx
index 08c4d7d9cc1..14aff949516 100644
--- a/packages/web/src/app/components/project-settings/index.tsx
+++ b/packages/web/src/app/components/project-settings/index.tsx
@@ -174,7 +174,7 @@ export function ProjectSettingsDialog({
{tabs.find((tab) => tab.id === activeTab)?.label}
</span>
{hasUnsavedChanges && (
- <Badge variant="ghost" className="text-muted-foreground">
+ <Badge variant="ghost" className="text-gray-11">
{t('Unsaved changes')}
</Badge>
)}
@@ -185,7 +185,7 @@ export function ProjectSettingsDialog({
if (activeTab !== 'general') return null;
return (
- <div className="border-t bg-background rounded-br-md">
+ <div className="border-t bg-gray-1 rounded-br-md">
<div className="flex items-center justify-end gap-3 px-6 py-4">
<Button variant="outline" size="sm" onClick={onClose}>
{t('Close')}
@@ -209,7 +209,7 @@ export function ProjectSettingsDialog({
<DialogContent className="max-w-5xl w-full max-h-[95vh] rounded-sm flex flex-col p-0">
<div className="flex h-[700px]">
<div className="w-[238px]">
- <nav className="bg-sidebar space-y-1 bg-muted rounded-sm rounded-r-none h-full flex flex-col rounded-l-md">
+ <nav className="space-y-1 bg-gray-3 rounded-sm rounded-r-none h-full flex flex-col rounded-l-md">
<ApProjectDisplay
title={form.watch('projectName') ?? project.displayName}
icon={form.watch('icon') ?? project.icon}
@@ -223,9 +223,9 @@ export function ProjectSettingsDialog({
<div
key={tab.id}
className={cn(
- 'flex items-center gap-2 rounded-sm px-2 py-1.5 text-sm font-medium transition-all cursor-pointer hover:bg-sidebar-accent',
+ 'flex items-center gap-2 rounded-sm px-2 py-1.5 text-sm font-medium transition-all cursor-pointer hover:bg-gray-4',
{
- 'bg-sidebar-accent': activeTab === tab.id,
+ 'bg-gray-4': activeTab === tab.id,
},
)}
onClick={() => setActiveTab(tab.id)}
diff --git a/packages/web/src/app/components/project-settings/mcp-server/index.tsx b/packages/web/src/app/components/project-settings/mcp-server/index.tsx
index eec3054a3bb..185411d2429 100644
--- a/packages/web/src/app/components/project-settings/mcp-server/index.tsx
+++ b/packages/web/src/app/components/project-settings/mcp-server/index.tsx
@@ -47,7 +47,7 @@ export const McpServerSettings = () => {
<h3 className="font-semibold text-base mb-1">
{t('Internal Tools')}
</h3>
- <p className="text-sm text-muted-foreground mb-3">
+ <p className="text-sm text-gray-11 mb-3">
{t(
'Control which built-in tools are available to agents via this MCP server.',
)}
@@ -66,7 +66,7 @@ export const McpServerSettings = () => {
<h3 className="font-semibold text-base mb-1">
{t('Your Flows')}
</h3>
- <p className="text-sm text-muted-foreground mb-3">
+ <p className="text-sm text-gray-11 mb-3">
{t(
'Flows with the MCP Trigger are exposed as tools on this server.',
)}
diff --git a/packages/web/src/app/components/project-settings/mcp-server/mcp-credentials.tsx b/packages/web/src/app/components/project-settings/mcp-server/mcp-credentials.tsx
index 80d1f1138fb..9cb6fb41c56 100644
--- a/packages/web/src/app/components/project-settings/mcp-server/mcp-credentials.tsx
+++ b/packages/web/src/app/components/project-settings/mcp-server/mcp-credentials.tsx
@@ -20,13 +20,13 @@ export function McpCredentials() {
<div className="space-y-4">
<div className="flex flex-col gap-1.5">
<label className="text-sm font-medium">{t('Server URL')}</label>
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{t(
'Use this URL to connect from Cursor, Windsurf, Claude Desktop, or any MCP-compatible client. Authentication is handled via OAuth.',
)}
</p>
<div className="flex items-center gap-2">
- <div className="bg-muted/50 rounded-md px-3 py-2 text-sm flex-1 overflow-x-auto">
+ <div className="bg-gray-3/50 rounded-md px-3 py-2 text-sm flex-1 overflow-x-auto">
{serverUrl}
</div>
<CopyButton textToCopy={serverUrl} />
diff --git a/packages/web/src/app/components/project-settings/mcp-server/mcp-flows.tsx b/packages/web/src/app/components/project-settings/mcp-server/mcp-flows.tsx
index 1e7ddb15265..b99cf5d566d 100644
--- a/packages/web/src/app/components/project-settings/mcp-server/mcp-flows.tsx
+++ b/packages/web/src/app/components/project-settings/mcp-server/mcp-flows.tsx
@@ -39,7 +39,7 @@ export function McpFlows({ mcpServer }: McpFlowsProps) {
<div
className={cn(
'w-2 h-2 rounded-full',
- isEnabled ? 'bg-success' : 'bg-gray-400',
+ isEnabled ? 'bg-success-11' : 'bg-gray-11',
)}
/>
<span>{isEnabled ? t('On') : t('Off')}</span>
diff --git a/packages/web/src/app/components/project-settings/mcp-server/mcp-tools.tsx b/packages/web/src/app/components/project-settings/mcp-server/mcp-tools.tsx
index 5999d78b4f6..d03d8a797f0 100644
--- a/packages/web/src/app/components/project-settings/mcp-server/mcp-tools.tsx
+++ b/packages/web/src/app/components/project-settings/mcp-server/mcp-tools.tsx
@@ -81,7 +81,7 @@ export function McpTools({
return (
<div className="flex flex-col gap-2">
{!canWrite && (
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{t('You can see these tools, but your role cannot change them.')}
</p>
)}
@@ -103,12 +103,12 @@ export function McpTools({
return (
<AccordionItem key={category.label} value={category.label}>
- <AccordionTrigger className="bg-muted/40 hover:no-underline">
+ <AccordionTrigger className="bg-gray-3/40 hover:no-underline">
<div className="flex items-center gap-3">
{category.locked ? (
<Tooltip>
<TooltipTrigger asChild>
- <Lock className="h-4 w-4 text-muted-foreground shrink-0" />
+ <Lock className="h-4 w-4 text-gray-11 shrink-0" />
</TooltipTrigger>
<TooltipContent>
{t('Required by other tools — always enabled')}
@@ -137,11 +137,11 @@ export function McpTools({
{t(category.label)}
</span>
{category.locked && (
- <span className="text-xs text-muted-foreground ml-1">
+ <span className="text-xs text-gray-11 ml-1">
({t('always enabled')})
</span>
)}
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{enabledInCategory.length}/{toolNames.length}
</span>
</div>
@@ -191,7 +191,7 @@ export function McpTools({
</Badge>
)}
</span>
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{platformOff
? t(
'A platform admin switched this off for the whole platform, so no client can call it here or on the platform MCP server.',
diff --git a/packages/web/src/app/components/project-settings/members/columns.tsx b/packages/web/src/app/components/project-settings/members/columns.tsx
index 58da0b8e993..6c823bee749 100644
--- a/packages/web/src/app/components/project-settings/members/columns.tsx
+++ b/packages/web/src/app/components/project-settings/members/columns.tsx
@@ -122,7 +122,7 @@ const RoleCell = ({
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
- <Info className="h-4 w-4 text-orange-700 absolute left-0 top-1/2 -translate-y-1/2 -translate-x-6" />
+ <Info className="h-4 w-4 text-warning-11 absolute left-0 top-1/2 -translate-y-1/2 -translate-x-6" />
</TooltipTrigger>
<TooltipContent>
<p>{t('Pending Invitation')}</p>
@@ -220,7 +220,7 @@ const ActionsCell = ({
disabled={!userHasPermissionToDelete}
className="h-8 w-8 p-0"
>
- <Trash2 className="h-4 w-4 text-destructive" />
+ <Trash2 className="h-4 w-4 text-danger-11" />
</Button>
</ConfirmationDeleteDialog>
</PermissionNeededTooltip>
@@ -255,7 +255,7 @@ export const membersTableColumns = ({
/>
<div className="flex flex-col gap-1 min-w-0">
<TextWithTooltip tooltipMessage={email}>
- <p className="text-sm text-orange-700">{email}</p>
+ <p className="text-sm text-warning-11">{email}</p>
</TextWithTooltip>
</div>
</div>
@@ -278,7 +278,7 @@ export const membersTableColumns = ({
<div className="flex flex-col gap-1 min-w-0">
<p className="text-sm font-medium leading-none">{name}</p>
<TextWithTooltip tooltipMessage={email}>
- <p className="text-sm text-muted-foreground">{email}</p>
+ <p className="text-sm text-gray-11">{email}</p>
</TextWithTooltip>
</div>
</div>
@@ -299,7 +299,7 @@ export const membersTableColumns = ({
<div className="flex flex-col gap-1 min-w-0">
<p className="text-sm font-medium leading-none">{name}</p>
<TextWithTooltip tooltipMessage={email}>
- <p className="text-sm text-muted-foreground">{email}</p>
+ <p className="text-sm text-gray-11">{email}</p>
</TextWithTooltip>
</div>
</div>
diff --git a/packages/web/src/app/components/settings-hub/sections/memory/general-section.tsx b/packages/web/src/app/components/settings-hub/sections/memory/general-section.tsx
index ccc07faab8f..3c9922b863f 100644
--- a/packages/web/src/app/components/settings-hub/sections/memory/general-section.tsx
+++ b/packages/web/src/app/components/settings-hub/sections/memory/general-section.tsx
@@ -67,7 +67,7 @@ export function GeneralSection() {
<div className="space-y-2">
<div className="space-y-1">
<p className="text-sm">{t('Personal instructions')}</p>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t('The assistant keeps these in mind across all your chats.')}
</p>
</div>
diff --git a/packages/web/src/app/components/settings-hub/sections/memory/import-memory-dialog.tsx b/packages/web/src/app/components/settings-hub/sections/memory/import-memory-dialog.tsx
index 7fa9b372e2e..382f2bd4b0b 100644
--- a/packages/web/src/app/components/settings-hub/sections/memory/import-memory-dialog.tsx
+++ b/packages/web/src/app/components/settings-hub/sections/memory/import-memory-dialog.tsx
@@ -33,10 +33,10 @@ function Step({
return (
<div className="flex gap-4">
<div className="flex flex-col items-center">
- <span className="flex h-7 w-7 items-center justify-center rounded-full bg-muted text-xs font-medium text-muted-foreground">
+ <span className="flex h-7 w-7 items-center justify-center rounded-full bg-gray-3 text-xs font-medium text-gray-11">
{number}
</span>
- {!last && <span className="mt-1 w-px flex-1 bg-border" />}
+ {!last && <span className="mt-1 w-px flex-1 bg-gray-6" />}
</div>
<div className={last ? 'flex-1 space-y-3' : 'flex-1 space-y-3 pb-6'}>
<p className="text-sm font-medium">{title}</p>
@@ -71,8 +71,8 @@ function ImportMemoryContent({ onClose }: { onClose: () => void }) {
number={1}
title={t('Copy this prompt into a chat with your other AI provider')}
>
- <div className="relative rounded-lg border bg-muted/40 p-4">
- <p className="max-h-28 overflow-hidden whitespace-pre-wrap pr-12 text-sm text-muted-foreground [mask-image:linear-gradient(to_bottom,black_55%,transparent)]">
+ <div className="relative rounded-lg border bg-gray-3/40 p-4">
+ <p className="max-h-28 overflow-hidden whitespace-pre-wrap pr-12 text-sm text-gray-11 [mask-image:linear-gradient(to_bottom,black_55%,transparent)]">
{EXPORT_PROMPT}
</p>
<CopyButton
@@ -122,7 +122,7 @@ export function ImportMemoryDialog({
}) {
return (
<Dialog open={open} onOpenChange={onOpenChange}>
- <DialogContent className="max-w-xl" overlayClassName="bg-black/20">
+ <DialogContent className="max-w-xl" overlayClassName="bg-scrim/40">
<ImportMemoryContent
key={open ? 'open' : 'closed'}
onClose={() => onOpenChange(false)}
diff --git a/packages/web/src/app/components/settings-hub/sections/memory/manage-memories-dialog.tsx b/packages/web/src/app/components/settings-hub/sections/memory/manage-memories-dialog.tsx
index 99648bc1d31..dc26b6a8e91 100644
--- a/packages/web/src/app/components/settings-hub/sections/memory/manage-memories-dialog.tsx
+++ b/packages/web/src/app/components/settings-hub/sections/memory/manage-memories-dialog.tsx
@@ -100,7 +100,7 @@ export function ManageMemoriesDialog({
}) {
return (
<Dialog open={open} onOpenChange={onOpenChange}>
- <DialogContent className="max-w-xl gap-5" overlayClassName="bg-black/20">
+ <DialogContent className="max-w-xl gap-5" overlayClassName="bg-scrim/40">
<ManageMemoriesContent key={open ? 'open' : 'closed'} />
</DialogContent>
</Dialog>
diff --git a/packages/web/src/app/components/settings-hub/sections/memory/memory-section.tsx b/packages/web/src/app/components/settings-hub/sections/memory/memory-section.tsx
index 381a35fb37e..84522c798aa 100644
--- a/packages/web/src/app/components/settings-hub/sections/memory/memory-section.tsx
+++ b/packages/web/src/app/components/settings-hub/sections/memory/memory-section.tsx
@@ -21,22 +21,22 @@ export function MemorySection() {
<button
type="button"
onClick={() => setManageOpen(true)}
- className="flex w-full items-center justify-between gap-2 rounded-lg bg-muted/40 px-4 py-3.5 text-left transition-colors hover:bg-muted/70"
+ className="flex w-full items-center justify-between gap-2 rounded-lg bg-gray-3/40 px-4 py-3.5 text-left transition-colors hover:bg-gray-3/70"
>
<span className="text-sm">
<span className="font-medium">{t('View and manage memory')}</span>
- <span className="text-muted-foreground">
+ <span className="text-gray-11">
{' · '}
{t('memoryCount', { count: data?.memories.length ?? 0 })}
</span>
</span>
- <ChevronRight className="h-4 w-4 shrink-0 text-muted-foreground" />
+ <ChevronRight className="h-4 w-4 shrink-0 text-gray-11" />
</button>
<div className="flex items-start justify-between gap-4">
<div className="space-y-0.5">
<p className="text-sm">{t('Import memory from another AI')}</p>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t(
'Bring your context and facts from another AI assistant. We give you a prompt to fetch them.',
)}
diff --git a/packages/web/src/app/components/settings-hub/sections/memory/remembered-facts.tsx b/packages/web/src/app/components/settings-hub/sections/memory/remembered-facts.tsx
index 2b8630924b9..d9ae77bf548 100644
--- a/packages/web/src/app/components/settings-hub/sections/memory/remembered-facts.tsx
+++ b/packages/web/src/app/components/settings-hub/sections/memory/remembered-facts.tsx
@@ -12,7 +12,7 @@ export function RememberedFacts({
}) {
if (memories.length === 0) {
return (
- <p className="px-2 py-8 text-center text-sm text-muted-foreground">
+ <p className="px-2 py-8 text-center text-sm text-gray-11">
{t('No memories yet.')}
</p>
);
@@ -23,7 +23,7 @@ export function RememberedFacts({
{memories.map((memory, index) => (
<li
key={index}
- className="group flex items-start gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-muted"
+ className="group flex items-start gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-gray-3"
>
<span className="flex-1">{memory}</span>
<Button
diff --git a/packages/web/src/app/components/settings-hub/settings-hub-dialog.tsx b/packages/web/src/app/components/settings-hub/settings-hub-dialog.tsx
index 0c72e86f820..37ec4a91018 100644
--- a/packages/web/src/app/components/settings-hub/settings-hub-dialog.tsx
+++ b/packages/web/src/app/components/settings-hub/settings-hub-dialog.tsx
@@ -29,7 +29,7 @@ function highlightMatch(text: string, query: string) {
return (
<>
{text.slice(0, idx)}
- <span className="text-primary">{text.slice(idx, idx + q.length)}</span>
+ <span className="text-accent-11">{text.slice(idx, idx + q.length)}</span>
{text.slice(idx + q.length)}
</>
);
@@ -68,10 +68,10 @@ function SettingsHubContent() {
return (
<div className="flex h-[calc(100dvh-2rem)] max-h-[45rem]">
<DialogTitle className="sr-only">{t('Settings')}</DialogTitle>
- <aside className="flex w-[200px] shrink-0 flex-col border-r bg-muted/30">
+ <aside className="flex w-[200px] shrink-0 flex-col border-r bg-gray-3/30">
<div className="p-3">
<div className="relative">
- <Search className="absolute left-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground" />
+ <Search className="absolute left-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-gray-11" />
<Input
value={query}
onChange={(e) => setQuery(e.target.value)}
@@ -79,9 +79,9 @@ function SettingsHubContent() {
className="h-8 pl-7 text-sm"
/>
{query.trim().length > 0 && (
- <div className="absolute left-0 top-full z-20 mt-1 w-[300px] max-w-[calc(100vw-3rem)] rounded-lg border bg-popover p-1.5 shadow-md">
+ <div className="absolute left-0 top-full z-20 mt-1 w-[300px] max-w-[calc(100vw-3rem)] rounded-lg border bg-panel p-1.5 shadow-md">
{results.length === 0 ? (
- <div className="px-3 py-2 text-sm text-muted-foreground">
+ <div className="px-3 py-2 text-sm text-gray-11">
{t('No results')}
</div>
) : (
@@ -92,16 +92,16 @@ function SettingsHubContent() {
key={`${tab.id}-${section.id}`}
type="button"
onClick={() => goToSection(tab.id, section.id)}
- className="flex w-full rounded-md px-2 py-1.5 text-left hover:bg-accent"
+ className="flex w-full rounded-md px-2 py-1.5 text-left hover:bg-gray-4"
>
<span className="flex min-w-0 flex-1 flex-col">
<span className="flex items-center gap-2">
- <Icon className="h-5 w-5 shrink-0 text-muted-foreground" />
+ <Icon className="h-5 w-5 shrink-0 text-gray-11" />
<span className="min-w-0 flex-1 truncate text-sm">
{t(tab.label)}
</span>
</span>
- <span className="truncate pl-7 text-xs text-muted-foreground">
+ <span className="truncate pl-7 text-xs text-gray-11">
{highlightMatch(t(section.label), query)}
</span>
</span>
@@ -114,7 +114,7 @@ function SettingsHubContent() {
</div>
</div>
<nav className="px-2 pb-3 pt-3">
- <div className="px-2 pb-1 text-[11px] font-medium text-muted-foreground">
+ <div className="px-2 pb-1 text-[11px] font-medium text-gray-11">
{t('Settings')}
</div>
<div className="space-y-0.5">
@@ -128,8 +128,8 @@ function SettingsHubContent() {
className={cn(
'flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors',
activeTabId === tab.id
- ? 'bg-muted font-medium text-foreground'
- : 'text-muted-foreground hover:bg-muted/60',
+ ? 'bg-gray-3 font-medium text-gray-12'
+ : 'text-gray-11 hover:bg-gray-3/60',
)}
>
<Icon className="h-4 w-4 shrink-0" />
diff --git a/packages/web/src/app/components/sidebar/ap-sidebar-item.tsx b/packages/web/src/app/components/sidebar/ap-sidebar-item.tsx
index c3a2b02af80..2b0eb510f6c 100644
--- a/packages/web/src/app/components/sidebar/ap-sidebar-item.tsx
+++ b/packages/web/src/app/components/sidebar/ap-sidebar-item.tsx
@@ -78,7 +78,7 @@ export const ApSidebarItem = (item: SidebarItemType) => {
<SidebarMenuButton
asChild
className={cn('h-8 [&_svg]:block [&_svg]:size-5', {
- 'bg-sidebar-accent hover:bg-sidebar-accent!': isRowHighlighted,
+ 'bg-gray-4 hover:bg-gray-4!': isRowHighlighted,
'pr-8': hasSubItems && !isCollapsed,
})}
>
@@ -123,7 +123,7 @@ export const ApSidebarItem = (item: SidebarItemType) => {
)}
{!isCollapsed && hasSubItems && (
<SidebarMenuAction
- className="right-1.5 text-sidebar-foreground/60"
+ className="right-1.5 text-gray-9"
aria-label={isExpanded ? t('Collapse') : t('Expand')}
aria-expanded={isExpanded}
onClick={() => setIsExpanded((expanded) => !expanded)}
@@ -207,10 +207,7 @@ function LockedTooltip({ tier, children }: LockedTooltipProps) {
function CrownMark() {
return (
<>
- <Crown
- aria-hidden
- className="size-3.5! shrink-0 text-sidebar-foreground/50"
- />
+ <Crown aria-hidden className="size-3.5! shrink-0 text-gray-9" />
<span className="sr-only">{t('Requires a plan upgrade')}</span>
</>
);
diff --git a/packages/web/src/app/connections/new-connection-dialog.tsx b/packages/web/src/app/connections/new-connection-dialog.tsx
index acdb80b5aac..4123e55722a 100644
--- a/packages/web/src/app/connections/new-connection-dialog.tsx
+++ b/packages/web/src/app/connections/new-connection-dialog.tsx
@@ -4,6 +4,7 @@ import { AppConnectionWithoutSensitiveData } from '@activepieces/shared';
import { t } from 'i18next';
import React, { useState } from 'react';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { Button } from '@/components/ui/button';
import {
Dialog,
@@ -101,13 +102,14 @@ const NewConnectionDialog = React.memo(
<div
key={index}
onClick={() => clickPiece(piece.name)}
- className="border p-2 h-[150px] w-[150px] flex flex-col items-center justify-center hover:bg-accent hover:text-accent-foreground cursor-pointer rounded-lg"
+ className="border p-2 h-[150px] w-[150px] flex flex-col items-center justify-center hover:bg-gray-4 hover:text-gray-12 cursor-pointer rounded-lg"
>
- <img
- className="w-[40px] h-[40px]"
+ <LogoPlate
+ className="size-[52px] p-1.5"
src={piece.logoUrl}
- ></img>
- <div className="mt-2 text-center text-md">
+ alt=""
+ />
+ <div className="mt-2 text-center">
{piece.displayName}
</div>
</div>
diff --git a/packages/web/src/app/connections/oauth2-connection-settings.tsx b/packages/web/src/app/connections/oauth2-connection-settings.tsx
index 25346e8f13a..a9f518e070b 100644
--- a/packages/web/src/app/connections/oauth2-connection-settings.tsx
+++ b/packages/web/src/app/connections/oauth2-connection-settings.tsx
@@ -20,6 +20,7 @@ import { ChevronDown } from 'lucide-react';
import { Dispatch, SetStateAction, useState } from 'react';
import { useFormContext, UseFormReturn } from 'react-hook-form';
+import { LogoPlate } from '@/components/custom/logo-plate';
import {
MultiSelect,
MultiSelectContent,
@@ -173,7 +174,7 @@ function OAuth2ConnectionSettings({
<span className="leading-none">{t('Permissions')}</span>
<ChevronDown
className={cn(
- 'h-4 w-4 shrink-0 text-muted-foreground transition-transform',
+ 'h-4 w-4 shrink-0 text-gray-11 transition-transform',
!scopesEditing && '-rotate-90',
)}
/>
@@ -247,15 +248,19 @@ function OAuth2ConnectionSettings({
<input type="hidden" {...field} />
</FormControl>
<div className="border border-solid p-2 rounded-lg gap-2 flex text-center items-center justify-center h-full">
- <div className="rounded-full border border-solid p-1 flex items-center justify-center">
- <img src={piece.logoUrl} className="w-5 h-5"></img>
- </div>
+ <LogoPlate
+ src={piece.logoUrl}
+ alt=""
+ border
+ className="size-7.5 rounded-full"
+ innerClassName="p-1"
+ />
<div className="text-sm">{piece.displayName}</div>
<div className="grow"></div>
<Button
size={'sm'}
variant={'basic'}
- className={cn(hasCode && 'text-destructive')}
+ className={cn(hasCode && 'text-danger-11')}
disabled={!isConnectButtonEnabled}
loading={loading}
type="button"
diff --git a/packages/web/src/app/connections/replace-connections-dialog.tsx b/packages/web/src/app/connections/replace-connections-dialog.tsx
index 4314864ff8c..0602e125335 100644
--- a/packages/web/src/app/connections/replace-connections-dialog.tsx
+++ b/packages/web/src/app/connections/replace-connections-dialog.tsx
@@ -8,6 +8,7 @@ import { FieldErrors, useForm, useWatch } from 'react-hook-form';
import { useNavigate } from 'react-router-dom';
import { toast } from 'sonner';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { SearchableSelect } from '@/components/custom/searchable-select';
import { Badge } from '@/components/ui/badge';
import { Button } from '@/components/ui/button';
@@ -298,10 +299,10 @@ const ReplaceConnectionsDialog = ({
const piece = pieces?.find((p) => p.name === value);
return (
<div className="flex gap-2 items-center">
- <img
+ <LogoPlate
src={piece!.logoUrl}
alt={piece!.displayName}
- className="w-4 h-4 object-contain"
+ size="xxs"
/>
<span>{piece!.displayName}</span>
</div>
@@ -432,7 +433,7 @@ const ReplaceConnectionsDialog = ({
) : (
<div className="flex flex-col gap-4">
{affectedFlows.length === 0 ? (
- <div className="flex items-center gap-2 rounded-md border border-dashed px-3 py-2.5 text-sm text-muted-foreground">
+ <div className="flex items-center gap-2 rounded-md border border-dashed px-3 py-2.5 text-sm text-gray-11">
<WorkflowIcon className="w-4 h-4 shrink-0" />
{t('No flows use this connection yet')}
</div>
@@ -442,7 +443,7 @@ const ReplaceConnectionsDialog = ({
<span>
{t('flowsUsingConnection', { count: affectedFlows.length })}
</span>
- <ChevronDown className="w-4 h-4 shrink-0 text-muted-foreground transition-transform group-data-[state=closed]:-rotate-90" />
+ <ChevronDown className="w-4 h-4 shrink-0 text-gray-11 transition-transform group-data-[state=closed]:-rotate-90" />
</CollapsibleTrigger>
<CollapsibleContent>
<ScrollArea className="max-h-[140px] px-3 pb-3">
@@ -451,7 +452,7 @@ const ReplaceConnectionsDialog = ({
<Badge
key={flow.id}
variant="secondary"
- className="max-w-[200px] cursor-pointer hover:bg-secondary/70"
+ className="max-w-[200px] cursor-pointer hover:bg-gray-3/70"
onClick={() =>
navigate(
`/projects/${flow.projectId}/flows/${flow.id}`,
@@ -531,7 +532,7 @@ const ReplaceConnectionsDialog = ({
</Select>
</div>
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{t(
'MCP servers are not updated automatically — reconnect them manually.',
)}
@@ -568,7 +569,7 @@ function LabelWithTooltip({
<Label>{label}</Label>
<Tooltip>
<TooltipTrigger asChild>
- <Info className="w-3.5 h-3.5 text-muted-foreground cursor-help" />
+ <Info className="w-3.5 h-3.5 text-gray-11 cursor-help" />
</TooltipTrigger>
<TooltipContent className="max-w-xs">{tooltip}</TooltipContent>
</Tooltip>
diff --git a/packages/web/src/app/connections/secret-input.tsx b/packages/web/src/app/connections/secret-input.tsx
index 642c3aea7d3..ebcacb9e3b6 100644
--- a/packages/web/src/app/connections/secret-input.tsx
+++ b/packages/web/src/app/connections/secret-input.tsx
@@ -7,6 +7,7 @@ import { KeyRound } from 'lucide-react';
import * as React from 'react';
import { useState } from 'react';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { Button } from '@/components/ui/button';
import { Input, InputProps } from '@/components/ui/input';
import {
@@ -46,12 +47,12 @@ const SecretManagerToggleButton = React.memo(
size="icon"
onClick={onClick}
className={cn('shrink-0', {
- 'bg-primary/10': isActive,
+ 'bg-accent-3': isActive,
})}
>
<KeyRound
className={cn('size-4', {
- 'text-primary': isActive,
+ 'text-accent-11': isActive,
})}
/>
</Button>
@@ -175,10 +176,10 @@ const SecretInput = React.forwardRef<HTMLInputElement, SecretInputProps>(
{selectedConnection ? (
<div className="flex items-center gap-2 min-w-0">
{selectedProvider?.logo && (
- <img
+ <LogoPlate
src={selectedProvider.logo}
alt={selectedProvider.name}
- className="size-4 shrink-0 object-contain"
+ size="xxs"
/>
)}
<span className="truncate">{selectedConnection.name}</span>
@@ -196,10 +197,10 @@ const SecretInput = React.forwardRef<HTMLInputElement, SecretInputProps>(
<SelectItem key={connection.id} value={connection.id}>
<div className="flex items-center gap-2">
{provider?.logo && (
- <img
+ <LogoPlate
src={provider.logo}
alt={provider.name}
- className="size-4 shrink-0 object-contain"
+ size="xxs"
/>
)}
<span>{connection.name}</span>
@@ -213,7 +214,7 @@ const SecretInput = React.forwardRef<HTMLInputElement, SecretInputProps>(
<Input
disabled
type="text"
- className="bg-muted/50 cursor-not-allowed!"
+ className="bg-gray-3/50 cursor-not-allowed!"
/>
) : (
currentFields.map((param) => (
diff --git a/packages/web/src/app/routes/404-page.tsx b/packages/web/src/app/routes/404-page.tsx
index 57719e684d9..a024c973a87 100644
--- a/packages/web/src/app/routes/404-page.tsx
+++ b/packages/web/src/app/routes/404-page.tsx
@@ -21,18 +21,16 @@ const NotFoundPage: React.FC<NotFoundPageProps> = ({
icon: Icon = SearchX,
}) => {
return (
- <div className="mx-auto max-w-(--breakpoint-xl) px-4 py-8 lg:px-6 lg:py-16 bg-background">
+ <div className="mx-auto max-w-(--breakpoint-xl) px-4 py-8 lg:px-6 lg:py-16 bg-gray-1">
<div className="mx-auto max-w-(--breakpoint-sm) text-center">
<div className="mx-auto mb-8 flex justify-center">
<Icon className="h-24 w-24" />
</div>
- <p className="mb-4 text-3xl font-bold tracking-tight text-foreground md:text-4xl">
+ <p className="mb-4 text-3xl font-bold tracking-tight text-gray-12 md:text-4xl">
{t(title)}
</p>
- <p className="mb-4 text-lg font-light text-foreground">
- {t(description)}
- </p>
+ <p className="mb-4 text-lg font-light text-gray-12">{t(description)}</p>
{showHomeButton && (
<Link to="/">
<Button size="lg" variant={'default'}>
diff --git a/packages/web/src/app/routes/agents/id/agent-chat-view.tsx b/packages/web/src/app/routes/agents/id/agent-chat-view.tsx
index 97b512e83d8..43fde418027 100644
--- a/packages/web/src/app/routes/agents/id/agent-chat-view.tsx
+++ b/packages/web/src/app/routes/agents/id/agent-chat-view.tsx
@@ -89,4 +89,4 @@ export const AgentChatView = ({
};
const SLIDING_ASIDE =
- 'shrink-0 overflow-hidden border-border transition-[width] duration-200 ease-out';
+ 'shrink-0 overflow-hidden border-gray-6 transition-[width] duration-200';
diff --git a/packages/web/src/app/routes/agents/id/configure-panel/index.tsx b/packages/web/src/app/routes/agents/id/configure-panel/index.tsx
index 46f9e2e9a46..86b9458b3de 100644
--- a/packages/web/src/app/routes/agents/id/configure-panel/index.tsx
+++ b/packages/web/src/app/routes/agents/id/configure-panel/index.tsx
@@ -5,9 +5,11 @@ import {
AgentIcon,
AgentToolType,
ColorName,
+ PICKABLE_COLOR_NAMES,
DEFAULT_AGENT_MAX_STEPS,
MAX_AGENT_STEP_BUDGET,
PROJECT_COLOR_PALETTE,
+ PROJECT_COLOR_SWATCH,
UpdateAgentRequest,
formErrors,
} from '@activepieces/shared';
@@ -103,7 +105,7 @@ const AgentProjectRow = ({ agent }: { agent: Agent }) => {
return (
<FormItem className="flex flex-col gap-2">
<PanelSectionLabel label={t('Project')} />
- <div className="flex items-center justify-between gap-3 rounded-[10px] border border-border px-3 py-2.5">
+ <div className="flex items-center justify-between gap-3 rounded-[10px] border border-gray-6 px-3 py-2.5">
<ApProjectDisplay
title={getProjectName(home)}
icon={home.icon}
@@ -150,10 +152,10 @@ const AgentDangerZone = ({
}
return (
- <div className="flex flex-col gap-2 border-t border-border pt-5">
+ <div className="flex flex-col gap-2 border-t border-gray-6 pt-5">
<PanelSectionLabel label={t('Delete this agent')} />
<div className="flex items-start justify-between gap-4">
- <span className="text-sm leading-5 text-muted-foreground">
+ <span className="text-sm leading-5 text-gray-11">
{t(
'Its instructions, its tools, and every conversation held with it go with it.',
)}
@@ -171,7 +173,7 @@ const AgentDangerZone = ({
type="button"
variant="outline"
size="sm"
- className="shrink-0 gap-2 text-destructive hover:text-destructive"
+ className="shrink-0 gap-2 text-danger-11 hover:text-danger-11"
onClick={() => setDeleting(true)}
>
<Trash2 size={14} />
@@ -187,11 +189,11 @@ const AdvancedSection = ({ children }: { children: React.ReactNode }) => {
const [open, setOpen] = useState(false);
return (
- <div className="flex flex-col gap-2 border-t border-border pt-5">
+ <div className="flex flex-col gap-2 border-t border-gray-6 pt-5">
<button
type="button"
onClick={() => setOpen((current) => !current)}
- className="flex w-fit items-center gap-1.5 text-xs font-medium leading-4 text-muted-foreground transition-colors hover:text-foreground"
+ className="flex w-fit items-center gap-1.5 text-xs font-medium leading-4 text-gray-11 transition-colors hover:text-gray-12"
>
<ChevronRight
size={14}
@@ -244,7 +246,7 @@ const ConfigureBehaviorTab = ({
<FormItem className="flex flex-col gap-2">
<PanelSectionLabel label={t('Model')} />
{needsModel && (
- <p className="text-[13px] leading-4 text-destructive">
+ <p className="text-[13px] leading-4 text-danger-11">
{t('Pick a model so this agent can answer.')}
</p>
)}
@@ -376,7 +378,7 @@ const ConfigureSettingsTab = ({
render={({ field }) => (
<FormItem className="flex flex-col gap-2">
<PanelSectionLabel label={t('Shape')} />
- <div className="grid grid-cols-6 gap-2.5 rounded-[10px] border border-border p-3">
+ <div className="grid grid-cols-6 gap-2.5 rounded-[10px] border border-gray-6 p-3">
{Object.values(AgentIcon).map((iconName) => (
<button
key={iconName}
@@ -385,7 +387,7 @@ const ConfigureSettingsTab = ({
onClick={() => field.onChange(iconName)}
className={cn(
'flex items-center justify-center rounded-[10px] p-[3px]',
- field.value === iconName && 'ring-2 ring-foreground',
+ field.value === iconName && 'ring-2 ring-gray-12',
)}
>
<AgentMark
@@ -406,8 +408,8 @@ const ConfigureSettingsTab = ({
render={({ field }) => (
<FormItem className="flex flex-col gap-2">
<PanelSectionLabel label={t('Color')} />
- <div className="grid grid-cols-6 gap-2.5 rounded-[10px] border border-border p-3">
- {Object.values(ColorName).map((colorName) => (
+ <div className="grid grid-cols-6 gap-2.5 rounded-[10px] border border-gray-6 p-3">
+ {PICKABLE_COLOR_NAMES.map((colorName) => (
<button
key={colorName}
type="button"
@@ -415,7 +417,8 @@ const ConfigureSettingsTab = ({
onClick={() => field.onChange(colorName)}
className={cn(
'flex items-center justify-center rounded-full p-[3px]',
- field.value === colorName && 'ring-2 ring-foreground',
+ PROJECT_COLOR_SWATCH[field.value] ===
+ PROJECT_COLOR_SWATCH[colorName] && 'ring-2 ring-gray-12',
)}
>
<span
@@ -474,12 +477,12 @@ const ScrollFade = ({
return (
<div className={cn('relative', className)}>
{scrolled && (
- <div className="pointer-events-none absolute left-0 right-0 top-0 z-[1] h-5 bg-gradient-to-b from-background to-transparent" />
+ <div className="pointer-events-none absolute left-0 right-0 top-0 z-[1] h-5 bg-gradient-to-b from-gray-1 to-transparent" />
)}
<div
ref={bodyRef}
onScroll={() => setScrolled((bodyRef.current?.scrollTop ?? 0) > 5)}
- className="scrollbar-thin h-full overflow-y-auto"
+ className="h-full overflow-y-auto"
>
{children}
</div>
@@ -620,13 +623,13 @@ const AgentConfigurePanel = forwardRef<
defaultValue="behavior"
className="flex min-h-0 grow flex-col gap-0"
>
- <div className="flex h-[60px] shrink-0 items-center justify-between gap-3 border-b border-border px-[18px]">
+ <div className="flex h-[60px] shrink-0 items-center justify-between gap-3 border-b border-gray-6 px-[18px]">
<div className="flex min-w-0 items-center gap-2">
<span className="truncate text-base font-semibold leading-5 tracking-[-0.01em]">
{t('Configure')}
</span>
{unsavedTyping && (
- <span className="flex shrink-0 items-center gap-1.5 text-xs leading-4 text-muted-foreground animate-in fade-in duration-200">
+ <span className="flex shrink-0 items-center gap-1.5 text-xs leading-4 text-gray-11 animate-in fade-in duration-200">
<Dot variant="primary" className="size-1.5" />
{t('Unsaved')}
</span>
@@ -659,13 +662,13 @@ const AgentConfigurePanel = forwardRef<
size="icon"
aria-label={t('Close')}
onClick={requestExit}
- className="size-7 shrink-0 text-muted-foreground"
+ className="size-7 shrink-0 text-gray-11"
>
<X size={16} />
</Button>
</div>
</div>
- <div className="flex h-[44px] shrink-0 items-stretch border-b border-border px-[18px]">
+ <div className="flex h-[44px] shrink-0 items-stretch border-b border-gray-6 px-[18px]">
<TabsList variant="outline" className="h-full items-stretch gap-5">
<TabsTrigger
value="behavior"
@@ -704,7 +707,7 @@ const AgentConfigurePanel = forwardRef<
/>
</TabsContent>
{form.formState.errors.root?.serverError && (
- <p className="mt-5 text-sm leading-4 text-destructive">
+ <p className="mt-5 text-sm leading-4 text-danger-11">
{form.formState.errors.root.serverError.message}
</p>
)}
diff --git a/packages/web/src/app/routes/agents/id/index.tsx b/packages/web/src/app/routes/agents/id/index.tsx
index d4a53946d2f..743b0189229 100644
--- a/packages/web/src/app/routes/agents/id/index.tsx
+++ b/packages/web/src/app/routes/agents/id/index.tsx
@@ -63,7 +63,7 @@ const CHAT_TAB = 'chat';
const WIDE_ENOUGH_QUERY = '(min-width: 1280px)';
const SLIDE_MS = 200;
const SLIDING_ASIDE =
- 'shrink-0 overflow-hidden border-border transition-[width] duration-200 ease-out';
+ 'shrink-0 overflow-hidden border-gray-6 transition-[width] duration-200';
const needsAModel = (agent: Agent): boolean => {
const running = agent.published ?? agent.draft;
@@ -72,7 +72,7 @@ const needsAModel = (agent: Agent): boolean => {
const AgentEditorSkeleton = () => (
<div className="flex h-full w-full flex-col">
- <div className="flex h-[60px] shrink-0 items-center gap-[14px] border-b border-border px-6">
+ <div className="flex h-[60px] shrink-0 items-center gap-[14px] border-b border-gray-6 px-6">
<Skeleton className="size-12 rounded-[14px]" />
<Skeleton className="h-5 w-[220px]" />
</div>
@@ -226,12 +226,12 @@ const AgentEditorContent = () => {
return (
<div className="flex h-full w-full flex-col">
- <div className="flex h-[60px] shrink-0 items-center gap-3 border-b border-border px-5">
+ <div className="flex h-[60px] shrink-0 items-center gap-3 border-b border-gray-6 px-5">
<button
type="button"
aria-label={t('Back')}
onClick={() => navigate(backTo)}
- className="flex size-7 shrink-0 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-accent hover:text-foreground"
+ className="flex size-7 shrink-0 items-center justify-center rounded-lg text-gray-11 transition-colors hover:bg-gray-4 hover:text-gray-12"
>
<ChevronLeft size={16} />
</button>
@@ -240,7 +240,7 @@ const AgentEditorContent = () => {
<span className="truncate text-base font-semibold leading-5 tracking-[-0.01em]">
{agent.displayName}
</span>
- <span className="truncate text-xs leading-4 text-muted-foreground">
+ <span className="truncate text-xs leading-4 text-gray-11">
{agent.description ?? t('No description yet')}
</span>
</div>
diff --git a/packages/web/src/app/routes/agents/id/runs/index.tsx b/packages/web/src/app/routes/agents/id/runs/index.tsx
index 8b1e1845992..0fa01abf29e 100644
--- a/packages/web/src/app/routes/agents/id/runs/index.tsx
+++ b/packages/web/src/app/routes/agents/id/runs/index.tsx
@@ -42,7 +42,7 @@ export const AgentRuns = ({ agentId, onClose }: AgentRunsProps) => {
return (
<div className="flex h-full w-full min-w-0 flex-col">
- <div className="flex h-[60px] shrink-0 items-center border-b border-border px-2">
+ <div className="flex h-[60px] shrink-0 items-center border-b border-gray-6 px-2">
<SidebarHeader onClose={onClose}>{t('Recent Runs')}</SidebarHeader>
</div>
{isLoading && <CardListItemSkeleton numberOfCards={6} />}
@@ -74,21 +74,21 @@ export const AgentRuns = ({ agentId, onClose }: AgentRunsProps) => {
>
<button
type="button"
- className="flex w-full min-w-0 items-center gap-3 px-3 py-3 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring"
+ className="flex w-full min-w-0 items-center gap-3 px-3 py-3 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent-8"
onClick={() => setOpenRunId(run.id)}
>
<Icon
aria-label={agentRunUtils.getStatusLabel(run.status)}
className={cn('size-5 shrink-0', {
- 'text-success': variant === 'success',
- 'text-destructive': variant === 'error',
+ 'text-success-11': variant === 'success',
+ 'text-danger-11': variant === 'error',
})}
/>
<div className="flex min-w-0 flex-col gap-1">
<span className="truncate text-sm font-medium">
{run.title ?? t('Untitled run')}
</span>
- <span className="flex min-w-0 gap-1 text-xs text-muted-foreground">
+ <span className="flex min-w-0 gap-1 text-xs text-gray-11">
{!isNil(run.flow) && (
<span className="truncate">
{run.flow.displayName} ·
diff --git a/packages/web/src/app/routes/agents/id/runs/run-detail-panel.tsx b/packages/web/src/app/routes/agents/id/runs/run-detail-panel.tsx
index 5744a3c3081..e4e85fb3223 100644
--- a/packages/web/src/app/routes/agents/id/runs/run-detail-panel.tsx
+++ b/packages/web/src/app/routes/agents/id/runs/run-detail-panel.tsx
@@ -66,7 +66,7 @@ export const RunDetailPanel = ({ runId, onClose }: RunDetailPanelProps) => {
return (
<Sheet open={!isNil(runId)} onOpenChange={(next) => !next && onClose()}>
<SheetContent side="right" className="w-full gap-0 p-0 sm:max-w-[640px]">
- <SheetHeader className="shrink-0 gap-2 border-b border-border px-6 py-4">
+ <SheetHeader className="shrink-0 gap-2 border-b border-gray-6 px-6 py-4">
<SheetTitle className="line-clamp-2 pr-8 text-base font-semibold">
{run?.title ?? t('Untitled run')}
</SheetTitle>
@@ -109,7 +109,7 @@ const MetaStrip = ({ run }: { run: AgentRunListItem }) => {
const look = agentRunUtils.getStatusIcon(run.status);
const durationMs = agentRunUtils.getDurationMs(run);
return (
- <div className="flex flex-wrap items-center gap-x-2 gap-y-1 text-xs text-muted-foreground">
+ <div className="flex flex-wrap items-center gap-x-2 gap-y-1 text-xs text-gray-11">
<StatusIconWithText
icon={look.Icon}
text={agentRunUtils.getStatusLabel(run.status)}
@@ -172,8 +172,8 @@ const Part = ({ part, index }: { part: PersistedAgentPart; index: number }) => {
}
if (part.type === PersistedAgentPartType.REASONING) {
return (
- <TimelineItem icon={<Brain className="h-4 w-4 text-muted-foreground" />}>
- <p className="py-3 text-sm text-muted-foreground">{part.text}</p>
+ <TimelineItem icon={<Brain className="h-4 w-4 text-gray-11" />}>
+ <p className="py-3 text-sm text-gray-11">{part.text}</p>
</TimelineItem>
);
}
@@ -183,9 +183,7 @@ const Part = ({ part, index }: { part: PersistedAgentPart; index: number }) => {
part.type === PersistedAgentPartType.SOURCE_URL
) {
return (
- <TimelineItem
- icon={<Paperclip className="h-4 w-4 text-muted-foreground" />}
- >
+ <TimelineItem icon={<Paperclip className="h-4 w-4 text-gray-11" />}>
<a
href={part.url}
target="_blank"
@@ -228,9 +226,9 @@ const ToolCall = ({
<TimelineItem
icon={
failed ? (
- <CircleAlert className="h-4 w-4 text-destructive" />
+ <CircleAlert className="h-4 w-4 text-danger-11" />
) : (
- <CircleCheck className="h-4 w-4 text-muted-foreground" />
+ <CircleCheck className="h-4 w-4 text-gray-11" />
)
}
>
@@ -244,14 +242,14 @@ const ToolCall = ({
<ChevronRight
size={14}
className={cn(
- 'shrink-0 text-muted-foreground transition-transform',
+ 'shrink-0 text-gray-11 transition-transform',
open && 'rotate-90',
)}
/>
</CollapsibleTrigger>
<CollapsibleContent className="flex flex-col gap-3 pt-3">
{failed && !isNil(part.errorText) && (
- <p className="text-xs text-destructive">{part.errorText}</p>
+ <p className="text-xs text-danger-11">{part.errorText}</p>
)}
{hasInput && <Payload label={t('Input')} value={part.input} />}
{hasOutput && <Payload label={t('Output')} value={part.output} />}
@@ -265,7 +263,7 @@ const Payload = ({ label, value }: { label: string; value: unknown }) => (
<JsonViewer
json={value}
title={
- <span className="text-xss font-medium uppercase tracking-wider text-muted-foreground">
+ <span className="text-xss font-medium uppercase tracking-wider text-gray-11">
{label}
</span>
}
diff --git a/packages/web/src/app/routes/agents/index.tsx b/packages/web/src/app/routes/agents/index.tsx
index 3c0f2079929..ac16720f425 100644
--- a/packages/web/src/app/routes/agents/index.tsx
+++ b/packages/web/src/app/routes/agents/index.tsx
@@ -67,22 +67,22 @@ const SUGGESTIONS = [
const TEMPLATE_STARTERS: TemplateStarter[] = [
{
label: 'Research analyst',
- dot: '#0D9488',
+ dot: 'bg-swatch-9-mark',
prompt: 'Research a company and send me a cited brief on it',
},
{
label: 'Support triage',
- dot: '#D97706',
+ dot: 'bg-swatch-6-mark',
prompt: 'Read a support ticket, tag its severity, and route it to a team',
},
{
label: 'Lead enrichment',
- dot: '#2563EB',
+ dot: 'bg-swatch-11-mark',
prompt: 'Enrich a new lead with company details and write the first email',
},
{
label: 'SEO writer',
- dot: '#E11D48',
+ dot: 'bg-swatch-3-mark',
prompt: 'Research keywords for a topic and draft a post that targets them',
},
];
@@ -220,7 +220,7 @@ const AgentsPageContent = () => {
className="pointer-events-none absolute left-1/2 top-1/2 h-[360px] w-[520px] -translate-x-1/2 -translate-y-[230px]"
style={{
backgroundImage:
- 'radial-gradient(ellipse at center, hsl(var(--primary) / 0.1) 0%, hsl(var(--primary) / 0) 70%)',
+ 'radial-gradient(ellipse at center, color-mix(in oklab, var(--accent-9), transparent 90%) 0%, transparent 70%)',
}}
/>
<AgentTrioMark className="mb-[22px]" />
@@ -239,7 +239,7 @@ const AgentsPageContent = () => {
</h1>
<p
className={cn(
- 'text-[15px] leading-[18px] text-muted-foreground',
+ 'text-[15px] leading-[18px] text-gray-11',
firstRun && 'max-w-[468px] text-center text-base leading-6',
)}
>
@@ -265,9 +265,9 @@ const AgentsPageContent = () => {
<>
<div
className={cn(
- 'mt-4 flex min-h-14 w-full max-w-[680px] items-end gap-3.5 rounded-[28px] border border-border bg-muted ps-5 pe-2 py-2 transition-colors',
+ 'mt-4 flex min-h-14 w-full max-w-[680px] items-end gap-3.5 rounded-[28px] border border-gray-6 bg-gray-3 ps-5 pe-2 py-2 transition-colors',
firstRun &&
- 'relative mt-6 max-w-[632px] flex-col items-stretch gap-4 rounded-xl bg-background px-[18px] pb-[14px] pt-[18px] shadow-[0_2px_12px_rgba(0,0,0,0.06)]',
+ 'relative mt-6 max-w-[632px] flex-col items-stretch gap-4 rounded-xl bg-gray-1 px-[18px] pb-[14px] pt-[18px] shadow-[0_2px_12px_rgba(0,0,0,0.06)]',
)}
>
<Textarea
@@ -289,7 +289,7 @@ const AgentsPageContent = () => {
: t('Draft weekly launch posts and file them in Notion…')
}
className={cn(
- 'min-h-10 resize-none border-0 bg-transparent px-0 py-2.5 text-base leading-5 shadow-none focus-visible:ring-0 placeholder:text-neutral-400',
+ 'min-h-10 resize-none border-0 bg-transparent px-0 py-2.5 text-base leading-5 shadow-none focus-visible:ring-0 placeholder:text-gray-11',
firstRun && 'min-h-11 px-1 py-1 text-[15px] leading-[22px]',
)}
/>
@@ -314,7 +314,7 @@ const AgentsPageContent = () => {
>
<span
className={cn(
- 'text-[13px] leading-4 text-muted-foreground',
+ 'text-[13px] leading-4 text-gray-11',
firstRun && 'font-medium',
)}
>
@@ -327,12 +327,14 @@ const AgentsPageContent = () => {
key={starter.label}
type="button"
onClick={() => askChat(t(starter.prompt))}
- className="flex items-center gap-2 rounded-full border border-border py-[9px] pe-4 ps-[14px] text-sm font-medium leading-4 text-neutral-700 transition-colors hover:bg-accent"
+ className="flex items-center gap-2 rounded-full border border-gray-6 py-[9px] pe-4 ps-[14px] text-sm font-medium leading-4 text-gray-11 transition-colors hover:bg-gray-4"
>
<span
aria-hidden
- className="size-[11px] shrink-0 rounded-sm"
- style={{ backgroundColor: starter.dot }}
+ className={cn(
+ 'size-[11px] shrink-0 rounded-sm',
+ starter.dot,
+ )}
/>
{t(starter.label)}
</button>
@@ -342,7 +344,7 @@ const AgentsPageContent = () => {
key={suggestion}
type="button"
onClick={() => askChat(t(suggestion))}
- className="rounded-full border border-border px-3 py-[5px] text-[13px] leading-4 transition-colors hover:bg-accent"
+ className="rounded-full border border-gray-6 px-3 py-[5px] text-[13px] leading-4 transition-colors hover:bg-gray-4"
>
{t(suggestion)}
</button>
@@ -356,7 +358,7 @@ const AgentsPageContent = () => {
onCreate={createBlankAgent}
variant="ghost"
size="sm"
- className="mt-4 gap-2 text-muted-foreground"
+ className="mt-4 gap-2 text-gray-11"
icon={<Plus size={15} />}
label={t('Start from scratch')}
/>
@@ -382,23 +384,23 @@ const AgentsPageContent = () => {
<h2 className="text-xl font-semibold leading-6 tracking-[-0.01em]">
{t('Your agents')}
</h2>
- <span className="text-[15px] leading-[18px] text-muted-foreground">
+ <span className="text-[15px] leading-[18px] text-gray-11">
{agents.length}
</span>
{hasNextPage && (
- <span className="text-[13px] leading-4 text-muted-foreground">
+ <span className="text-[13px] leading-4 text-gray-11">
{t('Showing {count} so far', { count: agents.length })}
</span>
)}
</div>
<div className="ms-auto flex items-center gap-3">
- <div className="flex h-8 w-[180px] shrink-0 items-center gap-2 rounded-full border border-border bg-muted px-3">
- <Search size={14} className="shrink-0 text-muted-foreground" />
+ <div className="flex h-8 w-[180px] shrink-0 items-center gap-2 rounded-full border border-gray-6 bg-gray-3 px-3">
+ <Search size={14} className="shrink-0 text-gray-11" />
<input
value={search}
onChange={(event) => setSearch(event.target.value)}
placeholder={t('Search agents')}
- className="w-full bg-transparent text-xs leading-4 outline-none placeholder:text-muted-foreground"
+ className="w-full bg-transparent text-xs leading-4 outline-none placeholder:text-gray-11"
/>
</div>
{(allProjects ?? []).length > 1 && (
@@ -417,13 +419,10 @@ const AgentsPageContent = () => {
<DropdownMenuTrigger asChild>
<button
type="button"
- className="flex h-8 items-center gap-2 rounded-md border border-border px-3 text-[13px] leading-4 transition-colors hover:bg-accent"
+ className="flex h-8 items-center gap-2 rounded-md border border-gray-6 px-3 text-[13px] leading-4 transition-colors hover:bg-gray-4"
>
{t(SORT_LABELS[sort])}
- <ChevronsUpDown
- size={14}
- className="text-muted-foreground"
- />
+ <ChevronsUpDown size={14} className="text-gray-11" />
</button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
@@ -439,19 +438,19 @@ const AgentsPageContent = () => {
</DropdownMenuRadioGroup>
</DropdownMenuContent>
</DropdownMenu>
- <div className="flex h-8 items-center gap-[2px] rounded-full border border-border p-[3px]">
+ <div className="flex h-8 items-center gap-[2px] rounded-full border border-gray-6 p-[3px]">
<button
type="button"
aria-label={t('Grid view')}
onClick={() => setLayout('grid')}
className={cn(
'flex h-6 w-8 shrink-0 items-center justify-center rounded-full',
- layout === 'grid' && 'bg-neutral-100',
+ layout === 'grid' && 'bg-gray-3',
)}
>
<LayoutGrid
size={15}
- className={cn(layout !== 'grid' && 'text-neutral-400')}
+ className={cn(layout !== 'grid' && 'text-gray-11')}
/>
</button>
<button
@@ -460,12 +459,12 @@ const AgentsPageContent = () => {
onClick={() => setLayout('list')}
className={cn(
'flex h-6 w-8 shrink-0 items-center justify-center rounded-full',
- layout === 'list' && 'bg-neutral-100',
+ layout === 'list' && 'bg-gray-3',
)}
>
<List
size={15}
- className={cn(layout !== 'list' && 'text-neutral-400')}
+ className={cn(layout !== 'list' && 'text-gray-11')}
/>
</button>
</div>
@@ -474,7 +473,7 @@ const AgentsPageContent = () => {
pending={createAgent.isPending}
onCreate={createBlankAgent}
size="sm"
- className="px-3.5 text-neutral-700"
+ className="px-3.5 text-gray-11"
icon={<Plus size={15} />}
label={t('New agent')}
/>
diff --git a/packages/web/src/app/routes/approvals/index.tsx b/packages/web/src/app/routes/approvals/index.tsx
index e1ca9bc2375..ffb8547a346 100644
--- a/packages/web/src/app/routes/approvals/index.tsx
+++ b/packages/web/src/app/routes/approvals/index.tsx
@@ -78,7 +78,7 @@ export function ApprovalsPage() {
cell: ({ row }) => (
<span className="font-medium">
{row.original.flowVersion?.displayName ?? (
- <span className="text-muted-foreground">{row.original.flowId}</span>
+ <span className="text-gray-11">{row.original.flowId}</span>
)}
</span>
),
@@ -95,7 +95,7 @@ export function ApprovalsPage() {
accessorKey: 'submittedAt',
header: () => <span>{t('Submitted')}</span>,
cell: ({ row }) => (
- <span className="text-muted-foreground">
+ <span className="text-gray-11">
<FormattedDate
date={new Date(row.original.submittedAt)}
includeTime
@@ -127,7 +127,7 @@ export function ApprovalsPage() {
<h1 className="text-2xl font-semibold tracking-tight">
{t('Pending approvals')}
</h1>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t('Flows awaiting approval to publish.')}
</p>
</div>
@@ -143,9 +143,7 @@ export function ApprovalsPage() {
emptyStateTextDescription={t(
'When users request approval for sensitive flows, they will appear here.',
)}
- emptyStateIcon={
- <ShieldAlert className="size-12 text-muted-foreground" />
- }
+ emptyStateIcon={<ShieldAlert className="size-12 text-gray-11" />}
/>
</div>
);
diff --git a/packages/web/src/app/routes/automations/index.tsx b/packages/web/src/app/routes/automations/index.tsx
index e9c64833f33..514eefb18d8 100644
--- a/packages/web/src/app/routes/automations/index.tsx
+++ b/packages/web/src/app/routes/automations/index.tsx
@@ -419,7 +419,7 @@ const AutomationsPageContent = ({ projectId }: { projectId: string }) => {
<div className="flex items-center justify-end gap-4">
{isSortTruncated && (
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{t('Showing the first {count}', {
count: rootFlows.length + rootTables.length,
})}
diff --git a/packages/web/src/app/routes/chat-with-ai/ai-chat-box.tsx b/packages/web/src/app/routes/chat-with-ai/ai-chat-box.tsx
index c8367e20421..eb909c4d289 100644
--- a/packages/web/src/app/routes/chat-with-ai/ai-chat-box.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/ai-chat-box.tsx
@@ -400,7 +400,7 @@ function ChatBoxContent({
)}
{wasCancelled && (
- <div className="flex items-center gap-2 py-2 text-xs text-muted-foreground animate-in fade-in duration-200">
+ <div className="flex items-center gap-2 py-2 text-xs text-gray-11 animate-in fade-in duration-200">
<Square className="h-3 w-3 fill-current" />
<span>{t('Response stopped')}</span>
</div>
@@ -408,7 +408,7 @@ function ChatBoxContent({
{error && (
<motion.div
- className="flex items-center gap-2 rounded-lg border border-destructive/30 bg-destructive/5 px-3 py-2 text-destructive text-sm"
+ className="flex items-center gap-2 rounded-lg border border-danger-6 bg-danger-3 px-3 py-2 text-danger-11 text-sm"
initial={{ opacity: 0, y: 4 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.2 }}
@@ -418,7 +418,7 @@ function ChatBoxContent({
<Button
variant="ghost"
size="sm"
- className="text-destructive hover:text-destructive gap-1.5 shrink-0 h-7 px-2"
+ className="text-danger-11 hover:text-danger-11 gap-1.5 shrink-0 h-7 px-2"
onClick={handleRetry}
>
<RefreshCw className="h-3 w-3" />
@@ -495,7 +495,7 @@ function ChatBoxContent({
}
/>
{footerNote !== undefined && (
- <p className="pt-[9px] text-center text-[11.5px] leading-[14px] text-muted-foreground">
+ <p className="pt-[9px] text-center text-[11.5px] leading-[14px] text-gray-11">
{footerNote}
</p>
)}
diff --git a/packages/web/src/app/routes/chat-with-ai/components/action-preview-card.tsx b/packages/web/src/app/routes/chat-with-ai/components/action-preview-card.tsx
index 533a8f0247e..3a841832b15 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/action-preview-card.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/action-preview-card.tsx
@@ -51,7 +51,7 @@ export function ActionPreviewCard({
showTooltip={false}
/>
{preview.connectionLabel && (
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{t('Using: {connectionLabel}', {
connectionLabel: preview.connectionLabel,
})}
@@ -86,7 +86,7 @@ export function ActionPreviewCard({
function ParamsSection({ params }: { params: InputParam[] }) {
return (
<div className="pb-3">
- <div className="rounded-lg border bg-muted/20 divide-y overflow-hidden">
+ <div className="rounded-lg border bg-gray-3/20 divide-y overflow-hidden">
{params.map((param) => (
<ParamRow key={param.key} param={param} />
))}
@@ -100,7 +100,7 @@ function ParamRow({ param }: { param: InputParam }) {
return (
<div className="flex items-start gap-3 px-3 py-2">
<ParamLabel>{param.key}</ParamLabel>
- <span className="text-xs text-foreground break-words min-w-0 flex-1">
+ <span className="text-xs text-gray-12 break-words min-w-0 flex-1">
{param.text}
</span>
</div>
@@ -120,7 +120,7 @@ function ExpandableParamRow({ param }: { param: RichInputParam }) {
onClick={() => setOpen((prev) => !prev)}
>
<ParamLabel>{param.key}</ParamLabel>
- <span className="ml-auto flex shrink-0 items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors">
+ <span className="ml-auto flex shrink-0 items-center gap-1 text-xs text-gray-11 hover:text-gray-12 transition-colors">
{t('Preview')}
{open ? (
<ChevronUp className="size-3" />
@@ -141,7 +141,7 @@ function ExpandableParamRow({ param }: { param: RichInputParam }) {
{param.kind === 'html' ? (
<HtmlPreview html={param.value} label={param.key} />
) : (
- <pre className="mt-2 rounded-lg bg-muted/40 px-3 py-2 text-xs text-foreground overflow-auto max-h-60 whitespace-pre-wrap break-words">
+ <pre className="mt-2 rounded-lg bg-gray-3/40 px-3 py-2 text-xs text-gray-12 overflow-auto max-h-60 whitespace-pre-wrap break-words">
{param.value}
</pre>
)}
@@ -165,12 +165,12 @@ function BatchParamsSection({
return (
<div className="pb-3 space-y-1.5">
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{t('{count, plural, =1 {1 item} other {# items}}', {
count: totalCount,
})}
</p>
- <div className="rounded-lg border bg-muted/20 divide-y overflow-hidden">
+ <div className="rounded-lg border bg-gray-3/20 divide-y overflow-hidden">
{samples.map((sample, i) => (
<div key={i} className="px-1 py-1 space-y-1">
{buildInputParams(sample).map((param) => (
@@ -180,7 +180,7 @@ function BatchParamsSection({
))}
</div>
{hasMore && (
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{t('and {count} more', {
count: totalCount - samples.length,
})}
@@ -192,7 +192,7 @@ function BatchParamsSection({
function ParamLabel({ children }: { children: string }) {
return (
- <span className="text-xs text-muted-foreground shrink-0 min-w-[80px] pt-0.5">
+ <span className="text-xs text-gray-11 shrink-0 min-w-[80px] pt-0.5">
{children}
</span>
);
diff --git a/packages/web/src/app/routes/chat-with-ai/components/action-receipt-card.tsx b/packages/web/src/app/routes/chat-with-ai/components/action-receipt-card.tsx
index a17b7d7158d..91880085a3a 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/action-receipt-card.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/action-receipt-card.tsx
@@ -24,7 +24,7 @@ export function ActionReceiptCard({
return (
<motion.div
- className="rounded-xl border bg-background overflow-hidden my-2"
+ className="rounded-xl border bg-gray-1 overflow-hidden my-2"
initial={{ opacity: 0, y: 12 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.3 }}
@@ -39,22 +39,20 @@ export function ActionReceiptCard({
/>
<div className="flex-1 min-w-0">
<div className="flex items-center gap-2 flex-wrap">
- <span className="text-xs font-medium text-foreground truncate">
+ <span className="text-xs font-medium text-gray-12 truncate">
{receipt.actionDisplayName}
</span>
<StatusBadge isSuccess={isSuccess} />
</div>
<div className="flex items-center gap-2 mt-0.5 flex-wrap">
- <span className="text-xs text-muted-foreground">
- {formattedTimestamp}
- </span>
+ <span className="text-xs text-gray-11">{formattedTimestamp}</span>
</div>
</div>
</div>
</div>
{receipt.status === 'failed' && receipt.errorMessage && (
- <p className="px-3.5 pb-2.5 text-[11px] leading-relaxed text-muted-foreground/70 break-words">
+ <p className="px-3.5 pb-2.5 text-[11px] leading-relaxed text-gray-11 break-words">
{receipt.errorMessage}
</p>
)}
@@ -65,7 +63,7 @@ export function ActionReceiptCard({
<button
type="button"
onClick={() => setOutputOpen(!outputOpen)}
- className="flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors"
+ className="flex items-center gap-1 text-xs text-gray-11 hover:text-gray-12 transition-colors"
>
{outputOpen ? (
<>
@@ -80,7 +78,7 @@ export function ActionReceiptCard({
)}
</button>
<CollapsibleContent className="data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down overflow-hidden">
- <div className="mt-1.5 rounded-lg bg-muted/30 overflow-hidden">
+ <div className="mt-1.5 rounded-lg bg-gray-3/30 overflow-hidden">
<SimpleJsonViewer
data={tryParseJson(receipt.output)}
hideCopyButton={true}
@@ -99,17 +97,13 @@ export function ActionReceiptCard({
function StatusBadge({ isSuccess }: { isSuccess: boolean }) {
if (isSuccess) {
return (
- <span className="inline-flex items-center gap-1 text-xs font-medium text-green-600 dark:text-green-400">
+ <span className="inline-flex items-center gap-1 text-xs font-medium text-success-11">
<Check className="h-3 w-3" />
{t('Action completed')}
</span>
);
}
- return (
- <span className="text-xs text-muted-foreground/70">
- {t("Didn't go through")}
- </span>
- );
+ return <span className="text-xs text-gray-11">{t("Didn't go through")}</span>;
}
function formatTimestamp(timestamp: string): string {
diff --git a/packages/web/src/app/routes/chat-with-ai/components/activity-accordion.tsx b/packages/web/src/app/routes/chat-with-ai/components/activity-accordion.tsx
index 996e84b5928..25d025030a1 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/activity-accordion.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/activity-accordion.tsx
@@ -62,9 +62,9 @@ export function ThinkingBlock({
disabled={!isExpandable}
onClick={() => handleOpenChange(!isOpen)}
className={cn(
- 'flex items-center gap-1.5 text-sm text-muted-foreground text-left w-full',
+ 'flex items-center gap-1.5 text-sm text-gray-11 text-left w-full',
isExpandable &&
- 'hover:text-foreground transition-colors cursor-pointer',
+ 'hover:text-gray-12 transition-colors cursor-pointer',
)}
>
{isStreaming ? (
@@ -78,7 +78,7 @@ export function ThinkingBlock({
className={cn(
'size-3.5 shrink-0 transition-all duration-300',
isOpen && 'rotate-180',
- isExpandable ? 'opacity-50 text-muted-foreground' : 'opacity-0',
+ isExpandable ? 'opacity-50 text-gray-11' : 'opacity-0',
)}
/>
</button>
@@ -107,7 +107,7 @@ function StepRenderer({ step }: { step: ThinkingStep }) {
case 'thinking-status':
return (
<div className="py-0.5">
- <p className="text-sm text-muted-foreground">{step.text}</p>
+ <p className="text-sm text-gray-11">{step.text}</p>
</div>
);
case 'tool':
@@ -200,10 +200,10 @@ function ToolStepRow({
return (
<div className="py-1">
{recipeLines.length > 0 ? (
- <div className="mb-1.5 overflow-hidden rounded-lg border border-border bg-muted/20">
- <div className="flex items-center gap-2 border-b border-border/60 px-3 py-1">
- <Code className="size-3 shrink-0 text-primary/80" />
- <span className="text-[11px] font-medium text-muted-foreground">
+ <div className="mb-1.5 overflow-hidden rounded-lg border border-gray-6 bg-gray-3/20">
+ <div className="flex items-center gap-2 border-b border-gray-6/60 px-3 py-1">
+ <Code className="size-3 shrink-0 text-accent-11/80" />
+ <span className="text-[11px] font-medium text-gray-11">
{t('What this code does')}
</span>
</div>
@@ -211,9 +211,9 @@ function ToolStepRow({
{recipeLines.map((line, idx) => (
<div
key={`${idx}-${line}`}
- className="flex items-start gap-2 text-foreground/75"
+ className="flex items-start gap-2 text-gray-12/75"
>
- <span className="select-none pt-px text-primary/70">›</span>
+ <span className="select-none pt-px text-accent-11/70">›</span>
<span>{line}</span>
</div>
))}
@@ -221,9 +221,7 @@ function ToolStepRow({
</div>
) : (
resolvedDescription && (
- <p className="text-sm text-muted-foreground mb-1.5">
- {resolvedDescription}
- </p>
+ <p className="text-sm text-gray-11 mb-1.5">{resolvedDescription}</p>
)
)}
<Collapsible open={detailsOpen} onOpenChange={setDetailsOpen}>
@@ -231,13 +229,13 @@ function ToolStepRow({
<TextShimmer
as="div"
className={cn(
- 'inline-flex items-center gap-2 rounded-lg border px-4 py-1.5 text-sm border-border',
+ 'inline-flex items-center gap-2 rounded-lg border px-4 py-1.5 text-sm border-gray-6',
hasDetails && 'cursor-pointer',
)}
duration={2}
onClick={() => hasDetails && setDetailsOpen(!detailsOpen)}
>
- <ToolIcon className="size-4 shrink-0 text-muted-foreground animate-pulse motion-reduce:animate-none" />
+ <ToolIcon className="size-4 shrink-0 text-gray-11 animate-pulse motion-reduce:animate-none" />
{label}
{matchedPieces.map((piece) => (
<PieceIcon
@@ -254,13 +252,13 @@ function ToolStepRow({
<div>
<div
className={cn(
- 'inline-flex items-center gap-2 rounded-lg border px-4 py-1.5 text-sm border-border',
+ 'inline-flex items-center gap-2 rounded-lg border px-4 py-1.5 text-sm border-gray-6',
hasDetails && 'cursor-pointer',
)}
onClick={() => hasDetails && setDetailsOpen(!detailsOpen)}
>
- <ToolIcon className="size-4 shrink-0 text-muted-foreground" />
- <span className="text-sm text-muted-foreground">{label}</span>
+ <ToolIcon className="size-4 shrink-0 text-gray-11" />
+ <span className="text-sm text-gray-11">{label}</span>
{matchedPieces.map((piece) => (
<PieceIcon
key={piece.name}
@@ -276,10 +274,10 @@ function ToolStepRow({
)}
{hasDetails && (
<CollapsibleContent className="data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down overflow-hidden">
- <div className="mt-1 rounded-lg bg-muted/30 px-3 py-2 space-y-2 text-[11px]">
+ <div className="mt-1 rounded-lg bg-gray-3/30 px-3 py-2 space-y-2 text-[11px]">
{hasInput && input && (
<div>
- <p className="text-muted-foreground font-medium mb-0.5">
+ <p className="text-gray-11 font-medium mb-0.5">
{t('Input')}
</p>
<SimpleJsonViewer
@@ -292,7 +290,7 @@ function ToolStepRow({
)}
{hasOutput && parsedOutput !== undefined && (
<div>
- <p className="text-muted-foreground font-medium mb-0.5">
+ <p className="text-gray-11 font-medium mb-0.5">
{t('Output')}
</p>
<SimpleJsonViewer
@@ -316,13 +314,13 @@ function ToolStepRow({
<button
type="button"
onClick={() => setCodeOpen(!codeOpen)}
- className="flex items-center gap-1 text-[11px] text-muted-foreground/70 hover:text-foreground transition-colors"
+ className="flex items-center gap-1 text-[11px] text-gray-11 hover:text-gray-12 transition-colors"
>
<Code className="size-3 shrink-0" />
{codeOpen ? t('Hide code') : t('View code')}
</button>
<CollapsibleContent className="data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down overflow-hidden">
- <pre className="mt-1 max-h-64 overflow-auto rounded-lg bg-muted/40 px-3 py-2 text-[11px] font-mono whitespace-pre-wrap break-words text-muted-foreground">
+ <pre className="mt-1 max-h-64 overflow-auto rounded-lg bg-gray-3/40 px-3 py-2 text-[11px] font-mono whitespace-pre-wrap break-words text-gray-11">
{codeSource}
</pre>
</CollapsibleContent>
diff --git a/packages/web/src/app/routes/chat-with-ai/components/assistant-message.tsx b/packages/web/src/app/routes/chat-with-ai/components/assistant-message.tsx
index 5a8dcbf6490..3fadcdc48e5 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/assistant-message.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/assistant-message.tsx
@@ -58,7 +58,7 @@ import { ToolShimmerPills } from './tool-shimmer-pills';
const PROSE_CLASSES = 'max-w-none break-words';
const ACTION_BUTTON_CLASS =
- 'flex h-6 w-6 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring';
+ 'flex h-6 w-6 items-center justify-center rounded-md text-gray-11 transition-colors hover:bg-gray-3 hover:text-gray-12 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent-8';
const EMPTY_BUILD_IDS: ReadonlySet<string> = new Set();
@@ -142,7 +142,7 @@ export const AssistantMessage = memo(function AssistantMessage({
{!isStreaming && sources.length > 0 && (
<div className="flex flex-wrap items-center gap-1.5 pt-2">
<motion.span
- className="text-xs text-muted-foreground"
+ className="text-xs text-gray-11"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 0.2 }}
@@ -162,7 +162,7 @@ export const AssistantMessage = memo(function AssistantMessage({
{source.href ? (
<Source href={source.href} title={source.title} />
) : (
- <span className="inline-flex items-center rounded-full border bg-muted/50 px-2.5 py-1 text-xs text-foreground/80">
+ <span className="inline-flex items-center rounded-full border bg-gray-3/50 px-2.5 py-1 text-xs text-gray-12/80">
{source.title}
</span>
)}
@@ -194,7 +194,7 @@ export const AssistantMessage = memo(function AssistantMessage({
onClick={() => (isSpeaking ? stop() : speak(fullText))}
className={cn(
ACTION_BUTTON_CLASS,
- isSpeaking && 'text-foreground',
+ isSpeaking && 'text-gray-12',
)}
>
{isSpeaking ? (
@@ -407,7 +407,7 @@ function MessageBlocks({
return (
<div
key={`memory-${i}`}
- className="flex items-center gap-1.5 py-1 text-xs text-muted-foreground"
+ className="flex items-center gap-1.5 py-1 text-xs text-gray-11"
>
<Brain className="h-3.5 w-3.5 shrink-0" />
<span className="shrink-0">{t('Memory updated')}</span>
@@ -531,7 +531,7 @@ function CardGroup({
<button
type="button"
onClick={() => setOpen(!open)}
- className="flex w-full items-center gap-1.5 text-left text-sm text-muted-foreground transition-colors hover:text-foreground"
+ className="flex w-full items-center gap-1.5 text-left text-sm text-gray-11 transition-colors hover:text-gray-12"
>
<span>{t('chatOutcomeCount', { count: cards.length })}</span>
<ChevronDown
@@ -663,7 +663,7 @@ function AnsweredQuestionsCard({ answersText }: { answersText: string }) {
animate={{ opacity: 1, x: 0 }}
transition={{ duration: 0.25 }}
>
- <div className="max-w-[80%] bg-muted rounded-2xl rounded-br-md px-4 py-3 space-y-3">
+ <div className="max-w-[80%] bg-gray-3 rounded-2xl rounded-br-md px-4 py-3 space-y-3">
{pairs.map((pair, i) => (
<div key={i} className="space-y-0.5">
<p className="text-sm font-semibold">
diff --git a/packages/web/src/app/routes/chat-with-ai/components/batch-progress-card.tsx b/packages/web/src/app/routes/chat-with-ai/components/batch-progress-card.tsx
index 45fe5d9f550..e6d5e6ffcd4 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/batch-progress-card.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/batch-progress-card.tsx
@@ -28,15 +28,15 @@ export function BatchProgressCard({
return (
<motion.div
- className="rounded-xl border bg-background overflow-hidden my-2"
+ className="rounded-xl border bg-gray-1 overflow-hidden my-2"
initial={{ opacity: 0, y: 12 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.3 }}
>
<div className="px-3.5 pt-3 pb-2">
<div className="flex items-center justify-between gap-2">
- <h3 className="font-medium text-xs flex items-center gap-1.5 text-foreground">
- <Zap className="h-3.5 w-3.5 text-muted-foreground" />
+ <h3 className="font-medium text-xs flex items-center gap-1.5 text-gray-12">
+ <Zap className="h-3.5 w-3.5 text-gray-11" />
{progress.label}
</h3>
<BatchStatusBadge progress={progress} />
@@ -49,24 +49,24 @@ export function BatchProgressCard({
value={percentage}
className="h-2"
indicatorClassName={cn(
- 'transition-all duration-500 ease-out',
+ 'transition-all duration-500',
progress.done
? hasFailures
- ? 'bg-amber-500'
- : 'bg-green-500'
+ ? 'bg-warning-11'
+ : 'bg-success-11'
: undefined,
)}
/>
- <div className="flex items-center justify-between text-xs text-muted-foreground">
+ <div className="flex items-center justify-between text-xs text-gray-11">
<div className="flex items-center gap-3">
{progress.succeeded > 0 && (
- <span className="flex items-center gap-1 text-green-600 dark:text-green-400">
+ <span className="flex items-center gap-1 text-success-11">
<Check className="h-3 w-3" />
{progress.succeeded} {t('succeeded')}
</span>
)}
{progress.failed > 0 && (
- <span className="flex items-center gap-1 text-amber-600 dark:text-amber-400">
+ <span className="flex items-center gap-1 text-warning-11">
<AlertCircle className="h-3 w-3" />
{progress.failed} {t('failed')}
</span>
@@ -91,7 +91,7 @@ export function BatchProgressCard({
function BatchStatusBadge({ progress }: { progress: BatchProgressData }) {
if (!progress.done) {
return (
- <span className="inline-flex items-center gap-1 text-xs text-muted-foreground tabular-nums">
+ <span className="inline-flex items-center gap-1 text-xs text-gray-11 tabular-nums">
<Loader2 className="h-3 w-3 animate-spin" />
{progress.completed}/{progress.total}
</span>
@@ -99,14 +99,14 @@ function BatchStatusBadge({ progress }: { progress: BatchProgressData }) {
}
if (progress.failed === 0) {
return (
- <span className="inline-flex items-center gap-1 text-green-600 dark:text-green-400 text-xs font-medium">
+ <span className="inline-flex items-center gap-1 text-success-11 text-xs font-medium">
<Check className="h-3 w-3" />
{t('Done')}
</span>
);
}
return (
- <span className="inline-flex items-center gap-1 text-amber-600 dark:text-amber-400 text-xs font-medium">
+ <span className="inline-flex items-center gap-1 text-warning-11 text-xs font-medium">
<AlertCircle className="h-3 w-3" />
{progress.failed} {t('failed')}
</span>
@@ -126,17 +126,17 @@ function FailureDetails({
const remaining = results.length - 2;
return (
- <div className="rounded-lg bg-amber-500/5 px-3 py-2 space-y-1.5">
- <span className="text-xs font-medium text-amber-600 dark:text-amber-400">
+ <div className="rounded-lg bg-warning-3 px-3 py-2 space-y-1.5">
+ <span className="text-xs font-medium text-warning-11">
{t('Failed items')}
</span>
<div className="space-y-1">
{visible.map((r) => (
<div
key={r.index}
- className="flex items-start gap-1.5 text-xs text-amber-700/80 dark:text-amber-400/80"
+ className="flex items-start gap-1.5 text-xs text-warning-11"
>
- <span className="shrink-0 tabular-nums text-amber-700/50 dark:text-amber-400/50">
+ <span className="shrink-0 tabular-nums text-warning-11">
#{r.index + 1}
</span>
<span className="break-words min-w-0">
@@ -149,7 +149,7 @@ function FailureDetails({
{!expanded && remaining > 0 && (
<motion.button
type="button"
- className="flex items-center gap-1 text-xs text-amber-700/60 dark:text-amber-400/60 hover:text-amber-700 dark:hover:text-amber-400 transition-colors"
+ className="flex items-center gap-1 text-xs text-warning-11 hover:text-warning-12 transition-colors"
onClick={() => setExpanded(true)}
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
@@ -162,7 +162,7 @@ function FailureDetails({
{expanded && results.length > 3 && (
<motion.button
type="button"
- className="flex items-center gap-1 text-xs text-amber-700/60 dark:text-amber-400/60 hover:text-amber-700 dark:hover:text-amber-400 transition-colors"
+ className="flex items-center gap-1 text-xs text-warning-11 hover:text-warning-12 transition-colors"
onClick={() => setExpanded(false)}
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
diff --git a/packages/web/src/app/routes/chat-with-ai/components/card-skeletons.tsx b/packages/web/src/app/routes/chat-with-ai/components/card-skeletons.tsx
index 1206ffd8f5c..1acaa9972a1 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/card-skeletons.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/card-skeletons.tsx
@@ -83,7 +83,7 @@ function labelForCard({
function GeneratedImageCardSkeleton({ label }: { label: string }) {
return (
<motion.div
- className="my-2 max-w-md overflow-hidden rounded-xl border bg-card"
+ className="my-2 max-w-md overflow-hidden rounded-xl border bg-panel"
initial={{ opacity: 0, y: 8 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.25 }}
@@ -92,12 +92,12 @@ function GeneratedImageCardSkeleton({ label }: { label: string }) {
<div className="flex items-center justify-between gap-2 p-2">
<TextShimmer
as="span"
- className="min-w-0 truncate text-xs text-muted-foreground"
+ className="min-w-0 truncate text-xs text-gray-11"
duration={2}
>
{label}
</TextShimmer>
- <ImageIcon className="size-4 shrink-0 text-muted-foreground/50" />
+ <ImageIcon className="size-4 shrink-0 text-gray-9" />
</div>
</motion.div>
);
@@ -117,7 +117,7 @@ function ActionReceiptCardSkeleton({
return (
<motion.div
- className="my-2 overflow-hidden rounded-xl border bg-background"
+ className="my-2 overflow-hidden rounded-xl border bg-gray-1"
initial={{ opacity: 0, y: 8 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.25 }}
@@ -153,12 +153,12 @@ function ActionReceiptCardSkeleton({
function CardSkeletonFailed({ cardKind }: { cardKind: PendingCardKind }) {
return (
<motion.div
- className="my-2 flex items-center gap-2.5 rounded-xl border bg-background px-3.5 py-2.5 text-muted-foreground"
+ className="my-2 flex items-center gap-2.5 rounded-xl border bg-gray-1 px-3.5 py-2.5 text-gray-11"
initial={{ opacity: 0, y: 8 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.25 }}
>
- <AlertCircle className="size-4 shrink-0 text-muted-foreground/70" />
+ <AlertCircle className="size-4 shrink-0 text-gray-11" />
<span className="text-xs">
{cardKind === 'image'
? t("Couldn't generate the image")
diff --git a/packages/web/src/app/routes/chat-with-ai/components/chat-bottom-bar.tsx b/packages/web/src/app/routes/chat-with-ai/components/chat-bottom-bar.tsx
index 0d45b77d9c3..822ce6f5b14 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/chat-bottom-bar.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/chat-bottom-bar.tsx
@@ -127,8 +127,8 @@ export function ChatBottomBar({
className={cn(
'overflow-hidden rounded-2xl border transition-colors',
minimal
- ? 'border-transparent bg-transparent hover:bg-muted/30'
- : 'border-foreground/20 hover:border-foreground/40 focus-within:border-foreground/40',
+ ? 'border-transparent bg-transparent hover:bg-gray-3/30'
+ : 'border-gray-6 hover:border-gray-8 focus-within:border-gray-8',
)}
>
{banner}
diff --git a/packages/web/src/app/routes/chat-with-ai/components/chat-card-primitives.tsx b/packages/web/src/app/routes/chat-with-ai/components/chat-card-primitives.tsx
index 20d87c479b0..49f7dd71806 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/chat-card-primitives.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/chat-card-primitives.tsx
@@ -20,7 +20,7 @@ export function AnsweredQuestionsCard({ pairs }: AnsweredQuestionsCardProps) {
animate={{ opacity: 1, x: 0 }}
transition={{ duration: 0.25 }}
>
- <div className="max-w-[80%] bg-muted rounded-2xl rounded-br-md px-4 py-3 space-y-3">
+ <div className="max-w-[80%] bg-gray-3 rounded-2xl rounded-br-md px-4 py-3 space-y-3">
{pairs.map((pair, i) => (
<div key={i} className="space-y-0.5">
<p className="text-sm font-semibold">
@@ -59,7 +59,7 @@ export function ChatCard({ children, className }: ChatCardProps) {
return (
<motion.div
className={cn(
- 'rounded-2xl border border-border/60 bg-background p-4 shadow-lg dark:bg-neutral-900 backdrop-blur-sm transition-colors',
+ 'rounded-2xl border border-gray-6/60 bg-panel p-4 shadow-lg backdrop-blur-sm transition-colors',
className,
)}
initial={{ opacity: 0, y: 16, scale: 0.98 }}
@@ -85,7 +85,7 @@ export function ChatCardHeader({
<Button
variant="ghost"
size="icon"
- className="h-7 w-7 shrink-0 text-muted-foreground"
+ className="h-7 w-7 shrink-0 text-gray-11"
onClick={onBack}
aria-label={t('Back')}
>
@@ -97,7 +97,7 @@ export function ChatCardHeader({
<div className="flex-1 min-w-0">{title}</div>
)}
- <div className="flex items-center gap-0.5 text-muted-foreground shrink-0">
+ <div className="flex items-center gap-0.5 text-gray-11 shrink-0">
{actions}
{onClose && (
<Button
@@ -124,8 +124,8 @@ export function ChatOptionBadge({
<span
aria-hidden
className={cn(
- 'flex size-7 shrink-0 items-center justify-center rounded-md bg-muted-foreground/10 text-xs font-medium text-muted-foreground transition-colors',
- active && 'bg-foreground text-background',
+ 'flex size-7 shrink-0 items-center justify-center rounded-md bg-gray-5 text-xs font-medium text-gray-11 transition-colors',
+ active && 'bg-gray-12 text-gray-1',
className,
)}
>
@@ -166,9 +166,9 @@ export const ChatOptionRow = forwardRef<HTMLDivElement, ChatOptionRowProps>(
onBlur={onBlur}
onKeyDown={onKeyDown}
className={cn(
- 'group flex items-center gap-3 rounded-xl px-3 py-2 text-sm font-normal cursor-pointer transition-colors hover:bg-muted outline-none',
- focused && !selected && 'bg-muted',
- selected && 'bg-muted-foreground/15',
+ 'group flex items-center gap-3 rounded-xl px-3 py-2 text-sm font-normal cursor-pointer transition-colors hover:bg-gray-3 outline-none',
+ focused && !selected && 'bg-gray-3 hover:bg-gray-4',
+ selected && 'bg-gray-4 hover:bg-gray-5',
)}
>
{children}
@@ -202,15 +202,15 @@ export function ChatAnswerInputRow({
onFocus={onRowFocus}
onBlur={onRowBlur}
className={cn(
- 'group flex items-center gap-3 rounded-xl px-3 py-2 text-sm font-normal cursor-text transition-colors hover:bg-muted focus-within:bg-muted',
- active && 'bg-muted',
+ 'group flex items-center gap-3 rounded-xl px-3 py-2 text-sm font-normal cursor-text transition-colors hover:bg-gray-3 focus-within:bg-gray-3',
+ active && 'bg-gray-3 hover:bg-gray-4',
)}
>
<span
aria-hidden
className={cn(
- 'flex size-7 shrink-0 items-center justify-center rounded-md bg-muted-foreground/10 text-foreground transition-colors group-focus-within:bg-foreground group-focus-within:text-background',
- active && 'bg-foreground text-background',
+ 'flex size-7 shrink-0 items-center justify-center rounded-md bg-gray-5 text-gray-12 transition-colors group-focus-within:bg-gray-12 group-focus-within:text-gray-1',
+ active && 'bg-gray-12 text-gray-1',
)}
>
<Pencil className="size-3.5" />
diff --git a/packages/web/src/app/routes/chat-with-ai/components/chat-empty-state.tsx b/packages/web/src/app/routes/chat-with-ai/components/chat-empty-state.tsx
index 25634d681b3..d8bd1926e11 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/chat-empty-state.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/chat-empty-state.tsx
@@ -13,6 +13,7 @@ import {
} from 'react';
import { useNavigate } from 'react-router-dom';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { Button } from '@/components/ui/button';
import { Skeleton } from '@/components/ui/skeleton';
import { usePersonalization } from '@/features/chat/lib/use-personalization';
@@ -82,7 +83,7 @@ function CollapseOnInput({
return (
<div
className={cn(
- 'grid transition-all duration-300 ease-out',
+ 'grid transition-all duration-300',
collapsed ? 'grid-rows-[0fr] opacity-0' : 'grid-rows-[1fr] opacity-100',
)}
>
@@ -96,14 +97,14 @@ export function SetupRequiredState() {
return (
<div className="flex flex-col items-center justify-center h-full text-center gap-4 py-20 flex-1 min-w-0">
- <div className="flex items-center justify-center h-16 w-16 rounded-2xl bg-muted">
- <Settings className="h-8 w-8 text-muted-foreground" />
+ <div className="flex items-center justify-center h-16 w-16 rounded-2xl bg-gray-3">
+ <Settings className="h-8 w-8 text-gray-11" />
</div>
<div className="space-y-2">
<h2 className="text-xl font-semibold">
{t('Set up an AI provider to get started')}
</h2>
- <p className="text-muted-foreground text-sm max-w-md">
+ <p className="text-gray-11 text-sm max-w-md">
{t(
'AI Chat requires an AI provider. Add your provider in the AI settings to start chatting.',
)}
@@ -160,7 +161,7 @@ function Greeting({
: t(headline.plain)}
</h1>
{!incognito && (
- <p className="text-base text-muted-foreground max-w-xl">
+ <p className="text-base text-gray-11 max-w-xl">
{t(
"I don't just answer questions — I do the work, end to end, across every app you use. Whatever you're picturing, I can probably go further.",
)}
@@ -225,10 +226,10 @@ const AppMarquee = memo(function AppMarquee() {
paused={!!reducedMotion}
/>
))}
- <div className="pointer-events-none absolute inset-x-0 top-0 z-10 h-10 bg-linear-to-b from-background to-background/0" />
- <div className="pointer-events-none absolute inset-x-0 bottom-0 z-10 h-10 bg-linear-to-t from-background to-background/0" />
+ <div className="pointer-events-none absolute inset-x-0 top-0 z-10 h-10 bg-linear-to-b from-gray-1 to-gray-1/0" />
+ <div className="pointer-events-none absolute inset-x-0 bottom-0 z-10 h-10 bg-linear-to-t from-gray-1 to-gray-1/0" />
</div>
- <span className="text-xs font-medium text-muted-foreground">
+ <span className="text-xs font-medium text-gray-11">
{t('{count}+ apps', { count: moreCount })}
</span>
</div>
@@ -271,16 +272,12 @@ const MarqueeColumn = memo(function MarqueeColumn({
}
>
{strip.map((app, i) => (
- <div
+ <LogoPlate
key={`${app.name}-${i}`}
- className="size-14 shrink-0 overflow-hidden rounded-2xl bg-background shadow-sm ring-1 ring-border/50 mb-3"
- >
- <img
- src={app.logoUrl}
- alt={app.displayName}
- className="w-full h-full rounded-2xl object-contain p-2.5"
- />
- </div>
+ src={app.logoUrl}
+ alt={app.displayName}
+ className="mb-3 size-14 rounded-2xl p-2.5 shadow-sm ring-1 ring-gray-6/50"
+ />
))}
</div>
);
@@ -335,7 +332,7 @@ function ExampleCards({
<button
type="button"
onClick={handleToggle}
- className="flex items-center gap-1.5 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground cursor-pointer"
+ className="flex items-center gap-1.5 text-sm font-medium text-gray-11 transition-colors hover:text-gray-12 cursor-pointer"
>
{expanded ? t('Show less') : t('More and bigger')}
<ChevronDown
@@ -414,14 +411,14 @@ function CardCarousel({ children }: { children: ReactNode }) {
<div
aria-hidden
className={cn(
- 'pointer-events-none absolute inset-y-0 left-0 z-20 w-16 bg-gradient-to-r from-background to-transparent transition-opacity duration-300',
+ 'pointer-events-none absolute inset-y-0 left-0 z-20 w-16 bg-gradient-to-r from-gray-1 to-transparent transition-opacity duration-300',
edges.atStart ? 'opacity-0' : 'opacity-100',
)}
/>
<div
aria-hidden
className={cn(
- 'pointer-events-none absolute inset-y-0 right-0 z-20 w-16 bg-gradient-to-l from-background to-transparent transition-opacity duration-300',
+ 'pointer-events-none absolute inset-y-0 right-0 z-20 w-16 bg-gradient-to-l from-gray-1 to-transparent transition-opacity duration-300',
edges.atEnd ? 'opacity-0' : 'opacity-100',
)}
/>
@@ -473,7 +470,7 @@ function CarouselArrow({
aria-label={direction === 'left' ? t('Scroll left') : t('Scroll right')}
onClick={onClick}
className={cn(
- 'absolute top-1/2 z-30 flex size-9 -translate-y-1/2 items-center justify-center rounded-full border border-border bg-background/90 text-foreground shadow-md backdrop-blur transition-colors hover:bg-background',
+ 'absolute top-1/2 z-30 flex size-9 -translate-y-1/2 items-center justify-center rounded-full border border-gray-6 bg-gray-1/90 text-gray-12 shadow-md backdrop-blur transition-colors hover:bg-gray-1',
direction === 'left' ? 'left-2' : 'right-2',
)}
>
diff --git a/packages/web/src/app/routes/chat-with-ai/components/chat-input.tsx b/packages/web/src/app/routes/chat-with-ai/components/chat-input.tsx
index 9e74c12a3a3..069e836a01a 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/chat-input.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/chat-input.tsx
@@ -140,14 +140,14 @@ export function ChatInput({
{attachedFiles.map((file) => (
<motion.div
key={file.name}
- className="flex items-center gap-2 rounded-lg border bg-muted/50 px-3 py-1.5 text-sm"
+ className="flex items-center gap-2 rounded-lg border bg-gray-3/50 px-3 py-1.5 text-sm"
onClick={(e) => e.stopPropagation()}
initial={{ opacity: 0, scale: 0.95 }}
animate={{ opacity: 1, scale: 1 }}
transition={{ duration: 0.15 }}
>
- <Paperclip className="size-3.5 shrink-0 text-muted-foreground" />
- <span className="max-w-[150px] truncate text-foreground/80">
+ <Paperclip className="size-3.5 shrink-0 text-gray-11" />
+ <span className="max-w-[150px] truncate text-gray-12/80">
{file.name}
</span>
<button
@@ -157,7 +157,7 @@ export function ChatInput({
prev.filter((f) => f.name !== file.name),
)
}
- className="text-muted-foreground hover:text-foreground rounded-full p-0.5 transition-colors"
+ className="text-gray-11 hover:text-gray-12 rounded-full p-0.5 transition-colors"
>
<X className="size-3.5" />
</button>
@@ -168,9 +168,9 @@ export function ChatInput({
)}
</AnimatePresence>
{isRecording ? (
- <div className="min-h-[44px] px-3 py-2 text-base sm:text-sm text-foreground whitespace-pre-wrap break-words">
+ <div className="min-h-[44px] px-3 py-2 text-base sm:text-sm text-gray-12 whitespace-pre-wrap break-words">
{interimText || (
- <span className="text-muted-foreground">{t('Listening...')}</span>
+ <span className="text-gray-11">{t('Listening...')}</span>
)}
</div>
) : (
@@ -196,7 +196,7 @@ export function ChatInput({
<div className="flex items-center gap-1">
<PromptInputAction tooltip={t('Attach files')}>
<FileUploadTrigger asChild>
- <div className="flex h-9 w-9 sm:h-7 sm:w-7 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-muted hover:text-foreground">
+ <div className="flex h-9 w-9 sm:h-7 sm:w-7 cursor-pointer items-center justify-center rounded-full text-gray-11 transition-colors hover:bg-gray-3 hover:text-gray-12">
<Paperclip className="size-4" />
</div>
</FileUploadTrigger>
@@ -244,7 +244,7 @@ export function ChatInput({
<button
type="button"
onClick={startRecording}
- className="flex h-9 w-9 sm:h-7 sm:w-7 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"
+ className="flex h-9 w-9 sm:h-7 sm:w-7 cursor-pointer items-center justify-center rounded-full text-gray-11 transition-colors hover:bg-gray-3 hover:text-gray-12"
>
<Mic className="size-4" />
</button>
@@ -269,14 +269,14 @@ export function ChatInput({
<FileUploadContent>
<div className="flex min-h-[200px] w-full items-center justify-center backdrop-blur-sm">
- <div className="bg-background/90 m-4 w-full max-w-md rounded-lg border p-8 shadow-lg">
+ <div className="bg-gray-1/90 m-4 w-full max-w-md rounded-lg border p-8 shadow-lg">
<div className="mb-4 flex justify-center">
- <Paperclip className="text-muted-foreground size-8" />
+ <Paperclip className="text-gray-11 size-8" />
</div>
<h3 className="mb-2 text-center text-base font-medium">
{t('Drop files here')}
</h3>
- <p className="text-muted-foreground text-center text-sm">
+ <p className="text-gray-11 text-center text-sm">
{t('Release to add files to your message')}
</p>
</div>
diff --git a/packages/web/src/app/routes/chat-with-ai/components/chat-model-selector.tsx b/packages/web/src/app/routes/chat-with-ai/components/chat-model-selector.tsx
index 55c8fc2ffc1..49db81b2ca7 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/chat-model-selector.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/chat-model-selector.tsx
@@ -135,7 +135,7 @@ export function ChatModelSelector({
size="sm"
role="combobox"
aria-expanded={open}
- className="h-7 gap-1 rounded-full px-2.5 text-xs text-muted-foreground hover:text-foreground"
+ className="h-7 gap-1 rounded-full px-2.5 text-xs text-gray-11 hover:text-gray-12"
>
<span>{t(selectedOption.displayLabel)}</span>
<ChevronDown className="size-3 opacity-50" />
@@ -168,11 +168,11 @@ export function ChatModelSelector({
onMouseEnter={() => setFocusedIndex(index)}
className={cn(
'flex items-center gap-3 px-3 py-3.5 cursor-pointer transition-colors',
- isFocused && 'bg-accent',
+ isFocused && 'bg-gray-4',
)}
>
- <div className="flex h-8 w-8 shrink-0 items-center justify-center rounded-lg border bg-background">
- <Icon className="size-4 text-foreground" />
+ <div className="flex h-8 w-8 shrink-0 items-center justify-center rounded-lg border bg-gray-1">
+ <Icon className="size-4 text-gray-12" />
</div>
<div className="flex flex-1 flex-col gap-0.5">
<div className="flex items-center gap-2">
@@ -181,7 +181,7 @@ export function ChatModelSelector({
</span>
</div>
{option.description && (
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{t(option.description)}
</span>
)}
@@ -197,25 +197,25 @@ export function ChatModelSelector({
})}
</div>
{showCredits && (
- <div className="border-t px-3 py-2 text-xs text-muted-foreground">
+ <div className="border-t px-3 py-2 text-xs text-gray-11">
{t(
'Credits are charged based on how much work the agent does, plus {count, plural, =1 {1 credit} other {# credits}} per tool call.',
{ count: CHAT_CREDITS_PER_TOOL_CALL },
)}
</div>
)}
- <div className="flex items-center gap-3 border-t px-3 py-2 text-xs text-muted-foreground">
+ <div className="flex items-center gap-3 border-t px-3 py-2 text-xs text-gray-11">
<div className="flex items-center gap-1">
- <kbd className="flex h-5 w-5 items-center justify-center rounded border bg-muted">
+ <kbd className="flex h-5 w-5 items-center justify-center rounded border bg-gray-3">
<ArrowUp className="size-3" />
</kbd>
- <kbd className="flex h-5 w-5 items-center justify-center rounded border bg-muted">
+ <kbd className="flex h-5 w-5 items-center justify-center rounded border bg-gray-3">
<ArrowDown className="size-3" />
</kbd>
<span>{t('to navigate')}</span>
</div>
<div className="flex items-center gap-1">
- <kbd className="flex h-5 w-5 items-center justify-center rounded border bg-muted">
+ <kbd className="flex h-5 w-5 items-center justify-center rounded border bg-gray-3">
<CornerDownLeft className="size-3" />
</kbd>
<span>{t('to select')}</span>
diff --git a/packages/web/src/app/routes/chat-with-ai/components/connection-picker-card.tsx b/packages/web/src/app/routes/chat-with-ai/components/connection-picker-card.tsx
index c163904559d..b8d621ad0c7 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/connection-picker-card.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/connection-picker-card.tsx
@@ -51,7 +51,7 @@ function SelectedState({
}) {
return (
<motion.div
- className="rounded-xl border bg-background overflow-hidden my-2"
+ className="rounded-xl border bg-gray-1 overflow-hidden my-2"
initial={{ opacity: 0, scale: 0.98 }}
animate={{ opacity: 1, scale: 1 }}
transition={{ duration: 0.2 }}
@@ -64,13 +64,13 @@ function SelectedState({
border={false}
showTooltip={false}
/>
- <div className="absolute -bottom-0.5 -right-0.5 bg-green-500 rounded-full p-0.5">
- <Check className="h-2 w-2 text-white" />
+ <div className="absolute -bottom-0.5 -right-0.5 bg-success-9 rounded-full p-0.5">
+ <Check className="h-2 w-2 text-on-success" />
</div>
</div>
<div className="flex-1 min-w-0">
<div className="text-sm font-semibold">{connection.label}</div>
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-gray-11">
{t('Using this {name} account', { name: displayName })}
</div>
</div>
@@ -341,7 +341,7 @@ export function ConnectionPickerCard({
}
>
{!hasConnections && (
- <div className="pb-2 text-sm text-muted-foreground">
+ <div className="pb-2 text-sm text-gray-11">
{emptyMessage === 'loadFailed'
? t('Could not load your accounts. Try again in a moment.')
: emptyMessage === 'pinnedAccountGone'
@@ -387,7 +387,7 @@ export function ConnectionPickerCard({
<div className="text-sm font-medium truncate">
{conn.label}
</div>
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-gray-11">
{healthy
? conn.project
: `${conn.project} · ${connectionStatusLabel(status)}`}
@@ -425,8 +425,8 @@ export function ConnectionPickerCard({
key={conn.externalId}
htmlFor={`conn-${conn.externalId}`}
className={cn(
- 'flex cursor-pointer items-center gap-3 rounded-lg border border-transparent px-2 py-3 transition-colors hover:bg-muted/40',
- isSelected && 'border-primary/40 bg-primary/5',
+ 'flex cursor-pointer items-center gap-3 rounded-lg border border-transparent px-2 py-3 transition-colors hover:bg-gray-3/40',
+ isSelected && 'border-accent-7 bg-accent-3',
)}
>
{row}
@@ -448,7 +448,7 @@ export function ConnectionPickerCard({
<div className="text-sm font-medium">
{t('Use a different account')}
</div>
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-gray-11">
{t('Connect a new {name} account', {
name: filteredPicker.displayName,
})}
diff --git a/packages/web/src/app/routes/chat-with-ai/components/conversation-status-dot.tsx b/packages/web/src/app/routes/chat-with-ai/components/conversation-status-dot.tsx
index 9d5e42905e8..f71276175ad 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/conversation-status-dot.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/conversation-status-dot.tsx
@@ -16,7 +16,7 @@ export function ConversationStatusDot({
<TooltipTrigger asChild>
<span className="relative flex h-1.5 w-1.5 items-center justify-center">
{state === 'working' && (
- <span className="absolute inline-flex h-full w-full rounded-full bg-primary opacity-75 animate-ping" />
+ <span className="absolute inline-flex h-full w-full rounded-full bg-accent-11 opacity-75 animate-ping" />
)}
<span
className={cn(
@@ -49,7 +49,7 @@ function getStateLabel(state: ConversationIndicatorState): string {
}
const DOT_CLASS: Record<ConversationIndicatorState, string> = {
- working: 'bg-primary',
- waiting: 'bg-amber-500',
- unread: 'bg-sky-500',
+ working: 'bg-accent-11',
+ waiting: 'bg-warning-11',
+ unread: 'bg-gray-12',
};
diff --git a/packages/web/src/app/routes/chat-with-ai/components/conversations-toggle.tsx b/packages/web/src/app/routes/chat-with-ai/components/conversations-toggle.tsx
index 5d981885558..dc7231f2ca5 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/conversations-toggle.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/conversations-toggle.tsx
@@ -16,7 +16,7 @@ export const ConversationsToggle = ({
size="icon"
aria-label={open ? t('Collapse conversations') : t('Expand conversations')}
onClick={onClick}
- className="size-[30px] shrink-0 text-muted-foreground"
+ className="size-[30px] shrink-0 text-gray-11"
>
{open ? <PanelLeftCloseIcon size={14} /> : <HistoryIcon size={14} />}
</Button>
diff --git a/packages/web/src/app/routes/chat-with-ai/components/copy-icon-button.tsx b/packages/web/src/app/routes/chat-with-ai/components/copy-icon-button.tsx
index e5bcb31b5cb..1affab65dd4 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/copy-icon-button.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/copy-icon-button.tsx
@@ -34,7 +34,7 @@ export const CopyIconButton = forwardRef<
if (!event.defaultPrevented) handleCopy();
}}
className={cn(
- 'flex items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground',
+ 'flex items-center justify-center rounded-md text-gray-11 transition-colors hover:bg-gray-3 hover:text-gray-12',
className,
)}
>
diff --git a/packages/web/src/app/routes/chat-with-ai/components/feedback-buttons.tsx b/packages/web/src/app/routes/chat-with-ai/components/feedback-buttons.tsx
index 1a6d2f112d3..3f2a419c90e 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/feedback-buttons.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/feedback-buttons.tsx
@@ -13,8 +13,8 @@ import { FeedbackDialog } from './feedback-dialog';
type Rating = 'up' | 'down';
const BUTTON_CLASS =
- 'flex h-6 w-6 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring';
-const ACTIVE_CLASS = 'text-foreground/80 hover:text-foreground/80';
+ 'flex h-6 w-6 items-center justify-center rounded-md text-gray-11 transition-colors hover:bg-gray-3 hover:text-gray-12 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent-8';
+const ACTIVE_CLASS = 'text-gray-12/80 hover:text-gray-12/80';
export function FeedbackButtons({
conversationId,
diff --git a/packages/web/src/app/routes/chat-with-ai/components/feedback-dialog.tsx b/packages/web/src/app/routes/chat-with-ai/components/feedback-dialog.tsx
index 3bf6087256d..69c25e42f8d 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/feedback-dialog.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/feedback-dialog.tsx
@@ -79,7 +79,7 @@ export function FeedbackDialog({
variant={selected ? 'secondary' : 'outline'}
aria-pressed={selected}
onClick={() => toggleReason(reason)}
- className={cn('rounded-full', selected && 'border-foreground')}
+ className={cn('rounded-full', selected && 'border-gray-12')}
>
{t(REASON_LABELS[reason])}
</Button>
@@ -95,7 +95,7 @@ export function FeedbackDialog({
/>
<DialogFooter className="items-center gap-2 sm:justify-between">
{mutation.isError ? (
- <span className="text-sm text-destructive">
+ <span className="text-sm text-danger-11">
{t("Couldn't submit feedback. Please try again.")}
</span>
) : (
diff --git a/packages/web/src/app/routes/chat-with-ai/components/flow-build-card.tsx b/packages/web/src/app/routes/chat-with-ai/components/flow-build-card.tsx
index 84e7aecc324..fbed0df5061 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/flow-build-card.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/flow-build-card.tsx
@@ -19,7 +19,7 @@ import { authenticationSession } from '@/lib/authentication-session';
import { useNewWindow } from '@/lib/navigation-utils';
import { cn } from '@/lib/utils';
-const CARD_BASE = 'bg-[#f9f7f2] dark:bg-[#1e1b18]';
+const CARD_BASE = 'bg-panel';
export function FlowBuildCard({
buildId,
@@ -61,16 +61,16 @@ export function FlowBuildCard({
)}
>
<BuildDoodle iconName={iconName} />
- <h2 className="pr-28 text-2xl font-extrabold leading-[1.1] tracking-tight text-foreground sm:pr-40 sm:text-[28px]">
+ <h2 className="pr-28 text-2xl font-extrabold leading-[1.1] tracking-tight text-gray-12 sm:pr-40 sm:text-[28px]">
{tagline}
</h2>
<Progress
value={percentage}
className="mt-3 h-2"
indicatorClassName={cn(
- 'transition-all duration-500 ease-out',
- isDone && 'bg-emerald-500',
- isFailed && 'bg-amber-500',
+ 'transition-all duration-500',
+ isDone && 'bg-success-11',
+ isFailed && 'bg-warning-11',
)}
/>
</div>
@@ -84,7 +84,7 @@ export function FlowBuildCard({
</div>
{(activity || hasActions) && (
- <div className="mx-5 space-y-3 border-t border-foreground/[0.07] pb-5 pt-4">
+ <div className="mx-5 space-y-3 border-t border-gray-6 pb-5 pt-4">
{activity && <div className="min-w-0">{activity}</div>}
{isDone && build.flowId && projectId && (
@@ -92,7 +92,7 @@ export function FlowBuildCard({
<Button
size="sm"
variant="ghost"
- className="h-8 gap-1.5 rounded-lg border border-foreground/15 bg-foreground/[0.04] px-3 text-xs font-medium text-foreground shadow-none transition-colors hover:bg-foreground/[0.08] hover:text-foreground"
+ className="h-8 gap-1.5 rounded-lg border border-gray-6 bg-gray-2 px-3 text-xs font-medium text-gray-12 shadow-none transition-colors hover:bg-gray-4 hover:text-gray-12"
onClick={() =>
onSendPrompt?.(
t('Publish and enable the automation so it runs live'),
@@ -127,7 +127,7 @@ function OpenInBuilderButton({
<Button
size="sm"
variant="ghost"
- className="h-8 gap-1.5 rounded-lg px-3 text-xs font-medium text-muted-foreground shadow-none transition-colors hover:bg-foreground/[0.06] hover:text-foreground"
+ className="h-8 gap-1.5 rounded-lg px-3 text-xs font-medium text-gray-11 shadow-none transition-colors hover:bg-gray-4 hover:text-gray-12"
onClick={() => openNewWindow(`/projects/${projectId}/flows/${flowId}`)}
>
<ExternalLink className="h-3.5 w-3.5" />
@@ -143,10 +143,10 @@ function BuildStepRow({ step }: { step: BuildPlanStep }) {
<span
className={cn(
'truncate',
- step.status === 'done' && 'text-foreground',
- step.status === 'pending' && 'text-muted-foreground',
- step.status === 'in_progress' && 'font-medium text-foreground',
- step.status === 'failed' && 'text-amber-600 dark:text-amber-400',
+ step.status === 'done' && 'text-gray-12',
+ step.status === 'pending' && 'text-gray-11',
+ step.status === 'in_progress' && 'font-medium text-gray-12',
+ step.status === 'failed' && 'text-warning-11',
)}
>
{step.label}
@@ -158,20 +158,18 @@ function BuildStepRow({ step }: { step: BuildPlanStep }) {
function BuildStepIcon({ status }: { status: BuildPlanStep['status'] }) {
switch (status) {
case 'done':
- return <Check className="h-[18px] w-[18px] shrink-0 text-emerald-500" />;
+ return <Check className="h-[18px] w-[18px] shrink-0 text-success-11" />;
case 'in_progress':
return (
- <Loader2 className="h-[18px] w-[18px] shrink-0 animate-spin text-primary" />
+ <Loader2 className="h-[18px] w-[18px] shrink-0 animate-spin text-accent-11" />
);
case 'failed':
return (
- <AlertCircle className="h-[18px] w-[18px] shrink-0 text-amber-500" />
+ <AlertCircle className="h-[18px] w-[18px] shrink-0 text-warning-11" />
);
case 'pending':
default:
- return (
- <Circle className="h-[18px] w-[18px] shrink-0 text-muted-foreground/40" />
- );
+ return <Circle className="h-[18px] w-[18px] shrink-0 text-gray-9" />;
}
}
diff --git a/packages/web/src/app/routes/chat-with-ai/components/generated-image-card.tsx b/packages/web/src/app/routes/chat-with-ai/components/generated-image-card.tsx
index bc8dd727e51..62e584be4d4 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/generated-image-card.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/generated-image-card.tsx
@@ -14,7 +14,7 @@ export function GeneratedImageCard({ image }: { image: ImageGeneratedEvent }) {
return (
<>
<motion.div
- className="max-w-md overflow-hidden rounded-xl border bg-card"
+ className="max-w-md overflow-hidden rounded-xl border bg-panel"
initial={{ opacity: 0, y: 12 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.3 }}
@@ -27,9 +27,7 @@ export function GeneratedImageCard({ image }: { image: ImageGeneratedEvent }) {
<img src={image.url} alt={caption} className="h-auto w-full" />
</button>
<div className="flex items-center justify-between gap-2 p-2">
- <p className="min-w-0 truncate text-xs text-muted-foreground">
- {caption}
- </p>
+ <p className="min-w-0 truncate text-xs text-gray-11">{caption}</p>
<a href={image.url} download target="_blank" rel="noreferrer">
<Button variant="ghost" size="icon-sm">
<Download className="size-4" />
diff --git a/packages/web/src/app/routes/chat-with-ai/components/interactive-card-shell.tsx b/packages/web/src/app/routes/chat-with-ai/components/interactive-card-shell.tsx
index a94b6c485dc..664e7416b07 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/interactive-card-shell.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/interactive-card-shell.tsx
@@ -16,7 +16,7 @@ export function InteractiveCardShell({
return (
<motion.div
className={cn(
- 'chat-question-gradient-border rounded-2xl bg-background p-4 sm:p-5 shadow-[0_12px_40px_-12px_rgba(129,66,227,0.22)] dark:bg-neutral-900 dark:shadow-[0_12px_40px_-12px_rgba(129,66,227,0.35)] backdrop-blur-sm transition-[color,background-color,border-color,opacity]',
+ 'chat-question-gradient-border rounded-2xl bg-panel p-4 sm:p-5 shadow-glow-primary backdrop-blur-sm transition-[color,background-color,border-color,opacity]',
!active && 'opacity-60',
)}
initial={{ opacity: 0, y: 16, scale: 0.98 }}
@@ -27,14 +27,14 @@ export function InteractiveCardShell({
<div className="flex items-start justify-between gap-4">
<div className="flex-1 min-w-0">
{typeof title === 'string' ? (
- <h3 className="text-base font-semibold leading-snug text-foreground">
+ <h3 className="text-base font-semibold leading-snug text-gray-12">
{title}
</h3>
) : (
title
)}
</div>
- <div className="flex items-center gap-1 text-muted-foreground shrink-0">
+ <div className="flex items-center gap-1 text-gray-11 shrink-0">
{headerExtra}
<Button
variant="ghost"
diff --git a/packages/web/src/app/routes/chat-with-ai/components/mcp-reconnect-card.tsx b/packages/web/src/app/routes/chat-with-ai/components/mcp-reconnect-card.tsx
index 43ba87af35d..e5afab1d4c6 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/mcp-reconnect-card.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/mcp-reconnect-card.tsx
@@ -3,6 +3,7 @@ import { Check, Plug, RotateCw } from 'lucide-react';
import { motion } from 'motion/react';
import { useState } from 'react';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { Button } from '@/components/ui/button';
import { cn } from '@/lib/utils';
@@ -26,11 +27,11 @@ export function McpReconnectCard({
if (!isInteractive) {
return (
- <div className="my-2 flex items-center gap-3 rounded-xl border bg-background p-3">
+ <div className="my-2 flex items-center gap-3 rounded-xl border bg-gray-1 p-3">
<ConnectorIcon logoUrl={reconnect.logoUrl} />
<div className="min-w-0 flex-1">
<div className="text-sm font-semibold">{reconnect.displayName}</div>
- <div className="text-xs text-muted-foreground">{t('Connected')}</div>
+ <div className="text-xs text-gray-11">{t('Connected')}</div>
</div>
</div>
);
@@ -42,7 +43,7 @@ export function McpReconnectCard({
title={t('Reconnect {name}', { name: reconnect.displayName })}
>
<motion.div
- className="flex items-center gap-3 rounded-xl border bg-background p-3"
+ className="flex items-center gap-3 rounded-xl border bg-gray-1 p-3"
initial={{ opacity: 0, y: 8 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.25 }}
@@ -50,7 +51,7 @@ export function McpReconnectCard({
<ConnectorIcon logoUrl={reconnect.logoUrl} />
<div className="min-w-0 flex-1">
<div className="text-sm font-semibold">{reconnect.displayName}</div>
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-gray-11">
{t('Your {name} connection needs to be reconnected', {
name: reconnect.displayName,
})}
@@ -63,7 +64,7 @@ export function McpReconnectCard({
transition={{ type: 'spring', stiffness: 400, damping: 15 }}
className="flex shrink-0 items-center justify-center"
>
- <Check className="h-5 w-5 text-green-600 dark:text-green-400" />
+ <Check className="h-5 w-5 text-success-11" />
</motion.span>
) : !opened ? (
<Button
@@ -121,16 +122,17 @@ function openReconnectPopup(url: string) {
function ConnectorIcon({ logoUrl }: { logoUrl?: string }) {
if (logoUrl) {
return (
- <img
+ <LogoPlate
src={logoUrl}
alt=""
- className="h-10 w-10 shrink-0 rounded-lg border bg-background object-contain p-1.5"
+ border
+ className="size-10 rounded-lg p-1.5"
/>
);
}
return (
- <div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border bg-muted/40">
- <Plug className="h-5 w-5 text-muted-foreground" />
+ <div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border bg-gray-3/40">
+ <Plug className="h-5 w-5 text-gray-11" />
</div>
);
}
diff --git a/packages/web/src/app/routes/chat-with-ai/components/multi-question-form.tsx b/packages/web/src/app/routes/chat-with-ai/components/multi-question-form.tsx
index 6fcff8e9e8a..c4b0c8752ca 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/multi-question-form.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/multi-question-form.tsx
@@ -140,11 +140,11 @@ export function MultiQuestionForm({
if (submitted) {
return (
<motion.div
- className="my-3 flex items-center gap-2 text-sm text-muted-foreground"
+ className="my-3 flex items-center gap-2 text-sm text-gray-11"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
>
- <Check className="size-4 text-green-600 dark:text-green-400" />
+ <Check className="size-4 text-success-11" />
<span>{t('Answers submitted')}</span>
</motion.div>
);
@@ -167,7 +167,7 @@ export function MultiQuestionForm({
>
<Label
htmlFor={fieldId}
- className="block text-base font-semibold leading-snug text-foreground"
+ className="block text-base font-semibold leading-snug text-gray-12"
>
{q.question}
</Label>
@@ -315,8 +315,8 @@ function ChoiceBody({
onClick={() => onPick(option.label)}
aria-pressed={selected}
className={cn(
- 'flex flex-col items-center gap-2 rounded-xl border border-border/60 px-3 py-4 text-center text-sm transition-colors hover:bg-muted',
- selected && 'border-primary/50 bg-primary/5',
+ 'flex flex-col items-center gap-2 rounded-xl border border-gray-6/60 px-3 py-4 text-center text-sm transition-colors hover:bg-gray-3',
+ selected && 'border-accent-7 bg-accent-3 hover:bg-accent-4',
)}
>
<OptionIcon
@@ -346,7 +346,7 @@ function ChoiceBody({
<div className="px-3">
<Separator
className={cn(
- 'bg-border/60 transition-opacity duration-150',
+ 'bg-gray-6/60 transition-opacity duration-150',
isMidSepHidden(i) && 'opacity-0',
)}
/>
@@ -404,9 +404,9 @@ function ChoiceBody({
}
}}
className={cn(
- 'group flex items-center gap-3 rounded-xl px-2 py-2 text-sm font-normal cursor-pointer transition-colors hover:bg-muted outline-none',
- focusedRow === i && !selected && 'bg-muted',
- selected && 'bg-muted-foreground/15',
+ 'group flex items-center gap-3 rounded-xl px-2 py-2 text-sm font-normal cursor-pointer transition-colors hover:bg-gray-3 outline-none',
+ focusedRow === i && !selected && 'bg-gray-3 hover:bg-gray-4',
+ selected && 'bg-gray-4 hover:bg-gray-5',
)}
>
{option.piece || option.icon ? (
@@ -420,9 +420,9 @@ function ChoiceBody({
<span
aria-hidden
className={cn(
- 'flex size-8 shrink-0 items-center justify-center rounded-md bg-muted-foreground/10 text-xs font-medium text-muted-foreground transition-colors',
- focusedRow === i && 'bg-foreground text-background',
- selected && 'bg-foreground text-background',
+ 'flex size-8 shrink-0 items-center justify-center rounded-md bg-gray-5 text-xs font-medium text-gray-11 transition-colors',
+ focusedRow === i && 'bg-gray-12 text-gray-1',
+ selected && 'bg-gray-12 text-gray-1',
)}
>
{i + 1}
@@ -431,7 +431,7 @@ function ChoiceBody({
<span className="flex-1 min-w-0 leading-snug">
<span className="block">{option.label}</span>
{option.description && (
- <span className="block text-xs text-muted-foreground">
+ <span className="block text-xs text-gray-11">
{option.description}
</span>
)}
@@ -447,7 +447,7 @@ function ChoiceBody({
<div className="px-3">
<Separator
className={cn(
- 'bg-border/60 transition-opacity duration-150',
+ 'bg-gray-6/60 transition-opacity duration-150',
isBottomSepHidden && 'opacity-0',
)}
/>
@@ -464,15 +464,15 @@ function ChoiceBody({
setFocusedRow((prev) => (prev === 'custom' ? null : prev))
}
className={cn(
- 'group flex items-center gap-3 rounded-xl px-2 py-2 text-sm font-normal cursor-text transition-colors hover:bg-muted focus-within:bg-muted',
- isCustomTextActive && 'bg-muted',
+ 'group flex items-center gap-3 rounded-xl px-2 py-2 text-sm font-normal cursor-text transition-colors hover:bg-gray-3 focus-within:bg-gray-3',
+ isCustomTextActive && 'bg-gray-3 hover:bg-gray-4',
)}
>
<span
aria-hidden
className={cn(
- 'flex size-8 shrink-0 items-center justify-center rounded-md bg-muted-foreground/10 text-muted-foreground transition-colors group-focus-within:bg-foreground group-focus-within:text-background',
- isCustomTextActive && 'bg-foreground text-background',
+ 'flex size-8 shrink-0 items-center justify-center rounded-md bg-gray-5 text-gray-11 transition-colors group-focus-within:bg-gray-12 group-focus-within:text-gray-1',
+ isCustomTextActive && 'bg-gray-12 text-gray-1',
)}
>
<Pencil className="size-3.5" />
diff --git a/packages/web/src/app/routes/chat-with-ai/components/onboarding-journey-pattern.tsx b/packages/web/src/app/routes/chat-with-ai/components/onboarding-journey-pattern.tsx
index 25a6a801c38..08dbe8243ef 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/onboarding-journey-pattern.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/onboarding-journey-pattern.tsx
@@ -91,7 +91,7 @@ export function OnboardingJourneyPattern() {
preserveAspectRatio="xMidYMax slice"
fill="none"
aria-hidden
- className="h-full w-full text-foreground"
+ className="h-full w-full text-gray-12"
>
<defs>
<pattern
@@ -141,7 +141,7 @@ export function OnboardingJourneyPattern() {
preserveAspectRatio="xMidYMax slice"
fill="none"
aria-hidden
- className="h-full w-full text-primary"
+ className="h-full w-full text-accent-11"
>
<rect
width="900"
@@ -181,10 +181,7 @@ function SceneSprite({ placement }: { placement: ScenePlacement }) {
aria-hidden
className={cn('size-full overflow-visible', scene.ink)}
>
- <g
- className="ob-float"
- style={{ animationDelay: `${scene.delayMs}ms` }}
- >
+ <g style={{ animationDelay: `${scene.delayMs}ms` }}>
{scene.paths.map((d, i) => (
<path key={i} d={d} />
))}
@@ -254,12 +251,12 @@ function clamp({
const LENS_MASK =
'radial-gradient(circle 160px at var(--ob-mx, -300px) var(--ob-my, -300px), black 45%, transparent 100%)';
-const INK_BLUE = 'text-[#0078BF] dark:text-[#57ABE8]';
-const INK_TEAL = 'text-[#00838A] dark:text-[#35B5B0]';
-const INK_ORANGE = 'text-[#F0602F] dark:text-[#FF8E5E]';
-const INK_SUNFLOWER = 'text-[#D69A00] dark:text-[#F5B93D]';
-const INK_PINK = 'text-[#E3399B] dark:text-[#FF7AC1]';
-const INK_PURPLE = 'text-[#765BA7] dark:text-[#A98FD6]';
+const INK_BLUE = 'text-swatch-11-ink';
+const INK_TEAL = 'text-swatch-9-ink';
+const INK_ORANGE = 'text-swatch-5-ink';
+const INK_SUNFLOWER = 'text-swatch-6-ink';
+const INK_PINK = 'text-swatch-2-ink';
+const INK_PURPLE = 'text-swatch-1-ink';
const JITTER = [
{ x: -0.3, y: 0.2 },
diff --git a/packages/web/src/app/routes/chat-with-ai/components/onboarding-question-card.tsx b/packages/web/src/app/routes/chat-with-ai/components/onboarding-question-card.tsx
index 95c2864db6d..8d628de452a 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/onboarding-question-card.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/onboarding-question-card.tsx
@@ -10,6 +10,7 @@ import {
useState,
} from 'react';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { Button } from '@/components/ui/button';
import { useCompanySuggestions } from '@/features/chat/lib/use-company-suggestions';
import { userHooks } from '@/hooks/user-hooks';
@@ -117,7 +118,7 @@ export function OnboardingQuestionCard({
/>
<span>{t('at')}</span>
{companyLocked ? (
- <span className="text-foreground/80">{company}</span>
+ <span className="text-gray-12/80">{company}</span>
) : (
<OnboardingPill
inputRef={companyRef}
@@ -270,7 +271,7 @@ function OnboardingPill({
autoFocus={autoFocus}
autoComplete="off"
spellCheck={false}
- className="col-start-1 row-start-1 w-full min-w-0 max-w-full rounded-lg bg-muted/60 px-3.5 py-1.5 text-foreground caret-primary ring-1 ring-transparent transition-[background-color,box-shadow] placeholder:text-muted-foreground/50 focus:bg-primary/5 focus:outline-none focus:ring-primary/35"
+ className="col-start-1 row-start-1 w-full min-w-0 max-w-full rounded-lg bg-gray-3/60 px-3.5 py-1.5 text-gray-12 caret-accent-9 ring-1 ring-transparent transition-[background-color,box-shadow] placeholder:text-gray-11 focus:bg-accent-3 focus:outline-none focus:ring-accent-8/50"
/>
{rotating && (
<span className="pointer-events-none absolute inset-0 flex items-center overflow-hidden px-3.5">
@@ -279,7 +280,7 @@ function OnboardingPill({
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 0.6, ease: 'easeInOut' }}
- className="truncate font-normal text-muted-foreground/50"
+ className="truncate font-normal text-gray-11"
>
{example}
</motion.span>
@@ -291,7 +292,7 @@ function OnboardingPill({
role="listbox"
aria-label={ariaLabel}
onMouseDown={(e) => e.preventDefault()}
- className="absolute left-0 top-full z-20 mt-2 max-h-56 w-max min-w-full max-w-[19rem] overflow-y-auto rounded-xl border border-border bg-popover p-1 font-sans text-sm font-normal text-popover-foreground shadow-lg"
+ className="absolute left-0 top-full z-20 mt-2 max-h-56 w-max min-w-full max-w-[19rem] overflow-y-auto rounded-xl border border-gray-6 bg-panel p-1 font-sans text-sm font-normal text-gray-12 shadow-lg"
>
{suggestions.map((suggestion, index) => (
<li
@@ -310,19 +311,20 @@ function OnboardingPill({
onMouseEnter={() => setHighlighted(index)}
className={cn(
'flex w-full items-center gap-2 rounded-lg px-2.5 py-1.5 text-left',
- index === activeIndex && 'bg-accent text-accent-foreground',
+ index === activeIndex && 'bg-gray-4 text-gray-12',
)}
>
{suggestion.logo && (
- <img
+ <LogoPlate
src={suggestion.logo}
alt=""
- className="size-4 shrink-0 rounded-sm object-contain"
+ size="xxs"
+ className="rounded-sm"
/>
)}
<span className="truncate">{suggestion.value}</span>
{suggestion.hint && (
- <span className="ml-auto shrink-0 pl-3 text-xs text-muted-foreground">
+ <span className="ml-auto shrink-0 pl-3 text-xs text-gray-11">
{suggestion.hint}
</span>
)}
diff --git a/packages/web/src/app/routes/chat-with-ai/components/onboarding-welcome.tsx b/packages/web/src/app/routes/chat-with-ai/components/onboarding-welcome.tsx
index 95d58190920..13c6a5c2a70 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/onboarding-welcome.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/onboarding-welcome.tsx
@@ -21,7 +21,7 @@ export function OnboardingWelcome() {
className="bg-clip-text font-bold leading-tight text-transparent"
style={{
backgroundImage:
- 'linear-gradient(100deg, color-mix(in oklch, var(--color-primary) 80%, #e879f9) 0%, var(--color-primary) 45%, color-mix(in oklch, var(--color-primary) 70%, #38bdf8) 100%)',
+ 'linear-gradient(100deg, color-mix(in oklch, var(--accent-9) 80%, var(--swatch-2-mark)) 0%, var(--accent-9) 45%, color-mix(in oklch, var(--accent-9) 70%, var(--swatch-11-mark)) 100%)',
}}
>
{t('Who am I teaming up with?')}
@@ -32,7 +32,7 @@ export function OnboardingWelcome() {
initial={{ opacity: 0, y: 10 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.45, ease: 'easeOut', delay: 0.25 }}
- className="max-w-xl text-base leading-relaxed text-foreground"
+ className="max-w-xl text-base leading-relaxed text-gray-12"
>
{t(
"I'm your AI teammate — research, emails, whole automations, run end to end. Tell me who you are and I'll line up examples built just for you.",
diff --git a/packages/web/src/app/routes/chat-with-ai/components/personalization-chip.tsx b/packages/web/src/app/routes/chat-with-ai/components/personalization-chip.tsx
index 4515e9b584d..a4286cfbbec 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/personalization-chip.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/personalization-chip.tsx
@@ -23,12 +23,12 @@ export function PersonalizationChip({
animate={{ opacity: 1, y: 0 }}
exit={{ opacity: 0, y: 6 }}
transition={{ duration: 0.2 }}
- className="group inline-flex max-w-full items-center rounded-full border bg-background text-xs font-medium text-foreground/80 shadow-sm transition-colors hover:border-primary/40"
+ className="group inline-flex max-w-full items-center rounded-full border bg-gray-1 text-xs font-medium text-gray-12/80 shadow-sm transition-colors hover:border-accent-7"
>
<button
type="button"
onClick={onClick}
- className="inline-flex min-w-0 items-center gap-1.5 py-1 pl-2.5 pr-3 transition-colors hover:text-foreground"
+ className="inline-flex min-w-0 items-center gap-1.5 py-1 pl-2.5 pr-3 transition-colors hover:text-gray-12"
>
<ChipIcon state={state} />
<span className="truncate">{chipLabel({ state, role, company })}</span>
@@ -37,9 +37,9 @@ export function PersonalizationChip({
<button
type="button"
onClick={onClear}
- className="max-w-0 shrink-0 overflow-hidden opacity-0 transition-all duration-300 ease-out focus-visible:outline-none group-hover:max-w-16 group-hover:opacity-100 group-focus-within:max-w-16 group-focus-within:opacity-100"
+ className="max-w-0 shrink-0 overflow-hidden opacity-0 transition-all duration-300 focus-visible:outline-none group-hover:max-w-16 group-hover:opacity-100 group-focus-within:max-w-16 group-focus-within:opacity-100"
>
- <span className="flex items-center whitespace-nowrap border-l py-1 pl-2.5 pr-3 text-muted-foreground transition-colors hover:text-destructive">
+ <span className="flex items-center whitespace-nowrap border-l py-1 pl-2.5 pr-3 text-gray-11 transition-colors hover:text-danger-11">
{t('Clear')}
</span>
</button>
@@ -50,15 +50,17 @@ export function PersonalizationChip({
function ChipIcon({ state }: { state: PersonalizationChipState }) {
if (state === 'researching') {
- return <Loader2 className="size-3.5 shrink-0 animate-spin text-primary" />;
+ return (
+ <Loader2 className="size-3.5 shrink-0 animate-spin text-accent-11" />
+ );
}
if (state === 'failed') {
- return <RotateCcw className="size-3.5 shrink-0 text-muted-foreground" />;
+ return <RotateCcw className="size-3.5 shrink-0 text-gray-11" />;
}
if (state === 'ready') {
- return <UserRound className="size-3.5 shrink-0 text-muted-foreground" />;
+ return <UserRound className="size-3.5 shrink-0 text-gray-11" />;
}
- return <Sparkles className="size-3.5 shrink-0 text-primary" />;
+ return <Sparkles className="size-3.5 shrink-0 text-accent-11" />;
}
function chipLabel({
diff --git a/packages/web/src/app/routes/chat-with-ai/components/previews/code-file-preview.tsx b/packages/web/src/app/routes/chat-with-ai/components/previews/code-file-preview.tsx
index 6775a31466d..003b7dbc46e 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/previews/code-file-preview.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/previews/code-file-preview.tsx
@@ -18,7 +18,7 @@ export function CodeFilePreview({
return (
<CodeBlock className="my-3">
<CodeBlockGroup className="border-b px-3 py-1.5">
- <span className="font-mono text-xs text-muted-foreground">
+ <span className="font-mono text-xs text-gray-11">
{language !== 'plaintext' ? language : ''}
</span>
<div className="flex items-center gap-0.5">
diff --git a/packages/web/src/app/routes/chat-with-ai/components/previews/email-preview.tsx b/packages/web/src/app/routes/chat-with-ai/components/previews/email-preview.tsx
index 759d027e061..387b1533f20 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/previews/email-preview.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/previews/email-preview.tsx
@@ -57,8 +57,8 @@ export function EmailPreview({
const emailBody = (
<div className="px-4 py-3">
{subject && (
- <div className="mb-3 border-b border-border pb-3">
- <span className="text-xs font-medium uppercase tracking-wide text-muted-foreground">
+ <div className="mb-3 border-b border-gray-6 pb-3">
+ <span className="text-xs font-medium uppercase tracking-wide text-gray-11">
{t('Subject')}
</span>
<p className="mt-0.5 text-sm font-semibold">{subject}</p>
diff --git a/packages/web/src/app/routes/chat-with-ai/components/previews/html-preview.tsx b/packages/web/src/app/routes/chat-with-ai/components/previews/html-preview.tsx
index ef6703dcc19..59d2f142c1f 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/previews/html-preview.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/previews/html-preview.tsx
@@ -82,7 +82,7 @@ export function HtmlPreview({
label={label ?? t('HTML template')}
actions={actions}
toolbar={
- <div className="border-b border-border px-3 py-2">
+ <div className="border-b border-gray-6 px-3 py-2">
<Tabs
value={tab}
onValueChange={(v) => setTab(v as 'preview' | 'code')}
diff --git a/packages/web/src/app/routes/chat-with-ai/components/previews/preview-card.tsx b/packages/web/src/app/routes/chat-with-ai/components/previews/preview-card.tsx
index baa9d69615a..ff0e6d11dca 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/previews/preview-card.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/previews/preview-card.tsx
@@ -59,17 +59,17 @@ export function PreviewCard({
return (
<motion.div
className={cn(
- 'my-3 w-full overflow-hidden rounded-xl border bg-card',
+ 'my-3 w-full overflow-hidden rounded-xl border bg-panel',
className,
)}
initial={{ opacity: 0, y: 12 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.3 }}
>
- <div className="flex items-center justify-between gap-2 border-b border-border px-3 py-2">
+ <div className="flex items-center justify-between gap-2 border-b border-gray-6 px-3 py-2">
<div className="flex min-w-0 items-center gap-2">
- <Icon className="size-4 shrink-0 text-muted-foreground" />
- <span className="truncate text-xs font-medium text-muted-foreground">
+ <Icon className="size-4 shrink-0 text-gray-11" />
+ <span className="truncate text-xs font-medium text-gray-11">
{label}
</span>
</div>
@@ -92,7 +92,7 @@ export function PreviewCard({
<DialogContent className="flex h-[85vh] w-[90vw] max-w-5xl flex-col gap-3">
<DialogHeader>
<DialogTitle className="flex items-center gap-2">
- <Icon className="size-4 text-muted-foreground" />
+ <Icon className="size-4 text-gray-11" />
{label}
</DialogTitle>
</DialogHeader>
diff --git a/packages/web/src/app/routes/chat-with-ai/components/previews/spreadsheet-preview.tsx b/packages/web/src/app/routes/chat-with-ai/components/previews/spreadsheet-preview.tsx
index fbca69ba9a5..a73cdb5cd55 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/previews/spreadsheet-preview.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/previews/spreadsheet-preview.tsx
@@ -27,11 +27,11 @@ function SpreadsheetTable({
<div className={cn('overflow-auto', className)}>
<table className="w-full table-fixed text-sm">
<thead className="sticky top-0 z-10">
- <tr className="border-b border-border bg-muted">
+ <tr className="border-b border-gray-6 bg-gray-3">
{table.headers.map((header, i) => (
<th
key={i}
- className="break-words bg-muted px-3 py-2 text-left align-top font-medium text-muted-foreground"
+ className="break-words bg-gray-3 px-3 py-2 text-left align-top font-medium text-gray-11"
>
{header}
</th>
@@ -42,14 +42,12 @@ function SpreadsheetTable({
{rows.map((row, rowIdx) => (
<tr
key={rowIdx}
- className="border-b border-border transition-colors last:border-b-0 hover:bg-accent/30"
+ className="border-b border-gray-6 transition-colors last:border-b-0 hover:bg-gray-4/30"
>
{row.map((cell, colIdx) => (
<td key={colIdx} className="px-3 py-2 align-top">
{cell === '' ? (
- <span className="italic text-muted-foreground/40">
- {t('empty')}
- </span>
+ <span className="italic text-gray-11">{t('empty')}</span>
) : (
<span className="whitespace-pre-wrap break-words">
{cell}
@@ -62,7 +60,7 @@ function SpreadsheetTable({
</tbody>
</table>
{truncated && (
- <div className="border-t border-border px-3 py-2 text-xs text-muted-foreground">
+ <div className="border-t border-gray-6 px-3 py-2 text-xs text-gray-11">
{t('Showing {shown} of {total} rows — expand to see all', {
shown: rows.length,
total: totalRows,
diff --git a/packages/web/src/app/routes/chat-with-ai/components/previews/svg-preview.tsx b/packages/web/src/app/routes/chat-with-ai/components/previews/svg-preview.tsx
index d708da6dc04..4d881b8b5d0 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/previews/svg-preview.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/previews/svg-preview.tsx
@@ -48,7 +48,7 @@ export function SvgPreview({ svg }: { svg: string }) {
label={t('SVG')}
actions={actions}
toolbar={
- <div className="border-b border-border px-3 py-2">
+ <div className="border-b border-gray-6 px-3 py-2">
<Tabs
value={tab}
onValueChange={(v) => setTab(v as 'preview' | 'code')}
diff --git a/packages/web/src/app/routes/chat-with-ai/components/produced-file-card.tsx b/packages/web/src/app/routes/chat-with-ai/components/produced-file-card.tsx
index ad6081141cf..f9db8c5c17b 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/produced-file-card.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/produced-file-card.tsx
@@ -65,17 +65,17 @@ function FileChip({ file }: { file: FileProducedEvent }) {
const size = formatBytes(file.byteSize);
return (
<motion.div
- className="flex max-w-md items-center gap-3 rounded-xl border bg-card p-3"
+ className="flex max-w-md items-center gap-3 rounded-xl border bg-panel p-3"
initial={{ opacity: 0, y: 12 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.3 }}
>
- <div className="flex size-9 shrink-0 items-center justify-center rounded-lg bg-muted">
- <FileIcon className="size-4 text-muted-foreground" />
+ <div className="flex size-9 shrink-0 items-center justify-center rounded-lg bg-gray-3">
+ <FileIcon className="size-4 text-gray-11" />
</div>
<div className="min-w-0 flex-1">
<p className="truncate text-sm font-medium">{label}</p>
- <p className="truncate text-xs text-muted-foreground">
+ <p className="truncate text-xs text-gray-11">
{file.mediaType}
{size ? ` · ${size}` : ''}
</p>
@@ -118,7 +118,7 @@ export function ProducedFileCard({ file }: { file: FileProducedEvent }) {
return (
<>
<motion.div
- className="max-w-md overflow-hidden rounded-xl border bg-card"
+ className="max-w-md overflow-hidden rounded-xl border bg-panel"
initial={{ opacity: 0, y: 12 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.3 }}
@@ -131,7 +131,7 @@ export function ProducedFileCard({ file }: { file: FileProducedEvent }) {
<img src={file.url} alt={label} className="h-auto w-full" />
</button>
<div className="flex items-center justify-between gap-2 p-2">
- <p className="min-w-0 truncate text-xs text-muted-foreground">
+ <p className="min-w-0 truncate text-xs text-gray-11">
{label}
{size ? ` · ${size}` : ''}
</p>
@@ -154,10 +154,10 @@ export function ProducedFileCard({ file }: { file: FileProducedEvent }) {
if (canPreview && !isError) {
if (isLoading || content === undefined) {
return (
- <div className="w-full overflow-hidden rounded-xl border bg-card">
- <div className="flex items-center gap-2 border-b border-border px-3 py-2">
- <FileIcon className="size-4 shrink-0 text-muted-foreground" />
- <span className="truncate text-xs font-medium text-muted-foreground">
+ <div className="w-full overflow-hidden rounded-xl border bg-panel">
+ <div className="flex items-center gap-2 border-b border-gray-6 px-3 py-2">
+ <FileIcon className="size-4 shrink-0 text-gray-11" />
+ <span className="truncate text-xs font-medium text-gray-11">
{label}
</span>
</div>
diff --git a/packages/web/src/app/routes/chat-with-ai/components/project-picker-card.tsx b/packages/web/src/app/routes/chat-with-ai/components/project-picker-card.tsx
index c6b2d17d13a..ed0e05d59ba 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/project-picker-card.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/project-picker-card.tsx
@@ -105,13 +105,13 @@ export function ProjectPickerCard({
}
const titleNode = (
- <span className="block text-base font-semibold leading-snug text-foreground">
+ <span className="block text-base font-semibold leading-snug text-gray-12">
{title}
</span>
);
const answerRow = (
- <div className="mt-4 border-t border-border/60 pt-3">
+ <div className="mt-4 border-t border-gray-6/60 pt-3">
<ChatAnswerInputRow
fieldId={fieldId}
value={answer}
@@ -230,7 +230,7 @@ function ProjectGrid({ projects, search, onSelect }: ProjectGridProps) {
if (filtered.length === 0) {
return (
- <div className="mt-3 py-8 text-center text-sm text-muted-foreground">
+ <div className="mt-3 py-8 text-center text-sm text-gray-11">
{t('No project found.')}
</div>
);
@@ -244,7 +244,7 @@ function ProjectGrid({ projects, search, onSelect }: ProjectGridProps) {
key={project.id}
type="button"
onClick={() => onSelect(project.id, name)}
- className="group flex items-center justify-between gap-3 rounded-xl border bg-background px-5 py-4 text-left transition-colors hover:border-foreground/30"
+ className="group flex items-center justify-between gap-3 rounded-xl border bg-gray-1 px-5 py-4 text-left transition-colors hover:border-gray-7"
>
<ApProjectDisplay
title={name}
@@ -254,7 +254,7 @@ function ProjectGrid({ projects, search, onSelect }: ProjectGridProps) {
titleClassName="text-sm"
framePersonalIcon
/>
- <span className="inline-flex h-7 min-w-12 shrink-0 items-center justify-center rounded-lg bg-muted px-3 text-sm font-medium text-foreground transition-colors group-hover:bg-muted-foreground/15">
+ <span className="inline-flex h-7 min-w-12 shrink-0 items-center justify-center rounded-lg bg-gray-3 px-3 text-sm font-medium text-gray-12 transition-colors group-hover:bg-gray-4">
{t('Use')}
</span>
</button>
diff --git a/packages/web/src/app/routes/chat-with-ai/components/question-inputs/question-icon.tsx b/packages/web/src/app/routes/chat-with-ai/components/question-inputs/question-icon.tsx
index 04b2f9839ba..d25b4fea926 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/question-inputs/question-icon.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/question-inputs/question-icon.tsx
@@ -209,12 +209,12 @@ export function OptionIcon({
<span
aria-hidden
className={cn(
- 'flex shrink-0 items-center justify-center bg-muted-foreground/10 text-muted-foreground transition-colors',
+ 'flex shrink-0 items-center justify-center bg-gray-5 text-gray-11 transition-colors',
variant === 'grid' ? 'size-10 rounded-lg' : 'size-8 rounded-md',
selected &&
(variant === 'grid'
- ? 'bg-primary/15 text-primary'
- : 'bg-foreground text-background'),
+ ? 'bg-accent-5 text-accent-11'
+ : 'bg-gray-12 text-gray-1'),
)}
>
<DynamicLucideIcon
diff --git a/packages/web/src/app/routes/chat-with-ai/components/question-inputs/rich-question-input.tsx b/packages/web/src/app/routes/chat-with-ai/components/question-inputs/rich-question-input.tsx
index 0b737b3268b..1cbb71ff876 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/question-inputs/rich-question-input.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/question-inputs/rich-question-input.tsx
@@ -47,14 +47,14 @@ function MultiChoiceInput({
onClick={() => toggle(option.label)}
aria-pressed={selected}
className={cn(
- 'group flex items-center gap-3 rounded-xl border border-border/60 px-3 py-2 text-start text-sm transition-colors hover:bg-muted',
- selected && 'border-primary/40 bg-primary/5',
+ 'group flex items-center gap-3 rounded-xl border border-gray-6/60 px-3 py-2 text-start text-sm transition-colors hover:bg-gray-3',
+ selected && 'border-accent-7 bg-accent-3',
)}
>
<span
className={cn(
- 'flex size-5 shrink-0 items-center justify-center rounded-md border border-border transition-colors',
- selected && 'border-primary bg-primary text-primary-foreground',
+ 'flex size-5 shrink-0 items-center justify-center rounded-md border border-gray-6 transition-colors',
+ selected && 'border-accent-9 bg-accent-9 text-on-accent',
)}
>
{selected && <Check className="size-3.5" />}
@@ -70,14 +70,14 @@ function MultiChoiceInput({
option.icon && (
<DynamicLucideIcon
name={option.icon}
- className="size-4 text-muted-foreground"
+ className="size-4 text-gray-11"
/>
)
)}
<span className="flex-1 min-w-0 leading-snug">
<span className="block truncate">{option.label}</span>
{option.description && (
- <span className="block truncate text-xs text-muted-foreground">
+ <span className="block truncate text-xs text-gray-11">
{option.description}
</span>
)}
@@ -107,13 +107,13 @@ function SliderInput({
return (
<div className="px-1">
<div className="mb-4 flex items-baseline justify-between">
- <span className="text-2xl font-semibold tabular-nums text-foreground">
+ <span className="text-2xl font-semibold tabular-nums text-gray-12">
{value}
{unit ? (
- <span className="ms-1 text-base text-muted-foreground">{unit}</span>
+ <span className="ms-1 text-base text-gray-11">{unit}</span>
) : null}
</span>
- <span className="text-xs tabular-nums text-muted-foreground">
+ <span className="text-xs tabular-nums text-gray-11">
{min}
{' – '}
{max}
@@ -150,9 +150,9 @@ function ColorInput({
aria-label={hex}
onClick={() => onChange(hex)}
className={cn(
- 'size-8 rounded-full border border-border/60 transition-transform hover:scale-110',
+ 'size-8 rounded-full border border-gray-6/60 transition-transform hover:scale-110',
value.toLowerCase() === hex.toLowerCase() &&
- 'ring-2 ring-primary ring-offset-2 ring-offset-background',
+ 'ring-2 ring-accent-9 ring-offset-2 ring-offset-gray-1',
)}
style={{ backgroundColor: hex }}
/>
@@ -169,7 +169,7 @@ function ColorInput({
<div className="flex items-center gap-2">
<span
aria-hidden
- className="size-7 shrink-0 rounded-md border border-border/60"
+ className="size-7 shrink-0 rounded-md border border-gray-6/60"
style={{ backgroundColor: value }}
/>
<Input
diff --git a/packages/web/src/app/routes/chat-with-ai/components/quick-replies.tsx b/packages/web/src/app/routes/chat-with-ai/components/quick-replies.tsx
index a315ec75989..4fb2631b382 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/quick-replies.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/quick-replies.tsx
@@ -33,7 +33,7 @@ export function QuickReplies({
key={`${i}-${reply}`}
type="button"
onClick={() => onSend(reply)}
- className="flex w-full items-start gap-2 text-left text-sm text-muted-foreground hover:text-foreground transition-colors cursor-pointer min-w-0 pl-1"
+ className="flex w-full items-start gap-2 text-left text-sm text-gray-11 hover:text-gray-12 transition-colors cursor-pointer min-w-0 pl-1"
initial={{ opacity: 0, y: 6 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.25, delay: i * 0.06, ease: 'easeOut' }}
diff --git a/packages/web/src/app/routes/chat-with-ai/components/search-apps-animation.tsx b/packages/web/src/app/routes/chat-with-ai/components/search-apps-animation.tsx
index 1a98f3930b7..2ba600d297f 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/search-apps-animation.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/search-apps-animation.tsx
@@ -1,6 +1,7 @@
import { Search } from 'lucide-react';
import { memo, useMemo } from 'react';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { TextShimmer } from '@/components/ui/text-shimmer';
import { piecesHooks } from '@/features/pieces/hooks/pieces-hooks';
import { cn } from '@/lib/utils';
@@ -32,8 +33,8 @@ export const SearchAppsAnimation = memo(function SearchAppsAnimation({
}, [pool]);
return (
- <div className="inline-flex items-center gap-2 rounded-lg border border-border px-4 py-1.5">
- <Search className="size-4 shrink-0 text-muted-foreground" />
+ <div className="inline-flex items-center gap-2 rounded-lg border border-gray-6 px-4 py-1.5">
+ <Search className="size-4 shrink-0 text-gray-11" />
<TextShimmer as="span" className="text-sm" duration={2}>
{label}
</TextShimmer>
@@ -67,11 +68,11 @@ function Slot({
style={{ animationDuration: `${pool.length * MS_PER_LOGO}ms` }}
>
{strip.map((piece, index) => (
- <img
+ <LogoPlate
key={`${piece.name}-${index}`}
src={piece.logoUrl}
alt=""
- className="size-5 shrink-0 object-contain p-0.5"
+ className="size-5 rounded-sm p-0.5"
/>
))}
</div>
diff --git a/packages/web/src/app/routes/chat-with-ai/components/showcase-card/showcase-card.tsx b/packages/web/src/app/routes/chat-with-ai/components/showcase-card/showcase-card.tsx
index f1466297101..d2c38f8b36c 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/showcase-card/showcase-card.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/showcase-card/showcase-card.tsx
@@ -36,7 +36,7 @@ export function ShowcaseCard({
return (
<motion.div
className={cn(
- 'overflow-hidden rounded-2xl border bg-background shadow-sm dark:bg-neutral-900',
+ 'overflow-hidden rounded-2xl border bg-panel shadow-sm',
!isList && 'p-4 sm:p-5',
)}
initial={
@@ -47,16 +47,14 @@ export function ShowcaseCard({
>
{!isList && (
<>
- <h3 className="text-base font-semibold leading-snug text-foreground">
+ <h3 className="text-base font-semibold leading-snug text-gray-12">
{content.headline}
{streaming && !hasHeadline && (
- <span className="inline-block h-4 w-32 animate-pulse rounded bg-muted align-middle" />
+ <span className="inline-block h-4 w-32 animate-pulse rounded bg-gray-3 align-middle" />
)}
</h3>
{content.subhead && (
- <p className="mt-1 text-sm text-muted-foreground">
- {content.subhead}
- </p>
+ <p className="mt-1 text-sm text-gray-11">{content.subhead}</p>
)}
</>
)}
@@ -64,7 +62,7 @@ export function ShowcaseCard({
<div
className={cn(
'grid grid-cols-1',
- isList ? 'divide-y divide-border/60' : 'mt-4 gap-2.5 sm:grid-cols-2',
+ isList ? 'divide-y divide-gray-6/60' : 'mt-4 gap-2.5 sm:grid-cols-2',
)}
>
{tiles.map((tile, i) => (
@@ -84,18 +82,18 @@ export function ShowcaseCard({
'flex w-full animate-pulse items-center',
isList
? 'gap-4 px-4 py-4 sm:px-5'
- : 'gap-3 rounded-xl border bg-background p-3',
+ : 'gap-3 rounded-xl border bg-gray-1 p-3',
)}
>
<div
className={cn(
- 'shrink-0 bg-muted',
+ 'shrink-0 bg-gray-3',
isList ? 'size-8 rounded-md' : 'size-10 rounded-lg',
)}
/>
<div className="min-w-0 flex-1 space-y-2">
- <div className="h-4 w-1/3 rounded bg-muted" />
- <div className="h-3 w-3/5 rounded bg-muted" />
+ <div className="h-4 w-1/3 rounded bg-gray-3" />
+ <div className="h-3 w-3/5 rounded bg-gray-3" />
</div>
</div>
)}
diff --git a/packages/web/src/app/routes/chat-with-ai/components/showcase-card/showcase-tile.tsx b/packages/web/src/app/routes/chat-with-ai/components/showcase-card/showcase-tile.tsx
index 27f7599cee5..6aa639c2b90 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/showcase-card/showcase-tile.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/showcase-card/showcase-tile.tsx
@@ -31,13 +31,13 @@ export function ShowcaseTile({
'flex w-full items-start text-left',
isList
? 'items-center gap-4 px-4 py-4 sm:px-5'
- : 'gap-3 rounded-xl border bg-background p-3',
+ : 'gap-3 rounded-xl border bg-gray-1 p-3',
clickable &&
cn(
'group cursor-pointer transition-colors duration-150',
isList
- ? 'hover:bg-muted/50'
- : 'hover:border-primary/35 hover:bg-primary/5',
+ ? 'hover:bg-gray-3/50'
+ : 'hover:border-accent-7 hover:bg-accent-3',
),
);
@@ -48,7 +48,7 @@ export function ShowcaseTile({
{iconPending ? (
<span
className={cn(
- 'shrink-0 animate-pulse bg-muted',
+ 'shrink-0 animate-pulse bg-gray-3',
isList ? 'size-8 rounded-md' : 'size-10 rounded-lg',
)}
/>
@@ -63,7 +63,7 @@ export function ShowcaseTile({
<TextWithTooltip tooltipMessage={tile.title}>
<p
className={cn(
- 'truncate text-foreground',
+ 'truncate text-gray-12',
isList
? 'font-serif text-lg font-bold leading-snug'
: 'text-sm font-medium',
@@ -74,7 +74,7 @@ export function ShowcaseTile({
</TextWithTooltip>
<p
className={cn(
- 'mt-0.5 leading-snug text-muted-foreground',
+ 'mt-0.5 leading-snug text-gray-11',
isList ? 'text-sm line-clamp-1' : 'text-xs line-clamp-2',
)}
>
@@ -84,7 +84,7 @@ export function ShowcaseTile({
{clickable && isList && (
<ArrowRight
aria-hidden
- className="size-4 shrink-0 translate-x-1 text-primary opacity-0 transition-all duration-200 group-hover:translate-x-0 group-hover:opacity-100"
+ className="size-4 shrink-0 translate-x-1 text-accent-11 opacity-0 transition-all duration-200 group-hover:translate-x-0 group-hover:opacity-100"
/>
)}
</>
diff --git a/packages/web/src/app/routes/chat-with-ai/components/tool-shimmer-pills.tsx b/packages/web/src/app/routes/chat-with-ai/components/tool-shimmer-pills.tsx
index 023b5146fd9..7777f702cff 100644
Binary files a/packages/web/src/app/routes/chat-with-ai/components/tool-shimmer-pills.tsx and b/packages/web/src/app/routes/chat-with-ai/components/tool-shimmer-pills.tsx differ
diff --git a/packages/web/src/app/routes/chat-with-ai/components/user-message.tsx b/packages/web/src/app/routes/chat-with-ai/components/user-message.tsx
index d0279b78d26..8ddf27b5dd5 100644
--- a/packages/web/src/app/routes/chat-with-ai/components/user-message.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/components/user-message.tsx
@@ -49,13 +49,13 @@ export const UserMessage = memo(function UserMessage({
>
<div className="max-w-[80%]">
<Message className="flex-row-reverse">
- <div className="bg-muted rounded-2xl rounded-br-md px-2.5 py-1 text-sm">
+ <div className="bg-gray-3 rounded-2xl rounded-br-md px-2.5 py-1 text-sm">
{fileNames.length > 0 && (
<div className="flex flex-wrap gap-1.5 mb-1.5">
{fileNames.map((name, i) => (
<span
key={i}
- className="inline-flex items-center gap-1 rounded-md bg-background/60 px-2 py-0.5 text-xs text-muted-foreground"
+ className="inline-flex items-center gap-1 rounded-md bg-gray-1/60 px-2 py-0.5 text-xs text-gray-11"
>
<Paperclip className="size-3" />
<span className="max-w-[150px] truncate">{name}</span>
diff --git a/packages/web/src/app/routes/chat-with-ai/conversation-list.tsx b/packages/web/src/app/routes/chat-with-ai/conversation-list.tsx
index e56b22ecb26..8aa8024d68c 100644
--- a/packages/web/src/app/routes/chat-with-ai/conversation-list.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/conversation-list.tsx
@@ -146,7 +146,7 @@ export function ConversationList({
<div className="mb-2 flex flex-col gap-px">
<button
type="button"
- className="flex items-center gap-0.5 rounded-md bg-transparent border-none cursor-pointer text-[11px] font-semibold px-2 py-1 uppercase tracking-wider text-muted-foreground transition-colors hover:text-foreground"
+ className="flex items-center gap-0.5 rounded-md bg-transparent border-none cursor-pointer text-[11px] font-semibold px-2 py-1 uppercase tracking-wider text-gray-11 transition-colors hover:text-gray-12"
onClick={() => toggleGroup(label)}
>
{label}
@@ -166,10 +166,10 @@ export function ConversationList({
type="button"
key={conv.id}
className={cn(
- 'group flex items-center w-full px-2 py-1.5 rounded-md bg-transparent border-none cursor-pointer text-left text-xs transition-colors hover:bg-muted relative',
+ 'group flex items-center w-full px-2 py-1.5 rounded-md bg-transparent border-none cursor-pointer text-left text-xs transition-colors hover:bg-gray-3 relative',
mobile && 'px-3 py-2.5 text-sm',
selectedId === conv.id &&
- 'bg-muted font-semibold border-l-2 border-l-primary',
+ 'bg-gray-3 font-semibold border-l-2 border-l-accent-9',
)}
onClick={() => handleClick(conv)}
>
@@ -189,7 +189,7 @@ export function ConversationList({
role="button"
tabIndex={0}
className={cn(
- 'absolute right-1 top-1/2 -translate-y-1/2 opacity-0 group-hover:opacity-100 p-1 rounded-md text-muted-foreground hover:text-destructive hover:bg-destructive/10 transition-all',
+ 'absolute right-1 top-1/2 -translate-y-1/2 opacity-0 group-hover:opacity-100 p-1 rounded-md text-gray-11 hover:text-danger-11 hover:bg-danger-3 transition-all',
mobile && 'opacity-100 p-1.5',
)}
onClick={(e) => handleDelete(e, conv.id)}
@@ -225,7 +225,7 @@ export function ConversationList({
<button
type="button"
className={cn(
- 'flex grow items-center justify-between gap-1.5 px-2 py-1.5 rounded-md border border-border bg-transparent cursor-pointer text-xs text-foreground transition-colors hover:bg-accent',
+ 'flex grow items-center justify-between gap-1.5 px-2 py-1.5 rounded-md border border-gray-6 bg-transparent cursor-pointer text-xs text-gray-12 transition-colors hover:bg-gray-4',
mobile && 'px-3 py-2.5 text-sm',
)}
onClick={() => {
@@ -244,7 +244,7 @@ export function ConversationList({
</div>
{allConversations.length > 5 && (
<div className="relative">
- <Search className="absolute left-2 top-1/2 -translate-y-1/2 h-3 w-3 text-muted-foreground" />
+ <Search className="absolute left-2 top-1/2 -translate-y-1/2 h-3 w-3 text-gray-11" />
<Input
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
@@ -259,12 +259,12 @@ export function ConversationList({
</div>
<div className="flex-1 relative min-h-0">
{showTopFade && (
- <div className="absolute top-0 left-0 right-0 h-5 pointer-events-none z-[1] bg-gradient-to-b from-background to-transparent" />
+ <div className="absolute top-0 left-0 right-0 h-5 pointer-events-none z-[1] bg-gradient-to-b from-gray-1 to-transparent" />
)}
<div
ref={listRef}
onScroll={checkFades}
- className="h-full overflow-y-auto px-2 pb-3 scrollbar-thin"
+ className="h-full overflow-y-auto px-2 pb-3"
>
{isLoadingConversations ? (
<div className="space-y-2 px-2 pt-2">
@@ -274,8 +274,8 @@ export function ConversationList({
</div>
) : conversations.length === 0 ? (
<div className="flex flex-col items-center justify-center py-8 px-4 text-center">
- <MessageSquare className="h-8 w-8 text-muted-foreground/30 mb-2" />
- <p className="text-xs text-muted-foreground">
+ <MessageSquare className="h-8 w-8 text-gray-9 mb-2" />
+ <p className="text-xs text-gray-11">
{searchQuery.trim()
? t('No chats found')
: t('Start your first chat')}
@@ -290,7 +290,7 @@ export function ConversationList({
)}
</div>
{showBottomFade && (
- <div className="absolute bottom-0 left-0 right-0 h-[70px] pointer-events-none z-[1] bg-gradient-to-t from-background to-transparent" />
+ <div className="absolute bottom-0 left-0 right-0 h-[70px] pointer-events-none z-[1] bg-gradient-to-t from-gray-1 to-transparent" />
)}
</div>
{agentId === undefined && (
@@ -298,7 +298,7 @@ export function ConversationList({
<button
type="button"
className={cn(
- 'flex items-center gap-1.5 w-full px-2 py-1.5 rounded-md bg-transparent cursor-pointer text-xs text-foreground transition-colors hover:bg-accent',
+ 'flex items-center gap-1.5 w-full px-2 py-1.5 rounded-md bg-transparent cursor-pointer text-xs text-gray-12 transition-colors hover:bg-gray-4',
mobile && 'px-3 py-2.5 text-sm',
)}
onClick={() => setSettingsOpen(true)}
@@ -310,7 +310,7 @@ export function ConversationList({
)}
{mobile && (
<div className="shrink-0 border-t px-4 py-3">
- <p className="flex items-start gap-1.5 text-xs leading-snug text-muted-foreground">
+ <p className="flex items-start gap-1.5 text-xs leading-snug text-gray-11">
<ArrowUpRight size={14} className="mt-px shrink-0" />
{t('Open on desktop for the full Activepieces experience.')}
</p>
diff --git a/packages/web/src/app/routes/chat-with-ai/index.tsx b/packages/web/src/app/routes/chat-with-ai/index.tsx
index 42d05c54d7a..4789d559205 100644
--- a/packages/web/src/app/routes/chat-with-ai/index.tsx
+++ b/packages/web/src/app/routes/chat-with-ai/index.tsx
@@ -322,7 +322,7 @@ export function ChatWithAIPage() {
{t('Rename')}
</DropdownMenuItem>
<DropdownMenuItem
- className="text-destructive focus:text-destructive"
+ className="text-danger-11 focus:text-danger-11"
onClick={() => void handleDelete()}
>
<Trash2 className="h-4 w-4 mr-2" />
diff --git a/packages/web/src/app/routes/chat/chat-drawer.tsx b/packages/web/src/app/routes/chat/chat-drawer.tsx
index af0622ca8a9..7f3c1a05dca 100644
--- a/packages/web/src/app/routes/chat/chat-drawer.tsx
+++ b/packages/web/src/app/routes/chat/chat-drawer.tsx
@@ -75,7 +75,7 @@ export const ChatDrawer = () => {
<Button
variant="basic"
size={'icon'}
- className="text-foreground"
+ className="text-gray-12"
onClick={() => setChatDrawerOpenSource(null)}
>
<ArrowRight className="h-5 w-5" />
diff --git a/packages/web/src/app/routes/connections/index.tsx b/packages/web/src/app/routes/connections/index.tsx
index 5affb113862..ef6d2bd07a9 100644
--- a/packages/web/src/app/routes/connections/index.tsx
+++ b/packages/web/src/app/routes/connections/index.tsx
@@ -199,7 +199,7 @@ function AppConnectionsPage() {
<span className="min-w-0">{row.original.displayName}</span>
</TextWithTooltip>
{accountIdentifier && (
- <span className="truncate text-xs text-muted-foreground">
+ <span className="truncate text-xs text-gray-11">
{accountIdentifier}
</span>
)}
@@ -375,7 +375,7 @@ function AppConnectionsPage() {
<Button
variant="ghost"
size="sm"
- className="text-destructive hover:text-destructive"
+ className="text-danger-11 hover:text-danger-11"
onClick={() => setShowDeleteDialog(true)}
>
<Trash2 className="h-4 w-4 mr-1" />
diff --git a/packages/web/src/app/routes/crash-test/index.tsx b/packages/web/src/app/routes/crash-test/index.tsx
index 7f41fd90c2f..cf1196baf88 100644
--- a/packages/web/src/app/routes/crash-test/index.tsx
+++ b/packages/web/src/app/routes/crash-test/index.tsx
@@ -16,12 +16,12 @@ export const CrashTestPage = () => {
}
return (
- <div className="min-h-screen w-full bg-background flex items-start justify-center px-4 py-16">
+ <div className="min-h-screen w-full bg-gray-1 flex items-start justify-center px-4 py-16">
<div className="w-full max-w-xl flex flex-col gap-4">
- <h1 className="text-2xl font-bold tracking-tight text-foreground">
+ <h1 className="text-2xl font-bold tracking-tight text-gray-12">
Crash Test (dev only)
</h1>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
Each button exercises a different error path. Watch the console for{' '}
<code>[frontend-error]</code> logs and the Network tab for PostHog
requests.
@@ -64,7 +64,7 @@ export const CrashTestPage = () => {
</Button>
</div>
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
Note: the real stale-chunk auto-reload only happens for failed lazy
imports — simulate it via DevTools &rarr; Network &rarr; block a{' '}
<code>*.js</code> request, then navigate to an unvisited route.
diff --git a/packages/web/src/app/routes/embed/embedded-connection-dialog.tsx b/packages/web/src/app/routes/embed/embedded-connection-dialog.tsx
index 17d55dba103..550fb74dc87 100644
--- a/packages/web/src/app/routes/embed/embedded-connection-dialog.tsx
+++ b/packages/web/src/app/routes/embed/embedded-connection-dialog.tsx
@@ -140,7 +140,7 @@ const EmbeddedConnectionDialogContent = ({
{isLoadingPiece ||
(loadingPiecesOAuth2AppsMap && (
<div className="flex justify-center items-center">
- <LoadingSpinner className="stroke-background size-[50px]"></LoadingSpinner>
+ <LoadingSpinner className="stroke-gray-1 size-[50px]"></LoadingSpinner>
</div>
))}
diff --git a/packages/web/src/app/routes/embed/embedded-mcp-authorize-dialog.tsx b/packages/web/src/app/routes/embed/embedded-mcp-authorize-dialog.tsx
index feb0830d16d..9ce1db9ec73 100644
--- a/packages/web/src/app/routes/embed/embedded-mcp-authorize-dialog.tsx
+++ b/packages/web/src/app/routes/embed/embedded-mcp-authorize-dialog.tsx
@@ -91,25 +91,25 @@ export const EmbeddedMcpAuthorizeDialog = () => {
className="min-w-[400px] max-w-[440px]"
>
<DialogHeader>
- <div className="mx-auto mb-2 flex h-12 w-12 items-center justify-center rounded-full bg-primary/10">
- <Plug className="h-5 w-5 text-primary" />
+ <div className="mx-auto mb-2 flex h-12 w-12 items-center justify-center rounded-full bg-accent-3">
+ <Plug className="h-5 w-5 text-accent-11" />
</div>
<DialogTitle className="text-center text-xl">
{t('Authorize Application')}
</DialogTitle>
<DialogDescription className="text-center">
- <span className="font-semibold text-foreground">{clientName}</span>{' '}
+ <span className="font-semibold text-gray-12">{clientName}</span>{' '}
{t('wants to connect to your Activepieces account')}
</DialogDescription>
</DialogHeader>
<div className="flex flex-col gap-3">
<PermissionItem
- icon={<Workflow className="h-4 w-4 text-primary" />}
+ icon={<Workflow className="h-4 w-4 text-accent-11" />}
text={t('Build, test, and manage automations')}
/>
<PermissionItem
- icon={<Lock className="h-4 w-4 text-primary" />}
+ icon={<Lock className="h-4 w-4 text-accent-11" />}
text={t('Use connections and execute flows')}
/>
</div>
@@ -117,7 +117,7 @@ export const EmbeddedMcpAuthorizeDialog = () => {
<Separator />
{approveMutation.isError && (
- <div className="rounded-md border border-destructive/50 bg-destructive-100 p-3 text-sm text-destructive">
+ <div className="rounded-md border border-danger-7 bg-danger-3 p-3 text-sm text-danger-11">
{t('Authorization failed. Please try again.')}
</div>
)}
diff --git a/packages/web/src/app/routes/embed/index.tsx b/packages/web/src/app/routes/embed/index.tsx
index d1d1fd0a9f7..a2bcb5a35ae 100644
--- a/packages/web/src/app/routes/embed/index.tsx
+++ b/packages/web/src/app/routes/embed/index.tsx
@@ -102,7 +102,7 @@ const EmbedPage = React.memo(() => {
return data;
},
});
- const { setThemeWithoutPersisting } = useTheme();
+ const { setPreferenceWithoutPersisting } = useTheme();
const { i18n } = useTranslation();
const { checkAccess } = useAuthorization();
const initState = (event: MessageEvent<ActivepiecesVendorInit>) => {
@@ -111,7 +111,7 @@ const EmbedPage = React.memo(() => {
event.data.type === ActivepiecesVendorEventName.VENDOR_INIT
) {
if (event.data.data.jwtToken) {
- setThemeWithoutPersisting(event.data.data.mode ?? 'light');
+ setPreferenceWithoutPersisting(event.data.data.mode ?? 'light');
mutateAsync(
{
externalAccessToken: event.data.data.jwtToken,
diff --git a/packages/web/src/app/routes/flows/id/index.tsx b/packages/web/src/app/routes/flows/id/index.tsx
index ffd2bf2b5d1..c8bb3cbe137 100644
--- a/packages/web/src/app/routes/flows/id/index.tsx
+++ b/packages/web/src/app/routes/flows/id/index.tsx
@@ -38,7 +38,7 @@ const FlowBuilderPage = () => {
sampleDataHooks.useSampleDataInputForFlow(flow?.version, flow?.projectId);
if (isLoading || isSampleDataLoading || isSampleDataInputLoading) {
return (
- <div className="bg-background flex h-full w-full items-center justify-center ">
+ <div className="bg-gray-1 flex h-full w-full items-center justify-center ">
<LoadingSpinner isLarge={true}></LoadingSpinner>
</div>
);
@@ -47,13 +47,13 @@ const FlowBuilderPage = () => {
if (isNil(flow) || isError) {
return (
<div className="flex flex-col items-center justify-center h-full text-center space-y-4">
- <div className="rounded-full bg-muted p-4">
- <FileX className="size-9 text-muted-foreground" />
+ <div className="rounded-full bg-gray-3 p-4">
+ <FileX className="size-9 text-gray-11" />
</div>
<div>
<h2 className="text-lg font-semibold">{t('Flow not found')}</h2>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t("The flow you are looking for doesn't exist or was removed.")}
</p>
</div>
diff --git a/packages/web/src/app/routes/impact/components/project-select.tsx b/packages/web/src/app/routes/impact/components/project-select.tsx
index 7a8170de2bf..d79b670f413 100644
--- a/packages/web/src/app/routes/impact/components/project-select.tsx
+++ b/packages/web/src/app/routes/impact/components/project-select.tsx
@@ -102,8 +102,8 @@ export function ProjectSelect({
<div
onClick={() => handleSelect(item.id)}
className={cn(
- 'flex items-center gap-2 px-3 py-2 text-sm cursor-pointer hover:bg-accent',
- isSelected && 'bg-accent',
+ 'flex items-center gap-2 px-3 py-2 text-sm cursor-pointer hover:bg-gray-4',
+ isSelected && 'bg-gray-4',
)}
>
{isTeam && project ? (
@@ -121,7 +121,7 @@ export function ProjectSelect({
</span>
</Avatar>
) : (
- <LayoutGrid className="size-5 shrink-0 text-muted-foreground" />
+ <LayoutGrid className="size-5 shrink-0 text-gray-11" />
)}
<span className="truncate flex-1">{item.displayName}</span>
<Check
diff --git a/packages/web/src/app/routes/impact/components/time-saved-filter-content.tsx b/packages/web/src/app/routes/impact/components/time-saved-filter-content.tsx
index 73f114f5105..a11ec1e51b9 100644
--- a/packages/web/src/app/routes/impact/components/time-saved-filter-content.tsx
+++ b/packages/web/src/app/routes/impact/components/time-saved-filter-content.tsx
@@ -32,7 +32,7 @@ export function TimeSavedFilterContent({
return (
<div className="flex flex-col gap-3">
<div className="flex flex-col gap-1.5">
- <Label className="text-sm text-muted-foreground">{t('Minimum')}</Label>
+ <Label className="text-sm text-gray-11">{t('Minimum')}</Label>
<div className="relative">
<Input
type="number"
@@ -45,7 +45,7 @@ export function TimeSavedFilterContent({
<button
type="button"
onClick={onCycleUnitMin}
- className="absolute bg-accent px-1.5 py-0.5 rounded-sm right-2.5 top-1/2 -translate-y-1/2 text-xs text-muted-foreground hover:text-foreground cursor-pointer select-none"
+ className="absolute bg-gray-4 px-1.5 py-0.5 rounded-sm right-2.5 top-1/2 -translate-y-1/2 text-xs text-gray-11 hover:text-gray-12 cursor-pointer select-none"
>
{unitMin}
</button>
@@ -53,7 +53,7 @@ export function TimeSavedFilterContent({
</div>
<div className="flex flex-col gap-1.5">
- <Label className="text-sm text-muted-foreground">{t('Maximum')}</Label>
+ <Label className="text-sm text-gray-11">{t('Maximum')}</Label>
<div className="relative">
<Input
type="number"
@@ -67,7 +67,7 @@ export function TimeSavedFilterContent({
<button
type="button"
onClick={onCycleUnitMax}
- className="absolute bg-accent px-1.5 py-0.5 rounded-sm right-2.5 top-1/2 -translate-y-1/2 text-xs text-muted-foreground hover:text-foreground cursor-pointer select-none"
+ className="absolute bg-gray-4 px-1.5 py-0.5 rounded-sm right-2.5 top-1/2 -translate-y-1/2 text-xs text-gray-11 hover:text-gray-12 cursor-pointer select-none"
>
{unitMax}
</button>
diff --git a/packages/web/src/app/routes/impact/details/edit-time-saved-popover.tsx b/packages/web/src/app/routes/impact/details/edit-time-saved-popover.tsx
index f8c2d99bb69..923de9e5d07 100644
--- a/packages/web/src/app/routes/impact/details/edit-time-saved-popover.tsx
+++ b/packages/web/src/app/routes/impact/details/edit-time-saved-popover.tsx
@@ -142,7 +142,7 @@ export function EditTimeSavedPopover({
<div className="flex flex-col gap-4">
<div className="text-sm font-semibold">{t('Time Saved Per Run')}</div>
- <div className="flex items-center rounded-md border border-input bg-background px-3 py-1.5 gap-1 focus-within:ring-1 focus-within:ring-ring">
+ <div className="flex items-center rounded-md border border-gray-6 bg-gray-1 px-3 py-1.5 gap-1 focus-within:ring-1 focus-within:ring-accent-8">
<div className="flex flex-col items-center gap-0.5 flex-1">
<input
type="text"
@@ -153,12 +153,12 @@ export function EditTimeSavedPopover({
handleTimeInput(e.target.value, 'hours', 1000, minsRef)
}
onKeyDown={handleKeyDown}
- className="w-full text-center text-sm bg-transparent outline-none placeholder:text-muted-foreground/50"
+ className="w-full text-center text-sm bg-transparent outline-none placeholder:text-gray-11"
maxLength={4}
autoFocus
/>
</div>
- <span className="text-muted-foreground font-medium">:</span>
+ <span className="text-gray-11 font-medium">:</span>
<div className="flex flex-col items-center gap-0.5 flex-1">
<input
ref={minsRef}
@@ -171,11 +171,11 @@ export function EditTimeSavedPopover({
}
onBlur={() => padOnBlur('mins')}
onKeyDown={handleKeyDown}
- className="w-full text-center text-sm bg-transparent outline-none placeholder:text-muted-foreground/50"
+ className="w-full text-center text-sm bg-transparent outline-none placeholder:text-gray-11"
maxLength={2}
/>
</div>
- <span className="text-muted-foreground font-medium">:</span>
+ <span className="text-gray-11 font-medium">:</span>
<div className="flex flex-col items-center gap-0.5 flex-1">
<input
ref={secsRef}
@@ -188,13 +188,13 @@ export function EditTimeSavedPopover({
}
onBlur={() => padOnBlur('secs')}
onKeyDown={handleKeyDown}
- className="w-full text-center text-sm bg-transparent outline-none placeholder:text-muted-foreground/50"
+ className="w-full text-center text-sm bg-transparent outline-none placeholder:text-gray-11"
maxLength={2}
/>
</div>
</div>
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{t('How long this task takes without automation.')}
</p>
diff --git a/packages/web/src/app/routes/impact/details/index.tsx b/packages/web/src/app/routes/impact/details/index.tsx
index 0e5e4e8128c..a355489894f 100644
--- a/packages/web/src/app/routes/impact/details/index.tsx
+++ b/packages/web/src/app/routes/impact/details/index.tsx
@@ -88,7 +88,7 @@ export function FlowsDetails({
DASHBOARD_CONTENT_PADDING_X,
)}
>
- <Workflow className="size-4 mr-2 text-primary shrink-0" />
+ <Workflow className="size-4 mr-2 text-accent-11 shrink-0" />
<span className="truncate">{row.original.flowName}</span>
</div>
),
@@ -137,7 +137,7 @@ export function FlowsDetails({
return (
<Tooltip>
<TooltipTrigger asChild>
- <div className="flex items-center gap-1.5 text-muted-foreground cursor-not-allowed">
+ <div className="flex items-center gap-1.5 text-gray-11 cursor-not-allowed">
<Plus className="h-3.5 w-3.5" />
<span>{t('Add Estimated Time')}</span>
</div>
@@ -173,7 +173,7 @@ export function FlowsDetails({
flowId={row.original.flowId}
currentValue={timeSavedPerRun}
>
- <div className="flex items-center gap-1.5 cursor-pointer text-primary hover:underline">
+ <div className="flex items-center gap-1.5 cursor-pointer text-accent-11 hover:underline">
<Plus className="h-3.5 w-3.5" />
<span>{t('Add Estimated Time')}</span>
</div>
@@ -231,7 +231,7 @@ export function FlowsDetails({
if (userHasAccess) {
return (
- <div className="flex items-center gap-1.5 text-foreground">
+ <div className="flex items-center gap-1.5 text-gray-12">
{projectAvatar}
{projectName}
</div>
@@ -239,7 +239,7 @@ export function FlowsDetails({
}
return (
- <div className="flex items-center gap-1.5 text-muted-foreground">
+ <div className="flex items-center gap-1.5 text-gray-11">
{projectAvatar}
{projectName}
</div>
@@ -258,7 +258,7 @@ export function FlowsDetails({
<div className="flex flex-col gap-4">
<div className="flex items-center gap-3 flex-wrap">
<div className="relative w-[200px]">
- <Search className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" />
+ <Search className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-11" />
<Input
placeholder={t('Search flows')}
value={filters.searchQuery}
@@ -268,7 +268,7 @@ export function FlowsDetails({
{filters.searchQuery && (
<button
onClick={() => filters.setSearchQuery('')}
- className="absolute right-2.5 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground"
+ className="absolute right-2.5 top-1/2 -translate-y-1/2 text-gray-11 hover:text-gray-12"
>
<X className="h-3.5 w-3.5" />
</button>
@@ -297,9 +297,9 @@ export function FlowsDetails({
</div>
{flowsMissingTimeSaved > 0 && (
- <div className="flex mx-3 items-start justify-between gap-3 p-4 rounded-lg border border-warning/50 bg-warning/10">
+ <div className="flex mx-3 items-start justify-between gap-3 p-4 rounded-lg border border-warning-7 bg-warning-3">
<div className="flex items-start gap-3">
- <AlertCircle className="h-5 w-5 text-warning shrink-0 mt-0.5" />
+ <AlertCircle className="h-5 w-5 text-warning-11 shrink-0 mt-0.5" />
<div className="flex flex-col gap-1">
<p className="text-sm font-medium">
{t(
@@ -307,7 +307,7 @@ export function FlowsDetails({
{ count: flowsMissingTimeSaved },
)}
</p>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t('This will cause inaccurate analytics and unreliable data.')}
</p>
</div>
@@ -333,9 +333,7 @@ export function FlowsDetails({
? t('Try adjusting your search')
: t('Start running your flows to see time saved')
}
- emptyStateIcon={
- <Workflow className="h-10 w-10 text-muted-foreground" />
- }
+ emptyStateIcon={<Workflow className="h-10 w-10 text-gray-11" />}
/>
</div>
);
@@ -354,7 +352,7 @@ function TimeSavedFilter({ filters }: { filters: FiltersReturn }) {
<Clock className="h-4 w-4" />
<span>{t('Total Time Saved')}</span>
{filters.timeSavedLabel && (
- <span className="rounded bg-accent px-1.5 py-0.5 text-xs font-medium">
+ <span className="rounded bg-gray-5 px-1.5 py-0.5 text-xs font-medium">
{filters.timeSavedLabel}
</span>
)}
@@ -393,14 +391,14 @@ function OwnerFilter({ filters }: { filters: FiltersReturn }) {
{filters.selectedOwners.slice(0, 2).map((owner) => (
<span
key={owner.id}
- className="flex items-center gap-1 rounded bg-accent px-1.5 py-0.5 text-xs font-medium"
+ className="flex items-center gap-1 rounded bg-gray-5 px-1.5 py-0.5 text-xs font-medium"
>
<ApAvatar id={owner.id} size="xsmall" hideHover={true} />
<OwnerFullName id={owner.id} maxWidth="max-w-[80px]" />
</span>
))}
{filters.selectedOwners.length > 2 && (
- <span className="rounded bg-accent px-1.5 py-0.5 text-xs font-medium">
+ <span className="rounded bg-gray-5 px-1.5 py-0.5 text-xs font-medium">
+{filters.selectedOwners.length - 2}
</span>
)}
@@ -412,7 +410,7 @@ function OwnerFilter({ filters }: { filters: FiltersReturn }) {
<PopoverContent className="w-[240px] p-0" align="start">
<div className="p-2 border-b">
<div className="relative">
- <Search className="absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" />
+ <Search className="absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-11" />
<Input
placeholder={t('Search owners...')}
value={filters.ownerFilter.searchQuery}
@@ -428,7 +426,7 @@ function OwnerFilter({ filters }: { filters: FiltersReturn }) {
<div
key={owner.id}
onClick={() => filters.toggleOwner(owner.id)}
- className="flex items-center gap-2.5 px-3 py-2 text-sm cursor-pointer hover:bg-accent"
+ className="flex items-center gap-2.5 px-3 py-2 text-sm cursor-pointer hover:bg-gray-4"
>
<Checkbox
checked={filters.ownerFilter.selectedIds.includes(owner.id)}
@@ -439,7 +437,7 @@ function OwnerFilter({ filters }: { filters: FiltersReturn }) {
</div>
))}
{filters.filteredOwners.length === 0 && (
- <div className="py-6 text-center text-sm text-muted-foreground">
+ <div className="py-6 text-center text-sm text-gray-11">
{t('No owners found')}
</div>
)}
@@ -448,7 +446,7 @@ function OwnerFilter({ filters }: { filters: FiltersReturn }) {
<div className="p-2 border-t">
<button
onClick={() => filters.updateOwnerFilter({ selectedIds: [] })}
- className="w-full text-center text-sm text-primary hover:underline"
+ className="w-full text-center text-sm text-accent-11 hover:underline"
>
{t('Clear all')}
</button>
diff --git a/packages/web/src/app/routes/impact/index.tsx b/packages/web/src/app/routes/impact/index.tsx
index 4e4a6cf5744..bf8b8f143f7 100644
--- a/packages/web/src/app/routes/impact/index.tsx
+++ b/packages/web/src/app/routes/impact/index.tsx
@@ -113,7 +113,7 @@ export default function ImpactPage() {
<span className="text-sm font-medium">{t('Impact')}</span>
<Tooltip>
<TooltipTrigger asChild>
- <Info className="h-4 w-4 text-muted-foreground cursor-help" />
+ <Info className="h-4 w-4 text-gray-11 cursor-help" />
</TooltipTrigger>
<TooltipContent>
{t('View impact analytics and metrics for the active flows.')}
@@ -123,7 +123,7 @@ export default function ImpactPage() {
}
rightContent={
<div className="flex items-center gap-3">
- <div className="flex items-center gap-2 px-3 py-1.5 border border-dashed rounded-md text-sm text-muted-foreground">
+ <div className="flex items-center gap-2 px-3 py-1.5 border border-dashed rounded-md text-sm text-gray-11">
<span>
{t('Updated')}{' '}
{dayjs(data?.updated).format('MMM DD, hh:mm A')} —{' '}
diff --git a/packages/web/src/app/routes/impact/lib/impact-utils.ts b/packages/web/src/app/routes/impact/lib/impact-utils.ts
index e6be5b278d9..bab56837641 100644
--- a/packages/web/src/app/routes/impact/lib/impact-utils.ts
+++ b/packages/web/src/app/routes/impact/lib/impact-utils.ts
@@ -54,7 +54,7 @@ export const downloadChartAsPng = async (
if (!ref.current) return;
try {
const dataUrl = await toPng(ref.current, {
- backgroundColor: '#ffffff',
+ backgroundColor: EXPORT_BACKGROUND,
pixelRatio: 2,
});
const link = document.createElement('a');
@@ -92,3 +92,5 @@ export const exportFlowDetailsCsv = (
extension: 'csv',
});
};
+
+const EXPORT_BACKGROUND = '#ffffff';
diff --git a/packages/web/src/app/routes/impact/summary/active-flows-metric.tsx b/packages/web/src/app/routes/impact/summary/active-flows-metric.tsx
index e20ac182822..ed106fd83c5 100644
--- a/packages/web/src/app/routes/impact/summary/active-flows-metric.tsx
+++ b/packages/web/src/app/routes/impact/summary/active-flows-metric.tsx
@@ -27,8 +27,8 @@ export const ActiveFlowsMetric = ({ report }: ActiveFlowsMetricProps) => {
subtitle={t('{total} total flows created', {
total: totalFlows.toLocaleString(),
})}
- iconColor="text-purple-500"
- iconBgColor="bg-purple-500/10"
+ iconColor="text-swatch-1-mark"
+ iconBgColor="bg-swatch-1-surface"
/>
);
};
diff --git a/packages/web/src/app/routes/impact/summary/active-users-metric.tsx b/packages/web/src/app/routes/impact/summary/active-users-metric.tsx
index d703db00023..7b1fba76e08 100644
--- a/packages/web/src/app/routes/impact/summary/active-users-metric.tsx
+++ b/packages/web/src/app/routes/impact/summary/active-users-metric.tsx
@@ -31,8 +31,8 @@ export const ActiveUsersMetric = ({ report }: ActiveUsersMetricProps) => {
rate: adoptionRate,
total: totalUsers.toLocaleString(),
})}
- iconColor="text-amber-500"
- iconBgColor="bg-amber-500/10"
+ iconColor="text-swatch-6-mark"
+ iconBgColor="bg-swatch-6-surface"
/>
);
};
diff --git a/packages/web/src/app/routes/impact/summary/flow-runs-metric.tsx b/packages/web/src/app/routes/impact/summary/flow-runs-metric.tsx
index 83a7eadff9c..a23b9308e38 100644
--- a/packages/web/src/app/routes/impact/summary/flow-runs-metric.tsx
+++ b/packages/web/src/app/routes/impact/summary/flow-runs-metric.tsx
@@ -27,8 +27,8 @@ export const FlowRunsMetric = ({ report }: FlowRunsMetricProps) => {
title={t('Automation Runs')}
value={totalFlowRuns.toLocaleString()}
description={t('Total automation executions')}
- iconColor="text-rose-500"
- iconBgColor="bg-rose-500/10"
+ iconColor="text-swatch-3-mark"
+ iconBgColor="bg-swatch-3-surface"
/>
);
};
diff --git a/packages/web/src/app/routes/impact/summary/metric-card.tsx b/packages/web/src/app/routes/impact/summary/metric-card.tsx
index df99da3ff91..88c6d1c3c8e 100644
--- a/packages/web/src/app/routes/impact/summary/metric-card.tsx
+++ b/packages/web/src/app/routes/impact/summary/metric-card.tsx
@@ -32,12 +32,10 @@ export const MetricCard = ({
<Card className="p-5">
<div className="flex flex-col gap-3">
<div className="flex items-center gap-2">
- <span className="text-sm font-medium text-muted-foreground">
- {title}
- </span>
+ <span className="text-sm font-medium text-gray-11">{title}</span>
<Tooltip>
<TooltipTrigger asChild>
- <Info className="h-3.5 w-3.5 text-muted-foreground/70 cursor-help" />
+ <Info className="h-3.5 w-3.5 text-gray-11 cursor-help" />
</TooltipTrigger>
<TooltipContent className="max-w-xs">{description}</TooltipContent>
</Tooltip>
@@ -48,10 +46,8 @@ export const MetricCard = ({
</div>
</div>
<div className="flex flex-col gap-1">
- <div className="text-2xl font-semibold text-foreground">{value}</div>
- {subtitle && (
- <div className="text-sm text-muted-foreground">{subtitle}</div>
- )}
+ <div className="text-2xl font-semibold text-gray-12">{value}</div>
+ {subtitle && <div className="text-sm text-gray-11">{subtitle}</div>}
</div>
</div>
</Card>
diff --git a/packages/web/src/app/routes/impact/summary/time-saved-metric.tsx b/packages/web/src/app/routes/impact/summary/time-saved-metric.tsx
index e6b7150d2ac..47bf7a2f68c 100644
--- a/packages/web/src/app/routes/impact/summary/time-saved-metric.tsx
+++ b/packages/web/src/app/routes/impact/summary/time-saved-metric.tsx
@@ -53,8 +53,8 @@ export const TimeSavedMetric = ({
subtitle={t('{days} workdays saved', {
days: 'N/A',
})}
- iconColor="text-emerald-500"
- iconBgColor="bg-emerald-500/10"
+ iconColor="text-swatch-8-mark"
+ iconBgColor="bg-swatch-8-surface"
/>
);
}
@@ -68,8 +68,8 @@ export const TimeSavedMetric = ({
subtitle={t('{days} workdays saved', {
days: equivalentWorkdays.toLocaleString(),
})}
- iconColor="text-success"
- iconBgColor="bg-success/10"
+ iconColor="text-success-11"
+ iconBgColor="bg-success-3"
/>
);
};
diff --git a/packages/web/src/app/routes/impact/trends/analytics-area-chart.tsx b/packages/web/src/app/routes/impact/trends/analytics-area-chart.tsx
index ea05de87b54..eddb0ef3c79 100644
--- a/packages/web/src/app/routes/impact/trends/analytics-area-chart.tsx
+++ b/packages/web/src/app/routes/impact/trends/analytics-area-chart.tsx
@@ -63,7 +63,7 @@ export function AnalyticsAreaChart({
<div className="flex items-start justify-between">
<div className="space-y-0.5">
<CardTitle className="text-base font-medium">{title}</CardTitle>
- <p className="text-sm text-muted-foreground">{subtitle}</p>
+ <p className="text-sm text-gray-11">{subtitle}</p>
</div>
<Tooltip>
<TooltipTrigger asChild>
@@ -86,7 +86,7 @@ export function AnalyticsAreaChart({
) : chartData.length === 0 ? (
<div className="flex h-[300px] w-full flex-col items-center justify-center gap-2">
{emptyIcon}
- <p className="text-sm text-muted-foreground">{emptyText}</p>
+ <p className="text-sm text-gray-11">{emptyText}</p>
</div>
) : (
<ChartContainer
@@ -107,7 +107,7 @@ export function AnalyticsAreaChart({
<CartesianGrid
vertical={false}
strokeDasharray="3 3"
- stroke="hsl(var(--border))"
+ stroke="var(--gray-6)"
/>
<XAxis
dataKey="date"
@@ -115,7 +115,7 @@ export function AnalyticsAreaChart({
axisLine={false}
tickMargin={8}
minTickGap={32}
- tick={{ fill: 'hsl(var(--muted-foreground))', fontSize: 12 }}
+ tick={{ fill: 'var(--gray-11)', fontSize: 12 }}
tickFormatter={(value) =>
new Date(value).toLocaleDateString('en-US', {
month: 'short',
@@ -127,7 +127,7 @@ export function AnalyticsAreaChart({
tickLine={false}
axisLine={false}
tickMargin={8}
- tick={{ fill: 'hsl(var(--muted-foreground))', fontSize: 12 }}
+ tick={{ fill: 'var(--gray-11)', fontSize: 12 }}
width={40}
tickFormatter={yAxisFormatter}
/>
@@ -162,7 +162,7 @@ export function AnalyticsAreaChart({
r: 5,
fill: color,
strokeWidth: 2,
- stroke: '#fff',
+ stroke: 'var(--panel)',
}}
/>
</AreaChart>
diff --git a/packages/web/src/app/routes/impact/trends/runs-chart.tsx b/packages/web/src/app/routes/impact/trends/runs-chart.tsx
index b5a5ff6b174..861ccca16f9 100644
--- a/packages/web/src/app/routes/impact/trends/runs-chart.tsx
+++ b/packages/web/src/app/routes/impact/trends/runs-chart.tsx
@@ -22,11 +22,11 @@ export function RunsChart({ report }: RunsChartProps) {
subtitle={t('Track your automation execution trends')}
tooltipLabel={t('Runs')}
dataKey="runs"
- color="#8b5cf6"
+ color="var(--chart-1)"
gradientId="fillRuns"
chartData={chartData}
isLoading={!report}
- emptyIcon={<TrendingUp className="h-10 w-10 text-muted-foreground/50" />}
+ emptyIcon={<TrendingUp className="h-10 w-10 text-gray-9" />}
emptyText={t(
'No runs recorded yet. Data will appear here once your flows start running.',
)}
diff --git a/packages/web/src/app/routes/impact/trends/time-saved-chart.tsx b/packages/web/src/app/routes/impact/trends/time-saved-chart.tsx
index 449a0fcf822..f1587b63f4f 100644
--- a/packages/web/src/app/routes/impact/trends/time-saved-chart.tsx
+++ b/packages/web/src/app/routes/impact/trends/time-saved-chart.tsx
@@ -29,11 +29,11 @@ export function TimeSavedChart({ report }: TimeSavedChartProps) {
subtitle={t('Track how much time your automations are saving')}
tooltipLabel={t('Time Saved')}
dataKey="minutesSaved"
- color="#10b981"
+ color="var(--swatch-8-mark)"
gradientId="fillTimeSaved"
chartData={chartData}
isLoading={!report}
- emptyIcon={<Clock className="h-10 w-10 text-muted-foreground/50" />}
+ emptyIcon={<Clock className="h-10 w-10 text-gray-9" />}
emptyText={t(
'No time saved yet. Data will appear here once your flows start running.',
)}
diff --git a/packages/web/src/app/routes/mcp-authorize/index.tsx b/packages/web/src/app/routes/mcp-authorize/index.tsx
index 0899896d4fd..9d816a301fc 100644
--- a/packages/web/src/app/routes/mcp-authorize/index.tsx
+++ b/packages/web/src/app/routes/mcp-authorize/index.tsx
@@ -153,22 +153,20 @@ function McpAuthorizePage() {
<FullLogo />
<Card className="mt-4 w-full max-w-md rounded-sm drop-shadow-xl">
<CardContent className="flex flex-col items-center gap-5 pt-8 pb-8">
- <div className="flex h-14 w-14 items-center justify-center rounded-full bg-success-100">
- <CheckCircle className="h-7 w-7 text-success" />
+ <div className="flex h-14 w-14 items-center justify-center rounded-full bg-success-3">
+ <CheckCircle className="h-7 w-7 text-success-11" />
</div>
<div className="flex flex-col items-center gap-2 text-center">
<CardTitle className="text-2xl">{t('Connected')}</CardTitle>
<CardDescription>
- <span className="font-medium text-foreground">
- {clientName}
- </span>{' '}
+ <span className="font-medium text-gray-12">{clientName}</span>{' '}
{isPlatformScoped
? t('is now connected to your platform.')
: t('is now connected to your project.')}
</CardDescription>
</div>
<Separator />
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t('You can close this tab and return to the application.')}
</p>
</CardContent>
@@ -182,23 +180,23 @@ function McpAuthorizePage() {
<FullLogo />
<Card className="mt-4 w-full max-w-md rounded-sm drop-shadow-xl">
<CardHeader className="text-center">
- <div className="mx-auto mb-2 flex h-12 w-12 items-center justify-center rounded-full bg-primary/10">
- <Plug className="h-5 w-5 text-primary" />
+ <div className="mx-auto mb-2 flex h-12 w-12 items-center justify-center rounded-full bg-accent-3">
+ <Plug className="h-5 w-5 text-accent-11" />
</div>
<CardTitle className="text-2xl">
{t('Authorize Application')}
</CardTitle>
<CardDescription>
- <span className="font-semibold text-foreground">{clientName}</span>{' '}
+ <span className="font-semibold text-gray-12">{clientName}</span>{' '}
{t('wants to connect to your Activepieces account')}
</CardDescription>
{currentUser && (
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t('Signed in as {email}', { email: currentUser.email })}
<span className="px-1.5">·</span>
<button
type="button"
- className="underline underline-offset-2 hover:text-foreground"
+ className="underline underline-offset-2 hover:text-gray-12"
onClick={switchAccount}
>
{t('Switch account')}
@@ -210,11 +208,11 @@ function McpAuthorizePage() {
<CardContent className="flex flex-col gap-5">
<div className="flex flex-col gap-3">
<PermissionItem
- icon={<Workflow className="h-4 w-4 text-primary" />}
+ icon={<Workflow className="h-4 w-4 text-accent-11" />}
text={t('Build, test, and manage automations')}
/>
<PermissionItem
- icon={<Lock className="h-4 w-4 text-primary" />}
+ icon={<Lock className="h-4 w-4 text-accent-11" />}
text={t('Use connections and execute flows')}
/>
</div>
@@ -265,7 +263,7 @@ function McpAuthorizePage() {
requestRejected ||
approveMutation.isError ||
denyMutation.isError) && (
- <div className="rounded-md border border-destructive/50 bg-destructive-100 p-3 text-sm text-destructive">
+ <div className="rounded-md border border-danger-7 bg-danger-3 p-3 text-sm text-danger-11">
{requestRejected ||
(requestExpired &&
!approveMutation.isError &&
diff --git a/packages/web/src/app/routes/mcp-authorize/permission-item.tsx b/packages/web/src/app/routes/mcp-authorize/permission-item.tsx
index d49e6d1a651..880bf7954d7 100644
--- a/packages/web/src/app/routes/mcp-authorize/permission-item.tsx
+++ b/packages/web/src/app/routes/mcp-authorize/permission-item.tsx
@@ -6,8 +6,8 @@ export function PermissionItem({
text: string;
}) {
return (
- <div className="flex items-center gap-3 rounded-md border bg-accent/50 px-3 py-2.5 text-sm">
- <div className="flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-primary/10">
+ <div className="flex items-center gap-3 rounded-md border bg-gray-2 px-3 py-2.5 text-sm">
+ <div className="flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-accent-3">
{icon}
</div>
<span>{text}</span>
diff --git a/packages/web/src/app/routes/mcp-server/activity/activity-columns.tsx b/packages/web/src/app/routes/mcp-server/activity/activity-columns.tsx
index 857cdf443a9..5865874d75f 100644
--- a/packages/web/src/app/routes/mcp-server/activity/activity-columns.tsx
+++ b/packages/web/src/app/routes/mcp-server/activity/activity-columns.tsx
@@ -29,7 +29,7 @@ export function buildActivityColumns({
<DataTableColumnHeader column={column} title={t('When')} icon={Clock} />
),
cell: ({ row }) => (
- <div className="text-muted-foreground">
+ <div className="text-gray-11">
{activityUtils.formatWhen(row.original.created)}
</div>
),
@@ -69,12 +69,12 @@ export function buildActivityColumns({
cell: ({ row }) => {
const { member: rowMember } = row.original;
if (!rowMember) {
- return <div className="text-muted-foreground">—</div>;
+ return <div className="text-gray-11">—</div>;
}
const name = `${rowMember.firstName} ${rowMember.lastName}`.trim();
return (
<TextWithTooltip tooltipMessage={rowMember.email}>
- <div className="truncate text-muted-foreground">
+ <div className="truncate text-gray-11">
{rowMember.id === currentUserId
? t('{name} · you', { name })
: name}
@@ -111,7 +111,7 @@ export function buildActivityColumns({
<div className="flex min-w-0 items-center gap-2">
<span className="truncate font-medium">{action}</span>
{piece !== null && (
- <span className="truncate text-muted-foreground">{piece}</span>
+ <span className="truncate text-gray-11">{piece}</span>
)}
</div>
</TextWithTooltip>
@@ -133,7 +133,7 @@ export function buildActivityColumns({
cell: ({ row }) => {
const projectType = resolveProjectType(row.original);
if (row.original.projectName === null) {
- return <div className="text-muted-foreground">—</div>;
+ return <div className="text-gray-11">—</div>;
}
return (
<div className="flex min-w-0 items-center gap-1.5">
@@ -143,7 +143,7 @@ export function buildActivityColumns({
{projectType !== undefined && (
<Badge
variant="accent"
- className="shrink-0 text-xss font-normal text-muted-foreground"
+ className="shrink-0 text-xss font-normal text-gray-11"
>
{projectType === ProjectType.PERSONAL ? t('Personal') : t('Team')}
</Badge>
diff --git a/packages/web/src/app/routes/mcp-server/activity/activity-detail-sheet.tsx b/packages/web/src/app/routes/mcp-server/activity/activity-detail-sheet.tsx
index 3672dac4742..4616d198a2e 100644
--- a/packages/web/src/app/routes/mcp-server/activity/activity-detail-sheet.tsx
+++ b/packages/web/src/app/routes/mcp-server/activity/activity-detail-sheet.tsx
@@ -68,7 +68,7 @@ function ActivityDetail({
<SheetTitle className="flex flex-wrap items-center gap-2">
<span>{action}</span>
{piece !== null && (
- <span className="font-normal text-muted-foreground">{piece}</span>
+ <span className="font-normal text-gray-11">{piece}</span>
)}
</SheetTitle>
<div className="flex items-center gap-3 pt-1">
@@ -81,7 +81,7 @@ function ActivityDetail({
) : (
<StatusIconWithText icon={X} text={t('Failed')} variant="error" />
)}
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-gray-11">
{formatUtils.formatDuration(row.durationMs)}
</span>
</div>
@@ -119,7 +119,7 @@ function ActivityDetail({
{projectType !== undefined && (
<Badge
variant="accent"
- className="text-xss font-normal text-muted-foreground"
+ className="text-xss font-normal text-gray-11"
>
{projectType === ProjectType.PERSONAL
? t('Personal')
@@ -137,11 +137,11 @@ function ActivityDetail({
</dl>
{row.errorMessage !== null && (
- <div className="mt-5 rounded-md border border-destructive/30 bg-destructive/5 p-3">
- <div className="mb-1 text-xs font-semibold uppercase tracking-wide text-destructive">
+ <div className="mt-5 rounded-md border border-danger-6 bg-danger-3 p-3">
+ <div className="mb-1 text-xs font-semibold uppercase tracking-wide text-danger-11">
{t('Error')}
</div>
- <pre className="whitespace-pre-wrap break-words text-xs text-destructive">
+ <pre className="whitespace-pre-wrap break-words text-xs text-danger-11">
{row.errorMessage}
</pre>
</div>
@@ -150,7 +150,7 @@ function ActivityDetail({
{row.hasPayload ? (
<ActivityPayload id={row.id} />
) : (
- <p className="mt-5 text-sm text-muted-foreground">
+ <p className="mt-5 text-sm text-gray-11">
{t('The input and output were not kept for this call.')}
</p>
)}
@@ -172,7 +172,7 @@ function ActivityPayload({ id }: { id: string }) {
if (isError || !data) {
return (
- <p className="mt-5 text-sm text-muted-foreground">
+ <p className="mt-5 text-sm text-gray-11">
{t('The input and output are no longer available.')}
</p>
);
@@ -181,7 +181,7 @@ function ActivityPayload({ id }: { id: string }) {
return (
<div className="mt-6 flex flex-col gap-5">
{data.truncated && (
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{t('Too large to keep in full — some of it was dropped.')}
</p>
)}
@@ -194,11 +194,11 @@ function ActivityPayload({ id }: { id: string }) {
function PayloadSection({ label, data }: { label: string; data: unknown }) {
return (
<div className="flex flex-col gap-2">
- <div className="text-xs font-semibold uppercase tracking-wide text-muted-foreground">
+ <div className="text-xs font-semibold uppercase tracking-wide text-gray-11">
{label}
</div>
{data === null || data === undefined ? (
- <div className="text-sm text-muted-foreground">—</div>
+ <div className="text-sm text-gray-11">—</div>
) : (
<SimpleJsonViewer data={data} maxHeight={260} fontSize="12px" />
)}
@@ -209,7 +209,7 @@ function PayloadSection({ label, data }: { label: string; data: unknown }) {
function DetailRow({ label, value }: { label: string; value: ReactNode }) {
return (
<div className="flex gap-4">
- <dt className="w-24 shrink-0 text-muted-foreground">{label}</dt>
+ <dt className="w-24 shrink-0 text-gray-11">{label}</dt>
<dd className="min-w-0 break-words">{value ?? '—'}</dd>
</div>
);
diff --git a/packages/web/src/app/routes/mcp-server/client-icon.tsx b/packages/web/src/app/routes/mcp-server/client-icon.tsx
index 53ffb4d8638..fe7e15b118f 100644
--- a/packages/web/src/app/routes/mcp-server/client-icon.tsx
+++ b/packages/web/src/app/routes/mcp-server/client-icon.tsx
@@ -1,4 +1,4 @@
-import { cn } from '@/lib/utils';
+import { LogoPlate } from '@/components/custom/logo-plate';
export function ClientIcon({
icon,
@@ -8,13 +8,12 @@ export function ClientIcon({
className?: string;
}) {
return (
- <span
- className={cn(
- 'flex shrink-0 items-center justify-center overflow-hidden rounded-md border bg-background',
- className,
- )}
- >
- <img src={icon} alt="" className="size-[62%]" />
- </span>
+ <LogoPlate
+ src={icon}
+ alt=""
+ border
+ className={className}
+ innerClassName="size-[62%]"
+ />
);
}
diff --git a/packages/web/src/app/routes/mcp-server/connect/client-card.tsx b/packages/web/src/app/routes/mcp-server/connect/client-card.tsx
index 92439657706..0d9cf591fed 100644
--- a/packages/web/src/app/routes/mcp-server/connect/client-card.tsx
+++ b/packages/web/src/app/routes/mcp-server/connect/client-card.tsx
@@ -21,18 +21,18 @@ export function ClientCard({
className={cn(
'flex items-center gap-3 rounded-md border px-3.5 py-3 text-left transition-colors',
highlighted
- ? 'border-primary bg-primary/5'
- : 'hover:border-ring hover:bg-accent/40',
+ ? 'border-accent-9 bg-accent-3'
+ : 'hover:border-accent-8 hover:bg-gray-4/40',
)}
>
<ClientIcon icon={client.icon} />
<div className="flex min-w-0 flex-1 flex-col gap-px">
<span className="truncate text-sm font-semibold">{client.name}</span>
- <span className="truncate text-xs text-muted-foreground">
+ <span className="truncate text-xs text-gray-11">
{client.setupHint}
</span>
</div>
- <ChevronRight className="size-4 shrink-0 text-muted-foreground" />
+ <ChevronRight className="size-4 shrink-0 text-gray-11" />
</button>
);
}
diff --git a/packages/web/src/app/routes/mcp-server/connect/client-instructions.tsx b/packages/web/src/app/routes/mcp-server/connect/client-instructions.tsx
index 670f0421efc..c9dfdb41238 100644
--- a/packages/web/src/app/routes/mcp-server/connect/client-instructions.tsx
+++ b/packages/web/src/app/routes/mcp-server/connect/client-instructions.tsx
@@ -25,7 +25,7 @@ export function ClientInstructions({
}) {
const nav = useMcpNav();
return (
- <div className="flex flex-col bg-background">
+ <div className="flex flex-col bg-gray-1">
<div className="border-b">
<PageBand className="flex flex-col gap-4.5 pb-6 pt-8">
<BackLink label={t('All clients')} onClick={nav.showLanding} />
@@ -35,9 +35,7 @@ export function ClientInstructions({
<h1 className="text-2xl font-bold leading-8 tracking-tight">
{client.name}
</h1>
- <span className="text-sm text-muted-foreground">
- {client.subtitle}
- </span>
+ <span className="text-sm text-gray-11">{client.subtitle}</span>
</div>
<Button variant="outline" size="sm" asChild>
<a href={client.docsUrl} target="_blank" rel="noreferrer">
@@ -53,7 +51,7 @@ export function ClientInstructions({
<div className="flex min-w-0 flex-1 flex-col">
{client.setupVideoUrl && (
<div className="mb-8 flex flex-col gap-2">
- <span className="text-xss font-semibold uppercase tracking-wider text-muted-foreground">
+ <span className="text-xss font-semibold uppercase tracking-wider text-gray-11">
{t('Watch the full setup')}
</span>
<video
@@ -61,7 +59,8 @@ export function ClientInstructions({
controls
preload="metadata"
playsInline
- className="w-full rounded-md border bg-black"
+ data-theme="dark"
+ className="w-full rounded-md border bg-gray-1"
/>
</div>
)}
@@ -79,7 +78,7 @@ export function ClientInstructions({
<div className="flex w-full shrink-0 flex-col gap-4 lg:w-[344px]">
<div className="flex flex-col gap-2.5 rounded-md border p-4.5">
- <span className="text-xss font-semibold uppercase tracking-wider text-muted-foreground">
+ <span className="text-xss font-semibold uppercase tracking-wider text-gray-11">
{t('Server URL')}
</span>
<span className="break-all font-mono text-xs leading-normal">
@@ -103,13 +102,13 @@ export function ClientInstructions({
<button
type="button"
onClick={nav.showBrowse}
- className="flex items-center gap-2.5 rounded-md border px-4 py-3.5 text-left transition-colors hover:border-ring"
+ className="flex items-center gap-2.5 rounded-md border px-4 py-3.5 text-left transition-colors hover:border-accent-8"
>
- <Plug className="size-4 shrink-0 text-muted-foreground" />
- <span className="flex-1 text-sm text-muted-foreground">
+ <Plug className="size-4 shrink-0 text-gray-11" />
+ <span className="flex-1 text-sm text-gray-11">
{t('Using something else?')}
</span>
- <span className="shrink-0 text-sm font-semibold text-primary">
+ <span className="shrink-0 text-sm font-semibold text-accent-11">
{t('All {total} clients', { total: totalClients })}
</span>
</button>
@@ -139,10 +138,10 @@ function SetupInstructionItem({
return (
<div className="flex gap-4">
<div className="flex w-6 shrink-0 flex-col items-center gap-1.5">
- <span className="flex size-5.5 shrink-0 items-center justify-center rounded-full bg-foreground text-xss font-semibold text-background">
+ <span className="flex size-5.5 shrink-0 items-center justify-center rounded-full bg-gray-12 text-xss font-semibold text-gray-1">
{number}
</span>
- {!isLast && <div className="w-px flex-1 bg-border" />}
+ {!isLast && <div className="w-px flex-1 bg-gray-6" />}
</div>
<div
className={cn('flex min-w-0 flex-1 flex-col gap-3', {
@@ -151,9 +150,7 @@ function SetupInstructionItem({
>
<div className="flex flex-col gap-0.5">
<span className="text-base font-bold">{instruction.title}</span>
- <span className="text-sm text-muted-foreground">
- {instruction.body}
- </span>
+ <span className="text-sm text-gray-11">{instruction.body}</span>
</div>
{instruction.command && <TerminalBlock command={instruction.command} />}
{instruction.action && (
@@ -171,7 +168,7 @@ function SetupInstructionItem({
</Button>
)}
{blockedByPrivateUrl && (
- <span className="text-sm leading-relaxed text-muted-foreground">
+ <span className="text-sm leading-relaxed text-gray-11">
{t(
'Your server URL is not reachable from the internet, so this client cannot dial it.',
)}
@@ -184,7 +181,7 @@ function SetupInstructionItem({
key={prompt}
className="flex items-center gap-2.5 rounded-md border px-3.5 py-2.5 text-sm"
>
- <MessageSquare className="size-3.5 shrink-0 text-muted-foreground" />
+ <MessageSquare className="size-3.5 shrink-0 text-gray-11" />
{prompt}
</span>
))}
@@ -200,25 +197,25 @@ function SetupInstructionItem({
function TerminalBlock({ command }: { command: string }) {
return (
- <div className="flex flex-col overflow-hidden rounded-lg">
- <div className="flex items-center gap-2 bg-neutral-800 px-3.5 py-2">
- <span className="flex-1 text-xss font-semibold uppercase tracking-wider text-neutral-400">
+ <div data-theme="dark" className="flex flex-col overflow-hidden rounded-lg">
+ <div className="flex items-center gap-2 bg-gray-3 px-3.5 py-2">
+ <span className="flex-1 text-xss font-semibold uppercase tracking-wider text-gray-11">
{t('Terminal')}
</span>
<CopyButton
textToCopy={command}
variant="ghost"
size="sm"
- className="h-auto gap-1.5 rounded-sm bg-white/10 px-2.5 py-1 text-xs text-neutral-200 hover:bg-white/20 hover:text-white"
+ className="h-auto gap-1.5 rounded-sm bg-gray-4 px-2.5 py-1 text-xs text-gray-12/80 hover:bg-gray-5 hover:text-gray-12"
>
{t('Copy')}
</CopyButton>
</div>
- <div className="flex items-start gap-3 overflow-x-auto bg-neutral-900 px-4 py-4">
- <span className="shrink-0 font-mono text-xs leading-relaxed text-emerald-300">
+ <div className="flex items-start gap-3 overflow-x-auto bg-gray-2 px-4 py-4">
+ <span className="shrink-0 font-mono text-xs leading-relaxed text-success-11">
$
</span>
- <pre className="min-w-0 whitespace-pre-wrap break-all font-mono text-xs leading-relaxed text-neutral-200">
+ <pre className="min-w-0 whitespace-pre-wrap break-all font-mono text-xs leading-relaxed text-gray-12/80">
{command}
</pre>
</div>
diff --git a/packages/web/src/app/routes/mcp-server/connect/client-picker.tsx b/packages/web/src/app/routes/mcp-server/connect/client-picker.tsx
index deb7584e424..66d329369ad 100644
--- a/packages/web/src/app/routes/mcp-server/connect/client-picker.tsx
+++ b/packages/web/src/app/routes/mcp-server/connect/client-picker.tsx
@@ -33,7 +33,7 @@ export function ClientPicker({
);
return (
- <div className="flex flex-col bg-background">
+ <div className="flex flex-col bg-gray-1">
<div className="border-b">
<PageBand className="flex flex-col gap-4.5 pb-6 pt-8">
<BackLink label={t('Back')} onClick={nav.showLanding} />
@@ -42,14 +42,14 @@ export function ClientPicker({
<h1 className="text-2xl font-bold leading-8 tracking-tight">
{t('Where do you want to use it?')}
</h1>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t(
'Pick a client for step-by-step setup, or copy the link and paste it wherever you like.',
)}
</p>
</div>
- <div className="flex shrink-0 items-center gap-2.5 rounded-md border bg-muted/40 py-2 pl-3.5 pr-2">
- <span className="font-mono text-xs text-muted-foreground">
+ <div className="flex shrink-0 items-center gap-2.5 rounded-md border bg-gray-3/40 py-2 pl-3.5 pr-2">
+ <span className="font-mono text-xs text-gray-11">
{abbreviateServerUrl(serverUrl)}
</span>
<CopyButton textToCopy={serverUrl} variant="default" size="sm">
@@ -58,7 +58,7 @@ export function ClientPicker({
</div>
</div>
<div className="relative flex items-center">
- <Search className="pointer-events-none absolute left-3.5 size-4 text-muted-foreground" />
+ <Search className="pointer-events-none absolute left-3.5 size-4 text-gray-11" />
<Input
value={search}
onChange={(event) => setSearch(event.target.value)}
@@ -96,7 +96,7 @@ export function ClientPicker({
);
})}
{matchingClients.length === 0 && (
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-gray-11">
{t('No client matches your search.')}
</span>
)}
@@ -123,12 +123,10 @@ function ClientGroupSection({
</span>
{!isCatchAll && (
<>
- <span className="text-xs font-semibold text-muted-foreground">
+ <span className="text-xs font-semibold text-gray-11">
{clients.length}
</span>
- <span className="text-xs text-muted-foreground">
- · {group.tagline}
- </span>
+ <span className="text-xs text-gray-11">· {group.tagline}</span>
</>
)}
</div>
@@ -138,16 +136,16 @@ function ClientGroupSection({
key={client.key}
type="button"
onClick={() => nav.showClient(client.key)}
- className="flex items-center gap-3.5 rounded-md border border-dashed bg-muted/40 px-4.5 py-4 text-left transition-colors hover:border-ring"
+ className="flex items-center gap-3.5 rounded-md border border-dashed bg-gray-3/40 px-4.5 py-4 text-left transition-colors hover:border-accent-8"
>
<ClientIcon icon={client.icon} className="size-8.5" />
<div className="flex min-w-0 flex-1 flex-col gap-0.5">
<span className="text-sm font-semibold">{client.name}</span>
- <span className="truncate text-xs text-muted-foreground">
+ <span className="truncate text-xs text-gray-11">
{client.setupHint}
</span>
</div>
- <span className="hidden shrink-0 items-center gap-1.5 rounded-md border bg-background px-3.5 py-2 text-sm font-semibold sm:flex">
+ <span className="hidden shrink-0 items-center gap-1.5 rounded-md border bg-gray-1 px-3.5 py-2 text-sm font-semibold sm:flex">
{t('See the raw config')}
<ChevronRight className="size-3.5" />
</span>
diff --git a/packages/web/src/app/routes/mcp-server/connect/connect-landing.tsx b/packages/web/src/app/routes/mcp-server/connect/connect-landing.tsx
index 88d340590d3..d6dd4af505e 100644
--- a/packages/web/src/app/routes/mcp-server/connect/connect-landing.tsx
+++ b/packages/web/src/app/routes/mcp-server/connect/connect-landing.tsx
@@ -24,18 +24,18 @@ export function ConnectLanding({
).filter((client): client is CatalogClient => client !== undefined);
return (
- <div className="flex flex-1 flex-col bg-background">
+ <div className="flex flex-1 flex-col bg-gray-1">
<PageBand className="flex flex-col gap-16 py-12 lg:flex-row lg:px-14">
<div className="flex max-w-[628px] flex-1 flex-col gap-5">
<h1 className="max-w-[455px] text-4xl font-bold leading-tight tracking-tight">
{t('One link for everywhere you use AI.')}
</h1>
- <p className="max-w-[500px] text-base leading-relaxed text-muted-foreground">
+ <p className="max-w-[500px] text-base leading-relaxed text-gray-11">
{t(
'Your AI stops guessing and starts doing — sending the Slack message, updating the CRM, running the flow. Paste it into any client that speaks MCP.',
)}
</p>
- <div className="mt-1 flex items-center gap-3.5 rounded-md border bg-muted/40 py-2.5 pl-5 pr-2.5">
+ <div className="mt-1 flex items-center gap-3.5 rounded-md border bg-gray-3/40 py-2.5 pl-5 pr-2.5">
<span className="min-w-0 flex-1 truncate font-mono text-sm">
{serverUrl}
</span>
@@ -54,7 +54,7 @@ export function ConnectLanding({
</div>
<div className="flex w-full flex-col gap-2 lg:w-[396px]">
- <span className="px-0.5 pb-1.5 text-xs font-semibold uppercase tracking-wider text-muted-foreground">
+ <span className="px-0.5 pb-1.5 text-xs font-semibold uppercase tracking-wider text-gray-11">
{t('Need the exact steps?')}
</span>
{popular.map((client, index) => (
@@ -68,7 +68,7 @@ export function ConnectLanding({
<button
type="button"
onClick={nav.showBrowse}
- className="mt-0.5 flex items-center justify-center gap-2 rounded-md bg-muted py-3 text-sm font-semibold transition-colors hover:bg-muted/70"
+ className="mt-0.5 flex items-center justify-center gap-2 rounded-md bg-gray-3 py-3 text-sm font-semibold transition-colors hover:bg-gray-3/70"
>
{t('See all {total} clients', { total: clients.length })}
<ChevronRight className="size-4" />
@@ -84,8 +84,8 @@ export function ConnectLanding({
function TrustPoint({ text }: { text: string }) {
return (
- <span className="flex items-center gap-1.5 text-sm text-muted-foreground">
- <Check className="size-3.5 text-success-600" />
+ <span className="flex items-center gap-1.5 text-sm text-gray-11">
+ <Check className="size-3.5 text-success-11" />
{text}
</span>
);
diff --git a/packages/web/src/app/routes/mcp-server/grants/grants-columns.tsx b/packages/web/src/app/routes/mcp-server/grants/grants-columns.tsx
index 150e874e19c..230bdd20e65 100644
--- a/packages/web/src/app/routes/mcp-server/grants/grants-columns.tsx
+++ b/packages/web/src/app/routes/mcp-server/grants/grants-columns.tsx
@@ -50,7 +50,7 @@ export function buildGrantsColumns({
<div className="truncate font-medium">{label}</div>
</TextWithTooltip>
{row.original.clientKey === 'unknown' && (
- <div className="truncate text-xs text-muted-foreground">
+ <div className="truncate text-xs text-gray-11">
{t('Same access as any other')}
</div>
)}
@@ -88,12 +88,12 @@ export function buildGrantsColumns({
cell: ({ row }) => {
const { member } = row.original;
if (!member) {
- return <div className="text-muted-foreground">—</div>;
+ return <div className="text-gray-11">—</div>;
}
const name = `${member.firstName} ${member.lastName}`.trim();
return (
<TextWithTooltip tooltipMessage={member.email}>
- <div className="truncate text-muted-foreground">
+ <div className="truncate text-gray-11">
{member.id === currentUserId ? t('{name} · you', { name }) : name}
</div>
</TextWithTooltip>
@@ -117,12 +117,10 @@ export function buildGrantsColumns({
<span
className={cn(
'size-1.5 shrink-0 rounded-full',
- lastUsed.isActiveToday ? 'bg-success' : 'bg-transparent',
+ lastUsed.isActiveToday ? 'bg-success-11' : 'bg-transparent',
)}
/>
- <span
- className={cn(!lastUsed.isActiveToday && 'text-muted-foreground')}
- >
+ <span className={cn(!lastUsed.isActiveToday && 'text-gray-11')}>
{lastUsed.label}
</span>
</div>
@@ -154,7 +152,7 @@ export function buildGrantsColumns({
>
<Button
variant="link"
- className="h-auto p-0 text-destructive hover:text-destructive"
+ className="h-auto p-0 text-danger-11 hover:text-danger-11"
>
{t('Revoke')}
</Button>
diff --git a/packages/web/src/app/routes/mcp-server/grants/grants-tab.tsx b/packages/web/src/app/routes/mcp-server/grants/grants-tab.tsx
index f6f3c3ebf8c..04f3cd30f2b 100644
--- a/packages/web/src/app/routes/mcp-server/grants/grants-tab.tsx
+++ b/packages/web/src/app/routes/mcp-server/grants/grants-tab.tsx
@@ -112,7 +112,7 @@ export function GrantsTab() {
selectColumn={true}
bordered={true}
toolbarButtons={[
- <span key="expiry" className="text-sm text-muted-foreground">
+ <span key="expiry" className="text-sm text-gray-11">
{t('each expires 30 days after sign-in')}
</span>,
]}
@@ -146,7 +146,7 @@ export function GrantsTab() {
emptyStateIcon={<Plug className="size-10" />}
/>
- <div className="flex flex-wrap items-center justify-between gap-4 text-[13px] text-muted-foreground">
+ <div className="flex flex-wrap items-center justify-between gap-4 text-[13px] text-gray-11">
<span>
{t(
'Two rows for one client is normal — signing in again creates a second connection. Revoking one leaves the other alive.',
@@ -156,7 +156,7 @@ export function GrantsTab() {
href={DOCS_URL}
target="_blank"
rel="noreferrer"
- className="font-semibold text-primary hover:underline"
+ className="font-semibold text-accent-11 hover:underline"
>
{t('How connecting works')} ↗
</a>
diff --git a/packages/web/src/app/routes/mcp-server/pieces-showcase.tsx b/packages/web/src/app/routes/mcp-server/pieces-showcase.tsx
index 809aea9e0ae..87f8ee67a75 100644
--- a/packages/web/src/app/routes/mcp-server/pieces-showcase.tsx
+++ b/packages/web/src/app/routes/mcp-server/pieces-showcase.tsx
@@ -2,7 +2,7 @@ import { PieceMetadataModelSummary } from '@activepieces/pieces-framework';
import { t } from 'i18next';
import { useMemo } from 'react';
-import ImageWithFallback from '@/components/custom/image-with-fallback';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { Skeleton } from '@/components/ui/skeleton';
import { piecesHooks } from '@/features/pieces/hooks/pieces-hooks';
import { pieceSearchUtils } from '@/features/pieces/utils/piece-search-utils';
@@ -21,13 +21,13 @@ export function PiecesShowcase() {
}
return (
- <div className="flex-1 border-t bg-muted/30 pb-9 pt-8">
+ <div className="flex-1 border-t bg-gray-3/30 pb-9 pt-8">
<PageBand className="flex flex-col gap-6 px-0 lg:px-0">
<div className="flex flex-col gap-1.5 px-6 lg:px-14">
<h2 className="text-xl font-bold leading-7 tracking-tight">
{t('Your AI gets all of this')}
</h2>
- <p className="max-w-[560px] text-sm text-muted-foreground">
+ <p className="max-w-[560px] text-sm text-gray-11">
{isLoading
? t('Every piece you can use, in every project MCP reaches.')
: t(
@@ -77,17 +77,14 @@ function TileRow({
return (
<div className={cn('flex gap-2.5', className)}>
{tiles.map((tile) => (
- <span
+ <LogoPlate
key={tile.name}
+ src={tile.logoUrl}
+ alt={tile.displayName}
title={tile.displayName}
- className="flex size-16 shrink-0 items-center justify-center rounded-lg border bg-background"
- >
- <ImageWithFallback
- src={tile.logoUrl}
- alt={tile.displayName}
- className="size-8"
- />
- </span>
+ border
+ className="size-16 rounded-lg p-4"
+ />
))}
</div>
);
diff --git a/packages/web/src/app/routes/mcp-server/pieces/piece-row.tsx b/packages/web/src/app/routes/mcp-server/pieces/piece-row.tsx
index e979559d46d..82162a8466a 100644
--- a/packages/web/src/app/routes/mcp-server/pieces/piece-row.tsx
+++ b/packages/web/src/app/routes/mcp-server/pieces/piece-row.tsx
@@ -29,7 +29,7 @@ export const PieceRow = memo(function PieceRow({
onOpenChange={setIsOpenedByUser}
className={cn({ 'border-b': !isLastRow })}
>
- <CollapsibleTrigger className="flex w-full items-center gap-3 px-4 py-3 text-left hover:bg-muted/40">
+ <CollapsibleTrigger className="flex w-full items-center gap-3 px-4 py-3 text-left hover:bg-gray-3/40">
<PieceIcon
logoUrl={row.piece.logoUrl}
displayName={row.piece.displayName}
@@ -42,9 +42,7 @@ export const PieceRow = memo(function PieceRow({
<div className="text-sm font-medium">{row.piece.displayName}</div>
</TextWithTooltip>
<TextWithTooltip tooltipMessage={row.piece.description}>
- <div className="text-xs text-muted-foreground">
- {row.piece.description}
- </div>
+ <div className="text-xs text-gray-11">{row.piece.description}</div>
</TextWithTooltip>
</div>
<div className="ml-auto flex shrink-0 items-center gap-3">
@@ -55,20 +53,20 @@ export const PieceRow = memo(function PieceRow({
})}
</Badge>
)}
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-gray-11">
{t('pieceActionCount', {
count: row.actionCount,
})}
</span>
<ChevronDown
- className={cn('size-4 text-muted-foreground transition-transform', {
+ className={cn('size-4 text-gray-11 transition-transform', {
'rotate-180': isOpen,
})}
/>
</div>
</CollapsibleTrigger>
<CollapsibleContent>
- <div className="grid grid-cols-1 gap-x-6 gap-y-7 border-t bg-muted/60 pt-4 pr-5 pb-5 pl-2 sm:grid-cols-2 lg:grid-cols-4 lg:pl-12.5">
+ <div className="grid grid-cols-1 gap-x-6 gap-y-7 border-t bg-gray-3/60 pt-4 pr-5 pb-5 pl-2 sm:grid-cols-2 lg:grid-cols-4 lg:pl-12.5">
{row.groups.map((group) => (
<ActionGroupColumn
key={group.classification}
@@ -109,13 +107,13 @@ function ActionGroupColumn({
key={action.name}
tooltipMessage={action.displayName}
>
- <div className="rounded-sm px-2 py-0.5 text-sm leading-5 hover:bg-muted">
+ <div className="rounded-sm px-2 py-0.5 text-sm leading-5 hover:bg-gray-3">
{action.displayName}
</div>
</TextWithTooltip>
))}
{group.classification === 'DESTRUCTIVE' && (
- <p className="px-2 pt-1.5 text-xs text-destructive-700 dark:text-destructive-300">
+ <p className="px-2 pt-1.5 text-xs text-danger-11">
{t('Can delete or overwrite data in {pieceName}.', {
pieceName: pieceDisplayName,
})}
@@ -127,17 +125,16 @@ function ActionGroupColumn({
}
const CLASSIFICATION_TONES: Record<ActionClassification, ClassificationTone> = {
- READ: { label: 'text-foreground', count: 'accent' },
- SEARCH: { label: 'text-foreground', count: 'accent' },
+ READ: { label: 'text-gray-12', count: 'accent' },
+ SEARCH: { label: 'text-gray-12', count: 'accent' },
WRITE: {
- label: 'text-warning-700 dark:text-warning-300',
+ label: 'text-warning-11',
count: 'warning',
},
DESTRUCTIVE: {
- label: 'text-destructive-700 dark:text-destructive-300',
+ label: 'text-danger-11',
count: 'destructive',
- frame:
- 'gap-0.5 rounded-md border border-destructive-200 bg-destructive-50 py-1.5 dark:border-destructive-900 dark:bg-destructive-950/30',
+ frame: 'gap-0.5 rounded-md border border-danger-7 bg-danger-3 py-1.5',
},
};
diff --git a/packages/web/src/app/routes/mcp-server/pieces/pieces-panel.tsx b/packages/web/src/app/routes/mcp-server/pieces/pieces-panel.tsx
index 1a116874ca8..098b569d50c 100644
--- a/packages/web/src/app/routes/mcp-server/pieces/pieces-panel.tsx
+++ b/packages/web/src/app/routes/mcp-server/pieces/pieces-panel.tsx
@@ -85,7 +85,7 @@ export function PiecesPanel({
) : isError ? (
<PiecesUnavailableAlert error={error} onRetry={refetch} />
) : rows.length === 0 ? (
- <div className="rounded-lg border px-4 py-10 text-sm text-muted-foreground">
+ <div className="rounded-lg border px-4 py-10 text-sm text-gray-11">
{isSearching
? t('No piece or action matches your search.')
: t('No pieces are reachable in this project.')}
@@ -107,7 +107,7 @@ export function PiecesPanel({
<button
type="button"
onClick={() => setShowAll(true)}
- className="w-full border-t px-4 py-3 text-sm font-medium hover:bg-muted/40"
+ className="w-full border-t px-4 py-3 text-sm font-medium hover:bg-gray-3/40"
>
{t('Show {count} more pieces', { count: hiddenCount })}
</button>
diff --git a/packages/web/src/app/routes/mcp-server/project-picker.tsx b/packages/web/src/app/routes/mcp-server/project-picker.tsx
index 8ef79082311..1fa7ea0db23 100644
--- a/packages/web/src/app/routes/mcp-server/project-picker.tsx
+++ b/packages/web/src/app/routes/mcp-server/project-picker.tsx
@@ -37,7 +37,7 @@ export function ProjectPicker({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline" className="h-9 gap-2 px-3">
- <span className="text-muted-foreground">{t('Project')}</span>
+ <span className="text-gray-11">{t('Project')}</span>
{selectedProject ? (
<ApProjectDisplay
title={getProjectName(selectedProject)}
@@ -50,7 +50,7 @@ export function ProjectPicker({
) : (
<span className="font-medium">{t('Select a project')}</span>
)}
- <ChevronDown className="size-4 text-muted-foreground" />
+ <ChevronDown className="size-4 text-gray-11" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="start" className="min-w-[240px]">
diff --git a/packages/web/src/app/routes/mcp-server/recently-connected.tsx b/packages/web/src/app/routes/mcp-server/recently-connected.tsx
index b4c2e9c64fb..620afadb724 100644
--- a/packages/web/src/app/routes/mcp-server/recently-connected.tsx
+++ b/packages/web/src/app/routes/mcp-server/recently-connected.tsx
@@ -28,13 +28,13 @@ export function RecentlyConnected() {
return (
<div className="border-t">
<PageBand className="flex flex-wrap items-center gap-4 py-5 lg:px-14">
- <span className="shrink-0 text-[11px] font-semibold uppercase tracking-[0.06em] text-muted-foreground">
+ <span className="shrink-0 text-[11px] font-semibold uppercase tracking-[0.06em] text-gray-11">
{t('Recently connected')}
</span>
{recent.length === 0 ? (
<>
- <span className="flex items-center gap-2.5 text-[13px] text-muted-foreground">
+ <span className="flex items-center gap-2.5 text-[13px] text-gray-11">
<Plug className="size-4" />
{t(
'No clients yet — the first one to use the link shows up here.',
@@ -52,7 +52,7 @@ export function RecentlyConnected() {
<>
{recent.map((row, index) => (
<div key={row.id} className="flex items-center gap-4">
- {index > 0 && <span className="h-4 w-px bg-border" />}
+ {index > 0 && <span className="h-4 w-px bg-gray-6" />}
<ClientChip row={row} />
</div>
))}
@@ -85,11 +85,11 @@ function ClientChip({ row }: { row: McpOAuthGrant }) {
</span>
{row.lastUsedAt === null ? (
<Badge variant="outline" className="gap-1.5 font-normal">
- <span className="size-1.5 rounded-full bg-muted-foreground" />
+ <span className="size-1.5 rounded-full bg-gray-11" />
{t('Waiting for first call')}
</Badge>
) : (
- <span className="text-[13px] text-muted-foreground">
+ <span className="text-[13px] text-gray-11">
{formatUtils.formatDateToAgo(new Date(row.lastUsedAt))}
</span>
)}
diff --git a/packages/web/src/app/routes/mcp-server/tools/tools-tab.tsx b/packages/web/src/app/routes/mcp-server/tools/tools-tab.tsx
index 9aa43c500bb..ef0c68ef399 100644
--- a/packages/web/src/app/routes/mcp-server/tools/tools-tab.tsx
+++ b/packages/web/src/app/routes/mcp-server/tools/tools-tab.tsx
@@ -84,7 +84,7 @@ export function ToolsTab({
<h2 className="text-xl font-bold leading-7 tracking-tight">
{t('Everything a connected client can call in this project.')}
</h2>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t(
'Built-in tools are switched on and off here. Pieces are controlled in piece sets.',
)}
@@ -158,7 +158,7 @@ function SegmentCount({ count }: { count: number | null }) {
if (isNil(count)) {
return null;
}
- return <span className="ml-1.5 text-xs text-muted-foreground">{count}</span>;
+ return <span className="ml-1.5 text-xs text-gray-11">{count}</span>;
}
function ToolsUnavailableAlert({ error, onRetry }: ToolsUnavailableAlertProps) {
diff --git a/packages/web/src/app/routes/platform/billing/index.tsx b/packages/web/src/app/routes/platform/billing/index.tsx
index 5ffd50d3f17..b39ca0c6e55 100644
--- a/packages/web/src/app/routes/platform/billing/index.tsx
+++ b/packages/web/src/app/routes/platform/billing/index.tsx
@@ -48,7 +48,7 @@ export function BillingPlanTab() {
<h1 className="text-xl font-medium">
{t('Billing & subscription')}
</h1>
- <div className="text-sm text-muted-foreground">
+ <div className="text-sm text-gray-11">
{t(
'For questions about billing contact us at [email protected]',
)}
@@ -237,7 +237,7 @@ function PlanTab({ platform, info }: PlanTabProps) {
(isNil(info.cancelAt) ? (
<Button
variant="link"
- className="text-destructive hover:text-destructive"
+ className="text-danger-11 hover:text-danger-11"
onClick={() => setIsCancelOpen(true)}
>
{t('Cancel subscription')}
@@ -327,7 +327,7 @@ const BillingSection = ({
<section className="grid grid-cols-1 gap-4 md:grid-cols-[minmax(0,1fr)_400px] md:gap-20 pr-4">
<div className="flex flex-col gap-1">
<h2 className="text-base font-semibold">{title}</h2>
- <div className="text-sm text-muted-foreground">{description}</div>
+ <div className="text-sm text-gray-11">{description}</div>
</div>
<div className="flex flex-col gap-3">{children}</div>
</section>
@@ -343,7 +343,7 @@ const SubscriptionScheduleNotice = ({
}
const date = dayjsCancelDate(info.cancelAt);
return (
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-gray-11">
{!isNil(info.scheduledPlanName)
? t('Switches to {plan} on {date}', {
plan: info.scheduledPlanName,
@@ -368,7 +368,7 @@ const LinkButton = ({
<button
type="button"
onClick={onClick}
- className="inline-flex w-fit items-center gap-1 text-sm font-medium text-primary hover:underline"
+ className="inline-flex w-fit items-center gap-1 text-sm font-medium text-accent-11 hover:underline"
>
{children}
<ArrowUpRight className="size-3.5" />
diff --git a/packages/web/src/app/routes/platform/billing/usage-tab.tsx b/packages/web/src/app/routes/platform/billing/usage-tab.tsx
index cdee3ae5e82..81da9068646 100644
--- a/packages/web/src/app/routes/platform/billing/usage-tab.tsx
+++ b/packages/web/src/app/routes/platform/billing/usage-tab.tsx
@@ -19,7 +19,7 @@ export function UsageTab({ platform, info }: UsageTabProps) {
<h1 className="text-xl font-medium">{t('Usage')}</h1>
<Tooltip>
<TooltipTrigger asChild>
- <Info className="size-3.5 text-muted-foreground cursor-help" />
+ <Info className="size-3.5 text-gray-11 cursor-help" />
</TooltipTrigger>
<TooltipContent side="right" className="max-w-60">
<p className="text-sm">
@@ -28,7 +28,7 @@ export function UsageTab({ platform, info }: UsageTabProps) {
</TooltipContent>
</Tooltip>
</div>
- <div className="text-sm text-muted-foreground">
+ <div className="text-sm text-gray-11">
{t('Track your workspace usage across your plan limits.')}
</div>
</div>
diff --git a/packages/web/src/app/routes/platform/connections/index.tsx b/packages/web/src/app/routes/platform/connections/index.tsx
index 2f3f019ce60..f74ec83c4fc 100644
--- a/packages/web/src/app/routes/platform/connections/index.tsx
+++ b/packages/web/src/app/routes/platform/connections/index.tsx
@@ -193,7 +193,7 @@ export default function PlatformConnectionsPage() {
cell: ({ row }) => {
const owner = row.original.owner;
if (!owner) {
- return <span className="text-muted-foreground">{t('N/A')}</span>;
+ return <span className="text-gray-11">{t('N/A')}</span>;
}
const fullName = [owner.firstName, owner.lastName]
.filter(Boolean)
@@ -231,7 +231,7 @@ export default function PlatformConnectionsPage() {
)}
/>
{owners?.truncated && (
- <div className="px-6 pb-2 text-xs text-muted-foreground">
+ <div className="px-6 pb-2 text-xs text-gray-11">
{t('Owner filter is limited to the first {count} owners', {
count: MAX_PLATFORM_APP_CONNECTION_OWNERS,
})}
@@ -273,7 +273,7 @@ const ProjectsCell = ({
projects: PlatformAppConnectionsListItem['projects'];
}) => {
if (projects.length === 0) {
- return <span className="text-muted-foreground">{t('N/A')}</span>;
+ return <span className="text-gray-11">{t('N/A')}</span>;
}
if (projects.length === 1) {
const project = projects[0];
@@ -281,7 +281,7 @@ const ProjectsCell = ({
return (
<Link to={`/projects/${project.id}`}>
<TextWithTooltip tooltipMessage={name}>
- <span className="truncate max-w-[200px] text-primary hover:underline">
+ <span className="truncate max-w-[200px] text-accent-11 hover:underline">
{name}
</span>
</TextWithTooltip>
diff --git a/packages/web/src/app/routes/platform/infra/configurations/limits-section.tsx b/packages/web/src/app/routes/platform/infra/configurations/limits-section.tsx
index 8d69ee2bae7..88af0925a33 100644
--- a/packages/web/src/app/routes/platform/infra/configurations/limits-section.tsx
+++ b/packages/web/src/app/routes/platform/infra/configurations/limits-section.tsx
@@ -22,7 +22,7 @@ export const LimitsSection = ({ control, disabled }: LimitsSectionProps) => {
<div className="flex flex-col gap-3">
<div className="flex flex-col gap-1">
<h2 className="text-base font-semibold">{t('Limits')}</h2>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t('Guardrails that apply to every project on this platform.')}
</p>
</div>
diff --git a/packages/web/src/app/routes/platform/infra/configurations/telemetry-section.tsx b/packages/web/src/app/routes/platform/infra/configurations/telemetry-section.tsx
index b70e2ef0602..1dbf76081a9 100644
--- a/packages/web/src/app/routes/platform/infra/configurations/telemetry-section.tsx
+++ b/packages/web/src/app/routes/platform/infra/configurations/telemetry-section.tsx
@@ -24,7 +24,7 @@ export const TelemetrySection = ({
<div className="flex flex-col gap-3">
<div className="flex flex-col gap-1">
<h2 className="text-base font-semibold">{t('Telemetry')}</h2>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t(
'Help us improve Activepieces. We never receive what your flows do, the data they process, or anything inside your connections and API keys.',
)}
diff --git a/packages/web/src/app/routes/platform/infra/configurations/tracked-events-dialog.tsx b/packages/web/src/app/routes/platform/infra/configurations/tracked-events-dialog.tsx
index c5bd28271d2..6b36eb9b305 100644
--- a/packages/web/src/app/routes/platform/infra/configurations/tracked-events-dialog.tsx
+++ b/packages/web/src/app/routes/platform/infra/configurations/tracked-events-dialog.tsx
@@ -49,7 +49,7 @@ export const TrackedEventsDialog = () => {
href={TELEMETRY_DOCS_URL}
target="_blank"
rel="noopener noreferrer"
- className="inline-flex items-center gap-1.5 text-sm text-muted-foreground underline-offset-4 hover:text-foreground hover:underline"
+ className="inline-flex items-center gap-1.5 text-sm text-gray-11 underline-offset-4 hover:text-gray-12 hover:underline"
>
{t('Read the telemetry docs')}
<ExternalLinkIcon className="size-3.5" />
@@ -72,9 +72,9 @@ const TrackedEventGroupSection = ({ group }: TrackedEventGroupSectionProps) => {
{group.labels.map((label) => (
<li
key={label}
- className="flex items-center gap-2 text-sm text-muted-foreground"
+ className="flex items-center gap-2 text-sm text-gray-11"
>
- <span className="size-1 shrink-0 rounded-full bg-muted-foreground/60" />
+ <span className="size-1 shrink-0 rounded-full bg-gray-9" />
{label}
</li>
))}
diff --git a/packages/web/src/app/routes/platform/infra/event-destinations/components/event-destination-dialog.tsx b/packages/web/src/app/routes/platform/infra/event-destinations/components/event-destination-dialog.tsx
index 70edf684bd9..fddba842391 100644
--- a/packages/web/src/app/routes/platform/infra/event-destinations/components/event-destination-dialog.tsx
+++ b/packages/web/src/app/routes/platform/infra/event-destinations/components/event-destination-dialog.tsx
@@ -300,7 +300,7 @@ const EventDestinationForm = ({
{!destination && (
<div className="flex flex-col gap-1 pt-1">
<div className="flex items-center justify-between gap-2">
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{t(
'Or generate an internal flow to handle the selected events:',
)}
@@ -317,7 +317,7 @@ const EventDestinationForm = ({
{t('Generate handler flow')}
</Button>
</div>
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{t(
"Don't forget to publish your flow before creating the alert.",
)}
diff --git a/packages/web/src/app/routes/platform/infra/event-destinations/components/event-destination-row.tsx b/packages/web/src/app/routes/platform/infra/event-destinations/components/event-destination-row.tsx
index c25e0238f87..8dc003d3afa 100644
--- a/packages/web/src/app/routes/platform/infra/event-destinations/components/event-destination-row.tsx
+++ b/packages/web/src/app/routes/platform/infra/event-destinations/components/event-destination-row.tsx
@@ -70,16 +70,14 @@ export const EventDestinationRow = ({
</ItemTitle>
</TextWithTooltip>
<ItemDescription className="text-xs !flex flex-wrap items-center gap-x-1 gap-y-2 overflow-visible [text-wrap:unset] mt-1">
- <span className="text-muted-foreground shrink-0 mr-1.5">
- {t('Events')}
- </span>
+ <span className="text-gray-11 shrink-0 mr-1.5">{t('Events')}</span>
{destination.events.map((event) => (
<Badge key={event} variant="outline" className="text-xs">
{eventLabels[event]?.label ?? event}
</Badge>
))}
</ItemDescription>
- <p className="text-xs text-muted-foreground mt-2">
+ <p className="text-xs text-gray-11 mt-2">
{t('Created')}{' '}
{formatUtils.formatDateToAgo(new Date(destination.created))}
</p>
diff --git a/packages/web/src/app/routes/platform/infra/event-destinations/index.tsx b/packages/web/src/app/routes/platform/infra/event-destinations/index.tsx
index 2fcd365786b..809dd44560b 100644
--- a/packages/web/src/app/routes/platform/infra/event-destinations/index.tsx
+++ b/packages/web/src/app/routes/platform/infra/event-destinations/index.tsx
@@ -98,7 +98,7 @@ const EventDestinationsPage = () => {
)}
{!isLoading && parsedDestinations.length === 0 && (
- <div className="flex flex-col items-center gap-3 py-12 text-muted-foreground">
+ <div className="flex flex-col items-center gap-3 py-12 text-gray-11">
<Workflow className="size-10" />
<p className="text-sm">
{t('No destinations yet. Create one to get started.')}
diff --git a/packages/web/src/app/routes/platform/infra/health/components/daily-health-strip.tsx b/packages/web/src/app/routes/platform/infra/health/components/daily-health-strip.tsx
index f51f9324372..98f6e1eb02f 100644
--- a/packages/web/src/app/routes/platform/infra/health/components/daily-health-strip.tsx
+++ b/packages/web/src/app/routes/platform/infra/health/components/daily-health-strip.tsx
@@ -74,8 +74,8 @@ export function DailyHealthStrip({ onSeeRuns }: DailyHealthStripProps) {
className={cn(
'flex-1 h-full rounded-sm transition-colors',
healthy
- ? 'bg-emerald-500 hover:bg-emerald-600'
- : 'bg-destructive hover:bg-destructive/80',
+ ? 'bg-success-9 hover:bg-success-9/80'
+ : 'bg-danger-9 hover:bg-danger-9/80',
)}
/>
</TooltipTrigger>
@@ -84,13 +84,11 @@ export function DailyHealthStrip({ onSeeRuns }: DailyHealthStripProps) {
{dayjs(day.day).format('MMM DD, YYYY')}
</span>
{healthy ? (
- <span className="text-muted-foreground">
- {t('Healthy')}
- </span>
+ <span className="text-gray-11">{t('Healthy')}</span>
) : (
<div className="flex flex-col gap-1">
<div className="flex items-center justify-between gap-6">
- <span className="text-muted-foreground">
+ <span className="text-gray-11">
{t('Internal errors')}
</span>
<span className="font-medium tabular-nums">
@@ -98,7 +96,7 @@ export function DailyHealthStrip({ onSeeRuns }: DailyHealthStripProps) {
</span>
</div>
<div className="flex items-center justify-between gap-6">
- <span className="text-muted-foreground">
+ <span className="text-gray-11">
{t('Affected flows')}
</span>
<span className="font-medium tabular-nums">
@@ -106,7 +104,7 @@ export function DailyHealthStrip({ onSeeRuns }: DailyHealthStripProps) {
</span>
</div>
<div className="flex items-center justify-between gap-6">
- <span className="text-muted-foreground">
+ <span className="text-gray-11">
{t('Stuck jobs')}
</span>
<span className="font-medium tabular-nums">
diff --git a/packages/web/src/app/routes/platform/infra/health/components/internal-errors-table.tsx b/packages/web/src/app/routes/platform/infra/health/components/internal-errors-table.tsx
index 3f7ae5c1f81..427fc390a6c 100644
--- a/packages/web/src/app/routes/platform/infra/health/components/internal-errors-table.tsx
+++ b/packages/web/src/app/routes/platform/infra/health/components/internal-errors-table.tsx
@@ -40,7 +40,7 @@ export function InternalErrorsTable({
<CardTitle className="flex items-center justify-between text-base font-medium">
<span>{t('Internal errors — impact')}</span>
{total > 0 && (
- <span className="text-sm font-normal text-muted-foreground">
+ <span className="text-sm font-normal text-gray-11">
{t('{count} errors', { count: total })}
</span>
)}
@@ -55,8 +55,8 @@ export function InternalErrorsTable({
{isLoading ? (
<Skeleton className="h-24 w-full" />
) : errors.length === 0 ? (
- <div className="flex flex-col items-center justify-center gap-2 py-8 text-muted-foreground">
- <CircleCheck className="size-8 text-emerald-500" />
+ <div className="flex flex-col items-center justify-center gap-2 py-8 text-gray-11">
+ <CircleCheck className="size-8 text-success-11" />
<p className="text-sm">{t('No internal errors in this period')}</p>
</div>
) : (
@@ -80,7 +80,7 @@ export function InternalErrorsTable({
)
}
>
- <TableCell className="text-muted-foreground">
+ <TableCell className="text-gray-11">
{error.projectName}
</TableCell>
<TableCell className="font-medium">
@@ -89,7 +89,7 @@ export function InternalErrorsTable({
<TableCell className="text-right tabular-nums">
{formatUtils.formatNumber(error.count)}
</TableCell>
- <TableCell className="text-right tabular-nums text-muted-foreground">
+ <TableCell className="text-right tabular-nums text-gray-11">
{total === 0
? '—'
: `${Math.round((error.count / total) * 100)}%`}
diff --git a/packages/web/src/app/routes/platform/infra/health/components/queue-tab.tsx b/packages/web/src/app/routes/platform/infra/health/components/queue-tab.tsx
index cceff6ff1b1..77792795e5e 100644
--- a/packages/web/src/app/routes/platform/infra/health/components/queue-tab.tsx
+++ b/packages/web/src/app/routes/platform/infra/health/components/queue-tab.tsx
@@ -22,16 +22,16 @@ export function QueueTab({ live, isLoading }: QueueTabProps) {
title={t('Running')}
value={isLoading ? '—' : formatUtils.formatNumber(live?.running ?? 0)}
description={t('Jobs currently executing on workers')}
- iconColor="text-blue-500"
- iconBgColor="bg-blue-500/10"
+ iconColor="text-swatch-11-mark"
+ iconBgColor="bg-swatch-11-surface"
/>
<MetricCard
icon={Loader2}
title={t('Queued')}
value={isLoading ? '—' : formatUtils.formatNumber(live?.queued ?? 0)}
description={t('Jobs waiting in the queue')}
- iconColor="text-amber-500"
- iconBgColor="bg-amber-500/10"
+ iconColor="text-swatch-6-mark"
+ iconBgColor="bg-swatch-6-surface"
/>
</div>
diff --git a/packages/web/src/app/routes/platform/infra/health/components/runs-tab.tsx b/packages/web/src/app/routes/platform/infra/health/components/runs-tab.tsx
index c049343b600..e6c6275411c 100644
--- a/packages/web/src/app/routes/platform/infra/health/components/runs-tab.tsx
+++ b/packages/web/src/app/routes/platform/infra/health/components/runs-tab.tsx
@@ -21,7 +21,7 @@ function renderDelta(current: number, previous: number): ReactNode {
const isUp = change >= 0;
return (
<span>
- <span className={cn(isUp ? 'text-emerald-600' : 'text-destructive')}>
+ <span className={cn(isUp ? 'text-success-11' : 'text-danger-11')}>
{isUp ? '▲' : '▼'} {Math.abs(change).toFixed(1)}%
</span>{' '}
{t('vs last period')}
@@ -48,7 +48,7 @@ export function RunsTab({ report, isLoading, isError, onRetry }: RunsTabProps) {
return (
<div className="flex flex-col gap-4">
{report && (
- <p className="px-5 text-xs text-muted-foreground">
+ <p className="px-5 text-xs text-gray-11">
{t('Showing cached data · next refresh after {time}', {
time: dayjs(report.nextRefreshAt).format('MMM D, h:mm A'),
})}
@@ -67,8 +67,8 @@ export function RunsTab({ report, isLoading, isError, onRetry }: RunsTabProps) {
? renderDelta(summary.completed, summary.previousCompleted)
: undefined
}
- iconColor="text-purple-500"
- iconBgColor="bg-purple-500/10"
+ iconColor="text-swatch-1-mark"
+ iconBgColor="bg-swatch-1-surface"
/>
<MetricCard
icon={CheckCircle2}
@@ -80,8 +80,8 @@ export function RunsTab({ report, isLoading, isError, onRetry }: RunsTabProps) {
? renderDelta(summary.successRate, summary.previousSuccessRate)
: undefined
}
- iconColor="text-emerald-500"
- iconBgColor="bg-emerald-500/10"
+ iconColor="text-swatch-8-mark"
+ iconBgColor="bg-swatch-8-surface"
/>
</div>
diff --git a/packages/web/src/app/routes/platform/infra/health/components/status-line-chart.tsx b/packages/web/src/app/routes/platform/infra/health/components/status-line-chart.tsx
index e5a579661e2..fca2f4b6b6d 100644
--- a/packages/web/src/app/routes/platform/infra/health/components/status-line-chart.tsx
+++ b/packages/web/src/app/routes/platform/infra/health/components/status-line-chart.tsx
@@ -19,14 +19,26 @@ import { Skeleton } from '@/components/ui/skeleton';
import { formatUtils } from '@/lib/format-utils';
const SERIES: Array<{ status: FlowRunStatus; label: string; color: string }> = [
- { status: FlowRunStatus.SUCCEEDED, label: 'Succeeded', color: '#22c55e' },
- { status: FlowRunStatus.FAILED, label: 'Failed', color: '#f59e0b' },
+ {
+ status: FlowRunStatus.SUCCEEDED,
+ label: 'Succeeded',
+ color: 'var(--success-11)',
+ },
+ {
+ status: FlowRunStatus.FAILED,
+ label: 'Failed',
+ color: 'var(--warning-11)',
+ },
{
status: FlowRunStatus.INTERNAL_ERROR,
label: 'Internal error',
- color: '#ef4444',
+ color: 'var(--danger-11)',
+ },
+ {
+ status: FlowRunStatus.CANCELED,
+ label: 'Cancelled',
+ color: 'var(--gray-11)',
},
- { status: FlowRunStatus.CANCELED, label: 'Cancelled', color: '#9ca3af' },
];
type StatusLineChartProps = {
@@ -100,15 +112,15 @@ export function StatusLineChart({ data, isLoading }: StatusLineChartProps) {
<Skeleton className="h-[300px] w-full" />
) : !hasSelection ? (
<div className="flex h-[300px] w-full flex-col items-center justify-center gap-2">
- <LineChartIcon className="size-10 text-muted-foreground" />
- <p className="text-sm text-muted-foreground">
+ <LineChartIcon className="size-10 text-gray-11" />
+ <p className="text-sm text-gray-11">
{t('Select at least one status to display')}
</p>
</div>
) : chartData.length === 0 ? (
<div className="flex h-[300px] w-full flex-col items-center justify-center gap-2">
- <LineChartIcon className="size-10 text-muted-foreground" />
- <p className="text-sm text-muted-foreground">
+ <LineChartIcon className="size-10 text-gray-11" />
+ <p className="text-sm text-gray-11">
{t('No runs in this period')}
</p>
</div>
@@ -148,7 +160,7 @@ export function StatusLineChart({ data, isLoading }: StatusLineChartProps) {
<CartesianGrid
vertical={false}
strokeDasharray="3 3"
- stroke="hsl(var(--border))"
+ stroke="var(--gray-6)"
/>
<XAxis
dataKey="date"
@@ -156,7 +168,7 @@ export function StatusLineChart({ data, isLoading }: StatusLineChartProps) {
axisLine={false}
tickMargin={8}
minTickGap={32}
- tick={{ fill: 'hsl(var(--muted-foreground))', fontSize: 12 }}
+ tick={{ fill: 'var(--gray-11)', fontSize: 12 }}
tickFormatter={(value) =>
new Date(value).toLocaleDateString('en-US', {
month: 'short',
@@ -168,7 +180,7 @@ export function StatusLineChart({ data, isLoading }: StatusLineChartProps) {
tickLine={false}
axisLine={false}
tickMargin={8}
- tick={{ fill: 'hsl(var(--muted-foreground))', fontSize: 12 }}
+ tick={{ fill: 'var(--gray-11)', fontSize: 12 }}
width={40}
tickFormatter={(value) =>
formatUtils.formatNumberCompact(value as number)
diff --git a/packages/web/src/app/routes/platform/infra/health/components/stuck-jobs-table.tsx b/packages/web/src/app/routes/platform/infra/health/components/stuck-jobs-table.tsx
index 0a9ae6a14d6..fd8a8e3379f 100644
--- a/packages/web/src/app/routes/platform/infra/health/components/stuck-jobs-table.tsx
+++ b/packages/web/src/app/routes/platform/infra/health/components/stuck-jobs-table.tsx
@@ -42,8 +42,8 @@ export function StuckJobsTable({ stuckJobs, isLoading }: StuckJobsTableProps) {
{isLoading ? (
<Skeleton className="h-24 w-full" />
) : jobs.length === 0 ? (
- <div className="flex flex-col items-center justify-center gap-2 py-8 text-muted-foreground">
- <CircleCheck className="size-8 text-emerald-500" />
+ <div className="flex flex-col items-center justify-center gap-2 py-8 text-gray-11">
+ <CircleCheck className="size-8 text-success-11" />
<p className="text-sm">{t('No stuck jobs')}</p>
</div>
) : (
@@ -65,7 +65,7 @@ export function StuckJobsTable({ stuckJobs, isLoading }: StuckJobsTableProps) {
}
>
<TableCell className="font-medium">{job.flowName}</TableCell>
- <TableCell className="text-muted-foreground">
+ <TableCell className="text-gray-11">
{job.projectName}
</TableCell>
<TableCell>
diff --git a/packages/web/src/app/routes/platform/infra/health/components/system-health-tab.tsx b/packages/web/src/app/routes/platform/infra/health/components/system-health-tab.tsx
index 926f8d7f14b..73bb9d97593 100644
--- a/packages/web/src/app/routes/platform/infra/health/components/system-health-tab.tsx
+++ b/packages/web/src/app/routes/platform/infra/health/components/system-health-tab.tsx
@@ -93,7 +93,7 @@ export function SystemHealthTab({ onSeeRuns }: SystemHealthTabProps) {
<span>
{t('Current')} {currentVersion || t('Unknown')}
</span>
- <span className="size-1 rounded-full bg-border" />
+ <span className="size-1 rounded-full bg-gray-6" />
<span>
{t('Latest')} {latestVersion || t('Unknown')}
</span>
@@ -218,12 +218,12 @@ function HealthCard({
return (
<Card className="overflow-hidden">
<div className="flex items-center gap-3 border-b px-4 py-3">
- <div className="flex size-9 shrink-0 items-center justify-center rounded-md bg-muted text-muted-foreground">
+ <div className="flex size-9 shrink-0 items-center justify-center rounded-md bg-gray-3 text-gray-11">
{icon}
</div>
<div className="flex-1 min-w-0">
<p className="text-sm font-semibold leading-tight">{title}</p>
- <p className="text-xs text-muted-foreground">{description}</p>
+ <p className="text-xs text-gray-11">{description}</p>
</div>
</div>
<CardContent className="divide-y p-0">
@@ -243,10 +243,10 @@ function HealthRowItem({ row, loading }: { row: HealthRow; loading: boolean }) {
className={cn(
'flex size-8 shrink-0 items-center justify-center rounded-md',
status === 'failed'
- ? 'bg-destructive-50 text-destructive-700'
+ ? 'bg-danger-3 text-danger-11'
: status === 'passed'
- ? 'bg-success-50 text-success-700'
- : 'bg-muted text-muted-foreground',
+ ? 'bg-success-3 text-success-11'
+ : 'bg-gray-3 text-gray-11',
)}
>
{row.icon}
@@ -259,13 +259,13 @@ function HealthRowItem({ row, loading }: { row: HealthRow; loading: boolean }) {
href={row.link}
target="_blank"
rel="noreferrer"
- className="text-muted-foreground hover:text-foreground"
+ className="text-gray-11 hover:text-gray-12"
>
<ExternalLink className="size-3.5" />
</a>
)}
</div>
- <div className="text-xs text-muted-foreground">{row.message}</div>
+ <div className="text-xs text-gray-11">{row.message}</div>
</div>
<StatusPill status={status} />
</div>
@@ -275,7 +275,7 @@ function HealthRowItem({ row, loading }: { row: HealthRow; loading: boolean }) {
function StatusPill({ status }: { status: Status }) {
if (status === 'loading') {
return (
- <span className="flex items-center gap-1.5 text-xs text-muted-foreground">
+ <span className="flex items-center gap-1.5 text-xs text-gray-11">
<LoadingSpinner className="size-3.5" />
{t('Checking')}
</span>
@@ -298,18 +298,18 @@ function StatusPill({ status }: { status: Status }) {
const STATUS_CONFIG = {
passed: {
label: 'Passed',
- text: 'text-success-700',
- dot: 'bg-success-600',
+ text: 'text-success-11',
+ dot: 'bg-success-11',
},
failed: {
label: 'Needs attention',
- text: 'text-destructive-700',
- dot: 'bg-destructive-600',
+ text: 'text-danger-11',
+ dot: 'bg-danger-11',
},
na: {
label: 'Not applicable',
- text: 'text-muted-foreground',
- dot: 'bg-muted-foreground',
+ text: 'text-gray-11',
+ dot: 'bg-gray-11',
},
} as const;
diff --git a/packages/web/src/app/routes/platform/infra/triggers/index.tsx b/packages/web/src/app/routes/platform/infra/triggers/index.tsx
index 4ebe266be14..e8897d66019 100644
--- a/packages/web/src/app/routes/platform/infra/triggers/index.tsx
+++ b/packages/web/src/app/routes/platform/infra/triggers/index.tsx
@@ -122,26 +122,26 @@ export default function TriggerHealthPage() {
const getStatusIcon = (statusType: string) => {
switch (statusType) {
case STATUS.SUCCESS:
- return <CheckCircle size={16} className="text-success-700" />;
+ return <CheckCircle size={16} className="text-success-11" />;
case STATUS.WARNING:
- return <AlertCircle size={16} className="text-amber-700" />;
+ return <AlertCircle size={16} className="text-warning-11" />;
case STATUS.FAULT:
- return <XCircle size={16} className="text-destructive" />;
+ return <XCircle size={16} className="text-danger-11" />;
default:
- return <AlertCircle size={16} className="text-gray-500" />;
+ return <AlertCircle size={16} className="text-gray-9" />;
}
};
const getStatusColor = (statusType: string) => {
switch (statusType) {
case STATUS.SUCCESS:
- return 'text-success-700';
+ return 'text-success-11';
case STATUS.WARNING:
- return 'text-amber-700';
+ return 'text-warning-11';
case STATUS.FAULT:
- return 'text-destructive';
+ return 'text-danger-11';
default:
- return 'text-gray-600';
+ return 'text-gray-11';
}
};
diff --git a/packages/web/src/app/routes/platform/infra/triggers/status-progress-bar.tsx b/packages/web/src/app/routes/platform/infra/triggers/status-progress-bar.tsx
index 41d3516b910..6f155e1674e 100644
--- a/packages/web/src/app/routes/platform/infra/triggers/status-progress-bar.tsx
+++ b/packages/web/src/app/routes/platform/infra/triggers/status-progress-bar.tsx
@@ -30,10 +30,11 @@ export function StatusProgressBar({ days, className }: StatusProgressBarProps) {
'w-3 h-6 rounded-sm cursor-pointer transition-colors',
'hover:scale-110 hover:shadow-xs',
{
- 'bg-success hover:bg-success-600': day.status === 'success',
- 'bg-destructive hover:bg-destructive/80':
- day.status === 'fault',
- 'bg-amber-400 hover:bg-amber-500': day.status === 'warning',
+ 'bg-success-9 hover:bg-success-9/80':
+ day.status === 'success',
+ 'bg-danger-9 hover:bg-danger-9/80': day.status === 'fault',
+ 'bg-warning-9 hover:bg-warning-9/80':
+ day.status === 'warning',
},
)}
/>
diff --git a/packages/web/src/app/routes/platform/infra/workers/assign-projects-dialog.tsx b/packages/web/src/app/routes/platform/infra/workers/assign-projects-dialog.tsx
index 546261f5274..4d39ab47d79 100644
--- a/packages/web/src/app/routes/platform/infra/workers/assign-projects-dialog.tsx
+++ b/packages/web/src/app/routes/platform/infra/workers/assign-projects-dialog.tsx
@@ -108,7 +108,7 @@ function AssignProjectsContent({
<DialogDescription>
{t("These projects will run on this group's dedicated queue.")}
</DialogDescription>
- <div className="inline-flex items-center gap-1.5 rounded-md bg-primary/10 px-2 py-1 text-sm font-medium text-primary w-fit">
+ <div className="inline-flex items-center gap-1.5 rounded-md bg-accent-3 px-2 py-1 text-sm font-medium text-accent-11 w-fit">
<Layers className="size-3.5 shrink-0" />
{groupLabel.replaceAll('_', ' ')}
</div>
@@ -116,7 +116,7 @@ function AssignProjectsContent({
<div className="flex flex-col gap-3">
<div className="relative">
- <Search className="absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground" />
+ <Search className="absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-gray-11" />
<Input
className="pl-8"
placeholder={t('Search projects')}
@@ -128,7 +128,7 @@ function AssignProjectsContent({
<ScrollArea className="h-64 rounded-md border">
<div className="p-1">
{filteredProjects.length === 0 && (
- <p className="py-8 text-center text-sm text-muted-foreground">
+ <p className="py-8 text-center text-sm text-gray-11">
{t('No projects')}
</p>
)}
@@ -141,7 +141,7 @@ function AssignProjectsContent({
<button
key={project.id}
type="button"
- className="flex w-full items-center gap-3 rounded-md px-2 py-2 text-left hover:bg-accent cursor-pointer"
+ className="flex w-full items-center gap-3 rounded-md px-2 py-2 text-left hover:bg-gray-4 cursor-pointer"
onClick={() => toggleProject(project.id)}
>
<Checkbox
@@ -157,8 +157,8 @@ function AssignProjectsContent({
</span>
</TextWithTooltip>
<span
- className={cn('text-xs text-muted-foreground truncate', {
- 'text-primary': isCurrentGroup,
+ className={cn('text-xs text-gray-11 truncate', {
+ 'text-accent-11': isCurrentGroup,
})}
>
{subtitle}
@@ -172,7 +172,7 @@ function AssignProjectsContent({
</div>
<DialogFooter className="sm:justify-between">
- <span className="text-sm text-muted-foreground self-center">
+ <span className="text-sm text-gray-11 self-center">
{checkedIds.size}{' '}
{checkedIds.size === 1 ? t('Project') : t('Projects')}
</span>
diff --git a/packages/web/src/app/routes/platform/infra/workers/by-group-view.tsx b/packages/web/src/app/routes/platform/infra/workers/by-group-view.tsx
index 1cd05a93413..7fe023b280c 100644
--- a/packages/web/src/app/routes/platform/infra/workers/by-group-view.tsx
+++ b/packages/web/src/app/routes/platform/infra/workers/by-group-view.tsx
@@ -30,7 +30,7 @@ export function ByGroupView({
if (allGroupLabels.length === 0) {
return (
- <div className="flex flex-col items-center justify-center py-16 gap-3 text-muted-foreground">
+ <div className="flex flex-col items-center justify-center py-16 gap-3 text-gray-11">
<Layers className="size-10" strokeWidth={1.5} />
<p className="text-sm">{t('No projects')}</p>
</div>
@@ -71,9 +71,9 @@ function GroupCard({ groupLabel, allProjects, workers }: GroupCardProps) {
return (
<>
- <div className="flex w-full flex-col rounded-lg border bg-background p-5 gap-4 sm:w-[475px]">
+ <div className="flex w-full flex-col rounded-lg border bg-gray-1 p-5 gap-4 sm:w-[475px]">
<div className="flex items-center gap-2.5 min-w-0">
- <div className="flex size-7 shrink-0 items-center justify-center rounded-md bg-primary/10 text-primary">
+ <div className="flex size-7 shrink-0 items-center justify-center rounded-md bg-accent-3 text-accent-11">
<Layers className="size-4" />
</div>
<TextWithTooltip tooltipMessage={groupLabel}>
@@ -87,7 +87,7 @@ function GroupCard({ groupLabel, allProjects, workers }: GroupCardProps) {
<span className="text-2xl font-bold leading-tight">
{onlineWorkerCount}
</span>
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-gray-11">
{t('{count, plural, =1 {worker} other {workers}}', {
count: onlineWorkerCount,
})}{' '}
@@ -97,7 +97,7 @@ function GroupCard({ groupLabel, allProjects, workers }: GroupCardProps) {
<div className="border-t pt-4">
<div className="flex items-center justify-between mb-2.5">
- <span className="text-xs font-medium uppercase tracking-wide text-muted-foreground">
+ <span className="text-xs font-medium uppercase tracking-wide text-gray-11">
{t('PROJECTS')}
</span>
<Button
@@ -112,14 +112,14 @@ function GroupCard({ groupLabel, allProjects, workers }: GroupCardProps) {
</div>
{assignedProjects.length === 0 ? (
- <p className="text-xs text-muted-foreground">{t('No projects')}</p>
+ <p className="text-xs text-gray-11">{t('No projects')}</p>
) : (
<div className="flex flex-wrap items-center gap-1.5">
{assignedProjects.slice(0, 3).map((project) => (
<ProjectChip key={project.id} project={project} />
))}
{assignedProjects.length > 3 && (
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{t('+{count} more', { count: assignedProjects.length - 3 })}
</span>
)}
@@ -140,7 +140,7 @@ function GroupCard({ groupLabel, allProjects, workers }: GroupCardProps) {
function ProjectChip({ project }: { project: ProjectWithLimits }) {
return (
- <div className="inline-flex items-center gap-1 rounded-full border bg-muted/40 px-2 py-0.5 text-xs">
+ <div className="inline-flex items-center gap-1 rounded-full border bg-gray-3/40 px-2 py-0.5 text-xs">
<ProjectAvatar project={project} size="sm" />
<TextWithTooltip tooltipMessage={project.displayName}>
<span className="max-w-[100px] truncate">{project.displayName}</span>
diff --git a/packages/web/src/app/routes/platform/infra/workers/by-project-view.tsx b/packages/web/src/app/routes/platform/infra/workers/by-project-view.tsx
index 1dcfed888de..f6e8683a607 100644
--- a/packages/web/src/app/routes/platform/infra/workers/by-project-view.tsx
+++ b/packages/web/src/app/routes/platform/infra/workers/by-project-view.tsx
@@ -63,7 +63,7 @@ export function ByProjectView({
const searchBar = (
<div className="relative">
- <Search className="absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground" />
+ <Search className="absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-gray-11" />
<Input
className="pl-8 w-[240px]"
placeholder={t('Search projects')}
@@ -90,7 +90,7 @@ export function ByProjectView({
return (
<div className="flex flex-col gap-3">
- <p className="flex items-center gap-2 text-sm text-muted-foreground">
+ <p className="flex items-center gap-2 text-sm text-gray-11">
<BarChart3 className="size-4 shrink-0" />
{t(
'Allocate capacity per project — pick its worker group and concurrency limit. Leave the limit empty to inherit the platform default. Project settings shows these read-only and links here.',
@@ -172,7 +172,7 @@ function buildColumns({
}: {
row: { original: RowDataWithActions<ProjectWithLimits> };
}) => (
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-gray-11">
{row.original.analytics.totalFlows}
</span>
),
@@ -247,17 +247,17 @@ function WorkerGroupCell({
<div className="flex flex-col gap-1">
<Select value={selectValue} onValueChange={handleChange}>
<SelectTrigger
- className={cn('w-[200px]', isOffline && 'border-destructive')}
+ className={cn('w-[200px]', isOffline && 'border-danger-9')}
>
<div className="flex items-center gap-2 min-w-0">
<Cpu
className={cn(
'size-3.5 shrink-0',
isOffline
- ? 'text-destructive'
+ ? 'text-danger-11'
: isShared
- ? 'text-muted-foreground'
- : 'text-primary',
+ ? 'text-gray-11'
+ : 'text-accent-11',
)}
/>
<SelectValue />
@@ -265,7 +265,7 @@ function WorkerGroupCell({
</SelectTrigger>
<SelectContent>
<SelectItem value={SHARED_SENTINEL}>
- <span className="text-muted-foreground">{t('Shared')}</span>
+ <span className="text-gray-11">{t('Shared')}</span>
</SelectItem>
{isOffline && (
<SelectItem value={row.workerGroupId!}>
@@ -280,7 +280,7 @@ function WorkerGroupCell({
</SelectContent>
</Select>
{isOffline && (
- <p className="text-xs text-destructive">
+ <p className="text-xs text-danger-11">
{t('{group} has no workers online. Runs will wait in its queue', {
group: row.workerGroupId!.replaceAll('_', ' '),
})}
diff --git a/packages/web/src/app/routes/platform/infra/workers/index.tsx b/packages/web/src/app/routes/platform/infra/workers/index.tsx
index a84bc45d81d..ff94e389d58 100644
--- a/packages/web/src/app/routes/platform/infra/workers/index.tsx
+++ b/packages/web/src/app/routes/platform/infra/workers/index.tsx
@@ -103,17 +103,17 @@ export default function WorkersPage({ section }: WorkersPageProps) {
<Card key={i} className="animate-pulse">
<CardHeader className="pb-3">
<div className="flex items-center justify-between">
- <div className="h-4 w-28 bg-muted rounded" />
- <div className="h-5 w-16 bg-muted rounded-full" />
+ <div className="h-4 w-28 bg-gray-3 rounded" />
+ <div className="h-5 w-16 bg-gray-3 rounded-full" />
</div>
</CardHeader>
<CardContent className="space-y-3">
- <div className="h-3 w-full bg-muted rounded" />
- <div className="h-3 w-full bg-muted rounded" />
- <div className="h-3 w-full bg-muted rounded" />
+ <div className="h-3 w-full bg-gray-3 rounded" />
+ <div className="h-3 w-full bg-gray-3 rounded" />
+ <div className="h-3 w-full bg-gray-3 rounded" />
</CardContent>
<CardFooter>
- <div className="h-4 w-full bg-muted rounded" />
+ <div className="h-4 w-full bg-gray-3 rounded" />
</CardFooter>
</Card>
))}
@@ -121,9 +121,9 @@ export default function WorkersPage({ section }: WorkersPageProps) {
)}
{!isLoading && (workersData ?? []).length === 0 && (
- <div className="flex flex-col items-center justify-center py-16 gap-3 text-muted-foreground">
+ <div className="flex flex-col items-center justify-center py-16 gap-3 text-gray-11">
<Server className="size-14" />
- <p className="font-medium text-foreground">
+ <p className="font-medium text-gray-12">
{t('No workers found')}
</p>
<p className="text-sm text-center max-w-sm">
@@ -164,17 +164,17 @@ export default function WorkersPage({ section }: WorkersPageProps) {
function StatBar({ label, value, detail }: StatBarProps) {
const barColor =
value > 95
- ? 'bg-destructive'
+ ? 'bg-danger-11'
: value > 80
- ? 'bg-warning'
- : 'bg-emerald-500';
+ ? 'bg-warning-11'
+ : 'bg-success-11';
return (
<div className="flex items-center gap-2">
- <span className="w-16 text-xs text-muted-foreground shrink-0 flex items-center gap-1.5">
+ <span className="w-16 text-xs text-gray-11 shrink-0 flex items-center gap-1.5">
{label}
</span>
- <div className="flex-1 h-2 bg-muted rounded-full overflow-hidden">
+ <div className="flex-1 h-2 bg-gray-3 rounded-full overflow-hidden">
<div
className={cn('h-full rounded-full', barColor)}
style={{ width: `${Math.min(value, 100)}%` }}
@@ -184,7 +184,7 @@ function StatBar({ label, value, detail }: StatBarProps) {
{value.toFixed(1)}%
</span>
{detail && (
- <span className="text-xs text-foreground shrink-0 w-28 text-right">
+ <span className="text-xs text-gray-12 shrink-0 w-28 text-right">
{detail}
</span>
)}
@@ -221,16 +221,14 @@ function WorkerCard({ worker, index }: WorkerCardProps) {
<Server
size={18}
className={cn('shrink-0', {
- 'text-destructive': !isOnline,
+ 'text-danger-11': !isOnline,
})}
/>
<div className="flex flex-col min-w-0">
<span className="text-sm font-medium truncate">
Machine #{index + 1}
</span>
- <span className="text-xs text-muted-foreground font-mono">
- {ip}
- </span>
+ <span className="text-xs text-gray-11 font-mono">{ip}</span>
</div>
</div>
<div className="flex items-center gap-1.5 shrink-0 flex-wrap justify-end">
@@ -240,7 +238,7 @@ function WorkerCard({ worker, index }: WorkerCardProps) {
worker.workerGroupId ? (
<Badge
variant="outline"
- className="border-primary/40 bg-primary/10 text-primary"
+ className="border-accent-7 bg-accent-3 text-accent-11"
>
<Layers className="size-3 shrink-0" />
{worker.workerGroupId.replaceAll('_', ' ')}
@@ -324,13 +322,13 @@ function WorkerCard({ worker, index }: WorkerCardProps) {
</CardContent>
<CardFooter className="justify-between pt-0 gap-2">
- <div className="flex items-center gap-3 text-xs text-muted-foreground min-w-0">
+ <div className="flex items-center gap-3 text-xs text-gray-11 min-w-0">
<span className="flex items-center gap-1 truncate">
<Clock size={12} className="shrink-0" />
{t('seen')} {timeAgo}
</span>
</div>
- <span className="text-xs text-muted-foreground font-mono shrink-0">
+ <span className="text-xs text-gray-11 font-mono shrink-0">
{version}
</span>
</CardFooter>
diff --git a/packages/web/src/app/routes/platform/infra/workers/project-avatar.tsx b/packages/web/src/app/routes/platform/infra/workers/project-avatar.tsx
index 5a6e808180c..99ad04f0c08 100644
--- a/packages/web/src/app/routes/platform/infra/workers/project-avatar.tsx
+++ b/packages/web/src/app/routes/platform/infra/workers/project-avatar.tsx
@@ -9,8 +9,8 @@ import { cn } from '@/lib/utils';
export function ProjectAvatar({ project, size = 'md' }: ProjectAvatarProps) {
const isPersonal = project.type === ProjectType.PERSONAL;
const palette = PROJECT_COLOR_PALETTE[project.icon.color];
- const background = isPersonal ? '#9ca3af' : palette.color;
- const color = isPersonal ? '#ffffff' : palette.textColor;
+ const background = isPersonal ? 'var(--gray-9)' : palette.color;
+ const color = isPersonal ? 'var(--gray-1)' : palette.textColor;
const sizeClass = size === 'sm' ? 'size-5 text-[10px]' : 'size-7 text-xs';
diff --git a/packages/web/src/app/routes/platform/infra/workers/sandboxes-popover.tsx b/packages/web/src/app/routes/platform/infra/workers/sandboxes-popover.tsx
index e902ce2c0bc..3c34de7c48b 100644
--- a/packages/web/src/app/routes/platform/infra/workers/sandboxes-popover.tsx
+++ b/packages/web/src/app/routes/platform/infra/workers/sandboxes-popover.tsx
@@ -19,7 +19,7 @@ export const SandboxesPopover: React.FC<Props> = ({ sandboxes }) => {
<Button
variant="ghost"
size="icon"
- className="size-7 text-muted-foreground hover:text-foreground"
+ className="size-7 text-gray-11 hover:text-gray-12"
title={t('Sandboxes')}
>
<Box size={14} />
@@ -27,20 +27,20 @@ export const SandboxesPopover: React.FC<Props> = ({ sandboxes }) => {
</PopoverTrigger>
<PopoverContent className="w-auto p-0" align="start">
{sandboxes.length === 0 ? (
- <p className="px-3 py-2 text-xs text-muted-foreground">
+ <p className="px-3 py-2 text-xs text-gray-11">
{t('No sandboxes running')}
</p>
) : (
<table className="text-xs">
<thead>
<tr className="border-b">
- <th className="px-3 py-2 text-left font-medium text-muted-foreground">
+ <th className="px-3 py-2 text-left font-medium text-gray-11">
{t('Sandbox')}
</th>
- <th className="px-3 py-2 text-left font-medium text-muted-foreground">
+ <th className="px-3 py-2 text-left font-medium text-gray-11">
{t('Status')}
</th>
- <th className="px-3 py-2 text-left font-medium text-muted-foreground">
+ <th className="px-3 py-2 text-left font-medium text-gray-11">
{t('Memory')}
</th>
</tr>
@@ -59,7 +59,7 @@ export const SandboxesPopover: React.FC<Props> = ({ sandboxes }) => {
{sandbox.busy ? t('Busy') : t('Idle')}
</Badge>
</td>
- <td className="px-3 py-2 font-mono text-muted-foreground">
+ <td className="px-3 py-2 font-mono text-gray-11">
{prettyBytes(sandbox.memoryUsageBytes, { binary: true })}
</td>
</tr>
diff --git a/packages/web/src/app/routes/platform/infra/workers/worker-assignments-tab.tsx b/packages/web/src/app/routes/platform/infra/workers/worker-assignments-tab.tsx
index 490a9bbe16b..3305b2c58d2 100644
--- a/packages/web/src/app/routes/platform/infra/workers/worker-assignments-tab.tsx
+++ b/packages/web/src/app/routes/platform/infra/workers/worker-assignments-tab.tsx
@@ -34,7 +34,7 @@ export function WorkerAssignmentsTab() {
href="https://www.activepieces.com/docs/install/configure-operate/worker-groups"
target="_blank"
rel="noreferrer"
- className="text-primary underline"
+ className="text-accent-11 underline"
>
{t('Learn more')}
</a>
diff --git a/packages/web/src/app/routes/platform/infra/workers/worker-configs-popover.tsx b/packages/web/src/app/routes/platform/infra/workers/worker-configs-popover.tsx
index 056c41e3901..b18971d60aa 100644
--- a/packages/web/src/app/routes/platform/infra/workers/worker-configs-popover.tsx
+++ b/packages/web/src/app/routes/platform/infra/workers/worker-configs-popover.tsx
@@ -19,7 +19,7 @@ export const WorkerConfigsPopover: React.FC<Props> = ({ workerProps }) => {
<Button
variant="ghost"
size="icon"
- className="size-7 text-muted-foreground hover:text-foreground"
+ className="size-7 text-gray-11 hover:text-gray-12"
title={t('Configs')}
>
<SlidersHorizontal size={14} />
@@ -29,10 +29,10 @@ export const WorkerConfigsPopover: React.FC<Props> = ({ workerProps }) => {
<table className="text-xs">
<thead>
<tr className="border-b">
- <th className="px-3 py-2 text-left font-medium text-muted-foreground">
+ <th className="px-3 py-2 text-left font-medium text-gray-11">
{t('Variable')}
</th>
- <th className="px-3 py-2 text-left font-medium text-muted-foreground">
+ <th className="px-3 py-2 text-left font-medium text-gray-11">
{t('Value')}
</th>
</tr>
@@ -41,9 +41,7 @@ export const WorkerConfigsPopover: React.FC<Props> = ({ workerProps }) => {
{entries.map(([key, value]) => (
<tr key={key} className="border-b last:border-b-0">
<td className="px-3 py-2 font-mono font-medium">{key}</td>
- <td className="px-3 py-2 font-mono text-muted-foreground">
- {value}
- </td>
+ <td className="px-3 py-2 font-mono text-gray-11">{value}</td>
</tr>
))}
</tbody>
diff --git a/packages/web/src/app/routes/platform/projects/columns.tsx b/packages/web/src/app/routes/platform/projects/columns.tsx
index 71334571a92..b12de83a367 100644
--- a/packages/web/src/app/routes/platform/projects/columns.tsx
+++ b/packages/web/src/app/routes/platform/projects/columns.tsx
@@ -73,7 +73,7 @@ export const projectsTableColumns = ({
<span className="font-medium">
{row.original.analytics.activeUsers}
</span>
- <span className="text-muted-foreground">
+ <span className="text-gray-11">
{` / ${row.original.analytics.totalUsers}`}
</span>
</div>
@@ -97,7 +97,7 @@ export const projectsTableColumns = ({
<span className="font-medium">
{row.original.analytics.activeFlows}
</span>
- <span className="text-muted-foreground">
+ <span className="text-gray-11">
{` / ${row.original.analytics.totalFlows}`}
</span>
</div>
diff --git a/packages/web/src/app/routes/platform/projects/index.tsx b/packages/web/src/app/routes/platform/projects/index.tsx
index f5df2b753c3..b20dea5dff0 100644
--- a/packages/web/src/app/routes/platform/projects/index.tsx
+++ b/packages/web/src/app/routes/platform/projects/index.tsx
@@ -287,7 +287,7 @@ export default function ProjectsPage() {
<Button
variant="ghost"
size="sm"
- className="text-destructive hover:text-destructive"
+ className="text-danger-11 hover:text-danger-11"
disabled={!canDeleteAny}
>
<Trash className="mr-1 w-4" />
diff --git a/packages/web/src/app/routes/platform/security/api-keys/index.tsx b/packages/web/src/app/routes/platform/security/api-keys/index.tsx
index ebf2f091bff..9a1b8e87e07 100644
--- a/packages/web/src/app/routes/platform/security/api-keys/index.tsx
+++ b/packages/web/src/app/routes/platform/security/api-keys/index.tsx
@@ -56,7 +56,7 @@ const ApiKeysPage = () => {
)}
{!isLoading && keys.length === 0 && (
- <div className="flex flex-col items-center gap-3 py-12 text-muted-foreground">
+ <div className="flex flex-col items-center gap-3 py-12 text-gray-11">
<Key className="size-10" />
<p className="text-sm">
{t('No API keys yet. Create one to get started.')}
@@ -113,10 +113,10 @@ const ApiKeysPage = () => {
onError={() => internalErrorToast()}
>
<DropdownMenuItem
- className="text-destructive focus:text-destructive"
+ className="text-danger-11 focus:text-danger-11"
onSelect={(e) => e.preventDefault()}
>
- <Trash className="size-4 mr-2 text-destructive" />
+ <Trash className="size-4 mr-2 text-danger-11" />
{t('Revoke API Key')}
</DropdownMenuItem>
</ConfirmationDeleteDialog>
diff --git a/packages/web/src/app/routes/platform/security/api-keys/new-api-key-dialog.tsx b/packages/web/src/app/routes/platform/security/api-keys/new-api-key-dialog.tsx
index 85030c596cb..148df2cbe73 100644
--- a/packages/web/src/app/routes/platform/security/api-keys/new-api-key-dialog.tsx
+++ b/packages/web/src/app/routes/platform/security/api-keys/new-api-key-dialog.tsx
@@ -83,7 +83,7 @@ export const NewApiKeyDialog = ({
<>
<div className="p-4">
<div className="flex flex-col items-start gap-2">
- <span className="text-md">
+ <span>
{t(
'Please save this secret key somewhere safe and accessible. For security reasons,',
)}{' '}
diff --git a/packages/web/src/app/routes/platform/security/audit-logs/index.tsx b/packages/web/src/app/routes/platform/security/audit-logs/index.tsx
index a383bf5bcec..2818830f3f6 100644
--- a/packages/web/src/app/routes/platform/security/audit-logs/index.tsx
+++ b/packages/web/src/app/routes/platform/security/audit-logs/index.tsx
@@ -144,9 +144,7 @@ export default function AuditLogsPage() {
return (
<div className="text-left flex items-center gap-2">
{!isNil(icon?.icon) && (
- <span className="text-muted-foreground shrink-0">
- {icon.icon}
- </span>
+ <span className="text-gray-11 shrink-0">{icon.icon}</span>
)}
{formatUtils.convertEnumToHumanReadable(row.original.action)}
</div>
@@ -199,7 +197,7 @@ export default function AuditLogsPage() {
return row.original.projectId &&
'project' in row.original.data ? (
<Link to={`/projects/${row.original.projectId}`}>
- <div className="text-left text-primary hover:underline">
+ <div className="text-left text-accent-11 hover:underline">
{row.original.data.project?.displayName}
</div>
</Link>
@@ -239,7 +237,7 @@ export default function AuditLogsPage() {
setIsSheetOpen(true);
}}
>
- <Eye className="size-4 text-muted-foreground" />
+ <Eye className="size-4 text-gray-11" />
</Button>
),
},
@@ -258,21 +256,19 @@ export default function AuditLogsPage() {
selectedEvent?.action ?? '',
)}
</SheetTitle>
- <p className="text-sm text-muted-foreground mt-1">
+ <p className="text-sm text-gray-11 mt-1">
{selectedEvent && convertToDetails(selectedEvent)}
</p>
</SheetHeader>
<div className="flex-1 overflow-y-auto">
<div className="px-6 py-5 flex flex-col gap-4">
- <p className="text-xs font-semibold text-muted-foreground uppercase tracking-wide">
+ <p className="text-xs font-semibold text-gray-11 uppercase tracking-wide">
{t('Who & When')}
</p>
<div className="grid grid-cols-[150px_1fr] gap-y-3 text-sm">
{selectedEvent?.userEmail && (
<>
- <span className="text-muted-foreground">
- {t('Performed By')}
- </span>
+ <span className="text-gray-11">{t('Performed By')}</span>
<span className="font-medium">
{selectedEvent.userEmail}
</span>
@@ -280,9 +276,7 @@ export default function AuditLogsPage() {
)}
{selectedEvent?.projectDisplayName && (
<>
- <span className="text-muted-foreground">
- {t('Project')}
- </span>
+ <span className="text-gray-11">{t('Project')}</span>
<span className="font-medium">
{selectedEvent.projectDisplayName}
</span>
@@ -290,13 +284,11 @@ export default function AuditLogsPage() {
)}
{selectedEvent?.ip && (
<>
- <span className="text-muted-foreground">
- {t('IP Address')}
- </span>
+ <span className="text-gray-11">{t('IP Address')}</span>
<span className="font-medium">{selectedEvent.ip}</span>
</>
)}
- <span className="text-muted-foreground">{t('Created')}</span>
+ <span className="text-gray-11">{t('Created')}</span>
<span className="font-medium">
{selectedEvent && (
<FormattedDate date={new Date(selectedEvent.created)} />
@@ -308,14 +300,14 @@ export default function AuditLogsPage() {
<>
<Separator />
<div className="px-6 py-5 flex flex-col gap-4">
- <p className="text-xs font-semibold text-muted-foreground uppercase tracking-wide">
+ <p className="text-xs font-semibold text-gray-11 uppercase tracking-wide">
{t('Event Details')}
</p>
<div className="grid grid-cols-[150px_1fr] gap-y-3 text-sm">
{extractEventDetails(selectedEvent).map(
({ label, value }) => (
<Fragment key={label}>
- <span className="text-muted-foreground">{label}</span>
+ <span className="text-gray-11">{label}</span>
<span className="font-medium">{value}</span>
</Fragment>
),
@@ -326,7 +318,7 @@ export default function AuditLogsPage() {
)}
<Separator />
<div className="px-6 py-5 flex flex-col gap-4">
- <p className="text-xs font-semibold text-muted-foreground uppercase tracking-wide">
+ <p className="text-xs font-semibold text-gray-11 uppercase tracking-wide">
{t('Full Payload')}
</p>
<SimpleJsonViewer data={selectedEvent?.data ?? {}} />
diff --git a/packages/web/src/app/routes/platform/security/embed/index.tsx b/packages/web/src/app/routes/platform/security/embed/index.tsx
index 974e77ab14a..423e5aafcc4 100644
--- a/packages/web/src/app/routes/platform/security/embed/index.tsx
+++ b/packages/web/src/app/routes/platform/security/embed/index.tsx
@@ -133,7 +133,7 @@ const EmbedPage = () => {
<div className="w-full max-w-4/5 2xl:max-w-6xl mx-auto py-6">
<div className="flex flex-col gap-1">
<h1 className="text-xl font-medium">{t('Embed Onboarding')}</h1>
- <div className="text-sm text-muted-foreground">
+ <div className="text-sm text-gray-11">
{description}
<Button
variant="link"
diff --git a/packages/web/src/app/routes/platform/security/embed/stepper.tsx b/packages/web/src/app/routes/platform/security/embed/stepper.tsx
index dbb1cdc91d9..7648aceb812 100644
--- a/packages/web/src/app/routes/platform/security/embed/stepper.tsx
+++ b/packages/web/src/app/routes/platform/security/embed/stepper.tsx
@@ -19,7 +19,7 @@ export const StepShell = ({
<div className="flex items-start justify-between gap-4">
<div className="flex flex-col gap-1">
<h2 className="text-base font-medium">{title}</h2>
- <p className="text-sm text-muted-foreground">{description}</p>
+ <p className="text-sm text-gray-11">{description}</p>
</div>
{actions && <div className="shrink-0">{actions}</div>}
</div>
@@ -59,14 +59,13 @@ export const Stepper = ({
aria-current={isActive ? 'step' : undefined}
className={cn(
'flex size-8 items-center justify-center transition-colors',
- isComplete && 'text-success-600',
- !isComplete && isActive && 'text-primary',
+ isComplete && 'text-success-11',
+ !isComplete && isActive && 'text-accent-11',
!isComplete &&
!isActive &&
!isLocked &&
- 'text-muted-foreground hover:text-primary',
- isLocked &&
- 'text-muted-foreground cursor-not-allowed opacity-60',
+ 'text-gray-11 hover:text-accent-11',
+ isLocked && 'text-gray-11 cursor-not-allowed opacity-60',
)}
>
<Icon className="size-5" />
@@ -75,7 +74,7 @@ export const Stepper = ({
<div
className={cn(
'w-px flex-1 my-2',
- isComplete ? 'bg-success-600' : 'bg-border',
+ isComplete ? 'bg-success-11' : 'bg-gray-6',
)}
/>
)}
@@ -86,12 +85,9 @@ export const Stepper = ({
disabled={isLocked}
className={cn(
'flex-1 text-left pt-1.5 pb-12 text-sm transition-colors',
- isActive && 'font-medium text-foreground',
- !isActive &&
- !isLocked &&
- 'text-muted-foreground hover:text-foreground',
- isLocked &&
- 'text-muted-foreground cursor-not-allowed opacity-60',
+ isActive && 'font-medium text-gray-12',
+ !isActive && !isLocked && 'text-gray-11 hover:text-gray-12',
+ isLocked && 'text-gray-11 cursor-not-allowed opacity-60',
)}
>
<span className="mr-1">{index + 1}.</span>
diff --git a/packages/web/src/app/routes/platform/security/embed/steps/allowed-domains-step.tsx b/packages/web/src/app/routes/platform/security/embed/steps/allowed-domains-step.tsx
index 573ae188323..d3c8a944ed8 100644
--- a/packages/web/src/app/routes/platform/security/embed/steps/allowed-domains-step.tsx
+++ b/packages/web/src/app/routes/platform/security/embed/steps/allowed-domains-step.tsx
@@ -83,7 +83,7 @@ export const AllowedDomainsStep = ({
render={({ field }) => (
<FormItem>
<FormLabel>{t('Allowed websites')}</FormLabel>
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{t(
'Press Enter or use a comma to add another, e.g. https://app.acme.com',
)}
@@ -102,7 +102,7 @@ export const AllowedDomainsStep = ({
/>
{envAllowedOrigins && envAllowedOrigins.length > 0 && (
<div className="mt-2 flex flex-col gap-1.5">
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{t(
'These origins are also allowed automatically (configured via AP_ALLOWED_EMBED_ORIGINS):',
)}
diff --git a/packages/web/src/app/routes/platform/security/embed/steps/dns-step.tsx b/packages/web/src/app/routes/platform/security/embed/steps/dns-step.tsx
index b25fec2c33f..49cfbdffa0f 100644
--- a/packages/web/src/app/routes/platform/security/embed/steps/dns-step.tsx
+++ b/packages/web/src/app/routes/platform/security/embed/steps/dns-step.tsx
@@ -40,21 +40,21 @@ const EmbedStatusBadge = ({ status }: { status: EmbedSubdomainStatus }) => {
switch (status) {
case EmbedSubdomainStatus.ACTIVE:
return (
- <div className="flex items-center gap-2 text-sm text-success-600">
+ <div className="flex items-center gap-2 text-sm text-success-11">
<CheckCircle className="size-4" />
{t('DNS verified — your domain is ready')}
</div>
);
case EmbedSubdomainStatus.PENDING_VERIFICATION:
return (
- <div className="flex items-center gap-2 text-sm text-warning">
+ <div className="flex items-center gap-2 text-sm text-warning-11">
<Loader2 className="size-4 animate-spin" />
{t('Waiting for DNS')}
</div>
);
case EmbedSubdomainStatus.FAILED:
return (
- <div className="flex items-center gap-2 text-sm text-destructive">
+ <div className="flex items-center gap-2 text-sm text-danger-11">
<XCircle className="size-4" />
{t('Verification failed. Contact support to retry.')}
</div>
@@ -83,20 +83,20 @@ const VerificationRow = ({ record }: { record: EmbedVerificationRecord }) => {
return (
<div className="flex flex-col gap-2">
<div className="flex items-center gap-2">
- <span className="text-xs font-mono px-1.5 py-0.5 rounded bg-muted">
+ <span className="text-xs font-mono px-1.5 py-0.5 rounded bg-gray-3">
{record.type}
</span>
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{t(PURPOSE_LABELS[record.purpose])}
</span>
</div>
<div className="grid grid-cols-2 gap-3">
<div className="flex flex-col gap-1.5 min-w-0">
- <Label className="text-xs text-muted-foreground">{t('Name')}</Label>
+ <Label className="text-xs text-gray-11">{t('Name')}</Label>
<CopyToClipboardInput textToCopy={record.name} useInput={true} />
</div>
<div className="flex flex-col gap-1.5 min-w-0">
- <Label className="text-xs text-muted-foreground">{t('Value')}</Label>
+ <Label className="text-xs text-gray-11">{t('Value')}</Label>
<CopyToClipboardInput textToCopy={record.value} useInput={true} />
</div>
</div>
diff --git a/packages/web/src/app/routes/platform/security/embed/steps/hostname-step.tsx b/packages/web/src/app/routes/platform/security/embed/steps/hostname-step.tsx
index f95a346adfd..bbafd52503f 100644
--- a/packages/web/src/app/routes/platform/security/embed/steps/hostname-step.tsx
+++ b/packages/web/src/app/routes/platform/security/embed/steps/hostname-step.tsx
@@ -84,7 +84,7 @@ const EmbedHostnameForm = () => {
<FormItem>
<FormLabel>{t('Domain')}</FormLabel>
<Input {...field} placeholder="flows.acme.com" />
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{t('Use a subdomain you control, like flows.acme.com')}
</p>
<FormMessage />
@@ -92,7 +92,7 @@ const EmbedHostnameForm = () => {
)}
/>
{form.formState.errors.root?.serverError && (
- <p className="text-sm text-destructive">
+ <p className="text-sm text-danger-11">
{form.formState.errors.root.serverError.message}
</p>
)}
@@ -146,7 +146,7 @@ const EmbedHostnameSummary = ({ subdomain }: { subdomain: EmbedSubdomain }) => {
<FormItem>
<FormLabel>{t('Domain')}</FormLabel>
<Input {...field} placeholder="flows.acme.com" />
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{t('Use a subdomain you control, like flows.acme.com')}
</p>
<FormMessage />
@@ -154,7 +154,7 @@ const EmbedHostnameSummary = ({ subdomain }: { subdomain: EmbedSubdomain }) => {
)}
/>
{errorMessage && (
- <p className="text-sm text-destructive">{errorMessage}</p>
+ <p className="text-sm text-danger-11">{errorMessage}</p>
)}
<div className="flex justify-end mt-6">
<Button type="submit" size="sm" disabled={!isDirty || isPending}>
diff --git a/packages/web/src/app/routes/platform/security/embed/steps/signing-keys-step.tsx b/packages/web/src/app/routes/platform/security/embed/steps/signing-keys-step.tsx
index 147d52d136c..a9baa1c8213 100644
--- a/packages/web/src/app/routes/platform/security/embed/steps/signing-keys-step.tsx
+++ b/packages/web/src/app/routes/platform/security/embed/steps/signing-keys-step.tsx
@@ -71,7 +71,7 @@ const SigningKeysList = ({
if (signingKeys.length === 0) {
return (
- <div className="flex flex-col items-center gap-3 py-12 text-muted-foreground">
+ <div className="flex flex-col items-center gap-3 py-12 text-gray-11">
<Key className="size-10" />
<p className="text-sm">{t('No signing keys yet')}</p>
</div>
@@ -98,9 +98,7 @@ const SigningKeysList = ({
{' ' + t('Created')}{' '}
{formatUtils.formatDateToAgo(new Date(signingKey.created))}
<br />
- <span className="text-xs text-muted-foreground">
- kid: {signingKey.id}
- </span>
+ <span className="text-xs text-gray-11">kid: {signingKey.id}</span>
</ItemDescription>
</ItemContent>
<ItemActions>
@@ -125,10 +123,10 @@ const SigningKeysList = ({
onError={() => internalErrorToast()}
>
<DropdownMenuItem
- className="text-destructive focus:text-destructive"
+ className="text-danger-11 focus:text-danger-11"
onSelect={(e) => e.preventDefault()}
>
- <Trash className="size-4 mr-2 text-destructive" />
+ <Trash className="size-4 mr-2 text-danger-11" />
{t('Delete Signing Key')}
</DropdownMenuItem>
</ConfirmationDeleteDialog>
diff --git a/packages/web/src/app/routes/platform/security/project-role/index.tsx b/packages/web/src/app/routes/platform/security/project-role/index.tsx
index 56e356da3fd..890c9bb7e1e 100644
--- a/packages/web/src/app/routes/platform/security/project-role/index.tsx
+++ b/packages/web/src/app/routes/platform/security/project-role/index.tsx
@@ -23,7 +23,7 @@ const ProjectRolePage = () => {
'Create roles and control what members can do in each project',
)}
widthClassName="max-w-4xl"
- className="min-h-full bg-muted/50 dark:bg-background"
+ className="min-h-full bg-gray-1"
>
<RolesCard
projectRoles={roles}
diff --git a/packages/web/src/app/routes/platform/security/project-role/permission-grid.tsx b/packages/web/src/app/routes/platform/security/project-role/permission-grid.tsx
index d9a637e8b0c..786dc95b278 100644
--- a/packages/web/src/app/routes/platform/security/project-role/permission-grid.tsx
+++ b/packages/web/src/app/routes/platform/security/project-role/permission-grid.tsx
@@ -33,7 +33,7 @@ export function PermissionGrid({
<ColumnHeader className={headerClassName} />
{columnGroups.map((group) => (
<div key={group.key} className="flex flex-col">
- <p className="flex items-center gap-2 pt-3 pb-1 text-xss font-medium uppercase tracking-wider text-muted-foreground">
+ <p className="flex items-center gap-2 pt-3 pb-1 text-xss font-medium uppercase tracking-wider text-gray-11">
<span className="size-1.5 shrink-0" />
{group.label}
</p>
@@ -43,7 +43,7 @@ export function PermissionGrid({
className={cn(
'size-1.5 shrink-0 rounded-full',
changedRowKeys?.includes(row.key)
- ? 'bg-primary'
+ ? 'bg-accent-11'
: 'bg-transparent',
)}
/>
@@ -80,7 +80,7 @@ export function PermissionGrid({
{renderColumn(groups.filter((group) => group.key === 'build'))}
{renderColumn(
groups.filter((group) => group.key !== 'build'),
- '@min-[38rem]:border-l @min-[38rem]:border-border/60 @min-[38rem]:pl-8',
+ '@min-[38rem]:border-l @min-[38rem]:border-gray-6 @min-[38rem]:pl-8',
'hidden @min-[38rem]:flex',
)}
</div>
@@ -91,16 +91,16 @@ function ColumnHeader({ className }: { className?: string }) {
return (
<div
className={cn(
- 'flex items-center gap-2 border-b border-border/60 pb-1',
+ 'flex items-center gap-2 border-b border-gray-6 pb-1',
className,
)}
>
<span className="size-1.5 shrink-0" />
<span className="flex-1" />
- <span className="w-12 shrink-0 text-center text-xss font-medium uppercase tracking-wider text-muted-foreground">
+ <span className="w-12 shrink-0 text-center text-xss font-medium uppercase tracking-wider text-gray-11">
{t('View')}
</span>
- <span className="w-12 shrink-0 text-center text-xss font-medium uppercase tracking-wider text-muted-foreground">
+ <span className="w-12 shrink-0 text-center text-xss font-medium uppercase tracking-wider text-gray-11">
{t('Edit')}
</span>
</div>
@@ -128,7 +128,7 @@ function Box({
role="img"
aria-label={t('No view-only level')}
title={t('No view-only level')}
- className="text-xs text-muted-foreground"
+ className="text-xs text-gray-11"
>
&mdash;
</span>
diff --git a/packages/web/src/app/routes/platform/security/project-role/platform-roles-list.tsx b/packages/web/src/app/routes/platform/security/project-role/platform-roles-list.tsx
index 9ffc687a664..7086e5638c6 100644
--- a/packages/web/src/app/routes/platform/security/project-role/platform-roles-list.tsx
+++ b/packages/web/src/app/routes/platform/security/project-role/platform-roles-list.tsx
@@ -34,7 +34,7 @@ export function PlatformRolesList() {
key={platformRole.role}
variant="outline"
size="sm"
- className="flex-nowrap bg-background dark:bg-muted/50"
+ className="flex-nowrap bg-panel"
>
<RoleAvatar name={platformRole.label} tone={platformRole.tone} />
<ItemContent className="min-w-0">
@@ -45,7 +45,7 @@ export function PlatformRolesList() {
<Badge
tabIndex={0}
variant="accent"
- className="text-xss uppercase tracking-wider focus-visible:ring-[1px] focus-visible:ring-ring/50 focus-visible:outline-none"
+ className="text-xss uppercase tracking-wider focus-visible:ring-[1px] focus-visible:ring-accent-8/50 focus-visible:outline-none"
>
{t('Built in')}
</Badge>
@@ -68,11 +68,11 @@ export function PlatformRolesList() {
</Item>
))}
</ItemGroup>
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{t("Everyone has exactly one. To change someone's, open")}{' '}
<Link
to="/platform/users"
- className="text-primary underline underline-offset-4"
+ className="text-accent-11 underline underline-offset-4"
>
{t('Members')} →
</Link>
diff --git a/packages/web/src/app/routes/platform/security/project-role/project-role-dialog.tsx b/packages/web/src/app/routes/platform/security/project-role/project-role-dialog.tsx
index 963ee06878d..4f134b1e7e1 100644
--- a/packages/web/src/app/routes/platform/security/project-role/project-role-dialog.tsx
+++ b/packages/web/src/app/routes/platform/security/project-role/project-role-dialog.tsx
@@ -160,7 +160,7 @@ function RoleDialogBody({
};
const counter = (
- <span className="hidden shrink-0 text-sm tabular-nums text-muted-foreground @min-[24rem]:inline">
+ <span className="hidden shrink-0 text-sm tabular-nums text-gray-11 @min-[24rem]:inline">
{t('grantedCount', { granted, total })}
</span>
);
@@ -176,7 +176,7 @@ function RoleDialogBody({
)}
<div className="flex min-w-0 flex-1 flex-col gap-1">
{isCreate && (
- <p className="text-xss font-medium uppercase tracking-wider text-muted-foreground">
+ <p className="text-xss font-medium uppercase tracking-wider text-gray-11">
{t('New role')}
</p>
)}
@@ -211,15 +211,15 @@ function RoleDialogBody({
'min-w-0 rounded-sm px-1 py-0.5',
!isBuiltIn &&
!isRenaming &&
- 'cursor-text hover:bg-muted hover:text-foreground/80',
+ 'cursor-text hover:bg-gray-3 hover:text-gray-11',
isRenaming &&
- 'border border-ring bg-background ring-[1px] ring-ring/50',
+ 'border border-accent-8 bg-transparent ring-[1px] ring-accent-8/50',
)}
/>
{!isBuiltIn && !isRenaming && (
<Pencil
aria-hidden
- className="size-3.5 shrink-0 text-muted-foreground"
+ className="size-3.5 shrink-0 text-gray-11"
/>
)}
</span>
@@ -298,10 +298,8 @@ function RoleDialogBody({
<div className="flex min-h-0 flex-1 flex-col">
<div className="flex shrink-0 flex-wrap items-center justify-between gap-3 px-6 pt-4 pb-3">
<div className="flex items-center gap-3">
- <span className="text-sm text-muted-foreground">
- {t('Based on')}
- </span>
- <div className="inline-flex items-center rounded-md bg-muted p-1">
+ <span className="text-sm text-gray-11">{t('Based on')}</span>
+ <div className="inline-flex items-center rounded-md bg-gray-3 p-1">
{ROLE_BASES.map((roleBase) => (
<Button
key={roleBase}
@@ -309,9 +307,9 @@ function RoleDialogBody({
size="sm"
variant="ghost"
className={cn(
- 'h-7 rounded-sm px-3 text-muted-foreground',
+ 'h-7 rounded-sm px-3 text-gray-11',
base === roleBase &&
- 'bg-background text-foreground shadow-xs hover:bg-background',
+ 'bg-panel text-gray-12 shadow-xs hover:bg-panel',
)}
onClick={() => changeBase(roleBase)}
>
@@ -359,7 +357,7 @@ function RoleDialogBody({
className="gap-2 px-0 py-3"
>
{t('People')}
- <span className="tabular-nums text-muted-foreground">
+ <span className="tabular-nums text-gray-11">
{projectRole?.userCount ?? 0}
</span>
</TabsTrigger>
@@ -392,9 +390,7 @@ function RoleDialogBody({
role={saveError ? 'alert' : undefined}
className={cn(
'min-w-0 basis-full text-xs sm:flex-1 sm:basis-auto',
- saveError
- ? 'font-medium text-destructive'
- : 'text-muted-foreground',
+ saveError ? 'font-medium text-danger-11' : 'text-gray-11',
)}
>
{footerNote}
diff --git a/packages/web/src/app/routes/platform/security/project-role/project-roles-list.tsx b/packages/web/src/app/routes/platform/security/project-role/project-roles-list.tsx
index a49495fc7ba..61a0a5eed1f 100644
--- a/packages/web/src/app/routes/platform/security/project-role/project-roles-list.tsx
+++ b/packages/web/src/app/routes/platform/security/project-role/project-roles-list.tsx
@@ -42,7 +42,7 @@ export function ProjectRolesList({
if (roles.length === 0) {
return (
- <div className="flex flex-col items-center gap-3 py-12 text-muted-foreground">
+ <div className="flex flex-col items-center gap-3 py-12 text-gray-11">
<Shield className="size-10" />
<p className="text-sm">
{t('No project roles yet. Create one to get started.')}
@@ -64,7 +64,7 @@ export function ProjectRolesList({
key={role.id}
variant="outline"
size="sm"
- className="relative flex-nowrap cursor-pointer bg-background hover:bg-accent/50 focus-within:border-ring focus-within:ring-[3px] focus-within:ring-ring/50 dark:bg-muted/50"
+ className="relative flex-nowrap cursor-pointer bg-panel hover:bg-gray-3 focus-within:border-accent-8 focus-within:ring-[3px] focus-within:ring-accent-8/50"
>
<RoleAvatar
name={role.name}
@@ -96,19 +96,19 @@ export function ProjectRolesList({
</ItemContent>
{!isNil(role.userCount) &&
(role.userCount === 0 ? (
- <span className="shrink-0 text-sm tabular-nums text-muted-foreground">
+ <span className="shrink-0 text-sm tabular-nums text-gray-11">
{t('rolePeopleCount', { count: 0 })}
</span>
) : (
<button
type="button"
- className="relative z-10 shrink-0 text-sm tabular-nums text-primary underline-offset-4 hover:underline"
+ className="relative z-10 shrink-0 text-sm tabular-nums text-accent-11 underline-offset-4 hover:underline"
onClick={() => setOpened({ role, tab: 'people' })}
>
{t('rolePeopleCount', { count: role.userCount })}
</button>
))}
- <ChevronRight className="size-4 shrink-0 text-muted-foreground" />
+ <ChevronRight className="size-4 shrink-0 text-gray-11" />
</Item>
);
})}
diff --git a/packages/web/src/app/routes/platform/security/project-role/role-avatar.tsx b/packages/web/src/app/routes/platform/security/project-role/role-avatar.tsx
index 1255fe09049..e4c738eb7b8 100644
--- a/packages/web/src/app/routes/platform/security/project-role/role-avatar.tsx
+++ b/packages/web/src/app/routes/platform/security/project-role/role-avatar.tsx
@@ -2,11 +2,10 @@ import { RoleTone } from '@/features/members/lib/role-copy';
import { cn } from '@/lib/utils';
const toneClasses: Record<RoleTone, string> = {
- brand: 'bg-primary/10 text-primary',
- info: 'bg-blue-50 text-blue-700 dark:bg-blue-950 dark:text-blue-300',
- neutral: 'bg-muted text-muted-foreground',
- custom:
- 'bg-warning-50 text-warning-700 dark:bg-warning-950 dark:text-warning-300',
+ brand: 'bg-accent-3 text-accent-11',
+ info: 'bg-swatch-11-surface text-swatch-11-ink',
+ neutral: 'bg-gray-3 text-gray-11',
+ custom: 'bg-warning-3 text-warning-11',
};
export function RoleAvatar({ name, tone, className }: RoleAvatarProps) {
diff --git a/packages/web/src/app/routes/platform/security/project-role/role-people-tab.tsx b/packages/web/src/app/routes/platform/security/project-role/role-people-tab.tsx
index be71df53db1..a69a0dc35e1 100644
--- a/packages/web/src/app/routes/platform/security/project-role/role-people-tab.tsx
+++ b/packages/web/src/app/routes/platform/security/project-role/role-people-tab.tsx
@@ -26,7 +26,7 @@ export function RolePeopleTab({ projectRole }: RolePeopleTabProps) {
if (isLoading) {
return (
<div className="flex h-full items-center justify-center">
- <Loader2 className="size-6 animate-spin text-muted-foreground" />
+ <Loader2 className="size-6 animate-spin text-gray-11" />
</div>
);
}
@@ -43,7 +43,7 @@ export function RolePeopleTab({ projectRole }: RolePeopleTabProps) {
if (members.length === 0) {
return (
- <div className="flex h-full flex-col items-center justify-center gap-2 px-6 text-muted-foreground">
+ <div className="flex h-full flex-col items-center justify-center gap-2 px-6 text-gray-11">
<Users className="size-10" />
<p className="text-sm font-medium">{t('Nobody has this role yet')}</p>
<p className="text-xs">
@@ -56,18 +56,18 @@ export function RolePeopleTab({ projectRole }: RolePeopleTabProps) {
return (
<div className="flex h-full flex-col pt-4">
{hasNextPage && (
- <p className="shrink-0 px-6 pb-3 text-sm text-muted-foreground">
+ <p className="shrink-0 px-6 pb-3 text-sm text-gray-11">
{t('showingFirstPeople', { count: members.length })}
</p>
)}
<div className={cn(PEOPLE_COLUMNS, 'shrink-0 border-b px-6 pb-2')}>
- <span className="text-xss font-medium uppercase tracking-wider text-muted-foreground">
+ <span className="text-xss font-medium uppercase tracking-wider text-gray-11">
{t('Name')}
</span>
- <span className="hidden text-xss font-medium uppercase tracking-wider text-muted-foreground @min-[36rem]:block">
+ <span className="hidden text-xss font-medium uppercase tracking-wider text-gray-11 @min-[36rem]:block">
{t('Email')}
</span>
- <span className="text-xss font-medium uppercase tracking-wider text-muted-foreground">
+ <span className="text-xss font-medium uppercase tracking-wider text-gray-11">
{t('Project')}
</span>
</div>
@@ -103,7 +103,7 @@ function PersonRow({ member }: { member: ProjectMemberWithUser }) {
<div
className={cn(
PEOPLE_COLUMNS,
- 'border-b border-border/60 py-2 last:border-b-0',
+ 'border-b border-gray-6 py-2 last:border-b-0',
)}
>
<span className="flex min-w-0 items-center gap-2">
@@ -120,14 +120,14 @@ function PersonRow({ member }: { member: ProjectMemberWithUser }) {
</span>
<span className="hidden min-w-0 @min-[36rem]:block">
<TextWithTooltip tooltipMessage={member.user.email}>
- <span className="block min-w-0 truncate text-sm text-muted-foreground">
+ <span className="block min-w-0 truncate text-sm text-gray-11">
{member.user.email}
</span>
</TextWithTooltip>
</span>
<Link
to={`/projects/${member.project.id}/settings/team`}
- className="flex min-w-0 items-center gap-1 text-sm text-primary underline-offset-4 hover:underline"
+ className="flex min-w-0 items-center gap-1 text-sm text-accent-11 underline-offset-4 hover:underline"
>
<TextWithTooltip tooltipMessage={member.project.displayName}>
<span className="min-w-0 truncate">{member.project.displayName}</span>
diff --git a/packages/web/src/app/routes/platform/security/project-role/roles-card.tsx b/packages/web/src/app/routes/platform/security/project-role/roles-card.tsx
index d64ccd3778d..c258f1628c9 100644
--- a/packages/web/src/app/routes/platform/security/project-role/roles-card.tsx
+++ b/packages/web/src/app/routes/platform/security/project-role/roles-card.tsx
@@ -63,16 +63,12 @@ export function RolesCard({
<TabsTrigger value="project" className="gap-2">
{t('Project roles')}
{!isNil(projectRolesCount) && (
- <span className="text-muted-foreground">
- {projectRolesCount}
- </span>
+ <span className="text-gray-11">{projectRolesCount}</span>
)}
</TabsTrigger>
<TabsTrigger value="platform" className="gap-2">
{t('Platform roles')}
- <span className="text-muted-foreground">
- {platformRolesCount}
- </span>
+ <span className="text-gray-11">{platformRolesCount}</span>
</TabsTrigger>
</TabsList>
{activeTab === 'project' && newRoleButton}
diff --git a/packages/web/src/app/routes/platform/security/secret-managers/connect-secret-manager-dialog.tsx b/packages/web/src/app/routes/platform/security/secret-managers/connect-secret-manager-dialog.tsx
index b9c04f66422..7cab191a45b 100644
--- a/packages/web/src/app/routes/platform/security/secret-managers/connect-secret-manager-dialog.tsx
+++ b/packages/web/src/app/routes/platform/security/secret-managers/connect-secret-manager-dialog.tsx
@@ -12,6 +12,7 @@ import { t } from 'i18next';
import { useState } from 'react';
import { useForm } from 'react-hook-form';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { Button } from '@/components/ui/button';
import {
Dialog,
@@ -160,10 +161,10 @@ const AddEditSecretManagerForm = ({
{SECRET_MANAGER_PROVIDERS_METADATA.map((provider) => (
<SelectItem key={provider.id} value={provider.id}>
<div className="flex items-center gap-2">
- <img
+ <LogoPlate
src={provider.logo}
alt={provider.name}
- className="w-4 h-4 object-contain"
+ size="xxs"
/>
<span>{provider.name}</span>
</div>
diff --git a/packages/web/src/app/routes/platform/security/secret-managers/index.tsx b/packages/web/src/app/routes/platform/security/secret-managers/index.tsx
index 8dba1f1bdd9..df3f37a780f 100644
--- a/packages/web/src/app/routes/platform/security/secret-managers/index.tsx
+++ b/packages/web/src/app/routes/platform/security/secret-managers/index.tsx
@@ -128,7 +128,7 @@ const SecretManagersPage = () => {
const { configured, connected } = row.original.connection;
if (!configured) {
return (
- <Badge variant="outline" className="text-xs text-muted-foreground">
+ <Badge variant="outline" className="text-xs text-gray-11">
{t('Not configured')}
</Badge>
);
@@ -178,7 +178,7 @@ const SecretManagersPage = () => {
<Tooltip>
<TooltipTrigger asChild>
<Button variant="ghost" size="sm">
- <Trash className="size-4 text-destructive" />
+ <Trash className="size-4 text-danger-11" />
</Button>
</TooltipTrigger>
<TooltipContent>{t('Delete')}</TooltipContent>
diff --git a/packages/web/src/app/routes/platform/security/sso/allowed-domain.tsx b/packages/web/src/app/routes/platform/security/sso/allowed-domain.tsx
index 5d5101f0e08..612e1309c27 100644
--- a/packages/web/src/app/routes/platform/security/sso/allowed-domain.tsx
+++ b/packages/web/src/app/routes/platform/security/sso/allowed-domain.tsx
@@ -105,7 +105,7 @@ export const AllowedDomainDialog = ({
})}
>
<div className="flex flex-col gap-1">
- <div className="text-muted-foreground text-sm">
+ <div className="text-gray-11 text-sm">
{t(
'Enter the allowed domains for the users to authenticate with. An empty list will allow all domains.',
)}
diff --git a/packages/web/src/app/routes/platform/security/sso/index.tsx b/packages/web/src/app/routes/platform/security/sso/index.tsx
index 328e9c8ff1c..3a32a0d2437 100644
--- a/packages/web/src/app/routes/platform/security/sso/index.tsx
+++ b/packages/web/src/app/routes/platform/security/sso/index.tsx
@@ -116,12 +116,12 @@ const SSOPage = () => {
<div className="mt-1 gap-2 flex items-center">
<Badge variant="outline">{platform.ssoDomain}</Badge>
{ssoDomainVerified ? (
- <span className="flex items-center gap-1 text-xs text-success-600">
+ <span className="flex items-center gap-1 text-xs text-success-11">
<CheckCircle className="size-3" />
{t('Verified')}
</span>
) : (
- <span className="text-xs text-warning">
+ <span className="text-xs text-warning-11">
{t('Pending verification')}
</span>
)}
diff --git a/packages/web/src/app/routes/platform/security/sso/saml-dialog.tsx b/packages/web/src/app/routes/platform/security/sso/saml-dialog.tsx
index f5c5c6e4d62..1698b9142d8 100644
--- a/packages/web/src/app/routes/platform/security/sso/saml-dialog.tsx
+++ b/packages/web/src/app/routes/platform/security/sso/saml-dialog.tsx
@@ -138,38 +138,38 @@ const SamlWizard = ({
};
const StepIndicator = ({ step }: { step: WizardStep }) => (
- <div className="flex items-center gap-3 text-xs text-muted-foreground">
+ <div className="flex items-center gap-3 text-xs text-gray-11">
<div
className={cn(
'flex items-center gap-2',
- step === 'domain' && 'text-foreground font-medium',
+ step === 'domain' && 'text-gray-12 font-medium',
)}
>
<span
className={cn(
'flex size-5 items-center justify-center rounded-full border text-xs',
step === 'domain'
- ? 'border-primary bg-primary text-primary-foreground'
- : 'border-muted-foreground/40',
+ ? 'border-accent-9 bg-accent-9 text-on-accent'
+ : 'border-gray-7',
)}
>
1
</span>
{t('SSO Domain')}
</div>
- <div className="h-px w-6 bg-muted-foreground/30" />
+ <div className="h-px w-6 bg-gray-6" />
<div
className={cn(
'flex items-center gap-2',
- step === 'saml' && 'text-foreground font-medium',
+ step === 'saml' && 'text-gray-12 font-medium',
)}
>
<span
className={cn(
'flex size-5 items-center justify-center rounded-full border text-xs',
step === 'saml'
- ? 'border-primary bg-primary text-primary-foreground'
- : 'border-muted-foreground/40',
+ ? 'border-accent-9 bg-accent-9 text-on-accent'
+ : 'border-gray-7',
)}
>
2
@@ -306,7 +306,7 @@ const DomainStep = ({
<Button
type="button"
variant="basic"
- className="text-destructive"
+ className="text-danger-11"
loading={disableAction.isDisabling}
onClick={disableAction.onDisable}
>
@@ -477,7 +477,7 @@ Activepieces
<Button
type="button"
variant="basic"
- className="text-destructive mr-auto"
+ className="text-danger-11 mr-auto"
loading={disableAction.isDisabling}
onClick={disableAction.onDisable}
>
@@ -516,7 +516,7 @@ const DomainVerificationPanel = ({
<VerificationStatusBadge status={verification.status} />
{!verified && (
<>
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{t(
"Add this TXT record at your DNS provider. We'll detect it once it propagates — this usually takes a few minutes.",
)}
@@ -546,14 +546,14 @@ const VerificationStatusBadge = ({
}) => {
if (status === SsoDomainVerificationStatus.VERIFIED) {
return (
- <div className="flex items-center gap-2 text-sm text-success-600">
+ <div className="flex items-center gap-2 text-sm text-success-11">
<CheckCircle className="size-4" />
{t('DNS verified — domain is ready')}
</div>
);
}
return (
- <div className="flex items-center gap-2 text-sm text-warning">
+ <div className="flex items-center gap-2 text-sm text-warning-11">
<Loader2 className="size-4 animate-spin" />
{t('Waiting for DNS')}
</div>
@@ -567,17 +567,17 @@ const VerificationRecordRow = ({
}) => (
<div className="flex flex-col gap-2 rounded-md border p-4">
<div className="flex items-center gap-2">
- <span className="text-xs font-mono px-1.5 py-0.5 rounded bg-muted">
+ <span className="text-xs font-mono px-1.5 py-0.5 rounded bg-gray-3">
{record.type}
</span>
</div>
<div className="grid grid-cols-2 gap-3">
<div className="flex flex-col gap-1.5 min-w-0">
- <Label className="text-xs text-muted-foreground">{t('Name')}</Label>
+ <Label className="text-xs text-gray-11">{t('Name')}</Label>
<CopyToClipboardInput textToCopy={record.name} useInput={true} />
</div>
<div className="flex flex-col gap-1.5 min-w-0">
- <Label className="text-xs text-muted-foreground">{t('Value')}</Label>
+ <Label className="text-xs text-gray-11">{t('Value')}</Label>
<CopyToClipboardInput textToCopy={record.value} useInput={true} />
</div>
</div>
diff --git a/packages/web/src/app/routes/platform/setup/ai-capabilities/ai-capability-dialog.tsx b/packages/web/src/app/routes/platform/setup/ai-capabilities/ai-capability-dialog.tsx
index 550fc72cba6..ca4d77f33c5 100644
--- a/packages/web/src/app/routes/platform/setup/ai-capabilities/ai-capability-dialog.tsx
+++ b/packages/web/src/app/routes/platform/setup/ai-capabilities/ai-capability-dialog.tsx
@@ -281,7 +281,7 @@ function CapabilityForm({
<span className="truncate">
{selectedModel.name}
</span>
- <span className="truncate text-xs text-muted-foreground">
+ <span className="truncate text-xs text-gray-11">
{selectedModel.id}
</span>
</span>
@@ -294,7 +294,7 @@ function CapabilityForm({
<SelectItem key={model.id} value={model.id}>
<span className="flex flex-col">
<span>{model.name}</span>
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{model.id}
</span>
</span>
@@ -332,7 +332,7 @@ function CapabilityForm({
href={selectedProvider.signupUrl}
target="_blank"
rel="noreferrer"
- className="inline-flex items-center gap-1 text-xs text-muted-foreground hover:underline"
+ className="inline-flex items-center gap-1 text-xs text-gray-11 hover:underline"
>
{t('Get a {provider} API key', {
provider: selectedProvider.name,
@@ -347,7 +347,7 @@ function CapabilityForm({
)}
{form.formState.errors.root?.serverError && (
- <p className="text-sm text-destructive">
+ <p className="text-sm text-danger-11">
{form.formState.errors.root.serverError.message}
</p>
)}
diff --git a/packages/web/src/app/routes/platform/setup/ai/capabilities-tab/index.tsx b/packages/web/src/app/routes/platform/setup/ai/capabilities-tab/index.tsx
index 955a47c3824..9ec2703c1d0 100644
--- a/packages/web/src/app/routes/platform/setup/ai/capabilities-tab/index.tsx
+++ b/packages/web/src/app/routes/platform/setup/ai/capabilities-tab/index.tsx
@@ -133,20 +133,20 @@ function CapabilityCard({
: `${status} · ${chosenModelId}`;
return (
- <div className="group flex flex-col rounded-lg border bg-card">
+ <div className="group flex flex-col rounded-lg border bg-panel">
<div className="flex items-start gap-3 p-4 pb-3">
- <div className="flex size-10 shrink-0 items-center justify-center rounded-lg border bg-background">
- <Icon className="size-4 text-muted-foreground" />
+ <div className="flex size-10 shrink-0 items-center justify-center rounded-lg border bg-gray-1">
+ <Icon className="size-4 text-gray-11" />
</div>
<div className="flex min-w-0 flex-1 flex-col gap-1.5">
<p className="truncate text-sm font-medium leading-none">
{capabilityInfo.name}
</p>
- <span className="flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground">
+ <span className="flex min-w-0 items-center gap-1.5 text-xs text-gray-11">
<span
className={cn('size-1.5 shrink-0 rounded-full', {
- 'bg-success-500': inUse,
- 'border border-muted-foreground/50': !inUse,
+ 'bg-success-11': inUse,
+ 'border border-gray-8': !inUse,
})}
/>
<TextWithTooltip tooltipMessage={statusText}>
@@ -172,18 +172,18 @@ function CapabilityCard({
<Button
variant="ghost"
size="icon-sm"
- className="text-muted-foreground opacity-0 transition-opacity hover:text-destructive group-focus-within:opacity-100 group-hover:opacity-100"
+ className="text-gray-11 opacity-0 transition-opacity hover:text-danger-11 group-focus-within:opacity-100 group-hover:opacity-100"
>
<Trash2 className="size-4" />
</Button>
</ConfirmationDeleteDialog>
)}
</div>
- <p className="px-4 pb-4 text-sm text-muted-foreground">
+ <p className="px-4 pb-4 text-sm text-gray-11">
{capabilityInfo.description}
</p>
<div className="mt-auto flex items-center justify-between gap-4 border-t px-4 py-2.5">
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{inUse
? t('Available to the assistant')
: t("The assistant can't do this yet")}
diff --git a/packages/web/src/app/routes/platform/setup/ai/components/section-header.tsx b/packages/web/src/app/routes/platform/setup/ai/components/section-header.tsx
index 91ba8f81bb5..f44c69820a8 100644
--- a/packages/web/src/app/routes/platform/setup/ai/components/section-header.tsx
+++ b/packages/web/src/app/routes/platform/setup/ai/components/section-header.tsx
@@ -24,13 +24,11 @@ export function SectionHeader({
{title}
</Heading>
{count !== undefined && (
- <span className="text-sm text-muted-foreground tabular-nums">
- {count}
- </span>
+ <span className="text-sm text-gray-11 tabular-nums">{count}</span>
)}
</div>
<p
- className={cn('text-muted-foreground', {
+ className={cn('text-gray-11', {
'text-xs': isPageTitle,
'text-sm': !isPageTitle,
})}
diff --git a/packages/web/src/app/routes/platform/setup/ai/components/table-pagination.tsx b/packages/web/src/app/routes/platform/setup/ai/components/table-pagination.tsx
index b78375a5af2..5dbad1653ee 100644
--- a/packages/web/src/app/routes/platform/setup/ai/components/table-pagination.tsx
+++ b/packages/web/src/app/routes/platform/setup/ai/components/table-pagination.tsx
@@ -24,7 +24,7 @@ export function TablePagination({
return (
<div className={cn('flex items-center justify-between gap-4', className)}>
- <span className="text-xs text-muted-foreground tabular-nums">
+ <span className="text-xs text-gray-11 tabular-nums">
{t('Showing {from}–{to} of {total}', {
from: page * pageSize + 1,
to: Math.min((page + 1) * pageSize, total),
@@ -40,7 +40,7 @@ export function TablePagination({
>
<ChevronLeft className="size-4" />
</Button>
- <span className="px-2 text-xs text-muted-foreground tabular-nums">
+ <span className="px-2 text-xs text-gray-11 tabular-nums">
{t('Page {page} of {pages}', {
page: page + 1,
pages: pageCount,
diff --git a/packages/web/src/app/routes/platform/setup/ai/providers-tab/config-detail.tsx b/packages/web/src/app/routes/platform/setup/ai/providers-tab/config-detail.tsx
index 0e907a907ab..2e681952586 100644
--- a/packages/web/src/app/routes/platform/setup/ai/providers-tab/config-detail.tsx
+++ b/packages/web/src/app/routes/platform/setup/ai/providers-tab/config-detail.tsx
@@ -156,7 +156,7 @@ export function ConfigDetail({
<button
type="button"
onClick={onBack}
- className="inline-flex w-fit items-center gap-1 text-sm text-muted-foreground transition-colors hover:text-foreground"
+ className="inline-flex w-fit items-center gap-1 text-sm text-gray-11 transition-colors hover:text-gray-12"
>
<ChevronLeft className="size-4" />
{t('Providers')}
@@ -167,7 +167,7 @@ export function ConfigDetail({
<h1 className="truncate text-lg font-semibold leading-none tracking-tight">
{draft.name}
</h1>
- <div className="flex flex-wrap items-center gap-2 text-xs text-muted-foreground">
+ <div className="flex flex-wrap items-center gap-2 text-xs text-gray-11">
<span>{info.name}</span>
<KeyStatusBadge status={config.status} />
</div>
@@ -180,7 +180,7 @@ export function ConfigDetail({
title={t('General')}
description={t('How this key is labelled and authorised.')}
/>
- <div className="flex flex-col divide-y divide-border/60 rounded-xl border border-border/60">
+ <div className="flex flex-col divide-y divide-gray-6/60 rounded-xl border border-gray-6/60">
<div className="flex flex-col gap-1.5 p-4">
<Label htmlFor="config-name">{t('Name')}</Label>
<Input
@@ -193,21 +193,19 @@ export function ConfigDetail({
aria-invalid={nameMissing}
/>
{nameMissing && (
- <p className="text-sm text-destructive">
- {t(formErrors.required)}
- </p>
+ <p className="text-sm text-danger-11">{t(formErrors.required)}</p>
)}
</div>
<div className="flex items-center justify-between gap-3 p-4">
<div className="flex min-w-0 items-center gap-3">
- <div className="flex size-9 shrink-0 items-center justify-center rounded-lg bg-muted/60">
- <KeyRound className="size-4 text-muted-foreground" />
+ <div className="flex size-9 shrink-0 items-center justify-center rounded-lg bg-gray-3/60">
+ <KeyRound className="size-4 text-gray-11" />
</div>
<div className="min-w-0">
<p className="text-sm font-medium leading-none">
{t('Credentials')}
</p>
- <p className="mt-1 truncate font-mono text-xs text-muted-foreground">
+ <p className="mt-1 truncate font-mono text-xs text-gray-11">
{t('Stored securely')}
</p>
</div>
@@ -218,17 +216,15 @@ export function ConfigDetail({
</div>
<div className="flex items-center justify-between gap-3 p-4">
<div className="flex min-w-0 items-center gap-3">
- <div className="flex size-9 shrink-0 items-center justify-center rounded-lg bg-muted/60">
- <Activity className="size-4 text-muted-foreground" />
+ <div className="flex size-9 shrink-0 items-center justify-center rounded-lg bg-gray-3/60">
+ <Activity className="size-4 text-gray-11" />
</div>
<div className="min-w-0">
<p className="text-sm font-medium leading-none">
{t('Status')}
</p>
{statusDetail && (
- <p className="mt-1 text-xs text-muted-foreground">
- {statusDetail}
- </p>
+ <p className="mt-1 text-xs text-gray-11">{statusDetail}</p>
)}
</div>
</div>
@@ -339,19 +335,19 @@ export function ConfigDetail({
title={t('Danger zone')}
description={t('Irreversible actions for this key.')}
/>
- <div className="flex items-center justify-between gap-3 rounded-xl border border-destructive/30 p-4">
+ <div className="flex items-center justify-between gap-3 rounded-xl border border-danger-6 p-4">
<div className="min-w-0">
<p className="text-sm font-medium leading-none">
{t('Delete this key')}
</p>
- <p className="mt-1 text-sm text-muted-foreground">
+ <p className="mt-1 text-sm text-gray-11">
{t('Steps and agents using it will stop working.')}
</p>
</div>
<Button
variant="outline"
size="sm"
- className="shrink-0 gap-2 border-destructive/40 text-destructive hover:bg-destructive/10 hover:text-destructive"
+ className="shrink-0 gap-2 border-danger-7 text-danger-11 enabled:hover:bg-danger-3 enabled:hover:text-danger-11"
onClick={() => setDeleteOpen(true)}
>
<Trash2 className="size-4" />
@@ -375,7 +371,7 @@ export function ConfigDetail({
{dirty && (
<div className="sticky bottom-4 z-20 mt-auto flex justify-center px-4">
- <div className="flex animate-in items-center gap-3 rounded-xl border bg-background/95 px-4 py-2.5 shadow-lg backdrop-blur-sm duration-200 fade-in slide-in-from-bottom-4">
+ <div className="flex animate-in items-center gap-3 rounded-xl border bg-gray-1/95 px-4 py-2.5 shadow-lg backdrop-blur-sm duration-200 fade-in slide-in-from-bottom-4">
<span className="text-sm">{t('You have unsaved changes')}</span>
<Button
variant="outline"
diff --git a/packages/web/src/app/routes/platform/setup/ai/providers-tab/connect-provider-dialog.tsx b/packages/web/src/app/routes/platform/setup/ai/providers-tab/connect-provider-dialog.tsx
index 85eabf442ff..e374ff1b0c0 100644
--- a/packages/web/src/app/routes/platform/setup/ai/providers-tab/connect-provider-dialog.tsx
+++ b/packages/web/src/app/routes/platform/setup/ai/providers-tab/connect-provider-dialog.tsx
@@ -347,7 +347,7 @@ function SecretInput({
size="icon"
tabIndex={-1}
onClick={() => setVisible(!visible)}
- className="absolute right-1 top-1/2 size-7 -translate-y-1/2 p-0 text-muted-foreground hover:text-foreground"
+ className="absolute right-1 top-1/2 size-7 -translate-y-1/2 p-0 text-gray-11 hover:text-gray-12"
>
{visible ? <EyeOff className="size-4" /> : <Eye className="size-4" />}
</Button>
@@ -362,7 +362,7 @@ function SetupInstructions({ info }: { info: AiProviderInfo }) {
<CollapsibleTrigger asChild>
<button
type="button"
- className="flex w-full items-center gap-1.5 text-sm text-muted-foreground transition-colors hover:text-foreground"
+ className="flex w-full items-center gap-1.5 text-sm text-gray-11 transition-colors hover:text-gray-12"
>
<ChevronDown
className={cn('size-4 transition-transform', open && 'rotate-180')}
diff --git a/packages/web/src/app/routes/platform/setup/ai/providers-tab/index.tsx b/packages/web/src/app/routes/platform/setup/ai/providers-tab/index.tsx
index 05ba0213a39..8840ed79042 100644
--- a/packages/web/src/app/routes/platform/setup/ai/providers-tab/index.tsx
+++ b/packages/web/src/app/routes/platform/setup/ai/providers-tab/index.tsx
@@ -242,7 +242,7 @@ export function ProvidersTab() {
))}
</div>
{available.length > 0 && (
- <section className="flex flex-col gap-4 border-t border-border/60 pt-6">
+ <section className="flex flex-col gap-4 border-t border-gray-6/60 pt-6">
<SectionHeader
title={t('Also available')}
count={available.length}
@@ -299,7 +299,7 @@ function ProviderGroup({
return (
<section
className={cn(
- 'overflow-hidden rounded-xl border border-border/60 bg-card',
+ 'overflow-hidden rounded-xl border border-gray-6/60 bg-panel',
CARD_SHADOW,
)}
>
@@ -307,7 +307,7 @@ function ProviderGroup({
<ProviderLogo info={info} />
<div className="min-w-0 flex-1">
<p className="text-sm font-medium leading-none">{info.name}</p>
- <p className="mt-1 text-xs text-muted-foreground">
+ <p className="mt-1 text-xs text-gray-11">
{t('configurationsCount', { count: configs.length })}
</p>
</div>
@@ -316,8 +316,8 @@ function ProviderGroup({
{t('Add key')}
</Button>
</div>
- <div className="border-t border-border/60 px-5 pb-1 pt-3">
- <p className="text-[11px] font-medium uppercase tracking-wide text-muted-foreground">
+ <div className="border-t border-gray-6/60 px-5 pb-1 pt-3">
+ <p className="text-[11px] font-medium uppercase tracking-wide text-gray-11">
{t('Keys')}
</p>
</div>
@@ -379,7 +379,7 @@ function ConfigRow({
}}
className={cn(
'group flex items-center gap-4 px-5 py-3 transition-colors',
- 'cursor-pointer hover:bg-muted/50 active:bg-muted focus-visible:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring',
+ 'cursor-pointer hover:bg-gray-4 active:bg-gray-5 focus-visible:bg-gray-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-8',
)}
>
<div className="flex min-w-0 flex-1 flex-col gap-1">
@@ -388,7 +388,7 @@ function ConfigRow({
{config.name}
</p>
{config.enabledForChat && (
- <span className="shrink-0 rounded-full bg-primary/10 px-2 py-px text-[11px] font-medium text-primary">
+ <span className="shrink-0 rounded-full bg-accent-3 px-2 py-px text-[11px] font-medium text-accent-11">
{t('Chat')}
</span>
)}
@@ -396,7 +396,7 @@ function ConfigRow({
</div>
<Tooltip>
<TooltipTrigger asChild>
- <p className="w-fit truncate text-xs text-muted-foreground">
+ <p className="w-fit truncate text-xs text-gray-11">
{modelsLabel}
<span aria-hidden> · </span>
{projectsLabel}
@@ -429,7 +429,7 @@ function ConfigRow({
<Button
variant="ghost"
size="sm"
- className="px-2 text-muted-foreground opacity-0 transition-opacity hover:text-destructive focus-visible:opacity-100 group-hover:opacity-100"
+ className="px-2 text-gray-11 opacity-0 transition-opacity hover:bg-danger-3 hover:text-danger-11 focus-visible:opacity-100 group-hover:opacity-100"
onClick={() => setDeleteOpen(true)}
>
<Trash2 className="size-4" />
@@ -438,7 +438,7 @@ function ConfigRow({
</TooltipTrigger>
<TooltipContent>{t('Delete')}</TooltipContent>
</Tooltip>
- <ChevronRight className="size-4 text-muted-foreground transition-transform duration-150 group-hover:translate-x-0.5 group-hover:text-foreground" />
+ <ChevronRight className="size-4 text-gray-11 transition-transform duration-150 group-hover:translate-x-0.5 group-hover:text-gray-12" />
<ConfirmationDeleteDialog
open={deleteOpen}
onOpenChange={setDeleteOpen}
@@ -471,7 +471,7 @@ function ProjectChips({
<TooltipTrigger asChild>
<span className="flex min-w-0 items-center gap-1">
{excluded && (
- <span className="shrink-0 text-sm text-muted-foreground">
+ <span className="shrink-0 text-sm text-gray-11">
{t('All except')}
</span>
)}
@@ -479,7 +479,7 @@ function ProjectChips({
<ProjectSwatch key={project.id} project={project} />
))}
{rest > 0 && (
- <span className="text-sm text-muted-foreground tabular-nums">
+ <span className="text-sm text-gray-11 tabular-nums">
{t('+{count}', { count: rest })}
</span>
)}
@@ -511,16 +511,16 @@ function ChatProviderRow({
return (
<div
className={cn(
- 'flex items-center gap-3 rounded-xl border border-border/60 bg-card px-4 py-3',
+ 'flex items-center gap-3 rounded-xl border border-gray-6/60 bg-panel px-4 py-3',
CARD_SHADOW,
)}
>
- <div className="flex size-9 shrink-0 items-center justify-center rounded-xl bg-muted/60">
- <MessageSquare className="size-4 text-muted-foreground" />
+ <div className="flex size-9 shrink-0 items-center justify-center rounded-xl bg-gray-3/60">
+ <MessageSquare className="size-4 text-gray-11" />
</div>
<div className="flex-1 min-w-0">
<p className="text-sm font-medium leading-none">{t('Chat provider')}</p>
- <p className="text-xs text-muted-foreground mt-1">
+ <p className="text-xs text-gray-11 mt-1">
{t('Powers the built-in chat for everyone on this platform')}
</p>
</div>
@@ -564,15 +564,15 @@ function EmptyProviders({
return (
<div className="flex flex-col gap-6">
- <div className="flex flex-col items-center gap-4 rounded-xl border border-border/60 bg-card px-6 py-14 text-center">
- <div className="flex size-12 items-center justify-center rounded-xl bg-primary/10">
- <Bot className="size-5 text-primary" />
+ <div className="flex flex-col items-center gap-4 rounded-xl border border-gray-6/60 bg-panel px-6 py-14 text-center">
+ <div className="flex size-12 items-center justify-center rounded-xl bg-accent-3">
+ <Bot className="size-5 text-accent-11" />
</div>
<div className="flex flex-col gap-1">
<p className="text-base font-semibold tracking-tight">
{t('Connect your first provider')}
</p>
- <p className="max-w-md text-sm text-muted-foreground">
+ <p className="max-w-md text-sm text-gray-11">
{t(
'Bring an API key, then pick which models and projects can use it. Chat, agents, and AI steps run through it.',
)}
@@ -595,7 +595,7 @@ function EmptyProviders({
))}
</div>
<div className="flex flex-col gap-3">
- <p className="text-[11px] font-medium uppercase tracking-wide text-muted-foreground">
+ <p className="text-[11px] font-medium uppercase tracking-wide text-gray-11">
{t('Or choose another provider')}
</p>
<div className="grid grid-cols-1 gap-3 lg:grid-cols-2">
@@ -626,16 +626,14 @@ function AvailableProviderCard({
return (
<div
className={cn(
- 'flex items-center gap-3 rounded-xl border border-border/60 bg-card p-4 transition-colors hover:border-border',
+ 'flex items-center gap-3 rounded-xl border border-gray-6/60 bg-panel p-4 transition-colors hover:border-gray-6',
CARD_SHADOW,
)}
>
<ProviderLogo info={info} />
<div className="flex min-w-0 flex-1 flex-col gap-1">
<p className="truncate text-sm font-medium leading-none">{info.name}</p>
- {tagline && (
- <p className="truncate text-xs text-muted-foreground">{tagline}</p>
- )}
+ {tagline && <p className="truncate text-xs text-gray-11">{tagline}</p>}
</div>
<Button
size="sm"
@@ -660,7 +658,7 @@ function ProvidersSkeleton() {
</div>
<div
className={cn(
- 'flex items-center gap-3 rounded-xl border border-border/60 bg-card px-4 py-3',
+ 'flex items-center gap-3 rounded-xl border border-gray-6/60 bg-panel px-4 py-3',
CARD_SHADOW,
)}
>
@@ -675,7 +673,7 @@ function ProvidersSkeleton() {
<section
key={group}
className={cn(
- 'overflow-hidden rounded-xl border border-border/60 bg-card',
+ 'overflow-hidden rounded-xl border border-gray-6/60 bg-panel',
CARD_SHADOW,
)}
>
@@ -687,7 +685,7 @@ function ProvidersSkeleton() {
</div>
<Skeleton className="h-8 w-20 rounded-md" />
</div>
- <div className="border-t border-border/60 px-5 pb-1 pt-3">
+ <div className="border-t border-gray-6/60 px-5 pb-1 pt-3">
<Skeleton className="h-3 w-10" />
</div>
{[0, 1].map((row) => (
@@ -702,8 +700,7 @@ function ProvidersSkeleton() {
);
}
-const CARD_SHADOW =
- 'shadow-[2px_0px_4px_-2px_rgba(0,0,0,0.05),0px_2px_4px_-2px_rgba(0,0,0,0.05)]';
+const CARD_SHADOW = 'shadow-panel';
function providerInfoOf({
provider,
diff --git a/packages/web/src/app/routes/platform/setup/ai/providers-tab/manual-model-list.tsx b/packages/web/src/app/routes/platform/setup/ai/providers-tab/manual-model-list.tsx
index 3e27c72eec0..7fb892d1c3c 100644
--- a/packages/web/src/app/routes/platform/setup/ai/providers-tab/manual-model-list.tsx
+++ b/packages/web/src/app/routes/platform/setup/ai/providers-tab/manual-model-list.tsx
@@ -40,7 +40,7 @@ export function ManualModelList({
};
return (
- <div className="flex flex-col overflow-hidden rounded-xl border border-border/60">
+ <div className="flex flex-col overflow-hidden rounded-xl border border-gray-6/60">
<div className="flex items-center gap-2 p-3">
<Input
className="max-w-xs"
@@ -75,17 +75,17 @@ export function ManualModelList({
</Button>
</div>
{models.length === 0 ? (
- <p className="border-t border-border/60 p-4 text-sm text-muted-foreground">
+ <p className="border-t border-gray-6/60 p-4 text-sm text-gray-11">
{t(
'This provider cannot list models automatically — add the model ids you want to expose.',
)}
</p>
) : (
- <div className="flex flex-wrap gap-1.5 border-t border-border/60 p-3">
+ <div className="flex flex-wrap gap-1.5 border-t border-gray-6/60 p-3">
{models.map((model) => (
<span
key={model.modelId}
- className="flex items-center gap-1.5 rounded-md bg-muted px-2 py-1 font-mono text-xs"
+ className="flex items-center gap-1.5 rounded-md bg-gray-3 px-2 py-1 font-mono text-xs"
>
{model.modelId}
<button
@@ -100,7 +100,7 @@ export function ManualModelList({
),
)
}
- className="rounded bg-background px-1 py-px font-sans text-xss uppercase tracking-wide text-muted-foreground transition-colors hover:text-foreground"
+ className="rounded bg-gray-1 px-1 py-px font-sans text-xss uppercase tracking-wide text-gray-11 transition-colors hover:text-gray-12"
>
{modelTypeLabel(model.modelType)}
</button>
@@ -113,7 +113,7 @@ export function ManualModelList({
),
)
}
- className="text-muted-foreground transition-colors hover:text-foreground"
+ className="text-gray-11 transition-colors hover:text-gray-12"
>
<X className="size-3" />
</button>
diff --git a/packages/web/src/app/routes/platform/setup/ai/providers-tab/model-selection-panel.tsx b/packages/web/src/app/routes/platform/setup/ai/providers-tab/model-selection-panel.tsx
index 5d07e573a42..ec9daae25c4 100644
--- a/packages/web/src/app/routes/platform/setup/ai/providers-tab/model-selection-panel.tsx
+++ b/packages/web/src/app/routes/platform/setup/ai/providers-tab/model-selection-panel.tsx
@@ -73,7 +73,7 @@ export function ModelSelectionPanel({
<div className="flex flex-col gap-0.5">
<span className="text-sm font-medium">{row.original.name}</span>
{row.original.id !== row.original.name && (
- <span className="font-mono text-xs text-muted-foreground">
+ <span className="font-mono text-xs text-gray-11">
{row.original.id}
</span>
)}
@@ -84,10 +84,10 @@ export function ModelSelectionPanel({
];
return (
- <div className="flex flex-col overflow-hidden rounded-xl border border-border/60">
+ <div className="flex flex-col overflow-hidden rounded-xl border border-gray-6/60">
<div className="flex flex-wrap items-center gap-2 p-3">
<InputWithIcon
- icon={<Search className="size-4 shrink-0 text-muted-foreground" />}
+ icon={<Search className="size-4 shrink-0 text-gray-11" />}
value={search}
onChange={(event) => {
setSearch(event.target.value);
@@ -104,7 +104,7 @@ export function ModelSelectionPanel({
}}
/>
</div>
- <div className="border-t border-border/60 [&_tbody_tr:last-child]:border-b-0 [&_thead]:border-t-0">
+ <div className="border-t border-gray-6/60 [&_tbody_tr:last-child]:border-b-0 [&_thead]:border-t-0">
<DataTable
columns={columns}
page={{ data: rows, next: null, previous: null }}
@@ -119,9 +119,7 @@ export function ModelSelectionPanel({
? t('No model is selected yet.')
: t('No model matches your search.')
}
- emptyStateIcon={
- <Sparkles className="size-10 text-muted-foreground" />
- }
+ emptyStateIcon={<Sparkles className="size-10 text-gray-11" />}
/>
</div>
<TablePagination
@@ -129,7 +127,7 @@ export function ModelSelectionPanel({
pageSize={PAGE_SIZE}
total={filtered.length}
onPageChange={setPage}
- className="border-t border-border/60 p-3"
+ className="border-t border-gray-6/60 p-3"
/>
</div>
);
diff --git a/packages/web/src/app/routes/platform/setup/ai/providers-tab/project-selection-panel.tsx b/packages/web/src/app/routes/platform/setup/ai/providers-tab/project-selection-panel.tsx
index cc8f0d5fc92..93e7b5bc4c2 100644
--- a/packages/web/src/app/routes/platform/setup/ai/providers-tab/project-selection-panel.tsx
+++ b/packages/web/src/app/routes/platform/setup/ai/providers-tab/project-selection-panel.tsx
@@ -78,7 +78,7 @@ export function ProjectSelectionPanel({
{row.original.displayName}
</span>
{row.original.type === ProjectType.PERSONAL && (
- <span className="rounded-full bg-muted px-1.5 py-px text-[10px] text-muted-foreground">
+ <span className="rounded-full bg-gray-3 px-1.5 py-px text-[10px] text-gray-11">
{t('Personal')}
</span>
)}
@@ -88,10 +88,10 @@ export function ProjectSelectionPanel({
];
return (
- <div className="flex flex-col overflow-hidden rounded-xl border border-border/60">
+ <div className="flex flex-col overflow-hidden rounded-xl border border-gray-6/60">
<div className="flex flex-wrap items-center gap-2 p-3">
<InputWithIcon
- icon={<Search className="size-4 shrink-0 text-muted-foreground" />}
+ icon={<Search className="size-4 shrink-0 text-gray-11" />}
value={search}
onChange={(event) => {
setSearch(event.target.value);
@@ -108,7 +108,7 @@ export function ProjectSelectionPanel({
}}
/>
</div>
- <div className="border-t border-border/60 [&_tbody_tr:last-child]:border-b-0 [&_thead]:border-t-0">
+ <div className="border-t border-gray-6/60 [&_tbody_tr:last-child]:border-b-0 [&_thead]:border-t-0">
<DataTable
columns={columns}
page={{ data: rows, next: null, previous: null }}
@@ -123,9 +123,7 @@ export function ProjectSelectionPanel({
? t('No project is selected yet.')
: t('No project matches your search.')
}
- emptyStateIcon={
- <FolderOpen className="size-10 text-muted-foreground" />
- }
+ emptyStateIcon={<FolderOpen className="size-10 text-gray-11" />}
/>
</div>
<TablePagination
@@ -133,7 +131,7 @@ export function ProjectSelectionPanel({
pageSize={PAGE_SIZE}
total={filtered.length}
onPageChange={setPage}
- className="border-t border-border/60 p-3"
+ className="border-t border-gray-6/60 p-3"
/>
</div>
);
@@ -145,7 +143,7 @@ export function ProjectSwatch({ project }: { project: Project }) {
: undefined;
return (
<span
- className="flex size-5 shrink-0 items-center justify-center rounded-sm bg-muted text-[10px] font-medium"
+ className="flex size-5 shrink-0 items-center justify-center rounded-sm bg-gray-3 text-[10px] font-medium"
style={
palette
? { backgroundColor: palette.color, color: palette.textColor }
diff --git a/packages/web/src/app/routes/platform/setup/ai/providers-tab/provider-logo.tsx b/packages/web/src/app/routes/platform/setup/ai/providers-tab/provider-logo.tsx
index 8a8eb8ba7e2..499718b912d 100644
--- a/packages/web/src/app/routes/platform/setup/ai/providers-tab/provider-logo.tsx
+++ b/packages/web/src/app/routes/platform/setup/ai/providers-tab/provider-logo.tsx
@@ -1,3 +1,4 @@
+import { LogoPlate } from '@/components/custom/logo-plate';
import { AiProviderInfo } from '@/features/agents';
export function ProviderLogo({
@@ -7,24 +8,16 @@ export function ProviderLogo({
info: AiProviderInfo;
size?: 'sm' | 'md';
}) {
- if (size === 'sm') {
- return info.logoUrl ? (
- <img
- src={info.logoUrl}
- alt={info.name}
- className="size-4 shrink-0 object-contain"
- />
- ) : null;
+ if (!info.logoUrl) {
+ return size === 'sm' ? null : (
+ <div className="size-8 shrink-0 rounded-lg bg-gray-3" />
+ );
}
return (
- <div className="flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted/60">
- {info.logoUrl && (
- <img
- src={info.logoUrl}
- alt={info.name}
- className="size-4 object-contain"
- />
- )}
- </div>
+ <LogoPlate
+ src={info.logoUrl}
+ alt={info.name}
+ className={size === 'sm' ? 'size-4' : 'size-8 rounded-lg p-2'}
+ />
);
}
diff --git a/packages/web/src/app/routes/platform/setup/connections/index.tsx b/packages/web/src/app/routes/platform/setup/connections/index.tsx
index 44efc266948..88900ce86f3 100644
--- a/packages/web/src/app/routes/platform/setup/connections/index.tsx
+++ b/packages/web/src/app/routes/platform/setup/connections/index.tsx
@@ -274,7 +274,7 @@ const GlobalConnectionsTable = () => {
<Button
variant="ghost"
size="sm"
- className="text-destructive hover:text-destructive"
+ className="text-danger-11 hover:text-danger-11"
disabled={!userHasPermissionToWriteAppConnection}
>
<Trash className="mr-1 w-4" />
diff --git a/packages/web/src/app/routes/platform/setup/general/appearance-section.tsx b/packages/web/src/app/routes/platform/setup/general/appearance-section.tsx
index 71807f04e0c..fbb36207353 100644
--- a/packages/web/src/app/routes/platform/setup/general/appearance-section.tsx
+++ b/packages/web/src/app/routes/platform/setup/general/appearance-section.tsx
@@ -1,10 +1,18 @@
import { isNil } from '@activepieces/core-utils';
-import { formErrors, HEX_COLOR_PATTERN } from '@activepieces/shared';
+import {
+ brandColors,
+ formErrors,
+ HEX_COLOR_PATTERN,
+ ThemeHexColor,
+ PlatformThemeColors,
+ StatusColors,
+ StatusScale,
+} from '@activepieces/shared';
import { zodResolver } from '@hookform/resolvers/zod';
-import { useMutation } from '@tanstack/react-query';
+import { useMutation, useQueryClient } from '@tanstack/react-query';
import { t } from 'i18next';
-import { useRef } from 'react';
-import { FieldPath, useForm } from 'react-hook-form';
+import { useEffect, useRef, useState } from 'react';
+import { useForm } from 'react-hook-form';
import { toast } from 'sonner';
import { z } from 'zod';
@@ -14,71 +22,131 @@ import { ColorPicker } from '@/components/custom/color-picker';
import { Button } from '@/components/ui/button';
import {
Form,
- FormDescription,
FormField,
FormItem,
FormLabel,
FormMessage,
} from '@/components/ui/form';
import { Input } from '@/components/ui/input';
+import {
+ Item,
+ ItemContent,
+ ItemDescription,
+ ItemFooter,
+ ItemTitle,
+} from '@/components/ui/item';
import { Label } from '@/components/ui/label';
-import { Switch } from '@/components/ui/switch';
import { flagsHooks } from '@/hooks/flags-hooks';
import { platformHooks } from '@/hooks/platform-hooks';
+import { brandSeed } from '@/lib/brand-seed';
+
+import { ColorPreview, ColorTone } from './color-preview';
export const AppearanceSection = () => {
+ const queryClient = useQueryClient();
const { platform } = platformHooks.useCurrentPlatform();
const branding = flagsHooks.useWebsiteBranding();
const brandingLocked = !platform.plan.customAppearanceEnabled;
+ const initialColor = HEX_COLOR_PATTERN.test(platform.primaryColor)
+ ? platform.primaryColor
+ : branding.colors.primary.default;
+
+ const storedStatusColors = brandingLocked
+ ? branding.statusColors
+ : platform.themeColors?.status;
const form = useForm<PlatformAppearanceSchema>({
defaultValues: {
name: platform.name,
- color: platform.primaryColor,
- customThemeColors: !isNil(platform.themeColors),
- themeColors: {
- avatar: branding.colors.avatar,
- 'blue-link': branding.colors['blue-link'],
- danger: branding.colors.danger,
- selection: branding.colors.selection,
- primary: {
- dark: branding.colors.primary.dark,
- light: branding.colors.primary.light,
- medium: branding.colors.primary.medium,
- },
- warn: {
- default: branding.colors.warn.default,
- light: branding.colors.warn.light,
- dark: branding.colors.warn.dark,
- },
- success: {
- default: branding.colors.success.default,
- light: branding.colors.success.light,
- },
+ color: initialColor,
+ statusColors: {
+ danger: storedStatusColors?.danger,
+ warning: storedStatusColors?.warning,
+ success: storedStatusColors?.success,
},
},
- resolver: zodResolver(PlatformAppearanceSchema),
+ resolver: zodResolver(
+ brandingLocked
+ ? PlatformAppearanceSchema.extend({ color: z.string() })
+ : PlatformAppearanceSchema,
+ ),
mode: 'onChange',
});
+ const previewColor = form.watch('color');
+ const [previewDanger, previewWarning, previewSuccess] = form.watch([
+ 'statusColors.danger',
+ 'statusColors.warning',
+ 'statusColors.success',
+ ]);
+ const savedColor = branding.colors.primary.default;
+
+ useEffect(() => {
+ if (brandingLocked) {
+ return;
+ }
+ brandSeed.setPreview({
+ primaryColor: HEX_COLOR_PATTERN.test(previewColor)
+ ? previewColor
+ : savedColor,
+ statusColors: {
+ danger: previewDanger,
+ warning: previewWarning,
+ success: previewSuccess,
+ },
+ });
+ return () => brandSeed.clearPreview();
+ }, [
+ brandingLocked,
+ previewColor,
+ previewDanger,
+ previewWarning,
+ previewSuccess,
+ savedColor,
+ ]);
+
+ const statusLabels: Record<StatusScale, string> = {
+ danger: t('Danger'),
+ warning: t('Warning'),
+ success: t('Success'),
+ };
+
+ const [fileInputsKey, setFileInputsKey] = useState(0);
+ const [hasChosenFiles, setHasChosenFiles] = useState(false);
+ const { isDirty, errors } = form.formState;
+ const hasFieldErrors = Object.keys(errors).some((field) => field !== 'root');
+ const hasChanges = isDirty || hasChosenFiles;
+ const clearChosenFiles = () => {
+ setHasChosenFiles(false);
+ setFileInputsKey((key) => key + 1);
+ };
+
const logoRef = useRef<HTMLInputElement>(null);
const iconRef = useRef<HTMLInputElement>(null);
const faviconRef = useRef<HTMLInputElement>(null);
const { mutate: updatePlatform, isPending } = useMutation({
mutationFn: async () => {
+ form.clearErrors('root.serverError');
const logo = logoRef.current?.files?.[0];
const icon = iconRef.current?.files?.[0];
const favicon = faviconRef.current?.files?.[0];
- const { name, color, customThemeColors, themeColors } = form.getValues();
+ const { name, color, statusColors } = form.getValues();
const formdata = new FormData();
formdata.append('name', name);
if (!brandingLocked) {
- formdata.append('primaryColor', color);
+ if (color !== initialColor) {
+ formdata.append('primaryColor', color);
+ }
formdata.append(
'themeColors',
- customThemeColors ? JSON.stringify(themeColors) : 'null',
+ JSON.stringify(
+ withStatusColors({
+ themeColors: platform.themeColors,
+ statusColors,
+ }),
+ ),
);
if (logo) formdata.append('fullLogo', logo);
if (icon) formdata.append('logoIcon', icon);
@@ -86,12 +154,22 @@ export const AppearanceSection = () => {
}
await platformApi.updateWithFormData(formdata, platform.id);
- window.location.reload();
+ await Promise.all([
+ queryClient.invalidateQueries({ queryKey: ['platform', platform.id] }),
+ queryClient.invalidateQueries({ queryKey: flagsHooks.queryKey }),
+ ]);
},
onSuccess: () => {
+ clearChosenFiles();
toast.success(t('Your changes have been saved.'), { duration: 3000 });
form.reset(form.getValues());
},
+ onError: () => {
+ form.setError('root.serverError', {
+ type: 'manual',
+ message: t('Failed to save changes. Please try again.'),
+ });
+ },
});
return (
@@ -131,7 +209,9 @@ export const AppearanceSection = () => {
<Label htmlFor="logoFile">{t('Logo')}</Label>
<Input
type="file"
+ key={fileInputsKey}
ref={logoRef}
+ onChange={() => setHasChosenFiles(true)}
defaultFileName={platform.fullLogoUrl}
accept="image/*"
id="logoFile"
@@ -143,7 +223,9 @@ export const AppearanceSection = () => {
<Label htmlFor="iconFile">{t('Icon')}</Label>
<Input
type="file"
+ key={fileInputsKey}
ref={iconRef}
+ onChange={() => setHasChosenFiles(true)}
defaultFileName={platform.logoIconUrl}
accept="image/*"
id="iconFile"
@@ -155,7 +237,9 @@ export const AppearanceSection = () => {
<Label htmlFor="faviconFile">{t('Favicon')}</Label>
<Input
type="file"
+ key={fileInputsKey}
ref={faviconRef}
+ onChange={() => setHasChosenFiles(true)}
defaultFileName={platform.favIconUrl}
accept="image/*"
id="faviconFile"
@@ -164,88 +248,96 @@ export const AppearanceSection = () => {
/>
</div>
- <FormField
- name="color"
- render={({ field }) => (
- <FormItem className="grid space-y-2">
- <FormLabel htmlFor="color">{t('Primary Color')}</FormLabel>
- <div className="flex flex-row gap-2 items-center">
- <ColorPicker
- disabled={brandingLocked}
- value={field.value}
- onChange={(color: string) => field.onChange(color)}
- className="flex flex-row gap-2 items-center"
- ></ColorPicker>
- <FormMessage />
- </div>
- </FormItem>
- )}
- />
-
- <FormField
- control={form.control}
- name="customThemeColors"
- render={({ field }) => (
- <FormItem className="grid space-y-2">
- <FormLabel htmlFor="customThemeColors">
- {t('Customize theme colors')}
- </FormLabel>
- <div className="flex flex-row gap-2 items-center">
- <Switch
- id="customThemeColors"
- disabled={brandingLocked}
- checked={field.value}
- onCheckedChange={field.onChange}
- />
- </div>
- <FormDescription>
- {t(
- 'When disabled, theme colors are derived from your primary color.',
- )}
- </FormDescription>
- </FormItem>
- )}
- />
-
- {form.watch('customThemeColors') && !brandingLocked && (
- <div className="grid grid-cols-3 gap-4">
- {THEME_COLOR_FIELDS.map(({ name, label }) => (
+ <Item variant="outline">
+ <ItemContent>
+ <ItemTitle>{t('Colors')}</ItemTitle>
+ <ItemDescription>
+ {t('Your brand and status colors.')}
+ </ItemDescription>
+ </ItemContent>
+ <ItemFooter className="@container block">
+ <div className="grid grid-cols-1 gap-3 @lg:grid-cols-2">
<FormField
- key={name}
control={form.control}
- name={name}
+ name="color"
render={({ field }) => (
- <FormItem className="grid space-y-2">
- <FormLabel>{t(label)}</FormLabel>
- <div className="flex flex-row gap-2 items-center">
- <ColorPicker
- value={field.value as string}
- onChange={(color: string) => field.onChange(color)}
- className="flex flex-row gap-2 items-center"
- ></ColorPicker>
- <FormMessage />
- </div>
- </FormItem>
+ <ColorRow
+ tone="primary"
+ label={t('Primary')}
+ color={field.value}
+ defaultColor={brandColors.defaultPrimaryColor()}
+ isDefault={
+ field.value.toLowerCase() ===
+ brandColors.defaultPrimaryColor()
+ }
+ disabled={brandingLocked}
+ onChange={field.onChange}
+ onReset={() =>
+ field.onChange(brandColors.defaultPrimaryColor())
+ }
+ />
)}
/>
- ))}
- </div>
- )}
- </div>
+ {brandColors.statusScales.map((scale) => (
+ <FormField
+ key={scale}
+ control={form.control}
+ name={`statusColors.${scale}`}
+ render={({ field }) => (
+ <ColorRow
+ tone={scale}
+ label={statusLabels[scale]}
+ color={field.value}
+ defaultColor={brandColors.defaultStatusColor({
+ scale,
+ })}
+ isDefault={isNil(field.value)}
+ disabled={brandingLocked}
+ onChange={field.onChange}
+ onReset={() => field.onChange(undefined)}
+ />
+ )}
+ />
+ ))}
+ </div>
+ </ItemFooter>
+ </Item>
- {form?.formState?.errors?.root?.serverError && (
- <FormMessage>
- {form.formState.errors.root.serverError.message}
- </FormMessage>
- )}
- <div className="flex gap-2 justify-end mt-4">
- <Button
- type="submit"
- loading={isPending}
- disabled={!form.formState.isValid}
- >
- {t('Save')}
- </Button>
+ {form?.formState?.errors?.root?.serverError && (
+ <FormMessage>
+ {form.formState.errors.root.serverError.message}
+ </FormMessage>
+ )}
+ <div className="flex items-center justify-between gap-3 pt-2">
+ <span className="text-sm text-gray-11">
+ {hasChanges && (
+ <span className="flex items-center gap-2">
+ <span className="size-2 rounded-full bg-warning-9" />
+ {t('You have unsaved changes')}
+ </span>
+ )}
+ </span>
+ <div className="flex gap-2">
+ <Button
+ type="button"
+ variant="outline"
+ disabled={!hasChanges || isPending}
+ onClick={() => {
+ form.reset();
+ clearChosenFiles();
+ }}
+ >
+ {t('Cancel')}
+ </Button>
+ <Button
+ type="submit"
+ loading={isPending}
+ disabled={!hasChanges || hasFieldErrors}
+ >
+ {t('Save')}
+ </Button>
+ </div>
+ </div>
</div>
</form>
</Form>
@@ -253,52 +345,83 @@ export const AppearanceSection = () => {
);
};
-const hexColor = z.string().regex(HEX_COLOR_PATTERN, 'invalidHexColor');
+const ColorRow = ({
+ tone,
+ label,
+ color,
+ defaultColor,
+ isDefault,
+ disabled,
+ onChange,
+ onReset,
+}: ColorRowProps) => {
+ const shownColor = color ?? defaultColor;
+ return (
+ <FormItem className="flex flex-col gap-3 space-y-0 rounded-lg border border-gray-6 p-3">
+ <div className="flex items-center gap-3">
+ <ColorPicker
+ side="top"
+ aria-label={label}
+ disabled={disabled}
+ value={shownColor}
+ onChange={onChange}
+ className="shrink-0"
+ />
+ <div className="flex min-w-0 flex-1 flex-col">
+ <FormLabel className="font-normal">{label}</FormLabel>
+ <span className="text-xs text-gray-11">
+ <span className="font-mono uppercase">{shownColor}</span>
+ {isDefault && ` · ${t('Default')}`}
+ </span>
+ </div>
+ <Button
+ type="button"
+ variant="ghost"
+ size="sm"
+ aria-label={t('Reset {name}', { name: label })}
+ disabled={disabled || isDefault}
+ onClick={onReset}
+ >
+ {t('Reset')}
+ </Button>
+ </div>
+ <FormMessage />
+ <ColorPreview tone={tone} />
+ </FormItem>
+ );
+};
-const ThemeColorsSchema = z.object({
- avatar: hexColor,
- 'blue-link': hexColor,
- danger: hexColor,
- selection: hexColor,
- primary: z.object({
- dark: hexColor,
- light: hexColor,
- medium: hexColor,
- }),
- warn: z.object({
- default: hexColor,
- light: hexColor,
- dark: hexColor,
- }),
- success: z.object({
- default: hexColor,
- light: hexColor,
- }),
-});
+function withStatusColors({
+ themeColors,
+ statusColors,
+}: {
+ themeColors: PlatformThemeColors | null | undefined;
+ statusColors: StatusColors;
+}): PlatformThemeColors {
+ const hasStatusColor = Object.values(statusColors).some(
+ (color) => !isNil(color),
+ );
+ return {
+ ...themeColors,
+ status: hasStatusColor ? statusColors : undefined,
+ };
+}
const PlatformAppearanceSchema = z.object({
name: z.string().min(1, formErrors.required),
- color: z.string(),
- customThemeColors: z.boolean(),
- themeColors: ThemeColorsSchema,
+ color: ThemeHexColor,
+ statusColors: PlatformThemeColors.shape.status.unwrap(),
});
-const THEME_COLOR_FIELDS: {
- name: FieldPath<PlatformAppearanceSchema>;
- label: string;
-}[] = [
- { name: 'themeColors.primary.dark', label: 'Primary Dark' },
- { name: 'themeColors.primary.light', label: 'Primary Light' },
- { name: 'themeColors.primary.medium', label: 'Primary Medium' },
- { name: 'themeColors.danger', label: 'Danger' },
- { name: 'themeColors.warn.default', label: 'Warning' },
- { name: 'themeColors.warn.light', label: 'Warning Light' },
- { name: 'themeColors.warn.dark', label: 'Warning Dark' },
- { name: 'themeColors.success.default', label: 'Success' },
- { name: 'themeColors.success.light', label: 'Success Light' },
- { name: 'themeColors.blue-link', label: 'Link' },
- { name: 'themeColors.avatar', label: 'Avatar' },
- { name: 'themeColors.selection', label: 'Selection' },
-];
-
type PlatformAppearanceSchema = z.infer<typeof PlatformAppearanceSchema>;
+
+type ColorRowProps = {
+ tone: ColorTone;
+ label: string;
+ color: string | undefined;
+ defaultColor: string;
+ isDefault: boolean;
+ disabled: boolean;
+ onChange: (color: string | undefined) => void;
+ onReset: () => void;
+};
diff --git a/packages/web/src/app/routes/platform/setup/general/color-preview.tsx b/packages/web/src/app/routes/platform/setup/general/color-preview.tsx
new file mode 100644
index 00000000000..58cf2a25c9c
--- /dev/null
+++ b/packages/web/src/app/routes/platform/setup/general/color-preview.tsx
@@ -0,0 +1,86 @@
+import { t } from 'i18next';
+
+import { cn } from '@/lib/utils';
+
+export const ColorPreview = ({ tone }: ColorPreviewProps) => {
+ const steps = STEP_CLASSES[tone];
+ return (
+ <div
+ aria-hidden
+ className="flex items-center justify-between gap-3 rounded-md bg-gray-2 px-3 py-2.5 select-none"
+ >
+ <span className={cn('rounded-md px-3 py-1.5 text-sm', steps.button)}>
+ {t('Button')}
+ </span>
+ <div className="flex items-center gap-1.5">
+ <StepDot className={steps.surface} title={t('Surface')} />
+ <StepDot className={steps.border} title={t('Border')} />
+ <StepDot className={steps.solid} title={t('Solid')} />
+ <StepDot className={steps.hover} title={t('Hover')} />
+ <StepDot className={steps.text} title={t('Text and marks')} />
+ </div>
+ </div>
+ );
+};
+
+const StepDot = ({ className, title }: StepDotProps) => (
+ <span
+ title={title}
+ className={cn('size-4 rounded-full border border-gray-6', className)}
+ />
+);
+
+const STEP_CLASSES: Record<ColorTone, ScaleStepClasses> = {
+ primary: {
+ button: 'bg-accent-9 text-on-accent',
+ surface: 'bg-accent-3',
+ border: 'bg-accent-7',
+ solid: 'bg-accent-9',
+ hover: 'bg-accent-9/90',
+ text: 'bg-accent-11',
+ },
+ danger: {
+ button: 'bg-danger-9 text-on-danger',
+ surface: 'bg-danger-3',
+ border: 'bg-danger-7',
+ solid: 'bg-danger-9',
+ hover: 'bg-danger-9/90',
+ text: 'bg-danger-11',
+ },
+ warning: {
+ button: 'bg-warning-9 text-on-warning',
+ surface: 'bg-warning-3',
+ border: 'bg-warning-7',
+ solid: 'bg-warning-9',
+ hover: 'bg-warning-9/90',
+ text: 'bg-warning-11',
+ },
+ success: {
+ button: 'bg-success-9 text-on-success',
+ surface: 'bg-success-3',
+ border: 'bg-success-7',
+ solid: 'bg-success-9',
+ hover: 'bg-success-9/90',
+ text: 'bg-success-11',
+ },
+};
+
+export type ColorTone = 'primary' | 'danger' | 'warning' | 'success';
+
+type ScaleStepClasses = {
+ button: string;
+ surface: string;
+ border: string;
+ solid: string;
+ hover: string;
+ text: string;
+};
+
+type ColorPreviewProps = {
+ tone: ColorTone;
+};
+
+type StepDotProps = {
+ className: string;
+ title: string;
+};
diff --git a/packages/web/src/app/routes/platform/setup/general/danger-zone-section.tsx b/packages/web/src/app/routes/platform/setup/general/danger-zone-section.tsx
index f40f97957c0..570618fc3f1 100644
--- a/packages/web/src/app/routes/platform/setup/general/danger-zone-section.tsx
+++ b/packages/web/src/app/routes/platform/setup/general/danger-zone-section.tsx
@@ -19,7 +19,7 @@ export const DangerZoneSection = ({ platformName }: DangerZoneSectionProps) => {
<div className="flex flex-wrap items-center justify-between gap-4 rounded-lg border px-4 py-3.5">
<div className="flex min-w-0 flex-col gap-0.5">
<span className="text-sm font-medium">{t('Delete platform')}</span>
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-gray-11">
{t('Once deleted, your platform cannot be recovered.')}
{hasSubscription
? ` ${t(
diff --git a/packages/web/src/app/routes/platform/setup/general/delete-platform-dialog.tsx b/packages/web/src/app/routes/platform/setup/general/delete-platform-dialog.tsx
index f04c06760a5..9ddd5eaa3f1 100644
--- a/packages/web/src/app/routes/platform/setup/general/delete-platform-dialog.tsx
+++ b/packages/web/src/app/routes/platform/setup/general/delete-platform-dialog.tsx
@@ -76,7 +76,7 @@ const DeletePlatformForm = ({
<DialogHeader>
<DialogTitle>{t('Delete platform')}</DialogTitle>
<DialogDescription className="flex flex-col gap-3">
- <span className="text-foreground font-medium">
+ <span className="text-gray-12 font-medium">
{t(
'{name} will be deleted for everyone. This cannot be undone.',
{
diff --git a/packages/web/src/app/routes/platform/setup/mcp/index.tsx b/packages/web/src/app/routes/platform/setup/mcp/index.tsx
index fbf8d8d5afc..33d92305696 100644
--- a/packages/web/src/app/routes/platform/setup/mcp/index.tsx
+++ b/packages/web/src/app/routes/platform/setup/mcp/index.tsx
@@ -79,7 +79,7 @@ export default function PlatformMcpPage({ section }: PlatformMcpPageProps) {
<label className="text-sm font-medium">
{t('Server URL')}
</label>
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{t(
'Use this URL to connect from Cursor, Windsurf, Claude Desktop, or any MCP-compatible client. Authentication is handled via OAuth.',
)}
@@ -108,7 +108,7 @@ export default function PlatformMcpPage({ section }: PlatformMcpPageProps) {
<h3 className="font-semibold text-base mb-1">
{t('Internal Tools')}
</h3>
- <p className="text-sm text-muted-foreground mb-3">
+ <p className="text-sm text-gray-11 mb-3">
{t(
'Switching a tool off here switches it off everywhere on this platform: the AI Chat, external agents, and every project MCP server.',
)}
diff --git a/packages/web/src/app/routes/platform/setup/pieces/customize-selector-dialog.tsx b/packages/web/src/app/routes/platform/setup/pieces/customize-selector-dialog.tsx
index 68eab4bfb8e..69d87186402 100644
--- a/packages/web/src/app/routes/platform/setup/pieces/customize-selector-dialog.tsx
+++ b/packages/web/src/app/routes/platform/setup/pieces/customize-selector-dialog.tsx
@@ -64,7 +64,7 @@ import { platformHooks } from '@/hooks/platform-hooks';
import { cn } from '@/lib/utils';
const borderlessInputClass =
- 'border-transparent bg-transparent shadow-none hover:border-input focus-visible:bg-background';
+ 'border-transparent bg-transparent dark:bg-transparent shadow-none hover:border-gray-6 focus-visible:bg-gray-1';
export const CustomizeSelectorDialog = ({
isEnabled,
@@ -81,7 +81,7 @@ export const CustomizeSelectorDialog = ({
return (
<>
<Button variant="outline" size="sm" onClick={gate.open}>
- <Crown className="size-3.5 shrink-0 text-primary" />
+ <Crown className="size-3.5 shrink-0 text-accent-11" />
{t('Customize Selector')}
</Button>
{gate.dialog}
@@ -211,7 +211,7 @@ const SelectorTabsEditor = ({ onClose }: { onClose: () => void }) => {
<Button
variant="outline"
size="sm"
- className="self-start text-muted-foreground mt-1"
+ className="self-start text-gray-11 mt-1"
onClick={addCustomTab}
>
<PlusIcon className="size-4 mr-2" />
@@ -290,16 +290,16 @@ const TabCard = ({
return (
<div
className={cn(
- 'rounded-lg border bg-card transition-colors',
+ 'rounded-lg border bg-panel transition-colors',
tab.hidden && 'opacity-60',
- expanded && 'border-primary/40',
+ expanded && 'border-accent-7',
)}
>
<div className="flex items-center gap-1.5 p-2">
<SortableDragHandle
variant="ghost"
size="icon"
- className="shrink-0 size-7 text-muted-foreground/50"
+ className="shrink-0 size-7 text-gray-9"
>
<GripVerticalIcon className="size-4" />
</SortableDragHandle>
@@ -320,7 +320,7 @@ const TabCard = ({
<Button
variant="ghost"
size="icon"
- className="shrink-0 size-7 text-muted-foreground"
+ className="shrink-0 size-7 text-gray-11"
onClick={() => onChange({ hidden: !tab.hidden })}
title={tab.hidden ? t('Show tab') : t('Hide tab')}
>
@@ -335,7 +335,7 @@ const TabCard = ({
<Button
variant="ghost"
size="icon"
- className="shrink-0 size-7 text-muted-foreground"
+ className="shrink-0 size-7 text-gray-11"
onClick={() => setExpanded((prev) => !prev)}
title={t('Pieces & sections')}
>
@@ -363,7 +363,7 @@ const TabCard = ({
{sections.map((section) => (
<div
key={section.id}
- className="flex items-center gap-1.5 rounded-md border bg-background pl-2 pr-1 py-1"
+ className="flex items-center gap-1.5 rounded-md border bg-gray-1 pl-2 pr-1 py-1"
>
<Input
value={section.title}
@@ -383,7 +383,7 @@ const TabCard = ({
<Button
variant="ghost"
size="icon"
- className="shrink-0 size-7 text-muted-foreground hover:text-destructive"
+ className="shrink-0 size-7 text-gray-11 hover:text-danger-11"
onClick={() => removeSection(section.id)}
title={t('Delete section')}
>
@@ -394,7 +394,7 @@ const TabCard = ({
<Button
variant="ghost"
size="sm"
- className="self-start text-muted-foreground"
+ className="self-start text-gray-11"
onClick={addSection}
>
<PlusIcon className="size-4 mr-2" />
@@ -406,7 +406,7 @@ const TabCard = ({
<Button
variant="ghost"
size="sm"
- className="h-8 text-destructive hover:text-destructive hover:bg-destructive/10"
+ className="h-8 text-danger-11 hover:text-danger-11 hover:bg-danger-3"
onClick={onRemove}
>
<TrashIcon className="size-4 mr-2" />
@@ -436,7 +436,7 @@ const PiecesPickerRow = ({
<div className="flex items-center justify-between gap-2 p-3">
<div className="flex flex-col">
<span className="text-sm font-medium">{label}</span>
- <span className="text-xs text-muted-foreground">{hint}</span>
+ <span className="text-xs text-gray-11">{hint}</span>
</div>
<PiecePickerButton
pieces={pieces}
@@ -462,7 +462,7 @@ const TabIconPicker = ({
<Button
variant="ghost"
size="icon"
- className="shrink-0 size-8 text-foreground hover:bg-muted"
+ className="shrink-0 size-8 text-gray-12 hover:bg-gray-3"
>
{iconNode}
</Button>
@@ -475,7 +475,8 @@ const TabIconPicker = ({
variant="ghost"
size="icon"
className={cn('size-9', {
- 'bg-accent text-primary': value === key,
+ 'bg-gray-5 hover:bg-gray-5 text-accent-11 hover:text-accent-11':
+ value === key,
})}
onClick={() => onChange(key)}
>
@@ -537,7 +538,7 @@ const PiecePickerButton = ({
<SortableDragHandle
variant="ghost"
size="icon"
- className="shrink-0 size-6 text-muted-foreground/60"
+ className="shrink-0 size-6 text-gray-9"
>
<GripVerticalIcon className="size-3.5" />
</SortableDragHandle>
@@ -587,7 +588,7 @@ const PiecePickerButton = ({
/>
<span className="grow truncate">{piece.displayName}</span>
{isSelected && (
- <CheckIcon className="size-4 text-primary" />
+ <CheckIcon className="size-4 text-accent-11" />
)}
</CommandItem>
);
diff --git a/packages/web/src/app/routes/platform/setup/pieces/index.tsx b/packages/web/src/app/routes/platform/setup/pieces/index.tsx
index c1df3d100e4..58ec5a07208 100644
--- a/packages/web/src/app/routes/platform/setup/pieces/index.tsx
+++ b/packages/web/src/app/routes/platform/setup/pieces/index.tsx
@@ -159,7 +159,7 @@ export const PiecesListTab = () => {
}}
>
<Button variant="ghost" size={'sm'} disabled={!isEnabled}>
- <Trash className="size-4 text-destructive" />
+ <Trash className="size-4 text-danger-11" />
</Button>
</ConfirmationDeleteDialog>
)}
diff --git a/packages/web/src/app/routes/platform/setup/pieces/piece-component-visibility-sheet.tsx b/packages/web/src/app/routes/platform/setup/pieces/piece-component-visibility-sheet.tsx
index e6c5d777c8d..961e876ff6f 100644
--- a/packages/web/src/app/routes/platform/setup/pieces/piece-component-visibility-sheet.tsx
+++ b/packages/web/src/app/routes/platform/setup/pieces/piece-component-visibility-sheet.tsx
@@ -269,7 +269,7 @@ function PieceComponentVisibilitySheetContent({
</TabsTrigger>
</TabsList>
</Tabs>
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{mode === 'all'
? t(
'Every current and future action or trigger in this piece is available to end users. Nothing to configure.',
@@ -288,7 +288,7 @@ function PieceComponentVisibilitySheetContent({
disabled={totalCount === 0}
/>
<span className="text-sm font-medium">{t('Select all')}</span>
- <span className="ml-auto text-xs text-muted-foreground">
+ <span className="ml-auto text-xs text-gray-11">
{t('{count} of {total} selected', {
count: checkedCount,
total: totalCount,
@@ -300,10 +300,10 @@ function PieceComponentVisibilitySheetContent({
<div className="flex-1 overflow-y-auto px-6 pb-6">
{isLoading ? (
<div className="flex items-center justify-center h-full">
- <Loader2 className="size-8 animate-spin text-muted-foreground" />
+ <Loader2 className="size-8 animate-spin text-gray-11" />
</div>
) : totalCount === 0 ? (
- <div className="flex items-center justify-center h-full text-sm text-muted-foreground">
+ <div className="flex items-center justify-center h-full text-sm text-gray-11">
{t('No actions or triggers found')}
</div>
) : (
@@ -372,11 +372,11 @@ function ComponentSection({
<Collapsible open={expanded} onOpenChange={setExpanded}>
<CollapsibleTrigger className="flex items-center gap-2 pt-4 pb-1.5 w-full">
{expanded ? (
- <ChevronDown className="size-4 shrink-0 text-muted-foreground" />
+ <ChevronDown className="size-4 shrink-0 text-gray-11" />
) : (
- <ChevronRight className="size-4 shrink-0 text-muted-foreground" />
+ <ChevronRight className="size-4 shrink-0 text-gray-11" />
)}
- <span className="text-xs font-semibold uppercase tracking-wider text-muted-foreground">
+ <span className="text-xs font-semibold uppercase tracking-wider text-gray-11">
{label}
</span>
<Badge variant="inverted" className="text-xs font-bold">
@@ -415,7 +415,7 @@ function ComponentSection({
</Badge>
</div>
{item.data.description && (
- <p className="text-xs text-muted-foreground mt-0.5 truncate">
+ <p className="text-xs text-gray-11 mt-0.5 truncate">
{item.data.description}
</p>
)}
diff --git a/packages/web/src/app/routes/platform/setup/pieces/piece-sets/piece-set-details-page.tsx b/packages/web/src/app/routes/platform/setup/pieces/piece-sets/piece-set-details-page.tsx
index 52984a0be38..0b6b4070a41 100644
--- a/packages/web/src/app/routes/platform/setup/pieces/piece-sets/piece-set-details-page.tsx
+++ b/packages/web/src/app/routes/platform/setup/pieces/piece-sets/piece-set-details-page.tsx
@@ -67,7 +67,7 @@ const PieceSetDetailsPage = () => {
if (isLoading || !pieceSet) {
return (
<div className="flex items-center justify-center flex-1">
- <Loader2 className="size-6 animate-spin text-muted-foreground" />
+ <Loader2 className="size-6 animate-spin text-gray-11" />
</div>
);
}
@@ -99,18 +99,18 @@ const PieceSetDetailsPage = () => {
<div className="mx-auto w-full flex flex-col flex-1 min-h-0 gap-0">
<div className="px-4 pt-3 pb-6 shrink-0 flex flex-col gap-3">
- <div className="flex flex-wrap items-center gap-x-4 gap-y-3 rounded-xl border bg-muted/40 px-3.5 py-3">
+ <div className="flex flex-wrap items-center gap-x-4 gap-y-3 rounded-xl border bg-gray-3/40 px-3.5 py-3">
<div className="flex items-center gap-2">
- <span className="text-[11px] font-semibold uppercase tracking-wider text-muted-foreground">
+ <span className="text-[11px] font-semibold uppercase tracking-wider text-gray-11">
{t('Assigned')}
</span>
<PieceSetProjectsDialog pieceSet={pieceSet} />
</div>
- <div className="self-stretch w-px bg-border" />
+ <div className="self-stretch w-px bg-gray-6" />
<div className="flex items-center gap-2">
- <span className="text-[11px] font-semibold uppercase tracking-wider text-muted-foreground">
+ <span className="text-[11px] font-semibold uppercase tracking-wider text-gray-11">
{t('Auto-include')}
</span>
<AutoIncludePill
@@ -123,7 +123,7 @@ const PieceSetDetailsPage = () => {
/>
</div>
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{t(
'Applies only to pieces that don’t exist yet — actions are governed per piece below.',
)}
@@ -153,8 +153,8 @@ function AutoIncludePill({
return (
<label
className={cn(
- 'inline-flex h-8 cursor-pointer select-none items-center gap-2 rounded-lg border bg-background px-3 text-sm font-medium transition-colors',
- checked && 'border-primary/50 bg-primary/[0.07] text-primary',
+ 'inline-flex h-8 cursor-pointer select-none items-center gap-2 rounded-lg border bg-gray-1 px-3 text-sm font-medium transition-colors',
+ checked && 'border-accent-7 bg-accent-3 text-accent-11',
disabled && 'cursor-not-allowed opacity-60',
)}
>
diff --git a/packages/web/src/app/routes/platform/setup/pieces/piece-sets/piece-set-projects-dialog.tsx b/packages/web/src/app/routes/platform/setup/pieces/piece-sets/piece-set-projects-dialog.tsx
index e9c03657238..95765d16c38 100644
--- a/packages/web/src/app/routes/platform/setup/pieces/piece-sets/piece-set-projects-dialog.tsx
+++ b/packages/web/src/app/routes/platform/setup/pieces/piece-sets/piece-set-projects-dialog.tsx
@@ -189,9 +189,7 @@ export const PieceSetProjectsDialog = ({
className="h-9 gap-2 rounded-lg pl-2.5 pr-2 font-normal"
>
{assignedProjects.length === 0 ? (
- <span className="text-muted-foreground">
- {t('No projects assigned')}
- </span>
+ <span className="text-gray-11">{t('No projects assigned')}</span>
) : (
<span className="flex items-center gap-2">
<span className="flex items-center gap-0.5">
@@ -217,7 +215,7 @@ export const PieceSetProjectsDialog = ({
</span>
</span>
)}
- <ChevronDown className="size-3.5 text-muted-foreground shrink-0" />
+ <ChevronDown className="size-3.5 text-gray-11 shrink-0" />
</Button>
</DialogTrigger>
<DialogContent>
diff --git a/packages/web/src/app/routes/platform/setup/pieces/piece-sets/piece-sets-tab.tsx b/packages/web/src/app/routes/platform/setup/pieces/piece-sets/piece-sets-tab.tsx
index 45fe0f8ea96..f63ab7f3cfa 100644
--- a/packages/web/src/app/routes/platform/setup/pieces/piece-sets/piece-sets-tab.tsx
+++ b/packages/web/src/app/routes/platform/setup/pieces/piece-sets/piece-sets-tab.tsx
@@ -90,7 +90,7 @@ export const PieceSetsTab = () => {
row.original.key ? (
<span className="font-mono text-sm">{row.original.key}</span>
) : (
- <span className="text-muted-foreground">—</span>
+ <span className="text-gray-11">—</span>
),
},
{
@@ -157,7 +157,7 @@ export const PieceSetsTab = () => {
size="sm"
disabled={row.original.isDefault}
>
- <Trash2 className="size-4 text-destructive" />
+ <Trash2 className="size-4 text-danger-11" />
</Button>
</ConfirmationDeleteDialog>
</div>
diff --git a/packages/web/src/app/routes/platform/setup/pieces/update-oauth2-dialog.tsx b/packages/web/src/app/routes/platform/setup/pieces/update-oauth2-dialog.tsx
index 0aa28d49de2..586e4a02bb8 100644
--- a/packages/web/src/app/routes/platform/setup/pieces/update-oauth2-dialog.tsx
+++ b/packages/web/src/app/routes/platform/setup/pieces/update-oauth2-dialog.tsx
@@ -89,7 +89,7 @@ export const ConfigurePieceOAuth2Dialog = forwardRef<
{isNil(oauth2App) ? (
<Unlock className="size-4" />
) : (
- <Lock className="size-4 text-destructive" />
+ <Lock className="size-4 text-danger-11" />
)}
</Button>
</TooltipTrigger>
diff --git a/packages/web/src/app/routes/platform/setup/templates/index.tsx b/packages/web/src/app/routes/platform/setup/templates/index.tsx
index df4971797b8..02b1784ac87 100644
--- a/packages/web/src/app/routes/platform/setup/templates/index.tsx
+++ b/packages/web/src/app/routes/platform/setup/templates/index.tsx
@@ -180,7 +180,7 @@ const PlatformTemplatesPage = () => {
<Button
variant="ghost"
size="sm"
- className="text-destructive hover:text-destructive"
+ className="text-danger-11 hover:text-danger-11"
>
<Trash className="mr-1 w-4" />
{`${t('Delete')} (${selectedRows.length})`}
diff --git a/packages/web/src/app/routes/platform/users/columns.tsx b/packages/web/src/app/routes/platform/users/columns.tsx
index 8330434a148..96b9f3cb60f 100644
--- a/packages/web/src/app/routes/platform/users/columns.tsx
+++ b/packages/web/src/app/routes/platform/users/columns.tsx
@@ -51,7 +51,7 @@ export const createUsersTableColumns = (): ColumnDefWithAccessorKey[] => [
{isInvitation && (
<Tooltip>
<TooltipTrigger>
- <Info className="h-4 w-4 text-orange-700" />
+ <Info className="h-4 w-4 text-warning-11" />
</TooltipTrigger>
<TooltipContent>
<p>{t('Pending Invitation')}</p>
@@ -60,12 +60,12 @@ export const createUsersTableColumns = (): ColumnDefWithAccessorKey[] => [
)}
<div
className={`flex flex-col gap-0.5 ${
- isInvitation ? 'text-orange-700' : ''
+ isInvitation ? 'text-warning-11' : ''
}`}
>
{showEmail && (
<div className="flex items-center gap-1.5">
- <Mail className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />
+ <Mail className="h-3.5 w-3.5 shrink-0 text-gray-11" />
<TruncatedColumnTextValue
value={email}
className="max-w-[200px] 2xl:max-w-[280px]"
@@ -74,7 +74,7 @@ export const createUsersTableColumns = (): ColumnDefWithAccessorKey[] => [
)}
{externalId && (
<div className="flex items-center gap-1.5">
- <Hash className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />
+ <Hash className="h-3.5 w-3.5 shrink-0 text-gray-11" />
<TruncatedColumnTextValue
value={externalId}
className="max-w-[200px] 2xl:max-w-[280px]"
@@ -82,7 +82,7 @@ export const createUsersTableColumns = (): ColumnDefWithAccessorKey[] => [
</div>
)}
{!showEmail && !externalId && (
- <span className="text-muted-foreground">-</span>
+ <span className="text-gray-11">-</span>
)}
</div>
</div>
@@ -97,7 +97,7 @@ export const createUsersTableColumns = (): ColumnDefWithAccessorKey[] => [
),
cell: ({ row }) => {
if (row.original.type === 'invitation') {
- return <div className="text-muted-foreground">-</div>;
+ return <div className="text-gray-11">-</div>;
}
return (
<TruncatedColumnTextValue
@@ -156,7 +156,7 @@ export const createUsersTableColumns = (): ColumnDefWithAccessorKey[] => [
),
cell: ({ row }) => {
if (row.original.type === 'invitation') {
- return <div className="text-muted-foreground">-</div>;
+ return <div className="text-gray-11">-</div>;
}
return row.original.data.lastActiveDate ? (
<div className="text-left">
@@ -179,7 +179,7 @@ export const createUsersTableColumns = (): ColumnDefWithAccessorKey[] => [
),
cell: ({ row }) => {
if (row.original.type === 'invitation') {
- return <div className="text-left text-orange-700">{t('Pending')}</div>;
+ return <div className="text-left text-warning-11">{t('Pending')}</div>;
}
return (
<div className="text-left">
diff --git a/packages/web/src/app/routes/platform/users/index.tsx b/packages/web/src/app/routes/platform/users/index.tsx
index 2549c6530b9..ae4b96f4d69 100644
--- a/packages/web/src/app/routes/platform/users/index.tsx
+++ b/packages/web/src/app/routes/platform/users/index.tsx
@@ -156,7 +156,7 @@ export default function UsersPage() {
}}
>
{isOutOfSeats ? (
- <Crown className="size-4 shrink-0 text-primary-foreground/90" />
+ <Crown className="size-4 shrink-0 text-on-accent/90" />
) : (
<UserRoundPlusIcon size={16} />
)}
diff --git a/packages/web/src/app/routes/project-release/create-release-dialog/index.tsx b/packages/web/src/app/routes/project-release/create-release-dialog/index.tsx
index 8905dcb9553..5d33824ab23 100644
--- a/packages/web/src/app/routes/project-release/create-release-dialog/index.tsx
+++ b/packages/web/src/app/routes/project-release/create-release-dialog/index.tsx
@@ -113,7 +113,7 @@ const CreateReleaseDialogContent = ({
placeholder={t('Meeting Summary Flow')}
/>
{form.formState.errors.name && (
- <p className="text-sm text-destructive">
+ <p className="text-sm text-danger-11">
{form.formState.errors.name.message}
</p>
)}
@@ -128,7 +128,7 @@ const CreateReleaseDialogContent = ({
placeholder={t('Added new features and fixed bugs')}
/>
{form.formState.errors.description && (
- <p className="text-sm text-destructive">
+ <p className="text-sm text-danger-11">
{form.formState.errors.description.message}
</p>
)}
@@ -171,12 +171,12 @@ const CreateReleaseDialogContent = ({
{plan?.connections && plan?.connections.length > 0 && (
<div className="space-y-2">
<div className="flex flex-col gap-2">
- <div className="flex flex-col justify -center gap-1 py-2 border-b">
+ <div className="flex flex-col gap-1 py-2 border-b">
<Label className="text-sm font-medium">
{t('Connections Changes')} ({plan?.connections?.length || 0}
)
</Label>
- <div className="flex items-center text-sm text-muted-foreground">
+ <div className="flex items-center text-sm text-gray-11">
<span className="flex items-center gap-2">
{t(
'New connections are placeholders and need to be reconnected again',
@@ -208,8 +208,8 @@ const CreateReleaseDialogContent = ({
{connection.type ===
ConnectionOperationType.CREATE_CONNECTION && (
<div className="flex items-center gap-2">
- <Plus className="w-4 h-4 shrink-0 text-success" />
- <span className="text-success">
+ <Plus className="w-4 h-4 shrink-0 text-success-11" />
+ <span className="text-success-11">
{connection.connectionState.displayName}
</span>
</div>
@@ -224,7 +224,7 @@ const CreateReleaseDialogContent = ({
{plan?.tables && plan?.tables.length > 0 && (
<div className="space-y-2">
<div className="flex flex-col gap-2">
- <div className="flex flex-col justify -center gap-1 py-2 border-b">
+ <div className="flex flex-col gap-1 py-2 border-b">
<Label className="text-sm font-medium">
{t('Tables Changes')} ({plan?.tables?.length || 0})
</Label>
@@ -245,16 +245,16 @@ const CreateReleaseDialogContent = ({
)}
{table.type === TableOperationType.CREATE_TABLE && (
<div className="flex items-center gap-2">
- <Plus className="w-4 h-4 shrink-0 text-success" />
- <span className="text-success">
+ <Plus className="w-4 h-4 shrink-0 text-success-11" />
+ <span className="text-success-11">
{table.tableState.name}
</span>
</div>
)}
{table.type === TableOperationType.DELETE_TABLE && (
<div className="flex items-center gap-2">
- <TrashIcon className="w-4 h-4 shrink-0 text-destructive" />
- <span className="text-destructive">
+ <TrashIcon className="w-4 h-4 shrink-0 text-danger-11" />
+ <span className="text-danger-11">
{table.tableState.name}
</span>
</div>
@@ -266,7 +266,7 @@ const CreateReleaseDialogContent = ({
</div>
)}
{errorMessage && (
- <p className="text-sm text-destructive">{errorMessage}</p>
+ <p className="text-sm text-danger-11">{errorMessage}</p>
)}
</div>
)}
diff --git a/packages/web/src/app/routes/project-release/create-release-dialog/operation-change.tsx b/packages/web/src/app/routes/project-release/create-release-dialog/operation-change.tsx
index 9ad9063cb7d..ff76b5e55d7 100644
--- a/packages/web/src/app/routes/project-release/create-release-dialog/operation-change.tsx
+++ b/packages/web/src/app/routes/project-release/create-release-dialog/operation-change.tsx
@@ -8,7 +8,7 @@ import React from 'react';
import { Checkbox } from '@/components/ui/checkbox';
const renderDiffInfo = (flowName: string, icon: React.ReactNode) => (
- <div className="flex items-center justify-between text-sm hover:bg-accent/20 rounded-md py-1">
+ <div className="flex items-center justify-between text-sm hover:bg-gray-4 rounded-md py-1">
<div className="flex items-center gap-2">
{icon}
{flowName}
@@ -27,7 +27,7 @@ export const OperationChange = React.memo(
return (
<>
{change.type === FlowProjectOperationType.CREATE_FLOW && (
- <div className="flex gap-2 text-success items-center">
+ <div className="flex gap-2 text-success-11 items-center">
<Checkbox checked={selected} onCheckedChange={onSelect} />
{renderDiffInfo(
change.flow.displayName,
@@ -45,7 +45,7 @@ export const OperationChange = React.memo(
</div>
)}
{change.type === FlowProjectOperationType.DELETE_FLOW && (
- <div className="flex gap-2 text-destructive items-center">
+ <div className="flex gap-2 text-danger-11 items-center">
<Checkbox checked={selected} onCheckedChange={onSelect} />
{renderDiffInfo(
change.flow.displayName,
diff --git a/packages/web/src/app/routes/project-release/push-everything-dialog/index.tsx b/packages/web/src/app/routes/project-release/push-everything-dialog/index.tsx
index 446f30e7bbf..c50c8be9a8b 100644
--- a/packages/web/src/app/routes/project-release/push-everything-dialog/index.tsx
+++ b/packages/web/src/app/routes/project-release/push-everything-dialog/index.tsx
@@ -95,7 +95,7 @@ const PushEverythingDialog = (props: PushEverythingDialogProps) => {
<FormLabel>{t('Commit Message')}</FormLabel>
<Tooltip>
<TooltipTrigger asChild>
- <Info className="w-4 h-4 text-muted-foreground cursor-help" />
+ <Info className="w-4 h-4 text-gray-11 cursor-help" />
</TooltipTrigger>
<TooltipContent className="max-w-xs">
{t(
@@ -107,7 +107,7 @@ const PushEverythingDialog = (props: PushEverythingDialogProps) => {
<FormControl>
<Textarea {...field} />
</FormControl>
- <div className="text-sm text-gray-500">
+ <div className="text-sm text-gray-11">
{t(
'Enter a commit message to describe the changes you want to push.',
)}
diff --git a/packages/web/src/app/routes/project-release/view-release.tsx b/packages/web/src/app/routes/project-release/view-release.tsx
index 315bd52b60c..d2685f3f816 100644
--- a/packages/web/src/app/routes/project-release/view-release.tsx
+++ b/packages/web/src/app/routes/project-release/view-release.tsx
@@ -68,10 +68,10 @@ const ViewRelease = () => {
return (
<div className="space-y-6 w-full">
<div className="space-y-2">
- <div className="flex items-center gap-2 text-sm text-muted-foreground">
+ <div className="flex items-center gap-2 text-sm text-gray-11">
<Button
variant="link"
- className="p-0 h-auto text-sm text-muted-foreground hover:text-primary"
+ className="p-0 h-auto text-sm text-gray-11 hover:text-accent-11"
onClick={() => navigate('/releases')}
>
{t('Releases')}
@@ -81,7 +81,7 @@ const ViewRelease = () => {
</div>
<div className="flex justify-between items-center w-full">
<div className="flex flex-col items-start gap-2 w-full">
- <div className="flex items-center gap-2 text-md justify-between w-full">
+ <div className="flex items-center gap-2 justify-between w-full">
<h1 className="text-3xl font-bold">{release?.name}</h1>
<Tooltip>
<TooltipTrigger asChild>
@@ -104,7 +104,7 @@ const ViewRelease = () => {
<TooltipContent side="bottom">{t('Rollback')}</TooltipContent>
</Tooltip>
</div>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t('Created')}: {timeAgo}
</p>
</div>
@@ -112,7 +112,7 @@ const ViewRelease = () => {
</div>
<div className="space-y-2">
- <span className="text-md font-semibold">{t('Summary')}</span>
+ <span className="font-semibold">{t('Summary')}</span>
{isLoading ? (
<Skeleton className="h-24 w-full" />
) : (
@@ -123,7 +123,7 @@ const ViewRelease = () => {
<TooltipTrigger asChild>
<span className="flex items-center flex-row gap-1">
{t('Imported by')}
- <span className="font-semibold text-md">
+ <span className="font-semibold">
{release?.importedByUser?.firstName}{' '}
{release?.importedByUser?.lastName}
</span>
@@ -143,7 +143,7 @@ const ViewRelease = () => {
)}
</div>
<div className="space-y-2">
- <span className="text-md font-semibold">{t('Description')}</span>
+ <span className="font-semibold">{t('Description')}</span>
{isLoading ? (
<Skeleton className="h-24 w-full" />
) : (
diff --git a/packages/web/src/app/routes/runs/id/index.tsx b/packages/web/src/app/routes/runs/id/index.tsx
index 5a20c49e7f0..79933e4ff1b 100644
--- a/packages/web/src/app/routes/runs/id/index.tsx
+++ b/packages/web/src/app/routes/runs/id/index.tsx
@@ -41,7 +41,7 @@ const FlowRunPage = () => {
if (isLoading || isSampleDataLoading || isSampleDataInputLoading) {
return (
- <div className="bg-background flex h-full w-full items-center justify-center ">
+ <div className="bg-gray-1 flex h-full w-full items-center justify-center ">
<LoadingSpinner isLarge={true}></LoadingSpinner>
</div>
);
diff --git a/packages/web/src/app/routes/tables/id/index.tsx b/packages/web/src/app/routes/tables/id/index.tsx
index 54549828bf1..842379bb708 100644
--- a/packages/web/src/app/routes/tables/id/index.tsx
+++ b/packages/web/src/app/routes/tables/id/index.tsx
@@ -59,7 +59,7 @@ const ApTableEditorPage = () => {
}, [lockedBy, setLockedByOtherUser]);
const gridRef = useRef<DataGridHandle>(null);
- const { theme } = useTheme();
+ const { resolvedTheme } = useTheme();
const { data: maxRecords } = flagsHooks.useFlag<number>(
ApFlagId.MAX_RECORDS_PER_TABLE,
);
@@ -142,8 +142,8 @@ const ApTableEditorPage = () => {
onSelectedRowsChange={setSelectedRecords}
onColumnsReorder={handleColumnsReorder}
className={cn(
- 'scroll-smooth w-full !h-full bg-muted/30 !border-0',
- theme === 'dark' ? 'rdg-dark' : 'rdg-light',
+ 'scroll-smooth w-full !h-full bg-gray-2 !border-0',
+ resolvedTheme === 'dark' ? 'rdg-dark' : 'rdg-light',
)}
bottomSummaryRows={canEdit ? [{ id: 'new-record' }] : []}
rowHeight={ROW_HEIGHT_MAP[RowHeight.DEFAULT]}
diff --git a/packages/web/src/app/routes/tables/id/react-data-grid.css b/packages/web/src/app/routes/tables/id/react-data-grid.css
index 294457c6c16..0a73ff89e5e 100644
--- a/packages/web/src/app/routes/tables/id/react-data-grid.css
+++ b/packages/web/src/app/routes/tables/id/react-data-grid.css
@@ -67,15 +67,14 @@ div[role="gridcell"]:focus-within {
/* Handle */
::-webkit-scrollbar-thumb {
- /* @apply relative flex-1 rounded-full bg-border; */
@apply touch-none select-none transition-colors;
}
}
.locked-row {
- background-color: #ffedd5 !important; /* orange-100 */
+ background-color: var(--warning-3) !important;
}
.locked-row .lock-icon {
- color: #f97316 !important; /* orange-500 */
+ color: var(--warning-11) !important;
margin-right: 0.5rem;
}
diff --git a/packages/web/src/app/routes/templates/category-filter-carousel.tsx b/packages/web/src/app/routes/templates/category-filter-carousel.tsx
index 2eff5b2c9e3..d623dec99ab 100644
--- a/packages/web/src/app/routes/templates/category-filter-carousel.tsx
+++ b/packages/web/src/app/routes/templates/category-filter-carousel.tsx
@@ -44,8 +44,8 @@ const CarouselContentWithButtons = ({
onClick={() => onCategorySelect(category)}
className={`px-4 py-1.5 h-auto whitespace-nowrap transition-colors ${
isSelected
- ? 'bg-black text-white border-black hover:!bg-black hover:!text-white'
- : 'bg-transparent hover:!bg-sidebar-accent hover:!text-sidebar-accent-foreground border-none'
+ ? 'bg-gray-12 text-gray-1 border-gray-12 hover:!bg-gray-12 hover:!text-gray-1'
+ : 'bg-transparent hover:!bg-gray-4 hover:!text-gray-12 border-none'
}`}
>
{category}
diff --git a/packages/web/src/app/routes/templates/id/flow-card.tsx b/packages/web/src/app/routes/templates/id/flow-card.tsx
index b4ac308c11c..e9042fab447 100644
--- a/packages/web/src/app/routes/templates/id/flow-card.tsx
+++ b/packages/web/src/app/routes/templates/id/flow-card.tsx
@@ -32,7 +32,7 @@ export const FlowCard = ({
</span>
</div>
{flow.description && (
- <p className="text-xs text-muted-foreground line-clamp-2">
+ <p className="text-xs text-gray-11 line-clamp-2">
{flow.description}
</p>
)}
@@ -45,7 +45,6 @@ export const FlowCard = ({
maxNumberOfIconsToShow={3}
size="md"
className="flex gap-1.5"
- background="white"
excludeCore={true}
/>
</div>
diff --git a/packages/web/src/app/routes/templates/id/index.tsx b/packages/web/src/app/routes/templates/id/index.tsx
index 19076635605..b61b4dde583 100644
--- a/packages/web/src/app/routes/templates/id/index.tsx
+++ b/packages/web/src/app/routes/templates/id/index.tsx
@@ -201,7 +201,7 @@ const TemplateDetailsPage = ({ template }: TemplateDetailsPageProps) => {
<span className="text-sm font-medium">
{t('About this template')}
</span>
- <p className="text-sm text-muted-foreground leading-relaxed">
+ <p className="text-sm text-gray-11 leading-relaxed">
{template.description}
</p>
</div>
@@ -259,7 +259,7 @@ const TemplateDetailsPage = ({ template }: TemplateDetailsPageProps) => {
<div
ref={canvasContainerRef}
- className="bg-muted/30 h-full w-full relative overflow-hidden border-l"
+ className="bg-gray-2 h-full w-full relative overflow-hidden border-l"
>
{mockFlow && renderKey > 0 ? (
<div key={renderKey} className="h-full w-full">
@@ -288,9 +288,9 @@ const TemplateDetailsPage = ({ template }: TemplateDetailsPageProps) => {
</ReactFlowProvider>
</div>
) : mockFlow ? (
- <div className="text-muted-foreground text-sm flex items-center justify-center h-full" />
+ <div className="text-gray-11 text-sm flex items-center justify-center h-full" />
) : (
- <div className="text-muted-foreground text-sm flex items-center justify-center h-full">
+ <div className="text-gray-11 text-sm flex items-center justify-center h-full">
{t('No flow preview available')}
</div>
)}
diff --git a/packages/web/src/app/routes/templates/index.tsx b/packages/web/src/app/routes/templates/index.tsx
index a82d9351c05..f5b17bcf178 100644
--- a/packages/web/src/app/routes/templates/index.tsx
+++ b/packages/web/src/app/routes/templates/index.tsx
@@ -98,7 +98,7 @@ const TemplatesPage = () => {
return (
<div>
<div>
- <div className="sticky top-0 z-10 bg-background">
+ <div className="sticky top-0 z-10 bg-gray-1">
<PageHeader
className="static"
title={
diff --git a/packages/web/src/app/routes/variables/index.tsx b/packages/web/src/app/routes/variables/index.tsx
index 8a0275ee42d..4449e18bea9 100644
--- a/packages/web/src/app/routes/variables/index.tsx
+++ b/packages/web/src/app/routes/variables/index.tsx
@@ -139,7 +139,7 @@ function VariablesPage() {
),
cell: ({ row }) => (
<div className="flex items-center gap-2 min-w-0">
- <div className="shrink-0 flex items-center justify-center w-8 h-8 rounded-md bg-primary/10 text-primary">
+ <div className="shrink-0 flex items-center justify-center w-8 h-8 rounded-md bg-accent-3 text-accent-11">
<Variable className="w-4 h-4" />
</div>
<span className="font-mono text-sm truncate">
@@ -197,7 +197,7 @@ function VariablesPage() {
<DropdownMenuSeparator />
<DropdownMenuItem
disabled={!canWrite}
- className="text-destructive focus:text-destructive"
+ className="text-danger-11 focus:text-danger-11"
onSelect={(e) => {
e.preventDefault();
setDeleting(row.original);
@@ -241,7 +241,7 @@ function VariablesPage() {
<Button
variant="ghost"
size="sm"
- className="text-destructive hover:text-destructive"
+ className="text-danger-11 hover:text-danger-11"
disabled={!canWrite}
onClick={() => setShowBulkDeleteDialog(true)}
>
diff --git a/packages/web/src/assets/img/custom/mcp.tsx b/packages/web/src/assets/img/custom/mcp.tsx
index 1de211f2fe5..4d30e6076b6 100644
--- a/packages/web/src/assets/img/custom/mcp.tsx
+++ b/packages/web/src/assets/img/custom/mcp.tsx
@@ -5,7 +5,7 @@ export const McpSvg = ({ className }: { className?: string }) => (
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 64 64"
fill="none"
- className={cn('w-6 h-6 transition-all duration-150 ease-in-out', className)}
+ className={cn('w-6 h-6 transition-all duration-150', className)}
>
<path
stroke="currentColor"
diff --git a/packages/web/src/components/custom/active-users-widget.tsx b/packages/web/src/components/custom/active-users-widget.tsx
index 571d727b5f8..9cc435c9673 100644
--- a/packages/web/src/components/custom/active-users-widget.tsx
+++ b/packages/web/src/components/custom/active-users-widget.tsx
@@ -9,14 +9,14 @@ import { ApAvatar } from './ap-avatar';
const MAX_VISIBLE_AVATARS = 5;
const AVATAR_SIZE = 28;
const BORDER_COLORS = [
- 'hsl(var(--destructive-500))',
- 'hsl(var(--chart-1))',
- 'hsl(var(--warning-500))',
- 'hsl(var(--success-500))',
- 'hsl(var(--chart-2))',
- 'hsl(var(--primary))',
- 'hsl(var(--chart-5))',
- 'hsl(var(--chart-4))',
+ 'var(--swatch-1-mark)',
+ 'var(--swatch-3-mark)',
+ 'var(--swatch-4-mark)',
+ 'var(--swatch-6-mark)',
+ 'var(--swatch-8-mark)',
+ 'var(--swatch-9-mark)',
+ 'var(--swatch-11-mark)',
+ 'var(--swatch-12-mark)',
];
function getBorderColor(userId: string): string {
@@ -52,7 +52,7 @@ export function ActiveUsersWidget({ resourceId }: ActiveUsersWidgetProps) {
<Tooltip>
<TooltipTrigger asChild>
<div
- className="flex items-center justify-center rounded-full bg-muted text-xs font-medium text-muted-foreground border"
+ className="flex items-center justify-center rounded-full bg-gray-3 text-xs font-medium text-gray-11 border"
style={{ width: `${AVATAR_SIZE}px`, height: `${AVATAR_SIZE}px` }}
>
+{overflowCount}
diff --git a/packages/web/src/components/custom/activepieces-wordmark.tsx b/packages/web/src/components/custom/activepieces-wordmark.tsx
new file mode 100644
index 00000000000..ddc108420b5
--- /dev/null
+++ b/packages/web/src/components/custom/activepieces-wordmark.tsx
@@ -0,0 +1,69 @@
+import { t } from 'i18next';
+
+import { cn } from '@/lib/utils';
+
+const ActivepiecesWordmark = ({ className }: { className?: string }) => (
+ <svg
+ className={cn('h-full w-auto text-gray-11', className)}
+ viewBox="0 -7.557 162 40.114"
+ fill="none"
+ role="img"
+ aria-label={t('logo')}
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M6.46013 8.81759C5.30809 7.10962 5.75876 4.79113 7.46672 3.63909C9.17469 2.48706 11.4932 2.93772 12.6452 4.64569L20.4261 16.1813C21.5781 17.8893 21.1274 20.2077 19.4195 21.3598C17.7115 22.5118 15.393 22.0611 14.241 20.3532L10.8676 15.3519C10.4339 14.8054 9.55114 14.8905 9.02108 15.4205C8.58152 15.8601 8.43761 16.9846 8.31301 17.9582C8.29474 18.1009 8.27689 18.2405 8.25858 18.3741C8.19097 19.0114 7.97092 19.6418 7.58762 20.2101C6.33511 22.067 3.81375 22.5565 1.95682 21.304C0.0998936 20.0515 -0.390738 17.5304 0.861776 15.6734C1.51136 14.7104 2.50224 14.1151 3.56472 13.9399L3.56322 13.9384C6.63307 13.4932 7.20222 10.0286 6.64041 9.08487L6.46013 8.81759Z"
+ fill="#8142E3"
+ />
+ <path
+ d="M29.6474 7.3669C30.4275 6.94137 31.2165 6.61335 32.0144 6.38286C32.8123 6.13463 33.6899 6.01052 34.6474 6.01052C35.3921 6.01052 36.0658 6.09917 36.6687 6.27647C37.2715 6.43605 37.7945 6.70201 38.2378 7.07435C38.6811 7.44669 39.0179 7.93428 39.2484 8.53711C39.4967 9.12222 39.6208 9.8403 39.6208 10.6914V18.8829H37.1474L36.8282 17.5531H36.7484C35.8442 18.6169 34.5587 19.1488 32.8921 19.1488C31.5623 19.1488 30.525 18.8031 29.7804 18.1116C29.0357 17.4024 28.6633 16.4892 28.6633 15.3722C28.6633 14.663 28.814 14.0513 29.1155 13.5371C29.4169 13.0229 29.8247 12.5974 30.3389 12.2605C30.8708 11.9236 31.5002 11.6754 32.2272 11.5158C32.9541 11.3385 33.7431 11.2499 34.5942 11.2499H36.4559V10.3722C36.4559 9.68073 36.252 9.19314 35.8442 8.90945C35.4364 8.60803 34.8867 8.45732 34.1952 8.45732C33.6988 8.45732 33.1669 8.53711 32.5995 8.69669C32.0499 8.85626 31.4382 9.13108 30.7644 9.52115L29.6474 7.3669ZM36.4825 13.2446L35.0463 13.2977C33.8761 13.3332 33.0605 13.5371 32.5995 13.9095C32.1385 14.2641 31.908 14.6985 31.908 15.2126C31.908 15.8687 32.103 16.3119 32.4931 16.5424C32.8832 16.7729 33.3353 16.8882 33.8495 16.8882C34.3637 16.8882 34.8513 16.7641 35.3123 16.5158C35.791 16.2499 36.1811 15.8864 36.4825 15.4254V13.2446Z"
+ fill="currentColor"
+ />
+ <path
+ d="M48.6367 16.8084C49.2041 16.8084 49.7006 16.7463 50.1261 16.6222C50.5694 16.4804 50.9417 16.3297 51.2431 16.1701L51.8548 18.3775C51.4648 18.5726 50.9506 18.7499 50.3123 18.9095C49.674 19.069 48.9736 19.1488 48.2112 19.1488C47.2715 19.1488 46.3938 19.0158 45.5782 18.7499C44.7626 18.4662 44.0534 18.0495 43.4506 17.4999C42.8477 16.9502 42.369 16.2676 42.0144 15.452C41.6775 14.6364 41.5091 13.6878 41.5091 12.6063C41.5091 11.6134 41.6686 10.7091 41.9878 9.89349C42.3247 9.07789 42.7857 8.3864 43.3708 7.81903C43.9736 7.23392 44.6828 6.79066 45.4984 6.48924C46.3318 6.17009 47.2449 6.01052 48.2378 6.01052C48.7874 6.01052 49.3548 6.06371 49.9399 6.17009C50.525 6.27647 51.1545 6.48924 51.8282 6.80839L51.1633 9.04243C50.7555 8.81193 50.3389 8.63463 49.9133 8.51052C49.4878 8.3864 49.0445 8.32435 48.5835 8.32435C47.4133 8.32435 46.4736 8.68782 45.7644 9.41477C45.0552 10.124 44.7006 11.1612 44.7006 12.5265C44.7006 13.3243 44.8158 13.9981 45.0463 14.5478C45.2768 15.0974 45.5782 15.5407 45.9506 15.8775C46.3229 16.2144 46.7396 16.4538 47.2006 16.5956C47.6793 16.7375 48.158 16.8084 48.6367 16.8084Z"
+ fill="currentColor"
+ />
+ <path
+ d="M61.1623 8.53711H57.6782V14.8669C57.6782 15.4697 57.8201 15.8864 58.1038 16.1169C58.4052 16.3297 58.7864 16.436 59.2474 16.436C59.602 16.436 59.9743 16.4006 60.3644 16.3297C60.7545 16.2587 61.0825 16.1612 61.3485 16.0371L61.8272 18.2712C61.4903 18.413 61.0293 18.5548 60.4442 18.6967C59.8768 18.8208 59.2651 18.8829 58.6091 18.8829C57.1729 18.8829 56.1357 18.5903 55.4974 18.0052C54.8768 17.4201 54.5665 16.5424 54.5665 15.3722V8.53711H52.6517V6.24988H54.5665V2.31371H57.6782V6.24988H61.1623V8.53711Z"
+ fill="currentColor"
+ />
+ <path
+ d="M63.6883 18.8829V6.24988H66.8266V18.8829H63.6883ZM65.2574 3.35094C64.7078 3.35094 64.2734 3.19137 63.9542 2.87222C63.6528 2.55307 63.5021 2.15413 63.5021 1.67541C63.5021 1.21442 63.6617 0.824346 63.9808 0.505197C64.3 0.168318 64.7255 -0.00012207 65.2574 -0.00012207C65.7716 -0.00012207 66.1883 0.159452 66.5074 0.478601C66.8266 0.79775 66.9861 1.19669 66.9861 1.67541C66.9861 2.15413 66.8266 2.55307 66.5074 2.87222C66.1883 3.19137 65.7716 3.35094 65.2574 3.35094Z"
+ fill="currentColor"
+ />
+ <path
+ d="M77.7208 6.24988H81.0719L76.4974 18.8829H73.0134L68.5453 6.24988H71.8964L74.0772 13.3509L74.7687 16.5424H74.8751L75.54 13.3509L77.7208 6.24988Z"
+ fill="currentColor"
+ />
+ <path
+ d="M93.2906 13.2712H84.7002V13.3775C84.7002 14.53 85.0548 15.3899 85.764 15.9573C86.4909 16.5247 87.4395 16.8084 88.6097 16.8084C89.3012 16.8084 89.9129 16.7463 90.4448 16.6222C90.9945 16.4981 91.5175 16.3297 92.014 16.1169L92.6257 18.3243C92.1115 18.5548 91.4998 18.7499 90.7906 18.9095C90.0814 19.069 89.2569 19.1488 88.3172 19.1488C87.3775 19.1488 86.4909 19.0247 85.6576 18.7765C84.842 18.5282 84.1239 18.1382 83.5033 17.6063C82.8828 17.0743 82.3863 16.4006 82.014 15.585C81.6594 14.7694 81.4821 13.7942 81.4821 12.6595C81.4821 11.6665 81.6328 10.7623 81.9342 9.94669C82.2356 9.13108 82.6611 8.43073 83.2108 7.84562C83.7604 7.26052 84.4253 6.80839 85.2055 6.48924C85.9856 6.17009 86.8455 6.01052 87.7853 6.01052C89.4697 6.01052 90.8083 6.5247 91.8012 7.55307C92.7941 8.58144 93.2906 10.0087 93.2906 11.835V13.2712ZM90.0725 11.0903C90.0725 10.718 90.0282 10.3634 89.9395 10.0265C89.8509 9.67186 89.709 9.36158 89.514 9.09562C89.3189 8.82967 89.0619 8.62576 88.7427 8.48392C88.4413 8.32435 88.0778 8.24456 87.6523 8.24456C86.8544 8.24456 86.1984 8.51052 85.6842 9.04243C85.17 9.57435 84.8597 10.2747 84.7533 11.1435L90.0725 11.0903Z"
+ fill="currentColor"
+ />
+ <path
+ d="M101.074 19.1488C100.56 19.1488 100.064 19.0868 99.5851 18.9626C99.1241 18.8385 98.734 18.6701 98.4148 18.4573V24.9999H95.3031V6.17009H97.7233L98.0957 7.65945C98.5921 7.18073 99.1595 6.79066 99.7978 6.48924C100.436 6.17009 101.163 6.01052 101.979 6.01052C103.645 6.01052 104.957 6.56903 105.915 7.68605C106.89 8.78534 107.378 10.3279 107.378 12.3137C107.378 13.4485 107.2 14.4414 106.846 15.2924C106.509 16.1435 106.048 16.8616 105.463 17.4467C104.895 18.0141 104.23 18.4396 103.468 18.7233C102.706 19.007 101.908 19.1488 101.074 19.1488ZM101.181 8.43073C100.542 8.43073 99.984 8.5903 99.5053 8.90945C99.0265 9.21087 98.6631 9.51229 98.4148 9.81371V16.0903C98.7163 16.3385 99.062 16.5247 99.4521 16.6488C99.8421 16.7552 100.25 16.8084 100.675 16.8084C101.101 16.8084 101.518 16.7286 101.925 16.569C102.333 16.4095 102.697 16.1612 103.016 15.8243C103.353 15.4697 103.619 15.0176 103.814 14.468C104.027 13.9006 104.133 13.2091 104.133 12.3935C104.133 11.2233 103.885 10.2747 103.388 9.54775C102.91 8.80307 102.174 8.43073 101.181 8.43073Z"
+ fill="currentColor"
+ />
+ <path
+ d="M109.739 18.8829V6.24988H112.878V18.8829H109.739ZM111.309 3.35094C110.759 3.35094 110.325 3.19137 110.005 2.87222C109.704 2.55307 109.553 2.15413 109.553 1.67541C109.553 1.21442 109.713 0.824346 110.032 0.505197C110.351 0.168318 110.777 -0.00012207 111.309 -0.00012207C111.823 -0.00012207 112.239 0.159452 112.559 0.478601C112.878 0.79775 113.037 1.19669 113.037 1.67541C113.037 2.15413 112.878 2.55307 112.559 2.87222C112.239 3.19137 111.823 3.35094 111.309 3.35094Z"
+ fill="currentColor"
+ />
+ <path
+ d="M127.043 13.2712H118.453V13.3775C118.453 14.53 118.807 15.3899 119.517 15.9573C120.244 16.5247 121.192 16.8084 122.362 16.8084C123.054 16.8084 123.666 16.7463 124.198 16.6222C124.747 16.4981 125.27 16.3297 125.767 16.1169L126.378 18.3243C125.864 18.5548 125.253 18.7499 124.543 18.9095C123.834 19.069 123.01 19.1488 122.07 19.1488C121.13 19.1488 120.244 19.0247 119.41 18.7765C118.595 18.5282 117.877 18.1382 117.256 17.6063C116.635 17.0743 116.139 16.4006 115.767 15.585C115.412 14.7694 115.235 13.7942 115.235 12.6595C115.235 11.6665 115.385 10.7623 115.687 9.94669C115.988 9.13108 116.414 8.43073 116.963 7.84562C117.513 7.26052 118.178 6.80839 118.958 6.48924C119.738 6.17009 120.598 6.01052 121.538 6.01052C123.222 6.01052 124.561 6.5247 125.554 7.55307C126.547 8.58144 127.043 10.0087 127.043 11.835V13.2712ZM123.825 11.0903C123.825 10.718 123.781 10.3634 123.692 10.0265C123.604 9.67186 123.462 9.36158 123.267 9.09562C123.072 8.82967 122.815 8.62576 122.495 8.48392C122.194 8.32435 121.831 8.24456 121.405 8.24456C120.607 8.24456 119.951 8.51052 119.437 9.04243C118.923 9.57435 118.612 10.2747 118.506 11.1435L123.825 11.0903Z"
+ fill="currentColor"
+ />
+ <path
+ d="M135.519 16.8084C136.086 16.8084 136.582 16.7463 137.008 16.6222C137.451 16.4804 137.824 16.3297 138.125 16.1701L138.737 18.3775C138.347 18.5726 137.832 18.7499 137.194 18.9095C136.556 19.069 135.855 19.1488 135.093 19.1488C134.153 19.1488 133.276 19.0158 132.46 18.7499C131.644 18.4662 130.935 18.0495 130.332 17.4999C129.73 16.9502 129.251 16.2676 128.896 15.452C128.559 14.6364 128.391 13.6878 128.391 12.6063C128.391 11.6134 128.55 10.7091 128.87 9.89349C129.207 9.07789 129.668 8.3864 130.253 7.81903C130.855 7.23392 131.565 6.79066 132.38 6.48924C133.214 6.17009 134.127 6.01052 135.12 6.01052C135.669 6.01052 136.237 6.06371 136.822 6.17009C137.407 6.27647 138.036 6.48924 138.71 6.80839L138.045 9.04243C137.637 8.81193 137.221 8.63463 136.795 8.51052C136.37 8.3864 135.926 8.32435 135.465 8.32435C134.295 8.32435 133.355 8.68782 132.646 9.41477C131.937 10.124 131.582 11.1612 131.582 12.5265C131.582 13.3243 131.698 13.9981 131.928 14.5478C132.159 15.0974 132.46 15.5407 132.832 15.8775C133.205 16.2144 133.621 16.4538 134.082 16.5956C134.561 16.7375 135.04 16.8084 135.519 16.8084Z"
+ fill="currentColor"
+ />
+ <path
+ d="M151.043 13.2712H142.452V13.3775C142.452 14.53 142.807 15.3899 143.516 15.9573C144.243 16.5247 145.192 16.8084 146.362 16.8084C147.053 16.8084 147.665 16.7463 148.197 16.6222C148.747 16.4981 149.27 16.3297 149.766 16.1169L150.378 18.3243C149.864 18.5548 149.252 18.7499 148.543 18.9095C147.834 19.069 147.009 19.1488 146.069 19.1488C145.13 19.1488 144.243 19.0247 143.41 18.7765C142.594 18.5282 141.876 18.1382 141.256 17.6063C140.635 17.0743 140.139 16.4006 139.766 15.585C139.412 14.7694 139.234 13.7942 139.234 12.6595C139.234 11.6665 139.385 10.7623 139.686 9.94669C139.988 9.13108 140.413 8.43073 140.963 7.84562C141.513 7.26052 142.178 6.80839 142.958 6.48924C143.738 6.17009 144.598 6.01052 145.538 6.01052C147.222 6.01052 148.561 6.5247 149.553 7.55307C150.546 8.58144 151.043 10.0087 151.043 11.835V13.2712ZM147.825 11.0903C147.825 10.718 147.78 10.3634 147.692 10.0265C147.603 9.67186 147.461 9.36158 147.266 9.09562C147.071 8.82967 146.814 8.62576 146.495 8.48392C146.194 8.32435 145.83 8.24456 145.405 8.24456C144.607 8.24456 143.951 8.51052 143.436 9.04243C142.922 9.57435 142.612 10.2747 142.506 11.1435L147.825 11.0903Z"
+ fill="currentColor"
+ />
+ <path
+ d="M160.555 9.06903C159.509 8.57257 158.49 8.32435 157.497 8.32435C156.841 8.32435 156.336 8.43959 155.981 8.67009C155.644 8.90059 155.476 9.21974 155.476 9.62754C155.476 9.96442 155.617 10.257 155.901 10.5052C156.185 10.7357 156.752 10.9751 157.603 11.2233L158.401 11.4626C159.536 11.7995 160.387 12.2605 160.954 12.8456C161.539 13.4307 161.832 14.202 161.832 15.1595C161.832 16.3829 161.371 17.358 160.449 18.085C159.527 18.7942 158.268 19.1488 156.672 19.1488C154.953 19.1488 153.525 18.8651 152.39 18.2978L153.082 15.9573C153.596 16.2056 154.137 16.4095 154.704 16.569C155.289 16.7286 155.892 16.8084 156.513 16.8084C157.984 16.8084 158.72 16.3385 158.72 15.3988C158.72 14.9733 158.543 14.6541 158.188 14.4414C157.851 14.2286 157.266 13.9981 156.433 13.7499L155.609 13.4839C154.509 13.1293 153.694 12.6683 153.162 12.1009C152.648 11.5158 152.39 10.7534 152.39 9.81371C152.39 9.26406 152.506 8.75874 152.736 8.29775C152.967 7.81903 153.286 7.41123 153.694 7.07435C154.119 6.73747 154.625 6.48037 155.21 6.30307C155.812 6.10803 156.477 6.01052 157.204 6.01052C157.931 6.01052 158.632 6.08144 159.305 6.22328C159.997 6.3474 160.635 6.54243 161.22 6.80839L160.555 9.06903Z"
+ fill="currentColor"
+ />
+ </svg>
+);
+ActivepiecesWordmark.displayName = 'ActivepiecesWordmark';
+export { ActivepiecesWordmark };
diff --git a/packages/web/src/components/custom/alert-icon.tsx b/packages/web/src/components/custom/alert-icon.tsx
index 0d602c604b6..25fccf92cbb 100644
--- a/packages/web/src/components/custom/alert-icon.tsx
+++ b/packages/web/src/components/custom/alert-icon.tsx
@@ -4,10 +4,7 @@ export const InvalidStepIcon = ({ className }: { className: string }) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
- className={cn(
- 'stroke-1 dark:stroke-amber-900 stroke-amber-500 ',
- className,
- )}
+ className={cn('stroke-1 stroke-warning-11', className)}
viewBox="0 0 16 16"
fill="none"
stroke="currentColor"
@@ -19,11 +16,11 @@ export const InvalidStepIcon = ({ className }: { className: string }) => {
cx="8.08325"
cy="8.26868"
r="7.5"
- className="dark:fill-amber-950 fill-amber-50 "
+ className="fill-warning-3 "
></circle>
<path
d="M8.08325 3.69368C7.86445 3.69368 7.65461 3.7806 7.49989 3.93531C7.34517 4.09003 7.25825 4.29987 7.25825 4.51868V8.51868C7.25825 8.73748 7.34517 8.94732 7.49989 9.10204C7.65461 9.25676 7.86445 9.34368 8.08325 9.34368C8.30206 9.34368 8.5119 9.25676 8.66662 9.10204C8.82133 8.94732 8.90825 8.73748 8.90825 8.51868V4.51868C8.90825 4.29987 8.82133 4.09003 8.66662 3.93531C8.5119 3.7806 8.30206 3.69368 8.08325 3.69368ZM8.90825 12.0187C8.90825 11.563 8.53889 11.1937 8.08325 11.1937C7.62762 11.1937 7.25825 11.563 7.25825 12.0187C7.25825 12.4743 7.62762 12.8437 8.08325 12.8437C8.53889 12.8437 8.90825 12.4743 8.90825 12.0187Z"
- className="dark:fill-amber-600 fill-amber-700"
+ className="fill-warning-11"
strokeWidth="0.4"
></path>
</svg>
diff --git a/packages/web/src/components/custom/ap-avatar.tsx b/packages/web/src/components/custom/ap-avatar.tsx
index 4e48437e1ec..d5f48b1f0e0 100644
--- a/packages/web/src/components/custom/ap-avatar.tsx
+++ b/packages/web/src/components/custom/ap-avatar.tsx
@@ -30,7 +30,7 @@ export const ApAvatar = ({
const { data: user } = userHooks.useUserById(id);
if (!user || isNil(id)) {
- return <span className="text-muted-foreground">—</span>;
+ return <span className="text-gray-11">—</span>;
}
const content = (
@@ -68,7 +68,7 @@ export const ApAvatar = ({
<div className="cursor-pointer">{content}</div>
</HoverCardTrigger>
<HoverCardContent
- className="w-80 rounded-md border bg-background p-4 shadow-md"
+ className="w-80 rounded-md border bg-panel p-4 shadow-md"
align="start"
>
<div className="flex items-center gap-3">
@@ -86,8 +86,8 @@ export const ApAvatar = ({
</h4>
</div>
<div className="flex items-center gap-2 mt-1.5">
- <Mail className="h-3.5 w-3.5 text-muted-foreground shrink-0" />
- <span className="text-xs text-muted-foreground truncate">
+ <Mail className="h-3.5 w-3.5 text-gray-11 shrink-0" />
+ <span className="text-xs text-gray-11 truncate">
{user.email}
</span>
</div>
diff --git a/packages/web/src/components/custom/ap-error-dialog/ap-error-dialog.tsx b/packages/web/src/components/custom/ap-error-dialog/ap-error-dialog.tsx
index 0d5b656fc44..0bd125f5765 100644
--- a/packages/web/src/components/custom/ap-error-dialog/ap-error-dialog.tsx
+++ b/packages/web/src/components/custom/ap-error-dialog/ap-error-dialog.tsx
@@ -27,17 +27,17 @@ const ApErrorDialog = () => {
<DialogHeader>
<div className="flex flex-col items-center">
<span
- className="rounded-full bg-destructive-100 flex items-center justify-center mb-2 mt-1"
+ className="rounded-full bg-danger-3 flex items-center justify-center mb-2 mt-1"
style={{ width: 48, height: 48 }}
>
- <AlertCircleIcon className="h-8 w-8 text-destructive" />
+ <AlertCircleIcon className="h-8 w-8 text-danger-11" />
</span>
<div className="flex flex-col items-center text-center w-full gap-2">
<DialogTitle className="text-lg font-semibold">
{params?.title}
</DialogTitle>
{params?.description && (
- <DialogDescription className="mt-0.5 text-sm text-muted-foreground">
+ <DialogDescription className="mt-0.5 text-sm text-gray-11">
{params.description}
</DialogDescription>
)}
diff --git a/packages/web/src/components/custom/array-input.tsx b/packages/web/src/components/custom/array-input.tsx
index fe35ab0157c..c65f6510fdb 100644
--- a/packages/web/src/components/custom/array-input.tsx
+++ b/packages/web/src/components/custom/array-input.tsx
@@ -147,7 +147,7 @@ const ArrayInput = React.memo(
}}
>
<TrashIcon
- className="size-4 text-destructive"
+ className="size-4 text-danger-11"
aria-hidden="true"
/>
<span className="sr-only">{t('Remove')}</span>
diff --git a/packages/web/src/components/custom/autocomplete.tsx b/packages/web/src/components/custom/autocomplete.tsx
index 64ecff29b3c..4f14786b2a8 100644
--- a/packages/web/src/components/custom/autocomplete.tsx
+++ b/packages/web/src/components/custom/autocomplete.tsx
@@ -66,7 +66,7 @@ export function AutoComplete<T extends string>({
className="w-(--radix-popover-trigger-width) p-0"
>
<Command className={className} ref={listRef}>
- <CommandList className="bg-background">
+ <CommandList className="bg-panel">
<ScrollArea
className={cn('', {
'h-50': items.length >= 5,
diff --git a/packages/web/src/components/custom/back-link.tsx b/packages/web/src/components/custom/back-link.tsx
index 5578cf5c2c0..e4cf1ac3f65 100644
--- a/packages/web/src/components/custom/back-link.tsx
+++ b/packages/web/src/components/custom/back-link.tsx
@@ -16,7 +16,7 @@ export function BackLink({
type="button"
onClick={onClick}
className={cn(
- 'flex w-fit items-center gap-1.5 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground',
+ 'flex w-fit items-center gap-1.5 text-sm font-medium text-gray-11 transition-colors hover:text-gray-12',
className,
)}
>
diff --git a/packages/web/src/components/custom/card-list.tsx b/packages/web/src/components/custom/card-list.tsx
index d2efa8d8319..2f1c5ccf84e 100644
--- a/packages/web/src/components/custom/card-list.tsx
+++ b/packages/web/src/components/custom/card-list.tsx
@@ -31,11 +31,11 @@ export { CardList };
const cardItemListVariants = cva('flex items-center gap-3 w-full py-3 px-2 ', {
variants: {
interactive: {
- true: 'cursor-pointer transition-all hover:bg-accent hover:text-accent-foreground',
- false: 'cursor-default text-accent-foreground/50 font-semibold',
+ true: 'cursor-pointer transition-all hover:bg-gray-4 hover:text-gray-12',
+ false: 'cursor-default text-gray-12/50 font-semibold',
},
selected: {
- true: 'bg-accent text-accent-foreground',
+ true: 'bg-gray-5 text-gray-12',
false: '',
},
},
@@ -102,7 +102,7 @@ type CardListEmptyProps = React.HTMLAttributes<HTMLDivElement> & {
};
const CardListEmpty = React.memo(({ message }: CardListEmptyProps) => {
return (
- <div className="flex h-full w-full items-center justify-center gap-3 flex-col text-muted-foreground">
+ <div className="flex h-full w-full items-center justify-center gap-3 flex-col text-gray-11">
<PackageOpen className="w-10 h-10" />
<div className="text-center tracking-tight">{message}</div>
</div>
diff --git a/packages/web/src/components/custom/clipboard/copy-text-tooltip.tsx b/packages/web/src/components/custom/clipboard/copy-text-tooltip.tsx
index bebaf1158b2..d29bf87a532 100644
--- a/packages/web/src/components/custom/clipboard/copy-text-tooltip.tsx
+++ b/packages/web/src/components/custom/clipboard/copy-text-tooltip.tsx
@@ -20,7 +20,7 @@ const CopyTextTooltip = ({
<CopyButton
withoutTooltip={true}
variant="ghost"
- className="hover:text-background"
+ className="hover:bg-gray-1/20 hover:text-gray-1"
textToCopy={text || ''}
></CopyButton>
</div>
diff --git a/packages/web/src/components/custom/clipboard/copy-to-clipboard.tsx b/packages/web/src/components/custom/clipboard/copy-to-clipboard.tsx
index b000587e4a2..34fa4cc5240 100644
--- a/packages/web/src/components/custom/clipboard/copy-to-clipboard.tsx
+++ b/packages/web/src/components/custom/clipboard/copy-to-clipboard.tsx
@@ -12,7 +12,7 @@ type CopyToClipboardInputProps = {
fileName?: string;
};
-const noBorderInputClass = `border-none w-full rfocus-visible:ring-0 focus-visible:ring-transparent focus-visible:ring-offset-0`;
+const noBorderInputClass = `border-none w-full focus-visible:ring-transparent focus-visible:ring-offset-0`;
const CopyToClipboardInput = ({
textToCopy,
@@ -20,7 +20,7 @@ const CopyToClipboardInput = ({
useInput,
}: CopyToClipboardInputProps) => {
return (
- <div className="flex gap-2 items-center bg-background border border-solid text-sm rounded block w-full select-none pr-3">
+ <div className="flex gap-2 items-center bg-gray-1 border border-solid text-sm rounded block w-full select-none pr-3">
{useInput ? (
<Input value={textToCopy} className={noBorderInputClass} readOnly />
) : (
diff --git a/packages/web/src/components/custom/collapsible-json.tsx b/packages/web/src/components/custom/collapsible-json.tsx
index 3f9d7ee7c8a..7126814a528 100644
--- a/packages/web/src/components/custom/collapsible-json.tsx
+++ b/packages/web/src/components/custom/collapsible-json.tsx
@@ -20,7 +20,7 @@ export function CollapsibleJson({
<div className={`flex flex-col gap-2 ${className}`}>
<button
onClick={toggleVisibility}
- className="flex items-center gap-2 text-sm font-medium text-muted-foreground hover:text-foreground transition-colors"
+ className="flex items-center gap-2 text-sm font-medium text-gray-11 hover:text-gray-12 transition-colors"
>
{isOpen ? (
<ChevronDown className="h-4 w-4" />
@@ -33,16 +33,14 @@ export function CollapsibleJson({
{isOpen && (
<div className="flex flex-col gap-2 min-w-0">
<div className="relative min-w-0">
- <pre className="bg-muted/50 whitespace-pre-wrap break-all rounded-md px-4 py-4 text-xs overflow-x-auto max-w-full">
+ <pre className="bg-gray-3/50 whitespace-pre-wrap break-all rounded-md px-4 py-4 text-xs overflow-x-auto max-w-full">
<code>{jsonString}</code>
</pre>
<div className="absolute top-2 right-2">
<CopyButton textToCopy={jsonString} />
</div>
</div>
- {description && (
- <p className="text-xs text-muted-foreground">{description}</p>
- )}
+ {description && <p className="text-xs text-gray-11">{description}</p>}
</div>
)}
</div>
diff --git a/packages/web/src/components/custom/color-picker.tsx b/packages/web/src/components/custom/color-picker.tsx
index 292a6c90bb9..e4415ab6107 100644
--- a/packages/web/src/components/custom/color-picker.tsx
+++ b/packages/web/src/components/custom/color-picker.tsx
@@ -18,6 +18,7 @@ interface ColorPickerProps {
value: string;
onChange: (value: string) => void;
onBlur?: () => void;
+ side?: 'top' | 'right' | 'bottom' | 'left';
}
const ColorPicker = forwardRef<
@@ -25,7 +26,7 @@ const ColorPicker = forwardRef<
Omit<ButtonProps, 'value' | 'onChange' | 'onBlur'> & ColorPickerProps
>(
(
- { disabled, value, onChange, onBlur, name, className, ...props },
+ { disabled, value, onChange, onBlur, name, className, side, ...props },
forwardedRef,
) => {
const ref = useForwardedRef(forwardedRef);
@@ -54,9 +55,18 @@ const ColorPicker = forwardRef<
<div />
</Button>
</PopoverTrigger>
- <PopoverContent className="w-full">
- <HexColorPicker color={parsedValue} onChange={onChange} />
+ <PopoverContent
+ side={side}
+ align="start"
+ className="flex w-60 flex-col gap-3 p-3"
+ >
+ <HexColorPicker
+ className="w-full! h-44!"
+ color={parsedValue}
+ onChange={onChange}
+ />
<Input
+ className="h-8 font-mono"
maxLength={7}
onChange={(e) => {
onChange(e?.currentTarget?.value);
diff --git a/packages/web/src/components/custom/data-fetch-error-state.tsx b/packages/web/src/components/custom/data-fetch-error-state.tsx
index e1efa4d3e49..dd54aaeba7e 100644
--- a/packages/web/src/components/custom/data-fetch-error-state.tsx
+++ b/packages/web/src/components/custom/data-fetch-error-state.tsx
@@ -31,13 +31,13 @@ export function DataFetchErrorState({
className,
)}
>
- <div className="flex size-10 items-center justify-center rounded-xl bg-warning/15 text-warning-700 dark:text-warning-300">
+ <div className="flex size-10 items-center justify-center rounded-xl bg-warning-3 text-warning-11">
<TriangleAlert className="size-5" />
</div>
<p className="text-lg font-semibold">
{t('Trouble loading {entity}', { entity })}
</p>
- <p className="max-w-sm text-sm text-muted-foreground">
+ <p className="max-w-sm text-sm text-gray-11">
{t('Nothing has been lost — your data is safe. Try again in a moment.')}
</p>
{onRetry && (
diff --git a/packages/web/src/components/custom/data-list.tsx b/packages/web/src/components/custom/data-list.tsx
index 9377d7fc027..47736adb90a 100644
--- a/packages/web/src/components/custom/data-list.tsx
+++ b/packages/web/src/components/custom/data-list.tsx
@@ -22,7 +22,7 @@ export const DataList: React.FC<DataListProps> = ({
if (entries.length === 0) {
return (
- <div className={`text-sm text-muted-foreground italic ${className}`}>
+ <div className={`text-sm text-gray-11 italic ${className}`}>
No data available
</div>
);
@@ -38,10 +38,8 @@ export const DataList: React.FC<DataListProps> = ({
key={key}
className="grid grid-cols-[auto_1fr] gap-x-3 items-start"
>
- <dt className="font-medium text-muted-foreground capitalize">
- {key}
- </dt>
- <dd className="text-primary">{formatValue(value)}</dd>
+ <dt className="font-medium text-gray-11 capitalize">{key}</dt>
+ <dd className="text-accent-11">{formatValue(value)}</dd>
</div>
))}
</dl>
diff --git a/packages/web/src/components/custom/data-table/data-table-bulk-actions.tsx b/packages/web/src/components/custom/data-table/data-table-bulk-actions.tsx
index f8e3c17348f..4227163663b 100644
--- a/packages/web/src/components/custom/data-table/data-table-bulk-actions.tsx
+++ b/packages/web/src/components/custom/data-table/data-table-bulk-actions.tsx
@@ -31,14 +31,14 @@ export function DataTableBulkActions<TData>({
transition={{ type: 'spring', damping: 25, stiffness: 300 }}
className="fixed bottom-6 left-1/2 -translate-x-1/2 z-50"
>
- <div className="flex items-center gap-3 bg-background border rounded-lg shadow-lg p-2">
+ <div className="flex items-center gap-3 bg-panel border rounded-lg shadow-lg p-2">
{actions.map((action, index) => (
<React.Fragment key={index}>
{action.render(selectedRows, resetSelection)}
</React.Fragment>
))}
<div className="border-l h-6 mx-1" />
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-gray-11">
{t('{count} selected', { count: selectedRows.length })}
</span>
<Button
diff --git a/packages/web/src/components/custom/data-table/data-table-checkbox-filter.tsx b/packages/web/src/components/custom/data-table/data-table-checkbox-filter.tsx
index ac440439656..ecdec3b6dcc 100644
--- a/packages/web/src/components/custom/data-table/data-table-checkbox-filter.tsx
+++ b/packages/web/src/components/custom/data-table/data-table-checkbox-filter.tsx
@@ -20,8 +20,7 @@ export function DataTableInputCheckbox({
variant="outline"
className={cn(
'flex items-center space-x-2 border-dashed rounded-md px-3 py-2 h-9',
- 'hover:bg-accent/5',
- checked && 'bg-accent/10 border-accent text-accent-foreground',
+ checked && 'bg-gray-3 border-gray-8 text-gray-12',
)}
onClick={() => handleCheckedChange(!checked)}
>
diff --git a/packages/web/src/components/custom/data-table/data-table-column-header.tsx b/packages/web/src/components/custom/data-table/data-table-column-header.tsx
index a50ed76fa88..678058f6c61 100644
--- a/packages/web/src/components/custom/data-table/data-table-column-header.tsx
+++ b/packages/web/src/components/custom/data-table/data-table-column-header.tsx
@@ -40,11 +40,9 @@ export function DataTableColumnHeader<TData, TValue>({
column.clearSorting();
}
}}
- className={`h-auto text-foreground p-0 hover:bg-transparent -ml-3 ${className}`}
+ className={`h-auto text-gray-12 p-0 hover:bg-transparent -ml-3 ${className}`}
>
- {Icon && (
- <Icon className="h-4 w-4 text-foreground flex-shrink-0 mr-2" />
- )}
+ {Icon && <Icon className="h-4 w-4 text-gray-12 flex-shrink-0 mr-2" />}
{title}
<SortIcon className="ml-2 h-4 w-4" />
</Button>
@@ -55,8 +53,8 @@ export function DataTableColumnHeader<TData, TValue>({
<div
className={`flex items-center justify-start space-x-2 whitespace-nowrap ${className}`}
>
- {Icon && <Icon className="h-4 w-4 text-muted-foreground flex-shrink-0" />}
- <div className="text-xs font-normal text-foreground">{title}</div>
+ {Icon && <Icon className="h-4 w-4 text-gray-11 flex-shrink-0" />}
+ <div className="text-xs font-normal text-gray-12">{title}</div>
</div>
);
}
diff --git a/packages/web/src/components/custom/data-table/data-table-select-popover.tsx b/packages/web/src/components/custom/data-table/data-table-select-popover.tsx
index ce50d82656e..347908150e1 100644
--- a/packages/web/src/components/custom/data-table/data-table-select-popover.tsx
+++ b/packages/web/src/components/custom/data-table/data-table-select-popover.tsx
@@ -1,5 +1,6 @@
import { CheckIcon, ListFilterIcon } from 'lucide-react';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { Badge } from '@/components/ui/badge';
import { Button } from '@/components/ui/button';
import {
@@ -108,23 +109,24 @@ const DataTableSelectPopover = ({
>
<div
className={cn(
- 'mr-2 flex h-4 w-4 items-center justify-center rounded border border-secondary',
+ 'mr-2 flex h-4 w-4 items-center justify-center rounded border border-gray-12',
isSelected
- ? 'bg-secondary text-secondary-foreground'
+ ? 'bg-gray-12 text-gray-1'
: 'opacity-50 [&_svg]:invisible',
)}
>
<CheckIcon className={cn('h-4 w-4')} />
</div>
{typeof option.icon === 'string' ? (
- <img
+ <LogoPlate
src={option.icon}
alt={option.label}
- className="mr-2 size-4 object-contain"
+ size="xxs"
+ className="mr-2"
/>
) : (
option.icon && (
- <option.icon className="mr-2 size-4 text-muted-foreground" />
+ <option.icon className="mr-2 size-4 text-gray-11" />
)
)}
<div>
diff --git a/packages/web/src/components/custom/data-table/index.tsx b/packages/web/src/components/custom/data-table/index.tsx
index 919457fb1d0..c4da63ffff6 100644
--- a/packages/web/src/components/custom/data-table/index.tsx
+++ b/packages/web/src/components/custom/data-table/index.tsx
@@ -421,7 +421,7 @@ export function DataTable<
</TableHeader>
<TableBody>
{isLoading ? (
- <TableRow className="hover:bg-background">
+ <TableRow className="hover:bg-gray-1">
<TableCell
colSpan={visibleColumnCount}
className="h-24 text-center"
@@ -452,8 +452,7 @@ export function DataTable<
className={cn(
'cursor-pointer',
{
- 'hover:bg-background cursor-default':
- isNil(onRowClick),
+ 'hover:bg-gray-1 cursor-default': isNil(onRowClick),
},
getRowClassName?.(row.original, rowIndex),
)}
@@ -545,7 +544,7 @@ export function DataTable<
className={cn(
'cursor-pointer',
{
- 'hover:bg-background cursor-default': isNil(onRowClick),
+ 'hover:bg-gray-1 cursor-default': isNil(onRowClick),
},
getRowClassName?.(row.original, rowIndex),
)}
@@ -632,7 +631,7 @@ export function DataTable<
</TableCell>
</TableRow>
) : (
- <TableRow className="hover:bg-background">
+ <TableRow className="hover:bg-gray-1">
<TableCell
colSpan={visibleColumnCount}
className="h-[350px] text-center"
@@ -643,7 +642,7 @@ export function DataTable<
{emptyStateTextTitle}
</p>
{emptyStateTextDescription && (
- <p className="text-sm text-muted-foreground ">
+ <p className="text-sm text-gray-11 ">
{emptyStateTextDescription}
</p>
)}
@@ -657,7 +656,7 @@ export function DataTable<
{!hidePagination && !virtualizeRows && (
<div className="flex items-center justify-end gap-4 px-2 py-4 text-sm">
<div className="flex items-center gap-2">
- <span className="text-muted-foreground">{t('Rows per page')}</span>
+ <span className="text-gray-11">{t('Rows per page')}</span>
<Select
value={`${table.getState().pagination.pageSize}`}
onValueChange={(value) => {
diff --git a/packages/web/src/components/custom/date-time-picker-range.tsx b/packages/web/src/components/custom/date-time-picker-range.tsx
index ea026709e8f..fc52dcd8e5e 100644
--- a/packages/web/src/components/custom/date-time-picker-range.tsx
+++ b/packages/web/src/components/custom/date-time-picker-range.tsx
@@ -294,7 +294,7 @@ export function DateTimePickerWithRange({
<Separator className="mb-4" />
<div className="flex gap-1.5 px-2 items-center text-sm mb-3">
- <Clock className="w-4 h-4 text-muted-foreground" />
+ <Clock className="w-4 h-4 text-gray-11" />
{t('Select Time Range')}
</div>
@@ -336,7 +336,7 @@ export function DateTimePickerWithRange({
<Button
variant="ghost"
size="sm"
- className="text-primary hover:text-primary! w-full"
+ className="text-accent-11 hover:text-accent-11! w-full"
onClick={() => {
setDate(undefined);
setTimeDate({ from: undefined, to: undefined });
diff --git a/packages/web/src/components/custom/dictionary-input.tsx b/packages/web/src/components/custom/dictionary-input.tsx
index d37569d4861..e021de9ac3e 100644
--- a/packages/web/src/components/custom/dictionary-input.tsx
+++ b/packages/web/src/components/custom/dictionary-input.tsx
@@ -124,7 +124,7 @@ export const DictionaryInput = ({
disabled={disabled}
onClick={() => remove(index)}
>
- <TrashIcon className="size-4 text-destructive" aria-hidden="true" />
+ <TrashIcon className="size-4 text-danger-11" aria-hidden="true" />
<span className="sr-only">{t('Remove')}</span>
</Button>
</div>
diff --git a/packages/web/src/components/custom/dot.tsx b/packages/web/src/components/custom/dot.tsx
index a09a88901eb..14506fd58a5 100644
--- a/packages/web/src/components/custom/dot.tsx
+++ b/packages/web/src/components/custom/dot.tsx
@@ -6,8 +6,8 @@ import { cn } from '@/lib/utils';
const dotVariants = cva('size-2 rounded-full', {
variants: {
variant: {
- destructive: 'bg-destructive',
- primary: 'bg-primary',
+ destructive: 'bg-danger-11',
+ primary: 'bg-accent-11',
},
},
defaultVariants: {},
diff --git a/packages/web/src/components/custom/full-logo.tsx b/packages/web/src/components/custom/full-logo.tsx
index 7567a811a30..2113a52e8c3 100644
--- a/packages/web/src/components/custom/full-logo.tsx
+++ b/packages/web/src/components/custom/full-logo.tsx
@@ -1,18 +1,22 @@
+import { DEFAULT_BRAND_LOGOS } from '@activepieces/shared';
import { t } from 'i18next';
import { flagsHooks } from '@/hooks/flags-hooks';
import { cn } from '@/lib/utils';
+import { ActivepiecesWordmark } from './activepieces-wordmark';
+
const FullLogo = ({ className }: { className?: string }) => {
const branding = flagsHooks.useWebsiteBranding();
+ const logoUrl = branding?.logos?.fullLogoUrl;
+ const isDefaultLogo = logoUrl === DEFAULT_BRAND_LOGOS.fullLogoUrl;
return (
<div className={cn('h-[60px]', className)}>
- <img
- className="h-full"
- src={branding.logos.fullLogoUrl}
- alt={t('logo')}
- />
+ {isDefaultLogo && <ActivepiecesWordmark />}
+ {!isDefaultLogo && logoUrl && (
+ <img className="h-full" src={logoUrl} alt={t('logo')} />
+ )}
</div>
);
};
diff --git a/packages/web/src/components/custom/global-connection-utils.tsx b/packages/web/src/components/custom/global-connection-utils.tsx
index 3a0d6dee12b..54403f06488 100644
--- a/packages/web/src/components/custom/global-connection-utils.tsx
+++ b/packages/web/src/components/custom/global-connection-utils.tsx
@@ -4,7 +4,7 @@ import { TriangleAlert } from 'lucide-react';
import { Alert, AlertDescription } from '../ui/alert';
export const DefaultTag = () => {
return (
- <div className="text-xss flex items-center justify-center rounded-lg border border-border px-2.5 py-0.5">
+ <div className="text-xss flex items-center justify-center rounded-lg border border-gray-6 px-2.5 py-0.5">
{t('Default')}
</div>
);
diff --git a/packages/web/src/components/custom/image-with-color-background.tsx b/packages/web/src/components/custom/image-with-color-background.tsx
deleted file mode 100644
index ac145b13427..00000000000
--- a/packages/web/src/components/custom/image-with-color-background.tsx
+++ /dev/null
@@ -1,107 +0,0 @@
-import React, { useState, useCallback } from 'react';
-
-import { Skeleton } from '@/components/ui/skeleton';
-import { colorsUtils } from '@/lib/color-utils';
-import { cn } from '@/lib/utils';
-
-interface ImageWithColorBackgroundProps
- extends React.ImgHTMLAttributes<HTMLImageElement> {
- fallback?: React.ReactNode;
- border?: boolean;
- roundedCorner?: boolean;
-}
-const ImageWithColorBackground = ({
- src,
- alt,
- fallback,
- roundedCorner,
- ...props
-}: ImageWithColorBackgroundProps) => {
- const [hasError, setHasError] = useState(false);
- const [isLoading, setIsLoading] = useState(true);
- const [backgroundColor, setBackgroundColor] = useState<string | null>(null);
- // Drop crossOrigin on error so logos on CORS-less hosts still render (without the tint).
- const [useCrossOrigin, setUseCrossOrigin] = useState(true);
-
- const handleLoad = useCallback(
- (e: React.SyntheticEvent<HTMLImageElement>) => {
- setIsLoading(false);
- const img = e.currentTarget;
- colorsUtils.fac
- .getColorAsync(img, { algorithm: 'simple' })
- .then((color) => {
- const [r, g, b] = color.value;
- if (colorsUtils.isGrayColor(r, g, b)) {
- setBackgroundColor(null);
- } else {
- setBackgroundColor(
- `color-mix(in srgb, rgb(${r},${g},${b}) 10%, #fff 92%)`,
- );
- }
- })
- .catch(() => {
- setBackgroundColor(null);
- });
- },
- [],
- );
-
- const handleError = useCallback(() => {
- if (useCrossOrigin) {
- setUseCrossOrigin(false);
- return;
- }
- setHasError(true);
- setIsLoading(false);
- }, [useCrossOrigin]);
-
- const { className, border, ...rest } = props;
-
- return (
- <span
- className={cn('relative inline-block h-full w-full', className, {
- 'bg-background': backgroundColor === null,
- 'border border-border/50 dark:bg-foreground/10':
- backgroundColor === null && border,
- 'rounded-lg': roundedCorner,
- })}
- style={
- backgroundColor
- ? {
- backgroundColor: backgroundColor,
- }
- : {}
- }
- >
- {isLoading && !hasError && (
- <span className="absolute inset-0 flex items-center justify-center">
- {fallback ?? <Skeleton className="w-full h-full" />}
- </span>
- )}
- {!hasError && src ? (
- <img
- src={src}
- alt={alt}
- crossOrigin={useCrossOrigin ? 'anonymous' : undefined}
- key={useCrossOrigin ? 'cors' : 'no-cors'}
- onLoad={handleLoad}
- onError={handleError}
- className={cn(
- `transition-opacity duration-500 w-full h-full object-contain`,
- {
- 'opacity-0': isLoading,
- 'opacity-100': !isLoading,
- },
- )}
- {...rest}
- />
- ) : (
- <span className="absolute inset-0 flex items-center justify-center">
- {fallback ?? <Skeleton className="w-full h-full" />}
- </span>
- )}
- </span>
- );
-};
-
-export { ImageWithColorBackground };
diff --git a/packages/web/src/components/custom/image-with-fallback.tsx b/packages/web/src/components/custom/image-with-fallback.tsx
index 76bf50821c9..e9020074bdf 100644
--- a/packages/web/src/components/custom/image-with-fallback.tsx
+++ b/packages/web/src/components/custom/image-with-fallback.tsx
@@ -3,61 +3,69 @@ import React, { useState } from 'react';
import { Skeleton } from '@/components/ui/skeleton';
import { cn } from '@/lib/utils';
-interface ImageWithFallbackProps
- extends React.ImgHTMLAttributes<HTMLImageElement> {
- fallback?: React.ReactNode;
-}
-
-const ImageWithFallback = ({
+export const ImageWithFallback = ({
src,
alt,
fallback,
- ...props
+ className,
+ imageClassName,
+ ...rest
}: ImageWithFallbackProps) => {
- const [hasError, setHasError] = useState(false);
- const [isLoading, setIsLoading] = useState(true);
-
- const handleLoad = () => {
- setIsLoading(false);
- };
-
- const handleError = () => {
- setHasError(true);
- setIsLoading(false);
- };
+ const [loadedSrc, setLoadedSrc] = useState<string | null>(null);
+ const [failedSrc, setFailedSrc] = useState<string | null>(null);
- const { className, ...rest } = props;
+ const hasError = failedSrc !== null && failedSrc === src;
+ const isLoading = !hasError && loadedSrc !== src;
+ const monogram = alt?.trim().charAt(0).toUpperCase();
return (
- <span className={cn('relative inline-block h-full w-full', className)}>
- {isLoading && !hasError && (
+ <span
+ className={cn(
+ 'relative inline-block h-full w-full overflow-hidden',
+ className,
+ )}
+ >
+ {isLoading && (
<span className="absolute inset-0 flex items-center justify-center">
- {fallback ?? <Skeleton className="w-full h-full" />}
+ <Skeleton className="h-full w-full" />
</span>
)}
- {!hasError ? (
+ {hasError ? (
+ <span
+ role={alt ? 'img' : undefined}
+ aria-label={alt || undefined}
+ aria-hidden={alt ? undefined : true}
+ className="absolute inset-0 flex items-center justify-center"
+ >
+ {fallback ?? (
+ <span className="text-[0.6em] font-semibold leading-none">
+ {monogram}
+ </span>
+ )}
+ </span>
+ ) : (
<img
src={src}
alt={alt}
- onLoad={handleLoad}
- onError={handleError}
+ onLoad={() => setLoadedSrc(src ?? null)}
+ onError={() => setFailedSrc(src ?? null)}
className={cn(
- `transition-opacity duration-500 w-full h-full object-contain`,
- {
- 'opacity-0': isLoading,
- 'opacity-100': !isLoading,
- },
- className,
+ 'h-full w-full object-contain transition-opacity duration-500',
+ isLoading ? 'opacity-0' : 'opacity-100',
+ imageClassName,
)}
{...rest}
/>
- ) : (
- <span className="absolute inset-0 flex items-center justify-center">
- {fallback ?? <Skeleton className="w-full h-full" />}
- </span>
)}
</span>
);
};
-export default ImageWithFallback;
+export type ImageWithFallbackProps = Omit<
+ React.ImgHTMLAttributes<HTMLImageElement>,
+ 'className'
+> & {
+ className?: string;
+ imageClassName?: string;
+ fallback?: React.ReactNode;
+};
diff --git a/packages/web/src/components/custom/input-with-icon.tsx b/packages/web/src/components/custom/input-with-icon.tsx
index cef53bcdbb2..1048a016ea7 100644
--- a/packages/web/src/components/custom/input-with-icon.tsx
+++ b/packages/web/src/components/custom/input-with-icon.tsx
@@ -3,7 +3,7 @@ import React from 'react';
import { cn } from '@/lib/utils';
const inputClass =
- 'grow flex h-9 w-full rounded-sm border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-within:outline-hidden focus-within:ring-1 focus-within:ring-ring focus-within:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 box-border';
+ 'grow flex h-9 w-full rounded-sm border border-gray-6 bg-gray-1 px-3 py-2 text-sm ring-offset-gray-1 placeholder:text-gray-11 focus-within:outline-hidden focus-within:ring-1 focus-within:ring-accent-8 focus-within:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 box-border';
const InputWithIcon = React.forwardRef<
HTMLInputElement,
@@ -16,7 +16,7 @@ const InputWithIcon = React.forwardRef<
<input
ref={ref}
className={cn(
- 'flex h-full w-full rounded-md bg-transparent text-sm outline-hidden placeholder:text-muted-foreground',
+ 'flex h-full w-full rounded-md bg-transparent text-sm outline-hidden placeholder:text-gray-11',
{ 'cursor-not-allowed opacity-50': props.disabled },
)}
{...props}
diff --git a/packages/web/src/components/custom/json-editor.tsx b/packages/web/src/components/custom/json-editor.tsx
index 400e3e793ca..406ff43a5bd 100644
--- a/packages/web/src/components/custom/json-editor.tsx
+++ b/packages/web/src/components/custom/json-editor.tsx
@@ -1,5 +1,4 @@
import { json } from '@codemirror/lang-json';
-import { githubDark, githubLight } from '@uiw/codemirror-theme-github';
import CodeMirror, {
EditorState,
EditorView,
@@ -9,6 +8,7 @@ import React, { RefObject, useRef, useState } from 'react';
import { ControllerRenderProps } from 'react-hook-form';
import { useTheme } from '@/components/providers/theme-provider';
+import { syntaxTheme } from '@/lib/syntax-theme';
import { cn } from '@/lib/utils';
const styleTheme = EditorView.baseTheme({
@@ -45,8 +45,8 @@ type JsonEditorProps = {
const JsonEditor = React.memo(
({ field, readonly, onFocus, className }: JsonEditorProps) => {
const [value, setValue] = useState(convertToString(field.value));
- const { theme } = useTheme();
- const editorTheme = theme === 'dark' ? githubDark : githubLight;
+ const { resolvedTheme } = useTheme();
+ const editorTheme = syntaxTheme.codeMirror(resolvedTheme);
const extensions = [
styleTheme,
EditorState.readOnly.of(readonly),
diff --git a/packages/web/src/components/custom/json-viewer.tsx b/packages/web/src/components/custom/json-viewer.tsx
index 872e973273b..1a6743336cd 100644
--- a/packages/web/src/components/custom/json-viewer.tsx
+++ b/packages/web/src/components/custom/json-viewer.tsx
@@ -13,6 +13,7 @@ import {
TooltipProvider,
TooltipTrigger,
} from '@/components/ui/tooltip';
+import { syntaxTheme } from '@/lib/syntax-theme';
import { cn } from '@/lib/utils';
type JsonViewerProps = {
@@ -44,12 +45,12 @@ const JsonViewer = React.memo(
hideHeader = false,
className,
}: JsonViewerProps) => {
- const { theme } = useTheme();
+ const { resolvedTheme } = useTheme();
const json = useMemo(() => {
return removeUndefined(unclearJson);
}, [unclearJson]);
- const viewerTheme = theme === 'dark' ? 'bright' : 'rjv-default';
+ const viewerTheme = syntaxTheme.jsonView(resolvedTheme);
const handleCopy = () => {
navigator.clipboard.writeText(JSON.stringify(json, null, 2));
toast.success(t('Copied to clipboard'), {
@@ -71,14 +72,14 @@ const JsonViewer = React.memo(
return (
<div
className={cn(
- 'rounded-lg border border-solid border-dividers overflow-hidden relative',
+ 'rounded-lg border border-solid border-gray-6 overflow-hidden relative',
className,
)}
>
{!hideHeader && (
- <div className="px-3 py-2 flex border-solid border-b border-dividers justify-center items-center">
+ <div className="px-3 py-2 flex border-solid border-b border-gray-6 justify-center items-center">
<div className="grow justify-center items-center">
- <span className="text-md">{title}</span>
+ <span>{title}</span>
</div>
<div className="flex items-center gap-0">
{!hideDownload && (
diff --git a/packages/web/src/components/custom/loading-screen.tsx b/packages/web/src/components/custom/loading-screen.tsx
index 3c6d6a23a44..804a9af6b3b 100644
--- a/packages/web/src/components/custom/loading-screen.tsx
+++ b/packages/web/src/components/custom/loading-screen.tsx
@@ -17,7 +17,7 @@ export const LoadingScreen = ({
>
<LoadingSpinner
className={cn({
- 'stroke-background!': brightSpinner,
+ 'stroke-gray-1!': brightSpinner,
})}
isLarge={true}
></LoadingSpinner>
diff --git a/packages/web/src/components/custom/locked-alert.tsx b/packages/web/src/components/custom/locked-alert.tsx
index 5c1c2a0f3bb..9ca105c29c5 100644
--- a/packages/web/src/components/custom/locked-alert.tsx
+++ b/packages/web/src/components/custom/locked-alert.tsx
@@ -16,10 +16,10 @@ export const LockedAlert = ({
return (
<Alert className="flex items-center gap-4 mb-4">
<div className="flex items-start gap-3">
- <Lock className="h-5 w-5 text-primary-600 mt-1" />
+ <Lock className="h-5 w-5 text-accent-11 mt-1" />
<div>
<AlertTitle className="font-semibold text-lg">{title}</AlertTitle>
- <AlertDescription className="text-sm text-muted-foreground">
+ <AlertDescription className="text-sm text-gray-11">
{description}
</AlertDescription>
</div>
diff --git a/packages/web/src/components/custom/logo-plate.tsx b/packages/web/src/components/custom/logo-plate.tsx
new file mode 100644
index 00000000000..bd7bdbc08b8
--- /dev/null
+++ b/packages/web/src/components/custom/logo-plate.tsx
@@ -0,0 +1,81 @@
+import { VariantProps, cva } from 'class-variance-authority';
+import React from 'react';
+
+import { ImageWithFallback } from '@/components/custom/image-with-fallback';
+import { Skeleton } from '@/components/ui/skeleton';
+import { cn } from '@/lib/utils';
+
+const logoPlateVariants = cva(
+ 'flex shrink-0 items-center justify-center overflow-hidden rounded-md bg-gray-1 text-gray-12',
+ {
+ variants: {
+ size: {
+ xxs: 'size-4',
+ xs: 'size-6.25',
+ sm: 'size-7.5',
+ md: 'size-9',
+ lg: 'size-10',
+ xl: 'size-12',
+ xxl: 'size-16',
+ },
+ border: {
+ true: 'border border-solid',
+ },
+ },
+ },
+);
+
+const logoPlatePadding = cva('', {
+ variants: {
+ size: {
+ xxs: 'p-px',
+ xs: 'p-1.25',
+ sm: 'p-1.25',
+ md: 'p-1.75',
+ lg: 'p-2',
+ xl: 'p-3',
+ xxl: 'p-4',
+ },
+ },
+});
+
+export const LogoPlate = React.memo(
+ ({
+ src,
+ alt,
+ title,
+ size,
+ border,
+ className,
+ innerClassName,
+ fallback,
+ }: LogoPlateProps) => (
+ <div
+ data-theme="light"
+ title={title}
+ className={cn(logoPlateVariants({ size, border }), className)}
+ >
+ {src ? (
+ <ImageWithFallback
+ src={src}
+ alt={alt}
+ className={cn(logoPlatePadding({ size }), innerClassName)}
+ fallback={fallback}
+ />
+ ) : (
+ fallback ?? <Skeleton className="h-full w-full rounded-md" />
+ )}
+ </div>
+ ),
+);
+
+LogoPlate.displayName = 'LogoPlate';
+
+export type LogoPlateProps = VariantProps<typeof logoPlateVariants> & {
+ src?: string;
+ alt?: string;
+ title?: string;
+ className?: string;
+ innerClassName?: string;
+ fallback?: React.ReactNode;
+};
diff --git a/packages/web/src/components/custom/markdown-input/index.tsx b/packages/web/src/components/custom/markdown-input/index.tsx
index 94c0a5cbccd..9dc9b3309ea 100644
--- a/packages/web/src/components/custom/markdown-input/index.tsx
+++ b/packages/web/src/components/custom/markdown-input/index.tsx
@@ -8,7 +8,7 @@ import { Strike } from '@tiptap/extension-strike';
import { TableKit } from '@tiptap/extension-table';
import Text from '@tiptap/extension-text';
import { Underline } from '@tiptap/extension-underline';
-import { Focus, UndoRedo } from '@tiptap/extensions';
+import { UndoRedo } from '@tiptap/extensions';
import { Markdown } from '@tiptap/markdown';
import { Editor, EditorContent, Extension, useEditor } from '@tiptap/react';
import React, { useImperativeHandle, useState } from 'react';
@@ -41,10 +41,6 @@ export const MarkdownInput = React.forwardRef<
OrderedList,
Text,
ListItem,
- Focus.configure({
- className: 'has-focus',
- mode: 'all',
- }),
Markdown,
Image.configure({
inline: true,
diff --git a/packages/web/src/components/custom/markdown-input/tools.tsx b/packages/web/src/components/custom/markdown-input/tools.tsx
index d3b9a57693a..aa2efe59623 100644
--- a/packages/web/src/components/custom/markdown-input/tools.tsx
+++ b/packages/web/src/components/custom/markdown-input/tools.tsx
@@ -81,10 +81,7 @@ export const MarkdownTools = ({ editor }: { editor: Editor }) => {
}, [isStrikeActive, isBoldActive, isItalicActive, isUnderlineActive]);
const containerRef = useRef<HTMLDivElement>(null);
return (
- <div
- ref={containerRef}
- className="flex items-center gap-0.5 text-foreground"
- >
+ <div ref={containerRef} className="flex items-center gap-0.5 text-gray-12">
<ImageTool editor={editor} containerRef={containerRef} />
<ToolWrapper tooltip={t('Strike')}>
<Button
diff --git a/packages/web/src/components/custom/markdown.tsx b/packages/web/src/components/custom/markdown.tsx
index 6f0df19b79d..a126eecd12a 100644
--- a/packages/web/src/components/custom/markdown.tsx
+++ b/packages/web/src/components/custom/markdown.tsx
@@ -42,9 +42,9 @@ const Container = ({
return (
<Alert
className={cn('rounded-md border', {
- 'dark:bg-amber-950 bg-amber-50 border-none dark:text-amber-600 text-amber-700':
+ 'bg-warning-3 border-none text-warning-11':
variant === MarkdownVariant.WARNING,
- 'bg-success-100 text-success-300 border-none':
+ 'bg-success-3 text-success-11 border-none':
variant === MarkdownVariant.TIP,
'p-0 bg-transparent border-none':
variant === MarkdownVariant.BORDERLESS,
@@ -56,7 +56,7 @@ const Container = ({
<Info className="w-4 h-4 mt-1" />
)}
{variant === MarkdownVariant.WARNING && (
- <AlertTriangle className="w-4 h-4 mt-1 stroke-amber-700" />
+ <AlertTriangle className="w-4 h-4 mt-1 stroke-warning-11" />
)}
{variant === MarkdownVariant.TIP && (
<Lightbulb className="w-4 h-4 mt-1" />
@@ -114,7 +114,7 @@ const ApMarkdown = React.memo(
const codeContent = String(props.children).trim();
const isCopying = codeContent === copiedText;
return (
- <div className="relative flex w-full max-w-full items-center gap-1 rounded border border-solid bg-background p-1.5 text-sm">
+ <div className="relative flex w-full max-w-full items-center gap-1 rounded border border-solid bg-gray-1 p-1.5 text-sm">
<code
data-testid="markdown-code-block"
className="grow min-w-0 whitespace-pre-wrap break-all select-all px-1 py-1.5 font-mono text-sm"
@@ -123,7 +123,7 @@ const ApMarkdown = React.memo(
</code>
<Button
variant="ghost"
- className="bg-background rounded p-2 inline-flex items-center justify-center h-8"
+ className="bg-gray-1 rounded p-2 inline-flex items-center justify-center h-8"
onClick={() => copyToClipboard(codeContent)}
>
{isCopying ? (
@@ -168,7 +168,7 @@ const ApMarkdown = React.memo(
li: ({ node: _node, ref: _ref, ...props }) => <li {...props} />,
a: ({ node: _node, ref: _ref, ...props }) => (
<a
- className="font-medium text-primary underline underline-offset-4"
+ className="font-medium text-accent-11 underline underline-offset-4"
target="_blank"
rel="noreferrer noopener"
{...props}
@@ -181,7 +181,7 @@ const ApMarkdown = React.memo(
/>
),
hr: ({ node: _node, ref: _ref, ...props }) => (
- <hr className="my-4 border-t border-border/50" {...props} />
+ <hr className="my-4 border-t border-gray-6/50" {...props} />
),
img: ({ node: _node, ref: _ref, ...props }) => (
<img className="my-8" {...props} />
@@ -192,10 +192,10 @@ const ApMarkdown = React.memo(
<table className="w-full my-4 border-collapse" {...props} />
),
thead: ({ node: _node, ref: _ref, ...props }) => (
- <thead className="bg-muted" {...props} />
+ <thead className="bg-gray-3" {...props} />
),
tr: ({ node: _node, ref: _ref, ...props }) => (
- <tr className="border-b border-border" {...props} />
+ <tr className="border-b border-gray-6" {...props} />
),
th: ({ node: _node, ref: _ref, ...props }) => (
<th className="text-left p-2 font-medium" {...props} />
diff --git a/packages/web/src/components/custom/multi-select.tsx b/packages/web/src/components/custom/multi-select.tsx
index 1c8a02d44e0..eb51420e295 100644
--- a/packages/web/src/components/custom/multi-select.tsx
+++ b/packages/web/src/components/custom/multi-select.tsx
@@ -229,7 +229,7 @@ const MultiSelectTrigger = React.forwardRef<
type="button"
loading={loading}
className={cn(
- 'flex min-h-9 h-auto w-full items-center justify-between cursor-pointer gap-2 whitespace-nowrap rounded-sm border border-input bg-transparent px-4 py-1 text-sm ring-offset-background focus:outline-hidden focus:ring-1 focus:ring-ring [&>span]:line-clamp-1',
+ 'flex min-h-9 h-auto w-full items-center justify-between cursor-pointer gap-2 whitespace-nowrap rounded-sm border border-gray-8 bg-transparent px-4 py-1 text-sm ring-offset-gray-1 focus:outline-hidden focus:ring-1 focus:ring-accent-8 [&>span]:line-clamp-1',
{
'cursor-not-allowed opacity-80': disabled,
'cursor-pointer': !disabled,
@@ -296,7 +296,7 @@ const MultiSelectValue = React.forwardRef<
if (!value.length) {
return (
- <span className="pointer-events-none text-muted-foreground opacity-80">
+ <span className="pointer-events-none text-gray-11 opacity-80">
{placeholder}
</span>
);
@@ -341,7 +341,7 @@ const MultiSelectValue = React.forwardRef<
>
<span>{child}</span>
{!disabled && (
- <X className="h-3 w-3 ml-1 text-muted-foreground group-hover/multi-select-badge:text-foreground" />
+ <X className="h-3 w-3 ml-1 text-gray-11 group-hover/multi-select-badge:text-gray-12" />
)}
</Badge>
);
@@ -360,7 +360,7 @@ const MultiSelectValue = React.forwardRef<
return el;
})}
{remainingPiecesCount ? (
- <span className="text-muted-foreground text-xs leading-4 py-.5">
+ <span className="text-gray-11 text-xs leading-4">
{t('+{remainingPiecesCount} more', {
remainingPiecesCount: remainingPiecesCount,
})}
@@ -429,7 +429,7 @@ const MultiSelectContent = React.forwardRef<
sideOffset={4}
collisionPadding={10}
className={cn(
- 'z-50 rounded-md border bg-background p-0 text-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
+ 'z-50 rounded-md border bg-panel p-0 text-gray-12 shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
)}
style={
{
@@ -522,7 +522,7 @@ const MultiSelectItem = React.forwardRef<
value={value}
className={cn(
'cursor-pointer',
- disabled && 'text-muted-foreground cursor-not-allowed',
+ disabled && 'text-gray-11 cursor-not-allowed',
className,
)}
disabled={disabled}
diff --git a/packages/web/src/components/custom/page-header.tsx b/packages/web/src/components/custom/page-header.tsx
index cbc69bbaea9..9f400a3b6d7 100644
--- a/packages/web/src/components/custom/page-header.tsx
+++ b/packages/web/src/components/custom/page-header.tsx
@@ -19,7 +19,7 @@ export const PageHeader = ({
return (
<div
className={cn(
- 'sticky top-0 z-30 flex items-center justify-between py-3 px-4 w-full bg-background',
+ 'sticky top-0 z-30 flex items-center justify-between py-3 px-4 w-full bg-gray-1',
className,
)}
>
@@ -31,7 +31,7 @@ export const PageHeader = ({
title
)}
{description && (
- <span className="text-sm text-muted-foreground">{description}</span>
+ <span className="text-sm text-gray-11">{description}</span>
)}
</div>
{leftContent}
diff --git a/packages/web/src/components/custom/radio-group-list.tsx b/packages/web/src/components/custom/radio-group-list.tsx
index 2e5c1ec7342..cbf2dbfd959 100644
--- a/packages/web/src/components/custom/radio-group-list.tsx
+++ b/packages/web/src/components/custom/radio-group-list.tsx
@@ -32,9 +32,9 @@ const RadioGroupList = <T,>({
<CardListItem
key={index}
className={cn(
- `p-4 rounded-lg border block hover:border-primary/50 hover:bg-muted/50`,
+ `p-4 rounded-lg border block hover:border-accent-7 hover:bg-gray-3/50`,
{
- 'border-primary bg-primary/5': selected,
+ 'border-accent-9 bg-accent-3': selected,
},
)}
onClick={() => onChange(item.value)}
@@ -42,7 +42,7 @@ const RadioGroupList = <T,>({
onMouseLeave={() => onHover && onHover(null)}
>
<div className="flex justify-between items-center mb-2">
- <h4 className="text-md font-medium flex items-center gap-2">
+ <h4 className="font-medium flex items-center gap-2">
{item.label}
{item.labelExtra}
</h4>
@@ -53,9 +53,7 @@ const RadioGroupList = <T,>({
></RadioGroupItem>
</div>
</div>
- <div className="text-sm text-muted-foreground">
- {item.description}
- </div>
+ <div className="text-sm text-gray-11">{item.description}</div>
</CardListItem>
);
})}
diff --git a/packages/web/src/components/custom/read-more-description.tsx b/packages/web/src/components/custom/read-more-description.tsx
index ba79c48a74f..5edc1d0c8c4 100644
--- a/packages/web/src/components/custom/read-more-description.tsx
+++ b/packages/web/src/components/custom/read-more-description.tsx
@@ -21,7 +21,7 @@ export const ReadMoreDescription = ({
};
return (
- <p className="text-muted-foreground text-xs whitespace-pre-wrap">
+ <p className="text-gray-11 text-xs whitespace-pre-wrap">
{beginText}
{itCanOverflow && (
<>
@@ -33,7 +33,7 @@ export const ReadMoreDescription = ({
{endText}
</span>
<span
- className="text-primary ml-2 cursor-pointer"
+ className="text-accent-11 ml-2 cursor-pointer"
role="button"
tabIndex={0}
aria-expanded={isExpanded}
diff --git a/packages/web/src/components/custom/resource-lock-widget.tsx b/packages/web/src/components/custom/resource-lock-widget.tsx
index bf61a63a160..1cc879648ba 100644
--- a/packages/web/src/components/custom/resource-lock-widget.tsx
+++ b/packages/web/src/components/custom/resource-lock-widget.tsx
@@ -10,7 +10,7 @@ function ResourceLockWidget({
}: ResourceLockWidgetProps) {
return (
<div className="absolute top-[12px] z-40 w-full px-2 flex justify-center">
- <div className="py-1.5 px-3.5 border min-h-11.5 border-border bg-background z-40 w-full animate animate-fade duration-300 rounded-md flex items-center justify-between">
+ <div className="py-1.5 px-3.5 border min-h-11.5 border-gray-6 bg-gray-1 z-40 w-full animate-fade duration-300 rounded-md flex items-center justify-between">
<div className="flex items-center gap-2">
<Lock className="size-5" />
<span>
diff --git a/packages/web/src/components/custom/route-loading-bar.tsx b/packages/web/src/components/custom/route-loading-bar.tsx
index 90bb0656901..42161dec9a0 100644
--- a/packages/web/src/components/custom/route-loading-bar.tsx
+++ b/packages/web/src/components/custom/route-loading-bar.tsx
@@ -2,8 +2,8 @@ import { createPortal } from 'react-dom';
export function RouteLoadingBar() {
const bar = (
- <div className="absolute top-0 left-0 right-0 h-0.5 overflow-hidden bg-primary/20 z-50">
- <div className="h-full w-1/4 bg-primary rounded-full animate-indeterminate-progress" />
+ <div className="absolute top-0 left-0 right-0 h-0.5 overflow-hidden bg-accent-5 z-50">
+ <div className="h-full w-1/4 bg-accent-11 rounded-full animate-indeterminate-progress" />
</div>
);
@@ -14,8 +14,8 @@ export function RouteLoadingBar() {
return (
<div className="h-full w-full">
- <div className="h-0.5 w-full overflow-hidden bg-primary/20">
- <div className="h-full w-1/4 bg-primary rounded-full animate-indeterminate-progress" />
+ <div className="h-0.5 w-full overflow-hidden bg-accent-5">
+ <div className="h-full w-1/4 bg-accent-11 rounded-full animate-indeterminate-progress" />
</div>
</div>
);
diff --git a/packages/web/src/components/custom/search-input.tsx b/packages/web/src/components/custom/search-input.tsx
index ce3ada44763..05031d7af49 100644
--- a/packages/web/src/components/custom/search-input.tsx
+++ b/packages/web/src/components/custom/search-input.tsx
@@ -23,7 +23,7 @@ const SearchInput = React.forwardRef<HTMLInputElement, SearchInputProps>(
return (
<div
className={cn(
- 'grow flex items-center gap-2 w-full bg-background px-3 box-border',
+ 'grow flex items-center gap-2 w-full bg-gray-1 px-3 box-border',
inputClass,
)}
>
diff --git a/packages/web/src/components/custom/searchable-select.tsx b/packages/web/src/components/custom/searchable-select.tsx
index f4c759fae45..1600bca156a 100644
--- a/packages/web/src/components/custom/searchable-select.tsx
+++ b/packages/web/src/components/custom/searchable-select.tsx
@@ -271,7 +271,7 @@ export const SearchableSelect = <T,>({
<button
type="button"
className={cn(
- 'absolute inset-0 flex items-center justify-center text-muted-foreground hover:text-destructive',
+ 'absolute inset-0 flex items-center justify-center text-gray-11 hover:text-danger-11',
'opacity-0 group-hover/option:opacity-100',
)}
onClick={(e) => {
@@ -298,7 +298,7 @@ export const SearchableSelect = <T,>({
</div>
</div>
{option.description && (
- <div className="text-sm text-muted-foreground">
+ <div className="text-sm text-gray-11">
{option.description}
</div>
)}
diff --git a/packages/web/src/components/custom/shortcut.tsx b/packages/web/src/components/custom/shortcut.tsx
index 1dd2b1cceae..5267310d0b1 100644
--- a/packages/web/src/components/custom/shortcut.tsx
+++ b/packages/web/src/components/custom/shortcut.tsx
@@ -24,10 +24,7 @@ export const Shortcut = ({
const isEscape = shortcutKey?.toLocaleLowerCase() === 'esc';
return (
<span
- className={cn(
- 'grow text-xs tracking-widest text-muted-foreground',
- className,
- )}
+ className={cn('grow text-xs tracking-widest text-gray-11', className)}
>
{!isEscape && withCtrl && (isMac ? '⌘' : 'Ctrl')}
{!isEscape && withShift && 'Shift'}
diff --git a/packages/web/src/components/custom/show-powered-by.tsx b/packages/web/src/components/custom/show-powered-by.tsx
index d6211e2c099..c1de65da589 100644
--- a/packages/web/src/components/custom/show-powered-by.tsx
+++ b/packages/web/src/components/custom/show-powered-by.tsx
@@ -18,7 +18,7 @@ const ShowPoweredBy = ({ show, position = 'sticky' }: ShowPoweredByProps) => {
>
<div
className={cn(
- 'justify-end text-muted-foreground/70 text-sm items-center flex gap-1 transition group ',
+ 'justify-end text-gray-11 text-sm items-center flex gap-1 transition group ',
{
'justify-center': position === 'static',
},
@@ -31,7 +31,7 @@ const ShowPoweredBy = ({ show, position = 'sticky' }: ShowPoweredByProps) => {
height={15}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
- className="transition fill-muted-foreground/70"
+ className="transition fill-gray-11/70"
>
<path d="M6.46013 5.81759C5.30809 4.10962 5.75876 1.79113 7.46672 0.639093C9.17469 -0.512944 11.4932 -0.0622757 12.6452 1.64569L20.4261 13.1813C21.5781 14.8893 21.1274 17.2077 19.4195 18.3598C17.7115 19.5118 15.393 19.0611 14.241 17.3532L10.8676 12.3519C10.4339 11.8054 9.55114 11.8905 9.02108 12.4205C8.58152 12.8601 8.43761 13.9846 8.31301 14.9582C8.29474 15.1009 8.27689 15.2405 8.25858 15.3741C8.19097 16.0114 7.97092 16.6418 7.58762 17.2101C6.33511 19.067 3.81375 19.5565 1.95682 18.304C0.0998936 17.0515 -0.390738 14.5304 0.861776 12.6734C1.51136 11.7104 2.50224 11.1151 3.56472 10.9399L3.56322 10.9384C6.63307 10.4932 7.20222 7.02864 6.64041 6.08487L6.46013 5.81759Z" />
</svg>
diff --git a/packages/web/src/components/custom/simple-json-viewer.tsx b/packages/web/src/components/custom/simple-json-viewer.tsx
index ec998ada261..1cd7c106d82 100644
--- a/packages/web/src/components/custom/simple-json-viewer.tsx
+++ b/packages/web/src/components/custom/simple-json-viewer.tsx
@@ -6,6 +6,7 @@ import { toast } from 'sonner';
import { useTheme } from '@/components/providers/theme-provider';
import { Button } from '@/components/ui/button';
+import { syntaxTheme } from '@/lib/syntax-theme';
interface SimpleJsonViewerProps {
data: any;
@@ -23,7 +24,7 @@ export const SimpleJsonViewer: React.FC<SimpleJsonViewerProps> = ({
fontSize = '14px',
}) => {
const [copied, setCopied] = useState(false);
- const { theme } = useTheme();
+ const { resolvedTheme } = useTheme();
const formattedJson =
typeof data === 'string' ? data : JSON.stringify(data, null, 2);
@@ -40,11 +41,11 @@ export const SimpleJsonViewer: React.FC<SimpleJsonViewerProps> = ({
}, 3000);
};
- const viewerTheme = theme === 'dark' ? 'bright' : 'rjv-default';
+ const viewerTheme = syntaxTheme.jsonView(resolvedTheme);
return (
<div
- className="w-full relative text-foreground overflow-hidden"
+ className="w-full relative text-gray-12 overflow-hidden"
style={{
maxWidth: '100%',
}}
@@ -58,13 +59,9 @@ export const SimpleJsonViewer: React.FC<SimpleJsonViewerProps> = ({
className="p-0 "
>
{copied ? (
- <Check className="w-4 h-4 text-success" />
+ <Check className="w-4 h-4 text-success-11" />
) : (
- <Copy
- className={`w-4 h-4 ${
- theme === 'dark' ? 'text-white' : 'text-black'
- }`}
- />
+ <Copy className="w-4 h-4 text-gray-12" />
)}
</Button>
</div>
diff --git a/packages/web/src/components/custom/smart-output-viewer/field-type-icon.tsx b/packages/web/src/components/custom/smart-output-viewer/field-type-icon.tsx
index 5e4bb8df4b5..f15c1d5c7d6 100644
--- a/packages/web/src/components/custom/smart-output-viewer/field-type-icon.tsx
+++ b/packages/web/src/components/custom/smart-output-viewer/field-type-icon.tsx
@@ -29,10 +29,7 @@ function FieldTypeIcon({
format?: FieldFormat;
className?: string;
}) {
- const iconClass = cn(
- 'h-3.5 w-3.5 shrink-0 text-muted-foreground/60',
- className,
- );
+ const iconClass = cn('h-3.5 w-3.5 shrink-0 text-gray-11', className);
if (format === 'email') return <AtSign className={iconClass} />;
if (format === 'url') return <Link2 className={iconClass} />;
diff --git a/packages/web/src/components/custom/smart-output-viewer/format-value.tsx b/packages/web/src/components/custom/smart-output-viewer/format-value.tsx
index 93b6c9282cc..ae39dfa58e6 100644
--- a/packages/web/src/components/custom/smart-output-viewer/format-value.tsx
+++ b/packages/web/src/components/custom/smart-output-viewer/format-value.tsx
@@ -79,7 +79,7 @@ function FormatSingleValue({
currency?: string;
}) {
if (isNil(value) || value === '') {
- return <span className="text-muted-foreground italic">{t('empty')}</span>;
+ return <span className="text-gray-11 italic">{t('empty')}</span>;
}
if (isStepFileUrl(value)) {
@@ -95,7 +95,7 @@ function FormatSingleValue({
return (
<a
href={`mailto:${stringValue}`}
- className="text-primary underline-offset-4 hover:underline"
+ className="text-accent-11 underline-offset-4 hover:underline"
title={stringValue}
>
{stringValue}
@@ -112,7 +112,7 @@ function FormatSingleValue({
href={stringValue}
target="_blank"
rel="noopener noreferrer"
- className="text-primary underline-offset-4 hover:underline break-all"
+ className="text-accent-11 underline-offset-4 hover:underline break-all"
>
{stringValue}
</a>
@@ -127,7 +127,7 @@ function FormatSingleValue({
<img
src={stringValue}
alt=""
- className="max-h-32 max-w-full rounded border border-dividers object-contain"
+ className="max-h-32 max-w-full rounded border border-gray-6 object-contain"
loading="lazy"
referrerPolicy="no-referrer"
/>
@@ -194,11 +194,11 @@ function PrimitiveArrayPreview({
currency?: string;
}) {
if (items.length === 0) {
- return <span className="text-muted-foreground italic">{t('empty')}</span>;
+ return <span className="text-gray-11 italic">{t('empty')}</span>;
}
const parts = items.map((item, idx) => (
<span key={`${idx}-${String(item)}`}>
- {idx > 0 && <span className="text-muted-foreground">, </span>}
+ {idx > 0 && <span className="text-gray-11">, </span>}
<FormatSingleValue value={item} format={format} currency={currency} />
</span>
));
@@ -207,7 +207,7 @@ function PrimitiveArrayPreview({
function FormatValue({ value, field }: FormatValueProps) {
if (isNil(value) || value === '') {
- return <span className="text-muted-foreground italic">{t('empty')}</span>;
+ return <span className="text-gray-11 italic">{t('empty')}</span>;
}
if (Array.isArray(value) && !field.listItems) {
diff --git a/packages/web/src/components/custom/smart-output-viewer/index.tsx b/packages/web/src/components/custom/smart-output-viewer/index.tsx
index cf5976446ff..5aa6acc333a 100644
--- a/packages/web/src/components/custom/smart-output-viewer/index.tsx
+++ b/packages/web/src/components/custom/smart-output-viewer/index.tsx
@@ -33,11 +33,7 @@ function OutputTextDisplay({ text }: { text: string }) {
}
if (text === '') {
- return (
- <div className="p-4 text-sm text-muted-foreground italic">
- {t('empty')}
- </div>
- );
+ return <div className="p-4 text-sm text-gray-11 italic">{t('empty')}</div>;
}
return (
@@ -71,10 +67,10 @@ function OutputViewerShell({
};
return (
- <div className="rounded-lg border border-solid border-dividers overflow-hidden">
+ <div className="rounded-lg border border-solid border-gray-6 overflow-hidden">
<Tabs defaultValue="friendly">
- <div className="px-3 py-2 flex border-solid border-b border-dividers items-center gap-1">
- <span className="text-md grow">{title}</span>
+ <div className="px-3 py-2 flex border-solid border-b border-gray-6 items-center gap-1">
+ <span className="grow">{title}</span>
<div className="flex items-center gap-0">
<TooltipProvider>
<Tooltip>
diff --git a/packages/web/src/components/custom/smart-output-viewer/output-array-list.tsx b/packages/web/src/components/custom/smart-output-viewer/output-array-list.tsx
index 2e6724822f1..4d340ecd1f4 100644
--- a/packages/web/src/components/custom/smart-output-viewer/output-array-list.tsx
+++ b/packages/web/src/components/custom/smart-output-viewer/output-array-list.tsx
@@ -12,11 +12,11 @@ function ArrayItemRow({ item, index }: { item: unknown; index: number }) {
if (!isObject(item)) {
return (
- <div className="flex items-center gap-3 py-2 px-4 hover:bg-accent/50 border-b border-dividers">
- <span className="text-sm font-medium text-muted-foreground shrink-0">
+ <div className="flex items-center gap-3 py-2 px-4 hover:bg-gray-4/50 border-b border-gray-6">
+ <span className="text-sm font-medium text-gray-11 shrink-0">
{t('Item')} {index + 1}
</span>
- <span className="text-sm text-foreground/70 truncate flex-1">
+ <span className="text-sm text-gray-12/70 truncate flex-1">
{truncateValue(item)}
</span>
</div>
@@ -31,25 +31,25 @@ function ArrayItemRow({ item, index }: { item: unknown; index: number }) {
.join(' · ');
return (
- <div className="border-b border-dividers last:border-b-0">
+ <div className="border-b border-gray-6 last:border-b-0">
<button
type="button"
onClick={() => setExpanded(!expanded)}
- className="flex items-center gap-3 py-2 px-4 hover:bg-accent/50 cursor-pointer w-full text-left"
+ className="flex items-center gap-3 py-2 px-4 hover:bg-gray-4/50 cursor-pointer w-full text-left"
>
- <div className="shrink-0 w-4 h-4 flex items-center justify-center text-muted-foreground">
+ <div className="shrink-0 w-4 h-4 flex items-center justify-center text-gray-11">
{expanded ? (
<ChevronDown className="h-3.5 w-3.5" />
) : (
<ChevronRight className="h-3.5 w-3.5" />
)}
</div>
- <span className="text-sm font-medium text-muted-foreground shrink-0">
+ <span className="text-sm font-medium text-gray-11 shrink-0">
{t('Item')} {index + 1}
</span>
{!expanded && (
<span
- className="text-sm text-foreground/50 truncate flex-1 min-w-0"
+ className="text-sm text-gray-11 truncate flex-1 min-w-0"
title={previewValues}
>
{previewValues}
@@ -73,11 +73,7 @@ type OutputArrayListProps = {
function OutputArrayList({ items }: OutputArrayListProps) {
if (items.length === 0) {
- return (
- <div className="p-4 text-sm text-muted-foreground italic">
- {t('empty')}
- </div>
- );
+ return <div className="p-4 text-sm text-gray-11 italic">{t('empty')}</div>;
}
return (
diff --git a/packages/web/src/components/custom/smart-output-viewer/output-field-list.tsx b/packages/web/src/components/custom/smart-output-viewer/output-field-list.tsx
index 6c9f071b2a7..2a034743788 100644
--- a/packages/web/src/components/custom/smart-output-viewer/output-field-list.tsx
+++ b/packages/web/src/components/custom/smart-output-viewer/output-field-list.tsx
@@ -12,7 +12,7 @@ function OutputFieldList({ json, schema }: OutputFieldListProps) {
if (fields.length === 0) return null;
return (
- <div className="divide-y divide-dividers">
+ <div className="divide-y">
{fields.map((field) => (
<OutputFieldRow key={field.key} field={field} json={json} />
))}
diff --git a/packages/web/src/components/custom/smart-output-viewer/output-field-row.tsx b/packages/web/src/components/custom/smart-output-viewer/output-field-row.tsx
index 345f3d5ff7b..c7369f433d1 100644
--- a/packages/web/src/components/custom/smart-output-viewer/output-field-row.tsx
+++ b/packages/web/src/components/custom/smart-output-viewer/output-field-row.tsx
@@ -90,17 +90,17 @@ function SchemaListItemRow({
if (itemChildren.length === 0) {
return (
<div
- className="flex items-start gap-3 py-1.5 pr-3 hover:bg-accent/50"
+ className="flex items-start gap-3 py-1.5 pr-3 hover:bg-gray-4/50"
style={{ paddingLeft }}
>
- <span className="text-sm text-muted-foreground min-w-[120px] max-w-[160px] shrink-0 truncate">
+ <span className="text-sm text-gray-11 min-w-[120px] max-w-[160px] shrink-0 truncate">
{itemLabel}
</span>
<span className="flex-1 text-sm min-w-0 break-words whitespace-pre-wrap">
{isStepFileUrl(item) ? (
<StepFileDownloadButton fileUrl={item} />
) : isNil(item) ? (
- <span className="text-muted-foreground italic">{t('empty')}</span>
+ <span className="text-gray-11 italic">{t('empty')}</span>
) : typeof item === 'object' ? (
JSON.stringify(item)
) : (
@@ -115,11 +115,11 @@ function SchemaListItemRow({
<>
<button
type="button"
- className="flex items-center gap-3 py-1.5 pr-3 hover:bg-accent/50 cursor-pointer w-full text-left"
+ className="flex items-center gap-3 py-1.5 pr-3 hover:bg-gray-4/50 cursor-pointer w-full text-left"
style={{ paddingLeft }}
onClick={() => setExpanded(!expanded)}
>
- <span className="flex items-center gap-1 text-sm text-muted-foreground min-w-[120px] max-w-[160px] shrink-0">
+ <span className="flex items-center gap-1 text-sm text-gray-11 min-w-[120px] max-w-[160px] shrink-0">
{expanded ? (
<ChevronDown className="h-3 w-3 shrink-0" />
) : (
@@ -169,11 +169,11 @@ function SchemaMatrixRow({
<>
<button
type="button"
- className="flex items-center gap-3 py-1.5 pr-3 hover:bg-accent/50 cursor-pointer w-full text-left"
+ className="flex items-center gap-3 py-1.5 pr-3 hover:bg-gray-4/50 cursor-pointer w-full text-left"
style={{ paddingLeft: rowPadding }}
onClick={() => setExpanded(!expanded)}
>
- <span className="flex items-center gap-1 text-sm text-muted-foreground min-w-[120px] max-w-[160px] shrink-0">
+ <span className="flex items-center gap-1 text-sm text-gray-11 min-w-[120px] max-w-[160px] shrink-0">
{expanded ? (
<ChevronDown className="h-3 w-3 shrink-0" />
) : (
@@ -187,20 +187,18 @@ function SchemaMatrixRow({
{row.map((cell, idx) => (
<div
key={`${rowKey}_cell_${idx}`}
- className="flex items-start gap-3 py-1.5 pr-3 hover:bg-accent/50"
+ className="flex items-start gap-3 py-1.5 pr-3 hover:bg-gray-4/50"
style={{ paddingLeft: cellPadding }}
>
<span className="flex h-5 items-center shrink-0">
<FieldTypeIcon value={cell} format={format} />
</span>
- <span className="text-sm text-muted-foreground min-w-[100px] max-w-[140px] shrink-0 truncate">
+ <span className="text-sm text-gray-11 min-w-[100px] max-w-[140px] shrink-0 truncate">
{t('Cell')} {idx + 1}
</span>
<span className="flex-1 text-sm min-w-0">
{isNil(cell) || cell === '' ? (
- <span className="text-muted-foreground italic">
- {t('empty')}
- </span>
+ <span className="text-gray-11 italic">{t('empty')}</span>
) : (
<FormatValue
value={cell}
@@ -263,11 +261,11 @@ function SchemaFieldRow({ field, json, depth }: SchemaFieldRowProps) {
const labelWeight = isTop ? 'font-medium' : '';
return (
- <div className={isTop ? 'border-b border-dividers last:border-b-0' : ''}>
+ <div className={isTop ? 'border-b border-gray-6 last:border-b-0' : ''}>
<div
className={`flex items-start gap-3 ${
isTop ? 'py-2.5' : 'py-1.5'
- } pr-3 hover:bg-accent/50`}
+ } pr-3 hover:bg-gray-4/50`}
style={{ paddingLeft: rowPaddingLeft }}
>
<div
@@ -277,7 +275,7 @@ function SchemaFieldRow({ field, json, depth }: SchemaFieldRowProps) {
<button
type="button"
onClick={() => setExpanded(!expanded)}
- className={`flex items-center gap-1 text-sm ${labelWeight} text-muted-foreground min-w-0`}
+ className={`flex items-center gap-1 text-sm ${labelWeight} text-gray-11 min-w-0`}
>
{expanded ? (
<ChevronDown className="h-3.5 w-3.5 shrink-0" />
@@ -289,7 +287,7 @@ function SchemaFieldRow({ field, json, depth }: SchemaFieldRowProps) {
</button>
) : (
<span
- className={`flex items-center gap-1 text-sm ${labelWeight} text-muted-foreground truncate`}
+ className={`flex items-center gap-1 text-sm ${labelWeight} text-gray-11 truncate`}
>
<FieldTypeIcon value={value} format={field.format} />
{label}
@@ -299,7 +297,7 @@ function SchemaFieldRow({ field, json, depth }: SchemaFieldRowProps) {
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
- <Info className="h-3.5 w-3.5 text-muted-foreground/60 shrink-0 cursor-help" />
+ <Info className="h-3.5 w-3.5 text-gray-11 shrink-0 cursor-help" />
</TooltipTrigger>
<TooltipContent side="top" className="max-w-[300px]">
{field.description}
@@ -310,7 +308,7 @@ function SchemaFieldRow({ field, json, depth }: SchemaFieldRowProps) {
</div>
<div className="flex-1 text-sm min-w-0">
{isDescribedList || isMatrix ? (
- <span className="text-muted-foreground">
+ <span className="text-gray-11">
{t('itemCount', {
count: isMatrix ? matrixRows.length : listItems.length,
})}
@@ -319,7 +317,7 @@ function SchemaFieldRow({ field, json, depth }: SchemaFieldRowProps) {
isDynamicMap ||
isGenericObject ? (
<span
- className="text-muted-foreground truncate"
+ className="text-gray-11 truncate"
title={
isNil(value) || typeof value !== 'object'
? undefined
@@ -453,20 +451,18 @@ function SchemaFieldRow({ field, json, depth }: SchemaFieldRowProps) {
estimateSize={30}
renderItem={(item, idx) => (
<div
- className="flex items-start gap-3 py-1.5 pr-3 hover:bg-accent/50"
+ className="flex items-start gap-3 py-1.5 pr-3 hover:bg-gray-4/50"
style={{ paddingLeft: nestedPaddingLeft(depth + 1) }}
>
<span className="flex h-5 items-center shrink-0">
<FieldTypeIcon value={item} format={field.format} />
</span>
- <span className="text-sm text-muted-foreground min-w-[120px] max-w-[160px] shrink-0 truncate">
+ <span className="text-sm text-gray-11 min-w-[120px] max-w-[160px] shrink-0 truncate">
{`${label} ${idx + 1}`}
</span>
<span className="flex-1 text-sm min-w-0 break-words whitespace-pre-wrap">
{isNil(item) || item === '' ? (
- <span className="text-muted-foreground italic">
- {t('empty')}
- </span>
+ <span className="text-gray-11 italic">{t('empty')}</span>
) : (
<FormatValue
value={item}
diff --git a/packages/web/src/components/custom/smart-output-viewer/output-generic-field-list.tsx b/packages/web/src/components/custom/smart-output-viewer/output-generic-field-list.tsx
index e9acb8cb736..172ad95613e 100644
--- a/packages/web/src/components/custom/smart-output-viewer/output-generic-field-list.tsx
+++ b/packages/web/src/components/custom/smart-output-viewer/output-generic-field-list.tsx
@@ -10,11 +10,7 @@ function OutputGenericFieldList({ json }: OutputGenericFieldListProps) {
const entries = Object.entries(json);
if (entries.length === 0) {
- return (
- <div className="p-4 text-sm text-muted-foreground italic">
- {t('empty')}
- </div>
- );
+ return <div className="p-4 text-sm text-gray-11 italic">{t('empty')}</div>;
}
return (
diff --git a/packages/web/src/components/custom/smart-output-viewer/output-schema-array-list.tsx b/packages/web/src/components/custom/smart-output-viewer/output-schema-array-list.tsx
index 347642db193..b5a48f0cc67 100644
--- a/packages/web/src/components/custom/smart-output-viewer/output-schema-array-list.tsx
+++ b/packages/web/src/components/custom/smart-output-viewer/output-schema-array-list.tsx
@@ -35,11 +35,11 @@ function SchemaArrayItemRow({
// static row instead of a clickable chevron that opens to nothing.
if (!isObject(item)) {
return (
- <div className="flex items-center gap-3 py-2 px-4 hover:bg-accent/50 border-b border-dividers">
- <span className="text-sm font-medium text-muted-foreground shrink-0">
+ <div className="flex items-center gap-3 py-2 px-4 hover:bg-gray-4/50 border-b border-gray-6">
+ <span className="text-sm font-medium text-gray-11 shrink-0">
{label}
</span>
- <span className="text-sm text-foreground/70 truncate flex-1 min-w-0">
+ <span className="text-sm text-gray-12/70 truncate flex-1 min-w-0">
{truncateValue(item)}
</span>
</div>
@@ -47,20 +47,20 @@ function SchemaArrayItemRow({
}
return (
- <div className="border-b border-dividers last:border-b-0">
+ <div className="border-b border-gray-6 last:border-b-0">
<button
type="button"
onClick={() => setExpanded(!expanded)}
- className="flex items-center gap-3 py-2 px-4 hover:bg-accent/50 cursor-pointer w-full text-left"
+ className="flex items-center gap-3 py-2 px-4 hover:bg-gray-4/50 cursor-pointer w-full text-left"
>
- <div className="shrink-0 w-4 h-4 flex items-center justify-center text-muted-foreground">
+ <div className="shrink-0 w-4 h-4 flex items-center justify-center text-gray-11">
{expanded ? (
<ChevronDown className="h-3.5 w-3.5" />
) : (
<ChevronRight className="h-3.5 w-3.5" />
)}
</div>
- <span className="text-sm font-medium text-muted-foreground truncate">
+ <span className="text-sm font-medium text-gray-11 truncate">
{label}
</span>
</button>
@@ -71,11 +71,7 @@ function SchemaArrayItemRow({
function OutputSchemaArrayList({ items, schema }: OutputSchemaArrayListProps) {
if (items.length === 0) {
- return (
- <div className="p-4 text-sm text-muted-foreground italic">
- {t('empty')}
- </div>
- );
+ return <div className="p-4 text-sm text-gray-11 italic">{t('empty')}</div>;
}
return (
diff --git a/packages/web/src/components/custom/smart-output-viewer/output-table-view.tsx b/packages/web/src/components/custom/smart-output-viewer/output-table-view.tsx
index 5372a475449..049b9fffa31 100644
--- a/packages/web/src/components/custom/smart-output-viewer/output-table-view.tsx
+++ b/packages/web/src/components/custom/smart-output-viewer/output-table-view.tsx
@@ -82,9 +82,7 @@ function CellValue({ value }: { value: unknown }) {
}
if (value === null || value === undefined || value === '') {
- return (
- <span className="text-muted-foreground/40 italic">{t('empty')}</span>
- );
+ return <span className="text-gray-11 italic">{t('empty')}</span>;
}
return (
@@ -94,11 +92,7 @@ function CellValue({ value }: { value: unknown }) {
function OutputTableView({ items }: OutputTableViewProps) {
if (items.length === 0) {
- return (
- <div className="p-4 text-sm text-muted-foreground italic">
- {t('empty')}
- </div>
- );
+ return <div className="p-4 text-sm text-gray-11 italic">{t('empty')}</div>;
}
const firstRow = items[0];
@@ -113,7 +107,7 @@ function OutputTableView({ items }: OutputTableViewProps) {
return (
<div className="p-3">
- <div className="text-xs text-muted-foreground mb-2">
+ <div className="text-xs text-gray-11 mb-2">
{isTruncated
? t('Showing {shown} of {total} {label}', {
shown: rows.length,
@@ -123,14 +117,14 @@ function OutputTableView({ items }: OutputTableViewProps) {
: t('rowCount', { count: totalRows })}{' '}
× {t('columnCount', { count: columns.length })}
</div>
- <div className="overflow-x-auto rounded-md border border-dividers">
+ <div className="overflow-x-auto rounded-md border border-gray-6">
<table className="w-full text-sm">
<thead>
- <tr className="bg-muted/50 border-b border-dividers">
+ <tr className="bg-gray-3/50 border-b border-gray-6">
{columns.map((col) => (
<th
key={col.key}
- className="px-3 py-2 text-left font-medium text-muted-foreground whitespace-nowrap"
+ className="px-3 py-2 text-left font-medium text-gray-11 whitespace-nowrap"
>
{col.label}
</th>
@@ -142,7 +136,7 @@ function OutputTableView({ items }: OutputTableViewProps) {
<tr
key={rowIdx}
className={cn(
- 'border-b border-dividers last:border-b-0 hover:bg-accent/30 transition-colors',
+ 'border-b border-gray-6 last:border-b-0 hover:bg-gray-4/30 transition-colors',
)}
>
{columns.map((col) => {
diff --git a/packages/web/src/components/custom/smart-output-viewer/shared-value-rendering.tsx b/packages/web/src/components/custom/smart-output-viewer/shared-value-rendering.tsx
index bc2d5b364c7..7ce31781ffa 100644
--- a/packages/web/src/components/custom/smart-output-viewer/shared-value-rendering.tsx
+++ b/packages/web/src/components/custom/smart-output-viewer/shared-value-rendering.tsx
@@ -29,7 +29,7 @@ function ValueRow({ label, value, depth }: ValueRowProps) {
if (depth >= MAX_NESTED_DEPTH) {
return (
<div
- className="py-1.5 text-xs text-muted-foreground italic"
+ className="py-1.5 text-xs text-gray-11 italic"
style={{ paddingLeft, paddingRight: 16 }}
>
{label}: {t('Too deep to display')}
@@ -48,10 +48,10 @@ function ValueRow({ label, value, depth }: ValueRowProps) {
<button
type="button"
onClick={() => setExpanded(!expanded)}
- className="flex items-center gap-3 py-1.5 hover:bg-accent/50 cursor-pointer w-full text-left"
+ className="flex items-center gap-3 py-1.5 hover:bg-gray-4/50 cursor-pointer w-full text-left"
style={{ paddingLeft, paddingRight: 16 }}
>
- <div className="shrink-0 w-4 h-4 flex items-center justify-center text-muted-foreground">
+ <div className="shrink-0 w-4 h-4 flex items-center justify-center text-gray-11">
{expanded ? (
<ChevronDown className="h-3.5 w-3.5" />
) : (
@@ -59,11 +59,11 @@ function ValueRow({ label, value, depth }: ValueRowProps) {
)}
</div>
<FieldTypeIcon value={value} />
- <span className="text-sm text-muted-foreground min-w-[100px] max-w-[160px] shrink-0 truncate">
+ <span className="text-sm text-gray-11 min-w-[100px] max-w-[160px] shrink-0 truncate">
{label}
</span>
<span
- className="text-sm text-foreground/50 truncate flex-1 min-w-0"
+ className="text-sm text-gray-12/50 truncate flex-1 min-w-0"
title={JSON.stringify(value)}
>
{truncateValue(value)}
@@ -87,20 +87,20 @@ function ValueRow({ label, value, depth }: ValueRowProps) {
return (
<div
- className="flex items-start gap-3 py-1.5 hover:bg-accent/50"
+ className="flex items-start gap-3 py-1.5 hover:bg-gray-4/50"
style={{ paddingLeft: paddingLeft + 24, paddingRight: 16 }}
>
<span className="flex h-5 items-center shrink-0">
<FieldTypeIcon value={value} />
</span>
- <span className="text-sm text-muted-foreground min-w-[100px] max-w-[160px] shrink-0 truncate">
+ <span className="text-sm text-gray-11 min-w-[100px] max-w-[160px] shrink-0 truncate">
{label}
</span>
- <span className="text-sm text-foreground/70 flex-1 min-w-0 break-words whitespace-pre-wrap">
+ <span className="text-sm text-gray-12/70 flex-1 min-w-0 break-words whitespace-pre-wrap">
{isStepFileUrl(value) ? (
<StepFileDownloadButton fileUrl={value} />
) : isNil(value) || value === '' ? (
- <span className="text-muted-foreground/40 italic">{t('empty')}</span>
+ <span className="text-gray-11 italic">{t('empty')}</span>
) : Array.isArray(value) ? (
t('itemCount', { count: value.length })
) : (
diff --git a/packages/web/src/components/custom/spinner.tsx b/packages/web/src/components/custom/spinner.tsx
index 4f97b98bb09..fbd289610a4 100644
--- a/packages/web/src/components/custom/spinner.tsx
+++ b/packages/web/src/components/custom/spinner.tsx
@@ -13,7 +13,7 @@ const LoadingSpinner = React.memo(
return (
<LoaderCircle
className={cn(
- 'animate-spin duration-1500 stroke-foreground size-5',
+ 'animate-spin duration-1500 stroke-gray-12 size-5',
{
'size-[24px]': !isLarge,
'size-[50px]': isLarge,
diff --git a/packages/web/src/components/custom/status-icon-with-text.tsx b/packages/web/src/components/custom/status-icon-with-text.tsx
index f61f6751e6b..bb95519c8d7 100644
--- a/packages/web/src/components/custom/status-icon-with-text.tsx
+++ b/packages/web/src/components/custom/status-icon-with-text.tsx
@@ -9,6 +9,8 @@ const variantBadgeMap: Record<
success: 'success',
warning: 'warning',
error: 'destructive',
+ primary: 'info',
+ neutral: 'neutral',
default: 'accent',
secondary: 'secondary',
};
@@ -27,7 +29,14 @@ const StatusIconWithText = React.memo(
StatusIconWithText.displayName = 'StatusIconWithText';
export { StatusIconWithText };
-type StatusVariant = 'success' | 'warning' | 'error' | 'default' | 'secondary';
+export type StatusVariant =
+ | 'default'
+ | 'neutral'
+ | 'primary'
+ | 'success'
+ | 'warning'
+ | 'error'
+ | 'secondary';
interface StatusIconWithTextProps {
icon: React.ElementType;
diff --git a/packages/web/src/components/custom/tag-input.tsx b/packages/web/src/components/custom/tag-input.tsx
index 2bc569fae0b..e4f6ac8c351 100644
--- a/packages/web/src/components/custom/tag-input.tsx
+++ b/packages/web/src/components/custom/tag-input.tsx
@@ -57,13 +57,13 @@ const TagInput = forwardRef<HTMLInputElement, TagInputProps>((props, ref) => {
const effectiveBadgeClassName =
badgeClassName ||
(type === 'email'
- ? 'rounded-sm border border-gray-300 dark:border-gray-600 bg-gray-100 dark:bg-gray-700 font-normal'
+ ? 'rounded-sm border border-gray-6 bg-gray-3 font-normal'
: undefined);
const effectiveInvalidBadgeClassName =
invalidBadgeClassName ||
(type === 'email'
- ? 'text-destructive-800 bg-destructive-50 border-destructive-200 dark:text-destructive-200 dark:bg-destructive-900 dark:border-destructive-800'
+ ? 'text-danger-11 bg-danger-3 border-danger-7'
: undefined);
const [pendingDataPoint, setPendingDataPoint] = useState('');
@@ -119,7 +119,7 @@ const TagInput = forwardRef<HTMLInputElement, TagInputProps>((props, ref) => {
<div
className={cn(
// caveat: :has() variant requires tailwind v3.4 or above: https://tailwindcss.com/blog/tailwindcss-v3-4#new-has-variant
- 'has-focus-visible:ring-neutral-950 dark:has-focus-visible:ring-neutral-300 border-neutral-200 dark:border-neutral-800 dark:bg-neutral-950 dark:ring-offset-neutral-950 flex min-h-9 w-full rounded-md border bg-white ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 has-focus-visible:outline-hidden has-focus-visible:ring-2 has-focus-visible:ring-offset-2 cursor-text',
+ 'has-focus-visible:ring-accent-8 border-gray-8 bg-transparent ring-offset-gray-1 flex min-h-9 w-full rounded-md border disabled:cursor-not-allowed disabled:opacity-50 has-focus-visible:outline-hidden has-focus-visible:ring-2 has-focus-visible:ring-offset-2 cursor-text',
className,
)}
onClick={() => internalInputRef.current?.focus()}
@@ -182,7 +182,7 @@ const TagInput = forwardRef<HTMLInputElement, TagInputProps>((props, ref) => {
})}
<input
className={
- 'placeholder:text-neutral-500 dark:placeholder:text-neutral-400 w-full min-w-[200px] flex-1 outline-hidden bg-transparent'
+ 'placeholder:text-gray-11 w-full min-w-[200px] flex-1 outline-hidden bg-transparent'
}
autoComplete="off"
value={pendingDataPoint}
@@ -232,7 +232,7 @@ const TagInput = forwardRef<HTMLInputElement, TagInputProps>((props, ref) => {
)}
</div>
{type === 'email' && showDescription && (
- <p className="text-xs text-muted-foreground mt-2">
+ <p className="text-xs text-gray-11 mt-2">
{t('Separate email addresses with a space or comma.')}
</p>
)}
diff --git a/packages/web/src/components/custom/tag-with-bright.tsx b/packages/web/src/components/custom/tag-with-bright.tsx
index ee94975729c..8e6fb96989a 100644
--- a/packages/web/src/components/custom/tag-with-bright.tsx
+++ b/packages/web/src/components/custom/tag-with-bright.tsx
@@ -1,3 +1,4 @@
+import { brandColors } from '@activepieces/shared';
import { LineChart, Clock } from 'lucide-react';
import { Badge } from '@/components/ui/badge';
@@ -37,13 +38,13 @@ export const TagWithBright = ({
}`}
style={{
backgroundColor: color,
- color: '#000000',
+ color: brandColors.onPrimaryFor({ hex: color }),
}}
>
<span
className="absolute inset-0"
style={{
- background: `linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.9) 50%, transparent 100%)`,
+ background: `linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%)`,
animation: 'shine 2.5s ease-out infinite',
width: '100%',
transform: 'translateX(-100%)',
diff --git a/packages/web/src/components/custom/time-period-select.tsx b/packages/web/src/components/custom/time-period-select.tsx
index 6bef6e5fbaa..80e06a702ef 100644
--- a/packages/web/src/components/custom/time-period-select.tsx
+++ b/packages/web/src/components/custom/time-period-select.tsx
@@ -10,7 +10,6 @@ import {
SelectTrigger,
SelectValue,
} from '@/components/ui/select';
-import { cn } from '@/lib/utils';
import { Period, display12HourValue, setDateByType } from './time-picker-utils';
@@ -64,12 +63,8 @@ export const TimePeriodSelect = React.forwardRef<
>
<SelectTrigger
ref={ref}
- className={cn(
- ' hover:bg-accent w-14 h-[29px] focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 rounded-xs justify-center p-0 transition-all border-none text-sm shadow-none gap-1 ',
- {
- 'bg-background': isActive,
- },
- )}
+ data-active={isActive}
+ className="hover:bg-gray-4 dark:bg-transparent dark:hover:bg-gray-4 data-[active=true]:bg-gray-1 data-[active=true]:hover:bg-gray-4 w-14 h-[29px] focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-accent-8 focus-visible:ring-offset-1 rounded-xs justify-center p-0 transition-all border-none text-sm shadow-none gap-1"
onKeyDown={handleKeyDown}
>
<SelectValue />
diff --git a/packages/web/src/components/custom/time-picker.tsx b/packages/web/src/components/custom/time-picker.tsx
index a897d83f50b..9d98618719c 100644
--- a/packages/web/src/components/custom/time-picker.tsx
+++ b/packages/web/src/components/custom/time-picker.tsx
@@ -58,9 +58,9 @@ export function TimePicker({
return (
<div
className={cn(
- 'flex items-center transition-all gap-2 w-full text-muted-foreground justify-center bg-accent/50 py-1 px-2 rounded-sm h-[43px] border border-solid border-border',
+ 'flex items-center transition-all gap-2 w-full text-gray-11 justify-center bg-gray-4/50 py-1 px-2 rounded-sm h-[43px] border border-solid border-gray-6',
{
- 'text-foreground': isActive,
+ 'text-gray-12': isActive,
},
)}
>
diff --git a/packages/web/src/components/custom/time-unit-input.tsx b/packages/web/src/components/custom/time-unit-input.tsx
index f4ffdb924f9..ce1cb429c0b 100644
--- a/packages/web/src/components/custom/time-unit-input.tsx
+++ b/packages/web/src/components/custom/time-unit-input.tsx
@@ -115,12 +115,10 @@ const TimeUnitPickerInputInner = React.forwardRef<
ref={ref}
id={id || picker}
name={name || picker}
+ data-active={isActive}
className={cn(
- 'hover:bg-accent caret-primary w-12 h-[29px] p-0 text-center rounded-xs bg-transparent transition-all text-sm tabular-nums border-none [&::-webkit-inner-spin-button]:appearance-none',
+ 'hover:bg-gray-4 caret-accent-9 w-12 h-[29px] p-0 text-center rounded-xs bg-transparent dark:bg-transparent data-[active=true]:bg-gray-1 transition-all text-sm tabular-nums border-none [&::-webkit-inner-spin-button]:appearance-none',
className,
- {
- 'bg-background': isActive,
- },
)}
value={value || calculatedValue}
onChange={(e) => {
@@ -184,10 +182,10 @@ const TimeUnitPickerInput = React.forwardRef<
}}
/>
<AutoComplete
- className={cn('bg-transparent text-muted-foreground rounded-xs', {
- 'bg-background': isActive,
- 'hover:bg-accent': !isActive,
- 'text-foreground': isActive,
+ className={cn('bg-transparent text-gray-11 rounded-xs', {
+ 'bg-gray-1': isActive,
+ 'hover:bg-gray-4': !isActive,
+ 'text-gray-12': isActive,
})}
items={autoCompleteList.filter((item) =>
item.label.includes(filterValue),
diff --git a/packages/web/src/components/custom/user-avatar.tsx b/packages/web/src/components/custom/user-avatar.tsx
index 692c00ae89e..095cb6226e9 100644
--- a/packages/web/src/components/custom/user-avatar.tsx
+++ b/packages/web/src/components/custom/user-avatar.tsx
@@ -1,11 +1,14 @@
import { isNil } from '@activepieces/core-utils';
import Avatar from 'boring-avatars';
+import { useEffect, useState } from 'react';
+import { useTheme } from '@/components/providers/theme-provider';
import {
Tooltip,
TooltipTrigger,
TooltipContent,
} from '@/components/ui/tooltip';
+import { colorsUtils } from '@/lib/color-utils';
import { cn } from '@/lib/utils';
type UserAvatarProps = {
@@ -36,17 +39,10 @@ export function UserAvatar({
width={size}
height={size}
className={cn('rounded-full aspect-square object-cover', className)}
- style={{ width: `${size}px !important`, height: `${size}px !important` }}
+ style={{ width: size, height: size }}
/>
) : (
- <Avatar
- name={email}
- size={size}
- colors={['#0a0310', '#49007e', '#ff005b', '#ff7d10', '#ffb238']}
- variant="beam"
- square
- className={cn('rounded-full', className)}
- />
+ <GeneratedAvatar email={email} size={size} className={className} />
);
if (disableTooltip) {
@@ -56,11 +52,81 @@ export function UserAvatar({
return (
<Tooltip>
<TooltipTrigger asChild>
- <div className={cn('size-12 border', { 'border-none': withoutBorder })}>
- {avatarElement} {disableTooltip}
+ <div
+ className={cn('rounded-full ring-1 ring-gray-6', {
+ 'ring-0': withoutBorder,
+ })}
+ style={{ width: size, height: size }}
+ >
+ {avatarElement}
</div>
</TooltipTrigger>
<TooltipContent side="bottom">{tooltip}</TooltipContent>
</Tooltip>
);
}
+
+function GeneratedAvatar({
+ email,
+ size,
+ className,
+}: {
+ email: string;
+ size: number;
+ className?: string;
+}) {
+ const colors = useAvatarColors();
+ return (
+ <Avatar
+ name={email}
+ size={size}
+ colors={colors}
+ variant="beam"
+ square
+ className={cn('rounded-full', className)}
+ />
+ );
+}
+
+function useAvatarColors(): string[] {
+ const { resolvedTheme } = useTheme();
+ const [colors, setColors] = useState(
+ () => resolvedColorsByTheme.get(resolvedTheme) ?? tokenColors(),
+ );
+ useEffect(() => {
+ const cached = resolvedColorsByTheme.get(resolvedTheme);
+ if (cached) {
+ setColors(cached);
+ return;
+ }
+ const frame = requestAnimationFrame(() => {
+ const resolved =
+ resolvedColorsByTheme.get(resolvedTheme) ?? resolveAvatarColors();
+ resolvedColorsByTheme.set(resolvedTheme, resolved);
+ setColors(resolved);
+ });
+ return () => cancelAnimationFrame(frame);
+ }, [resolvedTheme]);
+ return colors;
+}
+
+function resolveAvatarColors(): string[] {
+ const resolved = AVATAR_TOKENS.map(colorsUtils.resolveToken);
+ return resolved.every((color) => color !== null)
+ ? resolved.flatMap((color) => (color === null ? [] : [color]))
+ : tokenColors();
+}
+
+function tokenColors(): string[] {
+ return AVATAR_TOKENS.map((token) => `var(${token})`);
+}
+
+const resolvedColorsByTheme = new Map<string, string[]>();
+
+const AVATAR_TOKENS = [
+ '--swatch-1-mark',
+ '--swatch-3-mark',
+ '--swatch-5-mark',
+ '--swatch-8-mark',
+ '--swatch-11-mark',
+];
diff --git a/packages/web/src/components/icons/zap.tsx b/packages/web/src/components/icons/zap.tsx
index 26421257778..48b35672e0f 100644
--- a/packages/web/src/components/icons/zap.tsx
+++ b/packages/web/src/components/icons/zap.tsx
@@ -73,11 +73,7 @@ const ZapIcon = forwardRef<ZapIconHandle, ZapIconProps>(
transition={{ duration: 0.7, ease: 'easeOut' }}
style={{ transformOrigin: 'center' }}
>
- <path
- d={ZAP_PATH}
- fill="currentColor"
- className="text-muted-foreground/20"
- />
+ <path d={ZAP_PATH} fill="currentColor" className="text-gray-6" />
<path
d={ZAP_PATH}
style={{
diff --git a/packages/web/src/components/prompt-kit/code-block.tsx b/packages/web/src/components/prompt-kit/code-block.tsx
index 58503e10c51..b2679491da0 100644
--- a/packages/web/src/components/prompt-kit/code-block.tsx
+++ b/packages/web/src/components/prompt-kit/code-block.tsx
@@ -6,14 +6,15 @@ import {
type ThemedToken,
} from 'shiki';
+import { syntaxTheme } from '@/lib/syntax-theme';
import { cn } from '@/lib/utils';
function CodeBlock({ children, className, ...props }: CodeBlockProps) {
return (
<div
className={cn(
- 'not-prose flex w-full flex-col overflow-clip border',
- 'border-border bg-card text-card-foreground rounded-xl',
+ 'flex w-full flex-col overflow-clip border',
+ 'border-gray-6 bg-panel text-gray-12 rounded-xl',
className,
)}
{...props}
@@ -44,7 +45,7 @@ function CodeBlockCode({
const themeOptions = theme
? { theme }
: {
- themes: { light: 'vitesse-light', dark: 'vitesse-dark' },
+ themes: syntaxTheme.shiki,
defaultColor: false as const,
};
diff --git a/packages/web/src/components/prompt-kit/file-upload.tsx b/packages/web/src/components/prompt-kit/file-upload.tsx
index 5e3500cf58a..ec5d409f0e0 100644
--- a/packages/web/src/components/prompt-kit/file-upload.tsx
+++ b/packages/web/src/components/prompt-kit/file-upload.tsx
@@ -178,7 +178,7 @@ function FileUploadContent({ className, ...props }: FileUploadContentProps) {
const content = (
<div
className={cn(
- 'bg-background/80 fixed inset-0 z-50 flex items-center justify-center backdrop-blur-sm',
+ 'bg-gray-1/80 fixed inset-0 z-50 flex items-center justify-center backdrop-blur-sm',
'animate-in fade-in-0 slide-in-from-bottom-10 zoom-in-90 duration-150',
className,
)}
diff --git a/packages/web/src/components/prompt-kit/markdown.tsx b/packages/web/src/components/prompt-kit/markdown.tsx
index 2b1ecd421a0..76d910a2c6e 100644
--- a/packages/web/src/components/prompt-kit/markdown.tsx
+++ b/packages/web/src/components/prompt-kit/markdown.tsx
@@ -151,8 +151,8 @@ function MarkdownComponent({
'[&>*:first-child]:mt-0 [&>*:last-child]:mb-0',
'[&_li>p]:my-0 [&_li_ul]:my-1.5 [&_li_ol]:my-1.5',
'[&_pre]:overflow-x-auto [&_pre]:max-w-full',
- '[&_th]:text-left [&_th]:p-2.5 [&_th]:border-b [&_th]:border-border [&_th]:font-semibold',
- '[&_td]:p-2.5 [&_td]:border-b [&_td]:border-border',
+ '[&_th]:text-left [&_th]:p-2.5 [&_th]:border-b [&_th]:border-gray-6 [&_th]:font-semibold',
+ '[&_td]:p-2.5 [&_td]:border-b [&_td]:border-gray-6',
'[&_tr:last-child_td]:border-b-0',
className,
)}
@@ -207,14 +207,14 @@ const HEADING_CLASSES: Record<HeadingTag, string> = {
h2: 'text-base font-semibold tracking-tight mt-5 first:mt-0 mb-2',
h3: 'text-sm font-semibold mt-4 first:mt-0 mb-2',
h4: 'text-sm font-semibold mt-4 first:mt-0 mb-1',
- h5: 'text-sm font-semibold text-muted-foreground mt-3 first:mt-0 mb-1',
- h6: 'text-xs font-semibold uppercase tracking-wide text-muted-foreground mt-3 first:mt-0 mb-1',
+ h5: 'text-sm font-semibold text-gray-11 mt-3 first:mt-0 mb-1',
+ h6: 'text-xs font-semibold uppercase tracking-wide text-gray-11 mt-3 first:mt-0 mb-1',
};
const INITIAL_COMPONENTS: Partial<Components> = {
table: function TableComponent({ children }) {
return (
- <div className="my-4 overflow-hidden rounded-md border border-border">
+ <div className="my-4 overflow-hidden rounded-md border border-gray-6">
<table className="w-full text-sm border-collapse">{children}</table>
</div>
);
@@ -235,7 +235,7 @@ const INITIAL_COMPONENTS: Partial<Components> = {
},
blockquote: function BlockquoteComponent({ children }) {
return (
- <blockquote className="border-l-2 border-border pl-4 my-4 text-muted-foreground italic">
+ <blockquote className="border-l-2 border-gray-6 pl-4 my-4 text-gray-11 italic">
{children}
</blockquote>
);
@@ -245,7 +245,7 @@ const INITIAL_COMPONENTS: Partial<Components> = {
return <div className="flex flex-wrap gap-1.5 my-2">{children}</div>;
}
return (
- <ul className="list-disc pl-6 my-4 space-y-1.5 marker:text-muted-foreground">
+ <ul className="list-disc pl-6 my-4 space-y-1.5 marker:text-gray-11">
{children}
</ul>
);
@@ -255,7 +255,7 @@ const INITIAL_COMPONENTS: Partial<Components> = {
return <div className="flex flex-wrap gap-1.5 my-2">{children}</div>;
}
return (
- <ol className="list-decimal pl-6 my-4 space-y-1.5 marker:text-muted-foreground">
+ <ol className="list-decimal pl-6 my-4 space-y-1.5 marker:text-gray-11">
{children}
</ol>
);
@@ -288,7 +288,7 @@ const INITIAL_COMPONENTS: Partial<Components> = {
href={href}
target={isWebUrl ? '_blank' : undefined}
rel={isWebUrl ? 'noopener noreferrer' : undefined}
- className="text-primary underline underline-offset-2 hover:text-primary/80 transition-colors"
+ className="text-accent-11 underline underline-offset-2 hover:text-accent-11/80 transition-colors"
>
{children}
</a>
@@ -303,7 +303,7 @@ const INITIAL_COMPONENTS: Partial<Components> = {
return (
<span
className={cn(
- 'bg-muted text-foreground rounded px-1.5 py-0.5 font-mono text-[0.85em]',
+ 'bg-gray-3 text-gray-12 rounded px-1.5 py-0.5 font-mono text-[0.85em]',
className,
)}
{...props}
@@ -319,7 +319,7 @@ const INITIAL_COMPONENTS: Partial<Components> = {
return (
<CodeBlock className={className}>
<CodeBlockGroup className="border-b px-3 py-1.5">
- <span className="text-xs text-muted-foreground font-mono">
+ <span className="text-xs text-gray-11 font-mono">
{language !== 'plaintext' ? language : ''}
</span>
<CopyButton
@@ -334,7 +334,7 @@ const INITIAL_COMPONENTS: Partial<Components> = {
);
},
hr: function HrComponent() {
- return <hr className="my-6 border-t border-border/60" />;
+ return <hr className="my-6 border-t border-gray-6/60" />;
},
img: function ImgComponent({ src, alt }) {
if (!src) return null;
@@ -342,7 +342,7 @@ const INITIAL_COMPONENTS: Partial<Components> = {
<img
src={src}
alt={alt ?? ''}
- className="my-4 max-w-full rounded-lg border border-border"
+ className="my-4 max-w-full rounded-lg border border-gray-6"
/>
);
},
diff --git a/packages/web/src/components/prompt-kit/message.tsx b/packages/web/src/components/prompt-kit/message.tsx
index 6e5d9512d62..f0df13f3ec6 100644
--- a/packages/web/src/components/prompt-kit/message.tsx
+++ b/packages/web/src/components/prompt-kit/message.tsx
@@ -59,7 +59,7 @@ const MessageContent = ({
...props
}: MessageContentProps) => {
const classNames = cn(
- 'rounded-lg p-2 text-foreground break-words whitespace-normal',
+ 'rounded-lg p-2 text-gray-12 break-words whitespace-normal',
className,
);
@@ -85,7 +85,7 @@ const MessageActions = ({
...props
}: MessageActionsProps) => (
<div
- className={cn('text-muted-foreground flex items-center gap-2', className)}
+ className={cn('text-gray-11 flex items-center gap-2', className)}
{...props}
>
{children}
diff --git a/packages/web/src/components/prompt-kit/prompt-input.tsx b/packages/web/src/components/prompt-kit/prompt-input.tsx
index 23432869680..4475403d97e 100644
--- a/packages/web/src/components/prompt-kit/prompt-input.tsx
+++ b/packages/web/src/components/prompt-kit/prompt-input.tsx
@@ -91,7 +91,7 @@ function PromptInput({
<div
onClick={handleClick}
className={cn(
- 'border-input bg-background cursor-text rounded-3xl border p-2 shadow-xs',
+ 'border-gray-6 bg-gray-1 cursor-text rounded-3xl border p-2 shadow-xs',
disabled && 'cursor-not-allowed opacity-60',
className,
)}
@@ -168,7 +168,7 @@ function PromptInputTextarea({
onChange={handleChange}
onKeyDown={handleKeyDown}
className={cn(
- 'text-foreground min-h-[44px] w-full resize-none border-none bg-transparent shadow-none outline-none focus-visible:ring-0 focus-visible:ring-offset-0',
+ 'text-gray-12 min-h-[44px] w-full resize-none border-none bg-transparent shadow-none outline-none focus-visible:ring-0 focus-visible:ring-offset-0',
className,
)}
rows={1}
diff --git a/packages/web/src/components/prompt-kit/prompt-suggestion.tsx b/packages/web/src/components/prompt-kit/prompt-suggestion.tsx
index 82488c3525c..48547a40626 100644
--- a/packages/web/src/components/prompt-kit/prompt-suggestion.tsx
+++ b/packages/web/src/components/prompt-kit/prompt-suggestion.tsx
@@ -42,7 +42,7 @@ function PromptSuggestion({
size={size || 'sm'}
className={cn(
'w-full cursor-pointer justify-start rounded-xl py-2',
- 'hover:bg-accent',
+ 'hover:bg-gray-4',
className,
)}
{...props}
@@ -63,7 +63,7 @@ function PromptSuggestion({
size={size || 'sm'}
className={cn(
'w-full cursor-pointer justify-start gap-0 rounded-xl py-2',
- 'hover:bg-accent',
+ 'hover:bg-gray-4',
className,
)}
{...props}
@@ -73,7 +73,7 @@ function PromptSuggestion({
const index = contentLower.indexOf(highlightLower);
if (index === -1)
return (
- <span className="text-muted-foreground whitespace-pre-wrap">
+ <span className="text-gray-11 whitespace-pre-wrap">
{content}
</span>
);
@@ -89,15 +89,15 @@ function PromptSuggestion({
return (
<>
{before && (
- <span className="text-muted-foreground whitespace-pre-wrap">
+ <span className="text-gray-11 whitespace-pre-wrap">
{before}
</span>
)}
- <span className="text-primary font-medium whitespace-pre-wrap">
+ <span className="text-accent-11 font-medium whitespace-pre-wrap">
{actualHighlightedText}
</span>
{after && (
- <span className="text-muted-foreground whitespace-pre-wrap">
+ <span className="text-gray-11 whitespace-pre-wrap">
{after}
</span>
)}
@@ -105,9 +105,7 @@ function PromptSuggestion({
);
})()
) : (
- <span className="text-muted-foreground whitespace-pre-wrap">
- {content}
- </span>
+ <span className="text-gray-11 whitespace-pre-wrap">{content}</span>
)}
</Button>
);
diff --git a/packages/web/src/components/prompt-kit/reasoning.tsx b/packages/web/src/components/prompt-kit/reasoning.tsx
index ac65db5eb2d..92ceb381416 100644
--- a/packages/web/src/components/prompt-kit/reasoning.tsx
+++ b/packages/web/src/components/prompt-kit/reasoning.tsx
@@ -102,7 +102,7 @@ const ReasoningTrigger = React.forwardRef<
}}
{...props}
>
- <span className="text-primary">{children}</span>
+ <span className="text-accent-11">{children}</span>
<div
className={cn(
'transform transition-transform',
@@ -161,7 +161,7 @@ function ReasoningContent({
<div
ref={contentRef}
className={cn(
- 'overflow-hidden transition-[max-height] duration-150 ease-out',
+ 'overflow-hidden transition-[max-height] duration-150',
className,
)}
style={{
@@ -169,10 +169,7 @@ function ReasoningContent({
}}
{...props}
>
- <div
- ref={innerRef}
- className={cn('text-muted-foreground', contentClassName)}
- >
+ <div ref={innerRef} className={cn('text-gray-11', contentClassName)}>
{content}
</div>
</div>
diff --git a/packages/web/src/components/prompt-kit/scroll-button.tsx b/packages/web/src/components/prompt-kit/scroll-button.tsx
index cf474051245..7e3a51afef8 100644
--- a/packages/web/src/components/prompt-kit/scroll-button.tsx
+++ b/packages/web/src/components/prompt-kit/scroll-button.tsx
@@ -24,7 +24,7 @@ function ScrollButton({
variant={variant}
size={size}
className={cn(
- 'h-10 w-10 rounded-full transition-all duration-150 ease-out',
+ 'h-10 w-10 rounded-full transition-all duration-150',
!isAtBottom
? 'translate-y-0 scale-100 opacity-100'
: 'pointer-events-none translate-y-4 scale-95 opacity-0',
diff --git a/packages/web/src/components/prompt-kit/source.tsx b/packages/web/src/components/prompt-kit/source.tsx
index b850eb7bc57..f8983111b4b 100644
--- a/packages/web/src/components/prompt-kit/source.tsx
+++ b/packages/web/src/components/prompt-kit/source.tsx
@@ -1,6 +1,6 @@
import { Globe } from 'lucide-react';
-import { useState } from 'react';
+import { LogoPlate } from '@/components/custom/logo-plate';
import {
HoverCard,
HoverCardContent,
@@ -28,22 +28,19 @@ function getFaviconUrl(url: string): string {
function FaviconOrGlobe({ url, size }: { url: string; size: 'sm' | 'md' }) {
const favicon = getFaviconUrl(url);
- const [failed, setFailed] = useState(false);
const globeSize = size === 'sm' ? 'h-3.5 w-3.5' : 'h-4 w-4';
const imgSize = size === 'sm' ? 'h-4 w-4' : 'h-5 w-5';
- if (!favicon || failed) {
- return (
- <Globe className={cn(globeSize, 'shrink-0 text-muted-foreground')} />
- );
+ if (!favicon) {
+ return <Globe className={cn(globeSize, 'shrink-0 text-gray-11')} />;
}
return (
- <img
+ <LogoPlate
src={favicon}
alt=""
- className={cn(imgSize, 'shrink-0 rounded-sm')}
- onError={() => setFailed(true)}
+ className={cn(imgSize, 'rounded-sm')}
+ fallback={<Globe className={globeSize} />}
/>
);
}
@@ -59,12 +56,12 @@ function Source({ href, title, className }: SourceProps) {
target="_blank"
rel="noopener noreferrer"
className={cn(
- 'inline-flex items-center gap-1.5 rounded-full border bg-muted/50 px-2.5 py-1 text-xs transition-colors hover:bg-muted no-underline',
+ 'inline-flex items-center gap-1.5 rounded-full border bg-gray-3/50 px-2.5 py-1 text-xs transition-colors hover:bg-gray-3 no-underline',
className,
)}
>
<FaviconOrGlobe url={href} size="sm" />
- <span className="max-w-[200px] truncate text-foreground/80">
+ <span className="max-w-[200px] truncate text-gray-12/80">
{domain}
</span>
</a>
@@ -73,16 +70,14 @@ function Source({ href, title, className }: SourceProps) {
<div className="flex flex-col gap-2">
<div className="flex items-center gap-2">
<FaviconOrGlobe url={href} size="md" />
- <span className="text-xs text-muted-foreground truncate">
- {domain}
- </span>
+ <span className="text-xs text-gray-11 truncate">{domain}</span>
</div>
{title && (
<p className="text-sm font-medium leading-snug line-clamp-2">
{title}
</p>
)}
- <p className="text-xs text-muted-foreground truncate">{href}</p>
+ <p className="text-xs text-gray-11 truncate">{href}</p>
</div>
</HoverCardContent>
</HoverCard>
diff --git a/packages/web/src/components/providers/embed-provider.tsx b/packages/web/src/components/providers/embed-provider.tsx
index 3e06459ea82..4cd12510c32 100644
--- a/packages/web/src/components/providers/embed-provider.tsx
+++ b/packages/web/src/components/providers/embed-provider.tsx
@@ -70,7 +70,7 @@ const EmbeddingProvider = ({ children }: EmbeddingProviderProps) => {
>
<div
className={cn({
- 'bg-black/80 h-screen w-screen':
+ 'bg-scrim h-screen w-screen':
state.useDarkBackground && state.isEmbedded,
})}
>
diff --git a/packages/web/src/components/providers/theme-provider.tsx b/packages/web/src/components/providers/theme-provider.tsx
index 8595e9ee2f6..56b7ebfbb9e 100644
--- a/packages/web/src/components/providers/theme-provider.tsx
+++ b/packages/web/src/components/providers/theme-provider.tsx
@@ -2,61 +2,31 @@ import { createContext, useContext, useEffect, useState } from 'react';
import * as RippleHook from 'use-ripple-hook';
import { flagsHooks } from '@/hooks/flags-hooks';
-import { colorsUtils } from '@/lib/color-utils';
+import { brandSeed } from '@/lib/brand-seed';
-type Theme = 'dark' | 'light' | 'system';
-
-type ResolvedTheme = 'dark' | 'light';
-
-type ThemeProviderProps = {
- children: React.ReactNode;
- defaultTheme?: Theme;
- storageKey?: string;
-};
-
-type ThemeProviderState = {
- theme: Theme;
- setTheme: (theme: Theme) => void;
- setThemeWithoutPersisting: (theme: Theme) => void;
- forceLightMode: boolean;
- setForceLightMode: (value: boolean) => void;
-};
-
-const initialState: ThemeProviderState = {
- theme: 'light',
- setTheme: () => null,
- setThemeWithoutPersisting: () => null,
- forceLightMode: false,
- setForceLightMode: () => null,
-};
-
-const ThemeProviderContext = createContext<ThemeProviderState>(initialState);
-
-const setFavicon = (url: string) => {
- document.querySelectorAll("link[rel*='icon']").forEach((el) => el.remove());
- const link = document.createElement('link');
- link.rel = 'icon';
- link.href = url;
- document.head.appendChild(link);
-};
+const ThemeProviderContext = createContext<ThemeProviderState | undefined>(
+ undefined,
+);
const systemThemeQuery = '(prefers-color-scheme: dark)';
-const getSystemTheme = (): ResolvedTheme =>
- window.matchMedia(systemThemeQuery).matches ? 'dark' : 'light';
-
export function ThemeProvider({
children,
- defaultTheme = 'light',
+ defaultPreference = 'light',
storageKey = 'ap-ui-theme',
...props
}: ThemeProviderProps) {
- const [theme, setTheme] = useState<Theme>(
- () => (localStorage.getItem(storageKey) as Theme) || defaultTheme,
+ const [preference, setPreference] = useState<ThemePreference>(
+ () =>
+ parsePreference({ value: localStorage.getItem(storageKey) }) ??
+ defaultPreference,
);
- const [forceLightMode, setForceLightMode] = useState(false);
const [systemTheme, setSystemTheme] = useState<ResolvedTheme>(getSystemTheme);
const branding = flagsHooks.useWebsiteBranding();
+
+ const resolvedTheme: ResolvedTheme =
+ preference === 'system' ? systemTheme : preference;
+
useEffect(() => {
const mediaQuery = window.matchMedia(systemThemeQuery);
const handleChange = (event: MediaQueryListEvent) => {
@@ -65,65 +35,33 @@ export function ThemeProvider({
mediaQuery.addEventListener('change', handleChange);
return () => mediaQuery.removeEventListener('change', handleChange);
}, []);
+
+ useEffect(() => {
+ document.documentElement.setAttribute('data-theme', resolvedTheme);
+ }, [resolvedTheme]);
+
useEffect(() => {
if (!branding) {
console.warn('Website brand is not defined');
return;
}
- const root = window.document.documentElement;
-
- const resolvedTheme: ResolvedTheme = forceLightMode
- ? 'light'
- : theme === 'system'
- ? systemTheme
- : theme;
- root.classList.remove('light', 'dark');
document.title = branding.websiteName;
- document.documentElement.style.setProperty(
- '--primary',
- colorsUtils.hexToHslString(branding.colors.primary.default),
- );
-
setFavicon(branding.logos.favIconUrl);
- switch (resolvedTheme) {
- case 'light': {
- document.documentElement.style.setProperty(
- '--primary-100',
- colorsUtils.hexToHslString(branding.colors.primary.light),
- );
- document.documentElement.style.setProperty(
- '--primary-300',
- colorsUtils.hexToHslString(branding.colors.primary.dark),
- );
- break;
- }
- case 'dark': {
- document.documentElement.style.setProperty(
- '--primary-100',
- colorsUtils.hexToHslString(branding.colors.primary.dark),
- );
- document.documentElement.style.setProperty(
- '--primary-300',
- colorsUtils.hexToHslString(branding.colors.primary.light),
- );
- break;
- }
- default:
- break;
- }
- root.classList.add(resolvedTheme);
- }, [theme, branding, forceLightMode, systemTheme]);
+ brandSeed.apply({
+ primaryColor: branding.colors.primary.default,
+ statusColors: branding.statusColors,
+ });
+ }, [branding]);
const value = {
- theme,
- setTheme: (theme: Theme) => {
- localStorage.setItem(storageKey, theme);
- setTheme(theme);
+ preference,
+ resolvedTheme,
+ setPreference: (next: ThemePreference) => {
+ localStorage.setItem(storageKey, next);
+ setPreference(next);
},
- setThemeWithoutPersisting: setTheme,
- forceLightMode,
- setForceLightMode,
+ setPreferenceWithoutPersisting: setPreference,
};
return (
@@ -143,12 +81,50 @@ export const useTheme = () => {
};
export const useApRipple = () => {
- const { theme } = useTheme();
+ const { resolvedTheme } = useTheme();
return RippleHook.default({
color:
- theme === 'dark'
+ resolvedTheme === 'dark'
? 'rgba(233, 233, 233, 0.2)'
: 'rgba(155, 155, 155, 0.2)',
cancelAutomatically: true,
});
};
+
+const setFavicon = (url: string) => {
+ document.querySelectorAll("link[rel*='icon']").forEach((el) => el.remove());
+ const link = document.createElement('link');
+ link.rel = 'icon';
+ link.href = url;
+ document.head.appendChild(link);
+};
+
+const getSystemTheme = (): ResolvedTheme =>
+ window.matchMedia(systemThemeQuery).matches ? 'dark' : 'light';
+
+function parsePreference({
+ value,
+}: {
+ value: string | null;
+}): ThemePreference | null {
+ return THEME_PREFERENCES.find((preference) => preference === value) ?? null;
+}
+
+const THEME_PREFERENCES: ThemePreference[] = ['dark', 'light', 'system'];
+
+export type ThemePreference = 'dark' | 'light' | 'system';
+
+export type ResolvedTheme = 'dark' | 'light';
+
+type ThemeProviderProps = {
+ children: React.ReactNode;
+ defaultPreference?: ThemePreference;
+ storageKey?: string;
+};
+
+type ThemeProviderState = {
+ preference: ThemePreference;
+ resolvedTheme: ResolvedTheme;
+ setPreference: (preference: ThemePreference) => void;
+ setPreferenceWithoutPersisting: (preference: ThemePreference) => void;
+};
diff --git a/packages/web/src/components/ui/accordion.tsx b/packages/web/src/components/ui/accordion.tsx
index 2cc91126cda..654d0a33608 100644
--- a/packages/web/src/components/ui/accordion.tsx
+++ b/packages/web/src/components/ui/accordion.tsx
@@ -40,13 +40,13 @@ function AccordionTrigger({
<AccordionPrimitive.Trigger
data-slot="accordion-trigger"
className={cn(
- 'flex flex-1 items-center justify-between gap-4 rounded-md px-4 py-3 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180',
+ 'flex flex-1 items-center justify-between gap-4 rounded-md px-4 py-3 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-accent-8 focus-visible:ring-[3px] focus-visible:ring-accent-8/50 disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180',
className,
)}
{...props}
>
{children}
- <ChevronDownIcon className="pointer-events-none size-4 shrink-0 text-muted-foreground transition-transform duration-200" />
+ <ChevronDownIcon className="pointer-events-none size-4 shrink-0 text-gray-11 transition-transform duration-200" />
</AccordionPrimitive.Trigger>
</AccordionPrimitive.Header>
);
diff --git a/packages/web/src/components/ui/alert.tsx b/packages/web/src/components/ui/alert.tsx
index 80663dfac30..6dbbfa6f842 100644
--- a/packages/web/src/components/ui/alert.tsx
+++ b/packages/web/src/components/ui/alert.tsx
@@ -8,15 +8,15 @@ const alertVariants = cva(
{
variants: {
variant: {
- default: 'bg-card text-card-foreground',
+ default: 'bg-panel text-gray-12',
warning:
- 'border-warning/50 text-warning-700 dark:border-warning dark:text-warning-300 *:data-[slot=alert-description]:text-warning-700/90 dark:*:data-[slot=alert-description]:text-warning-300/90 *:[svg]:text-warning',
+ 'border-warning-7 text-warning-11 *:data-[slot=alert-description]:text-warning-11 *:[svg]:text-warning-11',
destructive:
- 'text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current',
+ 'text-danger-11 bg-panel *:data-[slot=alert-description]:text-danger-11 *:[svg]:text-current',
primary:
- 'border-primary/50 text-primary bg-primary-100/10 dark:border-primary *:data-[slot=alert-description]:text-primary/90 *:[svg]:text-primary',
+ 'border-accent-7 text-accent-11 bg-accent-3 *:data-[slot=alert-description]:text-accent-11 *:[svg]:text-accent-11',
success:
- 'border-success/50 text-success-700 bg-success-100/10 dark:border-success *:data-[slot=alert-description]:text-success-700/90 *:[svg]:text-success-700',
+ 'border-success-7 text-success-11 bg-success-3 *:data-[slot=alert-description]:text-success-11 *:[svg]:text-success-11',
},
},
defaultVariants: {
@@ -45,7 +45,7 @@ function AlertTitle({ className, ...props }: React.ComponentProps<'div'>) {
<div
data-slot="alert-title"
className={cn(
- 'font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground',
+ 'font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-gray-12',
className,
)}
{...props}
@@ -61,7 +61,7 @@ function AlertDescription({
<div
data-slot="alert-description"
className={cn(
- 'text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground',
+ 'text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-gray-12',
className,
)}
{...props}
diff --git a/packages/web/src/components/ui/avatar.tsx b/packages/web/src/components/ui/avatar.tsx
index 4110336586d..56a814fc2e6 100644
--- a/packages/web/src/components/ui/avatar.tsx
+++ b/packages/web/src/components/ui/avatar.tsx
@@ -44,7 +44,7 @@ function AvatarFallback({
<AvatarPrimitive.Fallback
data-slot="avatar-fallback"
className={cn(
- 'flex size-full items-center justify-center rounded-full border-none bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs',
+ 'flex size-full items-center justify-center rounded-full border-none bg-gray-3 text-sm text-gray-11 group-data-[size=sm]/avatar:text-xs',
className,
)}
{...props}
@@ -57,7 +57,7 @@ function AvatarBadge({ className, ...props }: React.ComponentProps<'span'>) {
<span
data-slot="avatar-badge"
className={cn(
- 'absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground ring-2 ring-background select-none',
+ 'absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-accent-9 text-on-accent ring-2 ring-gray-1 select-none',
'group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden',
'group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2',
'group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2',
@@ -73,7 +73,7 @@ function AvatarGroup({ className, ...props }: React.ComponentProps<'div'>) {
<div
data-slot="avatar-group"
className={cn(
- 'group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background',
+ 'group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-gray-1',
className,
)}
{...props}
@@ -89,7 +89,7 @@ function AvatarGroupCount({
<div
data-slot="avatar-group-count"
className={cn(
- 'relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3',
+ 'relative flex size-8 shrink-0 items-center justify-center rounded-full bg-gray-3 text-sm text-gray-11 ring-2 ring-gray-1 group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3',
className,
)}
{...props}
diff --git a/packages/web/src/components/ui/badge.tsx b/packages/web/src/components/ui/badge.tsx
index 9bddd74fb06..84f66a63942 100644
--- a/packages/web/src/components/ui/badge.tsx
+++ b/packages/web/src/components/ui/badge.tsx
@@ -5,26 +5,23 @@ import * as React from 'react';
import { cn } from '@/lib/utils';
const badgeVariants = cva(
- 'inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-1.5 py-px text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3',
+ 'inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-1.5 py-px text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-accent-8 focus-visible:ring-[3px] focus-visible:ring-accent-8/50 aria-invalid:border-danger-9 aria-invalid:ring-danger-9/20 dark:aria-invalid:ring-danger-9/40 [&>svg]:pointer-events-none [&>svg]:size-3',
{
variants: {
variant: {
- default: 'bg-primary text-primary-foreground [a&]:hover:bg-primary/90',
- secondary:
- 'bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90',
- destructive:
- 'bg-destructive-50 text-destructive-700 border-destructive-600 dark:bg-destructive-950 dark:text-destructive-300 dark:border-destructive-400',
- success:
- 'bg-success-50 text-success-700 border-success-600 dark:bg-success-950 dark:text-success-300 dark:border-success-400',
- warning:
- 'bg-warning-50 text-warning-700 border-warning-600 dark:bg-warning-950 dark:text-warning-300 dark:border-warning-400',
- info: 'bg-blue-50 text-blue-700 border-blue-600 dark:bg-blue-950 dark:text-blue-300 dark:border-blue-400',
- accent: 'bg-accent text-accent-foreground border-border',
+ default: 'bg-accent-9 text-on-accent [a&]:hover:bg-accent-9/90',
+ secondary: 'bg-gray-3 text-gray-12 [a&]:hover:bg-gray-4',
+ destructive: 'bg-danger-3 text-danger-11 border-danger-7',
+ success: 'bg-success-3 text-success-11 border-success-7',
+ warning: 'bg-warning-3 text-warning-11 border-warning-7',
+ info: 'bg-accent-3 text-accent-11 border-accent-7',
+ neutral: 'bg-gray-3 text-gray-11 border-gray-7',
+ accent: 'bg-gray-4 text-gray-12 border-gray-6',
outline:
- 'border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground',
- ghost: '[a&]:hover:bg-accent [a&]:hover:text-accent-foreground',
- link: 'text-primary underline-offset-4 [a&]:hover:underline',
- inverted: 'text-primary bg-primary/10',
+ 'border-gray-6 text-gray-12 [a&]:hover:bg-gray-4 [a&]:hover:text-gray-12',
+ ghost: '[a&]:hover:bg-gray-4 [a&]:hover:text-gray-12',
+ link: 'text-accent-11 underline-offset-4 [a&]:hover:underline',
+ inverted: 'text-accent-11 bg-accent-3',
},
},
defaultVariants: {
diff --git a/packages/web/src/components/ui/breadcrumb.tsx b/packages/web/src/components/ui/breadcrumb.tsx
index eecda8f1942..32f6ee873bf 100644
--- a/packages/web/src/components/ui/breadcrumb.tsx
+++ b/packages/web/src/components/ui/breadcrumb.tsx
@@ -13,7 +13,7 @@ function BreadcrumbList({ className, ...props }: React.ComponentProps<'ol'>) {
<ol
data-slot="breadcrumb-list"
className={cn(
- 'flex flex-wrap items-center gap-1.5 text-sm break-words text-muted-foreground sm:gap-2.5',
+ 'flex flex-wrap items-center gap-1.5 text-sm break-words text-gray-11 sm:gap-2.5',
className,
)}
{...props}
@@ -43,7 +43,7 @@ function BreadcrumbLink({
return (
<Comp
data-slot="breadcrumb-link"
- className={cn('transition-colors hover:text-foreground', className)}
+ className={cn('transition-colors hover:text-gray-12', className)}
{...props}
/>
);
@@ -56,7 +56,7 @@ function BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>) {
role="link"
aria-disabled="true"
aria-current="page"
- className={cn('font-normal text-foreground', className)}
+ className={cn('font-normal text-gray-12', className)}
{...props}
/>
);
diff --git a/packages/web/src/components/ui/button.tsx b/packages/web/src/components/ui/button.tsx
index 067909740ec..9caa9b62d8d 100644
--- a/packages/web/src/components/ui/button.tsx
+++ b/packages/web/src/components/ui/button.tsx
@@ -7,25 +7,24 @@ import { LoadingSpinner } from '@/components/custom/spinner';
import { cn } from '@/lib/utils';
const buttonVariants = cva(
- "inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-normal whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-normal whitespace-nowrap transition-all outline-none focus-visible:border-accent-8 focus-visible:ring-[3px] focus-visible:ring-accent-8/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-danger-9 aria-invalid:ring-danger-9/20 dark:aria-invalid:ring-danger-9/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
{
variants: {
variant: {
default:
- 'bg-primary stroke-background text-primary-foreground enabled:hover:bg-primary/90',
+ 'bg-accent-9 stroke-on-accent text-on-accent enabled:hover:bg-accent-9/90',
basic:
- 'text-primary font-medium underline-offset-4 enabled:hover:bg-accent',
+ 'text-accent-11 font-medium underline-offset-4 enabled:hover:bg-gray-4',
secondary:
- 'text-secondary-foreground bg-secondary enabled:hover:bg-secondary/80 enabled:hover:text-secondary-foreground',
+ 'text-gray-12 bg-gray-3 enabled:hover:bg-gray-4 enabled:hover:text-gray-12',
destructive:
- 'bg-destructive text-white enabled:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40',
+ 'bg-danger-9 text-on-danger enabled:hover:bg-danger-9/90 focus-visible:ring-danger-9/20 dark:focus-visible:ring-danger-9/40',
outline:
- 'border-input bg-background enabled:hover:bg-accent enabled:hover:text-accent-foreground border',
- accent: 'bg-accent text-accent-foreground enabled:hover:bg-accent/80',
- ghost:
- 'hover:bg-gray-300/30 hover:text-accent-foreground dark:hover:bg-gray-300/10',
- link: 'text-primary underline-offset-4 hover:underline',
- transparent: 'text-primary enabled:hover:bg-transparent',
+ 'border-gray-6 bg-gray-1 enabled:hover:bg-gray-4 enabled:hover:text-gray-12 border',
+ accent: 'bg-gray-4 text-gray-12 enabled:hover:bg-gray-5',
+ ghost: 'hover:bg-gray-4 hover:text-gray-12',
+ link: 'text-accent-11 underline-offset-4 hover:underline',
+ transparent: 'text-accent-11 enabled:hover:bg-transparent',
},
size: {
default: 'h-9 px-3 py-2 has-[>svg]:px-2.5',
@@ -95,8 +94,9 @@ function renderButtonContent(
return (
<LoadingSpinner
className={cn('size-5', {
- 'stroke-background': variant === 'default' || variant === 'secondary',
- 'stroke-foreground': variant !== 'default' && variant !== 'secondary',
+ 'stroke-on-accent': variant === 'default',
+ 'stroke-on-danger': variant === 'destructive',
+ 'stroke-gray-12': variant !== 'default' && variant !== 'destructive',
})}
/>
);
@@ -110,8 +110,8 @@ function renderButtonContent(
shortcutKey={keyboardShortcut}
withCtrl={true}
className={cn({
- 'text-primary-foreground/70': variant === 'default',
- 'text-white/70': variant === 'destructive',
+ 'text-on-accent/70': variant === 'default',
+ 'text-on-danger/70': variant === 'destructive',
})}
/>
</div>
diff --git a/packages/web/src/components/ui/calendar.tsx b/packages/web/src/components/ui/calendar.tsx
index 0d91c90a50f..6ad38ce0317 100644
--- a/packages/web/src/components/ui/calendar.tsx
+++ b/packages/web/src/components/ui/calendar.tsx
@@ -31,7 +31,7 @@ function Calendar({
<DayPicker
showOutsideDays={showOutsideDays}
className={cn(
- 'group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent',
+ 'group/calendar bg-gray-1 p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent',
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
className,
@@ -72,24 +72,24 @@ function Calendar({
defaultClassNames.dropdowns,
),
dropdown_root: cn(
- 'relative rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50',
+ 'relative rounded-md border border-gray-6 shadow-xs has-focus:border-accent-8 has-focus:ring-[3px] has-focus:ring-accent-8/50',
defaultClassNames.dropdown_root,
),
dropdown: cn(
- 'absolute inset-0 bg-popover opacity-0',
+ 'absolute inset-0 bg-panel opacity-0',
defaultClassNames.dropdown,
),
caption_label: cn(
'font-medium select-none',
captionLayout === 'label'
? 'text-sm'
- : 'flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground',
+ : 'flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-gray-11',
defaultClassNames.caption_label,
),
table: 'w-full border-collapse',
weekdays: cn('flex', defaultClassNames.weekdays),
weekday: cn(
- 'flex-1 rounded-md text-[0.8rem] font-normal text-muted-foreground select-none',
+ 'flex-1 rounded-md text-[0.8rem] font-normal text-gray-11 select-none',
defaultClassNames.weekday,
),
week: cn('mt-2 flex w-full', defaultClassNames.week),
@@ -98,7 +98,7 @@ function Calendar({
defaultClassNames.week_number_header,
),
week_number: cn(
- 'text-[0.8rem] text-muted-foreground select-none',
+ 'text-[0.8rem] text-gray-11 select-none',
defaultClassNames.week_number,
),
day: cn(
@@ -109,23 +109,20 @@ function Calendar({
defaultClassNames.day,
),
range_start: cn(
- 'rounded-l-md bg-accent',
+ 'rounded-l-md bg-gray-4',
defaultClassNames.range_start,
),
range_middle: cn('rounded-none', defaultClassNames.range_middle),
- range_end: cn('rounded-r-md bg-accent', defaultClassNames.range_end),
+ range_end: cn('rounded-r-md bg-gray-4', defaultClassNames.range_end),
today: cn(
- 'rounded-md bg-accent text-accent-foreground data-[selected=true]:rounded-none',
+ 'rounded-md bg-gray-4 text-gray-12 data-[selected=true]:rounded-none',
defaultClassNames.today,
),
outside: cn(
- 'text-muted-foreground aria-selected:text-muted-foreground',
+ 'text-gray-11 aria-selected:text-gray-11',
defaultClassNames.outside,
),
- disabled: cn(
- 'text-muted-foreground opacity-50',
- defaultClassNames.disabled,
- ),
+ disabled: cn('text-gray-11 opacity-50', defaultClassNames.disabled),
hidden: cn('invisible', defaultClassNames.hidden),
...classNames,
}}
@@ -206,7 +203,7 @@ function CalendarDayButton({
data-range-end={modifiers.range_end}
data-range-middle={modifiers.range_middle}
className={cn(
- 'flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-accent-foreground [&>span]:text-xs [&>span]:opacity-70',
+ 'flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-accent-8 group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-accent-8/50 data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-end=true]:bg-accent-9 data-[range-end=true]:text-on-accent data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-gray-4 data-[range-middle=true]:text-gray-12 data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md data-[range-start=true]:bg-accent-9 data-[range-start=true]:text-on-accent data-[selected-single=true]:bg-accent-9 data-[selected-single=true]:text-on-accent dark:hover:text-gray-12 [&>span]:text-xs [&>span]:opacity-70',
defaultClassNames.day,
className,
)}
diff --git a/packages/web/src/components/ui/card.tsx b/packages/web/src/components/ui/card.tsx
index 123890c8bbd..7a3e632a1ac 100644
--- a/packages/web/src/components/ui/card.tsx
+++ b/packages/web/src/components/ui/card.tsx
@@ -3,15 +3,15 @@ import * as React from 'react';
import { cn } from '@/lib/utils';
-const cardVariants = cva('rounded-lg border bg-background text-foreground', {
+const cardVariants = cva('rounded-lg border bg-gray-1 text-gray-12', {
variants: {
variant: {
default: 'shadow-xs',
interactive:
- 'cursor-pointer hover:border-gray-400 transition-colors duration-200 flex flex-col justify-between',
+ 'cursor-pointer hover:border-gray-7 transition-colors duration-200 flex flex-col justify-between',
},
isSelected: {
- true: 'border-gray-400',
+ true: 'border-gray-7',
false: '',
},
},
@@ -55,7 +55,7 @@ function CardDescription({ className, ...props }: React.ComponentProps<'div'>) {
return (
<div
data-slot="card-description"
- className={cn('text-sm text-muted-foreground', className)}
+ className={cn('text-sm text-gray-11', className)}
{...props}
/>
);
diff --git a/packages/web/src/components/ui/chart.tsx b/packages/web/src/components/ui/chart.tsx
index 512f059bf64..cd89492d2b7 100644
--- a/packages/web/src/components/ui/chart.tsx
+++ b/packages/web/src/components/ui/chart.tsx
@@ -4,7 +4,7 @@ import * as RechartsPrimitive from 'recharts';
import { cn } from '@/lib/utils';
// Format: { THEME_NAME: CSS_SELECTOR }
-const THEMES = { light: '', dark: '.dark' } as const;
+const THEMES = { light: '', dark: "[data-theme='dark']" } as const;
export type ChartConfig = {
[k in string]: {
@@ -53,7 +53,7 @@ function ChartContainer({
data-slot="chart"
data-chart={chartId}
className={cn(
- "flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",
+ "flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-gray-11 [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-gray-6/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-gray-6 [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-gray-6 [&_.recharts-radial-bar-background-sector]:fill-gray-3 [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-gray-3 [&_.recharts-reference-line_[stroke='#ccc']]:stroke-gray-6 [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",
className,
)}
{...props}
@@ -171,7 +171,7 @@ function ChartTooltipContent({
return (
<div
className={cn(
- 'grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl',
+ 'grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-gray-6/50 bg-panel px-2.5 py-1.5 text-xs shadow-xl',
className,
)}
>
@@ -188,7 +188,7 @@ function ChartTooltipContent({
<div
key={item.dataKey}
className={cn(
- 'flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground',
+ 'flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-gray-11',
indicator === 'dot' && 'items-center',
)}
>
@@ -228,12 +228,12 @@ function ChartTooltipContent({
>
<div className="grid gap-1.5">
{nestLabel ? tooltipLabel : null}
- <span className="text-muted-foreground">
+ <span className="text-gray-11">
{itemConfig?.label || item.name}
</span>
</div>
{item.value && (
- <span className="font-mono font-medium text-foreground tabular-nums">
+ <span className="font-mono font-medium text-gray-12 tabular-nums">
{item.value.toLocaleString()}
</span>
)}
@@ -285,7 +285,7 @@ function ChartLegendContent({
<div
key={item.value}
className={cn(
- 'flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground',
+ 'flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-gray-11',
)}
>
{itemConfig?.icon && !hideIcon ? (
diff --git a/packages/web/src/components/ui/checkbox.tsx b/packages/web/src/components/ui/checkbox.tsx
index 925e5b1a330..5eb9c2942f1 100644
--- a/packages/web/src/components/ui/checkbox.tsx
+++ b/packages/web/src/components/ui/checkbox.tsx
@@ -8,14 +8,14 @@ import * as React from 'react';
import { cn } from '@/lib/utils';
const checkboxVariants = cva(
- 'peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40',
+ 'peer size-4 shrink-0 rounded-[4px] border border-gray-8 shadow-xs transition-shadow outline-none focus-visible:border-accent-8 focus-visible:ring-[3px] focus-visible:ring-accent-8/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-danger-9 aria-invalid:ring-danger-9/20 dark:bg-gray-6/30 dark:aria-invalid:ring-danger-9/40',
{
variants: {
variant: {
primary:
- 'data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground data-[state=indeterminate]:border-primary',
+ 'data-[state=checked]:bg-accent-9 data-[state=checked]:text-on-accent dark:data-[state=checked]:bg-accent-9 data-[state=checked]:border-accent-9 data-[state=indeterminate]:bg-accent-9 data-[state=indeterminate]:text-on-accent data-[state=indeterminate]:border-accent-9',
secondary:
- 'data-[state=checked]:bg-secondary data-[state=checked]:text-secondary-foreground dark:data-[state=checked]:bg-secondary data-[state=checked]:border-secondary data-[state=indeterminate]:bg-secondary data-[state=indeterminate]:text-secondary-foreground data-[state=indeterminate]:border-secondary',
+ 'data-[state=checked]:bg-gray-12 data-[state=checked]:text-gray-1 data-[state=checked]:border-gray-12 data-[state=indeterminate]:bg-gray-12 data-[state=indeterminate]:text-gray-1 data-[state=indeterminate]:border-gray-12',
},
},
defaultVariants: {
diff --git a/packages/web/src/components/ui/command.tsx b/packages/web/src/components/ui/command.tsx
index b843403da78..c35f7038db5 100644
--- a/packages/web/src/components/ui/command.tsx
+++ b/packages/web/src/components/ui/command.tsx
@@ -19,7 +19,7 @@ function Command({
<CommandPrimitive
data-slot="command"
className={cn(
- 'flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground',
+ 'flex h-full w-full flex-col overflow-hidden rounded-md bg-panel text-gray-12',
className,
)}
{...props}
@@ -60,7 +60,7 @@ function CommandDialog({
shouldFilter={shouldFilter}
value={commandValue}
onValueChange={onCommandValueChange}
- className="**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5"
+ className="**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-11 [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5"
>
{children}
</Command>
@@ -88,7 +88,7 @@ function CommandInput({
<CommandPrimitive.Input
data-slot="command-input"
className={cn(
- 'flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50',
+ 'flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-gray-11 disabled:cursor-not-allowed disabled:opacity-50',
{ 'cursor-not-allowed opacity-50': props.disabled },
className,
)}
@@ -134,7 +134,7 @@ function CommandGroup({
<CommandPrimitive.Group
data-slot="command-group"
className={cn(
- 'overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground',
+ 'overflow-hidden p-1 text-gray-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-11',
className,
)}
{...props}
@@ -149,7 +149,7 @@ function CommandSeparator({
return (
<CommandPrimitive.Separator
data-slot="command-separator"
- className={cn('-mx-1 h-px bg-border', className)}
+ className={cn('-mx-1 h-px bg-gray-6', className)}
{...props}
/>
);
@@ -165,7 +165,7 @@ function CommandItem({
data-slot="command-item"
disabled={disabled}
className={cn(
- "relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
+ "relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[selected=true]:bg-gray-4 data-[selected=true]:text-gray-12 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-gray-11",
{ 'pointer-events-none opacity-50': disabled },
className,
)}
@@ -181,10 +181,7 @@ function CommandShortcut({
return (
<span
data-slot="command-shortcut"
- className={cn(
- 'ml-auto text-xs tracking-widest text-muted-foreground',
- className,
- )}
+ className={cn('ml-auto text-xs tracking-widest text-gray-11', className)}
{...props}
/>
);
diff --git a/packages/web/src/components/ui/context-menu.tsx b/packages/web/src/components/ui/context-menu.tsx
index 88e57a1aca4..e426ae4040e 100644
--- a/packages/web/src/components/ui/context-menu.tsx
+++ b/packages/web/src/components/ui/context-menu.tsx
@@ -66,7 +66,7 @@ function ContextMenuSubTrigger({
data-slot="context-menu-sub-trigger"
data-inset={inset}
className={cn(
- "flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-gray-4 focus:text-gray-12 data-[inset]:pl-8 data-[state=open]:bg-gray-4 data-[state=open]:text-gray-12 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className,
)}
{...props}
@@ -85,7 +85,7 @@ function ContextMenuSubContent({
<ContextMenuPrimitive.SubContent
data-slot="context-menu-sub-content"
className={cn(
- 'z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
+ 'z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border bg-panel p-1 text-gray-12 shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
className,
)}
{...props}
@@ -102,7 +102,7 @@ function ContextMenuContent({
<ContextMenuPrimitive.Content
data-slot="context-menu-content"
className={cn(
- 'z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
+ 'z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-panel p-1 text-gray-12 shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
className,
)}
{...props}
@@ -126,7 +126,7 @@ function ContextMenuItem({
data-inset={inset}
data-variant={variant}
className={cn(
- "relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive!",
+ "relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-gray-4 focus:text-gray-12 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-danger-11 data-[variant=destructive]:focus:bg-danger-3 data-[variant=destructive]:focus:text-danger-11 dark:data-[variant=destructive]:focus:bg-danger-5 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-danger-11!",
className,
)}
{...props}
@@ -144,7 +144,7 @@ function ContextMenuCheckboxItem({
<ContextMenuPrimitive.CheckboxItem
data-slot="context-menu-checkbox-item"
className={cn(
- "relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-gray-4 focus:text-gray-12 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className,
)}
checked={checked}
@@ -169,7 +169,7 @@ function ContextMenuRadioItem({
<ContextMenuPrimitive.RadioItem
data-slot="context-menu-radio-item"
className={cn(
- "relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-gray-4 focus:text-gray-12 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className,
)}
{...props}
@@ -196,7 +196,7 @@ function ContextMenuLabel({
data-slot="context-menu-label"
data-inset={inset}
className={cn(
- 'px-2 py-1.5 text-sm font-medium text-foreground data-[inset]:pl-8',
+ 'px-2 py-1.5 text-sm font-medium text-gray-12 data-[inset]:pl-8',
className,
)}
{...props}
@@ -211,7 +211,7 @@ function ContextMenuSeparator({
return (
<ContextMenuPrimitive.Separator
data-slot="context-menu-separator"
- className={cn('-mx-1 my-1 h-px bg-border', className)}
+ className={cn('-mx-1 my-1 h-px bg-gray-6', className)}
{...props}
/>
);
diff --git a/packages/web/src/components/ui/dialog.tsx b/packages/web/src/components/ui/dialog.tsx
index 806916d7feb..08e35f7f28d 100644
--- a/packages/web/src/components/ui/dialog.tsx
+++ b/packages/web/src/components/ui/dialog.tsx
@@ -38,7 +38,7 @@ function DialogOverlay({
data-slot="dialog-overlay"
tabIndex={-1}
className={cn(
- 'fixed inset-0 z-50 bg-black/80 outline-hidden data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0',
+ 'fixed inset-0 z-50 bg-scrim outline-hidden data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0',
className,
)}
{...props}
@@ -60,7 +60,7 @@ function DialogContent({
<DialogPrimitive.Content
data-slot="dialog-content"
className={cn(
- 'fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-5 shadow-lg duration-200 outline-hidden data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]',
+ 'fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-panel p-5 shadow-lg duration-200 outline-hidden data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]',
className,
)}
{...props}
@@ -69,7 +69,7 @@ function DialogContent({
{showCloseButton && (
<DialogPrimitive.Close
data-slot="dialog-close"
- className="absolute top-4 right-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
+ className="absolute top-4 right-4 rounded-sm opacity-70 ring-offset-gray-1 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-accent-8 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-gray-4 data-[state=open]:text-gray-11 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
>
<XIcon />
<span className="sr-only">Close</span>
@@ -141,7 +141,7 @@ function DialogDescription({
return (
<DialogPrimitive.Description
data-slot="dialog-description"
- className={cn('text-sm text-muted-foreground', className)}
+ className={cn('text-sm text-gray-11', className)}
{...props}
/>
);
diff --git a/packages/web/src/components/ui/drawer.tsx b/packages/web/src/components/ui/drawer.tsx
index 79d990c99a2..150b7ebd472 100644
--- a/packages/web/src/components/ui/drawer.tsx
+++ b/packages/web/src/components/ui/drawer.tsx
@@ -58,7 +58,7 @@ function DrawerOverlay({
<DrawerPrimitive.Overlay
data-slot="drawer-overlay"
className={cn(
- 'fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0',
+ 'fixed inset-0 z-50 bg-scrim data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0',
className,
)}
{...props}
@@ -87,7 +87,7 @@ function DrawerContent({
<DrawerPrimitive.Content
data-slot="drawer-content"
className={cn(
- 'group/drawer-content bg-background fixed z-50 flex h-auto flex-col shadow-lg outline-hidden select-text',
+ 'group/drawer-content bg-panel fixed z-50 flex h-auto flex-col shadow-lg outline-hidden select-text',
'data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b',
'data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t',
'data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:shadow-[-10px_0_10px_-3px_rgba(0,0,0,0.1)]',
@@ -98,7 +98,7 @@ function DrawerContent({
{...props}
>
{!fullscreen && (
- <div className="bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" />
+ <div className="bg-gray-3 mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" />
)}
{children}
</DrawerPrimitive.Content>
@@ -136,7 +136,7 @@ function DrawerTitle({
return (
<DrawerPrimitive.Title
data-slot="drawer-title"
- className={cn('text-foreground font-semibold', className)}
+ className={cn('text-gray-12 font-semibold', className)}
{...props}
/>
);
@@ -149,7 +149,7 @@ function DrawerDescription({
return (
<DrawerPrimitive.Description
data-slot="drawer-description"
- className={cn('text-muted-foreground text-sm', className)}
+ className={cn('text-gray-11 text-sm', className)}
{...props}
/>
);
diff --git a/packages/web/src/components/ui/dropdown-menu.tsx b/packages/web/src/components/ui/dropdown-menu.tsx
index 904099c594d..19d4b81e90a 100644
--- a/packages/web/src/components/ui/dropdown-menu.tsx
+++ b/packages/web/src/components/ui/dropdown-menu.tsx
@@ -52,7 +52,7 @@ function DropdownMenuContent({
data-slot="dropdown-menu-content"
sideOffset={sideOffset}
className={cn(
- 'z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
+ 'z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-panel p-1 text-gray-12 shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
{ 'data-[state=closed]:animate-out': !noAnimationOnOut },
className,
)}
@@ -85,7 +85,7 @@ function DropdownMenuItem({
data-inset={inset}
data-variant={variant}
className={cn(
- "relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:outline-hidden focus-visible:outline-hidden select-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive!",
+ "relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:outline-hidden focus-visible:outline-hidden select-none transition-colors focus:bg-gray-4 focus:text-gray-12 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-danger-11 data-[variant=destructive]:focus:bg-danger-3 data-[variant=destructive]:focus:text-danger-11 dark:data-[variant=destructive]:focus:bg-danger-5 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-danger-11!",
className,
)}
{...props}
@@ -103,7 +103,7 @@ function DropdownMenuCheckboxItem({
<DropdownMenuPrimitive.CheckboxItem
data-slot="dropdown-menu-checkbox-item"
className={cn(
- "relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:outline-hidden focus-visible:outline-hidden select-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:outline-hidden focus-visible:outline-hidden select-none transition-colors focus:bg-gray-4 focus:text-gray-12 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className,
)}
checked={checked}
@@ -139,7 +139,7 @@ function DropdownMenuRadioItem({
<DropdownMenuPrimitive.RadioItem
data-slot="dropdown-menu-radio-item"
className={cn(
- "relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:outline-hidden focus-visible:outline-hidden select-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:outline-hidden focus-visible:outline-hidden select-none transition-colors focus:bg-gray-4 focus:text-gray-12 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className,
)}
{...props}
@@ -181,7 +181,7 @@ function DropdownMenuSeparator({
return (
<DropdownMenuPrimitive.Separator
data-slot="dropdown-menu-separator"
- className={cn('-mx-1 my-1 h-px bg-border', className)}
+ className={cn('-mx-1 my-1 h-px bg-gray-6', className)}
{...props}
/>
);
@@ -209,10 +209,7 @@ function DropdownMenuShortcut({
return (
<span
data-slot="dropdown-menu-shortcut"
- className={cn(
- 'ml-auto text-xs tracking-widest text-muted-foreground',
- className,
- )}
+ className={cn('ml-auto text-xs tracking-widest text-gray-11', className)}
{...props}
>
{'\u2318'}
@@ -240,7 +237,7 @@ function DropdownMenuSubTrigger({
data-slot="dropdown-menu-sub-trigger"
data-inset={inset}
className={cn(
- "flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:outline-hidden focus-visible:outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:outline-hidden focus-visible:outline-hidden select-none focus:bg-gray-4 focus:text-gray-12 data-[inset]:pl-8 data-[state=open]:bg-gray-4 data-[state=open]:text-gray-12 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className,
)}
{...props}
@@ -259,7 +256,7 @@ function DropdownMenuSubContent({
<DropdownMenuPrimitive.SubContent
data-slot="dropdown-menu-sub-content"
className={cn(
- 'z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
+ 'z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-panel p-1 text-gray-12 shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
className,
)}
{...props}
diff --git a/packages/web/src/components/ui/empty.tsx b/packages/web/src/components/ui/empty.tsx
index f582f969d8a..9b7c89f116e 100644
--- a/packages/web/src/components/ui/empty.tsx
+++ b/packages/web/src/components/ui/empty.tsx
@@ -34,7 +34,7 @@ const emptyMediaVariants = cva(
variants: {
variant: {
default: 'bg-transparent',
- icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6",
+ icon: "bg-gray-3 text-gray-12 flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6",
},
},
defaultVariants: {
@@ -73,7 +73,7 @@ function EmptyDescription({ className, ...props }: React.ComponentProps<'p'>) {
<div
data-slot="empty-description"
className={cn(
- 'text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4',
+ 'text-gray-11 [&>a:hover]:text-accent-11 text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4',
className,
)}
{...props}
diff --git a/packages/web/src/components/ui/form.tsx b/packages/web/src/components/ui/form.tsx
index 44d0e92011d..6e72897cbb8 100644
--- a/packages/web/src/components/ui/form.tsx
+++ b/packages/web/src/components/ui/form.tsx
@@ -81,7 +81,7 @@ function FormLabel({ className, ...props }: LabelProps) {
<Label
data-slot="form-label"
data-error={!!error}
- className={cn('data-[error=true]:text-destructive', className)}
+ className={cn('data-[error=true]:text-danger-11', className)}
htmlFor={formItemId}
{...props}
/>
@@ -114,7 +114,7 @@ function FormDescription({ className, ...props }: React.ComponentProps<'p'>) {
<p
data-slot="form-description"
id={formDescriptionId}
- className={cn('text-sm text-muted-foreground', className)}
+ className={cn('text-sm text-gray-11', className)}
{...props}
/>
);
@@ -131,7 +131,7 @@ function FormError({
data-slot="form-error"
id={formMessageId}
className={cn(
- 'text-sm font-medium text-destructive wrap-break-word',
+ 'text-sm font-medium text-danger-11 wrap-break-word',
className,
)}
{...props}
diff --git a/packages/web/src/components/ui/hover-card.tsx b/packages/web/src/components/ui/hover-card.tsx
index 1b7f9847e3f..ceb8def61b5 100644
--- a/packages/web/src/components/ui/hover-card.tsx
+++ b/packages/web/src/components/ui/hover-card.tsx
@@ -30,7 +30,7 @@ function HoverCardContent({
align={align}
sideOffset={sideOffset}
className={cn(
- 'z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
+ 'z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border bg-panel p-4 text-gray-12 shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
className,
)}
{...props}
diff --git a/packages/web/src/components/ui/input-otp.tsx b/packages/web/src/components/ui/input-otp.tsx
index 463de5af13b..b97ad112bcd 100644
--- a/packages/web/src/components/ui/input-otp.tsx
+++ b/packages/web/src/components/ui/input-otp.tsx
@@ -46,8 +46,8 @@ const InputOTPSlot = React.forwardRef<
<div
ref={ref}
className={cn(
- 'relative flex size-12 items-center justify-center rounded-lg border border-input bg-background text-lg font-medium shadow-sm transition-all',
- isActive && 'z-10 border-primary ring-2 ring-primary/30',
+ 'relative flex size-12 items-center justify-center rounded-lg border border-gray-8 bg-gray-1 text-lg font-medium shadow-sm transition-all',
+ isActive && 'z-10 border-accent-9 ring-2 ring-accent-8/50',
className,
)}
{...props}
@@ -55,7 +55,7 @@ const InputOTPSlot = React.forwardRef<
{char}
{hasFakeCaret && (
<div className="pointer-events-none absolute inset-0 flex items-center justify-center">
- <div className="h-5 w-px animate-pulse bg-foreground" />
+ <div className="h-5 w-px animate-pulse bg-gray-12" />
</div>
)}
</div>
@@ -68,7 +68,7 @@ const InputOTPSeparator = React.forwardRef<
React.ComponentPropsWithoutRef<'div'>
>(({ ...props }, ref) => (
<div ref={ref} role="separator" {...props}>
- <Minus className="size-4 text-muted-foreground" />
+ <Minus className="size-4 text-gray-11" />
</div>
));
InputOTPSeparator.displayName = 'InputOTPSeparator';
diff --git a/packages/web/src/components/ui/input.tsx b/packages/web/src/components/ui/input.tsx
index eb0d2409f83..3779c804ddf 100644
--- a/packages/web/src/components/ui/input.tsx
+++ b/packages/web/src/components/ui/input.tsx
@@ -7,7 +7,7 @@ import { cn } from '@/lib/utils';
import { SelectUtilButton } from '../custom/select-util-button';
export const inputClass =
- 'flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30 focus-visible:border-ring focus-visible:ring-[1px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40';
+ 'flex h-9 w-full min-w-0 rounded-md border border-gray-8 bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-accent-9 selection:text-on-accent file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-gray-12 placeholder:text-gray-11 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-gray-6/30 focus-visible:border-accent-8 focus-visible:ring-[1px] focus-visible:ring-accent-8/50 aria-invalid:border-danger-9 aria-invalid:ring-danger-9/20 dark:aria-invalid:ring-danger-9/40';
function Input({
className,
@@ -40,7 +40,7 @@ function Input({
<input
data-slot="input"
className={cn('grow cursor-pointer outline-hidden bg-transparent', {
- 'text-muted-foreground': !fileName,
+ 'text-gray-11': !fileName,
})}
value={fileName || defaultFileName || t('Select a file')}
readOnly
diff --git a/packages/web/src/components/ui/item.tsx b/packages/web/src/components/ui/item.tsx
index c587250c87d..e7a2535e5ed 100644
--- a/packages/web/src/components/ui/item.tsx
+++ b/packages/web/src/components/ui/item.tsx
@@ -31,13 +31,13 @@ function ItemSeparator({
}
const itemVariants = cva(
- 'group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]',
+ 'group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-gray-4/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-accent-8 focus-visible:ring-accent-8/50 focus-visible:ring-[3px]',
{
variants: {
variant: {
default: 'bg-transparent',
- outline: 'border-border',
- muted: 'bg-muted/50',
+ outline: 'border-gray-6',
+ muted: 'bg-gray-3/50',
},
size: {
default: 'p-4 gap-4 ',
@@ -77,7 +77,7 @@ const itemMediaVariants = cva(
variants: {
variant: {
default: 'bg-transparent',
- icon: "size-10 border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-5",
+ icon: "size-10 border rounded-sm bg-gray-3 [&_svg:not([class*='size-'])]:size-5",
image:
'size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover',
},
@@ -134,8 +134,8 @@ function ItemDescription({ className, ...props }: React.ComponentProps<'p'>) {
<p
data-slot="item-description"
className={cn(
- 'text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance',
- '[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4',
+ 'text-gray-11 line-clamp-2 text-sm leading-normal font-normal text-balance',
+ '[&>a:hover]:text-accent-11 [&>a]:underline [&>a]:underline-offset-4',
className,
)}
{...props}
diff --git a/packages/web/src/components/ui/label.tsx b/packages/web/src/components/ui/label.tsx
index a75bd4d8552..cc510e3d59a 100644
--- a/packages/web/src/components/ui/label.tsx
+++ b/packages/web/src/components/ui/label.tsx
@@ -8,7 +8,7 @@ type LabelProps = React.ComponentProps<typeof LabelPrimitive.Root> & {
};
function RequiredFieldAsterisk() {
- return <span className="text-destructive">*</span>;
+ return <span className="text-danger-11">*</span>;
}
function Label({
diff --git a/packages/web/src/components/ui/popover.tsx b/packages/web/src/components/ui/popover.tsx
index 7fd855b4186..759f553edeb 100644
--- a/packages/web/src/components/ui/popover.tsx
+++ b/packages/web/src/components/ui/popover.tsx
@@ -31,7 +31,7 @@ function PopoverContent({
align={align}
sideOffset={sideOffset}
className={cn(
- 'z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
+ 'z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-panel p-4 text-gray-12 shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
className,
)}
{...props}
@@ -73,7 +73,7 @@ function PopoverDescription({
return (
<p
data-slot="popover-description"
- className={cn('text-muted-foreground', className)}
+ className={cn('text-gray-11', className)}
{...props}
/>
);
diff --git a/packages/web/src/components/ui/progress.tsx b/packages/web/src/components/ui/progress.tsx
index 8b105d18548..23d6ce173a7 100644
--- a/packages/web/src/components/ui/progress.tsx
+++ b/packages/web/src/components/ui/progress.tsx
@@ -18,7 +18,7 @@ function Progress({
<ProgressPrimitive.Root
data-slot="progress"
className={cn(
- 'relative h-2 w-full overflow-hidden rounded-full bg-primary/20',
+ 'relative h-2 w-full overflow-hidden rounded-full bg-accent-5',
className,
)}
{...props}
@@ -26,7 +26,7 @@ function Progress({
<ProgressPrimitive.Indicator
data-slot="progress-indicator"
className={cn(
- 'h-full w-full flex-1 bg-primary transition-all',
+ 'h-full w-full flex-1 bg-accent-11 transition-all',
usage && usageIndicatorClass(percent / 100),
indicatorClassName,
)}
@@ -38,22 +38,22 @@ function Progress({
function usageIndicatorClass(ratio: number): string {
if (ratio >= 0.85) {
- return 'bg-destructive';
+ return 'bg-danger-11';
}
if (ratio >= 0.7) {
- return 'bg-amber-500';
+ return 'bg-warning-11';
}
- return 'bg-blue-600';
+ return 'bg-accent-11';
}
function usageTrackClass(ratio: number): string {
if (ratio >= 0.85) {
- return 'bg-destructive/15';
+ return 'bg-danger-5';
}
if (ratio >= 0.7) {
- return 'bg-amber-500/15';
+ return 'bg-warning-5';
}
- return 'bg-blue-600/15';
+ return 'bg-accent-5';
}
export { Progress, usageIndicatorClass, usageTrackClass };
diff --git a/packages/web/src/components/ui/radio-group.tsx b/packages/web/src/components/ui/radio-group.tsx
index 494e33de183..45fbc002f7f 100644
--- a/packages/web/src/components/ui/radio-group.tsx
+++ b/packages/web/src/components/ui/radio-group.tsx
@@ -25,7 +25,7 @@ function RadioGroupItem({
<RadioGroupPrimitive.Item
data-slot="radio-group-item"
className={cn(
- 'aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40',
+ 'aspect-square size-4 shrink-0 rounded-full border border-gray-8 text-accent-11 shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-accent-8 focus-visible:ring-[3px] focus-visible:ring-accent-8/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-danger-9 aria-invalid:ring-danger-9/20 dark:bg-gray-6/30 dark:aria-invalid:ring-danger-9/40',
className,
)}
{...props}
@@ -34,7 +34,7 @@ function RadioGroupItem({
data-slot="radio-group-indicator"
className="relative flex items-center justify-center"
>
- <CircleIcon className="absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary" />
+ <CircleIcon className="absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-accent-11" />
</RadioGroupPrimitive.Indicator>
</RadioGroupPrimitive.Item>
);
diff --git a/packages/web/src/components/ui/resizable-panel.tsx b/packages/web/src/components/ui/resizable-panel.tsx
index 078b463caa9..69230985b0c 100644
--- a/packages/web/src/components/ui/resizable-panel.tsx
+++ b/packages/web/src/components/ui/resizable-panel.tsx
@@ -36,14 +36,14 @@ function ResizableHandle({
<ResizablePrimitive.Separator
data-slot="resizable-handle"
className={cn(
- 'bg-border z-40 relative flex w-px items-center justify-center outline-none after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90',
+ 'bg-gray-6 z-40 relative flex w-px items-center justify-center outline-none after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-accent-8 focus-visible:ring-offset-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90',
className,
)}
{...props}
>
{withHandle && (
- <div className="z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-border">
- <GripVerticalIcon className="size-2.5 hover:fill-primary" />
+ <div className="z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-gray-6">
+ <GripVerticalIcon className="size-2.5 hover:fill-accent-11" />
</div>
)}
</ResizablePrimitive.Separator>
diff --git a/packages/web/src/components/ui/scroll-area.tsx b/packages/web/src/components/ui/scroll-area.tsx
index 434663c5d2c..6a0cd091d58 100644
--- a/packages/web/src/components/ui/scroll-area.tsx
+++ b/packages/web/src/components/ui/scroll-area.tsx
@@ -67,7 +67,7 @@ function ScrollArea({
{showGradient && showBottomGradient && (
<div
className={cn(
- 'pointer-events-none absolute bottom-0 left-0 right-0 h-1/5 bg-linear-to-t from-sidebar to-transparent',
+ 'pointer-events-none absolute bottom-0 left-0 right-0 h-1/5 bg-linear-to-t from-gray-2 to-transparent',
gradientClassName,
)}
/>
@@ -95,7 +95,7 @@ function ScrollBar({
>
<ScrollAreaPrimitive.ScrollAreaThumb
data-slot="scroll-area-thumb"
- className="relative flex-1 rounded-full bg-border hover:bg-ring transition-colors"
+ className="relative flex-1 rounded-full bg-gray-6 hover:bg-gray-8 transition-colors"
/>
</ScrollAreaPrimitive.ScrollAreaScrollbar>
);
diff --git a/packages/web/src/components/ui/select.tsx b/packages/web/src/components/ui/select.tsx
index 975dbf23781..9807c5911ae 100644
--- a/packages/web/src/components/ui/select.tsx
+++ b/packages/web/src/components/ui/select.tsx
@@ -42,14 +42,14 @@ function SelectTrigger({
data-slot="select-trigger"
data-size={size}
className={cn(
- "flex w-full items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
+ "flex w-full items-center justify-between gap-2 rounded-md border border-gray-8 bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-accent-8 focus-visible:ring-[3px] focus-visible:ring-accent-8/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-danger-9 aria-invalid:ring-danger-9/20 data-[placeholder]:text-gray-11 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-gray-6/30 dark:hover:bg-gray-6/50 dark:aria-invalid:ring-danger-9/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-gray-11",
className,
)}
{...props}
>
{children}
<SelectPrimitive.Icon asChild>
- <ChevronsUpDown className="size-4 opacity-50" />
+ <ChevronsUpDown className="size-4 text-gray-11" />
</SelectPrimitive.Icon>
</SelectPrimitive.Trigger>
);
@@ -67,7 +67,7 @@ function SelectContent({
<SelectPrimitive.Content
data-slot="select-content"
className={cn(
- 'relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
+ 'relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-panel text-gray-12 shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
position === 'popper' &&
'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',
className,
@@ -99,7 +99,7 @@ function SelectLabel({
return (
<SelectPrimitive.Label
data-slot="select-label"
- className={cn('px-2 py-1.5 text-xs text-muted-foreground', className)}
+ className={cn('px-2 py-1.5 text-xs text-gray-11', className)}
{...props}
/>
);
@@ -114,7 +114,7 @@ function SelectItem({
<SelectPrimitive.Item
data-slot="select-item"
className={cn(
- "relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
+ "relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-gray-4 focus:text-gray-12 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-gray-11 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
className,
)}
{...props}
@@ -145,9 +145,9 @@ function SelectAction({
<div
data-slot="select-action"
className={cn(
- 'relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-hidden hover:bg-accent hover:text-accent-foreground',
+ 'relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-hidden hover:bg-gray-4 hover:text-gray-12',
className,
- { 'text-muted-foreground cursor-not-allowed': disabled },
+ { 'text-gray-11 cursor-not-allowed': disabled },
)}
onClick={(e) => {
if (disabled) {
@@ -171,7 +171,7 @@ function SelectSeparator({
return (
<SelectPrimitive.Separator
data-slot="select-separator"
- className={cn('pointer-events-none -mx-1 my-1 h-px bg-border', className)}
+ className={cn('pointer-events-none -mx-1 my-1 h-px bg-gray-6', className)}
{...props}
/>
);
diff --git a/packages/web/src/components/ui/separator.tsx b/packages/web/src/components/ui/separator.tsx
index 5eb7431b6ec..69a0d11202e 100644
--- a/packages/web/src/components/ui/separator.tsx
+++ b/packages/web/src/components/ui/separator.tsx
@@ -15,7 +15,7 @@ function Separator({
decorative={decorative}
orientation={orientation}
className={cn(
- 'shrink-0 bg-border',
+ 'shrink-0 bg-gray-6',
orientation === 'horizontal' ? 'h-px w-full' : 'h-full w-px',
className,
)}
diff --git a/packages/web/src/components/ui/sheet.tsx b/packages/web/src/components/ui/sheet.tsx
index 5c79b35ce3d..e6c067f26d7 100644
--- a/packages/web/src/components/ui/sheet.tsx
+++ b/packages/web/src/components/ui/sheet.tsx
@@ -36,7 +36,7 @@ function SheetOverlay({
<SheetPrimitive.Overlay
data-slot="sheet-overlay"
className={cn(
- 'fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0',
+ 'fixed inset-0 z-50 bg-scrim data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0',
className,
)}
{...props}
@@ -61,7 +61,7 @@ function SheetContent({
data-slot="sheet-content"
data-side={side}
className={cn(
- 'fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500',
+ 'fixed z-50 flex flex-col gap-4 bg-panel shadow-lg transition data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500',
side === 'right' &&
'inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm',
side === 'left' &&
@@ -76,7 +76,7 @@ function SheetContent({
>
{children}
{!hideCloseButton && (
- <SheetPrimitive.Close className="absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary">
+ <SheetPrimitive.Close className="absolute top-4 right-4 rounded-xs opacity-70 ring-offset-gray-1 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-accent-8 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-gray-3">
<XIcon className="size-4" />
<span className="sr-only">Close</span>
</SheetPrimitive.Close>
@@ -113,7 +113,7 @@ function SheetTitle({
return (
<SheetPrimitive.Title
data-slot="sheet-title"
- className={cn('font-semibold text-foreground', className)}
+ className={cn('font-semibold text-gray-12', className)}
{...props}
/>
);
@@ -126,7 +126,7 @@ function SheetDescription({
return (
<SheetPrimitive.Description
data-slot="sheet-description"
- className={cn('text-sm text-muted-foreground', className)}
+ className={cn('text-sm text-gray-11', className)}
{...props}
/>
);
diff --git a/packages/web/src/components/ui/sidebar-shadcn.tsx b/packages/web/src/components/ui/sidebar-shadcn.tsx
index 398398f988e..86a7ab50119 100644
--- a/packages/web/src/components/ui/sidebar-shadcn.tsx
+++ b/packages/web/src/components/ui/sidebar-shadcn.tsx
@@ -196,7 +196,7 @@ function SidebarProvider({
} as React.CSSProperties
}
className={cn(
- 'group/sidebar-wrapper flex h-svh w-full has-data-[variant=inset]:bg-sidebar',
+ 'group/sidebar-wrapper flex h-svh w-full has-data-[variant=inset]:bg-gray-2',
className,
)}
{...props}
@@ -237,7 +237,7 @@ function Sidebar({
<div
data-slot="sidebar"
className={cn(
- 'flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground',
+ 'flex h-full w-(--sidebar-width) flex-col bg-gray-2 text-gray-12',
className,
)}
{...props}
@@ -254,7 +254,7 @@ function Sidebar({
data-sidebar="sidebar"
data-slot="sidebar"
data-mobile="true"
- className="w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden"
+ className="w-(--sidebar-width) bg-gray-2 p-0 text-gray-12 [&>button]:hidden"
style={
{
'--sidebar-width': SIDEBAR_WIDTH_MOBILE,
@@ -274,7 +274,7 @@ function Sidebar({
return (
<div
- className="group peer hidden text-sidebar-foreground md:block"
+ className="group peer hidden text-gray-12 md:block"
data-state={state}
data-collapsible={state === 'collapsed' ? collapsible : ''}
data-variant={variant}
@@ -326,7 +326,7 @@ function Sidebar({
data-sidebar="sidebar"
data-slot="sidebar-inner"
className={cn(
- 'flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow',
+ 'flex h-full w-full flex-col bg-gray-2 group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-gray-6 group-data-[variant=floating]:shadow',
!hoverMode &&
state === 'collapsed' &&
collapsible === 'icon' &&
@@ -389,10 +389,10 @@ function SidebarRail({ className, ...props }: React.ComponentProps<'button'>) {
onClick={toggleSidebar}
title="Toggle Sidebar"
className={cn(
- 'absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex',
+ 'absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-gray-6 sm:flex',
'in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize',
'[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize',
- 'group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar',
+ 'group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-gray-2',
'[[data-side=left][data-collapsible=offcanvas]_&]:-right-2',
'[[data-side=right][data-collapsible=offcanvas]_&]:-left-2',
className,
@@ -407,7 +407,7 @@ function SidebarInset({ className, ...props }: React.ComponentProps<'main'>) {
<main
data-slot="sidebar-inset"
className={cn(
- 'relative flex w-full flex-1 flex-col bg-background',
+ 'relative flex w-full flex-1 flex-col bg-gray-1',
'md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2',
className,
)}
@@ -424,7 +424,7 @@ function SidebarInput({
<Input
data-slot="sidebar-input"
data-sidebar="input"
- className={cn('h-8 w-full bg-background shadow-none', className)}
+ className={cn('h-8 w-full bg-gray-1 shadow-none', className)}
{...props}
/>
);
@@ -460,7 +460,7 @@ function SidebarSeparator({
<Separator
data-slot="sidebar-separator"
data-sidebar="separator"
- className={cn('mx-2 w-auto bg-sidebar-border', className)}
+ className={cn('mx-2 w-auto bg-gray-6', className)}
{...props}
/>
);
@@ -503,7 +503,7 @@ function SidebarGroupLabel({
data-slot="sidebar-group-label"
data-sidebar="group-label"
className={cn(
- 'flex h-7 shrink-0 items-center rounded-md px-2 text-xs font-normal text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
+ 'flex h-7 shrink-0 items-center rounded-md px-2 text-xs font-normal text-gray-11 ring-accent-8 outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
'group-data-[collapsible=icon]:-mt-7 group-data-[collapsible=icon]:opacity-0',
className,
)}
@@ -524,7 +524,7 @@ function SidebarGroupAction({
data-slot="sidebar-group-action"
data-sidebar="group-action"
className={cn(
- 'absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
+ 'absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-12 ring-accent-8 outline-hidden transition-transform hover:bg-gray-4 hover:text-gray-12 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
'after:absolute after:-inset-2 md:after:hidden',
'group-data-[collapsible=icon]:hidden',
className,
@@ -571,14 +571,13 @@ function SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'>) {
}
const sidebarMenuButtonVariants = cva(
- 'peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 group-data-[collapsible=icon]:p-0 group-data-[collapsible=icon]:justify-center text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-normal data-[active=true]:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground group-has-data-[sidebar=menu-action]/menu-item:pr-8 [&>span:last-child]:truncate [&_svg]:size-4 [&_svg]:shrink-0',
+ 'peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 group-data-[collapsible=icon]:p-0 group-data-[collapsible=icon]:justify-center text-left text-sm ring-accent-8 outline-hidden transition-[width,height,padding] hover:bg-gray-4 hover:text-gray-12 focus-visible:ring-2 active:text-gray-12 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-normal data-[active=true]:text-gray-12 data-open:hover:bg-gray-4 data-open:hover:text-gray-12 group-has-data-[sidebar=menu-action]/menu-item:pr-8 [&>span:last-child]:truncate [&_svg]:size-4 [&_svg]:shrink-0',
{
variants: {
variant: {
- default:
- 'hover:bg-sidebar-accent active:bg-sidebar-accent hover:text-sidebar-accent-foreground',
+ default: 'hover:bg-gray-4 active:bg-gray-4 hover:text-gray-12',
outline:
- 'bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]',
+ 'bg-gray-1 shadow-[0_0_0_1px_var(--gray-6)] hover:bg-gray-4 hover:text-gray-12 hover:shadow-[0_0_0_1px_var(--gray-4)]',
},
size: {
default: 'h-7 text-sm',
@@ -659,14 +658,14 @@ function SidebarMenuAction({
data-slot="sidebar-menu-action"
data-sidebar="menu-action"
className={cn(
- 'absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
+ 'absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-12 ring-accent-8 outline-hidden transition-transform peer-hover/menu-button:text-gray-12 hover:bg-gray-4 hover:text-gray-12 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
'after:absolute after:-inset-2 md:after:hidden',
'peer-data-[size=sm]/menu-button:top-1',
'peer-data-[size=default]/menu-button:top-1.5',
'peer-data-[size=lg]/menu-button:top-2.5',
'group-data-[collapsible=icon]:hidden',
showOnHover &&
- 'peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-open:opacity-100 md:opacity-0',
+ 'peer-data-[active=true]/menu-button:text-gray-12 group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-open:opacity-100 md:opacity-0',
className,
)}
{...props}
@@ -683,8 +682,8 @@ function SidebarMenuBadge({
data-slot="sidebar-menu-badge"
data-sidebar="menu-badge"
className={cn(
- 'pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none',
- 'peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground',
+ 'pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-gray-12 tabular-nums select-none',
+ 'peer-hover/menu-button:text-gray-12 peer-data-[active=true]/menu-button:text-gray-12',
'peer-data-[size=sm]/menu-button:top-1',
'peer-data-[size=default]/menu-button:top-1.5',
'peer-data-[size=lg]/menu-button:top-2.5',
@@ -739,7 +738,7 @@ function SidebarMenuSub({ className, ...props }: React.ComponentProps<'ul'>) {
data-slot="sidebar-menu-sub"
data-sidebar="menu-sub"
className={cn(
- 'mx-3.5 flex min-w-0 flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5',
+ 'mx-3.5 flex min-w-0 flex-col gap-1 border-l border-gray-6 px-2.5 py-0.5',
'group-data-[collapsible=icon]:hidden',
className,
)}
@@ -782,8 +781,8 @@ function SidebarMenuSubButton({
data-size={size}
data-active={isActive}
className={cn(
- 'flex h-7 min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground',
- 'data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground',
+ 'flex h-7 min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 text-gray-12 ring-accent-8 outline-hidden hover:bg-gray-4 hover:text-gray-12 focus-visible:ring-2 active:bg-gray-4 active:text-gray-12 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-gray-12',
+ 'data-[active=true]:bg-gray-4 data-[active=true]:font-medium data-[active=true]:text-gray-12',
size === 'sm' && 'text-xs',
size === 'md' && 'text-sm',
'group-data-[collapsible=icon]:hidden',
diff --git a/packages/web/src/components/ui/skeleton.tsx b/packages/web/src/components/ui/skeleton.tsx
index 2bc2964d507..8c9dfbe86a2 100644
--- a/packages/web/src/components/ui/skeleton.tsx
+++ b/packages/web/src/components/ui/skeleton.tsx
@@ -4,10 +4,7 @@ function Skeleton({ className, ...props }: React.ComponentProps<'div'>) {
return (
<div
data-slot="skeleton"
- className={cn(
- 'animate-pulse rounded-md bg-gray-200 dark:bg-neutral-700',
- className,
- )}
+ className={cn('animate-pulse rounded-md bg-gray-3', className)}
{...props}
/>
);
diff --git a/packages/web/src/components/ui/slider.tsx b/packages/web/src/components/ui/slider.tsx
index 23cb282bdc6..00bdeaeea88 100644
--- a/packages/web/src/components/ui/slider.tsx
+++ b/packages/web/src/components/ui/slider.tsx
@@ -41,14 +41,14 @@ function Slider({
<SliderPrimitive.Track
data-slot="slider-track"
className={cn(
- 'relative grow overflow-hidden rounded-full bg-muted',
+ 'relative grow overflow-hidden rounded-full bg-gray-3',
isVertical ? 'h-full w-1.5' : 'h-1.5 w-full',
)}
>
<SliderPrimitive.Range
data-slot="slider-range"
className={cn(
- 'absolute bg-primary',
+ 'absolute bg-accent-9',
isVertical ? 'w-full' : 'h-full',
)}
/>
@@ -57,7 +57,7 @@ function Slider({
<SliderPrimitive.Thumb
data-slot="slider-thumb"
key={index}
- className="block size-4 shrink-0 rounded-full border border-primary bg-white dark:bg-background shadow-sm ring-ring/50 transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
+ className="block size-4 shrink-0 rounded-full border border-accent-9 bg-panel shadow-sm ring-accent-8/50 transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
/>
))}
</SliderPrimitive.Root>
diff --git a/packages/web/src/components/ui/sonner.tsx b/packages/web/src/components/ui/sonner.tsx
index 89a8df6c479..c318e78d766 100644
--- a/packages/web/src/components/ui/sonner.tsx
+++ b/packages/web/src/components/ui/sonner.tsx
@@ -32,24 +32,24 @@ export const UNSAVED_CHANGES_TOAST = {
};
function Toaster({ ...props }: ToasterProps) {
- const { theme } = useTheme();
+ const { resolvedTheme } = useTheme();
return (
<Sonner
- theme={theme as ToasterProps['theme']}
- className="toaster group"
+ theme={resolvedTheme}
+ className="group"
expand={true}
toastOptions={{
classNames: {
toast: `
- data-[type=error]:text-destructive-700!
- data-[type=warning]:text-warning-700!
- data-[type=success]:text-success-700!
+ data-[type=error]:text-danger-11!
+ data-[type=warning]:text-warning-11!
+ data-[type=success]:text-success-11!
`,
description: `
- data-[type=error]:text-destructive-700!
- data-[type=warning]:text-warning-700!
- data-[type=success]:text-success-700!
+ data-[type=error]:text-danger-11!
+ data-[type=warning]:text-warning-11!
+ data-[type=success]:text-success-11!
`,
},
descriptionClassName: 'text-inherit!',
@@ -63,9 +63,9 @@ function Toaster({ ...props }: ToasterProps) {
}}
style={
{
- '--normal-text': 'var(--foreground)',
- '--normal-bg': 'var(--background)',
- '--normal-border': 'var(--border)',
+ '--normal-text': 'var(--gray-12)',
+ '--normal-bg': 'var(--panel)',
+ '--normal-border': 'var(--gray-6)',
'--border-radius': 'var(--radius)',
} as React.CSSProperties
}
diff --git a/packages/web/src/components/ui/switch.tsx b/packages/web/src/components/ui/switch.tsx
index 5ea90fc95e8..47918e79577 100644
--- a/packages/web/src/components/ui/switch.tsx
+++ b/packages/web/src/components/ui/switch.tsx
@@ -28,7 +28,7 @@ function Switch({
<SwitchPrimitive.Root
data-slot="switch"
className={cn(
- 'peer inline-flex shrink-0 cursor-pointer items-center border-2 border-transparent transition-colors focus-visible:outline-hidden 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',
+ 'peer inline-flex shrink-0 cursor-pointer items-center border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-8 focus-visible:ring-offset-2 focus-visible:ring-offset-gray-1 disabled:cursor-not-allowed disabled:opacity-50',
COLOR_CLASSES[color],
variant === 'square' ? 'rounded-md' : 'rounded-full',
SIZE_CLASSES[size],
@@ -48,7 +48,8 @@ function Switch({
<SwitchPrimitive.Thumb
data-slot="switch-thumb"
className={cn(
- 'pointer-events-none flex items-center justify-center bg-background dark:bg-foreground ring-0 transition-transform data-[state=unchecked]:translate-x-0',
+ 'pointer-events-none flex items-center justify-center bg-gray-1 ring-0 transition-transform data-[state=unchecked]:translate-x-0',
+ color === 'default' && 'data-[state=checked]:bg-on-accent',
'shadow-[0_1px_2px_rgba(15,23,42,0.18)]',
variant === 'square' ? 'rounded-sm' : 'rounded-full',
THUMB_SIZE_CLASSES[size],
@@ -79,9 +80,8 @@ const THUMB_SIZE_CLASSES: Record<NonNullable<SwitchProps['size']>, string> = {
};
const COLOR_CLASSES: Record<NonNullable<SwitchProps['color']>, string> = {
- default: 'data-[state=checked]:bg-primary data-[state=unchecked]:bg-input',
- secondary:
- 'data-[state=checked]:bg-secondary data-[state=unchecked]:bg-input',
+ default: 'data-[state=checked]:bg-accent-9 data-[state=unchecked]:bg-gray-8',
+ secondary: 'data-[state=checked]:bg-gray-12 data-[state=unchecked]:bg-gray-8',
};
// Helper functions
diff --git a/packages/web/src/components/ui/table.tsx b/packages/web/src/components/ui/table.tsx
index 59506799f29..73f415c4601 100644
--- a/packages/web/src/components/ui/table.tsx
+++ b/packages/web/src/components/ui/table.tsx
@@ -18,7 +18,7 @@ function TableHeader({ className, ...props }: React.ComponentProps<'thead'>) {
return (
<thead
data-slot="table-header"
- className={cn('border-t bg-muted/70 [&_tr]:border-b', className)}
+ className={cn('border-t bg-gray-3/70 [&_tr]:border-b', className)}
{...props}
/>
);
@@ -33,7 +33,7 @@ function TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>) {
<tfoot
data-slot="table-footer"
className={cn(
- 'border-t bg-muted/50 font-medium [&>tr]:last:border-b-0',
+ 'border-t bg-gray-3/50 font-medium [&>tr]:last:border-b-0',
className,
)}
{...props}
@@ -46,7 +46,7 @@ function TableRow({ className, ...props }: React.ComponentProps<'tr'>) {
<tr
data-slot="table-row"
className={cn(
- 'border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted',
+ 'border-b transition-colors hover:bg-gray-3/50 data-[state=selected]:bg-gray-3',
className,
)}
{...props}
@@ -59,7 +59,7 @@ function TableHead({ className, ...props }: React.ComponentProps<'th'>) {
<th
data-slot="table-head"
className={cn(
- 'py-2.5 px-2 text-left align-middle text-xs font-medium text-foreground first:pl-8 last:pr-8 [&:has([role=checkbox])]:pl-4 [&:has([role=checkbox])]:pr-2',
+ 'py-2.5 px-2 text-left align-middle text-xs font-medium text-gray-12 first:pl-8 last:pr-8 [&:has([role=checkbox])]:pl-4 [&:has([role=checkbox])]:pr-2',
className,
)}
{...props}
@@ -87,7 +87,7 @@ function TableCaption({
return (
<caption
data-slot="table-caption"
- className={cn('mt-4 text-sm text-muted-foreground', className)}
+ className={cn('mt-4 text-sm text-gray-11', className)}
{...props}
/>
);
diff --git a/packages/web/src/components/ui/tabs.tsx b/packages/web/src/components/ui/tabs.tsx
index 90739acc643..9d33c80d761 100644
--- a/packages/web/src/components/ui/tabs.tsx
+++ b/packages/web/src/components/ui/tabs.tsx
@@ -17,7 +17,7 @@ const tabsListVariants = cva('inline-flex', {
variants: {
variant: {
default:
- 'items-center justify-center h-9 rounded-md bg-muted p-1 text-muted-foreground',
+ 'items-center justify-center h-9 rounded-md bg-gray-3 p-1 text-gray-11',
outline: '',
},
},
@@ -30,9 +30,9 @@ const tabsTriggerVariants = cva('inline-flex items-center justify-center', {
variants: {
variant: {
default:
- 'whitespace-nowrap rounded-sm px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-xs',
+ 'whitespace-nowrap rounded-sm px-3 py-1 text-sm font-medium ring-offset-gray-1 transition-all focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-panel data-[state=active]:text-gray-12 data-[state=active]:shadow-xs',
outline:
- 'px-3 py-1 text-sm font-medium ring-offset-background transition-all border-b-2 border-transparent data-[state=active]:border-secondary data-[state=active]:text-foreground text-accent-foreground',
+ 'px-3 py-1 text-sm font-medium ring-offset-gray-1 transition-all border-b-2 border-transparent data-[state=active]:border-gray-12 data-[state=active]:text-gray-12 text-gray-12',
},
},
defaultVariants: {
@@ -78,7 +78,7 @@ function TabsContent({
<TabsPrimitive.Content
data-slot="tabs-content"
className={cn(
- 'mt-5 ring-offset-background focus-visible:outline-hidden',
+ 'mt-5 ring-offset-gray-1 focus-visible:outline-hidden',
className,
)}
{...props}
diff --git a/packages/web/src/components/ui/text-shimmer.tsx b/packages/web/src/components/ui/text-shimmer.tsx
index eca494c749d..bd826bd3b59 100644
--- a/packages/web/src/components/ui/text-shimmer.tsx
+++ b/packages/web/src/components/ui/text-shimmer.tsx
@@ -21,11 +21,9 @@ function TextShimmer({
className,
)}
style={{
- backgroundImage: `linear-gradient(to right, var(--muted-foreground) ${
+ backgroundImage: `linear-gradient(to right, var(--gray-11) ${
50 - dynamicSpread
- }%, var(--foreground) 50%, var(--muted-foreground) ${
- 50 + dynamicSpread
- }%)`,
+ }%, var(--gray-12) 50%, var(--gray-11) ${50 + dynamicSpread}%)`,
animationDuration: `${duration}s`,
}}
{...props}
diff --git a/packages/web/src/components/ui/textarea.tsx b/packages/web/src/components/ui/textarea.tsx
index 93078759f83..b81e6ff2aa2 100644
--- a/packages/web/src/components/ui/textarea.tsx
+++ b/packages/web/src/components/ui/textarea.tsx
@@ -11,7 +11,7 @@ function Textarea({ className, ...props }: ResizableTextareaProps) {
minRows={1}
maxRows={5}
className={cn(
- 'flex w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40',
+ 'flex w-full rounded-md border border-gray-8 bg-gray-1 px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none placeholder:text-gray-11 focus-visible:border-accent-8 focus-visible:ring-[3px] focus-visible:ring-accent-8/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-danger-9 aria-invalid:ring-danger-9/20 dark:aria-invalid:ring-danger-9/40',
className,
)}
{...props}
diff --git a/packages/web/src/components/ui/toggle.tsx b/packages/web/src/components/ui/toggle.tsx
index a04b430b97c..e090aa11f2a 100644
--- a/packages/web/src/components/ui/toggle.tsx
+++ b/packages/web/src/components/ui/toggle.tsx
@@ -7,13 +7,13 @@ import * as React from 'react';
import { cn } from '@/lib/utils';
const toggleVariants = cva(
- "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-gray-3 hover:text-gray-11 focus-visible:border-accent-8 focus-visible:ring-[3px] focus-visible:ring-accent-8/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-danger-9 aria-invalid:ring-danger-9/20 data-[state=on]:bg-gray-4 data-[state=on]:text-gray-12 dark:aria-invalid:ring-danger-9/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
{
variants: {
variant: {
default: 'bg-transparent',
outline:
- 'border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground',
+ 'border border-gray-6 bg-transparent shadow-xs hover:bg-gray-4 hover:text-gray-12',
},
size: {
default: 'h-9 min-w-9 px-2',
diff --git a/packages/web/src/components/ui/tooltip.tsx b/packages/web/src/components/ui/tooltip.tsx
index 01d6dfa6ddd..afac58b87a0 100644
--- a/packages/web/src/components/ui/tooltip.tsx
+++ b/packages/web/src/components/ui/tooltip.tsx
@@ -44,13 +44,13 @@ function TooltipContent({
data-slot="tooltip-content"
sideOffset={sideOffset}
className={cn(
- 'z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95',
+ 'z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-gray-12 px-3 py-1.5 text-xs text-balance text-gray-1 fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95',
className,
)}
{...props}
>
{children}
- <TooltipPrimitive.Arrow className="z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" />
+ <TooltipPrimitive.Arrow className="z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-gray-12 fill-gray-12" />
</TooltipPrimitive.Content>
</TooltipPrimitive.Portal>
);
diff --git a/packages/web/src/features/agents/agent-card.tsx b/packages/web/src/features/agents/agent-card.tsx
index 5ec6a1e5831..d10ccfd9521 100644
--- a/packages/web/src/features/agents/agent-card.tsx
+++ b/packages/web/src/features/agents/agent-card.tsx
@@ -16,7 +16,7 @@ type AgentCardProps = {
onClick: () => void;
};
-const PRIVATE_DOT_COLOR = '#A3A3A3';
+const PRIVATE_DOT_COLOR = 'var(--gray-11)';
const AgentChip = ({
label,
@@ -25,7 +25,7 @@ const AgentChip = ({
label: string;
dotColor?: string;
}) => (
- <span className="flex items-center gap-[6px] rounded-full border border-border px-[9px] py-[3px] text-xs leading-4">
+ <span className="flex items-center gap-[6px] rounded-full border border-gray-6 px-[9px] py-[3px] text-xs leading-4">
{dotColor && (
<span
className="size-[7px] shrink-0 rounded-[2px]"
@@ -46,7 +46,7 @@ export const AgentCard = ({
<button
type="button"
onClick={onClick}
- className="relative flex h-full w-full flex-col justify-between gap-4 overflow-clip rounded-[19px] border border-border bg-background p-5 text-left shadow-[0_1px_2px_#0A0A0A0A,0_4px_12px_-2px_#0A0A0A14] transition-shadow hover:shadow-[0_2px_4px_#0A0A0A0F,0_12px_24px_-4px_#0A0A0A1F]"
+ className="relative flex h-full w-full flex-col justify-between gap-4 overflow-clip rounded-[19px] border border-gray-6 bg-gray-1 p-5 text-left shadow-[0_1px_2px_#0A0A0A0A,0_4px_12px_-2px_#0A0A0A14] transition-shadow hover:shadow-[0_2px_4px_#0A0A0A0F,0_12px_24px_-4px_#0A0A0A1F]"
>
<div
aria-hidden
@@ -67,12 +67,12 @@ export const AgentCard = ({
{agent.visibility === AgentVisibility.RESTRICTED && (
<Lock
size={12}
- className="shrink-0 text-muted-foreground"
+ className="shrink-0 text-gray-11"
aria-label={t('Only you and the people you shared it with')}
/>
)}
</span>
- <span className="line-clamp-2 text-[13px] leading-4 text-muted-foreground">
+ <span className="line-clamp-2 text-[13px] leading-4 text-gray-11">
{agent.description ?? t('No description yet')}
</span>
</div>
diff --git a/packages/web/src/features/agents/agent-chat-welcome.tsx b/packages/web/src/features/agents/agent-chat-welcome.tsx
index 207d77dbb67..d484251fb31 100644
--- a/packages/web/src/features/agents/agent-chat-welcome.tsx
+++ b/packages/web/src/features/agents/agent-chat-welcome.tsx
@@ -24,7 +24,7 @@ export const AgentChatWelcome = ({
{t('Ask {name} anything', { name: displayName })}
</span>
{description !== null && (
- <span className="max-w-[400px] text-center text-sm leading-[150%] text-muted-foreground">
+ <span className="max-w-[400px] text-center text-sm leading-[150%] text-gray-11">
{description}
</span>
)}
diff --git a/packages/web/src/features/agents/agent-mark.tsx b/packages/web/src/features/agents/agent-mark.tsx
index d3766764721..1d4ce63f009 100644
--- a/packages/web/src/features/agents/agent-mark.tsx
+++ b/packages/web/src/features/agents/agent-mark.tsx
@@ -62,36 +62,40 @@ const SIZES = {
const TRIO: TrioGlyph[] = [
{
shape: 'circle',
- fill: '#0D9488',
+ fill: 'var(--swatch-9-mark)',
size: 72,
left: 20,
top: 24,
rotate: -8,
- shadow: '0 4px 9px rgba(13, 148, 136, 0.3)',
+ shadow:
+ '0 4px 9px color-mix(in oklab, var(--swatch-9-mark), transparent 70%)',
},
{
shape: 'hexagon',
- fill: '#D97706',
+ fill: 'var(--swatch-6-mark)',
size: 74,
left: 146,
top: 22,
rotate: 8,
- shadow: '0 4px 9px rgba(217, 119, 6, 0.3)',
+ shadow:
+ '0 4px 9px color-mix(in oklab, var(--swatch-6-mark), transparent 70%)',
},
{
shape: 'roundedSquare',
- fill: 'hsl(var(--primary))',
+ fill: 'var(--accent-9)',
+ ink: 'var(--on-accent)',
size: 84,
left: 76,
top: 6,
rotate: 0,
- shadow: '0 5px 11px hsl(var(--primary) / 0.36)',
+ shadow: '0 5px 11px color-mix(in oklab, var(--accent-9), transparent 64%)',
},
];
type TrioGlyph = {
shape: MarkShape;
fill: string;
+ ink?: string;
size: number;
left: number;
top: number;
@@ -102,6 +106,7 @@ type TrioGlyph = {
type AgentGlyphProps = {
shape: MarkShape;
fill: string;
+ ink?: string;
size: number;
};
@@ -111,13 +116,18 @@ type AgentMarkProps = {
size?: keyof typeof SIZES;
};
-const AgentGlyph = ({ shape, fill, size }: AgentGlyphProps) => {
+const AgentGlyph = ({
+ shape,
+ fill,
+ ink = '#FFFFFF',
+ size,
+}: AgentGlyphProps) => {
const eyes = EYES_BY_SHAPE[shape] ?? { cy: 24, dx: 5 };
return (
<svg width={size} height={size} viewBox="0 0 48 48" fill="none" aria-hidden>
<path d={SHAPE_PATHS[shape]} fill={fill} />
- <circle cx={24 - eyes.dx} cy={eyes.cy} r="3.9" fill="#FFFFFF" />
- <circle cx={24 + eyes.dx} cy={eyes.cy} r="3.9" fill="#FFFFFF" />
+ <circle cx={24 - eyes.dx} cy={eyes.cy} r="3.9" fill={ink} />
+ <circle cx={24 + eyes.dx} cy={eyes.cy} r="3.9" fill={ink} />
</svg>
);
};
@@ -129,7 +139,7 @@ export const AgentMark = ({
}: AgentMarkProps) => (
<div
className={cn(
- 'flex shrink-0 items-center justify-center border border-[#E7E7EA] bg-background',
+ 'flex shrink-0 items-center justify-center border border-gray-6 bg-gray-1',
SIZES[size].box,
)}
>
@@ -154,7 +164,12 @@ export const AgentTrioMark = ({ className }: { className?: string }) => (
filter: `drop-shadow(${glyph.shadow})`,
}}
>
- <AgentGlyph shape={glyph.shape} fill={glyph.fill} size={glyph.size} />
+ <AgentGlyph
+ shape={glyph.shape}
+ fill={glyph.fill}
+ ink={glyph.ink}
+ size={glyph.size}
+ />
</div>
))}
</div>
diff --git a/packages/web/src/features/agents/agent-table.tsx b/packages/web/src/features/agents/agent-table.tsx
index 43b3aa1420c..066a7b2c455 100644
--- a/packages/web/src/features/agents/agent-table.tsx
+++ b/packages/web/src/features/agents/agent-table.tsx
@@ -16,14 +16,14 @@ import { AgentActionsMenu } from './agent-actions-menu';
import { AgentMark } from './agent-mark';
import { AgentToolStack } from './agent-tool-stack';
-const PRIVATE_DOT_COLOR = '#A3A3A3';
+const PRIVATE_DOT_COLOR = 'var(--gray-11)';
export const AgentTable = ({
agents,
projectDotColorFor,
onOpen,
}: AgentTableProps) => (
- <div className="overflow-x-auto rounded-[10px] border border-border">
+ <div className="overflow-x-auto rounded-[10px] border border-gray-6">
<Table>
<TableHeader>
<TableRow className="hover:bg-transparent">
@@ -55,7 +55,7 @@ export const AgentTable = ({
{agent.visibility === AgentVisibility.RESTRICTED && (
<Lock
size={12}
- className="shrink-0 text-muted-foreground"
+ className="shrink-0 text-gray-11"
aria-label={t(
'Only you and the people you shared it with',
)}
@@ -68,7 +68,7 @@ export const AgentTable = ({
<TextWithTooltip
tooltipMessage={agent.description ?? t('No description yet')}
>
- <span className="block truncate text-muted-foreground">
+ <span className="block truncate text-gray-11">
{agent.description ?? t('No description yet')}
</span>
</TextWithTooltip>
diff --git a/packages/web/src/features/agents/agent-timeline/index.tsx b/packages/web/src/features/agents/agent-timeline/index.tsx
index cf75cadd976..4f456f33ca0 100644
--- a/packages/web/src/features/agents/agent-timeline/index.tsx
+++ b/packages/web/src/features/agents/agent-timeline/index.tsx
@@ -34,7 +34,7 @@ export const AgentTimeline = ({
return (
<div className={`h-full flex w-full flex-col ${className}`}>
<ScrollArea className="flex-1 min-h-0 relative">
- <div className="absolute left-2 top-4 bottom-8 w-px bg-border" />
+ <div className="absolute left-2 top-4 bottom-8 w-px bg-gray-6" />
<div className="space-y-7 pb-4">
{(agentResult.prompt?.length ?? 0) > 0 && (
diff --git a/packages/web/src/features/agents/agent-timeline/timeline-blocks.tsx b/packages/web/src/features/agents/agent-timeline/timeline-blocks.tsx
index 440b6115130..9053d5d38f9 100644
--- a/packages/web/src/features/agents/agent-timeline/timeline-blocks.tsx
+++ b/packages/web/src/features/agents/agent-timeline/timeline-blocks.tsx
@@ -24,6 +24,7 @@ import { useMemo, useState } from 'react';
import { DataList } from '@/components/custom/data-list';
import { JsonViewer } from '@/components/custom/json-viewer';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { ApMarkdown } from '@/components/custom/markdown';
import { SimpleJsonViewer } from '@/components/custom/simple-json-viewer';
import {
@@ -61,7 +62,7 @@ export const TimelineItem = ({
return (
<div className="relative pl-7 animate-fade">
<div
- className={`absolute bg-background ${iconLeft} w-4 h-4 top-3.5 flex items-center justify-center`}
+ className={`absolute bg-gray-1 ${iconLeft} w-4 h-4 top-3.5 flex items-center justify-center`}
>
{icon}
</div>
@@ -94,9 +95,9 @@ export const AgentToolBlock = ({ block, index }: AgentToolBlockProps) => {
const renderStatusIcon = () => {
if (!isDone) return <Loader2 className="h-4 w-4 animate-spin shrink-0" />;
return isSuccess === ExecutionToolStatus.SUCCESS ? (
- <CheckCheck className="h-4 w-4 text-success shrink-0" />
+ <CheckCheck className="h-4 w-4 text-success-11 shrink-0" />
) : (
- <CircleX className="h-4 w-4 text-destructive shrink-0" />
+ <CircleX className="h-4 w-4 text-danger-11 shrink-0" />
);
};
@@ -106,10 +107,10 @@ export const AgentToolBlock = ({ block, index }: AgentToolBlockProps) => {
return <BookOpen className="h-4 w-4 shrink-0" />;
if (metadata?.logoUrl)
return (
- <img
+ <LogoPlate
src={metadata.logoUrl}
alt="Tool logo"
- className="h-4 w-4 object-contain shrink-0"
+ className="size-4 rounded-sm p-px"
/>
);
return <Wrench className="h-4 w-4 shrink-0" />;
@@ -120,7 +121,7 @@ export const AgentToolBlock = ({ block, index }: AgentToolBlockProps) => {
{renderToolIcon()}
<span
className={`flex gap-1 items-center ${
- !isSuccess ? 'text-destructive' : ''
+ !isSuccess ? 'text-danger-11' : ''
}`}
>
<span className="text-sm font-semibold">
@@ -136,7 +137,7 @@ export const AgentToolBlock = ({ block, index }: AgentToolBlockProps) => {
<Accordion
type="single"
collapsible
- className="w-full bg-accent/20 rounded-md text-foreground border border-border"
+ className="w-full bg-gray-2 rounded-md text-gray-12 border border-gray-6"
>
<AccordionItem value={`block-${index}`} className="border-0">
<AccordionTrigger className="p-3 text-sm">
@@ -178,7 +179,7 @@ export const AgentToolBlock = ({ block, index }: AgentToolBlockProps) => {
{resolvedFields ? (
<DataList data={resolvedFields} />
) : (
- <div className="text-muted-foreground text-sm">
+ <div className="text-gray-11 text-sm">
{t('No resolved fields')}
</div>
)}
@@ -197,7 +198,7 @@ export const AgentToolBlock = ({ block, index }: AgentToolBlockProps) => {
markdown={errorMessage}
/>
) : (
- <div className="text-muted-foreground text-sm">
+ <div className="text-gray-11 text-sm">
{t('No result')}
</div>
)}
@@ -222,9 +223,9 @@ export const MarkdownBlock = ({
return (
<TimelineItem
key={`step-${index}-${step.type}`}
- icon={<MessageSquareText className="h-4 w-4 text-muted-foreground" />}
+ icon={<MessageSquareText className="h-4 w-4 text-gray-11" />}
>
- <div className="bg-accent/20 rounded-md p-3 text-sm text-foreground border border-border">
+ <div className="bg-gray-2 rounded-md p-3 text-sm text-gray-12 border border-gray-6">
<ApMarkdown
markdown={step.markdown}
variant={MarkdownVariant.BORDERLESS}
@@ -236,7 +237,7 @@ export const MarkdownBlock = ({
export const StructuredOutputBlock = ({ output }: { output: any }) => {
return (
- <TimelineItem icon={<Braces className="h-4 w-4 text-muted-foreground" />}>
+ <TimelineItem icon={<Braces className="h-4 w-4 text-gray-11" />}>
<JsonViewer json={output} title={t('output')} />
</TimelineItem>
);
@@ -245,9 +246,9 @@ export const StructuredOutputBlock = ({ output }: { output: any }) => {
export const ThinkingBlock = () => {
return (
<TimelineItem
- icon={<Loader2 className="h-4 w-4 text-muted-foreground animate-spin" />}
+ icon={<Loader2 className="h-4 w-4 text-gray-11 animate-spin" />}
>
- <div className="bg-accent/20 rounded-md p-3 w-full text-sm text-foreground border border-border animate-pulse">
+ <div className="bg-gray-2 rounded-md p-3 w-full text-sm text-gray-12 border border-gray-6 animate-pulse">
<span>{t('Agent is thinking...')}</span>
</div>
</TimelineItem>
@@ -266,8 +267,8 @@ export const PromptBlock = ({ prompt }: { prompt: string }) => {
}, [expanded, isTruncatable, prompt]);
return (
- <TimelineItem icon={<SquareTerminal className="h-4 w-4 text-primary" />}>
- <div className="bg-primary/5 rounded-md p-3 text-sm text-foreground border border-border space-y-2">
+ <TimelineItem icon={<SquareTerminal className="h-4 w-4 text-accent-11" />}>
+ <div className="bg-accent-3 rounded-md p-3 text-sm text-gray-12 border border-gray-6 space-y-2">
<ApMarkdown
markdown={displayedPrompt}
variant={MarkdownVariant.BORDERLESS}
@@ -276,7 +277,7 @@ export const PromptBlock = ({ prompt }: { prompt: string }) => {
{isTruncatable && (
<button
onClick={() => setExpanded((v) => !v)}
- className="text-xs text-primary hover:underline"
+ className="text-xs text-accent-11 hover:underline"
>
{expanded ? 'Read less' : 'Read more'}
</button>
@@ -288,10 +289,8 @@ export const PromptBlock = ({ prompt }: { prompt: string }) => {
export const DoneBlock = () => {
return (
- <TimelineItem
- icon={<CircleCheckBig className="h-4 w-4 text-success-600" />}
- >
- <div className="border border-success/40 bg-success-50/60 rounded-md p-3 text-sm text-success-700 font-medium flex items-center gap-2">
+ <TimelineItem icon={<CircleCheckBig className="h-4 w-4 text-success-11" />}>
+ <div className="border border-success-7 bg-success-3 rounded-md p-3 text-sm text-success-11 font-medium flex items-center gap-2">
<span>{t('Done!')}</span>
</div>
</TimelineItem>
@@ -300,8 +299,8 @@ export const DoneBlock = () => {
export const FailedBlock = () => {
return (
- <TimelineItem icon={<CircleX className="h-4 w-4 text-destructive-600" />}>
- <div className="border border-destructive/40 bg-destructive-50/60 rounded-md p-3 text-sm text-destructive-700 font-medium flex items-center gap-2">
+ <TimelineItem icon={<CircleX className="h-4 w-4 text-danger-11" />}>
+ <div className="border border-danger-7 bg-danger-3 rounded-md p-3 text-sm text-danger-11 font-medium flex items-center gap-2">
<span>{t('Failed')}</span>
</div>
</TimelineItem>
diff --git a/packages/web/src/features/agents/agent-tool-stack.tsx b/packages/web/src/features/agents/agent-tool-stack.tsx
index 542196499a1..57d6f00ae86 100644
--- a/packages/web/src/features/agents/agent-tool-stack.tsx
+++ b/packages/web/src/features/agents/agent-tool-stack.tsx
@@ -30,8 +30,8 @@ export const AgentToolStack = ({
if (toolCount === 0) {
return (
- <span className="flex items-center gap-1.5 text-[13px] leading-5 text-muted-foreground">
- <Unplug size={14} className="text-neutral-400" />
+ <span className="flex items-center gap-1.5 text-[13px] leading-5 text-gray-11">
+ <Unplug size={14} className="text-gray-11" />
{t('No tools')}
</span>
);
@@ -46,7 +46,7 @@ export const AgentToolStack = ({
logoUrl={metadata.logoUrl}
displayName={metadata.displayName}
showTooltip={true}
- size="tile"
+ size="xs"
border={true}
/>
),
@@ -62,7 +62,7 @@ export const AgentToolStack = ({
element: (
<Tooltip key={type}>
<TooltipTrigger asChild>
- <span className="flex size-6.5 items-center justify-center rounded-md border bg-background text-muted-foreground">
+ <span className="flex size-6.5 items-center justify-center rounded-md border bg-gray-1 text-gray-11">
<Icon size={14} />
</span>
</TooltipTrigger>
@@ -83,7 +83,7 @@ export const AgentToolStack = ({
<div className="flex shrink-0 items-center gap-[5px]">
{visible.map((tile) => tile.element)}
{remaining > 0 && (
- <span className="flex size-[26px] items-center justify-center rounded-[7px] bg-[#F0F0F2] text-xs leading-none font-semibold text-[#8A8A8F]">
+ <span className="flex size-6.25 items-center justify-center rounded-[7px] bg-gray-3 text-xs leading-none font-semibold text-gray-11">
+{remaining}
</span>
)}
diff --git a/packages/web/src/features/agents/agent-tools/components/add-row.tsx b/packages/web/src/features/agents/agent-tools/components/add-row.tsx
index 2ce6432d5cc..7e81c99bbe3 100644
--- a/packages/web/src/features/agents/agent-tools/components/add-row.tsx
+++ b/packages/web/src/features/agents/agent-tools/components/add-row.tsx
@@ -10,7 +10,7 @@ export const AddRow = ({
<button
type="button"
disabled={disabled}
- className="flex w-full items-center justify-center gap-[7px] rounded-[10px] border border-dashed border-border px-[11px] py-[9px] text-[13px] font-medium leading-4 text-muted-foreground transition-colors hover:border-muted-foreground/50 hover:bg-accent hover:text-foreground disabled:opacity-50"
+ className="flex w-full items-center justify-center gap-[7px] rounded-[10px] border border-dashed border-gray-6 px-[11px] py-[9px] text-[13px] font-medium leading-4 text-gray-11 transition-colors hover:border-gray-8 hover:bg-gray-4 hover:text-gray-12 disabled:opacity-50"
>
<Plus className="size-3.5" />
{label}
diff --git a/packages/web/src/features/agents/agent-tools/components/flow-tool.tsx b/packages/web/src/features/agents/agent-tools/components/flow-tool.tsx
index 653f8c87826..ede57afa625 100644
--- a/packages/web/src/features/agents/agent-tools/components/flow-tool.tsx
+++ b/packages/web/src/features/agents/agent-tools/components/flow-tool.tsx
@@ -31,10 +31,10 @@ export const AgentFlowToolComponent = ({
return (
<AccordionItem value="flows" className="border-b last:border-0">
- <AccordionTrigger className="px-4 py-3 hover:no-underline hover:bg-accent transition-all">
+ <AccordionTrigger className="px-4 py-3 hover:no-underline hover:bg-gray-4 transition-all">
<div className="flex items-center gap-3">
- <div className="h-8 w-8 rounded-md bg-muted flex items-center justify-center">
- <Workflow className="size-4 text-muted-foreground" />
+ <div className="h-8 w-8 rounded-md bg-gray-3 flex items-center justify-center">
+ <Workflow className="size-4 text-gray-11" />
</div>
<span className="text-sm font-medium">{t('Flows')}</span>
</div>
@@ -47,7 +47,7 @@ export const AgentFlowToolComponent = ({
key={tool.toolName}
className={`
group flex items-center gap-2 px-3 py-1
- rounded-full border bg-muted/50
+ rounded-full border bg-gray-3/50
${disabled ? 'opacity-50 pointer-events-none' : ''}
`}
>
@@ -64,9 +64,9 @@ export const AgentFlowToolComponent = ({
size="icon"
className="
size-5 p-0.5
- text-muted-foreground
- hover:text-destructive
- hover:bg-destructive/10
+ text-gray-11
+ hover:text-danger-11
+ hover:bg-danger-3
transition
"
>
diff --git a/packages/web/src/features/agents/agent-tools/components/knowledge-base-tool.tsx b/packages/web/src/features/agents/agent-tools/components/knowledge-base-tool.tsx
index 88d22aed0e4..0ac3e3e4081 100644
--- a/packages/web/src/features/agents/agent-tools/components/knowledge-base-tool.tsx
+++ b/packages/web/src/features/agents/agent-tools/components/knowledge-base-tool.tsx
@@ -42,14 +42,14 @@ function KnowledgeBaseToolPills({
key={tool.toolName}
onClick={() => setShowAddKbDialog(true, tool)}
className={cn(
- 'group flex items-center gap-2 px-3 py-1 cursor-pointer rounded-full border bg-muted/50',
+ 'group flex items-center gap-2 px-3 py-1 cursor-pointer rounded-full border bg-gray-3/50',
disabled && 'opacity-50 pointer-events-none',
)}
>
{tool.sourceType === KnowledgeBaseSourceType.FILE ? (
- <FileText className="size-3.5 text-muted-foreground shrink-0" />
+ <FileText className="size-3.5 text-gray-11 shrink-0" />
) : (
- <Table2 className="size-3.5 text-muted-foreground shrink-0" />
+ <Table2 className="size-3.5 text-gray-11 shrink-0" />
)}
<span className="text-xs font-medium max-w-40 truncate">
{tool.sourceName}
@@ -67,9 +67,9 @@ function KnowledgeBaseToolPills({
size="icon"
className="
size-5 p-0.5
- text-muted-foreground
- hover:text-destructive
- hover:bg-destructive/10
+ text-gray-11
+ hover:text-danger-11
+ hover:bg-danger-3
transition
"
>
@@ -132,7 +132,7 @@ export const KnowledgeBaseSection = ({
<AddKnowledgeBaseDropdown disabled={disabled} />
</div>
) : (
- <p className="text-xs text-muted-foreground mt-3">
+ <p className="text-xs text-gray-11 mt-3">
{t(
'The selected provider does not support embeddings. Switch to a provider like OpenAI or Google for knowledge base to work.',
)}
@@ -145,20 +145,20 @@ export const KnowledgeBaseSection = ({
<AddRow label={t('Add knowledge')} disabled={disabled} />
</AddKnowledgeBaseDropdown>
) : (
- <p className="text-xs leading-4 text-muted-foreground">
+ <p className="text-xs leading-4 text-gray-11">
{t(
'Knowledge base requires a provider that supports embeddings, such as OpenAI or Google.',
)}
</p>
)
) : (
- <div className="flex flex-col items-center justify-center gap-4 rounded-xl border bg-card px-4 py-8 text-center">
- <div className="flex items-center justify-center h-10 w-10 rounded-full border bg-background">
+ <div className="flex flex-col items-center justify-center gap-4 rounded-xl border bg-panel px-4 py-8 text-center">
+ <div className="flex items-center justify-center h-10 w-10 rounded-full border bg-gray-1">
<BookOpen className="size-5" />
</div>
{supportsEmbeddings ? (
<>
- <p className="text-sm font-medium text-muted-foreground">
+ <p className="text-sm font-medium text-gray-11">
{t(
'Add files or tables as knowledge sources for your agent.',
)}
@@ -166,7 +166,7 @@ export const KnowledgeBaseSection = ({
<AddKnowledgeBaseDropdown disabled={disabled} />
</>
) : (
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t(
'Knowledge base requires a provider that supports embeddings, such as OpenAI or Google.',
)}
diff --git a/packages/web/src/features/agents/agent-tools/components/mcp-tool.tsx b/packages/web/src/features/agents/agent-tools/components/mcp-tool.tsx
index c84b48e22a0..7f68990d1ca 100644
--- a/packages/web/src/features/agents/agent-tools/components/mcp-tool.tsx
+++ b/packages/web/src/features/agents/agent-tools/components/mcp-tool.tsx
@@ -32,9 +32,9 @@ export const AgentMcpToolComponent = ({
return (
<AccordionItem value="mcp" className="border-b last:border-0">
- <AccordionTrigger className="px-4 py-3 hover:no-underline hover:bg-accent transition-all">
+ <AccordionTrigger className="px-4 py-3 hover:no-underline hover:bg-gray-4 transition-all">
<div className="flex items-center gap-3">
- <div className="h-8 w-8 rounded-md bg-muted flex items-center justify-center">
+ <div className="h-8 w-8 rounded-md bg-gray-3 flex items-center justify-center">
<McpSvg className="size-3.5" />
</div>
<span className="text-sm font-medium">{t('MCP Servers')}</span>
@@ -49,7 +49,7 @@ export const AgentMcpToolComponent = ({
onClick={() => setShowAddMcpDialog(true, tool)}
className={`
group flex items-center gap-2 px-3 py-1 cursor-pointer
- rounded-full border bg-muted/50
+ rounded-full border bg-gray-3/50
${disabled ? 'opacity-50 pointer-events-none' : ''}
`}
>
@@ -69,9 +69,9 @@ export const AgentMcpToolComponent = ({
size="icon"
className="
size-5 p-0.5
- text-muted-foreground
- hover:text-destructive
- hover:bg-destructive/10
+ text-gray-11
+ hover:text-danger-11
+ hover:bg-danger-3
transition
"
>
diff --git a/packages/web/src/features/agents/agent-tools/components/piece-tool.tsx b/packages/web/src/features/agents/agent-tools/components/piece-tool.tsx
index 92cab48fd33..882bd2ede2a 100644
--- a/packages/web/src/features/agents/agent-tools/components/piece-tool.tsx
+++ b/packages/web/src/features/agents/agent-tools/components/piece-tool.tsx
@@ -4,6 +4,7 @@ import { t } from 'i18next';
import { Plus, Puzzle, X } from 'lucide-react';
import { useMemo } from 'react';
+import { LogoPlate } from '@/components/custom/logo-plate';
import {
AccordionContent,
AccordionItem,
@@ -115,34 +116,29 @@ export const AgentPieceToolComponent = ({
value={pieceMetadata.pieceName}
className="border-b last:border-0"
>
- <AccordionTrigger className="px-4 py-3 hover:no-underline hover:bg-accent transition-all">
+ <AccordionTrigger className="px-4 py-3 hover:no-underline hover:bg-gray-4 transition-all">
<div className="flex w-full items-center justify-between">
<div className="flex items-center gap-3">
- <div className="h-8 w-8 rounded-md bg-muted flex items-center justify-center">
- {pieceMetadata.logoUrl ? (
- <img
- src={pieceMetadata.logoUrl}
- alt={pieceMetadata.displayName}
- className="h-5 w-5 object-contain"
- />
- ) : (
- <Puzzle className="h-5 w-5 text-muted-foreground" />
- )}
- </div>
+ <LogoPlate
+ src={pieceMetadata.logoUrl}
+ alt={pieceMetadata.displayName}
+ className="size-8 p-1.5"
+ fallback={<Puzzle className="h-5 w-5" />}
+ />
<span className="text-sm font-medium">
{pieceMetadata.displayName}
</span>
</div>
{!isNil(account) && (
- <span className="ms-3 flex min-w-0 shrink items-center gap-1.5 text-xs text-muted-foreground">
+ <span className="ms-3 flex min-w-0 shrink items-center gap-1.5 text-xs text-gray-11">
<span
className={cn(
'size-[6px] shrink-0 rounded-full',
- account.state === 'connected' && 'bg-success',
- account.state === 'deleted' && 'bg-destructive',
- account.state === 'missing' && 'bg-warning',
- account.state === 'mixed' && 'bg-muted-foreground',
+ account.state === 'connected' && 'bg-success-11',
+ account.state === 'deleted' && 'bg-danger-11',
+ account.state === 'missing' && 'bg-warning-11',
+ account.state === 'mixed' && 'bg-gray-11',
)}
/>
<span className="truncate">{accountText}</span>
@@ -166,7 +162,7 @@ export const AgentPieceToolComponent = ({
onClick={() => handleEditTool(tool)}
className={`
group flex items-center gap-2 px-3 py-1 cursor-pointer
- rounded-full border bg-muted/50
+ rounded-full border bg-gray-3/50
${disabled ? 'opacity-50 pointer-events-none' : ''}
`}
>
@@ -187,9 +183,9 @@ export const AgentPieceToolComponent = ({
size="icon"
className="
size-5 p-0.5
- text-muted-foreground
- hover:text-destructive
- hover:bg-destructive/10
+ text-gray-11
+ hover:text-danger-11
+ hover:bg-danger-3
transition
"
>
diff --git a/packages/web/src/features/agents/agent-tools/flow-tool-dialog/flow-dialog-content.tsx b/packages/web/src/features/agents/agent-tools/flow-tool-dialog/flow-dialog-content.tsx
index 42015ab288a..84ccc30fbe1 100644
--- a/packages/web/src/features/agents/agent-tools/flow-tool-dialog/flow-dialog-content.tsx
+++ b/packages/web/src/features/agents/agent-tools/flow-tool-dialog/flow-dialog-content.tsx
@@ -81,8 +81,8 @@ export const FlowDialogContent = ({
<div
className={`
flex items-center gap-4 px-4 py-2 h-14 rounded-md cursor-pointer
- hover:bg-accent hover:text-accent-foreground
- ${selected ? 'bg-accent' : ''}
+ hover:bg-gray-4 hover:text-gray-12
+ ${selected ? 'bg-gray-4' : ''}
${!isSelectable ? 'opacity-50 cursor-not-allowed' : ''}
`}
onClick={() => isSelectable && toggleFlow(flow)}
@@ -100,7 +100,7 @@ export const FlowDialogContent = ({
</div>
{helperText && (
- <div className="text-xs text-muted-foreground truncate">
+ <div className="text-xs text-gray-11 truncate">
{helperText}
</div>
)}
@@ -113,7 +113,7 @@ export const FlowDialogContent = ({
</div>
{index < filteredFlows.length - 1 && (
- <div className="h-px bg-border my-1" />
+ <div className="h-px bg-gray-6 my-1" />
)}
</div>
);
@@ -122,15 +122,15 @@ export const FlowDialogContent = ({
{filteredFlows.length === 0 && (
<div className="flex flex-col items-center justify-center py-20 text-center">
- <div className="mb-5 flex size-14 items-center justify-center rounded-xl border bg-muted/40">
- <Workflow className="size-7 text-muted-foreground" />
+ <div className="mb-5 flex size-14 items-center justify-center rounded-xl border bg-gray-3/40">
+ <Workflow className="size-7 text-gray-11" />
</div>
- <div className="text-base font-semibold text-foreground">
+ <div className="text-base font-semibold text-gray-12">
{t('No flows found')}
</div>
- <div className="mt-2 max-w-sm text-sm leading-relaxed text-muted-foreground">
+ <div className="mt-2 max-w-sm text-sm leading-relaxed text-gray-11">
{searchQuery
? t('Try adjusting your search or create a new flow.')
: t('Create a flow to use it as a tool in your agent.')}
diff --git a/packages/web/src/features/agents/agent-tools/flow-tool-dialog/index.tsx b/packages/web/src/features/agents/agent-tools/flow-tool-dialog/index.tsx
index 93bd0b45332..cbdf09b36fc 100644
--- a/packages/web/src/features/agents/agent-tools/flow-tool-dialog/index.tsx
+++ b/packages/web/src/features/agents/agent-tools/flow-tool-dialog/index.tsx
@@ -77,7 +77,7 @@ export function AgentFlowToolDialog({
<div className="px-4 py-3 border-b">
<div className="relative border rounded-sm">
- <Search className="absolute left-2 top-2.5 size-4 text-muted-foreground" />
+ <Search className="absolute left-2 top-2.5 size-4 text-gray-11" />
<Input
placeholder={t('Search')}
value={searchQuery}
diff --git a/packages/web/src/features/agents/agent-tools/knowledge-base-dialog/index.tsx b/packages/web/src/features/agents/agent-tools/knowledge-base-dialog/index.tsx
index aa2197675f7..48783985a26 100644
--- a/packages/web/src/features/agents/agent-tools/knowledge-base-dialog/index.tsx
+++ b/packages/web/src/features/agents/agent-tools/knowledge-base-dialog/index.tsx
@@ -270,7 +270,7 @@ function KnowledgeBaseDialogContent({
: t('e.g., products_catalog')
}
/>
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{t(
'A unique name for the agent to reference this knowledge source',
)}
diff --git a/packages/web/src/features/agents/agent-tools/mcp-tool-dialog/index.tsx b/packages/web/src/features/agents/agent-tools/mcp-tool-dialog/index.tsx
index 6343fa4961d..be7613b4436 100644
--- a/packages/web/src/features/agents/agent-tools/mcp-tool-dialog/index.tsx
+++ b/packages/web/src/features/agents/agent-tools/mcp-tool-dialog/index.tsx
@@ -161,12 +161,12 @@ export function AgentMcpDialog({
{step === 'validating' && (
<div className="flex flex-col items-center justify-center py-12 space-y-4">
- <Loader2 className="w-12 h-12 animate-spin text-primary" />
+ <Loader2 className="w-12 h-12 animate-spin text-accent-11" />
<div className="text-center space-y-2">
<h3 className="text-lg font-semibold">
{t('Connecting to MCP Server')}
</h3>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t('Validating server configuration...')}
</p>
</div>
@@ -177,28 +177,28 @@ export function AgentMcpDialog({
<div className="space-y-6">
{validationResult.error ? (
<div className="flex flex-col items-center justify-center py-8 space-y-4">
- <div className="rounded-full bg-destructive/10 p-3">
- <AlertCircle className="w-8 h-8 text-destructive" />
+ <div className="rounded-full bg-danger-3 p-3">
+ <AlertCircle className="w-8 h-8 text-danger-11" />
</div>
<div className="text-center space-y-2">
<h3 className="text-lg font-semibold">
{t('Connection Failed')}
</h3>
- <p className="text-sm text-muted-foreground max-w-md">
+ <p className="text-sm text-gray-11 max-w-md">
{validationResult.error}
</p>
</div>
</div>
) : (
<div className="flex flex-col items-center justify-center py-8 space-y-4">
- <div className="rounded-full bg-success-100 p-3">
- <CheckCircle2 className="w-8 h-8 text-success" />
+ <div className="rounded-full bg-success-3 p-3">
+ <CheckCircle2 className="w-8 h-8 text-success-11" />
</div>
<div className="text-center space-y-2">
<h3 className="text-lg font-semibold">
{t('Connection Successful')}
</h3>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t('Available tools from MCP server:')}
</p>
</div>
@@ -209,9 +209,9 @@ export function AgentMcpDialog({
{validationResult.toolNames.map((tool, index) => (
<div
key={index}
- className="flex items-center gap-2 p-2 rounded bg-muted/50"
+ className="flex items-center gap-2 p-2 rounded bg-gray-3/50"
>
- <CheckCircle2 className="w-4 h-4 text-success shrink-0" />
+ <CheckCircle2 className="w-4 h-4 text-success-11 shrink-0" />
<span className="text-sm font-medium">{tool}</span>
</div>
))}
diff --git a/packages/web/src/features/agents/agent-tools/piece-tool-dialog/connection-select.tsx b/packages/web/src/features/agents/agent-tools/piece-tool-dialog/connection-select.tsx
index 93413693cf7..b7a18d022d2 100644
--- a/packages/web/src/features/agents/agent-tools/piece-tool-dialog/connection-select.tsx
+++ b/packages/web/src/features/agents/agent-tools/piece-tool-dialog/connection-select.tsx
@@ -90,10 +90,10 @@ export const ConnectionDropdown = React.memo(
loading={connectionsLoading || isRefetchingConnections}
disabled={disabled}
showDeselect={!disabled && value !== null}
- triggerClassName={showError ? 'border-destructive' : undefined}
+ triggerClassName={showError ? 'border-danger-9' : undefined}
/>
{showError && (
- <p className="text-sm font-medium text-destructive break-words">
+ <p className="text-sm font-medium text-danger-11 break-words">
{t('Connection is required')}
</p>
)}
diff --git a/packages/web/src/features/agents/agent-tools/piece-tool-dialog/dialog-pages/piece-actions-list.tsx b/packages/web/src/features/agents/agent-tools/piece-tool-dialog/dialog-pages/piece-actions-list.tsx
index 7b96335a63a..ad7f341727a 100644
--- a/packages/web/src/features/agents/agent-tools/piece-tool-dialog/dialog-pages/piece-actions-list.tsx
+++ b/packages/web/src/features/agents/agent-tools/piece-tool-dialog/dialog-pages/piece-actions-list.tsx
@@ -6,6 +6,7 @@ import { Search } from 'lucide-react';
import React, { useMemo, useState } from 'react';
import { useDebounce } from 'use-debounce';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { Input } from '@/components/ui/input';
import { ScrollArea } from '@/components/ui/scroll-area';
@@ -56,7 +57,7 @@ export const PieceActionsList: React.FC<PieceActionsDialogProps> = ({
<ScrollArea className="overflow-y-auto">
<div className="px-4 py-3 border-b">
<div className="relative border rounded-sm">
- <Search className="absolute left-2 top-2.5 size-4 text-muted-foreground" />
+ <Search className="absolute left-2 top-2.5 size-4 text-gray-11" />
<Input
placeholder={t('Search')}
value={searchQuery}
@@ -83,7 +84,7 @@ export const PieceActionsList: React.FC<PieceActionsDialogProps> = ({
${
isDisabled
? 'opacity-50 cursor-not-allowed'
- : 'hover:bg-accent cursor-pointer'
+ : 'hover:bg-gray-4 cursor-pointer'
}
`}
onClick={() => {
@@ -93,13 +94,12 @@ export const PieceActionsList: React.FC<PieceActionsDialogProps> = ({
}}
>
<div className="flex gap-2">
- <div className="size-9 flex items-center justify-center rounded-sm border bg-background">
- <img
- className="size-6 object-contain"
- src={selectedPiece.logoUrl}
- alt={selectedPiece.displayName}
- />
- </div>
+ <LogoPlate
+ className="size-9 rounded-sm p-1.5"
+ border
+ src={selectedPiece.logoUrl}
+ alt={selectedPiece.displayName}
+ />
<div className="flex-1">
<div className="flex items-center gap-2">
@@ -108,14 +108,14 @@ export const PieceActionsList: React.FC<PieceActionsDialogProps> = ({
</span>
{isDisabled && (
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{t('(Already added)')}
</span>
)}
</div>
{action.description && (
- <div className="text-xs text-muted-foreground mt-0.5 line-clamp-2">
+ <div className="text-xs text-gray-11 mt-0.5 line-clamp-2">
{action.description}
</div>
)}
@@ -126,7 +126,7 @@ export const PieceActionsList: React.FC<PieceActionsDialogProps> = ({
})}
{filteredActions.length === 0 && (
- <div className="text-center text-muted-foreground py-8">
+ <div className="text-center text-gray-11 py-8">
{t('No actions found')}
</div>
)}
diff --git a/packages/web/src/features/agents/agent-tools/piece-tool-dialog/dialog-pages/pieces-list.tsx b/packages/web/src/features/agents/agent-tools/piece-tool-dialog/dialog-pages/pieces-list.tsx
index 0daa8854643..51f9f765676 100644
--- a/packages/web/src/features/agents/agent-tools/piece-tool-dialog/dialog-pages/pieces-list.tsx
+++ b/packages/web/src/features/agents/agent-tools/piece-tool-dialog/dialog-pages/pieces-list.tsx
@@ -2,6 +2,7 @@ import { t } from 'i18next';
import { Search } from 'lucide-react';
import React from 'react';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { Input } from '@/components/ui/input';
import { ScrollArea } from '@/components/ui/scroll-area';
import { Skeleton } from '@/components/ui/skeleton';
@@ -26,7 +27,7 @@ export const PiecesList: React.FC<PiecesContentProps> = ({
<div className="flex flex-col h-full">
<div className="px-4 py-3 border-b">
<div className="relative border rounded-sm">
- <Search className="absolute left-2 top-2.5 size-4 text-muted-foreground" />
+ <Search className="absolute left-2 top-2.5 size-4 text-gray-11" />
<Input
placeholder={t('Search')}
value={searchQuery}
@@ -44,7 +45,7 @@ export const PiecesList: React.FC<PiecesContentProps> = ({
))}
</div>
) : isEmpty ? (
- <div className="h-full flex items-center py-2 justify-center text-muted-foreground">
+ <div className="h-full flex items-center py-2 justify-center text-gray-11">
{t('No pieces found')}
</div>
) : (
@@ -53,15 +54,14 @@ export const PiecesList: React.FC<PiecesContentProps> = ({
<div
key={index}
onClick={() => handlePieceSelect(piece)}
- className="p-2 flex items-center gap-x-2 hover:bg-accent cursor-pointer rounded-lg"
+ className="p-2 flex items-center gap-x-2 hover:bg-gray-4 cursor-pointer rounded-lg"
>
- <div className="size-9 flex items-center justify-center rounded-sm aspect-square border bg-background">
- <img
- className="size-6 rounded object-contain"
- src={piece.logoUrl}
- alt={piece.displayName}
- />
- </div>
+ <LogoPlate
+ className="size-9 rounded-sm p-1.5"
+ border
+ src={piece.logoUrl}
+ alt={piece.displayName}
+ />
<p className="font-semibold text-sm">{piece.displayName}</p>
</div>
diff --git a/packages/web/src/features/agents/ai-model/index.tsx b/packages/web/src/features/agents/ai-model/index.tsx
index 91f1eba2180..cdb4156898d 100644
--- a/packages/web/src/features/agents/ai-model/index.tsx
+++ b/packages/web/src/features/agents/ai-model/index.tsx
@@ -5,6 +5,7 @@ import { t } from 'i18next';
import { Check, ChevronsUpDown, Loader2 } from 'lucide-react';
import * as React from 'react';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { Button } from '@/components/ui/button';
import {
Command,
@@ -211,7 +212,7 @@ export function AIModelSelector({
<h2 className="text-sm font-medium">{t('AI Model *')}</h2>
)}
- <div className="flex items-stretch border rounded-md bg-background overflow-hidden">
+ <div className="flex items-stretch border rounded-md bg-gray-1 overflow-hidden">
<Popover open={providerOpen} onOpenChange={setProviderOpen}>
<PopoverTrigger asChild>
<Button
@@ -229,10 +230,10 @@ export function AIModelSelector({
) : selectedProvider ? (
<div className="flex items-center gap-2">
{getProviderLogo(selectedProvider) && (
- <img
+ <LogoPlate
src={getProviderLogo(selectedProvider)}
alt={selectedProvider}
- className="h-4 w-4 object-contain"
+ className="size-4 rounded-sm p-px"
/>
)}
<span className="truncate">
@@ -240,7 +241,7 @@ export function AIModelSelector({
</span>
</div>
) : (
- <span className="text-muted-foreground">
+ <span className="text-gray-11">
{providers.length === 0
? t('No providers')
: t('Select provider')}
@@ -268,10 +269,10 @@ export function AIModelSelector({
>
<div className="flex items-center gap-2 flex-1">
{getProviderLogo(option.provider) && (
- <img
+ <LogoPlate
src={getProviderLogo(option.provider)}
alt={option.provider}
- className="h-4 w-4 object-contain"
+ className="size-4 rounded-sm p-px"
/>
)}
<span>{option.label}</span>
@@ -291,7 +292,7 @@ export function AIModelSelector({
</PopoverContent>
</Popover>
- <div className="w-px bg-border self-stretch" />
+ <div className="w-px bg-gray-6 self-stretch" />
<Popover open={modelOpen} onOpenChange={setModelOpen}>
<PopoverTrigger asChild>
@@ -318,7 +319,7 @@ export function AIModelSelector({
selectedModel}
</span>
) : (
- <span className="text-muted-foreground">
+ <span className="text-gray-11">
{!selectedProvider
? t('Select provider first')
: models.length === 0
@@ -362,7 +363,7 @@ export function AIModelSelector({
</div>
{selectedProvider && showEmbeddingNote && (
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{PROVIDER_EMBEDDING_MODELS[selectedProvider]
? t('Embedding model for knowledge base: {model}', {
model: PROVIDER_EMBEDDING_MODELS[selectedProvider],
diff --git a/packages/web/src/features/agents/move-agent-dialog.tsx b/packages/web/src/features/agents/move-agent-dialog.tsx
index b0164bdc30d..2eb9acb6077 100644
--- a/packages/web/src/features/agents/move-agent-dialog.tsx
+++ b/packages/web/src/features/agents/move-agent-dialog.tsx
@@ -118,7 +118,7 @@ export const MoveAgentDialog = ({
</MoveAlert>
)}
{target !== undefined && !checkFailed && preview === undefined && (
- <p className="text-[13px] leading-4 text-muted-foreground">
+ <p className="text-[13px] leading-4 text-gray-11">
{t('Checking what this move affects…')}
</p>
)}
@@ -131,7 +131,7 @@ export const MoveAgentDialog = ({
)}
{preview?.mayCreateAgentsThere === true &&
(losses.length === 0 ? (
- <p className="text-[13px] leading-4 text-muted-foreground">
+ <p className="text-[13px] leading-4 text-gray-11">
{t('agentMoveNothingBreaks', { project: projectName })}
</p>
) : (
@@ -145,7 +145,7 @@ export const MoveAgentDialog = ({
</MoveAlert>
))}
{moveAgent.error !== null && (
- <p className="text-[13px] leading-4 text-destructive">
+ <p className="text-[13px] leading-4 text-danger-11">
{api.extractServerErrorMessage(
moveAgent.error,
t('That agent could not be moved.'),
diff --git a/packages/web/src/features/agents/new-blank-agent-button.tsx b/packages/web/src/features/agents/new-blank-agent-button.tsx
index ff8278bbd86..491bb268e96 100644
--- a/packages/web/src/features/agents/new-blank-agent-button.tsx
+++ b/packages/web/src/features/agents/new-blank-agent-button.tsx
@@ -55,7 +55,7 @@ export const NewBlankAgentButton = ({
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-[220px]">
- <DropdownMenuLabel className="text-xs font-normal text-muted-foreground">
+ <DropdownMenuLabel className="text-xs font-normal text-gray-11">
{t('Create it in')}
</DropdownMenuLabel>
{projects.map((project) => (
diff --git a/packages/web/src/features/agents/structured-output/add-field-popover.tsx b/packages/web/src/features/agents/structured-output/add-field-popover.tsx
index 5a79488947b..86009852b89 100644
--- a/packages/web/src/features/agents/structured-output/add-field-popover.tsx
+++ b/packages/web/src/features/agents/structured-output/add-field-popover.tsx
@@ -81,7 +81,7 @@ export const AddFieldPopover = ({
<div className="flex items-center">
<FieldTypeIcon
type={AgentOutputFieldType.TEXT}
- className="h-4 w-4 mr-2 text-muted-foreground"
+ className="h-4 w-4 mr-2 text-gray-11"
/>
<span>Text</span>
</div>
@@ -90,7 +90,7 @@ export const AddFieldPopover = ({
<div className="flex items-center">
<FieldTypeIcon
type={AgentOutputFieldType.NUMBER}
- className="h-4 w-4 mr-2 text-muted-foreground"
+ className="h-4 w-4 mr-2 text-gray-11"
/>
<span>Number</span>
</div>
@@ -99,7 +99,7 @@ export const AddFieldPopover = ({
<div className="flex items-center">
<FieldTypeIcon
type={AgentOutputFieldType.BOOLEAN}
- className="h-4 w-4 mr-2 text-muted-foreground"
+ className="h-4 w-4 mr-2 text-gray-11"
/>
<span>Yes/No</span>
</div>
diff --git a/packages/web/src/features/agents/structured-output/index.tsx b/packages/web/src/features/agents/structured-output/index.tsx
index 345cb1a6cc9..b72f823a338 100644
--- a/packages/web/src/features/agents/structured-output/index.tsx
+++ b/packages/web/src/features/agents/structured-output/index.tsx
@@ -62,7 +62,7 @@ export const AgentStructuredOutput = ({
{field.displayName}
</span>
{field.description && (
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{field.description}
</span>
)}
@@ -84,7 +84,7 @@ export const AgentStructuredOutput = ({
</CardContent>
</Card>
) : (
- <div className="text-muted-foreground text-sm">
+ <div className="text-gray-11 text-sm">
{t('No structured output fields yet.')}
</div>
)}
diff --git a/packages/web/src/features/authentication/components/auth-landing/auth-backdrop.tsx b/packages/web/src/features/authentication/components/auth-landing/auth-backdrop.tsx
index 1d2522646c7..d8c1705900b 100644
--- a/packages/web/src/features/authentication/components/auth-landing/auth-backdrop.tsx
+++ b/packages/web/src/features/authentication/components/auth-landing/auth-backdrop.tsx
@@ -14,6 +14,7 @@ import {
Workflow,
} from 'lucide-react';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { flagsHooks } from '@/hooks/flags-hooks';
export function AuthBackdrop() {
@@ -23,14 +24,14 @@ export function AuthBackdrop() {
return (
<div
aria-hidden
- className="pointer-events-none absolute inset-0 flex select-none overflow-hidden bg-sidebar animate-in fade-in duration-700"
+ className="pointer-events-none absolute inset-0 flex select-none overflow-hidden bg-gray-2 animate-in fade-in duration-700"
>
<SidebarFacsimile logoUrl={logoUrl} />
<div className="min-w-0 flex-1 p-1.5">
- <div className="flex h-full flex-col overflow-hidden rounded-xl border bg-background shadow-[2px_0px_4px_-2px_rgba(0,0,0,0.05),0px_2px_4px_-2px_rgba(0,0,0,0.05)]">
- <div className="flex items-center gap-2 border-b px-5 py-3 text-sm text-muted-foreground">
+ <div className="flex h-full flex-col overflow-hidden rounded-xl border bg-gray-1 shadow-panel">
+ <div className="flex items-center gap-2 border-b px-5 py-3 text-sm text-gray-11">
<MessageCircle className="size-4" />
- <span className="font-medium text-foreground/80">
+ <span className="font-medium text-gray-12/80">
Daily Stripe summary
</span>
</div>
@@ -60,14 +61,14 @@ function SidebarFacsimile({ logoUrl }: { logoUrl: string }) {
return (
<div className="hidden w-60 shrink-0 flex-col gap-4 px-3 py-3 lg:flex">
<div className="flex items-center gap-2 rounded-md px-1.5 py-1">
- <img src={logoUrl} alt="" className="size-5 object-contain" />
- <span className="truncate text-sm font-medium text-foreground/80">
+ <LogoPlate src={logoUrl} className="size-5 rounded-sm p-px" />
+ <span className="truncate text-sm font-medium text-gray-12/80">
Acme Inc
</span>
- <ChevronsUpDown className="ml-auto size-3.5 text-muted-foreground" />
+ <ChevronsUpDown className="ml-auto size-3.5 text-gray-11" />
</div>
- <div className="flex items-center gap-2 rounded-lg bg-primary px-2.5 py-2 text-sm font-medium text-primary-foreground shadow-sm">
+ <div className="flex items-center gap-2 rounded-lg bg-accent-9 px-2.5 py-2 text-sm font-medium text-on-accent shadow-sm">
<Plus className="size-4" strokeWidth={2.5} />
New chat
</div>
@@ -78,8 +79,8 @@ function SidebarFacsimile({ logoUrl }: { logoUrl: string }) {
key={label}
className={
active
- ? 'flex items-center gap-2.5 rounded-md bg-accent px-2.5 py-1.5 text-sm font-medium text-accent-foreground'
- : 'flex items-center gap-2.5 rounded-md px-2.5 py-1.5 text-sm text-muted-foreground'
+ ? 'flex items-center gap-2.5 rounded-md bg-gray-4 px-2.5 py-1.5 text-sm font-medium text-gray-12'
+ : 'flex items-center gap-2.5 rounded-md px-2.5 py-1.5 text-sm text-gray-11'
}
>
<Icon className="size-4" />
@@ -89,7 +90,7 @@ function SidebarFacsimile({ logoUrl }: { logoUrl: string }) {
</div>
<div className="flex min-h-0 flex-col gap-1">
- <span className="px-2.5 pb-1 text-[11px] font-medium uppercase tracking-wide text-muted-foreground/70">
+ <span className="px-2.5 pb-1 text-[11px] font-medium uppercase tracking-wide text-gray-11">
Recent
</span>
{RECENT_CHATS.map((title, index) => (
@@ -97,8 +98,8 @@ function SidebarFacsimile({ logoUrl }: { logoUrl: string }) {
key={title}
className={
index === 0
- ? 'truncate rounded-md bg-accent px-2.5 py-1.5 text-[13px] text-accent-foreground'
- : 'truncate rounded-md px-2.5 py-1.5 text-[13px] text-muted-foreground'
+ ? 'truncate rounded-md bg-gray-4 px-2.5 py-1.5 text-[13px] text-gray-12'
+ : 'truncate rounded-md px-2.5 py-1.5 text-[13px] text-gray-11'
}
>
{title}
@@ -107,8 +108,8 @@ function SidebarFacsimile({ logoUrl }: { logoUrl: string }) {
</div>
<div className="mt-auto flex items-center gap-2 rounded-md px-1.5 py-1">
- <div className="size-6 rounded-full bg-muted" />
- <div className="h-2.5 w-20 rounded-full bg-muted" />
+ <div className="size-6 rounded-full bg-gray-3" />
+ <div className="h-2.5 w-20 rounded-full bg-gray-3" />
</div>
</div>
);
@@ -117,7 +118,7 @@ function SidebarFacsimile({ logoUrl }: { logoUrl: string }) {
function UserTurn({ text }: { text: string }) {
return (
<div className="flex justify-end">
- <div className="max-w-[80%] rounded-2xl rounded-br-md bg-muted px-4 py-3 text-[15px] leading-relaxed text-foreground/80">
+ <div className="max-w-[80%] rounded-2xl rounded-br-md bg-gray-3 px-4 py-3 text-[15px] leading-relaxed text-gray-12/80">
{text}
</div>
</div>
@@ -128,22 +129,20 @@ function AssistantTurn({ turn }: { turn: AssistantTurnData }) {
return (
<div className="space-y-3">
{turn.activity && (
- <span className="inline-flex items-center gap-1.5 rounded-full border bg-muted/50 px-2.5 py-1 text-xs text-foreground/70">
+ <span className="inline-flex items-center gap-1.5 rounded-full border bg-gray-3/50 px-2.5 py-1 text-xs text-gray-12/70">
<Sparkles className="size-3" />
{turn.activity}
</span>
)}
- <p className="text-[15px] leading-relaxed text-foreground/75">
- {turn.text}
- </p>
+ <p className="text-[15px] leading-relaxed text-gray-12/75">{turn.text}</p>
{turn.steps && (
- <div className="space-y-1.5 rounded-xl border bg-muted/30 p-3">
+ <div className="space-y-1.5 rounded-xl border bg-gray-3/30 p-3">
{turn.steps.map((step) => (
<div
key={step}
- className="flex items-center gap-2 text-[13px] text-foreground/70"
+ className="flex items-center gap-2 text-[13px] text-gray-12/70"
>
- <Check className="size-3.5 text-primary" strokeWidth={3} />
+ <Check className="size-3.5 text-accent-11" strokeWidth={3} />
{step}
</div>
))}
@@ -155,20 +154,20 @@ function AssistantTurn({ turn }: { turn: AssistantTurnData }) {
function ComposerFacsimile() {
return (
- <div className="rounded-2xl border border-foreground/20 bg-background px-4 pb-2.5 pt-3.5">
- <p className="text-sm text-muted-foreground">
+ <div className="rounded-2xl border border-gray-6 bg-gray-1 px-4 pb-2.5 pt-3.5">
+ <p className="text-sm text-gray-11">
Tell me what you need... (@ to mention, : for emoji)
</p>
<div className="mt-3 flex items-center justify-between">
<div className="flex items-center gap-1">
- <div className="flex h-7 w-7 items-center justify-center rounded-full text-muted-foreground">
+ <div className="flex h-7 w-7 items-center justify-center rounded-full text-gray-11">
<Paperclip className="size-4" />
</div>
- <div className="flex h-7 w-7 items-center justify-center rounded-full text-muted-foreground">
+ <div className="flex h-7 w-7 items-center justify-center rounded-full text-gray-11">
<Mic className="size-4" />
</div>
</div>
- <div className="flex h-7 w-7 items-center justify-center rounded-full bg-primary text-primary-foreground">
+ <div className="flex h-7 w-7 items-center justify-center rounded-full bg-accent-9 text-on-accent">
<ArrowUp className="size-4" />
</div>
</div>
diff --git a/packages/web/src/features/authentication/components/auth-landing/auth-drawer-body.tsx b/packages/web/src/features/authentication/components/auth-landing/auth-drawer-body.tsx
index 930bf4291f6..544a9c83cef 100644
--- a/packages/web/src/features/authentication/components/auth-landing/auth-drawer-body.tsx
+++ b/packages/web/src/features/authentication/components/auth-landing/auth-drawer-body.tsx
@@ -76,7 +76,7 @@ const RESEND_COOLDOWN_SECONDS = 60;
// label, not a statement that slows the eye down. 400 is the lightest weight
// actually loaded; 300 would silently fall back and look identical.
const AUTH_TITLE_CLASS =
- 'text-center text-[21px] font-normal leading-snug tracking-[-0.02em] text-balance text-foreground';
+ 'text-center text-[21px] font-normal leading-snug tracking-[-0.02em] text-balance text-gray-12';
// Steps cross-fade instead of snapping, and the card animates to the new
// height, so moving between email → code → password reads as one surface
@@ -306,7 +306,7 @@ function AuthStep({
isSignUp={effectiveMode === 'signup'}
onSamlClick={() => setSamlOpen(true)}
/>
- <HorizontalSeparatorWithText className="my-5 text-muted-foreground">
+ <HorizontalSeparatorWithText className="my-5 text-gray-11">
{t('or')}
</HorizontalSeparatorWithText>
</>
@@ -390,7 +390,7 @@ function AuthStep({
onSamlClick={() => setSamlOpen(true)}
hideSaml
/>
- <HorizontalSeparatorWithText className="my-4 text-muted-foreground">
+ <HorizontalSeparatorWithText className="my-4 text-gray-11">
{t('or')}
</HorizontalSeparatorWithText>
</>
@@ -406,18 +406,18 @@ function AuthStep({
setStep('code');
}}
/>
- <div className="mt-5 flex items-center justify-center gap-2.5 text-xs text-muted-foreground">
+ <div className="mt-5 flex items-center justify-center gap-2.5 text-xs text-gray-11">
<button
type="button"
onClick={() => setStep('password')}
data-testid="auth-use-password"
- className="transition-colors hover:text-foreground"
+ className="transition-colors hover:text-gray-12"
>
{t('Use password')}
</button>
{thirdParty.saml && (
<>
- <span aria-hidden className="text-border">
+ <span aria-hidden className="text-gray-9">
•
</span>
<button
@@ -429,7 +429,7 @@ function AuthStep({
}
startSamlLogin();
}}
- className="transition-colors hover:text-foreground"
+ className="transition-colors hover:text-gray-12"
>
{t('Use SSO')}
</button>
@@ -454,14 +454,14 @@ function LegalNote() {
}
return (
- <p className="mt-8 border-t pt-5 text-center text-[11px] leading-relaxed text-muted-foreground">
+ <p className="mt-8 border-t pt-5 text-center text-[11px] leading-relaxed text-gray-11">
{t('By continuing, you agree to our')}{' '}
{!isNil(termsUrl) && (
<a
href={termsUrl}
target="_blank"
rel="noreferrer"
- className="underline underline-offset-2 transition-colors hover:text-foreground"
+ className="underline underline-offset-2 transition-colors hover:text-gray-12"
>
{t('Terms of Service')}
</a>
@@ -472,7 +472,7 @@ function LegalNote() {
href={privacyUrl}
target="_blank"
rel="noreferrer"
- className="underline underline-offset-2 transition-colors hover:text-foreground"
+ className="underline underline-offset-2 transition-colors hover:text-gray-12"
>
{t('Privacy Policy')}
</a>
@@ -486,7 +486,7 @@ function LegalNote() {
// alert — anything that reads as an error here costs signups.
function WorkEmailHint() {
return (
- <div className="flex items-center gap-2 border-t border-primary/20 px-4 py-2.5 text-xs text-primary animate-in fade-in duration-200">
+ <div className="flex items-center gap-2 border-t border-accent-6 px-4 py-2.5 text-xs text-accent-11 animate-in fade-in duration-200">
<Lightbulb className="size-3.5 shrink-0" />
<p>{t('Use your work email for better personalization.')}</p>
</div>
@@ -561,19 +561,19 @@ function EmailStep({
object rather than a warning bolted underneath. */}
<div
className={cn(
- 'rounded-xl border bg-background transition-colors duration-200',
- showWorkEmailHint && 'border-primary/25 bg-primary/[0.03]',
- emailError && 'border-destructive/40 bg-destructive/[0.03]',
+ 'rounded-xl border bg-gray-1 transition-colors duration-200',
+ showWorkEmailHint && 'border-accent-6 bg-accent-2',
+ emailError && 'border-danger-7 bg-danger-2',
)}
>
<div className="relative">
- <Mail className="absolute left-3.5 top-1/2 size-[18px] -translate-y-1/2 text-muted-foreground" />
+ <Mail className="absolute left-3.5 top-1/2 size-[18px] -translate-y-1/2 text-gray-11" />
<Input
{...field}
autoFocus
type="text"
placeholder={t('[email protected]')}
- className="h-12 border-0 bg-transparent pl-11 pr-14 text-[15px] shadow-none focus-visible:ring-0"
+ className="h-12 border-0 bg-transparent dark:bg-transparent pl-11 pr-14 text-[15px] shadow-none focus-visible:ring-0"
data-testid="auth-email"
/>
<Button
@@ -588,7 +588,7 @@ function EmailStep({
</Button>
</div>
{emailError ? (
- <div className="flex items-center gap-2 border-t border-destructive/25 px-4 py-2.5 text-xs text-destructive animate-in fade-in duration-200">
+ <div className="flex items-center gap-2 border-t border-danger-6 px-4 py-2.5 text-xs text-danger-11 animate-in fade-in duration-200">
<CircleAlert className="size-3.5 shrink-0" />
<p>{t('That doesn’t look like an email address yet.')}</p>
</div>
@@ -659,7 +659,7 @@ function ResetStep() {
render={({ field }) => (
<FormItem className="grid space-y-2">
<div className="relative">
- <Mail className="absolute left-3.5 top-1/2 size-[18px] -translate-y-1/2 text-muted-foreground" />
+ <Mail className="absolute left-3.5 top-1/2 size-[18px] -translate-y-1/2 text-gray-11" />
<Input
{...field}
autoFocus
@@ -688,7 +688,7 @@ function VerifiedFlash() {
initial={{ scale: 0.5, opacity: 0 }}
animate={{ scale: 1, opacity: 1 }}
transition={{ type: 'spring', stiffness: 420, damping: 24 }}
- className="flex size-16 items-center justify-center rounded-full bg-primary/10"
+ className="flex size-16 items-center justify-center rounded-full bg-accent-3"
>
<svg
viewBox="0 0 24 24"
@@ -697,7 +697,7 @@ function VerifiedFlash() {
strokeWidth={2.5}
strokeLinecap="round"
strokeLinejoin="round"
- className="size-8 text-primary"
+ className="size-8 text-accent-11"
aria-hidden
>
<motion.path
@@ -712,7 +712,7 @@ function VerifiedFlash() {
initial={{ opacity: 0, y: 4 }}
animate={{ opacity: 1, y: 0 }}
transition={{ delay: 0.3, duration: 0.2 }}
- className="text-sm text-muted-foreground"
+ className="text-sm text-gray-11"
>
{t('Email verified')}
</motion.p>
@@ -766,25 +766,25 @@ function NameStep({ onSessionRejected }: NameStepProps) {
<FormItem className="grid space-y-2">
<div
className={cn(
- 'rounded-xl border bg-background transition-colors duration-200',
+ 'rounded-xl border bg-gray-1 transition-colors duration-200',
form.formState.errors.fullName &&
- 'border-destructive/40 bg-destructive/[0.03]',
+ 'border-danger-7 bg-danger-2',
)}
>
<div className="relative">
- <User className="absolute left-3.5 top-1/2 size-[18px] -translate-y-1/2 text-muted-foreground" />
+ <User className="absolute left-3.5 top-1/2 size-[18px] -translate-y-1/2 text-gray-11" />
<Input
{...field}
autoFocus
type="text"
autoComplete="name"
placeholder={t('Full Name')}
- className="h-12 border-0 bg-transparent pl-11 pr-4 text-[15px] shadow-none focus-visible:ring-0"
+ className="h-12 border-0 bg-transparent dark:bg-transparent pl-11 pr-4 text-[15px] shadow-none focus-visible:ring-0"
data-testid="auth-full-name"
/>
</div>
{form.formState.errors.fullName && (
- <div className="flex items-center gap-2 border-t border-destructive/25 px-4 py-2.5 text-xs text-destructive animate-in fade-in duration-200">
+ <div className="flex items-center gap-2 border-t border-danger-6 px-4 py-2.5 text-xs text-danger-11 animate-in fade-in duration-200">
<CircleAlert className="size-3.5 shrink-0" />
<p>{t('Tell us your name so we know what to call you.')}</p>
</div>
@@ -904,7 +904,7 @@ function CodeStep({
</InputOTPGroup>
</InputOTP>
{errorMessage && (
- <p className="text-sm text-destructive">{errorMessage}</p>
+ <p className="text-sm text-danger-11">{errorMessage}</p>
)}
<button
type="button"
@@ -914,7 +914,7 @@ function CodeStep({
(captchaRequired && isNil(captchaToken))
}
onClick={() => resend({ email, captchaToken })}
- className="text-xs text-muted-foreground transition-colors hover:text-foreground disabled:opacity-50"
+ className="text-xs text-gray-11 transition-colors hover:text-gray-12 disabled:opacity-50"
>
{cooldown > 0
? t('Resend code in {seconds}s', { seconds: cooldown })
@@ -941,7 +941,7 @@ function Heading({ title, subtitle }: { title: string; subtitle?: string }) {
<div className="mb-6 text-center">
<h1 className={AUTH_TITLE_CLASS}>{title}</h1>
{subtitle && (
- <p className="mx-auto mt-1.5 max-w-[19rem] text-balance text-sm font-medium text-muted-foreground">
+ <p className="mx-auto mt-1.5 max-w-[19rem] text-balance text-sm font-medium text-gray-11">
{subtitle}
</p>
)}
@@ -954,7 +954,7 @@ function BackLink({ onClick }: { onClick: () => void }) {
<button
type="button"
onClick={onClick}
- className="mx-auto mb-4 flex items-center gap-1 text-xs text-muted-foreground transition-colors hover:text-foreground"
+ className="mx-auto mb-4 flex items-center gap-1 text-xs text-gray-11 transition-colors hover:text-gray-12"
>
<ArrowLeft className="size-3.5" />
{t('Back')}
@@ -970,7 +970,7 @@ function ModeSwitch({
onSwitch: (mode: AuthMode) => void;
}) {
return (
- <div className="mt-6 text-center text-sm text-muted-foreground">
+ <div className="mt-6 text-center text-sm text-gray-11">
{mode === 'signup'
? t('Already have an account?')
: t("Don't have an account?")}
@@ -978,7 +978,7 @@ function ModeSwitch({
type="button"
onClick={() => onSwitch(mode === 'signup' ? 'signin' : 'signup')}
data-testid="auth-switch-mode"
- className="pl-1 font-medium text-foreground hover:underline"
+ className="pl-1 font-medium text-gray-12 hover:underline"
>
{mode === 'signup' ? t('Sign in') : t('Sign up')}
</button>
diff --git a/packages/web/src/features/authentication/components/auth-landing/auth-landing.tsx b/packages/web/src/features/authentication/components/auth-landing/auth-landing.tsx
index 5779736a471..5c614ee2352 100644
--- a/packages/web/src/features/authentication/components/auth-landing/auth-landing.tsx
+++ b/packages/web/src/features/authentication/components/auth-landing/auth-landing.tsx
@@ -2,7 +2,6 @@ import { isNil } from '@activepieces/core-utils';
import { t } from 'i18next';
import { useEffect, useRef } from 'react';
-import { useTheme } from '@/components/providers/theme-provider';
import { authenticationSession } from '@/lib/authentication-session';
import { useRedirectAfterLogin } from '@/lib/navigation-utils';
@@ -12,7 +11,6 @@ import { AuthDrawerBody, AuthMode } from './auth-drawer-body';
const NUDGE_STREAK_WINDOW_MS = 700;
export function AuthLanding({ initialMode }: AuthLandingProps) {
- const { setForceLightMode } = useTheme();
const redirectAfterLogin = useRedirectAfterLogin();
const signedIn =
!isNil(authenticationSession.getToken()) &&
@@ -28,11 +26,6 @@ export function AuthLanding({ initialMode }: AuthLandingProps) {
animation: null,
});
- useEffect(() => {
- setForceLightMode(true);
- return () => setForceLightMode(false);
- }, [setForceLightMode]);
-
useEffect(() => {
if (signedIn) {
redirectAfterLogin();
@@ -72,19 +65,19 @@ export function AuthLanding({ initialMode }: AuthLandingProps) {
};
return (
- <div className="relative h-dvh w-full overflow-hidden bg-white">
+ <div className="relative h-dvh w-full overflow-hidden bg-gray-1">
<AuthBackdrop />
<div
aria-hidden
onClick={nudgePanel}
- className="absolute inset-0 z-40 cursor-default bg-neutral-50/78 backdrop-blur-[2.8px]"
+ className="absolute inset-0 z-40 cursor-default bg-gray-1/80 backdrop-blur-[2.8px]"
/>
<div className="pointer-events-none absolute inset-0 z-50 flex items-center justify-center p-4 animate-in fade-in zoom-in-95 duration-300 fill-mode-both">
<section
ref={panelRef}
role="dialog"
aria-label={t('Sign in or create your account')}
- className="pointer-events-auto max-h-[90dvh] w-full max-w-[400px] overflow-hidden rounded-2xl border border-black/[0.06] bg-background shadow-[0_1px_2px_rgba(16,24,40,0.04),0_6px_12px_-4px_rgba(16,24,40,0.06),0_24px_40px_-12px_rgba(16,24,40,0.14),0_56px_80px_-32px_rgba(16,24,40,0.16)]"
+ className="pointer-events-auto max-h-[90dvh] w-full max-w-[400px] overflow-hidden rounded-2xl border border-gray-6 bg-panel shadow-over"
>
<AuthDrawerBody initialMode={initialMode} />
</section>
diff --git a/packages/web/src/features/authentication/components/auth-landing/turnstile-widget.tsx b/packages/web/src/features/authentication/components/auth-landing/turnstile-widget.tsx
index 98afed94eba..1a09db16971 100644
--- a/packages/web/src/features/authentication/components/auth-landing/turnstile-widget.tsx
+++ b/packages/web/src/features/authentication/components/auth-landing/turnstile-widget.tsx
@@ -3,6 +3,7 @@ import { ApFlagId } from '@activepieces/shared';
import { t } from 'i18next';
import { useEffect, useRef, useState } from 'react';
+import { useTheme } from '@/components/providers/theme-provider';
import { flagsHooks } from '@/hooks/flags-hooks';
import { cn } from '@/lib/utils';
@@ -49,6 +50,7 @@ export function TurnstileWidget({
resetSignal,
}: TurnstileWidgetProps) {
const siteKey = useTurnstileSiteKey();
+ const { resolvedTheme } = useTheme();
const container = useRef<HTMLDivElement>(null);
const widget = useRef<string | undefined>(undefined);
const [failed, setFailed] = useState(false);
@@ -86,7 +88,7 @@ export function TurnstileWidget({
widgetId = window.turnstile.render(container.current, {
sitekey: siteKey,
appearance: 'interaction-only',
- theme: 'light',
+ theme: resolvedTheme,
callback: (token: string) => {
setFailed(false);
onToken(token);
@@ -113,7 +115,7 @@ export function TurnstileWidget({
window.turnstile.remove(widgetId);
}
};
- }, [siteKey, onToken, onUnavailable]);
+ }, [siteKey, onToken, onUnavailable, resolvedTheme]);
// A Turnstile token is single-use: once the server has rejected the request
// the widget has to issue a fresh one or every retry replays a spent token.
@@ -137,7 +139,7 @@ export function TurnstileWidget({
<div ref={container} className="flex justify-center" />
</div>
{failed && (
- <p className="mt-3 text-center text-xs text-destructive">
+ <p className="mt-3 text-center text-xs text-danger-11">
{t(
'The verification step could not load. Disable your ad blocker for this page, then reload.',
)}
diff --git a/packages/web/src/features/authentication/components/change-password.tsx b/packages/web/src/features/authentication/components/change-password.tsx
index 66ab44f3ad1..f9dbb0be7ea 100644
--- a/packages/web/src/features/authentication/components/change-password.tsx
+++ b/packages/web/src/features/authentication/components/change-password.tsx
@@ -100,7 +100,7 @@ const ChangePasswordForm = () => {
onChange={(e) => field.onChange(e)}
/>
</PopoverTrigger>
- <PopoverContent className="absolute border-2 bg-background p-2 rounded-md right-60 -bottom-16 flex flex-col">
+ <PopoverContent className="absolute border-2 bg-gray-1 p-2 rounded-md right-60 -bottom-16 flex flex-col">
<PasswordRequirementsList
password={form.getValues().newPassword}
isSubmitted={form.formState.submitCount > 0}
diff --git a/packages/web/src/features/authentication/components/check-email-note.tsx b/packages/web/src/features/authentication/components/check-email-note.tsx
index a010e441fd5..c36e972c90a 100644
--- a/packages/web/src/features/authentication/components/check-email-note.tsx
+++ b/packages/web/src/features/authentication/components/check-email-note.tsx
@@ -32,7 +32,7 @@ const CheckEmailNote = ({ email, type }: CreateOtpRequestBody) => {
<div className="flex flex-row gap-1">
{t("Didn't receive an email or it expired?")}
<button
- className="cursor-pointer text-primary underline"
+ className="cursor-pointer text-accent-11 underline"
onClick={() =>
resendVerification({
email,
diff --git a/packages/web/src/features/authentication/components/password-validator.tsx b/packages/web/src/features/authentication/components/password-validator.tsx
index d611a165f30..1b0fbf4b814 100644
--- a/packages/web/src/features/authentication/components/password-validator.tsx
+++ b/packages/web/src/features/authentication/components/password-validator.tsx
@@ -6,8 +6,13 @@ import { cn } from '@/lib/utils';
import { passwordRules } from '../utils/password-validation-utils';
-// Color per step: 1/5 = red, 2/5 = orange, 3/5 = yellow, 4/5 = violet, 5/5 = purple
-const STEP_COLORS = ['#ef4444', '#f97316', '#eab308', '#c084fc', '#a855f7'];
+const STEP_COLORS = [
+ 'var(--danger-11)',
+ 'var(--warning-11)',
+ 'var(--swatch-6-mark)',
+ 'var(--accent-11)',
+ 'var(--success-11)',
+];
function getBoltColor(passedCount: number) {
if (passedCount === 0) return undefined;
@@ -90,13 +95,13 @@ const PasswordRequirementsList = ({
className={cn(
'w-2 h-2 rounded-full shrink-0',
rule.passed
- ? 'bg-green-500'
+ ? 'bg-success-11'
: isError
- ? 'bg-red-500'
- : 'bg-muted-foreground/40',
+ ? 'bg-danger-11'
+ : 'bg-gray-8',
)}
/>
- <span className="text-foreground">{t(rule.label)}</span>
+ <span className="text-gray-12">{t(rule.label)}</span>
</div>
);
})}
diff --git a/packages/web/src/features/authentication/components/reset-password-form.tsx b/packages/web/src/features/authentication/components/reset-password-form.tsx
index 52238d47c38..239aa9fc39b 100644
--- a/packages/web/src/features/authentication/components/reset-password-form.tsx
+++ b/packages/web/src/features/authentication/components/reset-password-form.tsx
@@ -102,7 +102,7 @@ const ResetPasswordForm = () => {
</Form>
)}
<div className="mt-4 text-center text-sm">
- <Link to="/sign-in" className="text-muted-foreground">
+ <Link to="/sign-in" className="text-gray-11">
{t('Back to sign in')}
</Link>
</div>
diff --git a/packages/web/src/features/authentication/components/saml-login-form.tsx b/packages/web/src/features/authentication/components/saml-login-form.tsx
index f84ec64c96f..766eacebb5f 100644
--- a/packages/web/src/features/authentication/components/saml-login-form.tsx
+++ b/packages/web/src/features/authentication/components/saml-login-form.tsx
@@ -68,7 +68,7 @@ export const SamlLoginForm = ({
mutate(data);
})}
>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t('Enter your email to be redirected to your SAML provider.')}
</p>
<FormField
diff --git a/packages/web/src/features/authentication/components/sign-in-form.tsx b/packages/web/src/features/authentication/components/sign-in-form.tsx
index 2d22e89433e..bf43bf43ddf 100644
--- a/packages/web/src/features/authentication/components/sign-in-form.tsx
+++ b/packages/web/src/features/authentication/components/sign-in-form.tsx
@@ -194,14 +194,14 @@ const SignInForm = ({ onForgotPassword }: SignInFormProps) => {
<button
type="button"
onClick={onForgotPassword}
- className="text-muted-foreground text-xs hover:text-primary transition-all duration-200"
+ className="text-gray-11 text-xs hover:text-accent-11 transition-all duration-200"
>
{t('Forgot your password?')}
</button>
) : (
<Link
to="/forget-password"
- className="text-muted-foreground text-xs hover:text-primary transition-all duration-200"
+ className="text-gray-11 text-xs hover:text-accent-11 transition-all duration-200"
>
{t('Forgot your password?')}
</Link>
@@ -224,7 +224,7 @@ const SignInForm = ({ onForgotPassword }: SignInFormProps) => {
size="icon"
tabIndex={-1}
onClick={() => setShowPassword((v) => !v)}
- className="absolute right-1 top-1/2 -translate-y-1/2 h-7 w-7 p-0 text-muted-foreground hover:text-foreground"
+ className="absolute right-1 top-1/2 -translate-y-1/2 h-7 w-7 p-0 text-gray-11 hover:text-gray-12"
>
{showPassword ? (
<EyeOff className="w-4 h-4" />
diff --git a/packages/web/src/features/authentication/components/sign-up-form.tsx b/packages/web/src/features/authentication/components/sign-up-form.tsx
index 177edf4078d..6e5d4349696 100644
--- a/packages/web/src/features/authentication/components/sign-up-form.tsx
+++ b/packages/web/src/features/authentication/components/sign-up-form.tsx
@@ -332,7 +332,7 @@ const SignUpForm = ({
size="icon"
tabIndex={-1}
onClick={() => setShowPassword((v) => !v)}
- className="h-7 w-7 p-0 text-muted-foreground hover:text-foreground"
+ className="h-7 w-7 p-0 text-gray-11 hover:text-gray-12"
>
{showPassword ? (
<EyeOff className="w-4 h-4" />
@@ -351,7 +351,7 @@ const SignUpForm = ({
className="w-auto shadow-none"
>
<div className="absolute -left-[4.5px] top-1/2 -translate-y-1/2">
- <div className="w-2.5 h-2.5 rotate-45 bg-popover border-l border-b border-border" />
+ <div className="w-2.5 h-2.5 rotate-45 bg-panel border-l border-b border-gray-6" />
</div>
<PopoverHeader className="mb-2">
<PopoverTitle className="text-xs">
diff --git a/packages/web/src/features/automations/components/automations-empty-state.tsx b/packages/web/src/features/automations/components/automations-empty-state.tsx
index 5a3647ebc83..b58794ed6b8 100644
--- a/packages/web/src/features/automations/components/automations-empty-state.tsx
+++ b/packages/web/src/features/automations/components/automations-empty-state.tsx
@@ -54,13 +54,13 @@ const ActionRow = ({
<button
onClick={onClick}
disabled={disabled || !hasPermission}
- className="flex items-center justify-between w-full px-4 py-3 text-left hover:bg-muted/50 transition-colors disabled:opacity-50 disabled:cursor-not-allowed border-t first:border-t-0"
+ className="flex items-center justify-between w-full px-4 py-3 text-left hover:bg-gray-3/50 transition-colors disabled:opacity-50 disabled:cursor-not-allowed border-t first:border-t-0"
>
<div className="flex items-center gap-3">
- <span className="text-muted-foreground">{icon}</span>
+ <span className="text-gray-11">{icon}</span>
<span className="text-sm font-medium">{label}</span>
</div>
- <ChevronRight className="h-4 w-4 text-muted-foreground" />
+ <ChevronRight className="h-4 w-4 text-gray-11" />
</button>
);
@@ -101,7 +101,7 @@ const GetStartedCard = ({
</div>
<div>
<h3 className="font-semibold text-base">{title}</h3>
- <p className="text-sm text-muted-foreground">{description}</p>
+ <p className="text-sm text-gray-11">{description}</p>
</div>
</div>
<div className="flex flex-col">{children}</div>
@@ -139,7 +139,7 @@ const SuggestedTemplateCard = ({
</h3>
</div>
- <p className="text-muted-foreground text-sm line-clamp-2 mt-1 flex-shrink-0">
+ <p className="text-gray-11 text-sm line-clamp-2 mt-1 flex-shrink-0">
{template.summary || (
<span className="italic">{t('No summary')}</span>
)}
@@ -172,7 +172,6 @@ const SuggestedTemplateCard = ({
maxNumberOfIconsToShow={4}
size="md"
className="flex gap-0.5"
- background="white"
excludeCore={true}
/>
)}
@@ -190,7 +189,7 @@ const TemplateCardSkeleton = () => {
<Skeleton className="h-4 w-2/3" />
<Skeleton className="h-6 w-24 mt-2" />
</CardContent>
- <div className="h-14 bg-muted/30 rounded-b-lg" />
+ <div className="h-14 bg-gray-3/30 rounded-b-lg" />
</Card>
);
};
@@ -262,15 +261,15 @@ export const AutomationsEmptyState = ({
return (
<div className="flex flex-col gap-8 py-8 px-4 max-w-5xl mx-auto">
<div>
- <h2 className="text-sm font-medium text-muted-foreground mb-4">
+ <h2 className="text-sm font-medium text-gray-11 mb-4">
{t('Get started with {brandName}', {
brandName: branding.websiteName ?? platform.name,
})}
</h2>
<div className="flex gap-4">
<GetStartedCard
- icon={<Workflow className="h-5 w-5 text-primary" />}
- iconBgClass="bg-primary-100"
+ icon={<Workflow className="h-5 w-5 text-accent-11" />}
+ iconBgClass="bg-accent-3"
title={t('Build a Flow')}
description={t('Create automated workflows')}
>
@@ -291,15 +290,15 @@ export const AutomationsEmptyState = ({
>
<button
disabled={!userHasPermissionToWriteFlow}
- className="flex items-center justify-between w-full px-4 py-3 text-left hover:bg-muted/50 transition-colors disabled:opacity-50 disabled:cursor-not-allowed border-t"
+ className="flex items-center justify-between w-full px-4 py-3 text-left hover:bg-gray-3/50 transition-colors disabled:opacity-50 disabled:cursor-not-allowed border-t"
>
<div className="flex items-center gap-3">
- <span className="text-muted-foreground">
+ <span className="text-gray-11">
<Upload className="h-4 w-4" />
</span>
<span className="text-sm font-medium">{t('Import')}</span>
</div>
- <ChevronRight className="h-4 w-4 text-muted-foreground" />
+ <ChevronRight className="h-4 w-4 text-gray-11" />
</button>
</ImportFlowDialog>
</PermissionNeededTooltip>
@@ -319,8 +318,8 @@ export const AutomationsEmptyState = ({
{!embedState.hideTables && (
<GetStartedCard
- icon={<Table2 className="h-5 w-5 text-primary" />}
- iconBgClass="bg-primary-100"
+ icon={<Table2 className="h-5 w-5 text-accent-11" />}
+ iconBgClass="bg-accent-3"
title={t('Create a Table')}
description={t('Organize and manage data')}
>
@@ -342,8 +341,8 @@ export const AutomationsEmptyState = ({
{agentsVisible && (
<GetStartedCard
- icon={<Bot className="h-5 w-5 text-primary" />}
- iconBgClass="bg-primary-100"
+ icon={<Bot className="h-5 w-5 text-accent-11" />}
+ iconBgClass="bg-accent-3"
title={t('Build an Agent')}
description={t('Delegate tasks to AI')}
>
@@ -362,13 +361,13 @@ export const AutomationsEmptyState = ({
{(hasTemplates || isLoadingTemplates) && (
<div>
<div className="flex items-center justify-between mb-4">
- <h2 className="text-sm font-medium text-muted-foreground flex items-center gap-2">
+ <h2 className="text-sm font-medium text-gray-11 flex items-center gap-2">
{t('Templates For You')}
- <Sparkles className="h-4 w-4 text-yellow-500" />
+ <Sparkles className="h-4 w-4 text-swatch-6-mark" />
</h2>
<button
onClick={handleViewAllTemplates}
- className="text-sm text-muted-foreground hover:text-foreground flex items-center gap-1 transition-colors"
+ className="text-sm text-gray-11 hover:text-gray-12 flex items-center gap-1 transition-colors"
>
{t('All templates')}
<ChevronRight className="h-4 w-4" />
diff --git a/packages/web/src/features/automations/components/automations-filters.tsx b/packages/web/src/features/automations/components/automations-filters.tsx
index 41375caf468..1c1fb9b0fae 100644
--- a/packages/web/src/features/automations/components/automations-filters.tsx
+++ b/packages/web/src/features/automations/components/automations-filters.tsx
@@ -20,6 +20,7 @@ import { useState } from 'react';
import { useNavigate } from 'react-router-dom';
import { AnimatedIconButton } from '@/components/custom/animated-icon-button';
+import { LogoPlate } from '@/components/custom/logo-plate';
import { PermissionNeededTooltip } from '@/components/custom/permission-needed-tooltip';
import { DownloadIcon } from '@/components/icons/download';
import { PlusIcon } from '@/components/icons/plus';
@@ -138,7 +139,7 @@ export const AutomationsFilters = ({
value: connection.externalId,
label: connection.displayName,
icon: pieceIcon ? (
- <img src={pieceIcon} alt="" className="h-4 w-4 object-contain" />
+ <LogoPlate src={pieceIcon} alt="" className="size-4 rounded-sm p-px" />
) : undefined,
};
});
@@ -151,7 +152,7 @@ export const AutomationsFilters = ({
<div className="flex items-center justify-between gap-4 min-w-max">
<div className="flex items-center gap-2">
<div className="relative">
- <Search className="absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground" />
+ <Search className="absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-11" />
<Input
placeholder={searchPlaceholder({
hideTables: embedState.hideTables,
@@ -170,7 +171,7 @@ export const AutomationsFilters = ({
onSearchChange('');
onFilterChange?.();
}}
- className="absolute right-2 top-1/2 -translate-y-1/2 flex items-center justify-center h-5 w-5 rounded-full bg-muted hover:bg-muted-foreground/20 text-muted-foreground hover:text-foreground transition-colors"
+ className="absolute right-2 top-1/2 -translate-y-1/2 flex items-center justify-center h-5 w-5 rounded-full bg-gray-3 hover:bg-gray-4 text-gray-11 hover:text-gray-12 transition-colors"
>
<X className="h-3 w-3" />
</button>
@@ -243,7 +244,7 @@ export const AutomationsFilters = ({
<Button
variant="link"
size="sm"
- className="h-9 text-sm gap-1 text-muted-foreground hover:text-foreground"
+ className="h-9 text-sm gap-1 text-gray-11 hover:text-gray-12"
onClick={() => {
onClearAllFilters();
onFilterChange?.();
diff --git a/packages/web/src/features/automations/components/automations-no-results-state.tsx b/packages/web/src/features/automations/components/automations-no-results-state.tsx
index 2e27c4627c9..2098cc78d98 100644
--- a/packages/web/src/features/automations/components/automations-no-results-state.tsx
+++ b/packages/web/src/features/automations/components/automations-no-results-state.tsx
@@ -12,11 +12,11 @@ export const AutomationsNoResultsState = ({
}: AutomationsNoResultsStateProps) => {
return (
<div className="flex flex-col items-center justify-center py-16 px-4">
- <div className="w-12 h-12 rounded-full bg-muted flex items-center justify-center mb-4">
- <SearchX className="h-6 w-6 text-muted-foreground" />
+ <div className="w-12 h-12 rounded-full bg-gray-3 flex items-center justify-center mb-4">
+ <SearchX className="h-6 w-6 text-gray-11" />
</div>
<h3 className="text-lg font-semibold mb-2">{t('No results found')}</h3>
- <p className="text-sm text-muted-foreground text-center max-w-md mb-4">
+ <p className="text-sm text-gray-11 text-center max-w-md mb-4">
{t(
"We couldn't find any automations matching your search or filters. Try adjusting your criteria.",
)}
diff --git a/packages/web/src/features/automations/components/automations-pagination.tsx b/packages/web/src/features/automations/components/automations-pagination.tsx
index 49f67279f87..6d8d6d4ed38 100644
--- a/packages/web/src/features/automations/components/automations-pagination.tsx
+++ b/packages/web/src/features/automations/components/automations-pagination.tsx
@@ -34,7 +34,7 @@ export const AutomationsPagination = ({
return (
<div className="flex items-center justify-end gap-4 px-2 py-4 text-sm">
<div className="flex items-center gap-2">
- <span className="text-muted-foreground">{t('Rows per page')}</span>
+ <span className="text-gray-11">{t('Rows per page')}</span>
<Select
value={String(pageSize)}
onValueChange={(val) => onPageSizeChange(Number(val))}
diff --git a/packages/web/src/features/automations/components/automations-selection-bar.tsx b/packages/web/src/features/automations/components/automations-selection-bar.tsx
index 792e33194d3..3d68df2e1b7 100644
--- a/packages/web/src/features/automations/components/automations-selection-bar.tsx
+++ b/packages/web/src/features/automations/components/automations-selection-bar.tsx
@@ -46,7 +46,7 @@ export const AutomationsSelectionBar = ({
transition={{ type: 'spring', damping: 25, stiffness: 300 }}
className="fixed bottom-6 left-1/2 -translate-x-1/2 z-50"
>
- <div className="flex items-center gap-3 bg-background border rounded-lg shadow-lg p-2">
+ <div className="flex items-center gap-3 bg-gray-1 border rounded-lg shadow-lg p-2">
{!embedState.hideFolders && (
<Button
variant="ghost"
@@ -94,7 +94,7 @@ export const AutomationsSelectionBar = ({
<Button
variant="ghost"
size="sm"
- className="text-destructive hover:text-destructive"
+ className="text-danger-11 hover:text-danger-11"
disabled={isDeleting}
>
<Trash2 className="h-4 w-4 mr-1" />
@@ -102,7 +102,7 @@ export const AutomationsSelectionBar = ({
</Button>
</ConfirmationDeleteDialog>
<div className="border-l h-6 mx-1" />
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-gray-11">
{t('{count} selected', { count: selectedCount })}
</span>
<Button
diff --git a/packages/web/src/features/automations/components/automations-table-row.tsx b/packages/web/src/features/automations/components/automations-table-row.tsx
index 803f12b111a..46d98922bf4 100644
--- a/packages/web/src/features/automations/components/automations-table-row.tsx
+++ b/packages/web/src/features/automations/components/automations-table-row.tsx
@@ -124,7 +124,7 @@ export const AutomationsTableRow = ({
if (item.type === 'load-more-folder') {
return (
- <div className="flex-1 flex items-center justify-center gap-2 text-primary font-medium py-2">
+ <div className="flex-1 flex items-center justify-center gap-2 text-accent-11 font-medium py-2">
<div
className="flex items-center gap-2 cursor-pointer hover:underline"
onClick={(e) => {
@@ -161,14 +161,14 @@ export const AutomationsTableRow = ({
<TooltipTrigger asChild>
<button
onClick={onTogglePin}
- className="p-0.5 rounded hover:bg-muted transition-colors"
+ className="p-0.5 rounded hover:bg-gray-3 transition-colors"
>
<Star
className={cn(
'h-4 w-4',
isPinned
? 'text-yellow-500 fill-yellow-500'
- : 'text-muted-foreground/40 hover:text-muted-foreground',
+ : 'text-gray-11 hover:text-gray-11',
)}
/>
</button>
@@ -187,9 +187,9 @@ export const AutomationsTableRow = ({
{item.type === 'folder' && (
<span className="absolute -left-5 flex items-center justify-center w-5">
{isExpanded ? (
- <ChevronDown className="h-4 w-4 shrink-0 text-muted-foreground" />
+ <ChevronDown className="h-4 w-4 shrink-0 text-gray-11" />
) : (
- <ChevronRight className="h-4 w-4 shrink-0 text-muted-foreground" />
+ <ChevronRight className="h-4 w-4 shrink-0 text-gray-11" />
)}
</span>
)}
@@ -369,7 +369,7 @@ export const AutomationsTableRow = ({
{isAgentItem(item) ? (
<DropdownMenuItem
onSelect={() => setIsDeleteAgentOpen(true)}
- className="text-destructive focus:text-destructive"
+ className="text-danger-11 focus:text-danger-11"
>
<Trash2 className="h-4 w-4 mr-2" />
{t('Delete')}
@@ -386,7 +386,7 @@ export const AutomationsTableRow = ({
>
<DropdownMenuItem
onSelect={(e) => e.preventDefault()}
- className="text-destructive focus:text-destructive"
+ className="text-danger-11 focus:text-danger-11"
>
<Trash2 className="h-4 w-4 mr-2" />
{t('Delete')}
@@ -424,20 +424,20 @@ export const AutomationsTableRow = ({
const RowItemIcon = ({ item }: { item: TreeItem }) => {
switch (item.type) {
case 'folder':
- return <Folder className="h-4 w-4 text-gray-400 fill-gray-400" />;
+ return <Folder className="h-4 w-4 text-gray-11 fill-gray-11" />;
case 'flow':
- return <Workflow className="h-4 w-4 text-primary" />;
+ return <Workflow className="h-4 w-4 text-accent-11" />;
case 'agent':
- return <Bot className="h-4 w-4 text-amber-500" />;
+ return <Bot className="h-4 w-4 text-swatch-6-mark" />;
default:
- return <Table2 className="h-4 w-4 text-emerald-500" />;
+ return <Table2 className="h-4 w-4 text-swatch-8-mark" />;
}
};
const RowItemDetails = ({ item }: { item: TreeItem }) => {
if (item.type === 'folder') {
return (
- <span className="text-muted-foreground">
+ <span className="text-gray-11">
{item.childCount} {item.childCount === 1 ? t('file') : t('files')}
</span>
);
@@ -460,7 +460,7 @@ const RowItemDetails = ({ item }: { item: TreeItem }) => {
/>
);
}
- return <span className="text-muted-foreground">-</span>;
+ return <span className="text-gray-11">-</span>;
};
const RowItemOwner = ({ item }: { item: TreeItem }) => {
@@ -476,7 +476,7 @@ const RowItemOwner = ({ item }: { item: TreeItem }) => {
);
}
}
- return <span className="text-muted-foreground">-</span>;
+ return <span className="text-gray-11">-</span>;
};
function isFlowItem(
diff --git a/packages/web/src/features/automations/components/automations-table.tsx b/packages/web/src/features/automations/components/automations-table.tsx
index 97f08e64255..d5d87730faa 100644
--- a/packages/web/src/features/automations/components/automations-table.tsx
+++ b/packages/web/src/features/automations/components/automations-table.tsx
@@ -65,7 +65,7 @@ type AutomationsTableProps = {
};
const rowClassName =
- 'group flex items-center min-h-[48px] py-2 text-sm cursor-pointer hover:bg-muted/50';
+ 'group flex items-center min-h-[48px] py-2 text-sm cursor-pointer hover:bg-gray-3/50';
function AutomationsSkeletonRow({
indent = 0,
@@ -144,7 +144,7 @@ export const AutomationsTable = ({
return (
<div className="overflow-x-auto">
<div className="min-w-[1000px]">
- <div className="flex items-center h-8 text-xs border-b font-medium text-foreground bg-muted/50">
+ <div className="flex items-center h-8 text-xs border-b font-medium text-gray-12 bg-gray-3/50">
<div className="w-10 shrink-0 pl-4 pr-1">
<Checkbox
checked={
@@ -159,14 +159,14 @@ export const AutomationsTable = ({
type="button"
aria-label={sortActionLabel(sort)}
onClick={() => onSortChange(nextSort(sort))}
- className="flex items-center gap-1.5 rounded-sm hover:text-primary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
+ className="flex items-center gap-1.5 rounded-sm hover:text-accent-11 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent-8"
>
<Type className="h-3.5 w-3.5" />
{t('Name')}
<SortIcon
className={cn(
'h-3.5 w-3.5',
- sort === 'default' && 'text-muted-foreground',
+ sort === 'default' && 'text-gray-11',
)}
/>
</button>
diff --git a/packages/web/src/features/automations/components/multi-select-filter.tsx b/packages/web/src/features/automations/components/multi-select-filter.tsx
index 1c44846532b..453018d20a0 100644
--- a/packages/web/src/features/automations/components/multi-select-filter.tsx
+++ b/packages/web/src/features/automations/components/multi-select-filter.tsx
@@ -70,13 +70,13 @@ export const MultiSelectFilter = ({
<span>{label}</span>
{selectedValues.length > 0 && (
<div className="flex items-center gap-1 ml-1">
- <div className="h-4 w-px bg-border" />
+ <div className="h-4 w-px bg-gray-6" />
{selectedValues.length <= 2 ? (
selectedLabels.map((labelText, idx) => (
<Badge
key={selectedValues[idx]}
variant="outline"
- className="px-1.5 py-0 text-xs font-normal rounded-sm bg-muted max-w-[15vw] min-w-0"
+ className="px-1.5 py-0 text-xs font-normal rounded-sm bg-gray-3 max-w-[15vw] min-w-0"
>
<span className="truncate">{labelText}</span>
</Badge>
@@ -84,7 +84,7 @@ export const MultiSelectFilter = ({
) : (
<Badge
variant="outline"
- className="px-1.5 py-0 text-xs font-normal rounded-sm bg-muted"
+ className="px-1.5 py-0 text-xs font-normal rounded-sm bg-gray-3"
>
{selectedValues.length} selected
</Badge>
@@ -97,7 +97,7 @@ export const MultiSelectFilter = ({
{searchable && (
<div className="px-2 pt-2 pb-1 border-b">
<div className="relative">
- <Search className="absolute left-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground" />
+ <Search className="absolute left-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-gray-11" />
<Input
placeholder={t('Search...')}
value={search}
@@ -110,14 +110,14 @@ export const MultiSelectFilter = ({
<ScrollArea className="max-h-[300px]">
<div className="p-2 space-y-1">
{filteredOptions.length === 0 ? (
- <div className="px-2 py-4 text-sm text-center text-muted-foreground">
+ <div className="px-2 py-4 text-sm text-center text-gray-11">
{t('No results')}
</div>
) : (
filteredOptions.map((option) => (
<div
key={option.value}
- className="flex items-center gap-2 px-2 py-1.5 rounded-sm hover:bg-accent cursor-pointer"
+ className="flex items-center gap-2 px-2 py-1.5 rounded-sm hover:bg-gray-4 cursor-pointer"
onClick={() => toggleValue(option.value)}
>
<Checkbox
diff --git a/packages/web/src/features/billing/components/automatic-trial-activation.tsx b/packages/web/src/features/billing/components/automatic-trial-activation.tsx
index 09542bc4a7c..3bfbc8653f1 100644
--- a/packages/web/src/features/billing/components/automatic-trial-activation.tsx
+++ b/packages/web/src/features/billing/components/automatic-trial-activation.tsx
@@ -18,6 +18,7 @@ import {
import { flagsHooks } from '@/hooks/flags-hooks';
import { platformHooks } from '@/hooks/platform-hooks';
import { userHooks } from '@/hooks/user-hooks';
+import { colorsUtils } from '@/lib/color-utils';
import {
determineDefaultRoute,
TRIAL_KEY_QUERY_PARAM,
@@ -140,8 +141,8 @@ const TrialActivationScreen = ({
return (
<div
className={cn(
- 'fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-builder-background px-6 py-12',
- '[background-image:radial-gradient(var(--builder-background-pattern)_1px,transparent_0)] [background-size:22px_22px]',
+ 'fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-gray-2 px-6 py-12',
+ '[background-image:radial-gradient(var(--gray-5)_1px,transparent_0)] [background-size:22px_22px]',
)}
>
<canvas
@@ -149,13 +150,13 @@ const TrialActivationScreen = ({
aria-hidden
className="pointer-events-none fixed inset-0 z-[5] size-full"
/>
- <div className="relative z-10 w-full max-w-[520px] rounded-lg border bg-background p-10 shadow-sm animate-in fade-in slide-in-from-bottom-2 duration-[240ms] fill-mode-both">
+ <div className="relative z-10 w-full max-w-[520px] rounded-lg border bg-gray-1 p-10 shadow-sm animate-in fade-in slide-in-from-bottom-2 duration-[240ms] fill-mode-both">
<FullLogo className="h-6 mb-8" />
{view === 'activating' && (
<div className="flex flex-col gap-6">
- <div className="relative grid size-11 place-items-center rounded-full bg-primary/10">
- <span className="absolute inset-0 rounded-full bg-primary/20 animate-ping" />
- <LoadingSpinner className="relative size-[18px] stroke-primary" />
+ <div className="relative grid size-11 place-items-center rounded-full bg-accent-3">
+ <span className="absolute inset-0 rounded-full bg-accent-5 animate-ping" />
+ <LoadingSpinner className="relative size-[18px] stroke-accent-11" />
</div>
<TrialActivationCopy
heading={t('Activating your trial')}
@@ -170,23 +171,20 @@ const TrialActivationScreen = ({
aria-valuemax={100}
aria-valuenow={Math.round(progress)}
aria-label={t('Trial activation progress')}
- className="h-1.5 overflow-hidden rounded-full bg-muted"
+ className="h-1.5 overflow-hidden rounded-full bg-gray-3"
>
<div
- className="relative h-full overflow-hidden rounded-full bg-primary transition-[width] duration-300 ease-[var(--ease-expand-out)]"
+ className="relative h-full overflow-hidden rounded-full bg-accent-11 transition-[width] duration-300 ease-[var(--ease-expand-out)]"
style={{ width: `${Math.round(progress)}%` }}
>
<div className="absolute inset-0 bg-[linear-gradient(90deg,transparent,rgba(255,255,255,0.45),transparent)] animate-indeterminate-progress" />
</div>
</div>
<div className="flex items-center justify-between gap-3">
- <span
- className="text-xs text-muted-foreground"
- aria-live="polite"
- >
+ <span className="text-xs text-gray-11" aria-live="polite">
{statusMessageFor(progress)}
</span>
- <span className="text-xs tabular-nums text-muted-foreground/70">
+ <span className="text-xs tabular-nums text-gray-11">
{Math.round(progress)}%
</span>
</div>
@@ -195,8 +193,11 @@ const TrialActivationScreen = ({
)}
{view === 'success' && (
<div className="flex flex-col gap-6">
- <div className="grid size-11 place-items-center rounded-full bg-success/10">
- <Check className="size-[22px] text-success" strokeWidth={2.2} />
+ <div className="grid size-11 place-items-center rounded-full bg-success-3">
+ <Check
+ className="size-[22px] text-success-11"
+ strokeWidth={2.2}
+ />
</div>
<TrialActivationCopy
heading={t('Your trial is active')}
@@ -208,7 +209,7 @@ const TrialActivationScreen = ({
<Button size="lg" onClick={returnToApp}>
{t('Go to home')}
</Button>
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{secondsLeft > 0
? t('Taking you there in {seconds}s', {
seconds: secondsLeft,
@@ -220,8 +221,8 @@ const TrialActivationScreen = ({
)}
{view === 'not_admin' && (
<div className="flex flex-col gap-6">
- <div className="grid size-11 place-items-center rounded-full bg-warning/15">
- <TriangleAlert className="size-[22px] text-warning-700" />
+ <div className="grid size-11 place-items-center rounded-full bg-warning-4">
+ <TriangleAlert className="size-[22px] text-warning-11" />
</div>
<TrialActivationCopy
heading={t('A platform admin needs to do this')}
@@ -233,7 +234,7 @@ const TrialActivationScreen = ({
textToCopy={activationLinkFor(licenseKey)}
useInput
/>
- <p className="text-xs leading-relaxed text-muted-foreground/70">
+ <p className="text-xs leading-relaxed text-gray-11">
{t(
"Signed in as {email}. Sign out and back in with an admin account if that's you.",
{ email: user?.email ?? '' },
@@ -243,8 +244,8 @@ const TrialActivationScreen = ({
)}
{view === 'failed' && (
<div className="flex flex-col gap-6">
- <div className="grid size-11 place-items-center rounded-full bg-destructive/10">
- <CircleX className="size-[22px] text-destructive-700" />
+ <div className="grid size-11 place-items-center rounded-full bg-danger-3">
+ <CircleX className="size-[22px] text-danger-11" />
</div>
<TrialActivationCopy
heading={t("We couldn't activate your trial")}
@@ -269,12 +270,10 @@ const TrialActivationScreen = ({
const TrialActivationCopy = ({ heading, body }: TrialActivationCopyProps) => (
<div className="flex flex-col gap-2" aria-live="polite">
- <h2 className="text-3xl font-bold tracking-[-0.015em] text-foreground">
+ <h2 className="text-3xl font-bold tracking-[-0.015em] text-gray-12">
{heading}
</h2>
- <p className="text-sm leading-relaxed text-muted-foreground text-pretty">
- {body}
- </p>
+ <p className="text-sm leading-relaxed text-gray-11 text-pretty">{body}</p>
</div>
);
@@ -320,7 +319,14 @@ function burstConfetti(canvas: HTMLCanvasElement | null): void {
if (isNil(canvas)) {
return;
}
- confetti.create(canvas, { resize: true })(CONFETTI_OPTIONS);
+ const colors = CONFETTI_TOKENS.flatMap((token) => {
+ const color = colorsUtils.resolveToken(token);
+ return color === null ? [] : [color];
+ });
+ confetti.create(canvas, { resize: true })({
+ ...CONFETTI_OPTIONS,
+ ...(colors.length > 0 ? { colors } : {}),
+ });
}
const TICK_MS = 250;
@@ -339,6 +345,14 @@ const ACTIVATION_STEPS = [
{ from: 62, message: 'Applying your license' },
{ from: 84, message: 'Finishing up' },
];
+const CONFETTI_TOKENS = [
+ '--accent-11',
+ '--swatch-2-mark',
+ '--swatch-8-mark',
+ '--swatch-6-mark',
+ '--swatch-11-mark',
+];
+
const CONFETTI_OPTIONS: confetti.Options = {
particleCount: 140,
spread: 360,
@@ -349,7 +363,6 @@ const CONFETTI_OPTIONS: confetti.Options = {
scalar: 0.85,
shapes: ['square'],
origin: { x: 0.5, y: 0.44 },
- colors: ['#8142E3', '#B592F0', '#10b981', '#f59e0b', '#0a0a0a'],
disableForReducedMotion: true,
};
diff --git a/packages/web/src/features/billing/components/cancel-subscription-dialog.tsx b/packages/web/src/features/billing/components/cancel-subscription-dialog.tsx
index 1e7a33071de..a93bc1b6d82 100644
--- a/packages/web/src/features/billing/components/cancel-subscription-dialog.tsx
+++ b/packages/web/src/features/billing/components/cancel-subscription-dialog.tsx
@@ -103,14 +103,14 @@ function CancelSubscriptionForm({
)
}
className={cn(
- 'flex items-center gap-3 rounded-lg border p-3 text-left text-sm transition-colors hover:bg-accent',
- checked && 'border-primary bg-primary/5',
+ 'flex items-center gap-3 rounded-lg border p-3 text-left text-sm transition-colors hover:bg-gray-4',
+ checked && 'border-accent-9 bg-accent-3',
)}
>
<span
className={cn(
- 'flex size-6 shrink-0 items-center justify-center rounded-md bg-muted text-xs font-medium text-muted-foreground',
- checked && 'bg-primary text-primary-foreground',
+ 'flex size-6 shrink-0 items-center justify-center rounded-md bg-gray-3 text-xs font-medium text-gray-11',
+ checked && 'bg-accent-9 text-on-accent',
)}
>
{String.fromCharCode(LETTER_A_CHAR_CODE + index)}
diff --git a/packages/web/src/features/billing/components/chat-credits-alert.tsx b/packages/web/src/features/billing/components/chat-credits-alert.tsx
index 9dbf21f71fa..24a5bd0f704 100644
--- a/packages/web/src/features/billing/components/chat-credits-alert.tsx
+++ b/packages/web/src/features/billing/components/chat-credits-alert.tsx
@@ -29,9 +29,7 @@ export function ChatCreditsAlert({
<div
className={cn(
'flex items-center gap-2 px-4 py-2 text-sm',
- isError
- ? 'bg-destructive/5 text-destructive'
- : 'bg-warning/5 text-warning',
+ isError ? 'bg-danger-3 text-danger-11' : 'bg-warning-3 text-warning-11',
)}
>
<AlertTriangle className="h-3.5 w-3.5 shrink-0" />
@@ -41,7 +39,7 @@ export function ChatCreditsAlert({
<Button
variant="ghost"
size="sm"
- className="text-warning hover:text-warning shrink-0 h-6 w-6 p-0"
+ className="text-warning-11 hover:text-warning-11 shrink-0 h-6 w-6 p-0"
onClick={onDismiss}
>
<X className="h-3 w-3" />
diff --git a/packages/web/src/features/billing/components/confirm-purchase-dialog.tsx b/packages/web/src/features/billing/components/confirm-purchase-dialog.tsx
index 48ba75c5235..30bf9600629 100644
--- a/packages/web/src/features/billing/components/confirm-purchase-dialog.tsx
+++ b/packages/web/src/features/billing/components/confirm-purchase-dialog.tsx
@@ -63,14 +63,14 @@ export function ConfirmPurchaseDialog() {
<div className="flex flex-col gap-4">
<div className="flex flex-col gap-1 rounded-lg border p-4">
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-gray-11">
{t("You'll be charged")}
</span>
<div className="flex items-baseline gap-2">
<span className="text-3xl font-bold">
{payload.priceAmount}
</span>
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-gray-11">
{t('billed {cycle}', { cycle: cycleLabel.toLowerCase() })}
</span>
</div>
@@ -81,9 +81,9 @@ export function ConfirmPurchaseDialog() {
{payload.features.map((feature) => (
<li
key={feature}
- className="flex items-center gap-2 text-sm text-foreground"
+ className="flex items-center gap-2 text-sm text-gray-12"
>
- <Check className="size-4 shrink-0 text-primary" />
+ <Check className="size-4 shrink-0 text-accent-11" />
<span>{t(feature)}</span>
</li>
))}
diff --git a/packages/web/src/features/billing/components/credits-usage-alert.tsx b/packages/web/src/features/billing/components/credits-usage-alert.tsx
index e6959cb4ed1..39a12e1f264 100644
--- a/packages/web/src/features/billing/components/credits-usage-alert.tsx
+++ b/packages/web/src/features/billing/components/credits-usage-alert.tsx
@@ -91,9 +91,7 @@ export const CreditsUsageAlert = React.memo(() => {
variant={isDanger ? 'destructive' : 'warning'}
className={cn(
'flex items-center gap-2 py-2 *:[svg]:translate-y-0',
- isDanger
- ? 'border-destructive/50 bg-destructive-100/10'
- : 'bg-warning-100/10',
+ isDanger ? 'border-danger-7 bg-danger-3' : 'bg-warning-3',
)}
>
<Icon className="size-4 shrink-0" />
diff --git a/packages/web/src/features/billing/components/current-subscription-card.tsx b/packages/web/src/features/billing/components/current-subscription-card.tsx
index aec566e8493..519e6d7df07 100644
--- a/packages/web/src/features/billing/components/current-subscription-card.tsx
+++ b/packages/web/src/features/billing/components/current-subscription-card.tsx
@@ -23,19 +23,20 @@ export const CurrentSubscriptionCard = ({
if (isPaid) {
return (
<div
+ data-theme="light"
className="flex flex-col gap-6 rounded-xl bg-cover bg-center p-5"
style={{ backgroundImage: `url(${nonFreePlanBg})` }}
>
<div className="flex items-start justify-between gap-2">
- <span className="text-2xl font-bold text-neutral-900">
+ <span className="text-2xl font-bold text-gray-12">
{planTitle(info)}
</span>
- <Badge className="rounded-full border-0 bg-white px-3 py-1 text-primary shadow-sm hover:bg-white">
+ <Badge className="rounded-full border-0 bg-panel px-3 py-1 text-accent-11 shadow-edge">
{isYearly ? t('Yearly') : t('Monthly')}
</Badge>
</div>
<Button
- className="w-full text-neutral-900 shadow-sm hover:bg-white/90"
+ className="w-full text-gray-12 shadow-edge"
onClick={onExplorePlans}
variant={'outline'}
>
@@ -48,12 +49,11 @@ export const CurrentSubscriptionCard = ({
return (
<div
className={cn(
- 'flex flex-col gap-4 rounded-xl border border-primary/20 p-5',
- 'bg-gradient-to-r from-amber-50 to-primary/10',
- 'dark:border-primary/20 dark:from-muted/40 dark:to-primary/10',
+ 'flex flex-col gap-4 rounded-xl border border-accent-6 p-5',
+ 'bg-accent-3',
)}
>
- <span className="text-sm text-muted-foreground">{t('Current plan')}</span>
+ <span className="text-sm text-gray-11">{t('Current plan')}</span>
<div className="text-2xl font-semibold">{planTitle(info)}</div>
<Button className="w-full" onClick={onExplorePlans}>
{t('Upgrade')}
diff --git a/packages/web/src/features/billing/components/detail-row.tsx b/packages/web/src/features/billing/components/detail-row.tsx
index 1bd6d2f1583..41c3e643023 100644
--- a/packages/web/src/features/billing/components/detail-row.tsx
+++ b/packages/web/src/features/billing/components/detail-row.tsx
@@ -1,7 +1,7 @@
export const DetailRow = ({ label, value }: DetailRowProps) => (
<div className="flex items-center justify-between gap-2">
- <span className="text-muted-foreground">{label}</span>
- <span className="font-medium text-foreground">{value}</span>
+ <span className="text-gray-11">{label}</span>
+ <span className="font-medium text-gray-12">{value}</span>
</div>
);
diff --git a/packages/web/src/features/billing/components/error.tsx b/packages/web/src/features/billing/components/error.tsx
index ae1d341bba3..3e6578d5348 100644
--- a/packages/web/src/features/billing/components/error.tsx
+++ b/packages/web/src/features/billing/components/error.tsx
@@ -24,28 +24,28 @@ export const Error = () => {
}, [navigate]);
return (
- <div className="h-full bg-background flex items-center justify-center p-4">
- <div className="w-full max-w-md border-destructive/20">
+ <div className="h-full bg-gray-1 flex items-center justify-center p-4">
+ <div className="w-full max-w-md border-danger-6">
<CardContent className="pt-8 pb-6 px-6">
<div className="text-center space-y-6">
- <div className="mx-auto w-20 h-20 bg-destructive/10 rounded-full flex items-center justify-center">
- <AlertCircle className="w-10 h-10 text-destructive" />
+ <div className="mx-auto w-20 h-20 bg-danger-3 rounded-full flex items-center justify-center">
+ <AlertCircle className="w-10 h-10 text-danger-11" />
</div>
<div className="space-y-3">
- <h1 className="text-2xl font-semibold text-foreground">
+ <h1 className="text-2xl font-semibold text-gray-12">
{t('Something went wrong')}
</h1>
- <p className="text-lg text-muted-foreground">
+ <p className="text-lg text-gray-11">
{t('Subscription update failed')}
</p>
</div>
- <div className="bg-muted/30 rounded-lg p-4 text-left">
- <h3 className="text-sm font-medium text-foreground mb-2">
+ <div className="bg-gray-3/30 rounded-lg p-4 text-left">
+ <h3 className="text-sm font-medium text-gray-12 mb-2">
{t('What you can do:')}
</h3>
- <ul className="text-sm text-muted-foreground space-y-1">
+ <ul className="text-sm text-gray-11 space-y-1">
<li>{t('Verify your payment method')}</li>
<li>{t('Try again in a few moments')}</li>
<li>{t('Contact support if issues persist')}</li>
@@ -71,7 +71,7 @@ export const Error = () => {
</Button>
</div>
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{t('Redirecting to billing in {countdown} seconds...', {
countdown,
})}
diff --git a/packages/web/src/features/billing/components/feature-usage/auto-recharge-card.tsx b/packages/web/src/features/billing/components/feature-usage/auto-recharge-card.tsx
index fc722766e46..48d230e1430 100644
--- a/packages/web/src/features/billing/components/feature-usage/auto-recharge-card.tsx
+++ b/packages/web/src/features/billing/components/feature-usage/auto-recharge-card.tsx
@@ -46,12 +46,12 @@ export const AutoRechargeCard = ({
// "add payment method" CTA instead of the toggle. Once the card is saved, the toggle appears.
if (!hasCard) {
return (
- <div className="flex flex-col gap-3 rounded-xl border p-5">
- <span className="text-sm font-medium text-foreground">
+ <div className="flex flex-col gap-3 rounded-xl border bg-panel p-5">
+ <span className="text-sm font-medium text-gray-12">
{t('Enable auto recharge')}
</span>
- {note && <span className="text-sm text-muted-foreground">{note}</span>}
- <span className="text-sm text-muted-foreground">
+ {note && <span className="text-sm text-gray-11">{note}</span>}
+ <span className="text-sm text-gray-11">
{t(
'Add a payment method to set up auto recharge. You can configure it once your card is on file.',
)}
@@ -70,18 +70,18 @@ export const AutoRechargeCard = ({
}
return (
- <div className="flex flex-col gap-4 rounded-xl border p-5">
+ <div className="flex flex-col gap-4 rounded-xl border bg-panel p-5">
<div className="flex items-center gap-3">
<Switch
checked={enabled}
disabled={isPending}
onCheckedChange={toggle}
/>
- <span className="text-sm font-medium text-foreground">
+ <span className="text-sm font-medium text-gray-12">
{t('Enable auto recharge')}
</span>
</div>
- {note && <span className="text-sm text-muted-foreground">{note}</span>}
+ {note && <span className="text-sm text-gray-11">{note}</span>}
{enabled && (
<>
<div className="flex flex-col gap-2 text-sm">
diff --git a/packages/web/src/features/billing/components/feature-usage/auto-recharge-config-dialog.tsx b/packages/web/src/features/billing/components/feature-usage/auto-recharge-config-dialog.tsx
index 534f70f8612..59aa90d1b3b 100644
--- a/packages/web/src/features/billing/components/feature-usage/auto-recharge-config-dialog.tsx
+++ b/packages/web/src/features/billing/components/feature-usage/auto-recharge-config-dialog.tsx
@@ -199,7 +199,7 @@ export function AutoRechargeConfigDialog({
})}
/>
- <div className="flex items-start gap-2 text-xs text-muted-foreground">
+ <div className="flex items-start gap-2 text-xs text-gray-11">
<Info className="size-3.5 mt-0.5 shrink-0" />
<span>
{t(
@@ -268,7 +268,7 @@ function CreditsAmountSelect({
<button
type="button"
className={cn(
- 'flex h-9 w-full items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50',
+ 'flex h-9 w-full items-center justify-between gap-2 rounded-md border border-gray-6 bg-transparent px-3 py-2 text-sm shadow-xs outline-none focus-visible:border-accent-8 focus-visible:ring-[3px] focus-visible:ring-accent-8/50',
)}
>
<span>{value.toLocaleString()}</span>
@@ -284,12 +284,12 @@ function CreditsAmountSelect({
key={option}
type="button"
onClick={() => pick(option)}
- className="flex w-full items-center rounded-sm px-3 py-2 text-sm hover:bg-accent"
+ className="flex w-full items-center rounded-sm px-3 py-2 text-sm hover:bg-gray-4"
>
{option.toLocaleString()}
</button>
))}
- <div className="mt-1 flex items-center gap-2 rounded-md border border-input px-3 py-2 focus-within:border-ring focus-within:ring-[3px] focus-within:ring-ring/50">
+ <div className="mt-1 flex items-center gap-2 rounded-md border border-gray-6 px-3 py-2 focus-within:border-accent-8 focus-within:ring-[3px] focus-within:ring-accent-8/50">
<input
type="number"
min={CREDITS_MIN}
@@ -314,9 +314,7 @@ function CreditsAmountSelect({
placeholder={t('Custom amount (rounded up to nearest 1,000)')}
className="w-full bg-transparent text-sm outline-none"
/>
- <span className="shrink-0 text-sm text-muted-foreground">
- {t('credits')}
- </span>
+ <span className="shrink-0 text-sm text-gray-11">{t('credits')}</span>
</div>
</PopoverContent>
</Popover>
diff --git a/packages/web/src/features/billing/components/feature-usage/credits-card.tsx b/packages/web/src/features/billing/components/feature-usage/credits-card.tsx
index be045a45823..4ec337940d9 100644
--- a/packages/web/src/features/billing/components/feature-usage/credits-card.tsx
+++ b/packages/web/src/features/billing/components/feature-usage/credits-card.tsx
@@ -26,23 +26,23 @@ export const CreditsCard = ({ info }: CreditsCardProps) => {
(info.billingPortalAvailable ? info.autumnPlanName : t('Free'));
return (
- <div className="flex flex-col rounded-xl border">
+ <div className="flex flex-col rounded-xl border bg-panel">
<div className="flex flex-col gap-3 p-5">
- <span className="text-muted-foreground text-sm">
+ <span className="text-gray-11 text-sm">
{isUnlimited ? t('Credits used') : t('Included in plan')}
</span>
<div className="flex items-start justify-between gap-4">
<div className="flex items-baseline gap-1.5">
- <span className="text-3xl font-bold text-foreground">
+ <span className="text-3xl font-bold text-gray-12">
{(isUnlimited ? used : total).toLocaleString()}
</span>
- <span className="text-muted-foreground">{t('credits')}</span>
+ <span className="text-gray-11">{t('credits')}</span>
</div>
</div>
{!isUnlimited && (
<>
<Progress value={percentUsed} usage />
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-gray-11">
{t('{amount} remaining', {
amount: Math.round(remaining).toLocaleString(),
})}
@@ -51,14 +51,12 @@ export const CreditsCard = ({ info }: CreditsCardProps) => {
)}
</div>
{!isNil(footer) && (
- <div className="flex flex-col gap-1 border-t p-4 text-sm text-muted-foreground">
+ <div className="flex flex-col gap-1 border-t p-4 text-sm text-gray-11">
<div className="flex items-center gap-2">
<Clock className="size-4 shrink-0" />
<span>
{footer.label}{' '}
- <span className="font-semibold text-foreground">
- {footer.value}
- </span>
+ <span className="font-semibold text-gray-12">{footer.value}</span>
</span>
</div>
{!isNil(info.trialEndsAt) && !isNil(switchesToPlanName) && (
diff --git a/packages/web/src/features/billing/components/feature-usage/credits-info-dialog.tsx b/packages/web/src/features/billing/components/feature-usage/credits-info-dialog.tsx
index dd31c914edb..3e2001c326f 100644
--- a/packages/web/src/features/billing/components/feature-usage/credits-info-dialog.tsx
+++ b/packages/web/src/features/billing/components/feature-usage/credits-info-dialog.tsx
@@ -29,7 +29,7 @@ export const CreditsInfoDialog = () => {
});
return (
<Dialog>
- <DialogTrigger className="inline-flex w-fit items-center gap-1 text-sm font-medium text-primary hover:underline">
+ <DialogTrigger className="inline-flex w-fit items-center gap-1 text-sm font-medium text-accent-11 hover:underline">
{t('Usage breakdown')}
<ArrowUpRight className="size-3.5" />
</DialogTrigger>
@@ -38,8 +38,8 @@ export const CreditsInfoDialog = () => {
aria-describedby={undefined}
className="max-w-[625px] gap-0 overflow-hidden p-0"
>
- <div className="relative flex shrink-0 flex-col items-center justify-center gap-2 overflow-hidden border-b bg-violet-50 px-6 py-12 dark:bg-violet-950/30">
- <DialogTitle className="relative flex items-center gap-2 text-2xl font-bold text-purple-900 dark:text-purple-200">
+ <div className="relative flex shrink-0 flex-col items-center justify-center gap-2 overflow-hidden border-b bg-accent-3 px-6 py-12">
+ <DialogTitle className="relative flex items-center gap-2 text-2xl font-bold text-accent-11">
<Coins className="size-6" />
{t('Credits FAQ')}
</DialogTitle>
@@ -57,10 +57,10 @@ export const CreditsInfoDialog = () => {
value={String(index)}
className="border-b last:border-b-0"
>
- <AccordionTrigger className="px-0 py-4 text-base text-foreground hover:no-underline">
+ <AccordionTrigger className="px-0 py-4 text-base text-gray-12 hover:no-underline">
{faq.question}
</AccordionTrigger>
- <AccordionContent className="px-0 pb-4 text-sm text-muted-foreground">
+ <AccordionContent className="px-0 pb-4 text-sm text-gray-11">
{faq.answer}
</AccordionContent>
</AccordionItem>
@@ -82,7 +82,7 @@ function CreditsCostTable({
const items = buildCostItems({ includeActivepiecesModels, chatEnabled });
return (
<div className="flex w-full flex-col overflow-hidden rounded-[10px] border">
- <div className="flex items-center gap-2 border-b px-3 py-2.5 text-sm font-medium text-muted-foreground">
+ <div className="flex items-center gap-2 border-b px-3 py-2.5 text-sm font-medium text-gray-11">
<span className="flex-1">{t('Action')}</span>
<span className="w-40 text-right">{t('Credits')}</span>
</div>
@@ -93,7 +93,7 @@ function CreditsCostTable({
<div
key={item.label}
className={cn(
- 'bg-muted px-2 py-1.5 text-center text-xs font-semibold uppercase text-muted-foreground',
+ 'bg-gray-3 px-2 py-1.5 text-center text-xs font-semibold uppercase text-gray-11',
border,
)}
>
@@ -105,16 +105,14 @@ function CreditsCostTable({
<div
key={item.action}
className={cn(
- 'flex items-center gap-2 px-3 py-2 text-sm text-foreground',
+ 'flex items-center gap-2 px-3 py-2 text-sm text-gray-12',
border,
)}
>
<div className="flex flex-1 flex-col">
<span>{item.action}</span>
{item.sub && (
- <span className="text-xs text-muted-foreground">
- {item.sub}
- </span>
+ <span className="text-xs text-gray-11">{item.sub}</span>
)}
</div>
<span className="w-40 shrink-0 text-right">{item.credits}</span>
diff --git a/packages/web/src/features/billing/components/feature-usage/deactivate-users-dialog.tsx b/packages/web/src/features/billing/components/feature-usage/deactivate-users-dialog.tsx
index 9d2f649dbcc..e621653dcde 100644
--- a/packages/web/src/features/billing/components/feature-usage/deactivate-users-dialog.tsx
+++ b/packages/web/src/features/billing/components/feature-usage/deactivate-users-dialog.tsx
@@ -151,7 +151,7 @@ function DeactivateUsersForm({
<span
className={cn(
'text-sm',
- withinLimit ? 'text-muted-foreground' : 'text-destructive',
+ withinLimit ? 'text-gray-11' : 'text-danger-11',
)}
>
{t("You'll be at {seatsAfter}/{target} seats after these changes.", {
@@ -161,7 +161,7 @@ function DeactivateUsersForm({
</span>
{!isNil(warning) && (
- <span className="text-xs text-destructive">{warning}</span>
+ <span className="text-xs text-danger-11">{warning}</span>
)}
<DialogFooter>
@@ -205,7 +205,7 @@ function SelectableEmailList({
{items.map((item) => (
<label
key={item.id}
- className="flex cursor-pointer items-center gap-3 rounded-md px-2 py-2 hover:bg-muted"
+ className="flex cursor-pointer items-center gap-3 rounded-md px-2 py-2 hover:bg-gray-3"
>
<Checkbox
checked={selectedIds.has(item.id)}
@@ -213,10 +213,10 @@ function SelectableEmailList({
/>
<div className="min-w-0 flex-1">
<TextWithTooltip tooltipMessage={item.email}>
- <p className="text-sm text-foreground">{item.email}</p>
+ <p className="text-sm text-gray-12">{item.email}</p>
</TextWithTooltip>
</div>
- <span className="shrink-0 text-xs text-muted-foreground">
+ <span className="shrink-0 text-xs text-gray-11">
{item.trailingLabel}
</span>
</label>
@@ -231,9 +231,7 @@ function SelectableEmailList({
return (
<div className="flex flex-col gap-1.5">
- <span className="text-xs font-medium text-muted-foreground">
- {heading}
- </span>
+ <span className="text-xs font-medium text-gray-11">{heading}</span>
{list}
</div>
);
diff --git a/packages/web/src/features/billing/components/feature-usage/feature-usage-cards.tsx b/packages/web/src/features/billing/components/feature-usage/feature-usage-cards.tsx
index c121ee96dd3..57d8459b4f5 100644
--- a/packages/web/src/features/billing/components/feature-usage/feature-usage-cards.tsx
+++ b/packages/web/src/features/billing/components/feature-usage/feature-usage-cards.tsx
@@ -41,12 +41,12 @@ function UsageMetricCard({ metric }: { metric: UsageMetric }) {
});
return (
- <div className="flex flex-col gap-4 rounded-xl bg-muted/30 p-5">
+ <div className="flex flex-col gap-4 rounded-xl bg-gray-3/30 p-5">
<div className="flex items-center gap-2">
- <span className="flex size-7 items-center justify-center rounded-md border bg-background text-muted-foreground">
+ <span className="flex size-7 items-center justify-center rounded-md border bg-gray-1 text-gray-11">
<Icon className="size-4" />
</span>
- <span className="text-sm font-medium text-foreground">
+ <span className="text-sm font-medium text-gray-12">
{t(metric.label)}
</span>
{isUnlimited && (
@@ -58,15 +58,15 @@ function UsageMetricCard({ metric }: { metric: UsageMetric }) {
<div className="flex items-end justify-between gap-4">
<div className="flex flex-col gap-1">
- <span className="text-xs text-muted-foreground">{t('Used')}</span>
- <span className="text-2xl font-semibold text-foreground">
+ <span className="text-xs text-gray-11">{t('Used')}</span>
+ <span className="text-2xl font-semibold text-gray-12">
{metric.used.toLocaleString()}
</span>
</div>
{!isUnlimited && (
<div className="flex flex-col items-end gap-1">
- <span className="text-xs text-muted-foreground">{t('Limit')}</span>
- <span className="text-2xl font-semibold text-foreground">
+ <span className="text-xs text-gray-11">{t('Limit')}</span>
+ <span className="text-2xl font-semibold text-gray-12">
{metric.included!.toLocaleString()}
</span>
</div>
@@ -80,14 +80,14 @@ function UsageMetricCard({ metric }: { metric: UsageMetric }) {
className={usageTrackClass(percent / 100)}
indicatorClassName={usageIndicatorClass(percent / 100)}
/>
- <div className="flex items-center text-xs text-muted-foreground">
+ <div className="flex items-center text-xs text-gray-11">
<span>{t('{percent}% used', { percent })}</span>
</div>
</div>
)}
{!isNil(metric.note) && (
- <span className="text-xs text-muted-foreground">{metric.note}</span>
+ <span className="text-xs text-gray-11">{metric.note}</span>
)}
</div>
);
diff --git a/packages/web/src/features/billing/components/feature-usage/manage-seats-dialog.tsx b/packages/web/src/features/billing/components/feature-usage/manage-seats-dialog.tsx
index de3e3a05299..5801a3c990b 100644
--- a/packages/web/src/features/billing/components/feature-usage/manage-seats-dialog.tsx
+++ b/packages/web/src/features/billing/components/feature-usage/manage-seats-dialog.tsx
@@ -155,7 +155,7 @@ function ManageSeatsForm({
}
/>
- <div className="flex items-start gap-2 text-xs text-muted-foreground">
+ <div className="flex items-start gap-2 text-xs text-gray-11">
<Info className="size-3.5 mt-0.5 shrink-0" />
<span>
{t(
diff --git a/packages/web/src/features/billing/components/feature-usage/out-of-seats-dialog.tsx b/packages/web/src/features/billing/components/feature-usage/out-of-seats-dialog.tsx
index 6282d2a6296..81d963992b9 100644
--- a/packages/web/src/features/billing/components/feature-usage/out-of-seats-dialog.tsx
+++ b/packages/web/src/features/billing/components/feature-usage/out-of-seats-dialog.tsx
@@ -40,8 +40,8 @@ export const OutOfSeatsDialog = ({
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="max-w-[420px]">
<DialogHeader>
- <div className="flex size-10 items-center justify-center rounded-full bg-primary/10">
- <Users className="size-5 text-primary" />
+ <div className="flex size-10 items-center justify-center rounded-full bg-accent-3">
+ <Users className="size-5 text-accent-11" />
</div>
<DialogTitle>{t("You're out of seats")}</DialogTitle>
<DialogDescription>
diff --git a/packages/web/src/features/billing/components/feature-usage/projects-usage-table.tsx b/packages/web/src/features/billing/components/feature-usage/projects-usage-table.tsx
index ac2b561f069..adf58d0bb48 100644
--- a/packages/web/src/features/billing/components/feature-usage/projects-usage-table.tsx
+++ b/packages/web/src/features/billing/components/feature-usage/projects-usage-table.tsx
@@ -69,7 +69,7 @@ export function ProjectsUsageTable({
isError={isError}
errorStateEntity={t('project usage')}
onRetry={refetch}
- emptyStateIcon={<Coins className="size-14 text-muted-foreground" />}
+ emptyStateIcon={<Coins className="size-14 text-gray-11" />}
emptyStateTextTitle={t('No project usage yet')}
emptyStateTextDescription={t(
'Once your projects consume credits, their usage will appear here.',
@@ -96,7 +96,7 @@ function ProjectNameLink({
<button
type="button"
onClick={goToProjectHome}
- className="truncate text-sm font-medium text-primary hover:underline"
+ className="truncate text-sm font-medium text-accent-11 hover:underline"
>
{projectName}
</button>
diff --git a/packages/web/src/features/billing/components/feature-usage/users-card.tsx b/packages/web/src/features/billing/components/feature-usage/users-card.tsx
index e61a72a4a12..f42f3bd2c34 100644
--- a/packages/web/src/features/billing/components/feature-usage/users-card.tsx
+++ b/packages/web/src/features/billing/components/feature-usage/users-card.tsx
@@ -27,8 +27,8 @@ export const UsersCard = ({ info, feature }: UsersCardProps) => {
const [isDialogOpen, setIsDialogOpen] = useState(false);
return (
- <div className="flex flex-col gap-4 rounded-xl border p-5">
- <span className="text-lg font-semibold text-foreground">
+ <div className="flex flex-col gap-4 rounded-xl border bg-panel p-5">
+ <span className="text-lg font-semibold text-gray-12">
{isNil(effectiveTotal)
? t('{used} seats', { used: used.toLocaleString() })
: t('{used}/{total} seats', {
@@ -64,11 +64,11 @@ export const UsersCard = ({ info, feature }: UsersCardProps) => {
)}
{capBinds ? (
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-gray-11">
{billingUtils.scheduledCapNotice(info)}
</span>
) : hasScheduledChange ? (
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-gray-11">
{t('Seat changes are unavailable while a plan change is scheduled.')}
</span>
) : (
diff --git a/packages/web/src/features/billing/components/plan-selector.tsx b/packages/web/src/features/billing/components/plan-selector.tsx
index a41bd6e1771..e43b4f0dbcf 100644
--- a/packages/web/src/features/billing/components/plan-selector.tsx
+++ b/packages/web/src/features/billing/components/plan-selector.tsx
@@ -247,19 +247,19 @@ function PlanColumn({
<div
className={cn(
'flex flex-col gap-4 rounded-xl border p-5',
- entry.highlighted && 'border-primary shadow-sm',
+ entry.highlighted && 'border-accent-9 shadow-sm',
)}
>
<div className="flex flex-col gap-2">
<h3
className={cn(
'text-lg font-semibold',
- entry.highlighted && 'text-primary',
+ entry.highlighted && 'text-accent-11',
)}
>
{t(entry.name)}
</h3>
- <p className="text-sm text-muted-foreground">{t(entry.blurb)}</p>
+ <p className="text-sm text-gray-11">{t(entry.blurb)}</p>
</div>
<div className="flex min-h-[3.25rem] flex-col gap-1">
@@ -268,9 +268,7 @@ function PlanColumn({
<div className="flex items-center gap-2">
<span className="text-3xl font-bold">{pricing.amount}</span>
{!isNil(pricing.suffix) && (
- <span className="text-sm text-muted-foreground">
- {pricing.suffix}
- </span>
+ <span className="text-sm text-gray-11">{pricing.suffix}</span>
)}
{!isNil(pricing.freeMonths) && (
<Badge variant="accent" className="rounded-sm">
@@ -284,9 +282,7 @@ function PlanColumn({
)}
</div>
{!isNil(pricing.annualNote) && (
- <span className="text-xs text-muted-foreground">
- {pricing.annualNote}
- </span>
+ <span className="text-xs text-gray-11">{pricing.annualNote}</span>
)}
</>
)}
@@ -314,14 +310,14 @@ function PlanColumn({
{features.map((feature) => (
<li
key={feature.label}
- className="flex items-center gap-2 text-sm text-foreground"
+ className="flex items-center gap-2 text-sm text-gray-12"
>
- <Check className="size-4 shrink-0 text-primary" />
+ <Check className="size-4 shrink-0 text-accent-11" />
<span className="flex-1">{t(feature.label)}</span>
{!isNil(feature.tooltip) && (
<Tooltip>
<TooltipTrigger asChild>
- <Info className="size-3.5 shrink-0 text-muted-foreground" />
+ <Info className="size-3.5 shrink-0 text-gray-11" />
</TooltipTrigger>
<TooltipContent className="max-w-[220px]">
{t(feature.tooltip)}
@@ -354,7 +350,11 @@ function PlanCta({
const { capture } = useTelemetry();
if (isEnterprise) {
return (
- <Button variant="default" className="w-full bg-foreground" asChild>
+ <Button
+ variant="default"
+ className="w-full bg-gray-12 text-gray-1 hover:bg-gray-12/90"
+ asChild
+ >
<a
href={planSelectorUtils.SALES_URL}
target="_blank"
diff --git a/packages/web/src/features/billing/components/plan-switch-success-dialog.tsx b/packages/web/src/features/billing/components/plan-switch-success-dialog.tsx
index 7a87b9de1f9..1bac964dd2a 100644
--- a/packages/web/src/features/billing/components/plan-switch-success-dialog.tsx
+++ b/packages/web/src/features/billing/components/plan-switch-success-dialog.tsx
@@ -44,14 +44,14 @@ export function PlanSwitchSuccessDialog() {
<DialogContent showCloseButton={false} className="max-w-md">
{!isNil(entry) && (
<div className="flex flex-col items-center gap-5 py-4 text-center">
- <span className="flex size-14 items-center justify-center rounded-full bg-success-600">
- <Check className="size-7 text-white" strokeWidth={3} />
+ <span className="flex size-14 items-center justify-center rounded-full bg-success-9">
+ <Check className="size-7 text-on-success" strokeWidth={3} />
</span>
<div className="flex flex-col gap-2">
<h2 className="text-xl font-semibold">
{t("You're on the {plan} plan", { plan: t(entry.name) })}
</h2>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t('You now have access to {benefits}.', {
benefits: new Intl.ListFormat(undefined, {
style: 'long',
diff --git a/packages/web/src/features/billing/components/price-summary.tsx b/packages/web/src/features/billing/components/price-summary.tsx
index d0b747468f0..cd5c7758e30 100644
--- a/packages/web/src/features/billing/components/price-summary.tsx
+++ b/packages/web/src/features/billing/components/price-summary.tsx
@@ -1,11 +1,11 @@
export const PriceSummary = ({ label, amount, note }: PriceSummaryProps) => (
- <div className="rounded-lg border p-4 bg-primary/5 border-primary/30">
+ <div className="rounded-lg border p-4 bg-accent-3 border-accent-6">
<div className="space-y-3 animate-in fade-in duration-300">
<div className="flex justify-between items-baseline">
<span className="text-sm font-semibold">{label}</span>
- <span className="text-2xl font-bold text-primary">{amount}</span>
+ <span className="text-2xl font-bold text-accent-11">{amount}</span>
</div>
- <div className="text-xs text-muted-foreground text-right">{note}</div>
+ <div className="text-xs text-gray-11 text-right">{note}</div>
</div>
</div>
);
diff --git a/packages/web/src/features/billing/components/sidebar-usage-limits.tsx b/packages/web/src/features/billing/components/sidebar-usage-limits.tsx
index 73a79435776..83ec0db69e0 100644
--- a/packages/web/src/features/billing/components/sidebar-usage-limits.tsx
+++ b/packages/web/src/features/billing/components/sidebar-usage-limits.tsx
@@ -54,7 +54,7 @@ export const SidebarUsageLimits = React.memo(() => {
if (isNil(project) || isNil(usage)) {
return (
- <div className="flex flex-col w-full gap-2 p-2.5 bg-background rounded-md border">
+ <div className="flex flex-col w-full gap-2 p-2.5 bg-gray-1 rounded-md border">
<div className="flex items-center justify-between">
<Skeleton className="w-24 h-4" />
<Skeleton className="w-14 h-4" />
@@ -76,16 +76,16 @@ export const SidebarUsageLimits = React.memo(() => {
dateFormat: BILLING_DATE_FORMAT,
});
return (
- <div className="flex flex-col w-full gap-2 p-2.5 bg-background rounded-md border">
+ <div className="flex flex-col w-full gap-2 p-2.5 bg-gray-1 rounded-md border">
<div className="flex items-center justify-between gap-2">
<div className="flex items-baseline gap-1 min-w-0">
<span className="text-sm font-semibold truncate">{creditsText}</span>
- <span className="text-xs text-muted-foreground">{t('credits')}</span>
+ <span className="text-xs text-gray-11">{t('credits')}</span>
</div>
<Badge
className={cn(
'shrink-0',
- flowRunUtils.getStatusContainerClassName(severity),
+ flowRunUtils.getStatusContainerClassName({ variant: severity }),
)}
>
{t('{percent}% used', { percent: percentUsed })}
@@ -96,7 +96,7 @@ export const SidebarUsageLimits = React.memo(() => {
<TextWithTooltip
tooltipMessage={resetLine.label + ' ' + resetLine.value}
>
- <span className="min-w-0 truncate text-xs text-muted-foreground">
+ <span className="min-w-0 truncate text-xs text-gray-11">
{resetLine.label} {resetLine.value}
</span>
</TextWithTooltip>
diff --git a/packages/web/src/features/billing/components/success.tsx b/packages/web/src/features/billing/components/success.tsx
index 1e4a128dbc3..53e2276fdaa 100644
--- a/packages/web/src/features/billing/components/success.tsx
+++ b/packages/web/src/features/billing/components/success.tsx
@@ -52,32 +52,32 @@ export const Success = () => {
case 'upgrade':
return {
icon: TrendingUp,
- iconBg: 'bg-success-50 dark:bg-success-950',
- iconColor: 'text-success-600 dark:text-success-400',
+ iconBg: 'bg-success-3',
+ iconColor: 'text-success-11',
title: t('Successfully Upgraded!'),
description: t('Subscription updated successfully'),
};
case 'downgrade':
return {
icon: TrendingDown,
- iconBg: 'bg-orange-50 dark:bg-orange-950',
- iconColor: 'text-orange-600 dark:text-orange-400',
+ iconBg: 'bg-warning-3',
+ iconColor: 'text-warning-11',
title: t('Plan Downgraded'),
description: t('Subscription updated successfully'),
};
case 'create':
return {
icon: Check,
- iconBg: 'bg-primary/10',
- iconColor: 'text-primary',
+ iconBg: 'bg-accent-3',
+ iconColor: 'text-accent-11',
title: t('Success!'),
description: t('Subscription created successfully'),
};
default:
return {
icon: Check,
- iconBg: 'bg-primary/10',
- iconColor: 'text-primary',
+ iconBg: 'bg-accent-3',
+ iconColor: 'text-accent-11',
title: t('Success!'),
description: t('Subscription updated successfully'),
};
@@ -89,12 +89,12 @@ export const Success = () => {
if (finalizing) {
return (
- <div className="h-full bg-background flex items-center justify-center p-4">
+ <div className="h-full bg-gray-1 flex items-center justify-center p-4">
<div className="w-full max-w-md">
<CardContent className="pt-8 pb-6 px-6">
<div className="flex flex-col items-center gap-4">
<LoadingSpinner />
- <p className="text-lg text-muted-foreground">
+ <p className="text-lg text-gray-11">
{t('Finalizing your payment…')}
</p>
</div>
@@ -105,7 +105,7 @@ export const Success = () => {
}
return (
- <div className="h-full bg-background flex items-center justify-center p-4">
+ <div className="h-full bg-gray-1 flex items-center justify-center p-4">
<div className="w-full max-w-md">
<CardContent className="pt-8 pb-6 px-6">
<div className="text-center space-y-6">
@@ -119,12 +119,10 @@ export const Success = () => {
</div>
<div className="space-y-2">
- <h1 className="text-2xl font-semibold text-foreground">
+ <h1 className="text-2xl font-semibold text-gray-12">
{config.title}
</h1>
- <p className="text-lg text-muted-foreground">
- {config.description}
- </p>
+ <p className="text-lg text-gray-11">{config.description}</p>
</div>
<div className="flex flex-col gap-3 pt-2">
@@ -141,7 +139,7 @@ export const Success = () => {
</Button>
</div>
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{t('Redirecting to billing shortly...')}
</p>
</div>
diff --git a/packages/web/src/features/billing/hooks/use-feature-gate.tsx b/packages/web/src/features/billing/hooks/use-feature-gate.tsx
index 34d32228099..f64a7567dbf 100644
--- a/packages/web/src/features/billing/hooks/use-feature-gate.tsx
+++ b/packages/web/src/features/billing/hooks/use-feature-gate.tsx
@@ -25,7 +25,7 @@ export function useFeatureGate({ locked, feature }: UseFeatureGateParams) {
return {
locked,
crown: locked ? (
- <Crown className="size-3.5 shrink-0 text-primary-foreground/90" />
+ <Crown className="size-3.5 shrink-0 text-on-accent/90" />
) : null,
open: () => setOpen(true),
dialog: (
@@ -69,7 +69,7 @@ export function UpgradeFeatureDialog({
<ul className="flex flex-col gap-2">
{bullets.map((bullet) => (
<li key={bullet} className="flex items-start gap-2 text-sm">
- <Check className="mt-0.5 size-4 shrink-0 text-primary" />
+ <Check className="mt-0.5 size-4 shrink-0 text-accent-11" />
<span>{t(bullet)}</span>
</li>
))}
@@ -82,7 +82,7 @@ export function UpgradeFeatureDialog({
href={docsUrl}
target="_blank"
rel="noopener noreferrer"
- className="inline-flex items-center gap-1 text-sm font-medium text-primary hover:underline"
+ className="inline-flex items-center gap-1 text-sm font-medium text-accent-11 hover:underline"
>
{t('Read the docs')}
<ExternalLink className="size-3.5" />
diff --git a/packages/web/src/features/billing/hooks/use-team-project-limit-guard.tsx b/packages/web/src/features/billing/hooks/use-team-project-limit-guard.tsx
index f753afec5c9..e3978c5aab0 100644
--- a/packages/web/src/features/billing/hooks/use-team-project-limit-guard.tsx
+++ b/packages/web/src/features/billing/hooks/use-team-project-limit-guard.tsx
@@ -74,8 +74,8 @@ function TeamProjectLimitContent({
return (
<>
<DialogHeader>
- <div className="flex size-10 items-center justify-center rounded-full bg-primary/10">
- <LayoutGrid className="size-5 text-primary" />
+ <div className="flex size-10 items-center justify-center rounded-full bg-accent-3">
+ <LayoutGrid className="size-5 text-accent-11" />
</div>
<DialogTitle className="flex items-center gap-2">
{showBenefits
@@ -102,7 +102,7 @@ function TeamProjectLimitContent({
<ul className="flex flex-col gap-2">
{feature.bullets.map((bullet) => (
<li key={bullet} className="flex items-start gap-2 text-sm">
- <Check className="mt-0.5 size-4 shrink-0 text-primary" />
+ <Check className="mt-0.5 size-4 shrink-0 text-accent-11" />
<span>{t(bullet)}</span>
</li>
))}
diff --git a/packages/web/src/features/chat/chat-bubble/index.tsx b/packages/web/src/features/chat/chat-bubble/index.tsx
index 8f5f1066f13..1d11fed3141 100644
--- a/packages/web/src/features/chat/chat-bubble/index.tsx
+++ b/packages/web/src/features/chat/chat-bubble/index.tsx
@@ -70,7 +70,7 @@ const ChatBubbleAvatar: React.FC<ChatBubbleAvatarProps> = ({
alt="Avatar"
className={cn('aspect-square p-2', className)}
/>
- <AvatarFallback className="bg-background border">{fallback}</AvatarFallback>
+ <AvatarFallback className="bg-gray-1 border">{fallback}</AvatarFallback>
</Avatar>
);
@@ -78,8 +78,8 @@ const ChatBubbleAvatar: React.FC<ChatBubbleAvatarProps> = ({
const chatBubbleMessageVariants = cva('px-1', {
variants: {
variant: {
- received: 'bg-background text-foreground rounded-3xl py-2',
- sent: 'bg-accent text-accent-foreground rounded-3xl py-3 px-5',
+ received: 'bg-gray-1 text-gray-12 rounded-3xl py-2',
+ sent: 'bg-gray-3 text-gray-12 rounded-3xl py-3 px-5',
},
layout: {
default: '',
diff --git a/packages/web/src/features/chat/chat-bubble/message-loading.tsx b/packages/web/src/features/chat/chat-bubble/message-loading.tsx
index 597a03dffb6..14657532f50 100644
--- a/packages/web/src/features/chat/chat-bubble/message-loading.tsx
+++ b/packages/web/src/features/chat/chat-bubble/message-loading.tsx
@@ -6,7 +6,7 @@ export default function MessageLoading() {
height="24"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
- className="text-foreground"
+ className="text-gray-12"
>
<circle cx="4" cy="12" r="2" fill="currentColor">
<animate
diff --git a/packages/web/src/features/chat/chat-input/file-input-preview.tsx b/packages/web/src/features/chat/chat-input/file-input-preview.tsx
index 1217dcba4f9..a08eb04f3fc 100644
--- a/packages/web/src/features/chat/chat-input/file-input-preview.tsx
+++ b/packages/web/src/features/chat/chat-input/file-input-preview.tsx
@@ -32,7 +32,7 @@ export const FileInputPreview = ({
/>
)}
{!isImage && !isVideo && (
- <div className="w-20 h-20 bg-foreground text-background rounded-lg flex items-center justify-center">
+ <div className="w-20 h-20 bg-gray-12 text-gray-1 rounded-lg flex items-center justify-center">
<FileIcon className="w-8 h-8" />
</div>
)}
diff --git a/packages/web/src/features/chat/chat-input/index.tsx b/packages/web/src/features/chat/chat-input/index.tsx
index 96eb856b2ab..47bd7d3c173 100644
--- a/packages/web/src/features/chat/chat-input/index.tsx
+++ b/packages/web/src/features/chat/chat-input/index.tsx
@@ -120,7 +120,7 @@ const ChatInput = React.forwardRef<HTMLTextAreaElement, ChatInputProps>(
maxRows={6}
name="message"
className={cn(
- 'px-4 py-3 text-sm placeholder:text-muted-foreground focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 w-full resize-none border-0 shadow-none focus-visible:ring-0',
+ 'px-4 py-3 text-sm placeholder:text-gray-11 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 w-full resize-none border-0 shadow-none focus-visible:ring-0',
className,
)}
value={input}
@@ -139,7 +139,7 @@ const ChatInput = React.forwardRef<HTMLTextAreaElement, ChatInputProps>(
/>
<div className="flex justify-end items-center gap-4 px-4 py-2">
<label htmlFor="file-upload" className="cursor-pointer">
- <Paperclip className="w-4 h-4 text-muted-foreground hover:text-foreground" />
+ <Paperclip className="w-4 h-4 text-gray-11 hover:text-gray-12" />
</label>
<input
ref={fileInputRef}
diff --git a/packages/web/src/features/chat/chat-intro.tsx b/packages/web/src/features/chat/chat-intro.tsx
index 780cab1cf91..88f9d631bbe 100644
--- a/packages/web/src/features/chat/chat-intro.tsx
+++ b/packages/web/src/features/chat/chat-intro.tsx
@@ -18,13 +18,13 @@ export function ChatIntro({ chatUI, botName }: ChatIntroProps) {
/>
</div>
<div className="flex items-center gap-1 justify-center">
- <p className="animate-typing overflow-hidden whitespace-nowrap pr-1 hidden lg:block lg:text-xl text-foreground leading-8">
+ <p className="animate-typing overflow-hidden whitespace-nowrap pr-1 hidden lg:block lg:text-xl text-gray-12 leading-8">
Hi! I&apos;m {botName} 👋 How can I help you today?
</p>
- <p className="animate-typing-sm overflow-hidden whitespace-nowrap pr-1 lg:hidden text-xl text-foreground leading-8">
+ <p className="animate-typing-sm overflow-hidden whitespace-nowrap pr-1 lg:hidden text-xl text-gray-12 leading-8">
Hi! I&apos;m {botName} 👋
</p>
- <span className="w-4 h-4 rounded-full bg-foreground animate-[fade_0.15s_ease-out_forwards_0.7s_reverse]" />
+ <span className="w-4 h-4 rounded-full bg-gray-12 animate-[fade_0.15s_ease-out_forwards_0.7s_reverse]" />
</div>
</div>
</div>
diff --git a/packages/web/src/features/chat/chat-message-list/error-bubble.tsx b/packages/web/src/features/chat/chat-message-list/error-bubble.tsx
index 58824964b06..a6dd2fa5d8e 100644
--- a/packages/web/src/features/chat/chat-message-list/error-bubble.tsx
+++ b/packages/web/src/features/chat/chat-message-list/error-bubble.tsx
@@ -23,7 +23,7 @@ const formatError = (
<strong>Respond on UI</strong> is in{' '}
<a
href={`/projects/${projectId}/flows/${flowId}`}
- className="text-primary underline"
+ className="text-accent-11 underline"
target="_blank"
rel="noreferrer"
>
@@ -72,10 +72,10 @@ export const ErrorBubble = ({
fallback={<BotIcon className="size-5" />}
/>
<div className="absolute -bottom-[2px] -right-[2px]">
- <CircleX className="size-4 text-destructive" strokeWidth={3} />
+ <CircleX className="size-4 text-danger-11" strokeWidth={3} />
</div>
</div>
- <ChatBubbleMessage className="text-destructive">
+ <ChatBubbleMessage className="text-danger-11">
{formatError(chatUI?.projectId, flowId, sendingError)}
</ChatBubbleMessage>
<div className="flex gap-1">
diff --git a/packages/web/src/features/chat/chat-message/file-message.tsx b/packages/web/src/features/chat/chat-message/file-message.tsx
index 2b20e9d17f3..daa62d278b1 100644
--- a/packages/web/src/features/chat/chat-message/file-message.tsx
+++ b/packages/web/src/features/chat/chat-message/file-message.tsx
@@ -17,13 +17,13 @@ export const FileMessage: React.FC<FileMessageProps> = ({
const isVideo = mimeType?.startsWith('video/');
return (
<a
- className="p-2 w-80 rounded-lg border px-2 max-w-full hover:bg-muted transition-colors cursor-pointer"
+ className="p-2 w-80 rounded-lg border px-2 max-w-full hover:bg-gray-3 transition-colors cursor-pointer"
href={content}
download={fileName ?? 'file'}
>
<div className="flex flex-row items-center gap-2">
<div className="relative h-10 w-10 shrink-0 overflow-hidden rounded-md">
- <div className="h-full w-full flex items-center justify-center bg-foreground text-background">
+ <div className="h-full w-full flex items-center justify-center bg-gray-12 text-gray-1">
{isVideo ? (
<VideoIcon className="h-5 w-5" />
) : (
@@ -36,7 +36,7 @@ export const FileMessage: React.FC<FileMessageProps> = ({
{fileName ?? (role === 'user' ? 'Untitled File' : 'Download File')}
</div>
{fileName && (
- <div className="truncate text-sm text-token-text-tertiary leading-none">
+ <div className="truncate text-sm text-gray-11 leading-none">
{role === 'user' ? 'View File' : 'Download File'}
</div>
)}
diff --git a/packages/web/src/features/chat/chat-message/image-dialog.tsx b/packages/web/src/features/chat/chat-message/image-dialog.tsx
index 6ac50202e4e..2d77759eb88 100644
--- a/packages/web/src/features/chat/chat-message/image-dialog.tsx
+++ b/packages/web/src/features/chat/chat-message/image-dialog.tsx
@@ -2,7 +2,7 @@ import { t } from 'i18next';
import { Download, X } from 'lucide-react';
import React from 'react';
-import ImageWithFallback from '@/components/custom/image-with-fallback';
+import { ImageWithFallback } from '@/components/custom/image-with-fallback';
import { Button } from '@/components/ui/button';
import { Dialog, DialogContent, DialogTitle } from '@/components/ui/dialog';
@@ -30,7 +30,8 @@ export const ImageDialog: React.FC<ImageDialogProps> = ({
<ImageWithFallback
src={imageUrl ?? ''}
alt={t('Image preview')}
- className="max-h-[85vh] max-w-[90vw] h-auto w-auto rounded-md object-contain"
+ className="max-h-[85vh] max-w-[90vw] h-auto w-auto rounded-md"
+ imageClassName="max-h-[85vh] max-w-[90vw] h-auto w-auto rounded-md"
/>
<div className="absolute right-3 top-3 flex gap-2">
<Button
diff --git a/packages/web/src/features/chat/chat-message/image-message.tsx b/packages/web/src/features/chat/chat-message/image-message.tsx
index 4cd09e5bac4..c59970476c8 100644
--- a/packages/web/src/features/chat/chat-message/image-message.tsx
+++ b/packages/web/src/features/chat/chat-message/image-message.tsx
@@ -1,7 +1,8 @@
+import { t } from 'i18next';
import { Download } from 'lucide-react';
import React from 'react';
-import ImageWithFallback from '@/components/custom/image-with-fallback';
+import { ImageWithFallback } from '@/components/custom/image-with-fallback';
import { downloadImage } from './download-image';
@@ -21,6 +22,7 @@ export const ImageMessage: React.FC<ImageMessageProps> = ({
src={content}
alt="Received image"
className="w-80 h-auto rounded-md cursor-pointer"
+ imageClassName="rounded-md"
onClick={() => setSelectedImage(content)}
/>
<button
@@ -28,9 +30,11 @@ export const ImageMessage: React.FC<ImageMessageProps> = ({
e.stopPropagation();
downloadImage(content);
}}
- className="absolute top-2 right-2 bg-black bg-opacity-50 rounded-full p-1 hover:bg-opacity-75 transition-opacity opacity-0 group-hover:opacity-100"
+ data-theme="dark"
+ aria-label={t('Download')}
+ className="absolute top-2 right-2 bg-scrim/70 rounded-full p-1 hover:bg-scrim transition-opacity opacity-0 group-hover:opacity-100 focus-visible:opacity-100"
>
- <Download className="h-4 w-4 text-white" />
+ <Download className="h-4 w-4 text-gray-12" />
</button>
</div>
</div>
diff --git a/packages/web/src/features/chat/chat-message/text-message.tsx b/packages/web/src/features/chat/chat-message/text-message.tsx
index 85d60b7f8a3..394ceeb4f88 100644
--- a/packages/web/src/features/chat/chat-message/text-message.tsx
+++ b/packages/web/src/features/chat/chat-message/text-message.tsx
@@ -1,6 +1,5 @@
import { FileResponseInterface } from '@activepieces/shared';
import { javascript } from '@codemirror/lang-javascript';
-import { githubDark, githubLight } from '@uiw/codemirror-theme-github';
import ReactCodeMirror, {
EditorState,
EditorView,
@@ -13,6 +12,7 @@ import remarkGfm from 'remark-gfm';
import { CopyButton } from '@/components/custom/clipboard/copy-button';
import { useTheme } from '@/components/providers/theme-provider';
import { Button } from '@/components/ui/button';
+import { syntaxTheme } from '@/lib/syntax-theme';
import { cn } from '@/lib/utils';
interface TextMessageProps {
@@ -23,9 +23,9 @@ interface TextMessageProps {
export const TextMessage: React.FC<TextMessageProps> = React.memo(
({ content, role }) => {
- const { theme } = useTheme();
+ const { resolvedTheme } = useTheme();
const extensions = [
- theme === 'dark' ? githubDark : githubLight,
+ syntaxTheme.codeMirror(resolvedTheme),
EditorState.readOnly.of(true),
EditorView.editable.of(false),
javascript({ jsx: false, typescript: true }),
@@ -44,12 +44,7 @@ export const TextMessage: React.FC<TextMessageProps> = React.memo(
const match = /language-(\w+)/.exec(className || '');
return !inline && match && match[1] ? (
- <div
- className={cn(
- 'relative border rounded-md p-4 pt-12',
- theme === 'dark' ? 'bg-[#0E1117]' : 'bg-background',
- )}
- >
+ <div className="relative border rounded-md p-4 pt-12 bg-panel">
<ReactCodeMirror
value={String(children).trim()}
className="border-none"
@@ -72,11 +67,11 @@ export const TextMessage: React.FC<TextMessageProps> = React.memo(
closeBrackets: false,
}}
lang={match[1]}
- theme={theme === 'dark' ? githubDark : githubLight}
+ theme={syntaxTheme.codeMirror(resolvedTheme)}
readOnly={true}
extensions={extensions}
/>
- <div className="absolute top-4 left-5 text-xs text-gray-500">
+ <div className="absolute top-4 left-5 text-xs text-gray-11">
<div className="flex items-center gap-1">
<CodeIcon className="size-3" />
<span>{match[1]}</span>
@@ -84,14 +79,14 @@ export const TextMessage: React.FC<TextMessageProps> = React.memo(
</div>
<CopyCode
textToCopy={String(children).trim()}
- className="absolute top-2 right-2 text-xs text-gray-500"
+ className="absolute top-2 right-2 text-xs text-gray-11"
/>
</div>
) : (
<code
className={cn(
className,
- 'bg-gray-200 px-[6px] py-[2px] rounded-xs font-mono text-sm',
+ 'bg-gray-3 px-[6px] py-[2px] rounded-xs font-mono text-sm',
)}
{...props}
>
diff --git a/packages/web/src/features/chat/components/voice-waveform.tsx b/packages/web/src/features/chat/components/voice-waveform.tsx
index 2be6d9a9de7..1c2ed43e63c 100644
--- a/packages/web/src/features/chat/components/voice-waveform.tsx
+++ b/packages/web/src/features/chat/components/voice-waveform.tsx
@@ -12,7 +12,7 @@ function VoiceWaveformBars() {
{BARS.map((bar, i) => (
<span
key={i}
- className="w-[3px] h-full rounded-full bg-foreground origin-center animate-[voice-bar_ease-in-out_infinite_alternate]"
+ className="w-[3px] h-full rounded-full bg-gray-12 origin-center animate-[voice-bar_ease-in-out_infinite_alternate]"
style={{
animationDuration: bar.duration,
animationDelay: bar.delay,
diff --git a/packages/web/src/features/chat/use-cases/use-case-card-art.tsx b/packages/web/src/features/chat/use-cases/use-case-card-art.tsx
index f61bc698847..0812fb58dfe 100644
--- a/packages/web/src/features/chat/use-cases/use-case-card-art.tsx
+++ b/packages/web/src/features/chat/use-cases/use-case-card-art.tsx
@@ -15,7 +15,7 @@ export function UseCaseDoodle({
return (
<span
className={cn(
- 'inline-flex shrink-0 transition-transform duration-300 ease-out group-hover:-rotate-2 group-hover:scale-110',
+ 'inline-flex shrink-0 transition-transform duration-300 group-hover:-rotate-2 group-hover:scale-110',
className,
)}
>
@@ -27,7 +27,7 @@ export function UseCaseDoodle({
strokeLinecap="round"
strokeLinejoin="round"
aria-hidden
- className="doodle-draw size-full"
+ className="size-full"
style={{ transform: `rotate(${tilt}deg)` }}
>
{paths.map((d, i) => (
@@ -198,28 +198,28 @@ type InkName = 'purple' | 'blue' | 'teal' | 'orange' | 'sunflower' | 'pink';
const INKS: Record<InkName, UseCaseTheme> = {
purple: {
- ink: 'text-[#765BA7] dark:text-[#A98FD6]',
- ring: 'hover:ring-[#765BA7]/40 dark:hover:ring-[#A98FD6]/45',
+ ink: 'text-swatch-1-ink',
+ ring: 'hover:ring-swatch-1-mark/40',
},
blue: {
- ink: 'text-[#0078BF] dark:text-[#57ABE8]',
- ring: 'hover:ring-[#0078BF]/40 dark:hover:ring-[#57ABE8]/45',
+ ink: 'text-swatch-11-ink',
+ ring: 'hover:ring-swatch-11-mark/40',
},
teal: {
- ink: 'text-[#00838A] dark:text-[#35B5B0]',
- ring: 'hover:ring-[#00838A]/40 dark:hover:ring-[#35B5B0]/45',
+ ink: 'text-swatch-9-ink',
+ ring: 'hover:ring-swatch-9-mark/40',
},
orange: {
- ink: 'text-[#F0602F] dark:text-[#FF8E5E]',
- ring: 'hover:ring-[#F0602F]/40 dark:hover:ring-[#FF8E5E]/45',
+ ink: 'text-swatch-5-ink',
+ ring: 'hover:ring-swatch-5-mark/40',
},
sunflower: {
- ink: 'text-[#D69A00] dark:text-[#F5B93D]',
- ring: 'hover:ring-[#D69A00]/40 dark:hover:ring-[#F5B93D]/45',
+ ink: 'text-swatch-6-ink',
+ ring: 'hover:ring-swatch-6-mark/40',
},
pink: {
- ink: 'text-[#E3399B] dark:text-[#FF7AC1]',
- ring: 'hover:ring-[#E3399B]/40 dark:hover:ring-[#FF7AC1]/45',
+ ink: 'text-swatch-3-ink',
+ ring: 'hover:ring-swatch-3-mark/40',
},
};
@@ -249,7 +249,6 @@ const CARD_INKS: Record<string, InkName> = {
'write-posts': 'blue',
};
-const CARD_SURFACE =
- 'bg-[#FAF8F3] ring-[#EAE5DA] dark:bg-white/[0.03] dark:ring-white/10';
+const CARD_SURFACE = 'bg-gray-3 ring-gray-6';
export const useCaseCardArt = { resolveTheme, CARD_SURFACE };
diff --git a/packages/web/src/features/chat/use-cases/use-case-card.tsx b/packages/web/src/features/chat/use-cases/use-case-card.tsx
index cb24ed9e57f..7c32198a119 100644
--- a/packages/web/src/features/chat/use-cases/use-case-card.tsx
+++ b/packages/web/src/features/chat/use-cases/use-case-card.tsx
@@ -46,18 +46,18 @@ export function UseCaseCard({
/>
{card.kind === 'routine' && (
<Repeat
- className="size-3.5 text-muted-foreground/60"
+ className="size-3.5 text-gray-11"
aria-label={t('Runs on autopilot')}
/>
)}
</div>
- <h3 className="mt-3 pr-7 font-serif text-[17px] font-medium leading-snug text-foreground">
+ <h3 className="mt-3 pr-7 font-serif text-[17px] font-medium leading-snug text-gray-12">
{card.title}
</h3>
{interactive && (
<DoodleArrow
className={cn(
- 'absolute bottom-4 right-4 size-4 opacity-0 transition-all duration-300 ease-out group-hover:translate-x-0 group-hover:opacity-100 motion-safe:translate-x-1.5',
+ 'absolute bottom-4 right-4 size-4 opacity-0 transition-all duration-300 group-hover:translate-x-0 group-hover:opacity-100 motion-safe:translate-x-1.5',
theme.ink,
)}
/>
diff --git a/packages/web/src/features/flow-runs/components/runs-table/columns.tsx b/packages/web/src/features/flow-runs/components/runs-table/columns.tsx
index 02bc829e16b..faa5d807dcf 100644
--- a/packages/web/src/features/flow-runs/components/runs-table/columns.tsx
+++ b/packages/web/src/features/flow-runs/components/runs-table/columns.tsx
@@ -220,9 +220,7 @@ export const runsTableColumns = ({
return (
<div className="flex items-center gap-2 text-left">
- {!isNil(archivedAt) && (
- <Archive className="size-4 text-muted-foreground" />
- )}
+ {!isNil(archivedAt) && <Archive className="size-4 text-gray-11" />}
<TruncatedColumnTextValue value={displayName} />
</div>
);
@@ -300,7 +298,7 @@ export const runsTableColumns = ({
<div className="text-left flex items-center gap-2">
{row.original.finishTime && (
<>
- <Hourglass className="h-4 w-4 text-muted-foreground" />
+ <Hourglass className="h-4 w-4 text-gray-11" />
{formatUtils.formatDuration(duration)}
</>
)}
diff --git a/packages/web/src/features/flow-runs/components/runs-table/failed-retry-runs-dialog.tsx b/packages/web/src/features/flow-runs/components/runs-table/failed-retry-runs-dialog.tsx
index 48e7510c019..ac09725cd19 100644
--- a/packages/web/src/features/flow-runs/components/runs-table/failed-retry-runs-dialog.tsx
+++ b/packages/web/src/features/flow-runs/components/runs-table/failed-retry-runs-dialog.tsx
@@ -52,9 +52,12 @@ export const FailedRetryRunsDialog = ({
<div className="flex items-center gap-1.5 text-sm font-medium">
<Icon
className={cn('size-4 shrink-0', {
- 'text-destructive': variant === 'error',
- 'text-success': variant === 'success',
- 'text-muted-foreground': variant === 'default',
+ 'text-danger-11': variant === 'error',
+ 'text-success-11': variant === 'success',
+ 'text-warning-11': variant === 'warning',
+ 'text-accent-11': variant === 'primary',
+ 'text-gray-11':
+ variant === 'neutral' || variant === 'default',
})}
/>
<span className="truncate">
@@ -62,7 +65,7 @@ export const FailedRetryRunsDialog = ({
{formatUtils.convertEnumToHumanReadable(run.status)}
</span>
</div>
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{run.error?.errorCode ===
ErrorCode.FLOW_RUN_RETRY_OUTSIDE_RETENTION
? t(
diff --git a/packages/web/src/features/flow-runs/components/runs-table/failed-step-dialog.tsx b/packages/web/src/features/flow-runs/components/runs-table/failed-step-dialog.tsx
index 6c7a270e9ce..6d03ebc8817 100644
--- a/packages/web/src/features/flow-runs/components/runs-table/failed-step-dialog.tsx
+++ b/packages/web/src/features/flow-runs/components/runs-table/failed-step-dialog.tsx
@@ -79,7 +79,7 @@ export const FailedStepDialog = ({
>
<DialogHeader>
<DialogTitle className="flex items-center gap-2 text-base">
- <RunStatusIcon className="size-4 shrink-0 text-destructive-800 dark:text-destructive-200" />
+ <RunStatusIcon className="size-4 shrink-0 text-danger-11" />
<span className="truncate">
{flowName || t('Internal error')}
</span>
@@ -105,7 +105,7 @@ export const FailedStepDialog = ({
hideDownload
/>
) : (
- <div className="text-sm italic text-muted-foreground">
+ <div className="text-sm italic text-gray-11">
{t('No error details available')}
</div>
)}
@@ -153,7 +153,7 @@ export const FailedStepDialog = ({
<DialogContent className="max-w-lg" onClick={(e) => e.stopPropagation()}>
<DialogHeader>
<DialogTitle className="flex items-center gap-2 text-base">
- <RunStatusIcon className="size-4 shrink-0 text-destructive-800 dark:text-destructive-200" />
+ <RunStatusIcon className="size-4 shrink-0 text-danger-11" />
<span className="truncate">{flowName || t('Run Failed')}</span>
</DialogTitle>
<DialogDescription className="text-xs">
@@ -183,7 +183,7 @@ export const FailedStepDialog = ({
hideDownload
/>
) : (
- <div className="text-sm italic text-muted-foreground">
+ <div className="text-sm italic text-gray-11">
{t('No error message available')}
</div>
)}
diff --git a/packages/web/src/features/flow-runs/components/runs-table/retried-runs-snackbar.tsx b/packages/web/src/features/flow-runs/components/runs-table/retried-runs-snackbar.tsx
index 7224996fc9b..36ed4ca9b65 100644
--- a/packages/web/src/features/flow-runs/components/runs-table/retried-runs-snackbar.tsx
+++ b/packages/web/src/features/flow-runs/components/runs-table/retried-runs-snackbar.tsx
@@ -21,7 +21,7 @@ export const RetriedRunsSnackbar = ({
return null;
}
return (
- <div className="fixed bottom-5 p-4 left-1/2 transform -translate-x-1/2 w-[480px] animate-slide-in-from-bottom bg-background shadow-lg border rounded-lg z-9999">
+ <div className="fixed bottom-5 p-4 left-1/2 transform -translate-x-1/2 w-[480px] animate-slide-in-from-bottom bg-gray-1 shadow-lg border rounded-lg z-9999">
<div className="flex items-center justify-between animate-fade">
<div className="flex items-center gap-2">
<Info className="size-5" />
diff --git a/packages/web/src/features/flow-runs/components/runs-table/runs-status-chart.tsx b/packages/web/src/features/flow-runs/components/runs-table/runs-status-chart.tsx
index 71afba801f7..cecc64487ad 100644
--- a/packages/web/src/features/flow-runs/components/runs-table/runs-status-chart.tsx
+++ b/packages/web/src/features/flow-runs/components/runs-table/runs-status-chart.tsx
@@ -44,9 +44,8 @@ function MiniDonut({
cy={DONUT_CENTER}
r={DONUT_RADIUS}
fill="none"
- stroke="var(--muted-foreground)"
+ stroke="var(--gray-6)"
strokeWidth={DONUT_STROKE}
- opacity={0.4}
/>
) : (
categories.map((cat) => {
@@ -101,7 +100,7 @@ function RunsStatusChart() {
return (
<Popover open={open} onOpenChange={handleOpenChange}>
<PopoverTrigger asChild>
- <button className="flex items-center gap-2 px-3 py-1.5 border border-dashed rounded-md hover:bg-accent transition-colors text-sm text-muted-foreground">
+ <button className="flex items-center gap-2 px-3 py-1.5 border border-dashed rounded-md hover:bg-gray-4 transition-colors text-sm text-gray-11">
<MiniDonut categories={categories} total={total} />
{t('Queue Status')}
</button>
@@ -113,25 +112,23 @@ function RunsStatusChart() {
<p className="text-sm font-medium">{t('Current Queue Status')}</p>
<Tooltip>
<TooltipTrigger asChild>
- <CircleHelp className="size-3.5 text-muted-foreground" />
+ <CircleHelp className="size-3.5 text-gray-11" />
</TooltipTrigger>
<TooltipContent side="top">
{t('Showing results from the last 7 days')}
</TooltipContent>
</Tooltip>
</div>
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-gray-11">
{t('Total Runs')}: {formatUtils.formatNumberCompact(total)}
</p>
</div>
{total === 0 ? (
- <p className="text-sm text-muted-foreground">
- {t('There are no runs')}
- </p>
+ <p className="text-sm text-gray-11">{t('There are no runs')}</p>
) : (
<>
- <div className="flex h-3 w-full overflow-hidden rounded-full bg-muted">
+ <div className="flex h-3 w-full overflow-hidden rounded-full bg-gray-3">
{categories.map((cat) => (
<div
key={cat.label}
diff --git a/packages/web/src/features/flow-runs/components/timeline-bar.tsx b/packages/web/src/features/flow-runs/components/timeline-bar.tsx
index 5f9c50875f1..db374acd001 100644
--- a/packages/web/src/features/flow-runs/components/timeline-bar.tsx
+++ b/packages/web/src/features/flow-runs/components/timeline-bar.tsx
@@ -10,10 +10,10 @@ import { formatUtils } from '@/lib/format-utils';
import { cn } from '@/lib/utils';
const PHASE_COLOR: Record<TimelinePhase['name'], string> = {
- QUEUE: 'bg-blue-600',
- PROVISION: 'bg-amber-500',
- BOOT: 'bg-violet-600',
- RUN: 'bg-emerald-600',
+ QUEUE: 'bg-swatch-11-mark',
+ PROVISION: 'bg-swatch-6-mark',
+ BOOT: 'bg-swatch-1-mark',
+ RUN: 'bg-swatch-8-mark',
};
function phaseLabel(name: TimelinePhase['name']): string {
@@ -110,10 +110,10 @@ export function TimelineBar({
{timeline.legs.map((leg, i) => (
<div key={i} className="flex flex-col gap-2">
{i > 0 && (
- <div className="flex items-center gap-2 text-xs text-muted-foreground">
- <div className="flex-1 border-t border-dashed border-border" />
+ <div className="flex items-center gap-2 text-xs text-gray-11">
+ <div className="flex-1 border-t border-dashed border-gray-6" />
<span>{t('Resumed')}</span>
- <div className="flex-1 border-t border-dashed border-border" />
+ <div className="flex-1 border-t border-dashed border-gray-6" />
</div>
)}
<LegBar phases={leg} />
@@ -129,13 +129,13 @@ export function TimelineBar({
PHASE_COLOR[name],
)}
/>
- <span className="w-16 shrink-0 font-medium text-foreground">
+ <span className="w-16 shrink-0 font-medium text-gray-12">
{phaseLabel(name)}
</span>
- <span className="flex-1 text-muted-foreground">
+ <span className="flex-1 text-gray-11">
{phaseDescription(name)}
</span>
- <span className="shrink-0 font-medium tabular-nums text-foreground">
+ <span className="shrink-0 font-medium tabular-nums text-gray-12">
{formatUtils.formatDuration(totals[name], true)}
</span>
</div>
diff --git a/packages/web/src/features/flow-runs/hooks/flow-run-hooks.ts b/packages/web/src/features/flow-runs/hooks/flow-run-hooks.ts
index ad4dba1366b..771fd1642c4 100644
--- a/packages/web/src/features/flow-runs/hooks/flow-run-hooks.ts
+++ b/packages/web/src/features/flow-runs/hooks/flow-run-hooks.ts
@@ -32,7 +32,7 @@ const STATUS_CATEGORIES = [
{
label: 'Succeeded',
statuses: [FlowRunStatus.SUCCEEDED],
- color: 'hsl(var(--success))',
+ color: 'var(--success-11)',
},
{
label: 'Failed',
@@ -44,27 +44,27 @@ const STATUS_CATEGORIES = [
FlowRunStatus.QUOTA_EXCEEDED,
FlowRunStatus.LOG_SIZE_EXCEEDED,
],
- color: 'hsl(var(--destructive))',
+ color: 'var(--danger-11)',
},
{
label: 'Running',
statuses: [FlowRunStatus.RUNNING],
- color: 'hsl(var(--primary))',
+ color: 'var(--accent-11)',
},
{
label: 'Queued',
statuses: [FlowRunStatus.QUEUED],
- color: 'var(--muted-foreground)',
+ color: 'var(--gray-11)',
},
{
label: 'Paused',
statuses: [FlowRunStatus.PAUSED],
- color: 'hsl(var(--warning))',
+ color: 'var(--warning-11)',
},
{
label: 'Canceled',
statuses: [FlowRunStatus.CANCELED],
- color: 'var(--muted-foreground)',
+ color: 'var(--gray-11)',
},
] as const;
diff --git a/packages/web/src/features/flow-runs/utils/flow-run-utils.ts b/packages/web/src/features/flow-runs/utils/flow-run-utils.ts
index 2853b73169e..e09d52fd8c7 100644
--- a/packages/web/src/features/flow-runs/utils/flow-run-utils.ts
+++ b/packages/web/src/features/flow-runs/utils/flow-run-utils.ts
@@ -19,6 +19,7 @@ import {
Timer,
} from 'lucide-react';
+import { StatusVariant } from '@/components/custom/status-icon-with-text';
import { cn } from '@/lib/utils';
export const flowRunUtils = {
@@ -138,7 +139,7 @@ export const flowRunUtils = {
},
getStatusIconForStep(stepOutput: StepOutputStatus): {
- variant: 'default' | 'success' | 'error';
+ variant: StatusVariant;
Icon: LucideIcon;
text: string;
extraClassName?: string;
@@ -146,16 +147,17 @@ export const flowRunUtils = {
switch (stepOutput) {
case StepOutputStatus.RUNNING:
return {
- variant: 'default',
+ variant: 'primary',
Icon: Timer,
text: t('Running'),
- extraClassName: 'text-foreground',
+ extraClassName: 'text-accent-11 stroke-accent-11',
};
case StepOutputStatus.PAUSED:
return {
- variant: 'default',
+ variant: 'warning',
Icon: PauseIcon,
text: t('Paused'),
+ extraClassName: 'text-warning-11',
};
case StepOutputStatus.STOPPED:
case StepOutputStatus.SUCCEEDED:
@@ -163,48 +165,50 @@ export const flowRunUtils = {
variant: 'success',
Icon: CircleCheck,
text: t('Succeeded'),
- extraClassName: 'text-success-700 dark:text-success-200',
+ extraClassName: 'text-success-11',
};
case StepOutputStatus.FAILED:
return {
variant: 'error',
Icon: CircleAlert,
text: t('Failed'),
- extraClassName: 'text-destructive-700 dark:text-destructive-200',
+ extraClassName: 'text-danger-11',
};
}
},
- getStatusContainerClassName(
- variant: 'default' | 'success' | 'error' | 'warning',
+ getStatusContainerClassName({
+ variant,
withPaddingAndAnimation = false,
- ) {
+ }: {
+ variant: StatusVariant;
+ withPaddingAndAnimation?: boolean;
+ }) {
return cn('text-xs border rounded-md leading-tight', {
- 'text-success-800 bg-success-50 border-success-200 dark:text-success-200 dark:bg-success-900 dark:border-success-800':
- variant === 'success',
- 'text-destructive-700 bg-destructive-50 border-destructive-200 dark:text-destructive-200 dark:bg-destructive-900 dark:border-destructive-800':
- variant === 'error',
- 'text-amber-700 bg-amber-50 border-amber-200 dark:text-amber-600 dark:bg-amber-950 border-amber-500 dark:border-amber-900':
- variant === 'warning',
- 'bg-background border-border text-foreground': variant === 'default',
+ 'text-success-11 bg-success-3 border-success-7': variant === 'success',
+ 'text-danger-11 bg-danger-3 border-danger-7': variant === 'error',
+ 'text-warning-11 bg-warning-3 border-warning-7': variant === 'warning',
+ 'text-accent-11 bg-accent-3 border-accent-7': variant === 'primary',
+ 'text-gray-11 bg-gray-3 border-gray-7': variant === 'neutral',
+ 'bg-gray-1 border-gray-6 text-gray-12': variant === 'default',
'flex gap-1 animate-in fade-in slide-in-from-bottom-2 duration-500 items-center justify-center px-2 py-0.5':
withPaddingAndAnimation,
});
},
getStatusIcon(status: FlowRunStatus): {
- variant: 'default' | 'success' | 'error';
+ variant: StatusVariant;
Icon: LucideIcon;
} {
switch (status) {
case FlowRunStatus.QUEUED:
return {
- variant: 'default',
+ variant: 'neutral',
Icon: Timer,
};
case FlowRunStatus.RUNNING:
return {
- variant: 'default',
+ variant: 'primary',
Icon: Play,
};
case FlowRunStatus.FAILED:
@@ -214,12 +218,12 @@ export const flowRunUtils = {
};
case FlowRunStatus.PAUSED:
return {
- variant: 'default',
+ variant: 'warning',
Icon: PauseIcon,
};
case FlowRunStatus.CANCELED:
return {
- variant: 'default',
+ variant: 'neutral',
Icon: CircleX,
};
case FlowRunStatus.SUCCEEDED:
diff --git a/packages/web/src/features/flows/components/flow-created-by-badge.tsx b/packages/web/src/features/flows/components/flow-created-by-badge.tsx
index 90aa63494e6..d8113aeba37 100644
--- a/packages/web/src/features/flows/components/flow-created-by-badge.tsx
+++ b/packages/web/src/features/flows/components/flow-created-by-badge.tsx
@@ -27,7 +27,7 @@ export const FlowCreatedByBadge = ({
<TooltipTrigger asChild>
<span
className={cn(
- 'inline-flex h-5 items-center gap-1 rounded-md border border-border bg-muted px-[5px] text-xs font-bold leading-none text-muted-foreground',
+ 'inline-flex h-5 items-center gap-1 rounded-md border border-gray-6 bg-gray-3 px-[5px] text-xs font-bold leading-none text-gray-11',
className,
)}
>
diff --git a/packages/web/src/features/flows/components/flow-version-state-dot.tsx b/packages/web/src/features/flows/components/flow-version-state-dot.tsx
index 43099959382..2a12a0efc02 100644
--- a/packages/web/src/features/flows/components/flow-version-state-dot.tsx
+++ b/packages/web/src/features/flows/components/flow-version-state-dot.tsx
@@ -39,10 +39,10 @@ const FlowVersionStateDot = React.memo((state: FlowVersionStateProps) => {
<TooltipTrigger asChild>
<div className="size-8 flex justify-center items-center">
{stateName === 'Draft' && (
- <span className="bg-warning size-1.5 rounded-full"></span>
+ <span className="bg-warning-11 size-1.5 rounded-full"></span>
)}
{stateName === 'Published' && (
- <span className="bg-success size-1.5 rounded-full"></span>
+ <span className="bg-success-11 size-1.5 rounded-full"></span>
)}
</div>
</TooltipTrigger>
diff --git a/packages/web/src/features/flows/components/import-flow-dialog.tsx b/packages/web/src/features/flows/components/import-flow-dialog.tsx
index 96941e0b223..ac4d1e7d78a 100644
--- a/packages/web/src/features/flows/components/import-flow-dialog.tsx
+++ b/packages/web/src/features/flows/components/import-flow-dialog.tsx
@@ -251,7 +251,7 @@ const ImportFlowDialog = (
</Alert>
)}
<div className="w-full flex flex-col gap-2 justify-between items-start">
- <span className="w-16 text-sm font-medium text-gray-700">
+ <span className="w-16 text-sm font-medium text-gray-11">
{t('Flow')}
</span>
<Input
@@ -264,7 +264,7 @@ const ImportFlowDialog = (
</div>
{!props.insideBuilder && !embedState.hideFolders && (
<div className="w-full flex flex-col gap-2 justify-between items-start">
- <span className="w-16 text-sm font-medium text-gray-700">
+ <span className="w-16 text-sm font-medium text-gray-11">
{t('Folder')}
</span>
{isLoading ? (
diff --git a/packages/web/src/features/flows/hooks/flow-hooks.tsx b/packages/web/src/features/flows/hooks/flow-hooks.tsx
index 6614599eb6b..04fd72e32a4 100644
--- a/packages/web/src/features/flows/hooks/flow-hooks.tsx
+++ b/packages/web/src/features/flows/hooks/flow-hooks.tsx
@@ -150,11 +150,11 @@ export const flowHooks = {
)}
</p>
{reportedError && (
- <div className="flex flex-col gap-1 rounded-md bg-muted p-3">
- <span className="text-xs font-medium text-muted-foreground">
+ <div className="flex flex-col gap-1 rounded-md bg-gray-3 p-3">
+ <span className="text-xs font-medium text-gray-11">
{t('The connected app reported')}
</span>
- <span className="line-clamp-4 text-sm text-foreground">
+ <span className="line-clamp-4 text-sm text-gray-12">
{reportedError}
</span>
</div>
diff --git a/packages/web/src/features/flows/utils/flows-utils.tsx b/packages/web/src/features/flows/utils/flows-utils.tsx
index eb34e7a0ab7..5188ecaa103 100644
--- a/packages/web/src/features/flows/utils/flows-utils.tsx
+++ b/packages/web/src/features/flows/utils/flows-utils.tsx
@@ -69,9 +69,9 @@ export const flowsUtils = {
switch (trigger?.type) {
case FlowTriggerType.PIECE: {
if (flow.triggerSource?.schedule) {
- return <TimerReset className="h-4 w-4 text-foreground" />;
+ return <TimerReset className="h-4 w-4 text-gray-12" />;
} else {
- return <Zap className="h-4 w-4 text-foreground fill-foreground" />;
+ return <Zap className="h-4 w-4 text-gray-12 fill-gray-12" />;
}
}
case FlowTriggerType.EMPTY: {
@@ -80,7 +80,7 @@ export const flowsUtils = {
name: flow.version.displayName,
}),
);
- return <TriangleAlert className="h-4 w-4 text-destructive" />;
+ return <TriangleAlert className="h-4 w-4 text-danger-11" />;
}
}
},
diff --git a/packages/web/src/features/members/components/accept-invitation.tsx b/packages/web/src/features/members/components/accept-invitation.tsx
index 01a8ab6895f..b36ccccdd27 100644
--- a/packages/web/src/features/members/components/accept-invitation.tsx
+++ b/packages/web/src/features/members/components/accept-invitation.tsx
@@ -61,14 +61,14 @@ const AcceptInvitation = () => {
<p className="text-2xl font-bold text-center">
{t('Team Invitation Accepted')}
</p>
- <p className="mt-4 text-lg text-center text-gray-700">
+ <p className="mt-4 text-lg text-center text-gray-11">
{t(
'Thank you for accepting the invitation. We are redirecting you right now...',
)}
</p>
</>
) : (
- <p className="mt-4 text-lg text-center text-destructive">
+ <p className="mt-4 text-lg text-center text-danger-11">
{t('Invalid invitation token. Please try again.')}
</p>
)}
diff --git a/packages/web/src/features/members/components/invite-user/suggested-user-item.tsx b/packages/web/src/features/members/components/invite-user/suggested-user-item.tsx
index 3acba46a6ce..266157478d8 100644
--- a/packages/web/src/features/members/components/invite-user/suggested-user-item.tsx
+++ b/packages/web/src/features/members/components/invite-user/suggested-user-item.tsx
@@ -29,13 +29,13 @@ function PlatformUserItem({
if (user.memberStatus === 'has-access') {
return {
label: t('Has Access'),
- className: 'text-primary bg-primary/15',
+ className: 'text-success-11 bg-success-3',
};
}
if (user.memberStatus === 'already-invited') {
return {
label: t('Invited'),
- className: 'text-muted-foreground bg-muted-foreground/15',
+ className: 'text-gray-11 bg-gray-3',
};
}
return { label: formatUtils.convertEnumToHumanReadable(user.platformRole) };
@@ -63,9 +63,7 @@ function PlatformUserItem({
<span className="text-sm font-medium truncate">
{user.firstName} {user.lastName}
</span>
- <span className="text-xs text-muted-foreground truncate">
- {user.email}
- </span>
+ <span className="text-xs text-gray-11 truncate">{user.email}</span>
</div>
<Badge
variant="ghost"
@@ -92,26 +90,25 @@ function EmailStatusSuggestionItem({
case 'new-user':
return {
label: isPlatformInvite ? t('New User') : t('New Member'),
- className:
- 'text-blue-700 bg-blue-50 border-blue-200 dark:text-blue-400 dark:bg-blue-950 dark:border-blue-900',
+ className: 'text-accent-11 bg-accent-3 border-accent-7',
disabled: false,
};
case 'has-access':
return {
label: t('Has Access'),
- className: 'text-primary bg-primary/15',
+ className: 'text-success-11 bg-success-3',
disabled: true,
};
case 'in-project':
return {
label: t('Member'),
- className: 'text-warning bg-warning/15',
+ className: 'text-warning-11 bg-warning-3',
disabled: true,
};
case 'already-invited':
return {
label: t('Invited'),
- className: 'text-muted-foreground bg-muted-foreground/15',
+ className: 'text-gray-11 bg-gray-3',
disabled: false,
};
}
@@ -142,9 +139,7 @@ function EmailStatusSuggestionItem({
{user ? `${user.firstName} ${user.lastName}` : emailStatus.email}
</span>
{user && (
- <span className="text-xs text-muted-foreground truncate">
- {user.email}
- </span>
+ <span className="text-xs text-gray-11 truncate">{user.email}</span>
)}
</div>
<Badge
diff --git a/packages/web/src/features/members/components/invite-user/user-suggestions-popover.tsx b/packages/web/src/features/members/components/invite-user/user-suggestions-popover.tsx
index 12cd549f7af..c26a848cc61 100644
--- a/packages/web/src/features/members/components/invite-user/user-suggestions-popover.tsx
+++ b/packages/web/src/features/members/components/invite-user/user-suggestions-popover.tsx
@@ -45,15 +45,13 @@ function UserSuggestionsPopover({
}
if (platformUserEmails.has(trimmed.toLowerCase())) {
return {
- className:
- 'text-primary bg-primary/10 border-primary/20 dark:bg-primary/15',
+ className: 'text-accent-11 bg-accent-3 border-accent-7',
icon: <UserCheck className="size-3 shrink-0" />,
tooltip: t('Platform member'),
};
}
return {
- className:
- 'text-blue-700 bg-blue-50 border-blue-200 dark:text-blue-400 dark:bg-blue-950 dark:border-blue-900',
+ className: 'text-accent-11 bg-accent-3 border-accent-7',
icon: <Globe className="size-3 shrink-0" />,
tooltip: isPlatformInvite ? t('New User') : t('New Member'),
};
@@ -132,7 +130,7 @@ function UserSuggestionsPopover({
/>
{isOpen && (
<div
- className="absolute top-full left-0 w-full z-50 rounded-md border bg-popover text-popover-foreground shadow-md outline-hidden"
+ className="absolute top-full left-0 w-full z-50 rounded-md border bg-panel text-gray-12 shadow-md outline-hidden"
onMouseDown={(e) => e.preventDefault()}
>
<CommandList className="max-h-none overflow-y-hidden">
@@ -160,7 +158,7 @@ function UserSuggestionsPopover({
</div>
)}
</div>
- <p className="text-xs text-muted-foreground mt-2">
+ <p className="text-xs text-gray-11 mt-2">
{t('Separate email addresses with a space or comma.')}
</p>
</Command>
diff --git a/packages/web/src/features/members/components/role-selector.tsx b/packages/web/src/features/members/components/role-selector.tsx
index 37de5d5e7b9..b4e2e863552 100644
--- a/packages/web/src/features/members/components/role-selector.tsx
+++ b/packages/web/src/features/members/components/role-selector.tsx
@@ -72,7 +72,7 @@ export const RoleSelector = ({
>
<SelectTrigger className="w-full">
{showProjectSpinner ? (
- <span className="flex items-center gap-2 font-normal text-muted-foreground">
+ <span className="flex items-center gap-2 font-normal text-gray-11">
<Loader2 className="size-4 animate-spin" />
{projectRoleAssigning ? t('Saving...') : t('Loading...')}
</span>
@@ -93,7 +93,7 @@ export const RoleSelector = ({
>
<div className="flex flex-col gap-1">
<span className="font-medium">{t(option.label)}</span>
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{t(option.description)}
</span>
</div>
diff --git a/packages/web/src/features/pieces/components/piece-icon-list.tsx b/packages/web/src/features/pieces/components/piece-icon-list.tsx
index e648796cded..2268e6a65be 100644
--- a/packages/web/src/features/pieces/components/piece-icon-list.tsx
+++ b/packages/web/src/features/pieces/components/piece-icon-list.tsx
@@ -20,7 +20,7 @@ import { extractPieceNamesAndCoreMetadata } from '../utils/step-utils';
import { PieceIcon } from './piece-icon';
const extraIconVariants = cva(
- 'flex items-center justify-center rounded-md bg-background border border-solid text-xs select-none',
+ 'flex items-center justify-center rounded-md bg-gray-1 border border-solid text-xs select-none',
{
variants: {
size: {
@@ -40,14 +40,12 @@ export function PieceIconList({
trigger,
size,
className,
- background,
excludeCore = false,
}: {
trigger: FlowTrigger;
maxNumberOfIconsToShow: number;
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
className?: string;
- background?: string;
excludeCore?: boolean;
}) {
const steps = flowStructureUtil.getAllSteps(trigger);
@@ -102,7 +100,6 @@ export function PieceIconList({
border={true}
displayName={metadata.displayName}
key={metadata.displayName}
- background={background}
/>
))}
{extraPieces > 0 && (
diff --git a/packages/web/src/features/pieces/components/piece-icon.tsx b/packages/web/src/features/pieces/components/piece-icon.tsx
index 64d8af5a053..be90e968e04 100644
--- a/packages/web/src/features/pieces/components/piece-icon.tsx
+++ b/packages/web/src/features/pieces/components/piece-icon.tsx
@@ -1,101 +1,38 @@
-import { VariantProps, cva } from 'class-variance-authority';
import React from 'react';
-import { ImageWithColorBackground } from '@/components/custom/image-with-color-background';
-import { Skeleton } from '@/components/ui/skeleton';
+import { LogoPlate, LogoPlateProps } from '@/components/custom/logo-plate';
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from '@/components/ui/tooltip';
-import { cn } from '@/lib/utils';
-const pieceIconVariants = cva(
- 'flex rounded-md items-center justify-center bg-background ',
- {
- variants: {
- size: {
- xxl: 'size-[64px] min-w-[64px] min-h-[64px]',
- xl: 'size-[48px] min-w-[48px] min-h-[48px]',
- lg: 'size-[40px] min-w-[40px] min-h-[40px]',
- md: 'size-[36px] min-w-[36px] min-h-[36px]',
- sm: 'size-[30px] min-w-[30px] min-h-[30px]',
- xs: 'size-[25px] min-w-[25px] min-h-[25px]',
- xxs: 'size-[16px] min-w-[16px] min-h-[16px]',
- tile: 'size-[26px] min-w-[26px] min-h-[26px]',
- },
- border: {
- true: 'border border-solid',
- },
- },
- defaultVariants: {},
- },
+const PieceIcon = React.memo(
+ ({ displayName, logoUrl, border, size, showTooltip }: PieceIconProps) => (
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <div className="flex shrink-0">
+ <LogoPlate
+ src={logoUrl}
+ alt={displayName}
+ size={size}
+ border={border}
+ />
+ </div>
+ </TooltipTrigger>
+ {showTooltip ? (
+ <TooltipContent side="bottom">{displayName}</TooltipContent>
+ ) : null}
+ </Tooltip>
+ ),
);
-const pieceIconVariantsWithPadding = cva('', {
- variants: {
- size: {
- xxl: 'p-4',
- xl: 'p-3',
- lg: 'p-2',
- md: 'p-1.75',
- sm: 'p-1.25',
- xs: 'p-1.25',
- xxs: 'p-0.5',
- tile: 'p-1',
- },
- },
-});
+PieceIcon.displayName = 'PieceIcon';
-interface PieceIconProps extends VariantProps<typeof pieceIconVariants> {
+export { PieceIcon };
+
+export type PieceIconProps = Pick<LogoPlateProps, 'size' | 'border'> & {
displayName?: string;
logoUrl?: string;
showTooltip: boolean;
- background?: string;
-}
-
-const PieceIcon = React.memo(
- ({
- displayName,
- logoUrl,
- border,
- size,
- showTooltip,
- background,
- }: PieceIconProps) => {
- return (
- <Tooltip>
- <TooltipTrigger asChild>
- <div
- className={cn(
- pieceIconVariants({ border, size }),
- 'overflow-hidden',
- )}
- style={background ? { backgroundColor: background } : undefined}
- >
- {logoUrl ? (
- <ImageWithColorBackground
- src={logoUrl}
- alt={displayName}
- className={cn(
- pieceIconVariantsWithPadding({ size }),
- 'object-contain w-full h-full',
- )}
- key={logoUrl}
- fallback={<Skeleton className="rounded-md w-full h-full" />}
- />
- ) : (
- <Skeleton className="rounded-md w-full h-full" />
- )}
- </div>
- </TooltipTrigger>
- {showTooltip ? (
- <TooltipContent side="bottom">{displayName}</TooltipContent>
- ) : null}
- </Tooltip>
- );
- },
-);
-
-PieceIcon.displayName = 'PieceIcon';
-export { PieceIcon };
+};
diff --git a/packages/web/src/features/pieces/components/piece-selector-tabs.tsx b/packages/web/src/features/pieces/components/piece-selector-tabs.tsx
index a47b2b22469..03a17548eeb 100644
--- a/packages/web/src/features/pieces/components/piece-selector-tabs.tsx
+++ b/packages/web/src/features/pieces/components/piece-selector-tabs.tsx
@@ -29,17 +29,17 @@ export const PieceSelectorTabs = ({
className="w-full min-w-0"
>
<TabsList
- className={`h-full w-full flex gap-3 px-2 justify-start rounded-none bg-background overflow-x-auto [&::-webkit-scrollbar]:hidden [scrollbar-width:none]`}
+ className={`h-full w-full flex gap-3 px-2 justify-start rounded-none bg-gray-1 overflow-x-auto [&::-webkit-scrollbar]:hidden [scrollbar-width:none]`}
>
{tabs.map((tab) => (
<TabsTrigger
key={tab.key}
value={tab.key}
className={`flex flex-col h-full rounded-md w-[85px] max-w-[85px] shrink-0
- hover:bg-gray-300/30 dark:hover:bg-gray-300/10
- data-[state=active]:text-primary data-[state=active]:shadow-none
- border-transparent data-[state=active]:border-primary data-[state=active]:active data-[state=active]:bg-transparent
- text-accent-foreground [&>svg]:size-5 [&>svg]:shrink-0`}
+ hover:bg-gray-4
+ data-[state=active]:text-accent-11 data-[state=active]:shadow-none
+ border-transparent data-[state=active]:border-accent-9 data-[state=active]:bg-transparent
+ text-gray-12 [&>svg]:size-5 [&>svg]:shrink-0`}
>
{tab.icon}
<span className="mt-1.5 text-sm truncate w-full text-center">
diff --git a/packages/web/src/features/platform-admin/components/new-signing-key-dialog.tsx b/packages/web/src/features/platform-admin/components/new-signing-key-dialog.tsx
index 9e8d226135a..ae471f95513 100644
--- a/packages/web/src/features/platform-admin/components/new-signing-key-dialog.tsx
+++ b/packages/web/src/features/platform-admin/components/new-signing-key-dialog.tsx
@@ -66,7 +66,7 @@ export const NewSigningKeyDialog = ({
{signingKey && (
<div className="p-4">
<div className="flex flex-col items-start gap-2">
- <span className="text-md">
+ <span>
{t(
'Please save this secret key somewhere safe and accessible. For security reasons,',
)}{' '}
diff --git a/packages/web/src/features/project-releases/components/push-to-git-dialog.tsx b/packages/web/src/features/project-releases/components/push-to-git-dialog.tsx
index 79c0ef3b93c..37fa93a612b 100644
--- a/packages/web/src/features/project-releases/components/push-to-git-dialog.tsx
+++ b/packages/web/src/features/project-releases/components/push-to-git-dialog.tsx
@@ -131,7 +131,7 @@ const PushToGitDialog = (props: PushToGitDialogProps) => {
</FormItem>
)}
/>
- <div className="text-sm text-gray-500 mt-2">
+ <div className="text-sm text-gray-11 mt-2">
{t(
'Enter a commit message to describe the changes you want to push.',
)}
diff --git a/packages/web/src/features/projects/components/ap-project-display.tsx b/packages/web/src/features/projects/components/ap-project-display.tsx
index 9f6f6873a80..0c1b22d9270 100644
--- a/packages/web/src/features/projects/components/ap-project-display.tsx
+++ b/packages/web/src/features/projects/components/ap-project-display.tsx
@@ -63,7 +63,7 @@ export const ApProjectDisplay = ({
) : framePersonalIcon ? (
<span
className={cn(
- 'flex size-6 shrink-0 items-center justify-center rounded-sm border border-border bg-muted text-muted-foreground',
+ 'flex size-6 shrink-0 items-center justify-center rounded-sm border border-gray-6 bg-gray-3 text-gray-11',
iconClassName,
)}
>
diff --git a/packages/web/src/features/projects/components/create-project-button.tsx b/packages/web/src/features/projects/components/create-project-button.tsx
index 41bbae7dc9c..5369da15ad4 100644
--- a/packages/web/src/features/projects/components/create-project-button.tsx
+++ b/packages/web/src/features/projects/components/create-project-button.tsx
@@ -57,9 +57,9 @@ function triggerFor({ variant, className, crown, locked }: TriggerForParams) {
<Button
variant="ghost"
size="icon"
- className={cn('h-6 w-6 hover:bg-accent', className)}
+ className={cn('h-6 w-6 hover:bg-gray-4', className)}
>
- {locked ? <Crown className="text-primary" /> : <Plus />}
+ {locked ? <Crown className="text-accent-11" /> : <Plus />}
</Button>
);
case 'full':
@@ -80,11 +80,9 @@ function triggerFor({ variant, className, crown, locked }: TriggerForParams) {
);
case 'sidebar-menu':
return (
- <SidebarMenuButton
- className={cn('text-muted-foreground gap-2', className)}
- >
+ <SidebarMenuButton className={cn('text-gray-11 gap-2', className)}>
{locked ? (
- <Crown className="size-4 text-primary" />
+ <Crown className="size-4 text-accent-11" />
) : (
<Plus className="size-4" />
)}
diff --git a/packages/web/src/features/projects/components/new-project-dialog.tsx b/packages/web/src/features/projects/components/new-project-dialog.tsx
index 09286a20169..760faded854 100644
--- a/packages/web/src/features/projects/components/new-project-dialog.tsx
+++ b/packages/web/src/features/projects/components/new-project-dialog.tsx
@@ -221,7 +221,7 @@ const NewProjectForm = ({
className="rounded-sm"
value={field.value ?? ''}
/>
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-gray-11">
{t('Receives flow failure emails for this project.')}
</span>
<FormMessage />
diff --git a/packages/web/src/features/projects/components/platform-switcher.tsx b/packages/web/src/features/projects/components/platform-switcher.tsx
index 2b9a5a3ae92..e0ae4aed2bb 100644
--- a/packages/web/src/features/projects/components/platform-switcher.tsx
+++ b/packages/web/src/features/projects/components/platform-switcher.tsx
@@ -48,7 +48,7 @@ export function PlatformSwitcher({ children }: { children: React.ReactNode }) {
sideOffset={4}
>
<div className="px-2 py-1.5">
- <p className="text-xs text-muted-foreground">{t('Platforms')}</p>
+ <p className="text-xs text-gray-11">{t('Platforms')}</p>
</div>
<ScrollArea viewPortClassName="max-h-[400px]">
{platforms.map((platform) => (
diff --git a/packages/web/src/features/tables/components/ap-field-header.tsx b/packages/web/src/features/tables/components/ap-field-header.tsx
index 187d0df2453..78eab9ea34b 100644
--- a/packages/web/src/features/tables/components/ap-field-header.tsx
+++ b/packages/web/src/features/tables/components/ap-field-header.tsx
@@ -54,16 +54,16 @@ export function ApFieldHeader({ field }: ApFieldHeaderProps) {
<div
onClick={() => hasActions && setIsMenuOpen(true)}
className={cn(
- 'group relative h-full w-full flex items-center justify-between gap-2 py-2.5 px-3 bg-muted/50 font-normal',
- hasActions && 'hover:bg-muted cursor-pointer',
- isMenuOpen && 'bg-muted',
+ 'group relative h-full w-full flex items-center justify-between gap-2 py-2.5 px-3 bg-gray-3/50 font-normal',
+ hasActions && 'hover:bg-gray-3 cursor-pointer',
+ isMenuOpen && 'bg-gray-3',
)}
>
<div className="flex items-center gap-2">
{canEdit && (
<GripVertical
onClick={(e) => e.stopPropagation()}
- className="h-4 w-4 shrink-0 text-muted-foreground/60 opacity-0 cursor-grab active:cursor-grabbing transition-opacity group-hover:opacity-100"
+ className="h-4 w-4 shrink-0 text-gray-11 opacity-0 cursor-grab active:cursor-grabbing transition-opacity group-hover:opacity-100"
/>
)}
{tablesUtils.getColumnIcon(field.type)}
diff --git a/packages/web/src/features/tables/components/ap-table-actions-menu.tsx b/packages/web/src/features/tables/components/ap-table-actions-menu.tsx
index ebdc8c993bb..fd0d614f282 100644
--- a/packages/web/src/features/tables/components/ap-table-actions-menu.tsx
+++ b/packages/web/src/features/tables/components/ap-table-actions-menu.tsx
@@ -164,7 +164,7 @@ const ApTableActionsMenu = ({
refetch?.();
}}
>
- <div className="flex items-center gap-2 text-destructive">
+ <div className="flex items-center gap-2 text-danger-11">
<TrashIcon className="h-4 w-4" />
{t('Delete')}
</div>
diff --git a/packages/web/src/features/tables/components/ap-table-footer.tsx b/packages/web/src/features/tables/components/ap-table-footer.tsx
index 5c6e85e53b1..1f8e45a2a12 100644
--- a/packages/web/src/features/tables/components/ap-table-footer.tsx
+++ b/packages/web/src/features/tables/components/ap-table-footer.tsx
@@ -25,9 +25,9 @@ const ApTableFooter = ({
const areAllRecordsSelected =
selectedRecords.size === recordsCount && recordsCount > 0;
return (
- <div className="flex items-center justify-between bg-muted/30 px-2 h-[40px]">
+ <div className="flex items-center justify-between bg-gray-3/30 px-2 h-[40px]">
<div className="flex items-center gap-2">
- <div className="text-sm font-sm mt-1">
+ <div className="text-sm mt-1">
{!areAllRecordsSelected && (
<>
{!hasSelectedRows &&
@@ -43,7 +43,7 @@ const ApTableFooter = ({
{areAllRecordsSelected && t('All records selected')}
</div>
|
- <div className="text-sm font-sm mt-1">
+ <div className="text-sm mt-1">
{t('fieldsCount', { fieldsCount })} ({fieldsPercentage.toFixed(2)}%)
</div>
</div>
diff --git a/packages/web/src/features/tables/components/ap-table-header.tsx b/packages/web/src/features/tables/components/ap-table-header.tsx
index b8d90bc6853..72dbef729d6 100644
--- a/packages/web/src/features/tables/components/ap-table-header.tsx
+++ b/packages/web/src/features/tables/components/ap-table-header.tsx
@@ -138,7 +138,7 @@ export function ApTableHeader({
variant="ghost"
className="size-6 flex items-center justify-center"
>
- <ChevronDown className="h-4 w-4 text-muted-foreground" />
+ <ChevronDown className="h-4 w-4 text-gray-11" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="start" className="w-48">
@@ -205,7 +205,7 @@ export function ApTableHeader({
disabled={!canEdit}
onSelect={(e) => e.preventDefault()}
onClick={(e) => e.stopPropagation()}
- className="text-destructive focus:text-destructive"
+ className="text-danger-11 focus:text-danger-11"
>
<Trash2 className="mr-2 h-4 w-4" />
{t('Delete')}
@@ -224,18 +224,18 @@ export function ApTableHeader({
const rightContent = (
<div className="flex items-center gap-2">
{isSaving && (
- <div className="flex items-center gap-2 text-muted-foreground animate-in fade-in">
+ <div className="flex items-center gap-2 text-gray-11 animate-in fade-in">
<RefreshCw className="h-4 w-4 animate-spin" />
<span className="text-sm">{t('Saving...')}</span>
</div>
)}
{lockedBy && (
- <div className="flex items-center gap-1.5 border border-warning/50 rounded-md px-2.5 py-1 text-sm text-warning-700 dark:text-warning-300">
+ <div className="flex items-center gap-1.5 border border-warning-7 rounded-md px-2.5 py-1 text-sm text-warning-11">
<Lock className="size-3.5 shrink-0" />
<span>
{t('{name} is editing', { name: lockedBy.userDisplayName })}
</span>
- <span className="text-warning/40">|</span>
+ <span className="text-warning-11/40">|</span>
<button className="hover:underline font-medium" onClick={takeOver}>
{t('Take Over')}
</button>
diff --git a/packages/web/src/features/tables/components/ap-table-state-provider.tsx b/packages/web/src/features/tables/components/ap-table-state-provider.tsx
index 132c19c9aac..396b8c0f67e 100644
--- a/packages/web/src/features/tables/components/ap-table-state-provider.tsx
+++ b/packages/web/src/features/tables/components/ap-table-state-provider.tsx
@@ -136,13 +136,13 @@ export function ApTableStateProvider({
) {
return (
<div className="flex flex-col items-center justify-center h-full text-center space-y-4">
- <div className="rounded-full bg-muted p-4">
- <FileX className="h-10 w-10 text-muted-foreground" />
+ <div className="rounded-full bg-gray-3 p-4">
+ <FileX className="h-10 w-10 text-gray-11" />
</div>
<div>
<h2 className="text-lg font-semibold">{t('Table not available')}</h2>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-11">
{t(
'We couldn’t load this table. It may have been removed or is unavailable.',
)}
diff --git a/packages/web/src/features/tables/components/cell-editor-trigger.tsx b/packages/web/src/features/tables/components/cell-editor-trigger.tsx
index ddf4d8b2179..275c507d261 100644
--- a/packages/web/src/features/tables/components/cell-editor-trigger.tsx
+++ b/packages/web/src/features/tables/components/cell-editor-trigger.tsx
@@ -13,10 +13,10 @@ export function CellEditorTrigger({
<button
className={cn(
'w-full h-full flex items-center justify-between gap-2',
- 'bg-background text-sm px-2',
+ 'bg-gray-1 text-sm px-2',
'focus:outline-hidden',
{
- 'border-2 border-primary': isEditing,
+ 'border-2 border-accent-9': isEditing,
'border-transparent bg-transparent!': !isEditing,
},
)}
diff --git a/packages/web/src/features/tables/components/date-editor.tsx b/packages/web/src/features/tables/components/date-editor.tsx
index 243753e1f1e..06fd08fbecc 100644
--- a/packages/web/src/features/tables/components/date-editor.tsx
+++ b/packages/web/src/features/tables/components/date-editor.tsx
@@ -93,7 +93,7 @@ function DateEditor() {
'flex-1 h-full min-w-0',
'border-none text-sm px-2',
'focus:outline-hidden',
- 'placeholder:text-muted-foreground',
+ 'placeholder:text-gray-11',
{
'border-transparent bg-transparent!': !isEditing,
},
diff --git a/packages/web/src/features/tables/components/datetime-editor.tsx b/packages/web/src/features/tables/components/datetime-editor.tsx
index 1f8f4acd723..205ea636b77 100644
--- a/packages/web/src/features/tables/components/datetime-editor.tsx
+++ b/packages/web/src/features/tables/components/datetime-editor.tsx
@@ -71,7 +71,7 @@ function DatetimeEditor() {
defaultMonth={date}
onSelect={handleDaySelect}
/>
- <div className="flex items-center justify-between gap-2 border-t border-border p-3">
+ <div className="flex items-center justify-between gap-2 border-t border-gray-6 p-3">
<TimePicker date={date} setDate={setPendingDate} />
<Button
variant="ghost"
diff --git a/packages/web/src/features/tables/components/dropdown-editor.tsx b/packages/web/src/features/tables/components/dropdown-editor.tsx
index b7786eaf81f..ce1fffb76fd 100644
--- a/packages/web/src/features/tables/components/dropdown-editor.tsx
+++ b/packages/web/src/features/tables/components/dropdown-editor.tsx
@@ -29,7 +29,7 @@ const DropdownEditor = () => {
return (
<div
className={cn('h-full w-full', {
- 'border-primary border-2': isEditing,
+ 'border-accent-9 border-2': isEditing,
})}
ref={containerRef}
>
diff --git a/packages/web/src/features/tables/components/editable-cell.tsx b/packages/web/src/features/tables/components/editable-cell.tsx
index 356082ceeda..7606fa4baf0 100644
--- a/packages/web/src/features/tables/components/editable-cell.tsx
+++ b/packages/web/src/features/tables/components/editable-cell.tsx
@@ -128,7 +128,7 @@ export function EditableCell({
: cn(
'h-full flex items-center justify-between gap-2 focus:outline-hidden ',
'group cursor-pointer border',
- isSelected && !locked ? 'border-primary' : 'border-transparent',
+ isSelected && !locked ? 'border-accent-9' : 'border-transparent',
locked && 'locked-row',
!isDropdown && 'pl-2 py-2',
)
diff --git a/packages/web/src/features/tables/components/field-action-menu-item-renderer.tsx b/packages/web/src/features/tables/components/field-action-menu-item-renderer.tsx
index 6c0c94a48dd..d50582369b7 100644
--- a/packages/web/src/features/tables/components/field-action-menu-item-renderer.tsx
+++ b/packages/web/src/features/tables/components/field-action-menu-item-renderer.tsx
@@ -49,10 +49,10 @@ const ApFieldActionMenuItemRenderer = ({
setPopoverContent(null);
setIsPopoverOpen(false);
}}
- className="flex items-center gap-2 text-destructive cursor-pointer"
+ className="flex items-center gap-2 text-danger-11 cursor-pointer"
>
- <Trash className="h-4 w-4 text-destructive" />
- <span className="text-destructive">{t('Delete')}</span>
+ <Trash className="h-4 w-4 text-danger-11" />
+ <span className="text-danger-11">{t('Delete')}</span>
</DropdownMenuItem>
</ConfirmationDeleteDialog>
);
diff --git a/packages/web/src/features/tables/components/import-table-dialog.tsx b/packages/web/src/features/tables/components/import-table-dialog.tsx
index 434abab0c76..35930f7a172 100644
--- a/packages/web/src/features/tables/components/import-table-dialog.tsx
+++ b/packages/web/src/features/tables/components/import-table-dialog.tsx
@@ -436,7 +436,7 @@ const ImportTableDialog = ({
{serverError && (
<div className=" flex items-center justify-between">
- <div className="text-destructive">
+ <div className="text-danger-11">
{t(
'An unexpected error occurred while importing the file, please hit the copy error and send it to support',
)}
diff --git a/packages/web/src/features/tables/components/new-field-popup.tsx b/packages/web/src/features/tables/components/new-field-popup.tsx
index e373ee7e364..af858a1c1b4 100644
--- a/packages/web/src/features/tables/components/new-field-popup.tsx
+++ b/packages/web/src/features/tables/components/new-field-popup.tsx
@@ -181,8 +181,9 @@ export function NewFieldPopup({ children }: NewFieldDialogProps) {
htmlFor={type}
className={cn(
'flex items-center gap-2 w-full px-3 py-2 rounded-sm',
- 'text-left text-accent-foreground cursor-pointer hover:bg-muted',
- field.value === type && 'bg-muted text-primary',
+ 'text-left text-gray-12 cursor-pointer hover:bg-gray-3',
+ field.value === type &&
+ 'bg-gray-3 text-accent-11',
)}
>
{tablesUtils.getColumnIcon(type)}
diff --git a/packages/web/src/features/tables/components/number-editor.tsx b/packages/web/src/features/tables/components/number-editor.tsx
index 11e7e63ce37..0497497f7ff 100644
--- a/packages/web/src/features/tables/components/number-editor.tsx
+++ b/packages/web/src/features/tables/components/number-editor.tsx
@@ -25,7 +25,7 @@ const NumberEditor = () => {
<div className="h-full relative w-full">
<div
className={cn('h-full flex items-center gap-2', {
- 'border-2 border-primary': isEditing,
+ 'border-2 border-accent-9': isEditing,
'border-transparent': !isEditing,
})}
>
@@ -53,7 +53,7 @@ const NumberEditor = () => {
'flex-1 h-full min-w-0',
'border-none text-sm px-2',
'focus:outline-hidden',
- 'placeholder:text-muted-foreground',
+ 'placeholder:text-gray-11',
)}
autoComplete="off"
/>
diff --git a/packages/web/src/features/tables/components/select-column.tsx b/packages/web/src/features/tables/components/select-column.tsx
index b9145db479d..a3618030179 100644
--- a/packages/web/src/features/tables/components/select-column.tsx
+++ b/packages/web/src/features/tables/components/select-column.tsx
@@ -12,8 +12,8 @@ export function SelectHeaderCell() {
<div
className={cn(
'flex items-center justify-start h-full pl-4',
- 'bg-muted/50 hover:bg-muted',
- 'data-[state=open]:bg-muted',
+ 'bg-gray-3/50 hover:bg-gray-3',
+ 'data-[state=open]:bg-gray-3',
)}
>
<Checkbox
diff --git a/packages/web/src/features/tables/components/table-columns.tsx b/packages/web/src/features/tables/components/table-columns.tsx
index 8f17da451cd..3747733b847 100644
--- a/packages/web/src/features/tables/components/table-columns.tsx
+++ b/packages/web/src/features/tables/components/table-columns.tsx
@@ -144,7 +144,7 @@ type AddRecordButtonProps = {
function AddRecordButton({ handleClick, icon }: AddRecordButtonProps) {
return (
<div
- className="w-full h-full border-t border-border flex items-center justify-start cursor-pointer pl-4"
+ className="w-full h-full border-t border-gray-6 flex items-center justify-start cursor-pointer pl-4"
onClick={handleClick}
>
{icon}
@@ -155,7 +155,7 @@ function AddRecordButton({ handleClick, icon }: AddRecordButtonProps) {
function AddFieldButton() {
return (
<NewFieldPopup>
- <div className="w-full h-full flex items-center justify-center cursor-pointer new-field">
+ <div className="w-full h-full flex items-center justify-center cursor-pointer">
<Plus className="h-4 w-4" />
</div>
</NewFieldPopup>
diff --git a/packages/web/src/features/tables/components/text-editor.tsx b/packages/web/src/features/tables/components/text-editor.tsx
index df58c8a55d2..097a8887085 100644
--- a/packages/web/src/features/tables/components/text-editor.tsx
+++ b/packages/web/src/features/tables/components/text-editor.tsx
@@ -21,7 +21,7 @@ const TextEditor = () => {
<div className="h-full relative w-full relative">
<div
className={cn({
- 'h-min-[300px] w-min-[calc(100%+50px)] w-full absolute top-0 z-50 border-2 border-primary drop-shadow-md':
+ 'w-full absolute top-0 z-50 border-2 border-accent-9 drop-shadow-md':
isEditing,
})}
>
@@ -53,7 +53,7 @@ const TextEditor = () => {
'flex-1 h-full min-w-0 rounded-none',
'border-none text-sm px-2 resize-none ',
'focus:outline-hidden',
- 'placeholder:text-muted-foreground',
+ 'placeholder:text-gray-11',
)}
autoComplete="off"
/>
diff --git a/packages/web/src/features/templates/components/explore-template-card.tsx b/packages/web/src/features/templates/components/explore-template-card.tsx
index ff858ea11db..6d8ac666c9c 100644
--- a/packages/web/src/features/templates/components/explore-template-card.tsx
+++ b/packages/web/src/features/templates/components/explore-template-card.tsx
@@ -33,7 +33,7 @@ export const ExploreTemplateCard = React.memo(
</h3>
</div>
- <p className="text-muted-foreground text-sm line-clamp-3 mt-1 flex-shrink-0">
+ <p className="text-gray-11 text-sm line-clamp-3 mt-1 flex-shrink-0">
{template.summary ? (
template.summary
) : (
@@ -73,7 +73,6 @@ export const ExploreTemplateCard = React.memo(
maxNumberOfIconsToShow={4}
size="md"
className="flex gap-0.5"
- background="white"
excludeCore={true}
/>
)}
diff --git a/packages/web/src/features/templates/components/share-template.tsx b/packages/web/src/features/templates/components/share-template.tsx
index c297265089a..f6806b0cf34 100644
--- a/packages/web/src/features/templates/components/share-template.tsx
+++ b/packages/web/src/features/templates/components/share-template.tsx
@@ -68,7 +68,7 @@ const TemplateViewer = ({ template }: { template: Template }) => {
<CardContent className="space-y-6">
<div className="space-y-4">
<div className="flex flex-row w-full justify-between items-center py-2">
- <span className="text-sm font-medium text-muted-foreground">
+ <span className="text-sm font-medium text-gray-11">
{t('Steps in this flow')}
</span>
{template.flows?.[0]?.trigger && (
@@ -83,7 +83,7 @@ const TemplateViewer = ({ template }: { template: Template }) => {
<Separator />
<div className="space-y-2 py-2">
<h3 className="text-sm font-semibold">{t('Description')}</h3>
- <p className="text-sm text-muted-foreground leading-relaxed">
+ <p className="text-sm text-gray-11 leading-relaxed">
{template.description}
</p>
</div>
@@ -103,7 +103,7 @@ const TemplateViewer = ({ template }: { template: Template }) => {
const ShareTemplate: React.FC<{ template: Template }> = ({ template }) => {
return (
- <div className="flex items-center justify-center min-h-screen w-full bg-gradient-to-br from-background to-muted/20 p-6">
+ <div className="flex items-center justify-center min-h-screen w-full bg-gradient-to-br from-gray-1 to-gray-3/20 p-6">
<div className="w-full max-w-2xl">
<TemplateViewer template={template} />
</div>
diff --git a/packages/web/src/features/templates/components/templates-browse-dialog.tsx b/packages/web/src/features/templates/components/templates-browse-dialog.tsx
index 36efb4675a5..0e6b9321bb4 100644
--- a/packages/web/src/features/templates/components/templates-browse-dialog.tsx
+++ b/packages/web/src/features/templates/components/templates-browse-dialog.tsx
@@ -42,14 +42,14 @@ type TemplatesBrowseDialogProps = {
};
const TemplateCardSkeleton = () => (
- <div className="h-[250px] rounded-lg border bg-card flex flex-col">
+ <div className="h-[250px] rounded-lg border bg-panel flex flex-col">
<div className="p-4 flex flex-col gap-2 flex-1">
<Skeleton className="h-5 w-3/4" />
<Skeleton className="h-4 w-full mt-1" />
<Skeleton className="h-4 w-2/3" />
<Skeleton className="h-5 w-20 mt-2" />
</div>
- <div className="h-16 bg-muted/30 rounded-b-lg" />
+ <div className="h-16 bg-gray-3/30 rounded-b-lg" />
</div>
);
@@ -131,7 +131,7 @@ export const TemplatesBrowseDialog = ({
<div className="px-6 pb-3 flex-shrink-0">
<div className="relative">
- <Search className="absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground" />
+ <Search className="absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-11" />
<Input
placeholder={t('Search templates by name or description')}
value={search}
@@ -159,8 +159,8 @@ export const TemplatesBrowseDialog = ({
className={cn(
'px-3 py-1 h-auto whitespace-nowrap transition-colors border-none',
isSelected
- ? 'bg-black text-white hover:!bg-black hover:!text-white'
- : 'bg-transparent hover:!bg-sidebar-accent hover:!text-sidebar-accent-foreground',
+ ? 'bg-gray-12 text-gray-1 hover:!bg-gray-12 hover:!text-gray-1'
+ : 'bg-transparent hover:!bg-gray-4 hover:!text-gray-12',
)}
>
{category}
diff --git a/packages/web/src/features/templates/hooks/use-gradient-from-pieces.ts b/packages/web/src/features/templates/hooks/use-gradient-from-pieces.ts
index 44301a4531a..6bb0b428a47 100644
--- a/packages/web/src/features/templates/hooks/use-gradient-from-pieces.ts
+++ b/packages/web/src/features/templates/hooks/use-gradient-from-pieces.ts
@@ -3,137 +3,26 @@ import {
FlowActionType,
flowStructureUtil,
PieceCategory,
+ swatchUtils,
} from '@activepieces/shared';
-import { useQueries } from '@tanstack/react-query';
import { useMemo } from 'react';
import { piecesHooks } from '@/features/pieces/hooks/pieces-hooks';
import { StepMetadata } from '@/features/pieces/types';
import { extractPieceNamesAndCoreMetadata } from '@/features/pieces/utils/step-utils';
-import { colorsUtils } from '@/lib/color-utils';
-const rgbToHex = (r: number, g: number, b: number): string => {
- return '#' + [r, g, b].map((x) => x.toString(16).padStart(2, '0')).join('');
-};
-
-const colorDistance = (c1: number[], c2: number[]): number => {
- return Math.sqrt(
- (c1[0] - c2[0]) ** 2 + (c1[1] - c2[1]) ** 2 + (c1[2] - c2[2]) ** 2,
- );
-};
-
-const shouldSkipPixel = (
- r: number,
- g: number,
- b: number,
- a: number,
-): boolean => {
- if (a < 125) return true;
- if (r > 240 && g > 240 && b > 240) return true;
- if (r < 15 && g < 15 && b < 15) return true;
- return false;
-};
-
-const extractImagePixels = (img: HTMLImageElement) => {
- const canvas = document.createElement('canvas');
- const ctx = canvas.getContext('2d', { willReadFrequently: true });
- if (!ctx) return null;
-
- const maxPixels = 10000;
- const scale = Math.sqrt(maxPixels / (img.width * img.height));
- canvas.width = Math.floor(img.width * Math.min(scale, 1));
- canvas.height = Math.floor(img.height * Math.min(scale, 1));
-
- ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
- return ctx.getImageData(0, 0, canvas.width, canvas.height).data;
-};
-
-const buildColorMap = (pixels: Uint8ClampedArray) => {
- const colorMap = new Map<string, { rgb: number[]; count: number }>();
+const GRADIENT_HUE_GAP = 5;
- for (let i = 0; i < pixels.length; i += 4) {
- const [r, g, b, a] = [
- pixels[i],
- pixels[i + 1],
- pixels[i + 2],
- pixels[i + 3],
- ];
-
- if (shouldSkipPixel(r, g, b, a)) continue;
-
- const key = `${r},${g},${b}`;
- const existing = colorMap.get(key);
- if (existing) {
- existing.count++;
- } else {
- colorMap.set(key, { rgb: [r, g, b], count: 1 });
- }
+function buildGradientFromSeed(seed: string): string {
+ if (seed.length === 0) {
+ return '';
}
-
- return colorMap;
-};
-
-const clusterSimilarColors = (
- colorMap: Map<string, { rgb: number[]; count: number }>,
-) => {
- const sortedColors = Array.from(colorMap.entries()).sort(
- (a, b) => b[1].count - a[1].count,
- );
- const processed = new Set<string>();
- const clusters: Array<{ rgb: number[]; count: number }> = [];
-
- for (const [key, colorData] of sortedColors) {
- if (processed.has(key)) continue;
-
- const cluster = { rgb: colorData.rgb, count: colorData.count };
- processed.add(key);
-
- for (const [otherKey, otherData] of sortedColors) {
- if (processed.has(otherKey)) continue;
- if (colorDistance(colorData.rgb, otherData.rgb) < 51) {
- cluster.count += otherData.count;
- processed.add(otherKey);
- }
- }
-
- clusters.push(cluster);
- }
-
- return clusters;
-};
-
-const extractColorsFromImage = async (imageUrl: string): Promise<string[]> => {
- try {
- const img = await colorsUtils.loadImage(imageUrl);
- const pixels = extractImagePixels(img);
- if (!pixels) {
- return [];
- }
-
- const colorMap = buildColorMap(pixels);
- const clusters = clusterSimilarColors(colorMap);
-
- return clusters
- .sort((a, b) => b.count - a.count)
- .slice(0, 2)
- .map((cluster) => rgbToHex(...(cluster.rgb as [number, number, number])));
- } catch {
- return [];
- }
-};
-
-const buildGradientFromColors = (colors: string[]): string => {
- if (colors.length === 0) return '';
-
- const uniqueColors = Array.from(new Set(colors)).slice(0, 4);
-
- if (uniqueColors.length === 1) {
- return `linear-gradient(135deg, ${uniqueColors[0]}15, ${uniqueColors[0]}30)`;
- }
-
- const gradientColors = uniqueColors.map((color) => `${color}20`).join(', ');
- return `linear-gradient(135deg, ${gradientColors})`;
-};
+ const from = swatchUtils.varsForSeed({ seed });
+ const to = swatchUtils.varsFor({
+ index: swatchUtils.hashToIndex({ seed }) + GRADIENT_HUE_GAP,
+ });
+ return `linear-gradient(135deg, ${from.surface}, ${to.surface})`;
+}
export const useGradientFromPieces = (
trigger: FlowTrigger | undefined,
@@ -181,39 +70,10 @@ export const useGradientFromPieces = (
);
}, [summaries, coreMetadata, excludeCore]);
- const logosToProcess = useMemo(
- () =>
- uniqueMetadata
- .slice(0, 4)
- .filter((metadata) => metadata.logoUrl)
- .map((metadata) => metadata.logoUrl),
+ const gradient = useMemo(
+ () => buildGradientFromSeed(uniqueMetadata[0]?.displayName ?? ''),
[uniqueMetadata],
);
- const colorQueries = useQueries({
- queries: logosToProcess.map((logoUrl) => ({
- queryKey: ['logo-colors', logoUrl],
- queryFn: () => extractColorsFromImage(logoUrl),
- staleTime: Infinity,
- gcTime: 1000 * 60 * 60 * 24,
- retry: false,
- })),
- });
-
- const gradient = useMemo(() => {
- if (logosToProcess.length === 0) {
- return '';
- }
-
- const allLoaded = colorQueries.every((query) => query.isSuccess);
- if (!allLoaded) {
- return '';
- }
-
- const allColors = colorQueries.map((query) => query.data || []).flat();
-
- return buildGradientFromColors(allColors);
- }, [colorQueries, logosToProcess.length]);
-
return { gradient, piecesMetadata: uniqueMetadata };
};
diff --git a/packages/web/src/hooks/flags-hooks.ts b/packages/web/src/hooks/flags-hooks.ts
index f55607afa7c..96cf91fe299 100644
--- a/packages/web/src/hooks/flags-hooks.ts
+++ b/packages/web/src/hooks/flags-hooks.ts
@@ -1,4 +1,4 @@
-import { ApFlagId } from '@activepieces/shared';
+import { ApFlagId, StatusColors } from '@activepieces/shared';
import { useSuspenseQuery } from '@tanstack/react-query';
import { flagsApi, FlagsMap } from '../api/flags-api';
@@ -31,6 +31,7 @@ type WebsiteBrand = {
light: string;
};
};
+ statusColors?: StatusColors;
};
const queryKey = ['flags'];
export const flagsHooks = {
diff --git a/packages/web/src/lib/brand-seed.ts b/packages/web/src/lib/brand-seed.ts
new file mode 100644
index 00000000000..c75eb66ef5f
--- /dev/null
+++ b/packages/web/src/lib/brand-seed.ts
@@ -0,0 +1,37 @@
+import { brandColors, StatusColors } from '@activepieces/shared';
+
+let saved: BrandSeed = { primaryColor: brandColors.defaultPrimaryColor() };
+let preview: BrandSeed | null = null;
+
+function apply(seed: BrandSeed) {
+ saved = seed;
+ write(preview ?? saved);
+}
+
+function setPreview(seed: BrandSeed) {
+ preview = seed;
+ write(preview);
+}
+
+function clearPreview() {
+ preview = null;
+ write(saved);
+}
+
+function write({ primaryColor, statusColors = {} }: BrandSeed) {
+ const { style } = document.documentElement;
+ brandColors
+ .statusVariableNames()
+ .forEach((name) => style.removeProperty(name));
+ Object.entries({
+ ...brandColors.cssVariables({ primaryColor }),
+ ...brandColors.statusCssVariables({ statusColors }),
+ }).forEach(([name, value]) => style.setProperty(name, value));
+}
+
+export const brandSeed = { apply, setPreview, clearPreview };
+
+type BrandSeed = {
+ primaryColor: string;
+ statusColors?: StatusColors;
+};
diff --git a/packages/web/src/lib/color-utils.ts b/packages/web/src/lib/color-utils.ts
index 12bd7960332..576e681ac32 100644
--- a/packages/web/src/lib/color-utils.ts
+++ b/packages/web/src/lib/color-utils.ts
@@ -19,76 +19,30 @@ function loadImage(url: string): Promise<HTMLImageElement> {
return promise;
}
-function parseToHsl(hex: string) {
- // Remove the '#' character if it exists
- hex = hex.replace(/^#/, '');
-
- // Convert 3-digit hex to 6-digit hex
- if (hex.length === 3) {
- hex = hex
- .split('')
- .map((char) => char + char)
- .join('');
- }
-
- // Convert hex to RGB
- const r = parseInt(hex.substring(0, 2), 16) / 255;
- const g = parseInt(hex.substring(2, 4), 16) / 255;
- const b = parseInt(hex.substring(4, 6), 16) / 255;
-
- // Find the maximum and minimum values to get lightness
- const max = Math.max(r, g, b);
- const min = Math.min(r, g, b);
-
- // Calculate lightness
- const lightness = (max + min) / 2;
-
- let hue = 0;
- let saturation = 0;
-
- if (max !== min) {
- const delta = max - min;
-
- // Calculate saturation
- saturation =
- lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);
-
- // Calculate hue
- switch (max) {
- case r:
- hue = (g - b) / delta + (g < b ? 6 : 0);
- break;
- case g:
- hue = (b - r) / delta + 2;
- break;
- case b:
- hue = (r - g) / delta + 4;
- break;
- }
-
- hue /= 6;
+function resolveToken(token: string): string | null {
+ const probe = document.createElement('span');
+ probe.style.color = `var(${token})`;
+ probe.style.display = 'none';
+ document.body.appendChild(probe);
+ const computed = getComputedStyle(probe).color;
+ probe.remove();
+
+ const canvas = document.createElement('canvas');
+ canvas.width = 1;
+ canvas.height = 1;
+ const context = canvas.getContext('2d');
+ if (context === null) {
+ return null;
}
-
- // Convert hue to degrees
- hue = hue * 360;
-
- return {
- hue,
- saturation,
- lightness,
- };
-}
-
-function hexToHslString(hex: string) {
- const { hue, saturation, lightness } = parseToHsl(hex);
- return `${hue.toFixed(1)} ${(saturation * 100).toFixed(1)}% ${(
- lightness * 100
- ).toFixed(1)}%`;
+ context.fillStyle = computed;
+ context.fillRect(0, 0, 1, 1);
+ const [r, g, b] = context.getImageData(0, 0, 1, 1).data;
+ return `#${[r, g, b]
+ .map((channel) => channel.toString(16).padStart(2, '0'))
+ .join('')}`;
}
export const colorsUtils = {
- hexToHslString,
- parseToHsl,
isGrayColor: (r: number, g: number, b: number): boolean => {
const threshold = 15;
const darkThreshold = 150;
@@ -105,17 +59,18 @@ export const colorsUtils = {
diffRG <= threshold && diffRB <= threshold && diffGB <= threshold;
return isDark || isLight || isGray;
},
+ resolveToken,
fac: new FastAverageColor(),
loadImage,
useAverageColorInImage: ({
imgUrl,
- transparency,
+ strength,
}: {
imgUrl: string;
- transparency: number;
+ strength: number;
}) => {
const { data } = useQuery({
- queryKey: ['averageColorInImage', imgUrl, transparency],
+ queryKey: ['averageColorInImage', imgUrl, strength],
queryFn: async () => {
const img = await loadImage(imgUrl);
const color = await colorsUtils.fac.getColorAsync(img, {
@@ -125,7 +80,7 @@ export const colorsUtils = {
if (colorsUtils.isGrayColor(r, g, b)) {
return null;
}
- return `color-mix(in srgb, rgb(${r},${g},${b}) ${transparency}%, #fff 92%)`;
+ return `color-mix(in oklab, rgb(${r},${g},${b}) ${strength}%, var(--panel))`;
},
});
return data;
diff --git a/packages/web/src/lib/syntax-theme.ts b/packages/web/src/lib/syntax-theme.ts
new file mode 100644
index 00000000000..1acd5c32b9c
--- /dev/null
+++ b/packages/web/src/lib/syntax-theme.ts
@@ -0,0 +1,13 @@
+import { githubDark, githubLight } from '@uiw/codemirror-theme-github';
+
+const codeMirror = (resolvedTheme: string) =>
+ resolvedTheme === 'dark' ? githubDark : githubLight;
+
+const jsonView = (resolvedTheme: string) =>
+ resolvedTheme === 'dark' ? 'bright' : 'rjv-default';
+
+export const syntaxTheme = {
+ codeMirror,
+ jsonView,
+ shiki: { light: 'github-light', dark: 'github-dark' },
+};
diff --git a/packages/web/src/lib/test/color-utils.test.ts b/packages/web/src/lib/test/color-utils.test.ts
index d0964ab3061..9d2a7339769 100644
--- a/packages/web/src/lib/test/color-utils.test.ts
+++ b/packages/web/src/lib/test/color-utils.test.ts
@@ -2,55 +2,6 @@ import { describe, it, expect } from 'vitest';
import { colorsUtils } from '../color-utils';
-describe('colorsUtils.parseToHsl', () => {
- it('parses pure red', () => {
- const result = colorsUtils.parseToHsl('#FF0000');
- expect(result.hue).toBeCloseTo(0);
- expect(result.saturation).toBeCloseTo(1);
- expect(result.lightness).toBeCloseTo(0.5);
- });
-
- it('parses pure green', () => {
- const result = colorsUtils.parseToHsl('#00FF00');
- expect(result.hue).toBeCloseTo(120);
- expect(result.saturation).toBeCloseTo(1);
- expect(result.lightness).toBeCloseTo(0.5);
- });
-
- it('parses pure blue', () => {
- const result = colorsUtils.parseToHsl('#0000FF');
- expect(result.hue).toBeCloseTo(240);
- expect(result.saturation).toBeCloseTo(1);
- expect(result.lightness).toBeCloseTo(0.5);
- });
-
- it('parses white', () => {
- const result = colorsUtils.parseToHsl('#FFFFFF');
- expect(result.saturation).toBeCloseTo(0);
- expect(result.lightness).toBeCloseTo(1);
- });
-
- it('parses black', () => {
- const result = colorsUtils.parseToHsl('#000000');
- expect(result.saturation).toBeCloseTo(0);
- expect(result.lightness).toBeCloseTo(0);
- });
-
- it('parses 3-digit hex', () => {
- const result = colorsUtils.parseToHsl('#F00');
- expect(result.hue).toBeCloseTo(0);
- expect(result.saturation).toBeCloseTo(1);
- expect(result.lightness).toBeCloseTo(0.5);
- });
-});
-
-describe('colorsUtils.hexToHslString', () => {
- it('formats pure red correctly', () => {
- const result = colorsUtils.hexToHslString('#FF0000');
- expect(result).toBe('0.0 100.0% 50.0%');
- });
-});
-
describe('colorsUtils.isGrayColor', () => {
it('returns true for gray RGB values', () => {
expect(colorsUtils.isGrayColor(128, 128, 128)).toBe(true);
diff --git a/packages/web/src/styles.css b/packages/web/src/styles.css
index cc8e95ce469..43a5c2a295f 100644
--- a/packages/web/src/styles.css
+++ b/packages/web/src/styles.css
@@ -1,7 +1,7 @@
@import 'tailwindcss';
@import 'tw-animate-css';
@import './styles/globals.css';
-@custom-variant dark (&:is(.dark *));
+@custom-variant dark (&:where([data-theme='dark'], [data-theme='dark'] *):where(:not([data-theme='dark'] [data-theme='light'], [data-theme='dark'] [data-theme='light'] *)));
/* Paths are relative to this file, not /fonts/, so Vite fingerprints them. */
@font-face {
@@ -45,6 +45,148 @@
}
}
+@theme inline {
+ --color-gray-1: var(--gray-1);
+ --color-gray-2: var(--gray-2);
+ --color-gray-3: var(--gray-3);
+ --color-gray-4: var(--gray-4);
+ --color-gray-5: var(--gray-5);
+ --color-gray-6: var(--gray-6);
+ --color-gray-7: var(--gray-7);
+ --color-gray-8: var(--gray-8);
+ --color-gray-9: var(--gray-9);
+ --color-gray-10: var(--gray-10);
+ --color-gray-11: var(--gray-11);
+ --color-gray-12: var(--gray-12);
+
+ --color-accent-1: var(--accent-1);
+ --color-accent-2: var(--accent-2);
+ --color-accent-3: var(--accent-3);
+ --color-accent-4: var(--accent-4);
+ --color-accent-5: var(--accent-5);
+ --color-accent-6: var(--accent-6);
+ --color-accent-7: var(--accent-7);
+ --color-accent-8: var(--accent-8);
+ --color-accent-9: var(--accent-9);
+ --color-accent-10: var(--accent-10);
+ --color-accent-11: var(--accent-11);
+ --color-accent-12: var(--accent-12);
+
+ --color-success-1: var(--success-1);
+ --color-success-2: var(--success-2);
+ --color-success-3: var(--success-3);
+ --color-success-4: var(--success-4);
+ --color-success-5: var(--success-5);
+ --color-success-6: var(--success-6);
+ --color-success-7: var(--success-7);
+ --color-success-8: var(--success-8);
+ --color-success-9: var(--success-9);
+ --color-success-10: var(--success-10);
+ --color-success-11: var(--success-11);
+ --color-success-12: var(--success-12);
+
+ --color-warning-1: var(--warning-1);
+ --color-warning-2: var(--warning-2);
+ --color-warning-3: var(--warning-3);
+ --color-warning-4: var(--warning-4);
+ --color-warning-5: var(--warning-5);
+ --color-warning-6: var(--warning-6);
+ --color-warning-7: var(--warning-7);
+ --color-warning-8: var(--warning-8);
+ --color-warning-9: var(--warning-9);
+ --color-warning-10: var(--warning-10);
+ --color-warning-11: var(--warning-11);
+ --color-warning-12: var(--warning-12);
+
+ --color-danger-1: var(--danger-1);
+ --color-danger-2: var(--danger-2);
+ --color-danger-3: var(--danger-3);
+ --color-danger-4: var(--danger-4);
+ --color-danger-5: var(--danger-5);
+ --color-danger-6: var(--danger-6);
+ --color-danger-7: var(--danger-7);
+ --color-danger-8: var(--danger-8);
+ --color-danger-9: var(--danger-9);
+ --color-danger-10: var(--danger-10);
+ --color-danger-11: var(--danger-11);
+ --color-danger-12: var(--danger-12);
+
+ --color-panel: var(--panel);
+ --color-on-accent: var(--on-accent);
+ --color-on-success: var(--on-success);
+ --color-on-warning: var(--on-warning);
+ --color-on-danger: var(--on-danger);
+ --color-scrim: var(--scrim);
+
+ --color-swatch-1-mark: var(--swatch-1-mark);
+ --color-swatch-1-surface: var(--swatch-1-surface);
+ --color-swatch-1-ink: var(--swatch-1-ink);
+ --color-swatch-1-line: var(--swatch-1-line);
+ --color-swatch-1-on: var(--swatch-1-on);
+ --color-swatch-2-mark: var(--swatch-2-mark);
+ --color-swatch-2-surface: var(--swatch-2-surface);
+ --color-swatch-2-ink: var(--swatch-2-ink);
+ --color-swatch-2-line: var(--swatch-2-line);
+ --color-swatch-2-on: var(--swatch-2-on);
+ --color-swatch-3-mark: var(--swatch-3-mark);
+ --color-swatch-3-surface: var(--swatch-3-surface);
+ --color-swatch-3-ink: var(--swatch-3-ink);
+ --color-swatch-3-line: var(--swatch-3-line);
+ --color-swatch-3-on: var(--swatch-3-on);
+ --color-swatch-4-mark: var(--swatch-4-mark);
+ --color-swatch-4-surface: var(--swatch-4-surface);
+ --color-swatch-4-ink: var(--swatch-4-ink);
+ --color-swatch-4-line: var(--swatch-4-line);
+ --color-swatch-4-on: var(--swatch-4-on);
+ --color-swatch-5-mark: var(--swatch-5-mark);
+ --color-swatch-5-surface: var(--swatch-5-surface);
+ --color-swatch-5-ink: var(--swatch-5-ink);
+ --color-swatch-5-line: var(--swatch-5-line);
+ --color-swatch-5-on: var(--swatch-5-on);
+ --color-swatch-6-mark: var(--swatch-6-mark);
+ --color-swatch-6-surface: var(--swatch-6-surface);
+ --color-swatch-6-ink: var(--swatch-6-ink);
+ --color-swatch-6-line: var(--swatch-6-line);
+ --color-swatch-6-on: var(--swatch-6-on);
+ --color-swatch-7-mark: var(--swatch-7-mark);
+ --color-swatch-7-surface: var(--swatch-7-surface);
+ --color-swatch-7-ink: var(--swatch-7-ink);
+ --color-swatch-7-line: var(--swatch-7-line);
+ --color-swatch-7-on: var(--swatch-7-on);
+ --color-swatch-8-mark: var(--swatch-8-mark);
+ --color-swatch-8-surface: var(--swatch-8-surface);
+ --color-swatch-8-ink: var(--swatch-8-ink);
+ --color-swatch-8-line: var(--swatch-8-line);
+ --color-swatch-8-on: var(--swatch-8-on);
+ --color-swatch-9-mark: var(--swatch-9-mark);
+ --color-swatch-9-surface: var(--swatch-9-surface);
+ --color-swatch-9-ink: var(--swatch-9-ink);
+ --color-swatch-9-line: var(--swatch-9-line);
+ --color-swatch-9-on: var(--swatch-9-on);
+ --color-swatch-10-mark: var(--swatch-10-mark);
+ --color-swatch-10-surface: var(--swatch-10-surface);
+ --color-swatch-10-ink: var(--swatch-10-ink);
+ --color-swatch-10-line: var(--swatch-10-line);
+ --color-swatch-10-on: var(--swatch-10-on);
+ --color-swatch-11-mark: var(--swatch-11-mark);
+ --color-swatch-11-surface: var(--swatch-11-surface);
+ --color-swatch-11-ink: var(--swatch-11-ink);
+ --color-swatch-11-line: var(--swatch-11-line);
+ --color-swatch-11-on: var(--swatch-11-on);
+ --color-swatch-12-mark: var(--swatch-12-mark);
+ --color-swatch-12-surface: var(--swatch-12-surface);
+ --color-swatch-12-ink: var(--swatch-12-ink);
+ --color-swatch-12-line: var(--swatch-12-line);
+ --color-swatch-12-on: var(--swatch-12-on);
+
+ --color-chart-1: var(--chart-1);
+ --color-chart-2: var(--chart-2);
+ --color-chart-3: var(--chart-3);
+ --color-chart-4: var(--chart-4);
+ --color-chart-5: var(--chart-5);
+
+}
+
@theme {
--ease-*: initial;
--ease-expand-out: cubic-bezier(0.35, 0, 0.25, 1);
@@ -55,84 +197,6 @@
--transition-duration-1500: 1500ms;
- --color-light-blue: hsl(var(--light-blue));
-
- --color-warning-50: hsl(var(--warning-50));
- --color-warning-100: hsl(var(--warning-100));
- --color-warning-200: hsl(var(--warning-200));
- --color-warning-300: hsl(var(--warning-300));
- --color-warning-400: hsl(var(--warning-400));
- --color-warning-500: hsl(var(--warning-500));
- --color-warning-600: hsl(var(--warning-600));
- --color-warning-700: hsl(var(--warning-700));
- --color-warning-800: hsl(var(--warning-800));
- --color-warning-900: hsl(var(--warning-900));
- --color-warning-950: hsl(var(--warning-950));
- --color-warning: hsl(var(--warning));
-
- --color-border: var(--border);
-
- --color-sidebar: var(--sidebar-background);
- --color-sidebar-foreground: var(--sidebar-foreground);
- --color-sidebar-primary: hsl(var(--sidebar-primary));
- --color-sidebar-primary-foreground: hsl(var(--sidebar-primary-foreground));
- --color-sidebar-accent: var(--sidebar-accent);
- --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
- --color-sidebar-border: var(--sidebar-border);
- --color-sidebar-ring: var(--sidebar-ring);
- --color-sidebar-progress: var(--sidebar-progress);
-
- --color-input: var(--input);
- --color-ring: var(--ring);
- --color-background: var(--background);
- --color-foreground: var(--foreground);
-
- --color-primary-100: hsl(var(--primary-100));
- --color-primary-300: hsl(var(--primary-300));
- --color-primary: hsl(var(--primary));
- --color-primary-foreground: hsl(var(--primary-foreground));
-
- --color-success-50: hsl(var(--success-50));
- --color-success-100: hsl(var(--success-100));
- --color-success-200: hsl(var(--success-200));
- --color-success-300: hsl(var(--success-300));
- --color-success-400: hsl(var(--success-400));
- --color-success-500: hsl(var(--success-500));
- --color-success-600: hsl(var(--success-600));
- --color-success-700: hsl(var(--success-700));
- --color-success-800: hsl(var(--success-800));
- --color-success-900: hsl(var(--success-900));
- --color-success-950: hsl(var(--success-950));
- --color-success: hsl(var(--success));
-
- --color-secondary: var(--secondary);
- --color-secondary-foreground: var(--secondary-foreground);
-
- --color-destructive-50: hsl(var(--destructive-50));
- --color-destructive-100: hsl(var(--destructive-100));
- --color-destructive-200: hsl(var(--destructive-200));
- --color-destructive-300: hsl(var(--destructive-300));
- --color-destructive-400: hsl(var(--destructive-400));
- --color-destructive-500: hsl(var(--destructive-500));
- --color-destructive-600: hsl(var(--destructive-600));
- --color-destructive-700: hsl(var(--destructive-700));
- --color-destructive-800: hsl(var(--destructive-800));
- --color-destructive-900: hsl(var(--destructive-900));
- --color-destructive-950: hsl(var(--destructive-950));
- --color-destructive: hsl(var(--destructive));
-
- --color-muted: var(--muted);
- --color-muted-foreground: var(--muted-foreground);
-
- --color-accent: var(--accent);
- --color-accent-foreground: var(--accent-foreground);
-
- --color-popover: var(--popover);
- --color-popover-foreground: var(--foreground);
-
- --color-card: var(--background);
- --color-card-foreground: var(--foreground);
-
--radius-lg: 0.75rem;
--radius-md: calc(var(--radius) - 2px);
--radius-sm: calc(var(--radius) - 4px);
@@ -164,16 +228,22 @@
'Liberation Mono', monospace;
--font-mono--font-feature-settings: 'calt' 0;
--font-serif: 'Sentient', ui-serif, Georgia, serif;
- --shadow-step-container: 0px 0px 22px hsl(var(--border) / 0.3);
+ --shadow-step-container: 0px 0px 22px
+ color-mix(in oklab, var(--gray-6), transparent 70%);
--shadow-add-button: var(--add-button-shadow);
- --color-builder-background: var(--builder-background);
- --color-builder-background-pattern: var(--builder-background-pattern);
+
+ --shadow-edge: var(--edge);
+ --shadow-panel: var(--panel-shadow);
+ --shadow-rest: var(--rest);
+ --shadow-lift: var(--lift);
+ --shadow-over: var(--over);
+ --shadow-glow-primary: var(--glow-primary);
@keyframes primary-color-pulse {
from {
- color: hsl(var(--primary));
+ color: var(--accent-9);
}
to {
- color: hsl(var(--primary) / 0.7);
+ color: color-mix(in oklab, var(--accent-9), transparent 30%);
}
}
@keyframes accordion-down {
@@ -202,10 +272,10 @@
}
@keyframes highlight {
0% {
- background-color: hsl(var(--primary-100));
+ background-color: var(--accent-2);
}
100% {
- background-color: var(--color-secondary);
+ background-color: var(--gray-3);
}
}
@keyframes typing {
@@ -410,7 +480,7 @@
::before,
::backdrop,
::file-selector-button {
- border-color: var(--color-gray-200, currentcolor);
+ border-color: var(--color-gray-6, currentcolor);
}
}
@@ -439,152 +509,476 @@
}
:root {
- --background: theme('colors.white');
- --foreground: theme('colors.neutral.950');
- --popover: theme('colors.white');
-
- --secondary: theme('colors.black');
- --secondary-foreground: theme('colors.white');
-
- --muted: theme('colors.neutral.100');
- --muted-foreground: theme('colors.neutral.500');
-
- --accent: theme('colors.neutral.50');
- --accent-foreground: theme('colors.neutral.900');
+ --brand-h: 288.86;
+ --brand-c: 1;
+ --accent-9: #6e41e2;
+ --on-accent: oklch(98% 0.01 var(--brand-h));
+
+ --danger-h: 25;
+ --danger-c: 1;
+ --warning-h: 75;
+ --warning-c: 1;
+ --success-h: 150;
+ --success-c: 1;
+ }
+
+ :root,
+ [data-theme='light'] {
+ --brand-cs: clamp(0, var(--brand-c), 1);
+ --danger-cs: clamp(0, var(--danger-c), 1);
+ --warning-cs: clamp(0, var(--warning-c), 1);
+ --success-cs: clamp(0, var(--success-c), 1);
+
+ --gray-1: oklch(98.4% calc(0.009 * var(--brand-cs)) var(--brand-h));
+ --gray-2: oklch(96.6% calc(0.008 * var(--brand-cs)) var(--brand-h));
+ --gray-3: oklch(94.8% calc(0.008 * var(--brand-cs)) var(--brand-h));
+ --gray-4: oklch(92.8% calc(0.009 * var(--brand-cs)) var(--brand-h));
+ --gray-5: oklch(90.6% calc(0.01 * var(--brand-cs)) var(--brand-h));
+ --gray-6: oklch(87.5% calc(0.011 * var(--brand-cs)) var(--brand-h));
+ --gray-7: oklch(81% calc(0.013 * var(--brand-cs)) var(--brand-h));
+ --gray-8: oklch(62.5% calc(0.016 * var(--brand-cs)) var(--brand-h));
+ --gray-9: oklch(53% calc(0.018 * var(--brand-cs)) var(--brand-h));
+ --gray-10: oklch(48% calc(0.018 * var(--brand-cs)) var(--brand-h));
+ --gray-11: oklch(41% calc(0.016 * var(--brand-cs)) var(--brand-h));
+ --gray-12: oklch(20% calc(0.012 * var(--brand-cs)) var(--brand-h));
+
+ --accent-1: oklch(98.7% calc(0.0062 * var(--brand-cs)) var(--brand-h));
+ --accent-2: oklch(96.9% calc(0.0148 * var(--brand-cs)) var(--brand-h));
+ --accent-3: oklch(95.3% calc(0.0225 * var(--brand-cs)) var(--brand-h));
+ --accent-4: oklch(93% calc(0.0337 * var(--brand-cs)) var(--brand-h));
+ --accent-5: oklch(90.2% calc(0.0476 * var(--brand-cs)) var(--brand-h));
+ --accent-6: oklch(86.5% calc(0.0666 * var(--brand-cs)) var(--brand-h));
+ --accent-7: oklch(80% calc(0.092 * var(--brand-cs)) var(--brand-h));
+ --accent-8: oklch(60% calc(0.165 * var(--brand-cs)) var(--brand-h));
+ --accent-10: oklch(43% calc(0.215 * var(--brand-cs)) var(--brand-h));
+ --accent-11: oklch(39% calc(0.18 * var(--brand-cs)) var(--brand-h));
+ --accent-12: oklch(22% calc(0.085 * var(--brand-cs)) var(--brand-h));
+
+ --success-1: oklch(98.7% calc(0.01 * var(--success-cs)) var(--success-h));
+ --success-2: oklch(96.9% calc(0.02 * var(--success-cs)) var(--success-h));
+ --success-3: oklch(95.3% calc(0.034 * var(--success-cs)) var(--success-h));
+ --success-4: oklch(93% calc(0.046 * var(--success-cs)) var(--success-h));
+ --success-5: oklch(90.2% calc(0.058 * var(--success-cs)) var(--success-h));
+ --success-6: oklch(86.5% calc(0.072 * var(--success-cs)) var(--success-h));
+ --success-7: oklch(80% calc(0.092 * var(--success-cs)) var(--success-h));
+ --success-8: oklch(70% calc(0.105 * var(--success-cs)) var(--success-h));
+ --success-9: var(--success-seed, oklch(66% calc(0.16 * var(--success-cs)) var(--success-h)));
+ --success-10: oklch(45% calc(0.115 * var(--success-cs)) var(--success-h));
+ --success-11: oklch(42% calc(0.105 * var(--success-cs)) var(--success-h));
+ --success-12: oklch(22% calc(0.05 * var(--success-cs)) var(--success-h));
+
+ --warning-1: oklch(98.7% calc(0.0099 * var(--warning-cs)) var(--warning-h));
+ --warning-2: oklch(96.9% calc(0.02 * var(--warning-cs)) var(--warning-h));
+ --warning-3: oklch(95.3% calc(0.034 * var(--warning-cs)) var(--warning-h));
+ --warning-4: oklch(93% calc(0.046 * var(--warning-cs)) var(--warning-h));
+ --warning-5: oklch(90.2% calc(0.058 * var(--warning-cs)) var(--warning-h));
+ --warning-6: oklch(86.5% calc(0.072 * var(--warning-cs)) var(--warning-h));
+ --warning-7: oklch(80% calc(0.092 * var(--warning-cs)) var(--warning-h));
+ --warning-8: oklch(72% calc(0.13 * var(--warning-cs)) var(--warning-h));
+ --warning-9: var(--warning-seed, oklch(80% calc(0.1591 * var(--warning-cs)) var(--warning-h)));
+ --warning-10: oklch(50% calc(0.1003 * var(--warning-cs)) var(--warning-h));
+ --warning-11: oklch(44% calc(0.0887 * var(--warning-cs)) var(--warning-h));
+ --warning-12: oklch(24% calc(0.0527 * var(--warning-cs)) var(--warning-h));
+
+ --danger-1: oklch(98.7% calc(0.006 * var(--danger-cs)) var(--danger-h));
+ --danger-2: oklch(96.9% calc(0.0144 * var(--danger-cs)) var(--danger-h));
+ --danger-3: oklch(95.3% calc(0.0221 * var(--danger-cs)) var(--danger-h));
+ --danger-4: oklch(93% calc(0.0334 * var(--danger-cs)) var(--danger-h));
+ --danger-5: oklch(90.2% calc(0.0479 * var(--danger-cs)) var(--danger-h));
+ --danger-6: oklch(86.5% calc(0.0683 * var(--danger-cs)) var(--danger-h));
+ --danger-7: oklch(80% calc(0.092 * var(--danger-cs)) var(--danger-h));
+ --danger-8: oklch(68% calc(0.15 * var(--danger-cs)) var(--danger-h));
+ --danger-9: var(--danger-seed, oklch(52% calc(0.1994 * var(--danger-cs)) var(--danger-h)));
+ --danger-10: oklch(47% calc(0.1806 * var(--danger-cs)) var(--danger-h));
+ --danger-11: oklch(45% calc(0.17 * var(--danger-cs)) var(--danger-h));
+ --danger-12: oklch(24% calc(0.085 * var(--danger-cs)) var(--danger-h));
+
+ --panel: oklch(100% 0 0);
+ --on-success: var(--on-success-seed, oklch(18% 0.06 150));
+ --on-warning: var(--on-warning-seed, oklch(18% 0.06 75));
+ --on-danger: var(--on-danger-seed, oklch(98% 0.01 25));
+ --scrim: oklch(0% 0 0 / 70%);
+
+ color-scheme: light;
- --border: theme('colors.neutral.200');
- --input: theme('colors.neutral.200');
-
- --ring: theme('colors.neutral.400');
- --radius: 0.5rem;
-
- --primary-100: 257 75% 85%;
- --primary: 257 74% 57%;
- --primary-300: 257 74% 25%;
- --primary-foreground: 210 20% 98%;
-
- /* Success — Emerald */
- --success-50: 152 81% 96%;
- --success-100: 149 80% 90%;
- --success-200: 156 84% 80%;
- --success-300: 161 71% 67%;
- --success-400: 160 60% 52%;
- --success-500: 160 84% 39%;
- --success-600: 161 94% 30%;
- --success-700: 163 88% 24%;
- --success-800: 163 88% 20%;
- --success-900: 164 86% 17%;
- --success-950: 166 92% 10%;
- --success: var(--success-500);
-
- /* Destructive — Rose */
- --destructive-50: 356 100% 97%;
- --destructive-100: 356 100% 95%;
- --destructive-200: 353 98% 90%;
- --destructive-300: 353 96% 82%;
- --destructive-400: 351 95% 72%;
- --destructive-500: 350 89% 60%;
- --destructive-600: 347 77% 50%;
- --destructive-700: 345 83% 41%;
- --destructive-800: 343 80% 35%;
- --destructive-900: 342 75% 30%;
- --destructive-950: 341 84% 17%;
- --destructive: var(--destructive-500);
-
- /* Warning — Amber */
- --warning-50: 48 100% 96%;
- --warning-100: 48 96% 89%;
- --warning-200: 48 97% 77%;
- --warning-300: 46 97% 65%;
- --warning-400: 43 97% 56%;
- --warning-500: 38 92% 50%;
- --warning-600: 32 95% 44%;
- --warning-700: 26 90% 37%;
- --warning-800: 23 83% 31%;
- --warning-900: 22 78% 26%;
- --warning-950: 21 77% 15%;
- --warning: var(--warning-500);
-
- --add-button-shadow: 0px 0px 0px 6px hsl(var(--primary-100));
-
- --light-blue: 214 16% 70%;
- --chart-1: 12 76% 61%;
- --chart-2: 173 58% 39%;
- --chart-3: 197 37% 24%;
- --chart-4: 43 74% 66%;
- --chart-5: 27 87% 67%;
-
- --sidebar-background: theme('colors.neutral.50');
- --sidebar-foreground: theme('colors.neutral.950');
- --sidebar-primary: 257 74% 57%;
- --sidebar-primary-foreground: theme('colors.neutral.50');
- --sidebar-accent: color-mix(
- in srgb,
- theme('colors.neutral.200') 60%,
- transparent
- );
- --sidebar-accent-foreground: theme('colors.neutral.900');
- --sidebar-border: theme('colors.neutral.200');
- --sidebar-ring: theme('colors.neutral.400');
- --sidebar-progress: 0 0% 50%;
- --builder-background: #fbfbfb;
- --builder-background-pattern: #b2b2b2;
- }
-
- .dark {
- --background: theme('colors.neutral.950');
- --foreground: theme('colors.neutral.50');
- --popover: theme('colors.neutral.800');
- --muted: theme('colors.neutral.800');
- --muted-foreground: theme('colors.neutral.400');
-
- --secondary: theme('colors.neutral.800');
- --secondary-foreground: theme('colors.neutral.50');
-
- --accent: theme('colors.neutral.700');
- --accent-foreground: theme('colors.neutral.50');
-
- --primary-100: 210 80% 40%;
- --primary: 210 90% 50%;
- --primary-300: 210 100% 85%;
- --primary-foreground: 210 90% 98%;
-
- --success: var(--success-400);
- --destructive: var(--destructive-400);
-
- --warning: var(--warning-400);
-
- --border: hsla(0, 0%, 100%, 0.08);
- --input: hsla(0, 0%, 100%, 0.08);
-
- --ring: theme('colors.neutral.500');
--radius: 0.5rem;
+ --swatch-1-mark: oklch(66.81% 0.17 293.01);
+ --swatch-1-surface: oklch(96.2% 0.0109 293.01);
+ --swatch-1-ink: oklch(55.5% 0.17 293.01);
+ --swatch-1-line: oklch(88.5% 0.0371 293.01);
+ --swatch-2-mark: oklch(67.35% 0.17 323.01);
+ --swatch-2-surface: oklch(96.2% 0.0173 323.01);
+ --swatch-2-ink: oklch(55.9% 0.17 323.01);
+ --swatch-2-line: oklch(88.5% 0.059 323.01);
+ --swatch-3-mark: oklch(67.5% 0.17 353.01);
+ --swatch-3-surface: oklch(96.2% 0.0119 353.01);
+ --swatch-3-ink: oklch(56.02% 0.17 353.01);
+ --swatch-3-line: oklch(88.5% 0.0419 353.01);
+ --swatch-4-mark: oklch(67.31% 0.17 23.01);
+ --swatch-4-surface: oklch(96.2% 0.0104 23.01);
+ --swatch-4-ink: oklch(55.83% 0.17 23.01);
+ --swatch-4-line: oklch(88.5% 0.0364 23.01);
+ --swatch-5-mark: oklch(66.63% 0.1597 53.01);
+ --swatch-5-surface: oklch(96.2% 0.012 53.01);
+ --swatch-5-ink: oklch(54.95% 0.1381 53.01);
+ --swatch-5-line: oklch(88.5% 0.0419 53.01);
+ --swatch-6-mark: oklch(65.57% 0.1274 83.01);
+ --swatch-6-surface: oklch(96.2% 0.0209 83.01);
+ --swatch-6-ink: oklch(54.14% 0.1101 83.01);
+ --swatch-6-line: oklch(88.5% 0.071 83.01);
+ --swatch-7-mark: oklch(64.69% 0.1363 113.01);
+ --swatch-7-surface: oklch(96.2% 0.05 113.01);
+ --swatch-7-ink: oklch(53.58% 0.1179 113.01);
+ --swatch-7-line: oklch(88.5% 0.08 113.01);
+ --swatch-8-mark: oklch(63.61% 0.17 143.01);
+ --swatch-8-surface: oklch(96.2% 0.0376 143.01);
+ --swatch-8-ink: oklch(52.54% 0.17 143.01);
+ --swatch-8-line: oklch(88.5% 0.08 143.01);
+ --swatch-9-mark: oklch(63.82% 0.1157 173.01);
+ --swatch-9-surface: oklch(96.2% 0.0299 173.01);
+ --swatch-9-ink: oklch(52.82% 0.0999 173.01);
+ --swatch-9-line: oklch(88.5% 0.08 173.01);
+ --swatch-10-mark: oklch(64.17% 0.1031 203.01);
+ --swatch-10-surface: oklch(96.2% 0.0232 203.01);
+ --swatch-10-ink: oklch(53.12% 0.0891 203.01);
+ --swatch-10-line: oklch(88.5% 0.0781 203.01);
+ --swatch-11-mark: oklch(64.65% 0.1261 233.01);
+ --swatch-11-surface: oklch(96.2% 0.012 233.01);
+ --swatch-11-ink: oklch(53.34% 0.109 233.01);
+ --swatch-11-line: oklch(88.5% 0.0407 233.01);
+ --swatch-12-mark: oklch(65.8% 0.17 263.01);
+ --swatch-12-surface: oklch(96.2% 0.0099 263.01);
+ --swatch-12-ink: oklch(54.51% 0.17 263.01);
+ --swatch-12-line: oklch(88.5% 0.0336 263.01);
+ --swatch-1-on: oklch(18% 0.05 293.01);
+ --swatch-2-on: oklch(18% 0.05 323.01);
+ --swatch-3-on: oklch(18% 0.05 353.01);
+ --swatch-4-on: oklch(18% 0.05 23.01);
+ --swatch-5-on: oklch(18% 0.05 53.01);
+ --swatch-6-on: oklch(18% 0.05 83.01);
+ --swatch-7-on: oklch(18% 0.05 113.01);
+ --swatch-8-on: oklch(18% 0.05 143.01);
+ --swatch-9-on: oklch(18% 0.05 173.01);
+ --swatch-10-on: oklch(18% 0.05 203.01);
+ --swatch-11-on: oklch(18% 0.05 233.01);
+ --swatch-12-on: oklch(18% 0.05 263.01);
+ --chart-1: var(--swatch-1-mark);
+ --chart-2: var(--swatch-5-mark);
+ --chart-3: var(--swatch-9-mark);
+ --chart-4: var(--swatch-3-mark);
+ --chart-5: var(--swatch-7-mark);
+ --add-button-shadow: 0 0 0 6px var(--accent-7);
+ --cast-06: color-mix(in oklab, var(--gray-12), transparent 94%);
+ --cast-08: color-mix(in oklab, var(--gray-12), transparent 92%);
+ --cast-10: color-mix(in oklab, var(--gray-12), transparent 90%);
+ --cast-20: color-mix(in oklab, var(--gray-12), transparent 80%);
+ --edge: 0 0 0 1px var(--gray-4);
+ --panel-shadow:
+ 2px 0 4px -2px var(--cast-06), 0 2px 4px -2px var(--cast-06);
+ --rest:
+ 0 0 0 1px var(--cast-06), 0 1px 3px 0 var(--cast-08),
+ 0 1px 2px -1px var(--cast-06);
+ --lift:
+ 0 0 0 1px var(--cast-10), 0 2px 4px -2px var(--cast-08),
+ 0 8px 16px -6px var(--cast-08);
+ --over:
+ 0 0 0 1px var(--cast-10), 0 4px 8px -4px var(--cast-10),
+ 0 16px 32px -12px var(--cast-20);
+ --glow-primary: 0 12px 40px -12px color-mix(in oklab, var(--accent-9), transparent 78%);
+ }
+
+ [data-theme='dark'] {
+ --brand-cs: clamp(0, var(--brand-c), 1);
+ --danger-cs: clamp(0, var(--danger-c), 1);
+ --warning-cs: clamp(0, var(--warning-c), 1);
+ --success-cs: clamp(0, var(--success-c), 1);
+
+ --gray-1: oklch(11% calc(0.01 * var(--brand-cs)) var(--brand-h));
+ --gray-2: oklch(16.2% calc(0.012 * var(--brand-cs)) var(--brand-h));
+ --gray-3: oklch(19.5% calc(0.014 * var(--brand-cs)) var(--brand-h));
+ --gray-4: oklch(23.5% calc(0.015 * var(--brand-cs)) var(--brand-h));
+ --gray-5: oklch(27.5% calc(0.016 * var(--brand-cs)) var(--brand-h));
+ --gray-6: oklch(32% calc(0.017 * var(--brand-cs)) var(--brand-h));
+ --gray-7: oklch(39% calc(0.019 * var(--brand-cs)) var(--brand-h));
+ --gray-8: oklch(50% calc(0.026 * var(--brand-cs)) var(--brand-h));
+ --gray-9: oklch(60% calc(0.034 * var(--brand-cs)) var(--brand-h));
+ --gray-10: oklch(66% calc(0.032 * var(--brand-cs)) var(--brand-h));
+ --gray-11: oklch(84.8% calc(0.021 * var(--brand-cs)) var(--brand-h));
+ --gray-12: oklch(97% calc(0.006 * var(--brand-cs)) var(--brand-h));
+
+ --accent-1: oklch(11% calc(0.016 * var(--brand-cs)) var(--brand-h));
+ --accent-2: oklch(16% calc(0.028 * var(--brand-cs)) var(--brand-h));
+ --accent-3: oklch(20% calc(0.042 * var(--brand-cs)) var(--brand-h));
+ --accent-4: oklch(24% calc(0.055 * var(--brand-cs)) var(--brand-h));
+ --accent-5: oklch(28% calc(0.066 * var(--brand-cs)) var(--brand-h));
+ --accent-6: oklch(33% calc(0.078 * var(--brand-cs)) var(--brand-h));
+ --accent-7: oklch(40% calc(0.098 * var(--brand-cs)) var(--brand-h));
+ --accent-8: oklch(55% calc(0.16 * var(--brand-cs)) var(--brand-h));
+ --accent-10: oklch(54% calc(0.215 * var(--brand-cs)) var(--brand-h));
+ --accent-11: oklch(86% calc(0.0692 * var(--brand-cs)) var(--brand-h));
+ --accent-12: oklch(96% calc(0.0191 * var(--brand-cs)) var(--brand-h));
+
+ --success-1: oklch(11% calc(0.016 * var(--success-cs)) var(--success-h));
+ --success-2: oklch(16% calc(0.028 * var(--success-cs)) var(--success-h));
+ --success-3: oklch(20% calc(0.042 * var(--success-cs)) var(--success-h));
+ --success-4: oklch(24% calc(0.055 * var(--success-cs)) var(--success-h));
+ --success-5: oklch(28% calc(0.066 * var(--success-cs)) var(--success-h));
+ --success-6: oklch(33% calc(0.078 * var(--success-cs)) var(--success-h));
+ --success-7: oklch(40% calc(0.098 * var(--success-cs)) var(--success-h));
+ --success-8: oklch(55% calc(0.11 * var(--success-cs)) var(--success-h));
+ --success-9: var(--success-seed, oklch(58% calc(0.135 * var(--success-cs)) var(--success-h)));
+ --success-10: oklch(64% calc(0.13 * var(--success-cs)) var(--success-h));
+ --success-11: oklch(80% calc(0.15 * var(--success-cs)) var(--success-h));
+ --success-12: oklch(95% calc(0.04 * var(--success-cs)) var(--success-h));
+
+ --warning-1: oklch(11% calc(0.016 * var(--warning-cs)) var(--warning-h));
+ --warning-2: oklch(16% calc(0.028 * var(--warning-cs)) var(--warning-h));
+ --warning-3: oklch(20% calc(0.042 * var(--warning-cs)) var(--warning-h));
+ --warning-4: oklch(24% calc(0.0527 * var(--warning-cs)) var(--warning-h));
+ --warning-5: oklch(28% calc(0.0592 * var(--warning-cs)) var(--warning-h));
+ --warning-6: oklch(33% calc(0.0681 * var(--warning-cs)) var(--warning-h));
+ --warning-7: oklch(40% calc(0.0811 * var(--warning-cs)) var(--warning-h));
+ --warning-8: oklch(60% calc(0.1198 * var(--warning-cs)) var(--warning-h));
+ --warning-9: var(--warning-seed, oklch(80% calc(0.1591 * var(--warning-cs)) var(--warning-h)));
+ --warning-10: oklch(85% calc(0.1217 * var(--warning-cs)) var(--warning-h));
+ --warning-11: oklch(88% calc(0.0956 * var(--warning-cs)) var(--warning-h));
+ --warning-12: oklch(95% calc(0.0383 * var(--warning-cs)) var(--warning-h));
+
+ --danger-1: oklch(11% calc(0.016 * var(--danger-cs)) var(--danger-h));
+ --danger-2: oklch(16% calc(0.028 * var(--danger-cs)) var(--danger-h));
+ --danger-3: oklch(20% calc(0.042 * var(--danger-cs)) var(--danger-h));
+ --danger-4: oklch(24% calc(0.055 * var(--danger-cs)) var(--danger-h));
+ --danger-5: oklch(28% calc(0.066 * var(--danger-cs)) var(--danger-h));
+ --danger-6: oklch(33% calc(0.078 * var(--danger-cs)) var(--danger-h));
+ --danger-7: oklch(40% calc(0.098 * var(--danger-cs)) var(--danger-h));
+ --danger-8: oklch(55% calc(0.155 * var(--danger-cs)) var(--danger-h));
+ --danger-9: var(--danger-seed, oklch(56% calc(0.2 * var(--danger-cs)) var(--danger-h)));
+ --danger-10: oklch(62% calc(0.192 * var(--danger-cs)) var(--danger-h));
+ --danger-11: oklch(72% calc(0.17 * var(--danger-cs)) var(--danger-h));
+ --danger-12: oklch(95% calc(0.0235 * var(--danger-cs)) var(--danger-h));
+
+ --panel: var(--gray-2);
+ --on-success: var(--on-success-seed, oklch(18% 0.06 150));
+ --on-warning: var(--on-warning-seed, oklch(18% 0.06 75));
+ --on-danger: var(--on-danger-seed, oklch(98% 0.01 25));
+ --scrim: oklch(0% 0 0 / 70%);
+
+ color-scheme: dark;
+
+ --swatch-1-mark: oklch(70% 0.1633 293.01);
+ --swatch-1-surface: oklch(21% 0.055 293.01);
+ --swatch-1-ink: oklch(80% 0.1045 293.01);
+ --swatch-1-line: oklch(36% 0.09 293.01);
+ --swatch-2-mark: oklch(70% 0.17 323.01);
+ --swatch-2-surface: oklch(21% 0.055 323.01);
+ --swatch-2-ink: oklch(80% 0.1669 323.01);
+ --swatch-2-line: oklch(36% 0.09 323.01);
+ --swatch-3-mark: oklch(70% 0.17 353.01);
+ --swatch-3-surface: oklch(21% 0.055 353.01);
+ --swatch-3-ink: oklch(80% 0.1246 353.01);
+ --swatch-3-line: oklch(36% 0.09 353.01);
+ --swatch-4-mark: oklch(70% 0.17 23.01);
+ --swatch-4-surface: oklch(21% 0.055 23.01);
+ --swatch-4-ink: oklch(80% 0.1077 23.01);
+ --swatch-4-line: oklch(36% 0.09 23.01);
+ --swatch-5-mark: oklch(70% 0.1677 53.01);
+ --swatch-5-surface: oklch(21% 0.0467 53.01);
+ --swatch-5-ink: oklch(80% 0.1226 53.01);
+ --swatch-5-line: oklch(36% 0.066 53.01);
+ --swatch-6-mark: oklch(70% 0.1359 83.01);
+ --swatch-6-surface: oklch(21% 0.0377 83.01);
+ --swatch-6-ink: oklch(80% 0.1551 83.01);
+ --swatch-6-line: oklch(36% 0.0534 83.01);
+ --swatch-7-mark: oklch(70% 0.1473 113.01);
+ --swatch-7-surface: oklch(21% 0.0407 113.01);
+ --swatch-7-ink: oklch(80% 0.1682 113.01);
+ --swatch-7-line: oklch(36% 0.0579 113.01);
+ --swatch-8-mark: oklch(70% 0.17 143.01);
+ --swatch-8-surface: oklch(21% 0.055 143.01);
+ --swatch-8-ink: oklch(80% 0.17 143.01);
+ --swatch-8-line: oklch(36% 0.0863 143.01);
+ --swatch-9-mark: oklch(70% 0.1267 173.01);
+ --swatch-9-surface: oklch(21% 0.0337 173.01);
+ --swatch-9-ink: oklch(80% 0.1447 173.01);
+ --swatch-9-line: oklch(36% 0.0495 173.01);
+ --swatch-10-mark: oklch(70% 0.1124 203.01);
+ --swatch-10-surface: oklch(21% 0.03 203.01);
+ --swatch-10-ink: oklch(80% 0.1283 203.01);
+ --swatch-10-line: oklch(36% 0.0439 203.01);
+ --swatch-11-mark: oklch(70% 0.1364 233.01);
+ --swatch-11-surface: oklch(21% 0.0366 233.01);
+ --swatch-11-ink: oklch(80% 0.1142 233.01);
+ --swatch-11-line: oklch(36% 0.0533 233.01);
+ --swatch-12-mark: oklch(70% 0.1474 263.01);
+ --swatch-12-surface: oklch(21% 0.055 263.01);
+ --swatch-12-ink: oklch(80% 0.0945 263.01);
+ --swatch-12-line: oklch(36% 0.09 263.01);
+ --swatch-1-on: oklch(18% 0.05 293.01);
+ --swatch-2-on: oklch(18% 0.05 323.01);
+ --swatch-3-on: oklch(18% 0.05 353.01);
+ --swatch-4-on: oklch(18% 0.05 23.01);
+ --swatch-5-on: oklch(18% 0.05 53.01);
+ --swatch-6-on: oklch(18% 0.05 83.01);
+ --swatch-7-on: oklch(18% 0.05 113.01);
+ --swatch-8-on: oklch(18% 0.05 143.01);
+ --swatch-9-on: oklch(18% 0.05 173.01);
+ --swatch-10-on: oklch(18% 0.05 203.01);
+ --swatch-11-on: oklch(18% 0.05 233.01);
+ --swatch-12-on: oklch(18% 0.05 263.01);
+ --chart-1: var(--swatch-1-mark);
+ --chart-2: var(--swatch-5-mark);
+ --chart-3: var(--swatch-9-mark);
+ --chart-4: var(--swatch-3-mark);
+ --chart-5: var(--swatch-7-mark);
+ --cast-06: oklch(100% 0 0 / 4%);
+ --cast-08: oklch(100% 0 0 / 6%);
+ --cast-10: oklch(100% 0 0 / 9%);
+ --cast-20: oklch(0% 0 0 / 45%);
+ --glow-primary: 0 12px 40px -12px color-mix(in oklab, var(--accent-9), transparent 65%);
+ --edge: 0 0 0 1px var(--gray-4);
+ --panel-shadow:
+ 0 0 0 1px color-mix(in oklab, var(--gray-12), transparent 92%),
+ 2px 0 4px -2px oklch(0% 0 0 / 45%), 0 2px 4px -2px oklch(0% 0 0 / 45%);
+ --rest:
+ 0 0 0 1px color-mix(in oklab, var(--gray-12), transparent 90%),
+ 0 1px 2px 0 oklch(0% 0 0 / 5%);
+ --lift: 0 0 0 1px var(--cast-10), 0 8px 16px -6px oklch(0% 0 0 / 40%);
+ --over: 0 0 0 1px var(--cast-10), 0 16px 32px -12px oklch(0% 0 0 / 55%);
+ }
+
+ @media (color-gamut: p3) {
+ :root,
+ [data-theme='light'] {
+ --swatch-1-mark: oklch(66.81% 0.17 293.01);
+ --swatch-1-surface: oklch(96.2% 0.0121 293.01);
+ --swatch-1-ink: oklch(55.5% 0.17 293.01);
+ --swatch-1-line: oklch(88.5% 0.0409 293.01);
+ --swatch-1-on: oklch(18% 0.05 293.01);
+ --swatch-2-mark: oklch(67.35% 0.17 323.01);
+ --swatch-2-surface: oklch(96.2% 0.0194 323.01);
+ --swatch-2-ink: oklch(55.8% 0.17 323.01);
+ --swatch-2-line: oklch(88.5% 0.0656 323.01);
+ --swatch-2-on: oklch(18% 0.05 323.01);
+ --swatch-3-mark: oklch(67.5% 0.17 353.01);
+ --swatch-3-surface: oklch(96.2% 0.0158 353.01);
+ --swatch-3-ink: oklch(55.92% 0.17 353.01);
+ --swatch-3-line: oklch(88.5% 0.0554 353.01);
+ --swatch-3-on: oklch(18% 0.05 353.01);
+ --swatch-4-mark: oklch(67.31% 0.17 23.01);
+ --swatch-4-surface: oklch(96.2% 0.0135 23.01);
+ --swatch-4-ink: oklch(55.83% 0.17 23.01);
+ --swatch-4-line: oklch(88.5% 0.0473 23.01);
+ --swatch-4-on: oklch(18% 0.05 23.01);
+ --swatch-5-mark: oklch(66.73% 0.17 53.01);
+ --swatch-5-surface: oklch(96.2% 0.0154 53.01);
+ --swatch-5-ink: oklch(55.08% 0.1578 53.01);
+ --swatch-5-line: oklch(88.5% 0.0535 53.01);
+ --swatch-5-on: oklch(18% 0.05 53.01);
+ --swatch-6-mark: oklch(65.57% 0.1468 83.01);
+ --swatch-6-surface: oklch(96.2% 0.0259 83.01);
+ --swatch-6-ink: oklch(54.03% 0.1269 83.01);
+ --swatch-6-line: oklch(88.5% 0.08 83.01);
+ --swatch-6-on: oklch(18% 0.05 83.01);
+ --swatch-7-mark: oklch(64.54% 0.1582 113.01);
+ --swatch-7-surface: oklch(96.2% 0.05 113.01);
+ --swatch-7-ink: oklch(53.44% 0.1368 113.01);
+ --swatch-7-line: oklch(88.5% 0.08 113.01);
+ --swatch-7-on: oklch(18% 0.05 113.01);
+ --swatch-8-mark: oklch(63.61% 0.17 143.01);
+ --swatch-8-surface: oklch(96.2% 0.0416 143.01);
+ --swatch-8-ink: oklch(52.54% 0.17 143.01);
+ --swatch-8-line: oklch(88.5% 0.08 143.01);
+ --swatch-8-on: oklch(18% 0.05 143.01);
+ --swatch-9-mark: oklch(62.27% 0.1537 173.01);
+ --swatch-9-surface: oklch(96.2% 0.0338 173.01);
+ --swatch-9-ink: oklch(51.47% 0.1328 173.01);
+ --swatch-9-line: oklch(88.5% 0.08 173.01);
+ --swatch-9-on: oklch(18% 0.05 173.01);
+ --swatch-10-mark: oklch(62.84% 0.1352 203.01);
+ --swatch-10-surface: oklch(96.2% 0.0251 203.01);
+ --swatch-10-ink: oklch(51.77% 0.1168 203.01);
+ --swatch-10-line: oklch(88.5% 0.08 203.01);
+ --swatch-10-on: oklch(18% 0.05 203.01);
+ --swatch-11-mark: oklch(63.66% 0.1632 233.01);
+ --swatch-11-surface: oklch(96.2% 0.0132 233.01);
+ --swatch-11-ink: oklch(52.38% 0.141 233.01);
+ --swatch-11-line: oklch(88.5% 0.0444 233.01);
+ --swatch-11-on: oklch(18% 0.05 233.01);
+ --swatch-12-mark: oklch(65.8% 0.17 263.01);
+ --swatch-12-surface: oklch(96.2% 0.0109 263.01);
+ --swatch-12-ink: oklch(54.51% 0.17 263.01);
+ --swatch-12-line: oklch(88.5% 0.0368 263.01);
+ --swatch-12-on: oklch(18% 0.05 263.01);
+ }
- --add-button-shadow: 0 0 0 6px hsl(var(--primary-100) / 0.4);
-
- --chart-1: 210 85% 55%;
- --chart-2: 160 80% 50%;
- --chart-3: 35 90% 55%;
- --chart-4: 280 75% 65%;
- --chart-5: 340 80% 60%;
-
- --sidebar-background: theme('colors.neutral.800');
- --sidebar-foreground: theme('colors.neutral.50');
- --sidebar-primary: 210 85% 65%;
- --sidebar-primary-foreground: 210 90% 98%;
- --sidebar-accent: theme('colors.neutral.700');
- --sidebar-accent-foreground: theme('colors.neutral.50');
- --sidebar-border: hsla(0, 0%, 100%, 0.08);
- --sidebar-ring: theme('colors.neutral.600');
- --sidebar-progress: 210 15% 40%;
- --builder-background: hsla(0, 0%, 9%, 1);
- --builder-background-pattern: hsla(0, 0%, 45%, 1);
+ [data-theme='dark'] {
+ --swatch-1-mark: oklch(70% 0.17 293.01);
+ --swatch-1-surface: oklch(21% 0.055 293.01);
+ --swatch-1-ink: oklch(80% 0.1145 293.01);
+ --swatch-1-line: oklch(36% 0.09 293.01);
+ --swatch-1-on: oklch(18% 0.05 293.01);
+ --swatch-2-mark: oklch(70% 0.17 323.01);
+ --swatch-2-surface: oklch(21% 0.055 323.01);
+ --swatch-2-ink: oklch(80% 0.17 323.01);
+ --swatch-2-line: oklch(36% 0.09 323.01);
+ --swatch-2-on: oklch(18% 0.05 323.01);
+ --swatch-3-mark: oklch(70% 0.17 353.01);
+ --swatch-3-surface: oklch(21% 0.055 353.01);
+ --swatch-3-ink: oklch(80% 0.1633 353.01);
+ --swatch-3-line: oklch(36% 0.09 353.01);
+ --swatch-3-on: oklch(18% 0.05 353.01);
+ --swatch-4-mark: oklch(70% 0.17 23.01);
+ --swatch-4-surface: oklch(21% 0.055 23.01);
+ --swatch-4-ink: oklch(80% 0.1387 23.01);
+ --swatch-4-line: oklch(36% 0.09 23.01);
+ --swatch-4-on: oklch(18% 0.05 23.01);
+ --swatch-5-mark: oklch(70% 0.17 53.01);
+ --swatch-5-surface: oklch(21% 0.0539 53.01);
+ --swatch-5-ink: oklch(80% 0.1556 53.01);
+ --swatch-5-line: oklch(36% 0.0753 53.01);
+ --swatch-5-on: oklch(18% 0.05 53.01);
+ --swatch-6-mark: oklch(70% 0.1566 83.01);
+ --swatch-6-surface: oklch(21% 0.044 83.01);
+ --swatch-6-ink: oklch(80% 0.17 83.01);
+ --swatch-6-line: oklch(36% 0.0617 83.01);
+ --swatch-6-on: oklch(18% 0.05 83.01);
+ --swatch-7-mark: oklch(70% 0.17 113.01);
+ --swatch-7-surface: oklch(21% 0.0479 113.01);
+ --swatch-7-ink: oklch(80% 0.17 113.01);
+ --swatch-7-line: oklch(36% 0.0675 113.01);
+ --swatch-7-on: oklch(18% 0.05 113.01);
+ --swatch-8-mark: oklch(70% 0.17 143.01);
+ --swatch-8-surface: oklch(21% 0.055 143.01);
+ --swatch-8-ink: oklch(80% 0.17 143.01);
+ --swatch-8-line: oklch(36% 0.09 143.01);
+ --swatch-8-on: oklch(18% 0.05 143.01);
+ --swatch-9-mark: oklch(70% 0.17 173.01);
+ --swatch-9-surface: oklch(21% 0.046 173.01);
+ --swatch-9-ink: oklch(80% 0.17 173.01);
+ --swatch-9-line: oklch(36% 0.0674 173.01);
+ --swatch-9-on: oklch(18% 0.05 173.01);
+ --swatch-10-mark: oklch(70% 0.1504 203.01);
+ --swatch-10-surface: oklch(21% 0.0402 203.01);
+ --swatch-10-ink: oklch(80% 0.17 203.01);
+ --swatch-10-line: oklch(36% 0.0588 203.01);
+ --swatch-10-on: oklch(18% 0.05 203.01);
+ --swatch-11-mark: oklch(70% 0.17 233.01);
+ --swatch-11-surface: oklch(21% 0.0483 233.01);
+ --swatch-11-ink: oklch(80% 0.124 233.01);
+ --swatch-11-line: oklch(36% 0.0701 233.01);
+ --swatch-11-on: oklch(18% 0.05 233.01);
+ --swatch-12-mark: oklch(70% 0.1596 263.01);
+ --swatch-12-surface: oklch(21% 0.055 263.01);
+ --swatch-12-ink: oklch(80% 0.1031 263.01);
+ --swatch-12-line: oklch(36% 0.09 263.01);
+ --swatch-12-on: oklch(18% 0.05 263.01);
+ }
}
}
@layer base {
* {
- @apply border-border;
+ @apply border-gray-6;
}
/*
@@ -607,11 +1001,11 @@
}
*:hover::-webkit-scrollbar-thumb {
- background-color: var(--border);
+ background-color: var(--gray-6);
}
*::-webkit-scrollbar-thumb:hover {
- background-color: var(--ring);
+ background-color: var(--gray-8);
}
*::-webkit-scrollbar-corner {
@@ -625,7 +1019,7 @@
}
*:hover {
- scrollbar-color: var(--border) transparent;
+ scrollbar-color: var(--gray-6) transparent;
}
/* Restore scrollbar-none for elements that opt out */
@@ -638,7 +1032,7 @@
}
body {
- @apply bg-background text-foreground;
+ @apply bg-gray-1 text-gray-12;
font-feature-settings: 'rlig' 1, 'calt' 1;
}
@@ -654,13 +1048,15 @@
}
.react-flow {
- --xy-edge-stroke: rgba(163, 163, 163, 0.5) !important;
+ --xy-edge-stroke: var(--gray-7) !important;
--node-boxshadow-selected-default: 0 0 0 0 #b1b1b7 !important;
--selection-border-default: 0px solid #b1b1b7 !important;
--node-border-default: 0px solid #b1b1b7 !important;
- --xy-selection-border-default: 1px dotted hsl(var(--primary-300)) !important;
- --xy-selection-background-color-default: hsl(
- var(--primary-100) / 0.25
+ --xy-selection-border-default: 1px dotted var(--accent-8) !important;
+ --xy-selection-background-color-default: color-mix(
+ in oklab,
+ var(--accent-9),
+ transparent 90%
) !important;
--xy-resize-background-color: transparent !important;
.react-flow__resize-control.handle {
@@ -941,8 +1337,8 @@
/* ── Password strength bolt glow ── */
@keyframes boltGlow {
- 0% { filter: drop-shadow(0 0 4px rgba(196, 167, 255, 0.5)); }
- 100% { filter: drop-shadow(0 0 10px rgb(110, 65, 226)); }
+ 0% { filter: drop-shadow(0 0 4px color-mix(in oklab, var(--success-11), transparent 50%)); }
+ 100% { filter: drop-shadow(0 0 10px var(--success-11)); }
}
/* ── Shiki dual theme (light/dark) ── */
@@ -955,8 +1351,8 @@
text-decoration: var(--shiki-light-text-decoration);
}
-.dark .shiki,
-.dark .shiki span {
+[data-theme='dark'] .shiki,
+[data-theme='dark'] .shiki span {
color: var(--shiki-dark);
background-color: var(--shiki-dark-bg);
font-style: var(--shiki-dark-font-style);
@@ -969,7 +1365,6 @@
100% { transform: scaleY(1); opacity: 1; }
}
-/* Brand-fixed purple (intentional, not --primary) so the icon matches the gradient. */
.recurring-chip {
color: #8142e3;
}
diff --git a/packages/web/src/styles/globals.css b/packages/web/src/styles/globals.css
index 5b0f43bec6e..7cdf77ba37e 100644
--- a/packages/web/src/styles/globals.css
+++ b/packages/web/src/styles/globals.css
@@ -1,87 +1,64 @@
-.welcome-gradient {
- background: linear-gradient(
- to bottom right,
- rgba(255, 255, 255, 1) 0%,
- rgba(249, 250, 251, 0.9) 100%
- );
-}
-
-@media (prefers-color-scheme: dark) {
- .welcome-gradient {
- background: linear-gradient(
- to bottom right,
- rgba(31, 41, 55, 1) 0%,
- rgba(17, 24, 39, 0.9) 100%
- );
- }
-}
-
/* ── Formula function bracket highlighting ─────────────────────────────── */
/* Cursor is inside this function — subtle outline on the pair */
span.ap-fn-badge.ap-fn-cursor-active {
- background-color: #ddd6fe !important;
+ background-color: var(--accent-5) !important;
}
/* Mouse is hovering on a badge — stronger highlight on the pair */
span.ap-fn-badge.ap-fn-active {
- background-color: #7c3aed !important;
- color: #fff !important;
+ background-color: var(--accent-9) !important;
+ color: var(--on-accent) !important;
}
/* Type error on the function */
span.ap-fn-badge.ap-fn-error {
- background-color: rgba(239, 68, 68, 0.18) !important;
- border-color: #ef4444 !important;
- color: #b91c1c !important;
+ background-color: color-mix(
+ in oklab,
+ var(--danger-11),
+ transparent 82%
+ ) !important;
+ border-color: var(--danger-9) !important;
+ color: var(--danger-11) !important;
}
/* Unclosed function — no matching ) badge */
span.ap-fn-badge.ap-fn-unclosed {
- background-color: rgba(239, 68, 68, 0.15) !important;
- border-color: #ef4444 !important;
- color: #b91c1c !important;
- text-decoration: underline wavy #ef4444;
+ background-color: color-mix(
+ in oklab,
+ var(--danger-11),
+ transparent 85%
+ ) !important;
+ border-color: var(--danger-9) !important;
+ color: var(--danger-11) !important;
+ text-decoration: underline wavy var(--danger-11);
text-underline-offset: 2px;
}
/* Unknown function name — referenced in a saved formula but not in the registry */
span.ap-fn-badge.ap-fn-broken {
- background-color: rgba(239, 68, 68, 0.15) !important;
- border-color: #ef4444 !important;
- color: #b91c1c !important;
+ background-color: color-mix(
+ in oklab,
+ var(--danger-11),
+ transparent 85%
+ ) !important;
+ border-color: var(--danger-9) !important;
+ color: var(--danger-11) !important;
text-decoration: line-through;
}
/* Deprecated function — still resolves at runtime, but should be replaced */
span.ap-fn-badge.ap-fn-deprecated {
- background-color: rgba(245, 158, 11, 0.15) !important;
- border-color: #f59e0b !important;
- color: #b45309 !important;
- text-decoration: line-through solid #b45309;
+ background-color: color-mix(
+ in oklab,
+ var(--warning-11),
+ transparent 85%
+ ) !important;
+ border-color: var(--warning-9) !important;
+ color: var(--warning-11) !important;
+ text-decoration: line-through solid var(--warning-11);
}
-/* Formula Editor */
-.ap-variable-pill {
- display: inline-flex;
- align-items: center;
- background: hsl(var(--primary) / 0.12);
- border: 1px solid hsl(var(--primary) / 0.4);
- color: hsl(var(--primary));
- border-radius: 4px;
- padding: 0 6px;
- font-size: 11px;
- font-weight: 500;
- white-space: nowrap;
- cursor: default;
- user-select: none;
- vertical-align: middle;
- margin: 0 1px;
-}
-
-.ap-fn-name-token { color: #7c3aed; font-weight: 600; }
-.ap-fn-paren-open-token { color: #7c3aed; }
-.ap-fn-paren-close-token { color: #7c3aed; }
/* CodeMirror formula editor reset */
.formula-editor .cm-editor { outline: none; }
@@ -101,13 +78,10 @@ span.ap-fn-badge.ap-fn-deprecated {
/* Styled via CSS (not an element class) so the serialized HTML stays a clean
<a href> for the outgoing email. */
.ap-text-with-mentions a {
- color: #2563eb;
+ color: var(--accent-11);
text-decoration: underline;
text-underline-offset: 2px;
cursor: pointer;
}
-.dark .ap-text-with-mentions a {
- color: #60a5fa;
-}
.formula-editor .cm-line { padding: 0; }
\ No newline at end of file
diff --git a/packages/web/test/app/routes/platform/setup/general/appearance-section.test.tsx b/packages/web/test/app/routes/platform/setup/general/appearance-section.test.tsx
new file mode 100644
index 00000000000..f6937964e53
--- /dev/null
+++ b/packages/web/test/app/routes/platform/setup/general/appearance-section.test.tsx
@@ -0,0 +1,468 @@
+/**
+ * @vitest-environment jsdom
+ */
+/* eslint-disable testing-library/no-unnecessary-act */
+import * as React from 'react';
+import { act } from 'react';
+import { createRoot, type Root } from 'react-dom/client';
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
+
+const state = vi.hoisted(() => ({
+ primaryColor: '#6e41e2',
+ brandColor: '#6e41e2',
+ themeColors: null as Record<string, unknown> | null,
+ statusColors: {} as Record<string, string> | undefined,
+ customAppearanceEnabled: true,
+ update: vi.fn(async (_formdata: FormData, _platformId: string) => undefined),
+ toastSuccess: vi.fn(),
+ invalidate: vi.fn(async (_filters: unknown) => undefined),
+ saving: Promise.resolve() as Promise<unknown>,
+}));
+
+vi.mock('i18next', () => ({
+ t: (key: string) => key,
+}));
+
+vi.mock('sonner', () => ({
+ toast: { success: state.toastSuccess },
+}));
+
+vi.mock('@tanstack/react-query', () => ({
+ useQueryClient: () => ({ invalidateQueries: state.invalidate }),
+ useMutation: (options: MutationOptions) => ({
+ mutate: () => {
+ state.saving = options.mutationFn().then(
+ (data: unknown) => options.onSuccess(data),
+ (error: unknown) => options.onError(error),
+ );
+ },
+ isPending: false,
+ }),
+}));
+
+vi.mock('@/api/platforms-api', () => ({
+ platformApi: {
+ updateWithFormData: (formdata: FormData, platformId: string) =>
+ state.update(formdata, platformId),
+ },
+}));
+
+vi.mock('@/hooks/platform-hooks', () => ({
+ platformHooks: {
+ useCurrentPlatform: () => ({
+ platform: {
+ id: 'platform-1',
+ name: 'Northwind',
+ primaryColor: state.primaryColor,
+ themeColors: state.themeColors,
+ fullLogoUrl: '',
+ logoIconUrl: '',
+ favIconUrl: '',
+ plan: { customAppearanceEnabled: state.customAppearanceEnabled },
+ },
+ }),
+ },
+}));
+
+vi.mock('@/hooks/flags-hooks', () => ({
+ flagsHooks: {
+ queryKey: ['flags'],
+ useWebsiteBranding: () => ({
+ colors: {
+ avatar: '#515151',
+ 'blue-link': '#1890ff',
+ danger: '#f94949',
+ selection: '#e2dbfa',
+ primary: {
+ default: state.brandColor,
+ dark: '#5a2fd0',
+ light: '#e2d9fb',
+ medium: '#8b6de8',
+ },
+ warn: { default: '#f78a3b', light: '#fff6e4', dark: '#cc8805' },
+ success: { default: '#14ae5c', light: '#3cad71' },
+ },
+ statusColors: state.statusColors,
+ }),
+ },
+}));
+
+vi.mock('@/components/ui/button', () => ({
+ Button: ({ children, type, disabled, onClick }: ButtonMockProps) => (
+ <button type={type} disabled={disabled} onClick={onClick}>
+ {children}
+ </button>
+ ),
+}));
+
+vi.mock('@/components/ui/input', () => {
+ const Input = React.forwardRef<HTMLInputElement, InputMockProps>(
+ ({ defaultFileName: _defaultFileName, ...props }, ref) => (
+ <input ref={ref} {...props} />
+ ),
+ );
+ Input.displayName = 'Input';
+ return { Input };
+});
+
+vi.mock('@/components/custom/color-picker', () => ({
+ ColorPicker: ({ value, onChange }: ColorPickerMockProps) => (
+ <input
+ aria-label="colour"
+ value={value}
+ onChange={(event) => onChange(event.currentTarget.value)}
+ />
+ ),
+}));
+
+vi.mock('@/app/routes/platform/setup/general/color-preview', () => ({
+ ColorPreview: () => null,
+}));
+
+vi.mock('@/app/components/feature-banner', () => ({
+ FeatureBanner: () => null,
+}));
+
+import { AppearanceSection } from '@/app/routes/platform/setup/general/appearance-section';
+
+let container: HTMLDivElement;
+let root: Root;
+
+async function render() {
+ container = document.createElement('div');
+ document.body.appendChild(container);
+ root = createRoot(container);
+ await act(async () => {
+ root.render(<AppearanceSection />);
+ });
+ await act(async () => {
+ await Promise.resolve();
+ });
+}
+
+function setInputValue({
+ input,
+ value,
+}: {
+ input: HTMLInputElement;
+ value: string;
+}) {
+ const setter = Object.getOwnPropertyDescriptor(
+ HTMLInputElement.prototype,
+ 'value',
+ )?.set;
+ setter?.call(input, value);
+ input.dispatchEvent(new Event('input', { bubbles: true }));
+}
+
+async function type({ selector, value }: { selector: string; value: string }) {
+ const input = container.querySelector<HTMLInputElement>(selector);
+ if (!input) throw new Error(`no input ${selector}`);
+ await act(async () => {
+ setInputValue({ input, value });
+ });
+}
+
+async function save() {
+ const button = container.querySelector<HTMLButtonElement>(
+ 'button[type="submit"]',
+ );
+ if (!button) throw new Error('no save button');
+ expect(button.disabled).toBe(false);
+ await act(async () => {
+ button.click();
+ });
+ await act(async () => {
+ await state.saving;
+ });
+}
+
+function colourInputs(): HTMLInputElement[] {
+ return [
+ ...container.querySelectorAll<HTMLInputElement>(
+ 'input[aria-label="colour"]',
+ ),
+ ];
+}
+
+function buttonNamed({ name }: { name: string }): HTMLButtonElement {
+ const button = [...container.querySelectorAll('button')].find(
+ (candidate) => candidate.textContent === name,
+ );
+ if (!button) throw new Error(`no ${name} button`);
+ return button;
+}
+
+function hasUnsavedNotice(): boolean {
+ return container.textContent?.includes('You have unsaved changes') ?? false;
+}
+
+function submitButton(): HTMLButtonElement {
+ const button = container.querySelector<HTMLButtonElement>(
+ 'button[type="submit"]',
+ );
+ if (!button) throw new Error('no save button');
+ return button;
+}
+
+function resetButtons(): HTMLButtonElement[] {
+ return [...container.querySelectorAll('button')].filter(
+ (button) => button.textContent === 'Reset',
+ );
+}
+
+function sentThemeColors(): unknown {
+ return JSON.parse(sentFields().themeColors as string);
+}
+
+function sentFields(): Record<string, FormDataEntryValue> {
+ const formdata = state.update.mock.calls[0]?.[0];
+ if (!formdata) throw new Error('nothing was saved');
+ return Object.fromEntries(formdata.entries());
+}
+
+describe('AppearanceSection', () => {
+ beforeEach(() => {
+ state.update.mockReset();
+ state.update.mockResolvedValue(undefined);
+ state.toastSuccess.mockClear();
+ state.invalidate.mockClear();
+ state.saving = Promise.resolve();
+ state.customAppearanceEnabled = true;
+ state.primaryColor = '#6e41e2';
+ state.brandColor = '#6e41e2';
+ state.themeColors = null;
+ state.statusColors = {};
+ });
+
+ afterEach(() => {
+ act(() => root.unmount());
+ container.remove();
+ });
+
+ it('saves a name change on a platform with a legacy colour, without sending the colour', async () => {
+ state.primaryColor = 'red';
+ state.brandColor = '#ff0000';
+ await render();
+ expect(
+ container.querySelector<HTMLInputElement>('input[aria-label="colour"]')
+ ?.value,
+ ).toBe('#ff0000');
+ await type({ selector: '#name', value: 'Contoso' });
+ await save();
+ const fields = sentFields();
+ expect(fields.name).toBe('Contoso');
+ expect(fields).not.toHaveProperty('primaryColor');
+ });
+
+ it('sends the colour when the admin changes it', async () => {
+ await render();
+ await type({ selector: 'input[aria-label="colour"]', value: '#0ea5e9' });
+ await save();
+ expect(sentFields().primaryColor).toBe('#0ea5e9');
+ });
+
+ it('previews a picked colour on the page and puts the saved one back on cancel', async () => {
+ await render();
+ await type({ selector: 'input[aria-label="colour"]', value: '#0ea5e9' });
+ const accent = () =>
+ document.documentElement.style.getPropertyValue('--accent-9');
+ expect(accent()).toBe('#0ea5e9');
+ await act(async () => {
+ buttonNamed({ name: 'Cancel' }).click();
+ });
+ expect(accent()).toBe('#6e41e2');
+ expect(state.update).not.toHaveBeenCalled();
+ });
+
+ it('shows every colour on its default with reset disabled, and no toggle', async () => {
+ await render();
+ expect(colourInputs().map((input) => input.value)).toEqual([
+ '#6e41e2',
+ '#c11825',
+ '#f9ad28',
+ '#33ac5a',
+ ]);
+ expect(container.querySelector('input[type="checkbox"]')).toBeNull();
+ const resets = resetButtons();
+ expect(resets).toHaveLength(4);
+ expect(resets.every((button) => button.disabled)).toBe(true);
+ });
+
+ it('resets the primary colour to the stock brand colour', async () => {
+ state.primaryColor = '#0ea5e9';
+ state.brandColor = '#0ea5e9';
+ await render();
+ await act(async () => {
+ resetButtons()[0].click();
+ });
+ await save();
+ expect(sentFields().primaryColor).toBe('#6e41e2');
+ });
+
+ it('saves a chosen status colour under status and keeps everything else stored', async () => {
+ state.themeColors = {
+ avatar: '#515151',
+ danger: '#f94949',
+ primary: { dark: '#5a2fd0' },
+ };
+ await render();
+ await act(async () => {
+ setInputValue({ input: colourInputs()[1], value: '#f94949' });
+ });
+ await save();
+ expect(sentThemeColors()).toStrictEqual({
+ avatar: '#515151',
+ danger: '#f94949',
+ primary: { dark: '#5a2fd0' },
+ status: { danger: '#f94949' },
+ });
+ });
+
+ it('starts from the stored status colours, not the branding flag', async () => {
+ state.themeColors = { status: { warning: '#eab308' } };
+ state.statusColors = undefined;
+ await render();
+ expect(colourInputs()[2].value).toBe('#eab308');
+ await type({ selector: '#name', value: 'Contoso' });
+ await save();
+ expect(sentThemeColors()).toStrictEqual({
+ status: { warning: '#eab308' },
+ });
+ });
+
+ it('resets a status colour back to the standard palette', async () => {
+ state.themeColors = { status: { danger: '#b91c1c', success: '#16a34a' } };
+ await render();
+ await act(async () => {
+ resetButtons()[1].click();
+ });
+ await save();
+ expect(sentThemeColors()).toStrictEqual({
+ status: { success: '#16a34a' },
+ });
+ });
+
+ it('lets a saved seed be reset even when it matches the stock colour', async () => {
+ state.themeColors = { status: { danger: '#c11825' } };
+ await render();
+ expect(resetButtons()[1].disabled).toBe(false);
+ await act(async () => {
+ resetButtons()[1].click();
+ });
+ await save();
+ expect(sentThemeColors()).toStrictEqual({});
+ });
+
+ it('leaves the fields the old form saved untouched and unused', async () => {
+ state.themeColors = { danger: '#f94949', warn: { default: '#f78a3b' } };
+ await render();
+ expect(
+ resetButtons()
+ .slice(1)
+ .every((button) => button.disabled),
+ ).toBe(true);
+ await type({ selector: '#name', value: 'Contoso' });
+ await save();
+ expect(sentThemeColors()).toStrictEqual({
+ danger: '#f94949',
+ warn: { default: '#f78a3b' },
+ });
+ });
+
+ it('previews a status colour on the page and removes it on cancel', async () => {
+ await render();
+ await act(async () => {
+ setInputValue({ input: colourInputs()[3], value: '#16a34a' });
+ });
+ const seed = () =>
+ document.documentElement.style.getPropertyValue('--success-seed');
+ expect(seed()).toBe('#16a34a');
+ await act(async () => {
+ buttonNamed({ name: 'Cancel' }).click();
+ });
+ expect(seed()).toBe('');
+ expect(state.update).not.toHaveBeenCalled();
+ });
+
+ it('disables saving and says nothing while there are no changes', async () => {
+ await render();
+ expect(submitButton().disabled).toBe(true);
+ expect(buttonNamed({ name: 'Cancel' }).disabled).toBe(true);
+ expect(hasUnsavedNotice()).toBe(false);
+ });
+
+ it('says there are unsaved changes once something changes, and clears it on cancel', async () => {
+ await render();
+ await act(async () => {
+ setInputValue({ input: colourInputs()[2], value: '#ea580c' });
+ });
+ expect(hasUnsavedNotice()).toBe(true);
+ expect(submitButton().disabled).toBe(false);
+ await act(async () => {
+ buttonNamed({ name: 'Cancel' }).click();
+ });
+ await act(async () => {
+ await Promise.resolve();
+ });
+ expect(hasUnsavedNotice()).toBe(false);
+ expect(submitButton().disabled).toBe(true);
+ });
+
+ it('refreshes the platform and branding after saving instead of reloading the page', async () => {
+ await render();
+ await type({ selector: '#name', value: 'Contoso' });
+ await save();
+ expect(state.invalidate.mock.calls.map(([filters]) => filters)).toEqual([
+ { queryKey: ['platform', 'platform-1'] },
+ { queryKey: ['flags'] },
+ ]);
+ expect(state.toastSuccess).toHaveBeenCalled();
+ });
+
+ it('lets the admin retry after a failed save', async () => {
+ state.update.mockRejectedValueOnce(new Error('network down'));
+ await render();
+ await type({ selector: '#name', value: 'Contoso' });
+ await save();
+ expect(submitButton().disabled).toBe(false);
+ await save();
+ expect(state.update).toHaveBeenCalledTimes(2);
+ expect(state.toastSuccess).toHaveBeenCalled();
+ });
+
+ it('reports a failed save in place instead of confirming it', async () => {
+ state.update.mockRejectedValueOnce(new Error('network down'));
+ await render();
+ await type({ selector: '#name', value: 'Contoso' });
+ await save();
+ expect(state.toastSuccess).not.toHaveBeenCalled();
+ expect(
+ container.textContent?.includes(
+ 'Failed to save changes. Please try again.',
+ ),
+ ).toBe(true);
+ });
+});
+
+type MutationOptions = {
+ mutationFn: () => Promise<unknown>;
+ onSuccess: (data: unknown) => void;
+ onError: (error: unknown) => void;
+};
+
+type ButtonMockProps = {
+ children?: React.ReactNode;
+ type?: 'button' | 'submit';
+ disabled?: boolean;
+ onClick?: () => void;
+};
+
+type InputMockProps = React.InputHTMLAttributes<HTMLInputElement> & {
+ defaultFileName?: string;
+};
+
+type ColorPickerMockProps = {
+ value: string;
+ onChange: (value: string) => void;
+};
diff --git a/packages/web/test/lib/brand-seed.test.ts b/packages/web/test/lib/brand-seed.test.ts
new file mode 100644
index 00000000000..365fc287803
--- /dev/null
+++ b/packages/web/test/lib/brand-seed.test.ts
@@ -0,0 +1,38 @@
+/**
+ * @vitest-environment jsdom
+ */
+import { describe, expect, it } from 'vitest';
+
+import { brandSeed } from '@/lib/brand-seed';
+
+describe('brandSeed', () => {
+ it('keeps a preview on the page when the saved branding is applied again, until it is cleared', () => {
+ brandSeed.apply({
+ primaryColor: '#6e41e2',
+ statusColors: { danger: '#b91c1c' },
+ });
+ expect(variable({ name: '--accent-9' })).toBe('#6e41e2');
+ expect(variable({ name: '--danger-seed' })).toBe('#b91c1c');
+
+ brandSeed.setPreview({
+ primaryColor: '#0ea5e9',
+ statusColors: { warning: '#eab308' },
+ });
+ brandSeed.apply({
+ primaryColor: '#16a34a',
+ statusColors: { danger: '#991b1b' },
+ });
+ expect(variable({ name: '--accent-9' })).toBe('#0ea5e9');
+ expect(variable({ name: '--warning-seed' })).toBe('#eab308');
+ expect(variable({ name: '--danger-seed' })).toBe('');
+
+ brandSeed.clearPreview();
+ expect(variable({ name: '--accent-9' })).toBe('#16a34a');
+ expect(variable({ name: '--danger-seed' })).toBe('#991b1b');
+ expect(variable({ name: '--warning-seed' })).toBe('');
+ });
+});
+
+function variable({ name }: { name: string }): string {
+ return document.documentElement.style.getPropertyValue(name);
+}
diff --git a/packages/web/test/styles/status-scales.test.ts b/packages/web/test/styles/status-scales.test.ts
new file mode 100644
index 00000000000..c7cef18add4
--- /dev/null
+++ b/packages/web/test/styles/status-scales.test.ts
@@ -0,0 +1,176 @@
+import fs from 'node:fs';
+import path from 'node:path';
+
+import { brandColors } from '@activepieces/shared';
+import { describe, expect, it } from 'vitest';
+
+const STYLES = fs.readFileSync(
+ path.resolve(__dirname, '../../src/styles.css'),
+ 'utf8',
+);
+const THEMES = {
+ light: themeBlock({ opening: ":root,\n [data-theme='light'] {" }),
+ dark: themeBlock({ opening: "[data-theme='dark'] {" }),
+};
+const BRAND_HUE = Number(rootValue({ name: '--brand-h' }));
+const HUES = Array.from({ length: 72 }, (_, index) => index * 5);
+const CHROMA_SCALES = [0.4, 1];
+const AA_TEXT_RATIO = 4.5;
+
+describe('status scales', () => {
+ Object.entries(THEMES).forEach(([theme, block]) => {
+ brandColors.statusScales.forEach((scale) => {
+ it(`keeps ${scale} step 11 readable at every seeded hue in ${theme} mode`, () => {
+ const ink = step({ block, scale, step: 11 });
+ const failures = HUES.flatMap((hue) =>
+ CHROMA_SCALES.flatMap((chromaScale) =>
+ groundsFor({ block, theme, scale, hue, chromaScale })
+ .map((ground) => ({
+ ground: ground.name,
+ ratio: contrast({
+ first: toSrgb({
+ lightness: ink.lightness,
+ chroma: ink.chroma * chromaScale,
+ hue,
+ }),
+ second: ground.srgb,
+ }),
+ }))
+ .filter(({ ratio }) => ratio < AA_TEXT_RATIO)
+ .map(
+ ({ ground, ratio }) =>
+ `hue ${hue}, chroma ×${chromaScale}, on ${ground}: ${ratio.toFixed(
+ 2,
+ )}:1`,
+ ),
+ ),
+ );
+ expect(failures).toEqual([]);
+ });
+ });
+ });
+
+ it('defaults each status hue to the hue of its default solid', () => {
+ brandColors.statusScales.forEach((scale) => {
+ const seeded = brandColors.statusCssVariables({
+ statusColors: { [scale]: brandColors.defaultStatusColor({ scale }) },
+ });
+ expect(Number(seeded[`--${scale}-h`])).toBeCloseTo(
+ Number(rootValue({ name: `--${scale}-h` })),
+ 0,
+ );
+ expect(rootValue({ name: `--${scale}-c` })).toBe('1');
+ });
+ });
+});
+
+function groundsFor({
+ block,
+ theme,
+ scale,
+ hue,
+ chromaScale,
+}: {
+ block: string;
+ theme: string;
+ scale: string;
+ hue: number;
+ chromaScale: number;
+}): Ground[] {
+ const grays = [1, 2, 3].map((number) => {
+ const gray = step({ block, scale: 'gray', step: number });
+ return {
+ name: `gray-${number}`,
+ srgb: toSrgb({ ...gray, hue: BRAND_HUE }),
+ };
+ });
+ const tint = step({ block, scale, step: 3 });
+ const ownTint = {
+ name: `${scale}-3`,
+ srgb: toSrgb({
+ lightness: tint.lightness,
+ chroma: tint.chroma * chromaScale,
+ hue,
+ }),
+ };
+ const panel = theme === 'light' ? [{ name: 'panel', srgb: WHITE }] : [];
+ return [...grays, ownTint, ...panel];
+}
+
+function step({
+ block,
+ scale,
+ step: number,
+}: {
+ block: string;
+ scale: string;
+ step: number;
+}): { lightness: number; chroma: number } {
+ const match = block.match(
+ new RegExp(
+ `--${scale}-${number}: (?:var\\(--${scale}-seed, )?oklch\\(([\\d.]+)% calc\\(([\\d.]+) \\*`,
+ ),
+ );
+ if (!match) {
+ throw new Error(`--${scale}-${number} is not a seedable oklch step`);
+ }
+ return { lightness: Number(match[1]) / 100, chroma: Number(match[2]) };
+}
+
+function themeBlock({ opening }: { opening: string }): string {
+ const start = STYLES.indexOf(opening);
+ if (start === -1) {
+ throw new Error(`no theme block opening with ${opening}`);
+ }
+ return STYLES.slice(start, STYLES.indexOf('\n }', start));
+}
+
+function rootValue({ name }: { name: string }): string {
+ const match = STYLES.match(new RegExp(`:root \\{[^}]*?${name}: ([^;]+);`));
+ if (!match) {
+ throw new Error(`${name} is not set on :root`);
+ }
+ return match[1].trim();
+}
+
+function toSrgb({
+ lightness,
+ chroma,
+ hue,
+}: {
+ lightness: number;
+ chroma: number;
+ hue: number;
+}): Srgb {
+ const radians = (hue * Math.PI) / 180;
+ const a = chroma * Math.cos(radians);
+ const b = chroma * Math.sin(radians);
+ const l = (lightness + 0.3963377774 * a + 0.2158037573 * b) ** 3;
+ const m = (lightness - 0.1055613458 * a - 0.0638541728 * b) ** 3;
+ const s = (lightness - 0.0894841775 * a - 1.291485548 * b) ** 3;
+ return [
+ 4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s,
+ -1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s,
+ -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s,
+ ].map((channel) => Math.min(1, Math.max(0, channel)));
+}
+
+function contrast({ first, second }: { first: Srgb; second: Srgb }): number {
+ const [lighter, darker] = [luminance(first), luminance(second)].sort(
+ (x, y) => y - x,
+ );
+ return (lighter + 0.05) / (darker + 0.05);
+}
+
+function luminance([red, green, blue]: Srgb): number {
+ return 0.2126 * red + 0.7152 * green + 0.0722 * blue;
+}
+
+const WHITE: Srgb = [1, 1, 1];
+
+type Srgb = number[];
+
+type Ground = {
+ name: string;
+ srgb: Srgb;
+};
diff --git a/turbo.json b/turbo.json
index b964bd7dbf0..ceda4a00ed1 100644
--- a/turbo.json
+++ b/turbo.json
@@ -108,7 +108,7 @@
},
"lint": {
"dependsOn": ["^build"],
- "inputs": ["src/**", "test/**", ".eslintrc.json", "../../.eslintrc.json"],
+ "inputs": ["src/**", "test/**", "scripts/**", ".eslintrc.json", "../../.eslintrc.json"],
"outputs": []
},
"test": {