@devries-cameron20 / composio Mirror · read-only / commits / 86efaba99
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 13:15 UTC

refactor: clean up twoslash CSS using design tokens

Use existing design tokens for twoslash styling instead of hardcoded values. Adds dedicated section with proper light/dark mode support. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Sushmithamallesh committed Jan 26, 2026 at 22:48 UTC 86efaba996320aeb8b0067c4e42dc766ebc7843c
1 file changed +33 -6
docs/app/global.css
+33 -6
@@ -126,12 +126,6 @@
126 .dark {
127 --composio-sidebar: #131211;
128
129 - /* Twoslash overrides - Dark */
130 - --twoslash-popup-bg: #252220;
131 - --twoslash-popup-shadow: rgba(0, 0, 0, 0.3) 0px 2px 8px;
132 - --twoslash-border-color: #3d3935;
133 - --twoslash-docs-color: #a8a29e;
134 -
129 /* Fumadocs overrides - Dark */
130 --color-fd-background: #131211;
131 --color-fd-foreground: #e8e4e0;
@@ -490,3 +484,36 @@ nav a[href*="app.composio"]:focus-visible {
484 @apply bg-background text-foreground;
485 }
486 }
487 +
488 +/* ==========================================================================
489 + Twoslash - Type hover popups in code blocks
490 + ========================================================================== */
491 +
492 +:root {
493 + --twoslash-border-color: var(--color-fd-border);
494 + --twoslash-popup-bg: var(--color-fd-popover);
495 + --twoslash-popup-color: var(--color-fd-popover-foreground);
496 + --twoslash-popup-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
497 + --twoslash-docs-color: var(--color-fd-muted-foreground);
498 + --twoslash-docs-font: var(--font-sans);
499 + --twoslash-code-font: var(--font-mono);
500 +}
501 +
502 +.dark {
503 + --twoslash-popup-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
504 +}
505 +
506 +.twoslash .twoslash-popup-container {
507 + border-radius: var(--radius);
508 + max-width: 540px;
509 +}
510 +
511 +.twoslash .twoslash-popup-code {
512 + font-size: 0.8125rem;
513 + line-height: 1.5;
514 +}
515 +
516 +.twoslash .twoslash-popup-docs {
517 + font-size: 0.8125rem;
518 + line-height: 1.5;
519 +}