Skip to content

armgit / macro

Public Imported from GitHub
0

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

fix(agents): use theme tokens for conversation settings (#8665)

teo991b6a3afe00
diff --git a/apps/web/src/components/ui/components/Tabs.tsx b/apps/web/src/components/ui/components/Tabs.tsx
index 10e73e0d58..6de3054641 100644
--- a/apps/web/src/components/ui/components/Tabs.tsx
+++ b/apps/web/src/components/ui/components/Tabs.tsx
@@ -230,11 +230,11 @@ function Track<T extends string>(props: TabsProps<T>) {
return (
<div
class={cn(
- 'relative flex h-9 items-center rounded-full bg-ink/3 light-mode:bg-[rgb(246_246_246)] dark-mode:bg-[rgb(24_24_24)]',
+ 'relative flex h-9 items-center rounded-full bg-ink/3',
props.fullWidth && 'w-full'
)}
>
- <KSegmentedControl.Indicator class="pointer-events-none absolute top-0 left-0 z-0 rounded-full bg-panel bg-[linear-gradient(to_bottom,color-mix(in_srgb,var(--color-ink)_2%,transparent),transparent)] transition-[transform,width,height] duration-250 ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none dark-mode:bg-[rgb(32_32_32)] light-mode:border light-mode:border-ink/7 light-mode:bg-[rgb(250_250_250)] light-mode:bg-none light-mode:shadow-[0_1px_6px_0_color-mix(in_srgb,var(--color-ink)_5%,transparent)]" />
+ <KSegmentedControl.Indicator class="pointer-events-none absolute top-0 left-0 z-0 rounded-full bg-panel bg-[linear-gradient(to_bottom,color-mix(in_srgb,var(--color-ink)_2%,transparent),transparent)] transition-[transform,width,height] duration-250 ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none dark-mode:bg-active light-mode:border light-mode:border-ink/7 light-mode:bg-none light-mode:shadow-[0_1px_6px_0_color-mix(in_srgb,var(--color-ink)_5%,transparent)]" />
<For each={props.options}>
{(option) => (
<KSegmentedControl.Item
diff --git a/apps/web/src/features/agents-view/agents-view.css b/apps/web/src/features/agents-view/agents-view.css
index df8d421ca7..661f322e92 100644
--- a/apps/web/src/features/agents-view/agents-view.css
+++ b/apps/web/src/features/agents-view/agents-view.css
@@ -379,13 +379,7 @@
grid-template-rows: 0fr;
margin-inline: 12px;
border-radius: 0 0 26px 26px;
- background: color-mix(in srgb, var(--panel) 95%, var(--ink));
- &:where([data-theme-light="false"] *) {
- background: rgb(20 20 20);
- }
- &:where([data-theme-light="true"] *) {
- background: rgb(250 250 250);
- }
+ background: color-mix(in srgb, var(--panel) 99%, var(--ink));
opacity: 0;
visibility: hidden;
transition: grid-template-rows 100ms cubic-bezier(0.77, 0, 0.175, 1), opacity 100ms cubic-bezier(0.23, 1, 0.32, 1), visibility 100ms;
diff --git a/docs/agent-guide/ai-chat.md b/docs/agent-guide/ai-chat.md
index 20ef64e9ea..90af530c56 100644
--- a/docs/agent-guide/ai-chat.md
+++ b/docs/agent-guide/ai-chat.md
@@ -390,7 +390,12 @@ the shimmer.
from the 28px-radius input; Chat / Code share one track with equal 8px insets
in the 52px footer. The dark track is lighter than the footer lip and the selected segment lighter again;
a faint gradient gives the dark toggle depth without borders or shadows.
- Light mode uses an off-white selected segment with a subtle border and shadow.
+ Light mode uses a panel-colored selected segment with a subtle border and shadow.
+ The footer, track, and selected segment follow the active theme's color tokens.
+ The footer mixes a little ink into the panel color so its rounded lower lip
+ remains distinct from the page, including behind the input's bottom corners.
+ Verify them with a colored dark theme (such as Moon) and a colored light theme,
+ including switching Chat / Code; none should retain fixed neutral grays.
The selected segment glides for 250ms with
an ease-out curve. The greeting text flips vertically into place on each mode change
with the same duration; both animations respect reduced motion.