@font-face { font-family: 'Inter'; src: url('/fonts/InterVF.woff2') format('woff2'); font-display: swap; font-weight: 400 900; } @font-face { font-family: 'Inter Fallback'; src: local('Arial'), local('ArialMT'); ascent-override: 90.4365%; descent-override: 22.518%; line-gap-override: 0%; size-adjust: 107.1194%; } @font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMonoVF.woff2') format('woff2'); font-display: swap; font-weight: 400 800; } @font-face { font-family: 'Geist Mono Fallback'; src: local('Courier New'), local('CourierNewPSMT'); ascent-override: 100.5164%; descent-override: 29.5048%; size-adjust: 99.9837%; } @import 'tailwindcss' source('./src/'); @import 'tw-animate-css'; @import '@mastra/docusaurus-plugin-kapa'; /* Scan the Algolia search plugin's compiled output so its Tailwind utility classes are generated. The plugin's index.css contains `@source "./dist/"` resolved relative to the package. */ @import '@mastra/docusaurus-plugin-algolia'; @custom-variant dark (&:is([data-theme="dark"] *)); @theme { --breakpoint-lg: 62.25rem; --font-sans: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Adwaita Sans, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif; --font-mono: 'Geist Mono', 'Geist Mono Fallback', Menlo, Consolas, Monaco, Adwaita Mono, Liberation Mono, Lucida Console, monospace; } /* ==================== LIGHT MODE ==================== */ :root { /* Primary colors - Light mode uses darker green to match Nextra */ --ifm-color-primary: #0d8020; --ifm-color-primary-dark: #0b6e1b; --ifm-color-primary-darker: #0a6619; --ifm-color-primary-darkest: #085314; --ifm-color-primary-light: #177326; --ifm-color-primary-lighter: #198128; --ifm-color-primary-lightest: #1f9d2f; /* Nextra green accent colors */ --mastra-green-accent: hsl(143, 97%, 54%); --mastra-green-accent-2: hsla(125, 66%, 50%, 1); --mastra-green-accent-3: hsla(143, 97%, 24%, 1); --mastra-green-muted: #84d291; --mastra-green-code: #177326; /* Nextra text colors - Light mode */ --mastra-text-primary: #080808; --mastra-text-secondary: #141414; --mastra-text-tertiary: #494949; --mastra-text-quaternary: #737272; --mastra-text-muted: #8f8f8f; --mastra-text-muted-2: #929292; /* Icon colors */ --mastra-icons-2: hsla(0, 0%, 44%, 1); --mastra-icons-3: #949494; --mastra-icons-4: hsla(0, 0%, 66%, 1); --mastra-icons-5: hsla(0, 0%, 90%, 1); --mastra-icons-6: hsla(0, 0%, 100%, 1); --mastra-icons-7: #808080; /* Nextra surface colors - Light mode */ --mastra-surface-1: #f0f0f0; --mastra-surface-2: #f2f2f2; --mastra-surface-3: #ededed; --mastra-surface-4: #ebebeb; --mastra-surface-5: hsla(0, 0%, 88%, 0.9); /* Nextra border colors - Light mode */ --border: #ccc; --border-subtle: hsla(0, 0%, 80%, 1); --border-code: #b8b8b8; --border-secondary: hsla(0, 0%, 72%, 1); --sidebar-border: oklch(92.8% 0.006 264.531); /* Border width */ --border-sm: 0.5px; /* Fonts */ --ifm-font-family-base: var(--font-sans); --ifm-font-family-monospace: var(--font-mono); --ifm-h1-font-size: 2.25rem; --ifm-h2-font-size: 1.8rem; --ifm-h3-font-size: 1.25rem; --ifm-h4-font-size: 1.2rem; --ifm-h5-font-size: 1rem; --ifm-h6-font-size: 0.875rem; /* Typography */ --ifm-font-size-base: 16px; --ifm-line-height-base: 1.6; --ifm-code-font-size: 0.875rem; --ifm-heading-color: var(--mastra-text-primary); --ifm-list-margin: 0.5rem; --ifm-list-left-padding: 1.5rem; /* Background colors */ --ifm-background-color: #fafafa; --ifm-navbar-background-color: #fafafa; --ifm-footer-background-color: #050505; --ifm-code-background: var(--mastra-surface-2); --ifm-navbar-height: 47px; /* Code blocks */ --docusaurus-highlighted-code-line-bg: color-mix(in oklab, #e0e0e0e6 90%, transparent); /* Syntax highlighting colors - Light mode */ --prism-color-string: #158d29; --prism-color-keyword: #d81717; --prism-color-function: #9829c7; --prism-color-comment: #939393; --prism-color-variable: #0a0a0a; --prism-color-inserted: #177326; --prism-color-deleted: #d81717; /* Border radius */ --ifm-global-radius: 0.5rem; --ifm-code-border-radius: 0.5rem; /* Container width */ --ifm-container-width: 1400px; --ifm-container-width-xl: 1400px; /* Override Docusaurus text colors */ --ifm-font-color-base: var(--mastra-text-secondary); --ifm-font-color-base-inverse: #fff; --ifm-link-color: var(--mastra-text-primary); --ifm-link-hover-color: var(--mastra-green-accent-2); /* Navbar */ --ifm-navbar-link-color: var(--mastra-text-secondary); --ifm-navbar-link-hover-color: var(--mastra-text-primary); /* Menu/Sidebar */ --doc-sidebar-width: 280px; --ifm-menu-color: var(--mastra-text-tertiary); --ifm-menu-color-active: var(--mastra-text-primary); --ifm-menu-link-sublist-icon: url('data:image/svg+xml;utf8,'); --ifm-menu-link-padding-vertical: 0.5rem; --ifm-menu-color-background-active: rgba(0, 0, 0, 0.05); --ifm-menu-color-background-hover: rgba(0, 0, 0, 0.03); /* Chat Sidebar */ --doc-sidebar-hidden-width: 30px; --default-font-feature-settings: normal; --default-mono-font-feature-settings: normal; } /* ==================== DARK MODE ==================== */ [data-theme='dark'] { /* Primary colors - Dark mode uses brighter green */ --ifm-color-primary: hsl(143, 97%, 54%); --ifm-color-primary-dark: #2aed73; --ifm-color-primary-darker: #1fea6a; --ifm-color-primary-darkest: #16c858; --ifm-color-primary-light: #62f69d; --ifm-color-primary-lighter: #77f7ab; --ifm-color-primary-lightest: #a1fac7; /* Nextra colors for dark mode */ --mastra-green-accent: hsl(143, 97%, 54%); --mastra-green-accent-2: hsla(125, 66%, 50%, 1); /* Dark backgrounds */ --ifm-background-color: #050505; --ifm-navbar-background-color: #050505; --ifm-footer-background-color: #050505; --ifm-background-surface-color: #121212; --ifm-code-background: #171717; /* Nextra text colors - Dark mode */ --mastra-text-primary: #ffffff; --mastra-text-secondary: #e6e6e6; --mastra-text-tertiary: #9d9d9d; --mastra-text-quaternary: #787878; /* Nextra surface colors - Dark mode */ --mastra-surface-1: hsla(0, 0%, 8%, 1); --mastra-surface-2: hsla(0, 0%, 10%, 1); --mastra-surface-3: #121212; --mastra-surface-4: #171717; --mastra-surface-5: hsla(0, 0%, 18%, 0.9); /* Nextra border colors - Dark mode */ --border: #343434; --border-subtle: hsla(0, 0%, 19%, 1); --border-code: hsla(0, 0%, 26%, 1); --sidebar-border: oklch(26.9% 0 0); /* Code blocks */ --docusaurus-highlighted-code-line-bg: rgba(255, 255, 255, 0.1); /* Syntax highlighting colors - Dark mode */ --prism-color-string: #46f488; --prism-color-keyword: #fa7b6a; --prism-color-function: #d06bee; --prism-color-comment: #939393; --prism-color-variable: #fff; --prism-color-inserted: #62f69d; --prism-color-deleted: #d81717; /* Override Docusaurus text colors for dark mode */ --ifm-font-color-base: var(--mastra-text-secondary); --ifm-heading-color: var(--mastra-text-primary); --ifm-link-color: var(--mastra-text-primary); --ifm-link-hover-color: var(--mastra-green-accent); /* Navbar */ --ifm-navbar-link-color: var(--mastra-text-secondary); --ifm-navbar-link-hover-color: var(--mastra-text-primary); /* Menu/Sidebar */ --ifm-menu-color: var(--mastra-text-tertiary); --ifm-menu-color-active: var(--mastra-text-primary); --ifm-menu-color-background-active: rgba(255, 255, 255, 0.1); --ifm-menu-color-background-hover: rgba(255, 255, 255, 0.05); } /* ==================================================================== */ /* Ported design tokens from @mastra/docusaurus-theme */ /* These make the new theme's CSS variables available here so plugins */ /* (Algolia, Kapa chat, Shiki) can be ported without redefining tokens. */ /* New variables only — existing ifm / mastra-text values above are */ /* intentionally left untouched. Font vars are remapped to the fonts */ /* this repo actually ships (Inter / Geist Mono). */ /* ==================================================================== */ /* Palette: raw dark values */ :root { --mastra-color-dark-surface-bg: #020202; --mastra-color-dark-surface-antigrid: #0d0d0d; --mastra-color-dark-surface-elevation-sm: #171717; --mastra-color-dark-surface-elevation-lg: #141414; --mastra-color-dark-surface-hover: #262626; --mastra-color-dark-border-antigrid: #191919; --mastra-color-dark-border-elevation: #1a1a1a; --mastra-color-dark-main-white: #f0f0f0; --mastra-color-dark-special-gray: #cccccc; --mastra-color-dark-main-gray: #939393; --mastra-color-dark-dark-gray: #424242; --mastra-color-dark-green: #72ff70; --mastra-color-dark-orange: #ffa94b; --mastra-color-dark-pink: #ff69cc; --mastra-color-dark-purple: #be96ff; --mastra-color-dark-blue: #6ccdfb; --mastra-color-dark-red: #ff4758; --mastra-color-dark-yellow: #e7e67b; /* Palette: raw light values */ --mastra-color-light-surface-bg: #f8f8f8; --mastra-color-light-surface-antigrid: #f4f4f4; --mastra-color-light-surface-elevation-sm: #ebebeb; --mastra-color-light-surface-elevation-lg: #f0f0f0; --mastra-color-light-surface-hover: #e6e6e6; --mastra-color-light-border-antigrid: #e5e2e2; --mastra-color-light-border-elevation: #dfdfdf; --mastra-color-light-main-white: #0f0f0f; --mastra-color-light-special-gray: #272727; --mastra-color-light-main-gray: #4b4b4b; --mastra-color-light-dark-gray: #424242; --mastra-color-light-green: #028300; --mastra-color-light-orange: #9d5200; --mastra-color-light-pink: #dd48ad; --mastra-color-light-purple: #8c45ff; --mastra-color-light-blue: #238db9; --mastra-color-light-red: #f43c4f; --mastra-color-light-yellow: #8a8806; /* Themed aliases (light default, dark override below) */ --mastra-color-surface-bg: var(--mastra-color-light-surface-bg); --mastra-color-surface-antigrid: var(--mastra-color-light-surface-antigrid); --mastra-color-surface-elevation-sm: var(--mastra-color-light-surface-elevation-sm); --mastra-color-surface-elevation-lg: var(--mastra-color-light-surface-elevation-lg); --mastra-color-surface-hover: var(--mastra-color-light-surface-hover); --mastra-color-border-antigrid: var(--mastra-color-light-border-antigrid); --mastra-color-border-elevation: var(--mastra-color-light-border-elevation); --mastra-shadow-dropdown: 0 4px 54px 0 rgba(0, 0, 0, 0.12); --mastra-color-main-white: var(--mastra-color-light-main-white); --mastra-color-special-gray: var(--mastra-color-light-special-gray); --mastra-color-main-gray: var(--mastra-color-light-main-gray); --mastra-color-dark-gray: var(--mastra-color-light-dark-gray); --mastra-color-green: var(--mastra-color-light-green); --mastra-color-orange: var(--mastra-color-light-orange); --mastra-color-pink: var(--mastra-color-light-pink); --mastra-color-purple: var(--mastra-color-light-purple); --mastra-color-blue: var(--mastra-color-light-blue); --mastra-color-red: var(--mastra-color-light-red); --mastra-color-yellow: var(--mastra-color-light-yellow); /* Sizings — radius + spacing */ --mastra-radius: 1.875rem; --mastra-radius-sm: 1.25rem; --mastra-radius-md: 2rem; --mastra-radius-lg: 2.625rem; --mastra-radius-elevation: 1rem; --mastra-spacing: 0.25rem; --mastra-button-padding-vertical: 0.375rem; --mastra-button-padding-horizontal: 0.625rem; /* Fonts — remapped to the fonts this repo ships */ --mastra-font-sans: var(--font-sans); --mastra-font-heading: var(--font-sans); --mastra-font-mono: var(--font-mono); --mastra-font-mono-weight: 550; --mastra-font-feature-settings: 'ss01', 'ss02'; /* Heading sizes */ --mastra-text-h1: 2.5rem; --mastra-text-h1-leading: 110%; --mastra-text-h1-weight: 520; --mastra-text-h1-tracking: 0.015em; --mastra-text-h2: 2rem; --mastra-text-h2-leading: 110%; --mastra-text-h2-weight: 520; --mastra-text-h2-tracking: 0.015em; --mastra-text-h3: 1.5rem; --mastra-text-h3-leading: 110%; --mastra-text-h3-weight: 520; --mastra-text-h3-tracking: 0.015em; --mastra-text-h4: 1.25rem; --mastra-text-h4-leading: 110%; --mastra-text-h4-weight: 520; --mastra-text-h4-tracking: 0.015em; /* Body sizes */ --mastra-text-body: 1rem; --mastra-text-body-lg: 1.125rem; --mastra-text-body-leading: 1.6; --mastra-text-body-sm: 0.9375rem; --mastra-text-body-sm-lg: 1.0625rem; /* Plugin: Algolia search */ --algolia-bg: var(--mastra-color-surface-antigrid); --algolia-bg-selected: var(--mastra-color-surface-elevation-sm); --algolia-border: var(--mastra-color-border-elevation); --algolia-text-primary: var(--ifm-color-content); --algolia-text-secondary: var(--mastra-color-main-gray); --algolia-text-icon: var(--ifm-color-emphasis-600); --algolia-highlight: var(--ifm-color-primary); --algolia-caret: var(--ifm-color-primary); /* Plugin: Kapa chat */ --chat-bg-primary: var(--mastra-color-surface-bg); --chat-bg-secondary: var(--mastra-color-surface-elevation-sm); --chat-bg-elevated: var(--mastra-color-surface-elevation-lg); --chat-bg-input: var(--mastra-color-surface-hover); --chat-text-primary: var(--mastra-color-main-white); --chat-text-muted: var(--mastra-color-main-gray); --chat-accent-primary: var(--mastra-color-green); --chat-border: var(--mastra-color-border-elevation); --chat-feedback-positive: var(--mastra-color-green); --chat-feedback-negative: var(--mastra-color-red); --doc-chat-sidebar-width: clamp(20rem, 25vw, 34rem); --doc-chat-sidebar-outer-gap: 1rem; --doc-chat-sidebar-inner-gap: 0.6rem; /* Shiki syntax highlighter */ --shiki-foreground: var(--mastra-color-main-white); --shiki-background: var(--mastra-color-surface-antigrid); --shiki-token-constant: var(--mastra-color-main-white); --shiki-token-string: var(--mastra-color-green); --shiki-token-string-expression: var(--mastra-color-green); --shiki-token-comment: var(--mastra-color-main-gray); --shiki-token-keyword: var(--mastra-color-orange); --shiki-token-parameter: var(--mastra-color-main-white); --shiki-token-function: var(--mastra-color-red); --shiki-token-import: var(--mastra-color-red); --shiki-token-punctuation: var(--mastra-color-purple); --shiki-token-link: var(--mastra-color-main-white); @media (min-width: 40rem) { --mastra-radius: 2.625rem; --mastra-radius-lg: 3.875rem; --mastra-radius-elevation: 1.3125rem; } } /* * The Kapa plugin's DocRoot/Layout/Main renames the classic theme's hashed * layout classes (`.docMainContainer_*`, `.docItemWrapper_*`) to stable names * (`.doc-main-container`, `.doc-item-wrapper`) and drops the classic theme's * `container padding-top--md padding-bottom--lg` utilities from the wrapper. * The classic flex-grow rules no longer match, so the doc column collapses to * 0 width, and without the padding the content sits flush against the navbar. * Restore both the grow behaviour and the container width/padding using the * classic theme's own Infima variables. */ .doc-main-container, .doc-chat-layout .doc-item-wrapper { flex-grow: 1; min-width: 0; } .doc-chat-layout .doc-item-wrapper { width: 100%; max-width: var(--ifm-container-width); margin: 0 auto; /* Mirrors the classic theme's `padding-top--md` (1rem) / `padding-bottom--lg` * (2rem) plus `container` horizontal padding. */ padding: 1rem var(--ifm-spacing-horizontal) 2rem; } .doc-chat-interface__send { background: #fff !important; } .doc-chat-interface__send:hover { background: #c4c4c4 !important; } .doc-chat-interface__send svg { color: #000 !important; } .doc-chat-scroll-to-bottom svg { color: #fff !important; } [data-theme='dark'] .doc-chat-scroll-to-bottom svg { color: #000 !important; } [data-theme='dark'] .doc-chat-interface__send { background: #000 !important; } [data-theme='dark'] .doc-chat-interface__send:hover { background: #3c3c3c !important; } [data-theme='dark'] .doc-chat-interface__send svg { color: #fff !important; } [data-streamdown='table'] { margin-bottom: 0; } [data-streamdown='code-block-body'] pre { margin-bottom: 0; padding: var(--ifm-pre-padding) !important; } [data-streamdown='code-block-body'] pre > code > span { display: block; } .theme-back-to-top-button { display: none; } .doc-chat-fab { background: var(--mastra-color-surface-elevation-sm) !important; border: var(--ifm-button-border-width) solid var(--mastra-color-surface-hover) !important; } /* Themed aliases + plugin overrides for dark mode */ [data-theme='dark'] { --mastra-color-surface-bg: var(--mastra-color-dark-surface-bg); --mastra-color-surface-antigrid: var(--mastra-color-dark-surface-antigrid); --mastra-color-surface-elevation-sm: var(--mastra-color-dark-surface-elevation-sm); --mastra-color-surface-elevation-lg: var(--mastra-color-dark-surface-elevation-lg); --mastra-color-surface-hover: var(--mastra-color-dark-surface-hover); --mastra-color-border-antigrid: var(--mastra-color-dark-border-antigrid); --mastra-color-border-elevation: var(--mastra-color-dark-border-elevation); --mastra-shadow-dropdown: 0 4px 54px 0 rgba(0, 0, 0, 0.8); --mastra-color-main-white: var(--mastra-color-dark-main-white); --mastra-color-special-gray: var(--mastra-color-dark-special-gray); --mastra-color-main-gray: var(--mastra-color-dark-main-gray); --mastra-color-dark-gray: var(--mastra-color-dark-dark-gray); --mastra-color-green: var(--mastra-color-dark-green); --mastra-color-orange: var(--mastra-color-dark-orange); --mastra-color-pink: var(--mastra-color-dark-pink); --mastra-color-purple: var(--mastra-color-dark-purple); --mastra-color-blue: var(--mastra-color-dark-blue); --mastra-color-red: var(--mastra-color-dark-red); --mastra-color-yellow: var(--mastra-color-dark-yellow); --mastra-font-mono-weight: 500; /* Algolia (dark overrides) */ --algolia-text-icon: var(--ifm-color-emphasis-500); /* Kapa chat (dark overrides) */ --kapa-text-icon: var(--ifm-color-emphasis-500); --kapa-bg-user: var(--ifm-color-emphasis-200); --kapa-bg-ai: var(--ifm-color-emphasis-100); } /* Tailwind @theme mappings for the ported palette + radius */ @theme { --color-mastra-surface-bg: var(--mastra-color-surface-bg); --color-mastra-surface-antigrid: var(--mastra-color-surface-antigrid); --color-mastra-surface-elevation-sm: var(--mastra-color-surface-elevation-sm); --color-mastra-surface-elevation-lg: var(--mastra-color-surface-elevation-lg); --color-mastra-surface-hover: var(--mastra-color-surface-hover); --color-mastra-border-antigrid: var(--mastra-color-border-antigrid); --color-mastra-border-elevation: var(--mastra-color-border-elevation); --color-mastra-main-white: var(--mastra-color-main-white); --color-mastra-special-gray: var(--mastra-color-special-gray); --color-mastra-main-gray: var(--mastra-color-main-gray); --color-mastra-dark-gray: var(--mastra-color-dark-gray); --color-mastra-green: var(--mastra-color-green); --color-mastra-orange: var(--mastra-color-orange); --color-mastra-pink: var(--mastra-color-pink); --color-mastra-purple: var(--mastra-color-purple); --color-mastra-blue: var(--mastra-color-blue); --color-mastra-red: var(--mastra-color-red); --color-mastra-yellow: var(--mastra-color-yellow); --radius-mastra: var(--mastra-radius); --radius-mastra-lg: var(--mastra-radius-lg); --radius-mastra-elevation: var(--mastra-radius-elevation); } body, html { overscroll-behavior: none; } /* ==================== SELECTION COLORS ==================== */ ::selection { background: #e3e3e3; color: #158d29; } [data-theme='dark'] ::selection { background: #2a2a2a; color: #46f488; } [data-theme='dark'] body, html { background-color: var(--ifm-navbar-background-color); } /* ==================== NAVBAR ==================== */ .theme-layout-navbar { display: flex; flex-direction: column; width: 100%; height: auto; padding-inline: 0; padding-block: 0; /* Render the bottom hairline via box-shadow instead of border-bottom so it doesn't add 1px to the navbar's occupied height. The navbar height is driven by --ifm-navbar-height (47px), and a real border would push the layout to 48px, desyncing the sidebar's sticky offset and causing a 1px scroll jump. The second layer is the soft drop shadow. */ box-shadow: 0 1px 0 0 var(--border), 0 0 37.7px 0 #eaeaea; background-color: var(--ifm-navbar-background-color); } [data-theme='dark'] .theme-layout-navbar { box-shadow: 0 1px 0 0 var(--border), 0 8px 60px 0 rgba(2, 2, 2, 0.5); } .theme-layout-navbar a { &:hover { color: var(--mastra-text-primary); text-decoration: none; } } .theme-layout-navbar .tab a { color: var(--mastra-text-tertiary); &[data-active='true'] { color: var(--mastra-text-primary); } &:hover { text-decoration: none; color: var(--mastra-text-primary); } } .navbar-sidebar__brand { height: calc(var(--ifm-navbar-height)); border: none; box-shadow: none; } .dialog-panel__content { box-shadow: 0 0 0 1px #00000014, 0px 1px 1px #00000005, 0px 8px 16px -4px #0000000a, 0px 24px 32px -8px #0000000f, 0 0 0 1px hsla(0, 0%, 98%, 1); } .dialog-panel ul { padding-left: 0; margin-bottom: 0; } .navbar__link { font-weight: 500; } .navbar__link:hover { color: var(--ifm-navbar-link-hover-color); } input[type='search']::-ms-clear { display: none; } /* ==================== Sidebar ==================== */ .menu__link { font-size: 0.875rem; font-weight: 400; border-radius: 12px; transition: all 0.2s ease-in-out; height: 34px; &:hover { color: var(--mastra-text-primary); } } .menu__link span[class*='linkLabel'] { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } .menu__list-item-collapsible { border-radius: 12px; } .menu__list-item:not(:first-child) { margin-top: 1px; } .sidebar-group-name { margin-top: 1rem !important; } .sidebar-group-name > .menu__list { padding-left: 0; } .sidebar-group-name > .menu__list-item-collapsible { &:hover { background: transparent; } } .sidebar-group-name > .menu__list-item-collapsible > .menu__link { height: 1.5rem; padding-block: 0; } .sidebar-group-name > .menu__list-item-collapsible span[class*='categoryLinkLabel'] { text-transform: uppercase; letter-spacing: 0.025em; font-size: 0.7rem; color: var(--mastra-text-quaternary); } h2:has(code) { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; } h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { letter-spacing: normal; } h1 code { font-size: calc(var(--ifm-h1-font-size) - 0.25rem); border-radius: 10px; } h2 code { font-size: calc(var(--ifm-h2-font-size) - 0.25rem); border-radius: 10px; } h3 code { font-size: calc(var(--ifm-h3-font-size) - 0.25rem); border-radius: 10px; } h4 code { font-size: calc(var(--ifm-h4-font-size) - 0.25rem); border-radius: 10px; } h5 code { font-size: calc(var(--ifm-h5-font-size) - 0.25rem); border-radius: 10px; } h6 code { font-size: calc(var(--ifm-h6-font-size) - 0.25rem); border-radius: 10px; } /* ==================== LINKS ==================== */ article a { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; text-decoration-color: var(--mastra-green-muted); color: var(--mastra-text-primary); } article a:hover { color: var(--mastra-green-accent-2); text-decoration-color: var(--mastra-green-accent-2); } [data-theme='dark'] .markdown a { text-decoration-color: var(--mastra-green-accent); color: var(--mastra-green-accent); } [data-theme='dark'] article a:hover { color: var(--mastra-green-accent-2); } .docusaurus-mt-lg { overflow-x: hidden; } /* Hide sidebar items with sidebar-hidden class */ .sidebar-hidden { display: none !important; } /* Code block overrides */ .language-diff .inserted { color: var(--prism-color-inserted) !important; } .language-diff .deleted { color: var(--prism-color-deleted) !important; } /* ==================== DROPDOWN ANIMATIONS ==================== */ @keyframes slideDownAndFade { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideUpAndFade { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideLeftAndFade { from { opacity: 0; transform: translateX(2px); } to { opacity: 1; transform: translateX(0); } } @keyframes slideRightAndFade { from { opacity: 0; transform: translateX(-2px); } to { opacity: 1; transform: translateX(0); } } /* Data attribute animation triggers */ [data-side='bottom'][data-slot='dropdown-menu-content'] { animation: slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1); } [data-side='top'][data-slot='dropdown-menu-content'] { animation: slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1); } [data-side='left'][data-slot='dropdown-menu-content'] { animation: slideLeftAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1); } [data-side='right'][data-slot='dropdown-menu-content'] { animation: slideRightAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1); } /* Fallback for when side is not specified */ [data-state='open'][data-slot='dropdown-menu-content']:not([data-side]) { animation: slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1); } .menu, pre, [class*='tableOfContents'], [role='log'], .tabs, .toc-wrapper { padding-inline: 0 !important; scrollbar-width: thin; scrollbar-color: #dedede transparent; } [data-theme='dark'] { .menu, pre, [class*='tableOfContents'], [role='log'], .tabs, .toc-wrapper { scrollbar-color: #2a2a2a transparent; scrollbar-width: thin; } } iframe, img, video { border-radius: 12px; max-width: 100%; } /* ==================== CODE BLOCKS ==================== */ .theme-code-block.theme-code-block { box-shadow: none; background: none; } pre { --prism-background-color: var(--mastra-surface-2); background: var(--mastra-surface-2); border: 0.5px solid var(--border) !important; border-radius: 12px !important; max-width: 100%; overflow-x: auto !important; overflow-y: hidden !important; font-family: var(--ifm-font-family-monospace) !important; } [data-theme='dark'] .theme-code-block { --prism-color: #fff !important; --prism-background-color: #171717 !important; } [data-theme='dark'] .theme-code-block, [data-theme='dark'] .theme-code-block pre, [data-theme='dark'] .theme-code-block code, [data-theme='dark'] .theme-code-block .token-line { color: #fff !important; background-color: #171717 !important; } [data-theme='dark'] .theme-code-block .token.comment, [data-theme='dark'] .theme-code-block .token.prolog, [data-theme='dark'] .theme-code-block .token.doctype, [data-theme='dark'] .theme-code-block .token.cdata { color: #939393 !important; font-style: italic !important; } [data-theme='dark'] .theme-code-block .token.namespace { opacity: 0.7; } [data-theme='dark'] .theme-code-block .token.string, [data-theme='dark'] .theme-code-block .token.attr-value { color: #46f488 !important; } [data-theme='dark'] .theme-code-block .token.punctuation, [data-theme='dark'] .theme-code-block .token.operator, [data-theme='dark'] .theme-code-block .token.entity, [data-theme='dark'] .theme-code-block .token.url, [data-theme='dark'] .theme-code-block .token.symbol, [data-theme='dark'] .theme-code-block .token.number, [data-theme='dark'] .theme-code-block .token.boolean, [data-theme='dark'] .theme-code-block .token.variable, [data-theme='dark'] .theme-code-block .token.constant, [data-theme='dark'] .theme-code-block .token.property, [data-theme='dark'] .theme-code-block .token.regex, [data-theme='dark'] .theme-code-block .token.inserted { color: #fff !important; } [data-theme='dark'] .theme-code-block .token.atrule, [data-theme='dark'] .theme-code-block .token.keyword, [data-theme='dark'] .theme-code-block .token.attr-name, [data-theme='dark'] .theme-code-block .token.selector, [data-theme='dark'] .theme-code-block .token.tag { color: #fa7b6a !important; } [data-theme='dark'] .theme-code-block .token.function, [data-theme='dark'] .theme-code-block .token.deleted, [data-theme='dark'] .theme-code-block .token.function-variable { color: #d06bee !important; } /* Pre with title above - remove top border radius */ div[class*='codeBlockTitle'] + div[class*='codeBlockContent'] pre { border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; } pre * { font-size: 13px; font-weight: 500; } code { --bg-color: var(--mastra-surface-5); font-family: var(--ifm-font-family-monospace); border-radius: 0.375em; font-size: 0.875em; border: 1px solid color-mix(in oklab, #000 4%, transparent); background: color-mix(in oklab, #000 3%, transparent); padding: 0.12em 0.25em; position: relative; bottom: 0.125em; } [data-theme='dark'] code { background: color-mix(in oklab, #fff 10%, transparent); border-color: color-mix(in oklab, #fff 10%, transparent); } pre code { font-size: 13px; line-height: 1.6; background: transparent !important; border: none !important; padding: 0; color: var(--mastra-text-muted); } [data-theme='dark'] pre code { background: transparent; } /* Code block title bar */ div[class*='codeBlockTitle'] { border: 0.5px solid var(--border); border-bottom: none; background: var(--mastra-surface-2); border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; border-bottom-left-radius: 0; border-bottom-right-radius: 0; font-size: 0.875rem; color: var(--mastra-text-tertiary); font-family: var(--ifm-font-family-monospace); } [data-theme='dark'] div[class*='codeBlockTitle'] { border-color: var(--border); background: #171717; color: var(--mastra-text-tertiary); } ul { list-style: disc; } ol { list-style: decimal; } .grecaptcha-badge { visibility: hidden; } .table-of-contents li { margin: var(--ifm-toc-padding-vertical) 0; } kbd { all: unset; background: var(--ifm-background-color); border-radius: 4px; padding-inline: 0.38rem; padding-block: 0.2rem; display: flex; font-size: 10px; } [data-theme='dark'] kbd { background: var(--ifm-navbar-background-color); } /* ==================== TABS ==================== */ .tabs { border-bottom: var(--border-sm) solid var(--border); } .tabs__item { color: var(--mastra-text-tertiary); font-weight: 500; padding: 0.4rem 0.75rem; flex-shrink: 0; line-height: 1; } .tabs__item:hover { background: transparent; color: var(--mastra-text-primary); } .tabs__item--active { border-bottom: 2px solid var(--mastra-green-accent-2); color: var(--mastra-text-primary); } [data-theme='dark'] .tabs__item--active { border-bottom-color: var(--mastra-green-accent); } article p { color: var(--mastra-text-secondary); } /* ======= BreadCrumbs ==================== */ .breadcrumbs { margin-bottom: 0; display: flex; gap: 0.5rem; align-items: center; } .breadcrumbs__link { font-size: 14px; padding: 0; } .breadcrumbs__item:not(:last-child):after { margin: 0; margin-inline-start: var(--ifm-breadcrumb-spacing); } .breadcrumbs__item--active .breadcrumbs__link { background: transparent; color: var(--mastra-text-primary); } .breadcrumbs__item a { text-transform: capitalize; font-size: 14px; text-decoration: none; color: var(--mastra-text-tertiary); padding: 0; font-size: 14px; } /* Hide second item in doc footer so that edit page + llms.txt is full width */ .theme-doc-footer-edit-meta-row > :nth-child(2) { display: none; } .pagination-nav { display: flex; align-items: center; justify-content: space-between; } /* If pagination only has one item (that has the data-is-next="true" tag), it should align it to the right */ .pagination-nav:has(a[data-is-next='true']:only-child) { justify-content: flex-end; } .accordion-group { margin-bottom: var(--ifm-leading); } .accordion-group details { margin-bottom: 0; border-radius: 0; border: 0.5px solid var(--border); border-bottom: none !important; background-color: color-mix(in oklab, var(--mastra-surface-2) 40%, transparent); --docusaurus-details-decoration-color: var(--mastra-green-accent-3) !important; } [data-theme='dark'] { .accordion-group details { --docusaurus-details-decoration-color: var(--mastra-green-accent) !important; } } .accordion-group details > div > div { border-top: 0; margin-top: 0; } .accordion-group details:first-of-type { border-top-left-radius: var(--radius-xl); border-top-right-radius: var(--radius-xl); } .accordion-group details:last-of-type { border-bottom-left-radius: var(--radius-xl); border-bottom-right-radius: var(--radius-xl); border-bottom: 0.5px solid var(--border) !important; } html.plugin-id-integrations.docs-doc-id-index { div[data-name='doc-breadcrumbs-copy'] { display: none; } h1 { margin-top: 2rem; } } @media (min-width: 62.25rem) { html.plugin-id-integrations.docs-doc-id-index { #doc-item-container { max-width: 70rem; } [class*='docItemContainer'] { max-width: 70rem; } } #doc-item-container { gap: 2rem; } .theme-layout-footer { max-width: 62.25rem; margin: 0 auto; } .footer > .container { max-width: 62.25rem; } .menu__caret { &::before { background: var(--ifm-menu-link-sublist-icon) center; } } .menu__link { &:after { background: var(--ifm-menu-link-sublist-icon) center; transform-origin: center; } } /* stylelint-disable selector-class-pattern */ li[data-contextual-sidebar='true'] > .menu__link::after { content: ''; flex: 0 0 1.25rem; height: 1.25rem; margin-inline-start: auto; background: var(--ifm-menu-link-sublist-icon) center; transform: rotate(90deg); transition: transform var(--ifm-transition-fast) linear; } /* stylelint-enable selector-class-pattern */ [class*='docSidebarContainer'] { width: 280px !important; } .theme-doc-sidebar-container [class^='sidebar_'] { width: 280px !important; } .table-of-contents__left-border { border: none; padding-inline-start: 0; } /* ======= Markdown headings ==================== */ .markdown h1:first-child { --ifm-h1-font-size: 2.25rem; letter-spacing: -0.028em; } .markdown { h1, h2, h3, h4, h5, h6 { letter-spacing: -0.028em; } h2, h3 { border-bottom: 1px solid oklch(92.8% 0.006 264.531); padding-bottom: 0.5rem; font-weight: 600; } } [data-theme='dark'] { .markdown h2, .markdown h3 { border-bottom-color: var(--border); } } /* Highlighted lines in code blocks */ .theme-code-block-highlighted-line { box-shadow: 2px 0 var(--mastra-green-accent-2) inset; } .theme-code-block-highlighted-line.codeLine_lJS_ [class*='codeLineContent'] { &:before { content: ''; inset-block: 0; left: 20px; background: var(--docusaurus-highlighted-code-line-bg); position: absolute; z-index: -1; } position: relative; background: transparent; } .theme-code-block-highlighted-line.codeLine_lJS_ [class*='codeLineNumber'] { &:after { content: ''; inset-block: 0; left: 0; background: var(--docusaurus-highlighted-code-line-bg); position: absolute; z-index: -1; } position: relative; background: transparent; } [data-theme='dark'] .theme-code-block-highlighted-line { background-color: var(--mastra-surface-5); } /* Copy button */ button[class*='copyButton'], button[class*='clean-btn'] { border: none; background: transparent; } button[class*='copyButton']:hover { background: var(--mastra-surface-3); } [data-theme='dark'] button[class*='copyButton']:hover { background: var(--mastra-surface-4); } pre code > span, .prism-code > span { white-space: pre-wrap; overflow-x: auto; } article p code, article li code, article td code { font-size: 0.875em; padding: 0.12em 0.25em; border-radius: 0.375em; background: color-mix(in oklab, #000 3%, transparent); border: 1px solid color-mix(in oklab, #000 4%, transparent); bottom: 0.075em; } [data-theme='dark'] article p code, [data-theme='dark'] article li code, [data-theme='dark'] article td code { border-color: var(--border-code); } /* Language label in code blocks */ div[class*='codeBlockLines'] { font-family: var(--ifm-font-family-monospace); } /* Line numbers in code blocks */ .prism-code .token-line::before { color: var(--mastra-text-muted-2); } [data-theme='dark'] .prism-code .token-line::before { color: var(--mastra-text-quaternary); } /* ==================== SIDEBAR ==================== */ .theme-doc-sidebar-container { border-right: 1px solid var(--border); } [data-theme='dark'] .theme-doc-sidebar-container { border-right-color: var(--border); } } /* ==================== FOOTER ==================== */ .footer { container: docs-footer / inline-size; width: 100%; background: transparent; color: var(--mastra-text-secondary); padding: 2.5rem 1rem; max-width: var(--ifm-container-width); } .footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; margin: 0; } .footer__col { min-width: 0; width: auto; margin: 0; padding: 0; } .footer__title { margin-bottom: 1rem; color: var(--mastra-text-primary); font-size: 0.875rem; font-weight: 500; } .footer__item { margin: 0; font-size: 0.875rem; line-height: 1.75; } .footer__link-item { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--mastra-text-tertiary); font-size: 0.875rem; font-weight: 400; overflow-wrap: anywhere; transition: color 150ms ease; } .footer__link-item:hover, .footer__link-item:focus-visible { color: var(--mastra-text-primary); text-decoration: none; } @media (min-width: 996px) { .footer { padding: 5rem 1rem 3rem; } } @container docs-footer (min-width: 32rem) { .footer__links { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2.5rem; } } @container docs-footer (min-width: 56rem) { .footer__links { grid-template-columns: repeat(5, max-content); justify-content: space-between; column-gap: 1rem; } } @container docs-footer (min-width: 75rem) { .footer__links { grid-template-columns: repeat(5, minmax(0, 1fr)); justify-content: stretch; column-gap: 2.5rem; } } .footer__copyright { color: var(--mastra-text-tertiary); font-size: 0.8125rem; } @media (min-width: 62.25rem) { /* ==================== TYPOGRAPHY ==================== */ article h1, article h2, article h3, article h4, article h5, article h6 { color: var(--mastra-text-primary); } article li { color: var(--mastra-text-secondary); } /* ==================== TABLES ==================== */ table { border: none; border-collapse: collapse; } table thead tr { border-bottom: 1px solid var(--border); } table tbody tr { border-bottom: 1px solid var(--border); } table tbody tr:last-child { border-bottom: none; } thead th { text-align: left; color: var(--mastra-text-primary); font-weight: 600; padding: 0.8rem; } tbody td { padding: 0.8rem; color: var(--mastra-text-secondary); } table code { display: inline-flex; align-items: center; justify-content: center; width: fit-content; } /* ==================== ADMONITIONS ==================== */ .theme-admonition { border-left-width: 4px; } .alert { border: var(--border-sm) solid var(--border); box-shadow: none; } [data-theme='dark'] .alert { border-color: var(--border); } /* ==================== BREADCRUMBS ==================== */ .breadcrumbs__link { color: var(--mastra-text-tertiary); } .breadcrumbs__link:hover { color: var(--mastra-text-primary); background: transparent; } /* ==================== PAGINATION ==================== */ .pagination-nav__link { border: var(--border-sm) solid var(--border); } .pagination-nav__link:hover { border-color: var(--mastra-green-accent-2); } [data-theme='dark'] .pagination-nav__link:hover { border-color: var(--mastra-green-accent); } /* ==================== TOC (Table of Contents) ==================== */ .table-of-contents__link { color: var(--mastra-text-tertiary); font-weight: 400; } .table-of-contents__link:hover { color: var(--mastra-text-primary); } .table-of-contents__link--active { color: var(--mastra-text-primary); font-weight: 500; } /* ==================== CONTAINER MAX-WIDTH ==================== */ .container { max-width: 1400px; } /* ==================== DOC MAIN CONTAINER ==================== */ header h1 { text-wrap: balance; } /* Hide in Safari */ input, button { font-family: var(--ifm-font-family-base); } input[type='search']::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; } #doc-item-container { container-name: doc; } #doc-item-container { max-width: 62.25rem; margin: 0 auto; } .card__grid a { color: var(--mastra-text-secondary); } [data-theme='dark'] .card__grid a { color: white; } .navbar-sidebar__item { padding-inline: 0.5rem !important; } .theme-doc-toc-mobile { ul { border-color: var(--border) !important; } button { &:after { background: var(--ifm-menu-link-sublist-icon) center; transform-origin: center; } } } .docusaurus-mt-lg { overflow-x: revert; } [class*='docItemContainer'] { max-width: 48rem; margin: 0 auto; } .theme-doc-sidebar-container.theme-doc-sidebar-container { padding-inline-start: 0rem; border-right: 1px solid var(--border); /* Docusaurus's sidebar container module sets clip-path: inset(0), which clips the inverse corner that intentionally overflows the right edge. Override it here with matching-or-higher specificity. */ clip-path: none; } .theme-doc-toc-desktop.theme-doc-toc-desktop { position: static !important; overflow-y: unset !important; max-height: none !important; } #toc-column { position: sticky; overflow-y: auto; top: calc(var(--ifm-navbar-height) + 2rem); max-height: calc(100vh - var(--ifm-navbar-height) - 8rem); scrollbar-width: thin; } } /* ==================== LEARN SECTION ==================== */ /* Override Infima link and list styles */ .learn-link, .learn-link:hover { text-decoration: none !important; } .learn-sidebar-item, .learn-sidebar-item:hover { text-decoration: none !important; } /* Override Infima's a:hover color for sidebar items */ a.learn-sidebar-item:hover { color: #027930 !important; } [data-theme='dark'] a.learn-sidebar-item:hover { color: #1afb6f !important; } /* Active sidebar item */ a.learn-sidebar-item.is-active { color: #027930 !important; font-weight: 500; } [data-theme='dark'] a.learn-sidebar-item.is-active { color: #1afb6f !important; } .learn-sidebar ul, .learn-sidebar li { margin: 0 !important; padding: 0 !important; list-style: none !important; } /* Meta text: lesson info bar above headline */ .learn-meta-text { color: var(--mastra-text-tertiary); } [data-theme='dark'] .learn-meta-text { color: #b0b0b0; } /* Watched icon: shared between header checkbox and sidebar */ .learn-watched-icon { display: flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; border-radius: 9999px; border: 2px solid var(--border); color: transparent; font-size: 0.75rem; flex-shrink: 0; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease; } .learn-watched-icon.is-watched { background-color: var(--mastra-green-accent-3); border-color: var(--mastra-green-accent-3); color: white; } .learn-watched-icon.is-animate { animation: learn-watched-pop 0.3s ease; } [data-theme='dark'] .learn-watched-icon.is-watched { background-color: var(--mastra-green-accent-2); border-color: var(--mastra-green-accent-2); } @keyframes learn-watched-pop { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } } /* Unwatched icon: empty circle */ .learn-sidebar-icon-unwatched { width: 1.25rem; height: 1.25rem; flex-shrink: 0; border-radius: 9999px; border: 2px solid var(--border); transition: border-color 0.3s ease; } [data-theme='dark'] .learn-sidebar-icon-unwatched { border-color: #666; } /* In-progress icon: yellow border circle */ .learn-sidebar-icon-in-progress { width: 1.25rem; height: 1.25rem; flex-shrink: 0; border-radius: 9999px; border: 2px solid #eab308; transition: border-color 0.3s ease; } /* Coming soon icon: dashed border circle */ .learn-sidebar-icon-coming-soon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; border-radius: 9999px; border: 1.5px dashed var(--mastra-text-muted); opacity: 0.5; } [data-theme='dark'] .learn-sidebar-icon-coming-soon { border-color: #666; opacity: 0.7; } /* Status chip colors using design system greens */ .learn-status-published { background-color: color-mix(in srgb, var(--mastra-green-accent-3) 10%, transparent); color: var(--mastra-green-accent-3); } [data-theme='dark'] .learn-status-published { background-color: color-mix(in srgb, var(--mastra-green-accent) 15%, transparent); color: var(--mastra-green-accent); } .learn-status-coming-soon { background-color: color-mix(in srgb, #eab308 10%, transparent); color: #a16207; } [data-theme='dark'] .learn-status-coming-soon { background-color: color-mix(in srgb, #eab308 15%, transparent); color: #facc15; } /* Progress bar completed segment */ .learn-progress-completed { background-color: var(--mastra-green-accent-3); transition: width 0.5s ease-in-out; } [data-theme='dark'] .learn-progress-completed { background-color: var(--mastra-green-accent-2); } /* Subscribed CTA box */ .learn-subscribed { border-color: color-mix(in srgb, var(--mastra-green-accent-3) 20%, transparent); background-color: color-mix(in srgb, var(--mastra-green-accent-3) 5%, transparent); } [data-theme='dark'] .learn-subscribed { border-color: color-mix(in srgb, var(--mastra-green-accent) 20%, transparent); background-color: color-mix(in srgb, var(--mastra-green-accent) 5%, transparent); } /* Bullet point in coming soon preview */ .learn-bullet { color: var(--mastra-green-accent-3); } [data-theme='dark'] .learn-bullet { color: var(--mastra-green-accent); } /* Sidebar link hover — unlayered to beat Infima's a:hover */ .learn-link:hover { color: var(--mastra-green-accent-3) !important; } [data-theme='dark'] .learn-link:hover { color: var(--mastra-green-accent) !important; } /* Lesson prev/next nav: stacked on mobile, side-by-side on desktop */ .learn-lesson-nav { display: flex; flex-direction: column; gap: 0.5rem; padding-block: 1.5rem; } /* Learn layout — unlayered to beat Tailwind @layer utilities (CSS Cascade Layers) */ .learn-layout-flex { display: flex; min-height: calc(100vh - var(--ifm-navbar-height)); } .learn-main { display: flex; flex: 1 1 0%; flex-direction: column; justify-content: flex-start; overflow-x: hidden; } .learn-article { padding-inline: 1rem; } /* Sidebar: hidden on mobile, shown on desktop */ .learn-sidebar-container { display: none; } /* Desktop overrides */ @media (min-width: 62.25rem) { .learn-sidebar-container { display: block; position: sticky; top: var(--ifm-navbar-height); height: calc(100vh - var(--ifm-navbar-height)); width: var(--doc-sidebar-width); flex-shrink: 0; border-right: 1px solid var(--sidebar-border); background: var(--ifm-background-color); } .learn-lesson-nav { flex-direction: row; align-items: center; justify-content: space-between; } } /* Learn content area — match docs max-width and font size */ .learn-main [class*='container'] article { max-width: 48rem; } /* "new" badge on Learn tab */ .learn-tab-badge { display: inline-flex; align-items: center; border-radius: 9999px; padding: 0 6px; font-size: 10px; font-weight: 600; line-height: 18px; text-transform: uppercase; letter-spacing: 0.03em; background-color: color-mix(in srgb, var(--mastra-green-accent-3) 15%, transparent); color: var(--mastra-green-accent-3); } [data-theme='dark'] .learn-tab-badge { background-color: color-mix(in srgb, var(--mastra-green-accent) 15%, transparent); color: var(--mastra-green-accent); } /* ==================== ALGOLIA SEARCH PLUGIN ==================== */ /* * Helper classes consumed by @mastra/docusaurus-plugin-algolia. The plugin's * UI references the `.mastra-card`, `.mastra-search-button`, `.dialog-panel` * classes, which are normally provided by @mastra/docusaurus-theme. This site * does not use that theme, so they are mapped here onto the docs' own design * tokens. The `--algolia-*` / `--mastra-*` variables the plugin reads are * defined alongside the rest of the site's design tokens above. */ /* Search trigger button in the navbar (button.clean-btn.mastra-search-button). */ .mastra-search-button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 0.5px solid var(--border); border-radius: 0.5rem; background: var(--mastra-surface-4); color: var(--mastra-icons-2); font-size: 0.875rem; cursor: pointer; transition: background-color 150ms ease; } .mastra-search-button:hover { background: var(--mastra-color-surface-hover); } .mastra-search-button svg { width: 16px; height: 16px; } /* Collapse to an icon-only trigger below the large breakpoint. */ .mastra-search-button > span { display: none; } @media (width >= 62.25rem) { .mastra-search-button { width: auto; } .mastra-search-button > span { display: inline; } } /* Card shell wrapping the search dialog contents. */ .mastra-card { color: var(--mastra-text-tertiary); } .mastra-card :is(h1, h2, h3, h4, h5, h6) { color: var(--ifm-heading-color); } /* Matched-term highlight inside results: weight + primary color, no yellow. */ .mastra-card mark { background: transparent; color: var(--algolia-highlight); font-weight: 600; padding: 0; } /* Reset the search input rendered inside the dialog. */ .dialog-panel input[type='search'] { border: none; background: transparent; } /* * Child result rows (in-page heading hits) render their title with Tailwind's * `truncate` (overflow: hidden), which sets the flex item's automatic minimum * size to 0. As a direct child of the flex-column row — sibling to the excerpt — * the flex algorithm then collapses the title to height: 0, hiding the heading * so every sub-result looks like a duplicate of its excerpt. Pin the title so it * keeps its line box and can't be shrunk away. */ #docs-search-results .group > span.truncate { flex-shrink: 0; }