Skip to content

3D engine that AI agents drive

1.9 KB
Raw Blame
/* Design tokens and the shared button for the website. Light is the default; dark follows the system. */
:root {
  --site-bg: #f8f7f1;
  --site-surface: #efede4;
  --site-sidebar: #ffffff;
  --site-text: #2a282d;
  --site-muted: #6e6c73;
  --site-border: #2a282d1f;
  --site-row-hover: #efede4;
  --site-row-active: #2a282d17;
  --site-focus: #df5829;
  --site-radius: 9px;
  --site-control-height: 34px;
  --site-motion-quick: 110ms;
  --site-motion-base: 170ms;
  --site-ease-out: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --site-bg: #17161a;
    --site-surface: #2a282d;
    --site-sidebar: #201f24;
    --site-text: #f1f0ec;
    --site-muted: #a09ea6;
    --site-border: #fefefd1f;
    --site-row-hover: #201f24;
    --site-row-active: #2a282d;
    --site-focus: #fc9132;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --site-motion-quick: 0ms;
    --site-motion-base: 0ms;
  }
}

.site-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--site-control-height);
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  white-space: normal;
  transition: background-color var(--site-motion-quick) var(--site-ease-out), color var(--site-motion-quick) var(--site-ease-out), box-shadow var(--site-motion-quick) var(--site-ease-out);
}
.site-button svg { flex: none; }
.site-button:hover:not(:disabled) { background: var(--site-surface); }
.site-button:active:not(:disabled) { background: var(--site-row-active); }
.site-button:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--site-focus), 0 0 0 4px color-mix(in srgb, var(--site-focus) 22%, transparent);
}
.site-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}