Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | @import 'tailwindcss'; |
| 2 | @import 'fumadocs-ui/css/neutral.css'; |
| 3 | @import 'fumadocs-ui/css/preset.css'; |
| 4 | @import 'fumadocs-openapi/css/preset.css'; |
| 5 | @import "tw-animate-css"; |
| 6 | |
| 7 | @custom-variant dark (&:is(.dark *)); |
| 8 | |
| 9 | /* ========================================================================== |
| 10 | highlight.js tokens (Eve chat code blocks) |
| 11 | |
| 12 | The Eve chat renders code through a custom <CodeBlock> using highlight.js |
| 13 | (synchronous, browser-safe). highlight.js theme stylesheets aren't imported |
| 14 | directly because they're not dark-mode aware; instead the GitHub light/dark |
| 15 | token colors are inlined here and scoped to `.dark`. The container styles its |
| 16 | own background/padding, so only token colors live here. |
| 17 | ========================================================================== */ |
| 18 | .eve-hljs .hljs { |
| 19 | color: #24292e; |
| 20 | background: transparent; |
| 21 | } |
| 22 | .eve-hljs .hljs-doctag, |
| 23 | .eve-hljs .hljs-keyword, |
| 24 | .eve-hljs .hljs-meta .hljs-keyword, |
| 25 | .eve-hljs .hljs-template-tag, |
| 26 | .eve-hljs .hljs-template-variable, |
| 27 | .eve-hljs .hljs-type, |
| 28 | .eve-hljs .hljs-variable.language_ { |
| 29 | color: #d73a49; |
| 30 | } |
| 31 | .eve-hljs .hljs-title, |
| 32 | .eve-hljs .hljs-title.class_, |
| 33 | .eve-hljs .hljs-title.class_.inherited__, |
| 34 | .eve-hljs .hljs-title.function_ { |
| 35 | color: #6f42c1; |
| 36 | } |
| 37 | .eve-hljs .hljs-attr, |
| 38 | .eve-hljs .hljs-attribute, |
| 39 | .eve-hljs .hljs-literal, |
| 40 | .eve-hljs .hljs-meta, |
| 41 | .eve-hljs .hljs-number, |
| 42 | .eve-hljs .hljs-operator, |
| 43 | .eve-hljs .hljs-variable, |
| 44 | .eve-hljs .hljs-selector-attr, |
| 45 | .eve-hljs .hljs-selector-class, |
| 46 | .eve-hljs .hljs-selector-id { |
| 47 | color: #005cc5; |
| 48 | } |
| 49 | .eve-hljs .hljs-regexp, |
| 50 | .eve-hljs .hljs-string, |
| 51 | .eve-hljs .hljs-meta .hljs-string { |
| 52 | color: #032f62; |
| 53 | } |
| 54 | .eve-hljs .hljs-built_in, |
| 55 | .eve-hljs .hljs-symbol { |
| 56 | color: #e36209; |
| 57 | } |
| 58 | .eve-hljs .hljs-comment, |
| 59 | .eve-hljs .hljs-code, |
| 60 | .eve-hljs .hljs-formula { |
| 61 | color: #6a737d; |
| 62 | } |
| 63 | .eve-hljs .hljs-name, |
| 64 | .eve-hljs .hljs-quote, |
| 65 | .eve-hljs .hljs-selector-tag, |
| 66 | .eve-hljs .hljs-selector-pseudo { |
| 67 | color: #22863a; |
| 68 | } |
| 69 | .eve-hljs .hljs-subst { |
| 70 | color: #24292e; |
| 71 | } |
| 72 | .eve-hljs .hljs-section { |
| 73 | color: #005cc5; |
| 74 | font-weight: bold; |
| 75 | } |
| 76 | .eve-hljs .hljs-bullet { |
| 77 | color: #735c0f; |
| 78 | } |
| 79 | .eve-hljs .hljs-emphasis { |
| 80 | color: #24292e; |
| 81 | font-style: italic; |
| 82 | } |
| 83 | .eve-hljs .hljs-strong { |
| 84 | color: #24292e; |
| 85 | font-weight: bold; |
| 86 | } |
| 87 | .eve-hljs .hljs-addition { |
| 88 | color: #22863a; |
| 89 | background-color: #f0fff4; |
| 90 | } |
| 91 | .eve-hljs .hljs-deletion { |
| 92 | color: #b31d28; |
| 93 | background-color: #ffeef0; |
| 94 | } |
| 95 | |
| 96 | .dark .eve-hljs .hljs { |
| 97 | color: #c9d1d9; |
| 98 | background: transparent; |
| 99 | } |
| 100 | .dark .eve-hljs .hljs-doctag, |
| 101 | .dark .eve-hljs .hljs-keyword, |
| 102 | .dark .eve-hljs .hljs-meta .hljs-keyword, |
| 103 | .dark .eve-hljs .hljs-template-tag, |
| 104 | .dark .eve-hljs .hljs-template-variable, |
| 105 | .dark .eve-hljs .hljs-type, |
| 106 | .dark .eve-hljs .hljs-variable.language_ { |
| 107 | color: #ff7b72; |
| 108 | } |
| 109 | .dark .eve-hljs .hljs-title, |
| 110 | .dark .eve-hljs .hljs-title.class_, |
| 111 | .dark .eve-hljs .hljs-title.class_.inherited__, |
| 112 | .dark .eve-hljs .hljs-title.function_ { |
| 113 | color: #d2a8ff; |
| 114 | } |
| 115 | .dark .eve-hljs .hljs-attr, |
| 116 | .dark .eve-hljs .hljs-attribute, |
| 117 | .dark .eve-hljs .hljs-literal, |
| 118 | .dark .eve-hljs .hljs-meta, |
| 119 | .dark .eve-hljs .hljs-number, |
| 120 | .dark .eve-hljs .hljs-operator, |
| 121 | .dark .eve-hljs .hljs-variable, |
| 122 | .dark .eve-hljs .hljs-selector-attr, |
| 123 | .dark .eve-hljs .hljs-selector-class, |
| 124 | .dark .eve-hljs .hljs-selector-id { |
| 125 | color: #79c0ff; |
| 126 | } |
| 127 | .dark .eve-hljs .hljs-regexp, |
| 128 | .dark .eve-hljs .hljs-string, |
| 129 | .dark .eve-hljs .hljs-meta .hljs-string { |
| 130 | color: #a5d6ff; |
| 131 | } |
| 132 | .dark .eve-hljs .hljs-built_in, |
| 133 | .dark .eve-hljs .hljs-symbol { |
| 134 | color: #ffa657; |
| 135 | } |
| 136 | .dark .eve-hljs .hljs-comment, |
| 137 | .dark .eve-hljs .hljs-code, |
| 138 | .dark .eve-hljs .hljs-formula { |
| 139 | color: #8b949e; |
| 140 | } |
| 141 | .dark .eve-hljs .hljs-name, |
| 142 | .dark .eve-hljs .hljs-quote, |
| 143 | .dark .eve-hljs .hljs-selector-tag, |
| 144 | .dark .eve-hljs .hljs-selector-pseudo { |
| 145 | color: #7ee787; |
| 146 | } |
| 147 | .dark .eve-hljs .hljs-subst { |
| 148 | color: #c9d1d9; |
| 149 | } |
| 150 | .dark .eve-hljs .hljs-section { |
| 151 | color: #1f6feb; |
| 152 | font-weight: bold; |
| 153 | } |
| 154 | .dark .eve-hljs .hljs-bullet { |
| 155 | color: #f2cc60; |
| 156 | } |
| 157 | .dark .eve-hljs .hljs-emphasis { |
| 158 | color: #c9d1d9; |
| 159 | font-style: italic; |
| 160 | } |
| 161 | .dark .eve-hljs .hljs-strong { |
| 162 | color: #c9d1d9; |
| 163 | font-weight: bold; |
| 164 | } |
| 165 | .dark .eve-hljs .hljs-addition { |
| 166 | color: #aff5b4; |
| 167 | background-color: #033a16; |
| 168 | } |
| 169 | .dark .eve-hljs .hljs-deletion { |
| 170 | color: #ffdcd7; |
| 171 | background-color: #67060c; |
| 172 | } |
| 173 | |
| 174 | /* ========================================================================== |
| 175 | COMPOSIO DOCS |
| 176 | |
| 177 | Palette (synced with ~/composio/landing + ~/composio/composio_dashboard): |
| 178 | - Brand: #0007cd / oklch(0.387 0.264 264.1) — deep electric blue |
| 179 | - Light: Content #fbfbfb, Card #ffffff |
| 180 | - Dark: Content #0f0f0f, Card #1a1a1a |
| 181 | |
| 182 | Typography: |
| 183 | - All text: ABC Diatype (sans, loaded locally in app/layout.tsx) |
| 184 | - Code: JetBrains Mono |
| 185 | ========================================================================== */ |
| 186 | |
| 187 | @theme inline { |
| 188 | --font-sans: var(--font-sans), ui-sans-serif, system-ui, sans-serif; |
| 189 | --font-mono: var(--font-mono), ui-monospace, SFMono-Regular, Menlo, monospace; |
| 190 | --radius: 0; |
| 191 | --color-sidebar-ring: var(--sidebar-ring); |
| 192 | --color-sidebar-border: var(--sidebar-border); |
| 193 | --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); |
| 194 | --color-sidebar-accent: var(--sidebar-accent); |
| 195 | --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); |
| 196 | --color-sidebar-primary: var(--sidebar-primary); |
| 197 | --color-sidebar-foreground: var(--sidebar-foreground); |
| 198 | --color-sidebar: var(--sidebar); |
| 199 | --color-chart-5: var(--chart-5); |
| 200 | --color-chart-4: var(--chart-4); |
| 201 | --color-chart-3: var(--chart-3); |
| 202 | --color-chart-2: var(--chart-2); |
| 203 | --color-chart-1: var(--chart-1); |
| 204 | --color-ring: var(--ring); |
| 205 | --color-input: var(--input); |
| 206 | --color-border: var(--border); |
| 207 | --color-destructive: var(--destructive); |
| 208 | --color-accent-foreground: var(--accent-foreground); |
| 209 | --color-accent: var(--accent); |
| 210 | --color-muted-foreground: var(--muted-foreground); |
| 211 | --color-muted: var(--muted); |
| 212 | --color-secondary-foreground: var(--secondary-foreground); |
| 213 | --color-secondary: var(--secondary); |
| 214 | --color-primary-foreground: var(--primary-foreground); |
| 215 | --color-primary: var(--primary); |
| 216 | --color-popover-foreground: var(--popover-foreground); |
| 217 | --color-popover: var(--popover); |
| 218 | --color-card-foreground: var(--card-foreground); |
| 219 | --color-card: var(--card); |
| 220 | --color-foreground: var(--foreground); |
| 221 | --color-background: var(--background); |
| 222 | --radius-sm: calc(var(--radius) - 4px); |
| 223 | --radius-md: calc(var(--radius) - 2px); |
| 224 | --radius-lg: var(--radius); |
| 225 | --radius-xl: calc(var(--radius) + 4px); |
| 226 | --radius-2xl: calc(var(--radius) + 8px); |
| 227 | --radius-3xl: calc(var(--radius) + 12px); |
| 228 | --radius-4xl: calc(var(--radius) + 16px); |
| 229 | } |
| 230 | |
| 231 | /* ========================================================================== |
| 232 | Design Tokens |
| 233 | ========================================================================== */ |
| 234 | |
| 235 | /* ========================================================================== |
| 236 | Global Defaults |
| 237 | ========================================================================== */ |
| 238 | |
| 239 | html { |
| 240 | -webkit-tap-highlight-color: transparent; |
| 241 | } |
| 242 | |
| 243 | :root { |
| 244 | /* Brand — deep electric blue, shared with composio.dev + dashboard */ |
| 245 | --composio-brand: #0007cd; |
| 246 | --composio-orange: var(--composio-brand); /* legacy alias — kept for back-compat */ |
| 247 | --composio-sidebar: #fbfbfb; |
| 248 | |
| 249 | /* Fumadocs overrides - Light */ |
| 250 | --color-fd-background: #fbfbfb; |
| 251 | --color-fd-foreground: #0f0f0f; |
| 252 | --color-fd-muted: #f3f3f3; |
| 253 | --color-fd-muted-foreground: #585858; |
| 254 | --color-fd-border: #e5e5e5; |
| 255 | --color-fd-card: #ffffff; |
| 256 | --color-fd-card-foreground: #0f0f0f; |
| 257 | --color-fd-popover: #ffffff; |
| 258 | --color-fd-popover-foreground: #0f0f0f; |
| 259 | --color-fd-primary: #0f0f0f; |
| 260 | --color-fd-primary-foreground: #fbfbfb; |
| 261 | --color-fd-secondary: #f3f3f3; |
| 262 | --color-fd-secondary-foreground: #0f0f0f; |
| 263 | --color-fd-accent: #f3f3f3; |
| 264 | --color-fd-accent-foreground: #0f0f0f; |
| 265 | --color-fd-ring: var(--composio-brand); |
| 266 | --radius: 0; |
| 267 | --background: oklch(0.985 0 0); |
| 268 | --foreground: oklch(0.218 0 0); |
| 269 | --card: oklch(1 0 0); |
| 270 | --card-foreground: oklch(0.218 0 0); |
| 271 | --popover: oklch(1 0 0); |
| 272 | --popover-foreground: oklch(0.218 0 0); |
| 273 | --primary: oklch(0.387 0.264 264.1); |
| 274 | --primary-foreground: oklch(1 0 0); |
| 275 | --secondary: oklch(0.97 0 0); |
| 276 | --secondary-foreground: oklch(0.218 0 0); |
| 277 | --muted: oklch(0.97 0 0); |
| 278 | --muted-foreground: oklch(0.51 0 0); |
| 279 | --accent: oklch(0.97 0 0); |
| 280 | --accent-foreground: oklch(0.218 0 0); |
| 281 | --destructive: oklch(0.577 0.215 27.3); |
| 282 | --border: oklch(0.931 0 0); |
| 283 | --input: oklch(0.931 0 0); |
| 284 | --ring: oklch(0.387 0.264 264.1); |
| 285 | --chart-1: oklch(0.646 0.222 41.116); |
| 286 | --chart-2: oklch(0.6 0.118 184.704); |
| 287 | --chart-3: oklch(0.398 0.07 227.392); |
| 288 | --chart-4: oklch(0.828 0.189 84.429); |
| 289 | --chart-5: oklch(0.769 0.188 70.08); |
| 290 | --sidebar: oklch(0.985 0 0); |
| 291 | --sidebar-foreground: oklch(0.145 0 0); |
| 292 | --sidebar-primary: oklch(0.205 0 0); |
| 293 | --sidebar-primary-foreground: oklch(0.985 0 0); |
| 294 | --sidebar-accent: oklch(0.97 0 0); |
| 295 | --sidebar-accent-foreground: oklch(0.205 0 0); |
| 296 | --sidebar-border: oklch(0.922 0 0); |
| 297 | --sidebar-ring: oklch(0.708 0 0); |
| 298 | } |
| 299 | |
| 300 | .dark { |
| 301 | /* Lift the brand blue on dark backgrounds — `#0007cd` is too dark |
| 302 | against `#0f0f0f`. */ |
| 303 | --composio-brand: #5B8BF0; |
| 304 | --composio-orange: var(--composio-brand); |
| 305 | |
| 306 | --composio-sidebar: #0f0f0f; |
| 307 | |
| 308 | /* Fumadocs overrides - Dark */ |
| 309 | --color-fd-background: #0f0f0f; |
| 310 | --color-fd-foreground: #fbfbfb; |
| 311 | --color-fd-muted: #1f1f1f; |
| 312 | --color-fd-muted-foreground: #b4b4b4; |
| 313 | --color-fd-border: rgba(255, 255, 255, 0.06); |
| 314 | --color-fd-card: #1c1c1c; |
| 315 | --color-fd-card-foreground: #fbfbfb; |
| 316 | --color-fd-popover: #1a1a1a; |
| 317 | --color-fd-popover-foreground: #fbfbfb; |
| 318 | --color-fd-primary: #fbfbfb; |
| 319 | --color-fd-primary-foreground: #0f0f0f; |
| 320 | --color-fd-secondary: #1a1a1a; |
| 321 | --color-fd-secondary-foreground: #fbfbfb; |
| 322 | --color-fd-accent: #1a1a1a; |
| 323 | --color-fd-accent-foreground: #fbfbfb; |
| 324 | --color-fd-ring: var(--composio-brand); |
| 325 | --background: oklch(0.159 0 0); |
| 326 | --foreground: oklch(0.985 0 0); |
| 327 | --card: oklch(0.218 0 0); |
| 328 | --card-foreground: oklch(0.985 0 0); |
| 329 | --popover: oklch(0.218 0 0); |
| 330 | --popover-foreground: oklch(0.985 0 0); |
| 331 | --primary: oklch(0.985 0 0); |
| 332 | --primary-foreground: oklch(0.218 0 0); |
| 333 | --secondary: oklch(0.269 0 0); |
| 334 | --secondary-foreground: oklch(0.985 0 0); |
| 335 | --muted: oklch(0.269 0 0); |
| 336 | --muted-foreground: oklch(0.706 0 0); |
| 337 | --accent: oklch(0.269 0 0); |
| 338 | --accent-foreground: oklch(0.985 0 0); |
| 339 | --destructive: oklch(0.637 0.208 25.3); |
| 340 | --border: oklch(1 0 0 / 6%); |
| 341 | --input: oklch(1 0 0 / 15%); |
| 342 | --ring: oklch(0.745 0.128 275); |
| 343 | --chart-1: oklch(0.488 0.243 264.376); |
| 344 | --chart-2: oklch(0.696 0.17 162.48); |
| 345 | --chart-3: oklch(0.769 0.188 70.08); |
| 346 | --chart-4: oklch(0.627 0.265 303.9); |
| 347 | --chart-5: oklch(0.645 0.246 16.439); |
| 348 | --sidebar: oklch(0.205 0 0); |
| 349 | --sidebar-foreground: oklch(0.985 0 0); |
| 350 | --sidebar-primary: oklch(0.488 0.243 264.376); |
| 351 | --sidebar-primary-foreground: oklch(0.985 0 0); |
| 352 | --sidebar-accent: oklch(0.269 0 0); |
| 353 | --sidebar-accent-foreground: oklch(0.985 0 0); |
| 354 | --sidebar-border: oklch(1 0 0 / 6%); |
| 355 | --sidebar-ring: oklch(0.556 0 0); |
| 356 | } |
| 357 | |
| 358 | /* ========================================================================== |
| 359 | Base |
| 360 | ========================================================================== */ |
| 361 | |
| 362 | html { |
| 363 | background-color: var(--color-fd-background); |
| 364 | } |
| 365 | |
| 366 | /* ========================================================================== |
| 367 | Typography |
| 368 | ========================================================================== */ |
| 369 | |
| 370 | /* Headings */ |
| 371 | h1, h2, h3, h4 { |
| 372 | font-family: var(--font-sans); |
| 373 | font-weight: 500; |
| 374 | letter-spacing: -0.01em; |
| 375 | } |
| 376 | |
| 377 | /* Code - IBM Plex Mono (uses --font-mono from Next.js) */ |
| 378 | pre, code, kbd, samp { |
| 379 | font-family: var(--font-mono), ui-monospace, monospace; |
| 380 | } |
| 381 | |
| 382 | :not(pre) > code { |
| 383 | padding: 0.125rem 0.375rem; |
| 384 | border-radius: 0.25rem; |
| 385 | font-size: 0.875em; |
| 386 | } |
| 387 | |
| 388 | pre { |
| 389 | border-radius: var(--radius); |
| 390 | } |
| 391 | |
| 392 | /* ========================================================================== |
| 393 | Links |
| 394 | ========================================================================== */ |
| 395 | |
| 396 | :is(.prose, [data-fumadocs-body]) a:not([data-card]) { |
| 397 | color: var(--composio-orange); |
| 398 | text-decoration: none; |
| 399 | } |
| 400 | |
| 401 | /* Heading anchors stay neutral */ |
| 402 | .prose :is(h1, h2, h3, h4) a { |
| 403 | color: inherit; |
| 404 | } |
| 405 | |
| 406 | a:focus-visible { |
| 407 | outline: 2px solid var(--composio-orange); |
| 408 | outline-offset: 2px; |
| 409 | border-radius: 2px; |
| 410 | } |
| 411 | |
| 412 | /* ========================================================================== |
| 413 | Navigation - HomeLayout + DocsLayout nested structure |
| 414 | ========================================================================== */ |
| 415 | |
| 416 | #nd-home-layout { |
| 417 | --fd-layout-width: 100%; |
| 418 | } |
| 419 | |
| 420 | #nd-sidebar { |
| 421 | position: sticky; |
| 422 | top: 3.5rem; |
| 423 | height: calc(100dvh - 3.5rem); |
| 424 | background-color: var(--composio-sidebar); |
| 425 | } |
| 426 | |
| 427 | /* Hide empty sidebar header when no title is set */ |
| 428 | #nd-sidebar > div:first-child:has(a:empty):not(:has(.docs-product-switcher)) { |
| 429 | display: none; |
| 430 | } |
| 431 | |
| 432 | /* Sidebar nav items */ |
| 433 | #nd-sidebar [data-radix-scroll-area-viewport] a, |
| 434 | #nd-sidebar [data-radix-scroll-area-viewport] button { |
| 435 | padding: 0.375rem 0.5rem; |
| 436 | border-radius: 0.375rem; |
| 437 | color: var(--color-fd-foreground); |
| 438 | transition: background-color 0.15s ease; |
| 439 | } |
| 440 | |
| 441 | #nd-sidebar [data-radix-scroll-area-viewport] a:hover, |
| 442 | #nd-sidebar [data-radix-scroll-area-viewport] button:hover { |
| 443 | background-color: rgba(0, 0, 0, 0.05); |
| 444 | } |
| 445 | |
| 446 | .dark #nd-sidebar [data-radix-scroll-area-viewport] a:hover, |
| 447 | .dark #nd-sidebar [data-radix-scroll-area-viewport] button:hover { |
| 448 | background-color: rgba(255, 255, 255, 0.05); |
| 449 | } |
| 450 | |
| 451 | #nd-sidebar [data-radix-scroll-area-viewport] a[data-active="true"] { |
| 452 | color: var(--composio-orange); |
| 453 | } |
| 454 | |
| 455 | /* CLI commands table — prevent command column from wrapping */ |
| 456 | .cli-commands td:first-child code { |
| 457 | white-space: nowrap; |
| 458 | } |
| 459 | |
| 460 | /* Section headers (separators) - more spacing for visual group separation */ |
| 461 | #nd-sidebar p.inline-flex { |
| 462 | margin-top: 1.75rem !important; |
| 463 | margin-bottom: 0.5rem; |
| 464 | font-size: 0.6875rem; |
| 465 | font-weight: 500; |
| 466 | text-transform: uppercase; |
| 467 | letter-spacing: 0.05em; |
| 468 | color: var(--color-fd-muted-foreground); |
| 469 | } |
| 470 | |
| 471 | /* First section header - less top margin */ |
| 472 | #nd-sidebar p.inline-flex:first-of-type { |
| 473 | margin-top: 0 !important; |
| 474 | } |
| 475 | |
| 476 | #nd-sidebar-mobile { |
| 477 | background-color: var(--composio-sidebar); |
| 478 | } |
| 479 | |
| 480 | [data-active="true"] { |
| 481 | color: var(--composio-orange); |
| 482 | background: transparent; |
| 483 | } |
| 484 | |
| 485 | /* ========================================================================== |
| 486 | Docs Page |
| 487 | ========================================================================== */ |
| 488 | |
| 489 | #nd-page { |
| 490 | padding-top: 1.5rem; |
| 491 | } |
| 492 | |
| 493 | @media (min-width: 768px) { |
| 494 | #nd-page { |
| 495 | padding-top: 2rem; |
| 496 | } |
| 497 | } |
| 498 | |
| 499 | /* ========================================================================== |
| 500 | Components |
| 501 | ========================================================================== */ |
| 502 | |
| 503 | /* Form inputs - remove default outline, rely on focus-visible styles */ |
| 504 | input:focus, |
| 505 | select:focus, |
| 506 | textarea:focus { |
| 507 | outline: none; |
| 508 | } |
| 509 | |
| 510 | input:focus-visible, |
| 511 | select:focus-visible, |
| 512 | textarea:focus-visible { |
| 513 | outline: none; |
| 514 | } |
| 515 | |
| 516 | [data-card="true"] { |
| 517 | background: var(--color-fd-muted); |
| 518 | } |
| 519 | |
| 520 | [data-card="true"]:hover { |
| 521 | border-color: var(--composio-orange); |
| 522 | } |
| 523 | |
| 524 | [data-fumadocs-tabs] [data-state="active"] { |
| 525 | color: var(--composio-orange); |
| 526 | border-color: var(--composio-orange); |
| 527 | } |
| 528 | |
| 529 | .prose blockquote { |
| 530 | border-left-color: var(--composio-orange); |
| 531 | background: var(--color-fd-muted); |
| 532 | padding: 1rem; |
| 533 | border-radius: 0 var(--radius) var(--radius) 0; |
| 534 | } |
| 535 | |
| 536 | /* Callouts — muted links, not brand accent */ |
| 537 | [data-fumadocs-body] [data-callout] a:not([data-card]) { |
| 538 | color: inherit; |
| 539 | text-decoration: underline; |
| 540 | text-underline-offset: 2px; |
| 541 | text-decoration-color: var(--color-fd-border); |
| 542 | } |
| 543 | |
| 544 | [data-fumadocs-body] [data-callout] a:not([data-card]):hover { |
| 545 | text-decoration-color: currentColor; |
| 546 | } |
| 547 | |
| 548 | /* ========================================================================== |
| 549 | Header Components |
| 550 | ========================================================================== */ |
| 551 | |
| 552 | /* Shared transition timing */ |
| 553 | :root { |
| 554 | --header-transition: 0.15s ease; |
| 555 | } |
| 556 | |
| 557 | /* Header spacing & rhythm */ |
| 558 | #nd-nav { |
| 559 | gap: 2rem; |
| 560 | } |
| 561 | |
| 562 | /* Nav links container */ |
| 563 | #nd-nav nav { |
| 564 | gap: 0.25rem; |
| 565 | } |
| 566 | |
| 567 | /* Nav link items - consistent height (36px touch target) */ |
| 568 | #nd-nav nav > a { |
| 569 | display: inline-flex; |
| 570 | align-items: center; |
| 571 | height: 2.25rem; |
| 572 | padding: 0 0.75rem; |
| 573 | font-size: 0.875rem; |
| 574 | font-weight: 500; |
| 575 | color: var(--color-fd-muted-foreground); |
| 576 | border-radius: 0.375rem; |
| 577 | transition: color var(--header-transition), background var(--header-transition); |
| 578 | } |
| 579 | |
| 580 | #nd-nav nav > a:hover { |
| 581 | color: var(--color-fd-foreground); |
| 582 | background: var(--color-fd-accent); |
| 583 | } |
| 584 | |
| 585 | #nd-nav nav > a:focus-visible { |
| 586 | outline: 2px solid var(--composio-orange); |
| 587 | outline-offset: 2px; |
| 588 | } |
| 589 | |
| 590 | /* Active nav link */ |
| 591 | #nd-nav nav > a[data-active="true"] { |
| 592 | color: var(--composio-orange); |
| 593 | } |
| 594 | |
| 595 | #nd-nav nav > a[data-active="true"]:hover { |
| 596 | background: transparent; |
| 597 | } |
| 598 | |
| 599 | /* Right side items - consistent gaps */ |
| 600 | #nd-nav > div:last-child { |
| 601 | gap: 0.5rem; |
| 602 | } |
| 603 | |
| 604 | /* Social icon links */ |
| 605 | #nd-nav a[href^="https://github.com/"], |
| 606 | #nd-nav a[href^="https://x.com/"] { |
| 607 | display: inline-flex; |
| 608 | align-items: center; |
| 609 | justify-content: center; |
| 610 | width: 2.25rem; |
| 611 | height: 2.25rem; |
| 612 | border-radius: 0.375rem; |
| 613 | color: var(--color-fd-muted-foreground); |
| 614 | transition: color var(--header-transition), background var(--header-transition); |
| 615 | } |
| 616 | |
| 617 | #nd-nav a[href^="https://github.com/"]:hover, |
| 618 | #nd-nav a[href^="https://x.com/"]:hover { |
| 619 | color: var(--color-fd-foreground); |
| 620 | background: var(--color-fd-accent); |
| 621 | } |
| 622 | |
| 623 | #nd-nav a[href^="https://github.com/"]:focus-visible, |
| 624 | #nd-nav a[href^="https://x.com/"]:focus-visible { |
| 625 | outline: 2px solid var(--composio-orange); |
| 626 | outline-offset: 2px; |
| 627 | } |
| 628 | |
| 629 | /* Search toggle - match style */ |
| 630 | #nd-nav [data-search-toggle] { |
| 631 | height: 2.25rem; |
| 632 | border-radius: 0.375rem; |
| 633 | transition: border-color var(--header-transition); |
| 634 | } |
| 635 | |
| 636 | #nd-nav [data-search-toggle]:focus-visible { |
| 637 | outline: 2px solid var(--composio-orange); |
| 638 | outline-offset: 2px; |
| 639 | } |
| 640 | |
| 641 | /* Dashboard button - CTA with consistent height */ |
| 642 | nav a[href*="app.composio"] { |
| 643 | display: inline-flex; |
| 644 | align-items: center; |
| 645 | height: 2.25rem; |
| 646 | padding: 0 0.875rem; |
| 647 | background: var(--color-fd-primary); |
| 648 | color: var(--color-fd-primary-foreground); |
| 649 | border-radius: 0.375rem; |
| 650 | font-size: 0.8125rem; |
| 651 | font-weight: 500; |
| 652 | transition: opacity var(--header-transition); |
| 653 | } |
| 654 | |
| 655 | nav a[href*="app.composio"]:hover { |
| 656 | opacity: 0.9; |
| 657 | } |
| 658 | |
| 659 | nav a[href*="app.composio"]:focus-visible { |
| 660 | outline: 2px solid var(--composio-orange); |
| 661 | outline-offset: 2px; |
| 662 | } |
| 663 | |
| 664 | /* ========================================================================== |
| 665 | OpenAPI Reference |
| 666 | |
| 667 | This selector depends on fumadocs-openapi's internal classes. Verify it after |
| 668 | dependency updates. |
| 669 | ========================================================================== */ |
| 670 | |
| 671 | /* Hide redundant "application/json" content type labels */ |
| 672 | p.text-fd-muted-foreground.not-prose:has(> code.text-xs) { |
| 673 | display: none; |
| 674 | } |
| 675 | |
| 676 | |
| 677 | /* ========================================================================== |
| 678 | Table of Contents (Right Sidebar) |
| 679 | ========================================================================== */ |
| 680 | |
| 681 | /* Prevent "On this page" from being cut off by header */ |
| 682 | #nd-toc { |
| 683 | top: 4rem; |
| 684 | } |
| 685 | |
| 686 | /* TOC - scope primary color to orange for active indicator */ |
| 687 | #nd-toc { |
| 688 | --color-fd-primary: var(--composio-orange); |
| 689 | } |
| 690 | |
| 691 | /* Accordion copy-link button: hidden by default, visible on hover */ |
| 692 | [data-accordion-value] button[aria-label="Copy Link"] { |
| 693 | opacity: 0; |
| 694 | transition: opacity 150ms; |
| 695 | } |
| 696 | [data-accordion-value]:hover button[aria-label="Copy Link"], |
| 697 | [data-accordion-value]:focus-within button[aria-label="Copy Link"] { |
| 698 | opacity: 1; |
| 699 | } |
| 700 | /* Green check feedback on copy (matches heading anchor style) */ |
| 701 | [data-accordion-value] button[aria-label="Copy Link"]:has(.lucide-check) { |
| 702 | opacity: 1; |
| 703 | color: var(--color-green-500); |
| 704 | } |
| 705 | |
| 706 | /* ========================================================================== |
| 707 | Search Dialog – Mobile Scroll Fix |
| 708 | On mobile, when the keyboard opens the viewport shrinks. Constrain the |
| 709 | search result list to the remaining space so it stays scrollable. |
| 710 | ========================================================================== */ |
| 711 | |
| 712 | @media (max-width: 767px) { |
| 713 | /* Override the fixed max-h-[460px] on the inner scrollable div inside SearchDialogList */ |
| 714 | .search-scroll-container > div > div { |
| 715 | max-height: 100%; |
| 716 | } |
| 717 | } |
| 718 | |
| 719 | /* ========================================================================== |
| 720 | Decimal AI Widget – Push-Sidebar Transition |
| 721 | The widget sets body.style.maxWidth inline when opening. Smooth it out |
| 722 | and prevent horizontal overflow while the sidebar animates. |
| 723 | ========================================================================== */ |
| 724 | |
| 725 | body { |
| 726 | overflow-x: clip; |
| 727 | transition: max-width 0.3s ease; |
| 728 | } |
| 729 | |
| 730 | /* Hide Decimal's built-in launcher tab and floating button — we trigger |
| 731 | the widget from our own "Ask AI" button in the nav (see ask-ai-button.tsx). */ |
| 732 | .decimal-widget-sidebar-tab, |
| 733 | .decimal-widget-button { |
| 734 | display: none !important; |
| 735 | } |
| 736 | |
| 737 | @layer base { |
| 738 | * { |
| 739 | @apply border-border outline-ring/50; |
| 740 | } |
| 741 | body { |
| 742 | @apply bg-background text-foreground; |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | /* ========================================================================== |
| 747 | 404 glitch animation (ported from landing site) |
| 748 | ========================================================================== */ |
| 749 | @keyframes glitch-404 { |
| 750 | 0%, |
| 751 | 3% { |
| 752 | text-shadow: none; |
| 753 | transform: translate(0); |
| 754 | } |
| 755 | 6% { |
| 756 | text-shadow: |
| 757 | 3px 0 var(--composio-brand), |
| 758 | -3px 0 #cd0700; |
| 759 | transform: translate(-3px, 1px); |
| 760 | } |
| 761 | 12% { |
| 762 | text-shadow: |
| 763 | -3px 0 var(--composio-brand), |
| 764 | 3px 0 #cd0700; |
| 765 | transform: translate(3px, -1px); |
| 766 | } |
| 767 | 18% { |
| 768 | text-shadow: |
| 769 | 2px 0 var(--composio-brand), |
| 770 | -2px 0 #cd0700; |
| 771 | transform: translate(-1px, 2px); |
| 772 | } |
| 773 | 24% { |
| 774 | text-shadow: |
| 775 | -1px 0 var(--composio-brand), |
| 776 | 1px 0 #cd0700; |
| 777 | transform: translate(2px, -1px); |
| 778 | } |
| 779 | 30%, |
| 780 | 100% { |
| 781 | text-shadow: none; |
| 782 | transform: translate(0); |
| 783 | } |
| 784 | } |
| 785 | |
| 786 | .animate-glitch-404 { |
| 787 | animation: glitch-404 2.6s ease-out infinite; |
| 788 | } |
| 789 | |
| 790 | /* ========================================================================== |
| 791 | Hero demo — fade-in for prompts, traces, and responses |
| 792 | ========================================================================== */ |
| 793 | @keyframes hero-demo-fade-in { |
| 794 | from { |
| 795 | opacity: 0; |
| 796 | transform: translateY(4px); |
| 797 | } |
| 798 | to { |
| 799 | opacity: 1; |
| 800 | transform: translateY(0); |
| 801 | } |
| 802 | } |
| 803 | |
| 804 | .animate-fade-in { |
| 805 | animation: hero-demo-fade-in 280ms ease-out both; |
| 806 | } |
| 807 | |
| 808 | /* ========================================================================== |
| 809 | Landing-hero theme tokens — keep chat / card skins legible in both |
| 810 | light and dark mode. Skins reference these via `var(--hero-*)`. |
| 811 | ========================================================================== */ |
| 812 | :root { |
| 813 | --hero-surface: #ffffff; |
| 814 | --hero-surface-2: #f6f5f3; |
| 815 | --hero-bubble: #f3f3f1; |
| 816 | --hero-text: rgba(15, 15, 15, 0.9); |
| 817 | --hero-text-muted: rgba(15, 15, 15, 0.45); |
| 818 | --hero-border: rgba(15, 15, 15, 0.12); |
| 819 | --hero-border-soft: rgba(15, 15, 15, 0.06); |
| 820 | --hero-shimmer: #0a0a0a; |
| 821 | } |
| 822 | .dark { |
| 823 | /* Aligned with --color-fd-card / --color-fd-muted so the hero chat |
| 824 | panel sits at the same grey as the feature cards below it; the |
| 825 | darker `#141416` chat surface used to read as a shadow patch |
| 826 | against the page bg. */ |
| 827 | --hero-surface: #1c1c1c; |
| 828 | --hero-surface-2: #222222; |
| 829 | --hero-bubble: #262626; |
| 830 | --hero-text: rgba(245, 245, 247, 0.92); |
| 831 | --hero-text-muted: rgba(245, 245, 247, 0.5); |
| 832 | --hero-border: rgba(255, 255, 255, 0.08); |
| 833 | --hero-border-soft: rgba(255, 255, 255, 0.04); |
| 834 | --hero-shimmer: #f5f5f7; |
| 835 | } |
| 836 | |
| 837 | /* ========================================================================== |
| 838 | Hero "active card" drop shadow — neutral black blur around any card |
| 839 | that lights up in the agent loop. Lives in plain CSS because Tailwind |
| 840 | v4's arbitrary `shadow-[...rgba(...)...]` doesn't parse the commas |
| 841 | inside `rgba()` cleanly. |
| 842 | ========================================================================== */ |
| 843 | .hero-card-shadow { |
| 844 | /* `!important` needed because Tailwind v4's `transition-shadow` chains |
| 845 | `box-shadow` through several CSS variables (`--tw-shadow`, etc.) that |
| 846 | default to `0 0 #0000`, which otherwise overrides this declaration. */ |
| 847 | box-shadow: 0 0 40px rgba(0, 0, 0, 0.18) !important; |
| 848 | } |
| 849 | .dark .hero-card-shadow { |
| 850 | box-shadow: 0 0 40px rgba(0, 0, 0, 0.55) !important; |
| 851 | } |
| 852 | |
| 853 | /* Latest tool-call name in the mock chat — shimmer effect on a dark |
| 854 | gradient (light mode) / light gradient (dark mode). Defined in CSS |
| 855 | instead of inline so the gradient stops can reference theme tokens |
| 856 | without breaking on `var(...) + hex-alpha` concatenation. */ |
| 857 | .hero-tool-shimmer { |
| 858 | background-image: linear-gradient( |
| 859 | 90deg, |
| 860 | rgba(15, 15, 15, 0.35) 0%, |
| 861 | rgba(15, 15, 15, 0.7) 40%, |
| 862 | rgba(15, 15, 15, 1) 50%, |
| 863 | rgba(15, 15, 15, 0.7) 60%, |
| 864 | rgba(15, 15, 15, 0.35) 100% |
| 865 | ); |
| 866 | background-size: 200% 100%; |
| 867 | background-clip: text; |
| 868 | -webkit-background-clip: text; |
| 869 | color: transparent; |
| 870 | animation: shimmer-text 2s ease-in-out infinite; |
| 871 | } |
| 872 | .dark .hero-tool-shimmer { |
| 873 | background-image: linear-gradient( |
| 874 | 90deg, |
| 875 | rgba(245, 245, 247, 0.35) 0%, |
| 876 | rgba(245, 245, 247, 0.7) 40%, |
| 877 | rgba(245, 245, 247, 1) 50%, |
| 878 | rgba(245, 245, 247, 0.7) 60%, |
| 879 | rgba(245, 245, 247, 0.35) 100% |
| 880 | ); |
| 881 | } |
| 882 | |
| 883 | /* ========================================================================== |
| 884 | Landing-hero keyframes (ported from landing-new) |
| 885 | ========================================================================== */ |
| 886 | @keyframes hero-cpu-pulse { |
| 887 | 0%, |
| 888 | 100% { |
| 889 | opacity: 0.2; |
| 890 | } |
| 891 | 50% { |
| 892 | opacity: 1; |
| 893 | } |
| 894 | } |
| 895 | |
| 896 | @keyframes pulse-dot { |
| 897 | 0%, |
| 898 | 100% { |
| 899 | opacity: 1; |
| 900 | } |
| 901 | 50% { |
| 902 | opacity: 0.3; |
| 903 | } |
| 904 | } |
| 905 | |
| 906 | @keyframes shimmer-text { |
| 907 | 0% { |
| 908 | background-position: 100% 0; |
| 909 | } |
| 910 | 100% { |
| 911 | background-position: -100% 0; |
| 912 | } |
| 913 | } |
| 914 | |
| 915 | /* Square the navbar theme toggle (and its inner icons) to match the |
| 916 | zero-radius search input. Fumadocs hard-codes `rounded-full` via |
| 917 | Tailwind utilities, so the override needs !important to beat the |
| 918 | utility layer's specificity. */ |
| 919 | [data-theme-toggle], |
| 920 | [data-theme-toggle] > * { |
| 921 | border-radius: 0 !important; |
| 922 | } |
| 923 | |
| 924 | |
| 925 | /* ========================================================================== |
| 926 | TERMINAL-KIT (ported from landing-new /dev — components/terminal-kit) |
| 927 | Trimmed to what the InChatAuthTerminal component uses: the Claude palette |
| 928 | (dark + light), structural tokens, the stacked Input field, and the shared |
| 929 | session/body classes. Map the kit's mono font onto the docs JetBrains Mono. |
| 930 | ========================================================================== */ |
| 931 | @keyframes terminal-cursor-blink { |
| 932 | 0%, 49% { opacity: 1; } |
| 933 | 50%, 100% { opacity: 0; } |
| 934 | } |
| 935 | |
| 936 | .terminal-theme { |
| 937 | --font-geist-mono: var(--font-mono); |
| 938 | } |
| 939 | |
| 940 | .terminal-theme { |
| 941 | --terminal-radius-window: 12px; |
| 942 | --terminal-radius-panel: 4px; |
| 943 | --terminal-radius-sm: 2px; |
| 944 | --terminal-session-pad-x: 14px; |
| 945 | --terminal-session-pad-y: 12px; |
| 946 | --terminal-session-gap: 8px; |
| 947 | --terminal-session-inset: 14px; |
| 948 | --terminal-session-sent-pad-x: 10px; |
| 949 | background-color: var(--terminal-bg); |
| 950 | color: var(--terminal-fg); |
| 951 | font-family: var(--font-geist-mono), ui-monospace, SFMono-Regular, "Roboto Mono", |
| 952 | Menlo, Monaco, "Liberation Mono", "Courier New", monospace; |
| 953 | font-size: 12px; |
| 954 | line-height: 1.625; |
| 955 | border-radius: var(--terminal-radius-window); |
| 956 | } |
| 957 | |
| 958 | .terminal-theme-claude { |
| 959 | --terminal-bg: #0b0b0b; |
| 960 | --terminal-editor-bg: #1f1f1e; |
| 961 | --terminal-fg: #ffffff; |
| 962 | --terminal-white: #ffffff; |
| 963 | --terminal-dim: #c3c2b7; |
| 964 | --terminal-dimmer: #898781; |
| 965 | --terminal-vdim: #3d3d3d; |
| 966 | --terminal-surface: #232323; |
| 967 | --terminal-input-bg: #1f1f1e; |
| 968 | --terminal-popover: #2a2a2a; |
| 969 | --terminal-panel: rgba(255, 255, 255, 0.05); |
| 970 | --terminal-panel-strong: rgba(255, 255, 255, 0.07); |
| 971 | --terminal-border: rgba(255, 255, 255, 0.1); |
| 972 | --terminal-preview-bg: #0e0e0d; |
| 973 | --terminal-preview-border: #222220; |
| 974 | --terminal-input-border: #565552; |
| 975 | --terminal-progress-track: #3d3d3d; |
| 976 | --terminal-progress-fill: #d97757; |
| 977 | --terminal-green: #4cc38a; |
| 978 | --terminal-green-dim: #6fd4a8; |
| 979 | --terminal-green-bg: rgba(76, 195, 138, 0.14); |
| 980 | --terminal-blue: #4d9fff; |
| 981 | --terminal-blue-bright: #0099ff; |
| 982 | --terminal-teal: #d97757; |
| 983 | --terminal-yellow: #e3c07b; |
| 984 | --terminal-orange: #ff8d77; |
| 985 | --terminal-red: #ff5a5a; |
| 986 | --terminal-purple: #9775fa; |
| 987 | --terminal-diff-gutter: #8b8b81; |
| 988 | --terminal-diff-insert-fg: #4cc38a; |
| 989 | --terminal-diff-insert-bg: rgba(76, 195, 138, 0.12); |
| 990 | --terminal-diff-delete-fg: #ff8d77; |
| 991 | --terminal-diff-delete-bg: rgba(255, 90, 90, 0.12); |
| 992 | --terminal-diff-text: #ffffff; |
| 993 | --terminal-traffic-red: #ff5f57; |
| 994 | --terminal-traffic-yellow: #febc2e; |
| 995 | --terminal-traffic-green: #28c840; |
| 996 | background-color: var(--terminal-bg); |
| 997 | color: var(--terminal-fg); |
| 998 | } |
| 999 | |
| 1000 | .terminal-theme-claude-light, |
| 1001 | html:not(.dark) .terminal-theme-claude { |
| 1002 | --terminal-bg: #faf9f5; |
| 1003 | --terminal-editor-bg: #ffffff; |
| 1004 | --terminal-fg: #131312; |
| 1005 | --terminal-white: #131312; |
| 1006 | --terminal-dim: #3c3c39; |
| 1007 | --terminal-dimmer: #72716b; |
| 1008 | --terminal-vdim: #e1e0d9; |
| 1009 | --terminal-surface: #f4f4ec; |
| 1010 | --terminal-input-bg: #ffffff; |
| 1011 | --terminal-popover: #ffffff; |
| 1012 | --terminal-panel: rgba(19, 19, 18, 0.04); |
| 1013 | --terminal-panel-strong: rgba(19, 19, 18, 0.07); |
| 1014 | --terminal-border: rgba(31, 30, 29, 0.12); |
| 1015 | --terminal-preview-bg: #f0efe8; |
| 1016 | --terminal-preview-border: rgba(19, 19, 18, 0.06); |
| 1017 | --terminal-input-border: #a8a7a2; |
| 1018 | --terminal-progress-track: #e1e0d9; |
| 1019 | --terminal-progress-fill: #d97757; |
| 1020 | --terminal-green: #2f7613; |
| 1021 | --terminal-green-dim: #3d8f18; |
| 1022 | --terminal-green-bg: #e7f1d9; |
| 1023 | --terminal-blue: #2c83db; |
| 1024 | --terminal-blue-bright: #1a66b2; |
| 1025 | --terminal-teal: #d97757; |
| 1026 | --terminal-yellow: #865a07; |
| 1027 | --terminal-orange: #c6613f; |
| 1028 | --terminal-red: #b43232; |
| 1029 | --terminal-purple: #5545a1; |
| 1030 | --terminal-diff-insert-fg: #2f7613; |
| 1031 | --terminal-diff-insert-bg: #e7f1d9; |
| 1032 | --terminal-diff-delete-fg: #b43232; |
| 1033 | --terminal-diff-delete-bg: #f8ebeb; |
| 1034 | --terminal-diff-text: #131312; |
| 1035 | background-color: var(--terminal-bg); |
| 1036 | color: var(--terminal-fg); |
| 1037 | } |
| 1038 | |
| 1039 | .terminal-theme-claude .terminal-input-control::placeholder { |
| 1040 | color: var(--terminal-dim); |
| 1041 | opacity: 1; |
| 1042 | } |
| 1043 | |
| 1044 | .terminal-input-field--stacked { |
| 1045 | position: relative; |
| 1046 | border: none; |
| 1047 | border-radius: 0; |
| 1048 | background: transparent; |
| 1049 | padding-block: 6px; |
| 1050 | padding-inline: 0; |
| 1051 | } |
| 1052 | |
| 1053 | .terminal-input-field--stacked::before, |
| 1054 | .terminal-input-field--stacked::after { |
| 1055 | content: ""; |
| 1056 | position: absolute; |
| 1057 | left: 0; |
| 1058 | right: 0; |
| 1059 | height: 1.5px; |
| 1060 | background: var(--terminal-input-border); |
| 1061 | pointer-events: none; |
| 1062 | } |
| 1063 | |
| 1064 | .terminal-input-field--stacked::before { |
| 1065 | top: 0; |
| 1066 | } |
| 1067 | |
| 1068 | .terminal-input-field--stacked::after { |
| 1069 | bottom: 0; |
| 1070 | } |
| 1071 | |
| 1072 | .terminal-cursor { |
| 1073 | animation: terminal-cursor-blink 1s step-end infinite; |
| 1074 | } |
| 1075 | |
| 1076 | .terminal-panel { |
| 1077 | border-radius: var(--terminal-radius-panel); |
| 1078 | } |
| 1079 | |
| 1080 | .terminal-panel-sm { |
| 1081 | border-radius: var(--terminal-radius-sm); |
| 1082 | } |
| 1083 | |
| 1084 | .terminal-session { |
| 1085 | display: flex; |
| 1086 | flex-direction: column; |
| 1087 | gap: var(--terminal-session-gap); |
| 1088 | min-width: 0; |
| 1089 | } |
| 1090 | |
| 1091 | .terminal-session-sent { |
| 1092 | box-sizing: border-box; |
| 1093 | width: 100%; |
| 1094 | border-radius: var(--terminal-radius-sm); |
| 1095 | padding-inline: var(--terminal-session-sent-pad-x); |
| 1096 | } |
| 1097 | |
| 1098 | .terminal-session-inset { |
| 1099 | padding-left: var(--terminal-session-inset); |
| 1100 | } |
| 1101 | |
| 1102 | .terminal-session-flush { |
| 1103 | box-sizing: border-box; |
| 1104 | width: 100%; |
| 1105 | } |
| 1106 | |
| 1107 | .terminal-body-content { |
| 1108 | padding-inline: var(--terminal-session-pad-x); |
| 1109 | padding-block: var(--terminal-session-pad-y); |
| 1110 | } |
| 1111 | |
| 1112 | .terminal-body-footer { |
| 1113 | padding-inline: var(--terminal-session-pad-x); |
| 1114 | } |
| 1115 | |
| 1116 | .terminal-body-scroll-host { |
| 1117 | position: relative; |
| 1118 | min-height: 0; |
| 1119 | width: 100%; |
| 1120 | display: flex; |
| 1121 | flex-direction: column; |
| 1122 | } |
| 1123 | |
| 1124 | .terminal-body-scroll { |
| 1125 | flex: 1 1 auto; |
| 1126 | min-height: 0; |
| 1127 | overflow-y: auto; |
| 1128 | overscroll-behavior: contain; |
| 1129 | scrollbar-width: none; |
| 1130 | -ms-overflow-style: none; |
| 1131 | } |
| 1132 | |
| 1133 | .terminal-body-scroll::-webkit-scrollbar { |
| 1134 | display: none; |
| 1135 | width: 0; |
| 1136 | height: 0; |
| 1137 | } |
| 1138 | |
| 1139 | @media (prefers-reduced-motion: reduce) { |
| 1140 | .terminal-cursor { |
| 1141 | animation: none; |
| 1142 | opacity: 1; |
| 1143 | } |
| 1144 | } |
| 1145 | |
| 1146 | @media (forced-colors: active) { |
| 1147 | .product-badge-platform { |
| 1148 | background: none !important; |
| 1149 | color: CanvasText !important; |
| 1150 | -webkit-text-fill-color: CanvasText !important; |
| 1151 | } |
| 1152 | |
| 1153 | .product-badge-platform-border { |
| 1154 | background: none !important; |
| 1155 | border: 1px solid CanvasText; |
| 1156 | mask: none !important; |
| 1157 | -webkit-mask: none !important; |
| 1158 | } |
| 1159 | } |
| 1160 | |
| 1161 | /* @pierre/diffs: the +/- stat counts in the file header are hidden via the |
| 1162 | `unsafeCSS` option in components/diff-view.tsx, NOT here — the header renders |
| 1163 | inside an open shadow root that global CSS can't pierce. */ |
| 1164 | |
| 1165 | /* Copy-to-clipboard button in the @pierre/diffs code header. The widget themes |
| 1166 | itself off the OS prefers-color-scheme (its shadow root pins |
| 1167 | `color-scheme: light dark`), NOT the site's class-based dark toggle — so the |
| 1168 | header is light on a light-OS user even when the docs are in dark mode. Match |
| 1169 | the header with light-dark() so the chip is legible on either header. */ |
| 1170 | .diff-copy-button { |
| 1171 | color-scheme: light dark; |
| 1172 | border-color: light-dark(rgb(0 0 0 / 0.1), rgb(255 255 255 / 0.1)); |
| 1173 | background-color: light-dark(rgb(0 0 0 / 0.04), rgb(255 255 255 / 0.04)); |
| 1174 | color: light-dark(#71717a, #a1a1aa); |
| 1175 | } |
| 1176 | .diff-copy-button:hover { |
| 1177 | border-color: light-dark(rgb(0 0 0 / 0.2), rgb(255 255 255 / 0.2)); |
| 1178 | background-color: light-dark(rgb(0 0 0 / 0.08), rgb(255 255 255 / 0.1)); |
| 1179 | color: light-dark(#18181b, #f4f4f5); |
| 1180 | } |
| 1181 | .diff-copy-button:focus-visible { |
| 1182 | outline: 2px solid light-dark(rgb(0 0 0 / 0.2), rgb(255 255 255 / 0.25)); |
| 1183 | outline-offset: 1px; |
| 1184 | } |
| 1185 | |
| 1186 | /* Product switching is the only navigation that receives a named transition. |
| 1187 | The origin is measured from the switcher trigger before navigation. */ |
| 1188 | html.docs-product-transition .docs-product-shell { |
| 1189 | view-transition-name: docs-product-shell; |
| 1190 | } |
| 1191 | |
| 1192 | ::view-transition-old(docs-product-shell) { |
| 1193 | animation: 350ms cubic-bezier(0, 0, 0.2, 1) both docs-product-fade-out; |
| 1194 | z-index: 1; |
| 1195 | } |
| 1196 | |
| 1197 | ::view-transition-new(docs-product-shell) { |
| 1198 | animation: 700ms cubic-bezier(0.785, 0.135, 0.15, 0.86) both docs-circle-reveal; |
| 1199 | clip-path: circle(var(--docs-reveal-radius) at var(--docs-reveal-x) var(--docs-reveal-y)); |
| 1200 | z-index: 2; |
| 1201 | --docs-reveal-radius: 0%; |
| 1202 | --docs-pixel-size: 20; |
| 1203 | --docs-dissolve-amount: 0.65; |
| 1204 | } |
| 1205 | |
| 1206 | @supports (background: paint(docs-pixelated-circle)) { |
| 1207 | ::view-transition-new(docs-product-shell) { |
| 1208 | clip-path: none; |
| 1209 | mask-image: paint(docs-pixelated-circle); |
| 1210 | } |
| 1211 | } |
| 1212 | |
| 1213 | @property --docs-reveal-radius { |
| 1214 | syntax: '<percentage>'; |
| 1215 | initial-value: 0%; |
| 1216 | inherits: false; |
| 1217 | } |
| 1218 | |
| 1219 | @property --docs-pixel-size { |
| 1220 | syntax: '<number>'; |
| 1221 | initial-value: 20; |
| 1222 | inherits: false; |
| 1223 | } |
| 1224 | |
| 1225 | @property --docs-dissolve-amount { |
| 1226 | syntax: '<number>'; |
| 1227 | initial-value: 0.65; |
| 1228 | inherits: false; |
| 1229 | } |
| 1230 | |
| 1231 | @keyframes docs-circle-reveal { |
| 1232 | from { |
| 1233 | --docs-reveal-radius: 0%; |
| 1234 | } |
| 1235 | to { |
| 1236 | --docs-reveal-radius: 150%; |
| 1237 | } |
| 1238 | } |
| 1239 | |
| 1240 | @keyframes docs-product-fade-out { |
| 1241 | to { |
| 1242 | opacity: 0; |
| 1243 | } |
| 1244 | } |
| 1245 | |
| 1246 | @media (prefers-reduced-motion: reduce) { |
| 1247 | html.docs-product-transition .docs-product-shell { |
| 1248 | view-transition-name: none; |
| 1249 | } |
| 1250 | |
| 1251 | ::view-transition-old(docs-product-shell), |
| 1252 | ::view-transition-new(docs-product-shell) { |
| 1253 | animation: none; |
| 1254 | clip-path: none; |
| 1255 | mask-image: none; |
| 1256 | } |
| 1257 | } |
| 1258 | |
| 1259 | /* ZdrLogVisual: the request and response dissolve to "not stored" as the ZDR switch turns on. */ |
| 1260 | .zdr-log-payload, |
| 1261 | .zdr-log-state-off { |
| 1262 | animation: zdr-log-show-when-off 10s ease-in-out infinite; |
| 1263 | } |
| 1264 | |
| 1265 | .zdr-log-not-stored, |
| 1266 | .zdr-log-state-on { |
| 1267 | opacity: 0; |
| 1268 | animation: zdr-log-show-when-on 10s ease-in-out infinite; |
| 1269 | } |
| 1270 | |
| 1271 | .zdr-log-thumb { |
| 1272 | animation: zdr-log-thumb 10s ease-in-out infinite; |
| 1273 | } |
| 1274 | |
| 1275 | .zdr-log-hatch { |
| 1276 | background-image: repeating-linear-gradient( |
| 1277 | 135deg, |
| 1278 | transparent 0 6px, |
| 1279 | color-mix(in oklab, currentColor 12%, transparent) 6px 7px |
| 1280 | ); |
| 1281 | } |
| 1282 | |
| 1283 | @keyframes zdr-log-show-when-off { |
| 1284 | 0%, |
| 1285 | 38% { |
| 1286 | opacity: 1; |
| 1287 | filter: blur(0); |
| 1288 | } |
| 1289 | 48%, |
| 1290 | 88% { |
| 1291 | opacity: 0; |
| 1292 | filter: blur(3px); |
| 1293 | } |
| 1294 | 98%, |
| 1295 | 100% { |
| 1296 | opacity: 1; |
| 1297 | filter: blur(0); |
| 1298 | } |
| 1299 | } |
| 1300 | |
| 1301 | @keyframes zdr-log-show-when-on { |
| 1302 | 0%, |
| 1303 | 38% { |
| 1304 | opacity: 0; |
| 1305 | } |
| 1306 | 48%, |
| 1307 | 88% { |
| 1308 | opacity: 1; |
| 1309 | } |
| 1310 | 98%, |
| 1311 | 100% { |
| 1312 | opacity: 0; |
| 1313 | } |
| 1314 | } |
| 1315 | |
| 1316 | @keyframes zdr-log-thumb { |
| 1317 | 0%, |
| 1318 | 38% { |
| 1319 | transform: translateX(0); |
| 1320 | } |
| 1321 | 48%, |
| 1322 | 88% { |
| 1323 | transform: translateX(12px); |
| 1324 | } |
| 1325 | 98%, |
| 1326 | 100% { |
| 1327 | transform: translateX(0); |
| 1328 | } |
| 1329 | } |
| 1330 | |
| 1331 | @media (prefers-reduced-motion: reduce) { |
| 1332 | .zdr-log-payload, |
| 1333 | .zdr-log-state-off { |
| 1334 | animation: none; |
| 1335 | opacity: 0; |
| 1336 | } |
| 1337 | |
| 1338 | .zdr-log-not-stored, |
| 1339 | .zdr-log-state-on { |
| 1340 | animation: none; |
| 1341 | opacity: 1; |
| 1342 | } |
| 1343 | |
| 1344 | .zdr-log-thumb { |
| 1345 | animation: none; |
| 1346 | transform: translateX(12px); |
| 1347 | } |
| 1348 | } |