Skip to content

The open-source agent harness - the runtime layer that turns an LLM into a working agent.

2.3 KB
Raw Blame
/* Host Tailwind for this app's chrome. SDK styles inject via ThemeProvider. */
@import 'tailwindcss';

html,
body,
#root {
  height: 100%;
}

body {
  /* Pre-hydration paint before the SDK theme root mounts; kept literal intentionally. */
  color: #09090b;
  background: #fff;
}

.app-root {
  height: 100dvh;
  width: 100%;
}

.app-assistant {
  height: 100%;
}

/* Primary CTA fill: gradient isn't a valid Tailwind color token, so paint it as background-image. */
.harness-primary-gradient button.bg-primary-button-bg,
.harness-primary-gradient .auth-screen-button {
  background-image: radial-gradient(289.46% 144.73% at 8.33% 7.41%, #b27aff 0%, #155dfc 58.99%, #4f39f6 100%);
}

.harness-primary-gradient[data-theme='light'] aside.bg-sidebar-bg button.bg-primary-button-bg {
  box-shadow: 0 0.25rem 0.75rem color-mix(in oklab, #4f39f6 35%, transparent);
}

/* New Agent welcome only: polka-dot canvas on the empty thread viewport.
   `.new-agent-welcome` is set by NewAgentWelcomeScreen; WelcomeScreen unmounts once the thread has messages. */
[data-slot='aui_thread-viewport']:has(.new-agent-welcome) {
  background-image: radial-gradient(
    circle,
    color-mix(in oklab, var(--border, #d4d4d8) 85%, transparent) 1px,
    transparent 1px
  );
  background-size: 1.25rem 1.25rem;
}

.boot-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem;
  /* Match ThemeProvider mode so ThinkingOrb ink stays visible (body stays white). */
  color: var(--text-secondary, #71717a);
  background: var(--primary-bg, #fff);
}

.boot-spinner {
  box-sizing: border-box;
  width: 1.75rem;
  height: 1.75rem;
  border: 0.125rem solid color-mix(in oklab, currentColor 25%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: boot-spin 0.7s linear infinite;
}

@keyframes boot-spin {
  to {
    transform: rotate(360deg);
  }
}

.boot-screen[data-error='true'] {
  color: var(--failure-bg, #ef4444);
}

.harness-logout {
  display: inline-flex;
  height: 2rem;
  width: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.harness-logout:hover:not(:disabled) {
  background: color-mix(in srgb, currentColor 10%, transparent);
}

.harness-logout:disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}