Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
/* SPDX-License-Identifier: FSL-1.1-MIT */
/* Copyright (c) 2026 Cua AI, Inc. */
@import "tailwindcss";
@custom-variant dark (&:is(.dark, .dark *));
/*
* Design tokens. Semantic names only; components never reference raw colors.
* Light is the default; `.dark` on <html> switches the palette (see index.html
* and src/lib/theme.ts). Cua Blue is `--brand`, kept for focus, selection and
* the active marker. Primary actions use the neutral `--primary`.
*/
:root {
--background: oklch(0.979 0.003 264.5);
--foreground: oklch(0.22 0.01 264);
--chrome: oklch(0.962 0.004 264);
--sidebar: oklch(0.955 0.005 264 / 0.78);
--sidebar-foreground: oklch(0.3 0.01 264);
--card: oklch(1 0 0);
--card-foreground: var(--foreground);
--popover: oklch(1 0 0);
--popover-foreground: var(--foreground);
--muted: oklch(0.945 0.004 264);
--muted-foreground: oklch(0.52 0.012 264);
--accent: oklch(0.93 0.006 264);
--accent-foreground: oklch(0.22 0.01 264);
--primary: oklch(0.25 0.012 264);
--primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.94 0.005 264);
--secondary-foreground: oklch(0.25 0.012 264);
--border: oklch(0.9 0.006 264);
--input: oklch(0.88 0.007 264);
--ring: oklch(0.764 0.108 227.5);
--brand: oklch(0.764 0.108 227.5);
--brand-strong: oklch(0.56 0.11 232);
--brand-surface: oklch(0.764 0.108 227.5 / 0.14);
--success: oklch(0.62 0.15 152);
/* The Space header's power icon while on: deeper than --success so a thin
glyph on the light surface reads (4.7:1 on --background, 4.1:1 on --accent). */
--power-on: oklch(0.527 0.137 150);
--warning: oklch(0.72 0.15 75);
--destructive: oklch(0.58 0.2 27);
--destructive-foreground: oklch(0.985 0 0);
/* Diff counts and bars on a push card (the card sits on --muted at half
strength over the page): the text colours clear 4.5:1 there, the bar
squares are the same hues, brighter, and need only 3:1. */
--diff-add: oklch(0.45 0.13 150);
--diff-del: oklch(0.5 0.18 27);
--diff-add-bar: oklch(0.6 0.15 150);
--diff-del-bar: oklch(0.6 0.2 27);
--diff-none-bar: oklch(0.52 0.012 264 / 0.3);
--thumb: oklch(0.93 0.005 264);
--thumb-line: oklch(0.905 0.005 264);
/* Borderless tiles and rows: a fill a step off the page, and one step more on hover. */
--tile: oklch(0.952 0.004 264);
--tile-hover: oklch(0.935 0.005 264);
/* The design language (CUA-2298; components/ui/grouped.tsx). One radius,
8 px (`rounded-lg`); regions differ by surface tone, not by lines; the
only lines span their container. A row's hover and selected surfaces: */
--row-hover: oklch(0.22 0.01 264 / 0.05);
--row-selected: oklch(0.22 0.01 264 / 0.07);
--glass-blur: 20px;
--glass-saturation: 1.6;
--shadow-color: 220 20% 20%;
/* Host shells set this to clear the macOS traffic lights (e.g. 78px). */
--titlebar-left-inset: 0px;
/* Room for the window controls overlay on Windows and Linux (Electron's
titleBarOverlay). 0 in browsers and on macOS, where there is no overlay. */
--titlebar-right-inset: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw));
--titlebar-height: 48px;
--sidebar-width: 232px;
}
.dark {
--background: oklch(0.209 0.009 264.4);
--foreground: oklch(0.94 0.005 264);
--chrome: oklch(0.19 0.009 264);
--sidebar: oklch(0.235 0.01 264 / 0.72);
--sidebar-foreground: oklch(0.86 0.008 264);
--card: oklch(0.245 0.01 264);
--card-foreground: var(--foreground);
--popover: oklch(0.255 0.011 264);
--popover-foreground: var(--foreground);
--muted: oklch(0.27 0.01 264);
--muted-foreground: oklch(0.68 0.012 264);
--accent: oklch(0.3 0.012 264);
--accent-foreground: oklch(0.96 0.004 264);
--primary: oklch(0.94 0.005 264);
--primary-foreground: oklch(0.21 0.01 264);
--secondary: oklch(0.29 0.011 264);
--secondary-foreground: oklch(0.94 0.005 264);
--border: oklch(1 0 0 / 0.09);
--input: oklch(1 0 0 / 0.13);
--brand-strong: oklch(0.8 0.1 227.5);
--brand-surface: oklch(0.764 0.108 227.5 / 0.16);
--success: oklch(0.72 0.15 152);
/* --success already reads on the dark surface (7.6:1). */
--power-on: var(--success);
--warning: oklch(0.8 0.14 80);
--destructive: oklch(0.66 0.19 25);
--diff-add: oklch(0.78 0.15 152);
--diff-del: oklch(0.76 0.14 25);
--diff-add-bar: oklch(0.72 0.15 152);
--diff-del-bar: oklch(0.66 0.19 25);
--diff-none-bar: oklch(1 0 0 / 0.22);
--thumb: oklch(0.255 0.01 264);
--thumb-line: oklch(0.285 0.01 264);
--tile: oklch(0.242 0.01 264);
--tile-hover: oklch(0.265 0.01 264);
--row-hover: oklch(1 0 0 / 0.05);
--row-selected: oklch(1 0 0 / 0.08);
--shadow-color: 220 40% 2%;
}
/* The first run's headline type (Outfit) and its one accent word (Instrument Serif). */
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url(/onboarding/fonts/outfit-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url(/onboarding/fonts/outfit-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/onboarding/fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); }
/* The new first run's floating keys and twinkling stars (the spaces.cua.ai hero's loops); still with reduced motion. */
.first-run-key { transform: rotate(var(--r)); animation: first-run-drift var(--dur) ease-in-out var(--delay) infinite alternate; will-change: transform; }
@keyframes first-run-drift {
from { transform: translate3d(calc(var(--dx) * -1), calc(var(--dy) * -1), 0) rotate(calc(var(--r) - var(--dr))); }
to { transform: translate3d(var(--dx), var(--dy), 0) rotate(calc(var(--r) + var(--dr))); }
}
.first-run-star { position: absolute; border-radius: 9999px; background: rgb(240 243 250); box-shadow: 0 0 3px rgb(240 243 250 / 0.7); opacity: var(--o); animation: first-run-twinkle var(--t) ease-in-out var(--d) infinite alternate; }
@keyframes first-run-twinkle { from { opacity: calc(var(--o) * 0.3); } }
@media (prefers-reduced-motion: reduce) {
.first-run-key, .first-run-star { animation: none; }
}
@theme {
--font-display: "Outfit", var(--font-sans);
--font-accent: "Instrument Serif", ui-serif, Georgia, serif;
--font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
--font-mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
/* Dense UI steps below text-xs. */
--text-2xs: 0.6875rem;
--text-2xs--line-height: 1rem;
--radius-sm: 0.25rem;
--radius-md: 0.375rem;
--radius-lg: 0.5rem;
--radius-xl: 0.75rem;
--radius-2xl: 1rem;
--ease-out-soft: cubic-bezier(0.32, 0.72, 0, 1);
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-chrome: var(--chrome);
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-brand: var(--brand);
--color-brand-strong: var(--brand-strong);
--color-brand-surface: var(--brand-surface);
--color-success: var(--success);
--color-power-on: var(--power-on);
--color-warning: var(--warning);
--color-destructive: var(--destructive);
--color-destructive-foreground: var(--destructive-foreground);
--color-diff-add: var(--diff-add);
--color-diff-del: var(--diff-del);
--color-diff-add-bar: var(--diff-add-bar);
--color-diff-del-bar: var(--diff-del-bar);
--color-diff-none-bar: var(--diff-none-bar);
--color-thumb: var(--thumb);
--color-thumb-line: var(--thumb-line);
--color-tile: var(--tile);
--color-tile-hover: var(--tile-hover);
--color-row-hover: var(--row-hover);
--color-row-selected: var(--row-selected);
}
@layer base {
* {
border-color: var(--color-border);
}
html,
body,
#root {
height: 100%;
}
html {
background: var(--background);
color: var(--foreground);
font-family: var(--font-sans);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
body {
font-size: 13px;
line-height: 1.45;
overflow: hidden;
user-select: none;
-webkit-user-select: none;
}
input,
textarea,
[contenteditable],
.selectable {
user-select: text;
-webkit-user-select: text;
}
::selection {
background: var(--brand-surface);
}
:focus-visible {
outline: 2px solid var(--ring);
outline-offset: 1px;
}
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-thumb {
background: color-mix(in oklch, var(--foreground) 14%, transparent);
border: 3px solid transparent;
background-clip: content-box;
border-radius: 999px;
}
::-webkit-scrollbar-track {
background: transparent;
}
}
/*
* A vertical scroller whose content keeps its place whether or not it scrolls (Settings' tabs, Home, All agents).
* `scrollbar-gutter: stable` alone is not enough: the app styles its scrollbars (`::-webkit-scrollbar` above), and
* WebKit (the Mac app's web view) reserves no gutter for a styled scrollbar, so the bar took 10 px from the column
* only on the pages that scroll and the centred column moved 5 px sideways between them. `overflow-y: scroll`
* keeps the bar's room on every page in every engine; its track is transparent, so a page that doesn't scroll
* shows nothing there.
*/
@utility scroll-y-stable {
overflow-y: scroll;
scrollbar-gutter: stable;
}
@utility glass {
background: color-mix(in oklch, var(--popover) 90%, transparent);
backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}
@utility shadow-float {
box-shadow:
0 0 0 1px hsl(var(--shadow-color) / 0.06),
0 2px 4px hsl(var(--shadow-color) / 0.06),
0 12px 32px -8px hsl(var(--shadow-color) / 0.22);
}
/* Window drag regions. Electron 44 inherits app-region into children, so
interactive descendants opt back out explicitly. */
@utility app-drag {
-webkit-app-region: drag;
app-region: drag;
}
@utility app-no-drag {
-webkit-app-region: no-drag;
app-region: no-drag;
}
.app-drag :is(button, a, input, select, textarea, [role="button"], [data-no-drag]) {
-webkit-app-region: no-drag;
app-region: no-drag;
}
/* The caret at the end of an agent message that is still being written. */
.markdown-streaming > .markdown > :is(p, blockquote):last-child::after,
.markdown-streaming > .markdown > :is(ul, ol):last-child > li:last-child::after {
content: "";
display: inline-block;
width: 2px;
height: 0.95em;
margin-left: 2px;
vertical-align: -0.12em;
background: var(--brand);
animation: caret-blink 1s steps(2, start) infinite;
}
@keyframes caret-blink {
to {
visibility: hidden;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* The thread's live row: three dots that pulse in turn. */
@keyframes live-dot {
0%,
80%,
100% {
opacity: 0.2;
}
40% {
opacity: 1;
}
}
.live-dot {
animation: live-dot 1.2s infinite both;
}
.live-dot:nth-child(2) {
animation-delay: 0.2s;
}
.live-dot:nth-child(3) {
animation-delay: 0.4s;
}
@media (prefers-reduced-motion: reduce) {
.live-dot {
animation: none;
opacity: 0.6;
}
}