Pre-built Themes & Style Recipes
Looking for a cohesive aesthetic without designing color tokens from scratch? RapiDoc includes 9 built-in presets inspired by modern design systems, fully compatible with both dark and light color modes.
1. Amber Minimal (Default Fallback)
Section titled “1. Amber Minimal (Default Fallback)”Warm amber highlights over deep charcoal surfaces. Delivers high contrast and warm visual polish.
<rapi-doc spec-url="https://petstore.swagger.io/v2/swagger.json" theme="amber" color-scheme="dark" radius="sm" scale="default"></rapi-doc><rapi-doc spec-url="https://petstore.swagger.io/v2/swagger.json" theme="amber" color-scheme="light" radius="sm" scale="default"></rapi-doc>/* Add subtle amber focus ring and border styling */rapi-doc::part(section-navbar) { border-right: 1px solid var(--border);}rapi-doc::part(textbox-nav-filter) { border-radius: var(--radius);}2. Developer Blue (Default)
Section titled “2. Developer Blue (Default)”The classic developer portal palette: crisp blue brand accent paired with balanced dark or light surfaces.
<rapi-doc spec-url="https://petstore.swagger.io/v2/swagger.json" theme="blue" color-scheme="dark" radius="md" scale="default"></rapi-doc><rapi-doc spec-url="https://petstore.swagger.io/v2/swagger.json" theme="blue" color-scheme="light" radius="md" scale="default"></rapi-doc>3. Fintech & Security Emerald (emerald / modern)
Section titled “3. Fintech & Security Emerald (emerald / modern)”Polished dark slate surfaces accented with vivid emerald green, ideal for payments, banking, security, and infrastructure APIs.
<rapi-doc spec-url="https://petstore.swagger.io/v2/swagger.json" theme="emerald" color-scheme="dark" radius="sm" scale="default"></rapi-doc><rapi-doc spec-url="https://petstore.swagger.io/v2/swagger.json" theme="emerald" color-scheme="light" radius="sm" scale="default"></rapi-doc>/* Style primary actions with emerald glow */rapi-doc::part(btn-fill) { box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25); border-radius: var(--radius);}4. Modern Violet (violet)
Section titled “4. Modern Violet (violet)”Electric purple accents over deep violet-tinted surfaces. Perfect for cloud platforms, SaaS, and Web3 products.
<rapi-doc spec-url="https://petstore.swagger.io/v2/swagger.json" theme="violet" color-scheme="dark" radius="lg" scale="default"></rapi-doc><rapi-doc spec-url="https://petstore.swagger.io/v2/swagger.json" theme="violet" color-scheme="light" radius="lg" scale="default"></rapi-doc>5. Monochrome Graphite (graphite)
Section titled “5. Monochrome Graphite (graphite)”Ultra-clean monochrome palette inspired by modern terminal interfaces and developer IDEs.
<rapi-doc spec-url="https://petstore.swagger.io/v2/swagger.json" theme="graphite" color-scheme="dark" radius="none" scale="default"></rapi-doc><rapi-doc spec-url="https://petstore.swagger.io/v2/swagger.json" theme="graphite" color-scheme="light" radius="sm" scale="default"></rapi-doc>6. Ruby Rose (rose)
Section titled “6. Ruby Rose (rose)”Vibrant rose pink highlights over neutral slate surfaces. Contemporary, high-contrast, and energetic.
<rapi-doc spec-url="https://petstore.swagger.io/v2/swagger.json" theme="rose" color-scheme="dark" radius="md"></rapi-doc>7. Enterprise Slate (slate)
Section titled “7. Enterprise Slate (slate)”Understated cool grey slate tones tailored for enterprise intranets and corporate software documentation.
<rapi-doc spec-url="https://petstore.swagger.io/v2/swagger.json" theme="slate" color-scheme="dark" radius="sm"></rapi-doc>8. Custom Corporate Brand Hex Color
Section titled “8. Custom Corporate Brand Hex Color”Supply your exact brand hex code into theme. RapiDoc automatically manages focus rings and accessible foreground text contrast.
<rapi-doc spec-url="https://petstore.swagger.io/v2/swagger.json" theme="#2563eb" color-scheme="dark" radius="md"></rapi-doc>9. Automatic OS Dark / Light Switching (system)
Section titled “9. Automatic OS Dark / Light Switching (system)”To match the end user’s operating system preferences automatically, set color-scheme="system":
<rapi-doc spec-url="https://petstore.swagger.io/v2/swagger.json" theme="emerald" color-scheme="system" radius="md"></rapi-doc>