|
| 1 | +/* |
| 2 | + * Airbyte Brand Styling for Agentic Connector Builder WebApp |
| 3 | + * |
| 4 | + * This stylesheet applies Airbyte branding to the Reflex web application. |
| 5 | + * Colors and design tokens are sourced from the main Airbyte documentation site. |
| 6 | + * |
| 7 | + * Primary source: https://github.com/airbytehq/airbyte/blob/main/docusaurus/src/css/custom.css |
| 8 | + * The Airbyte design system uses a purple primary color (#615eff) and Inter font family. |
| 9 | + */ |
| 10 | + |
| 11 | +@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap"); |
| 12 | + |
| 13 | +:root { |
| 14 | + /* Airbyte Primary Colors */ |
| 15 | + --airbyte-primary: #615eff; |
| 16 | + --airbyte-primary-dark: #3f3bff; |
| 17 | + --airbyte-primary-darker: #2e2aff; |
| 18 | + --airbyte-primary-darkest: #0500f4; |
| 19 | + --airbyte-primary-light: #8381ff; |
| 20 | + --airbyte-primary-lighter: #9492ff; |
| 21 | + --airbyte-primary-lightest: #c8c7ff; |
| 22 | + |
| 23 | + /* Airbyte Color Palette */ |
| 24 | + --color-white: hsl(0, 0%, 100%); |
| 25 | + --color-grey-40: hsl(240, 25%, 98%); |
| 26 | + --color-grey-100: hsl(240, 12%, 92%); |
| 27 | + --color-grey-400: hsl(239, 10%, 59%); |
| 28 | + --color-grey-500: hsl(240, 10%, 49%); |
| 29 | + --color-grey-900: hsl(240, 19%, 18%); |
| 30 | + --color-green-40: hsl(185, 76%, 97%); |
| 31 | + --color-green-50: hsl(184, 67%, 92%); |
| 32 | + --color-green-600: hsl(185, 100%, 35%); |
| 33 | + --color-green-800: hsl(184, 100%, 26%); |
| 34 | + --color-blue-30: hsl(240, 100%, 98%); |
| 35 | + --color-dark-blue-40: hsl(230, 23%, 95%); |
| 36 | + --color-dark-blue-700: hsl(236, 43%, 31%); |
| 37 | +} |
| 38 | + |
| 39 | +/* Dark mode colors */ |
| 40 | +@media (prefers-color-scheme: dark) { |
| 41 | + :root { |
| 42 | + --airbyte-primary: #7976ff; |
| 43 | + --airbyte-primary-dark: #3f3bff; |
| 44 | + --airbyte-primary-darker: #2e2aff; |
| 45 | + --airbyte-primary-light: #8381ff; |
| 46 | + --airbyte-primary-lighter: #9492ff; |
| 47 | + --airbyte-primary-lightest: #c8c7ff; |
| 48 | + |
| 49 | + --color-grey-40: hsl(240, 14%, 14%); |
| 50 | + --color-grey-100: hsl(240, 15%, 15%); |
| 51 | + --color-grey-400: hsl(240, 13%, 72%); |
| 52 | + --color-grey-500: hsl(240, 10%, 70%); |
| 53 | + --color-grey-900: hsl(240, 10%, 90%); |
| 54 | + --color-green-50: hsl(184, 100%, 12%); |
| 55 | + --color-blue-30: hsl(252, 25%, 18%); |
| 56 | + --color-dark-blue-700: hsl(240, 100%, 98%); |
| 57 | + --color-white: hsl(0, 0%, 16%); |
| 58 | + } |
| 59 | +} |
| 60 | + |
| 61 | +/* Apply Inter font family - Airbyte's brand font */ |
| 62 | +body { |
| 63 | + font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important; |
| 64 | +} |
| 65 | + |
| 66 | +/* Apply Airbyte purple to links */ |
| 67 | +a { |
| 68 | + color: var(--airbyte-primary) !important; |
| 69 | + transition: color 0.2s ease; |
| 70 | +} |
| 71 | + |
| 72 | +a:hover { |
| 73 | + color: var(--airbyte-primary-light) !important; |
| 74 | +} |
| 75 | + |
| 76 | +/* Style buttons with Airbyte purple */ |
| 77 | +.rt-Button { |
| 78 | + background-color: var(--airbyte-primary) !important; |
| 79 | + border-color: var(--airbyte-primary) !important; |
| 80 | + transition: background-color 0.2s ease; |
| 81 | +} |
| 82 | + |
| 83 | +.rt-Button:hover { |
| 84 | + background-color: var(--airbyte-primary-dark) !important; |
| 85 | + border-color: var(--airbyte-primary-dark) !important; |
| 86 | +} |
| 87 | + |
| 88 | +/* Style input fields with Airbyte focus ring */ |
| 89 | +input:focus, |
| 90 | +textarea:focus, |
| 91 | +select:focus { |
| 92 | + outline: none !important; |
| 93 | + border-color: var(--airbyte-primary) !important; |
| 94 | + box-shadow: 0 0 0 3px var(--airbyte-primary-lightest) !important; |
| 95 | +} |
| 96 | + |
| 97 | +/* Enhanced heading styles */ |
| 98 | +h1, h2, h3, h4, h5, h6 { |
| 99 | + font-weight: 600 !important; |
| 100 | +} |
| 101 | + |
| 102 | +/* Style tabs with Airbyte purple */ |
| 103 | +[role="tab"][data-state="active"] { |
| 104 | + color: var(--airbyte-primary) !important; |
| 105 | + border-bottom-color: var(--airbyte-primary) !important; |
| 106 | +} |
| 107 | + |
| 108 | +/* Style the main heading with Airbyte purple accent */ |
| 109 | +.rt-Heading { |
| 110 | + color: var(--airbyte-primary-lighter) !important; |
| 111 | +} |
| 112 | + |
| 113 | +/* Improve spacing and readability */ |
| 114 | +.rt-Text { |
| 115 | + line-height: 1.6; |
| 116 | +} |
| 117 | + |
| 118 | +/* Style code blocks (exclude Monaco editor to preserve its theme) */ |
| 119 | +code:not(.monaco-editor *), |
| 120 | +pre:not(.monaco-editor *) { |
| 121 | + border-radius: 8px; |
| 122 | + background-color: var(--color-blue-30) !important; |
| 123 | +} |
| 124 | + |
| 125 | +/* Header container scoped styles */ |
| 126 | +.app-header .rt-Heading { |
| 127 | + color: #ffffff !important; |
| 128 | +} |
| 129 | + |
| 130 | +/* Legacy support for header-title class */ |
| 131 | +.header-title { |
| 132 | + color: #ffffff !important; |
| 133 | +} |
| 134 | + |
| 135 | +/* Responsive improvements */ |
| 136 | +@media (max-width: 768px) { |
| 137 | + body { |
| 138 | + font-size: 14px; |
| 139 | + } |
| 140 | +} |
0 commit comments