Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(tailwind): add custom color palette to Tailwind config

Steven Enamakel4b0f31b565d7
diff --git a/app/src/index.css b/app/src/index.css
index f8d7868b06..6d652b9e30 100644
--- a/app/src/index.css
+++ b/app/src/index.css
@@ -76,359 +76,4 @@
background: transparent;
}
- @media (prefers-reduced-motion: reduce) {
- *::-webkit-scrollbar-thumb {
- transition: none;
- }
- }
-
- body {
- @apply font-sans;
- line-height: 1.6;
-
- /* Themes may supply a decorative `--app-gradient`; fall back to the flat
- canvas colour when they don't. */
- background: var(--app-gradient, var(--color-background));
- color: var(--color-text-primary);
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- }
-
- /* Full-viewport film grain. Moved here verbatim from `styles/theme.css` when
- that file was deleted: it was the one rule in those 713 lines with a
- visible effect, and dropping it silently would have re-skinned every
- screen. Decorative and non-interactive, so it stays out of the a11y tree
- and never eats a pointer event. */
- body::before {
- content: '';
- position: fixed;
- inset: 0;
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03' /%3E%3C/svg%3E");
- pointer-events: none;
- z-index: 1;
- opacity: 0.4;
- }
-
- :root.dark body::before {
- opacity: 0.15;
- }
-
- html[data-window='overlay'],
- html[data-window='overlay'] body,
- html[data-window='overlay'] #root,
- html[data-window='mascot'],
- html[data-window='mascot'] body,
- html[data-window='mascot'] #root,
- html[data-window='notch'],
- html[data-window='notch'] body,
- html[data-window='notch'] #root {
- background: transparent;
- overflow: hidden;
- user-select: none;
- }
-
- @keyframes notch-pill-in {
- from {
- opacity: 0;
- transform: scaleX(0.4) scaleY(0.7);
- }
- to {
- opacity: 1;
- transform: scaleX(1) scaleY(1);
- }
- }
-
- @keyframes notch-bar {
- 0%,
- 100% {
- transform: scaleY(0.5);
- opacity: 0.6;
- }
- 50% {
- transform: scaleY(1.2);
- opacity: 1;
- }
- }
-
- @keyframes notch-dot {
- 0%,
- 80%,
- 100% {
- transform: scale(0.6);
- opacity: 0.4;
- }
- 40% {
- transform: scale(1);
- opacity: 1;
- }
- }
-
- @keyframes overlay-bubble-in {
- from {
- opacity: 0;
- transform: translateY(10px) scale(0.92);
- }
-
- to {
- opacity: 1;
- transform: translateY(0) scale(1);
- }
- }
-
- * {
- color: inherit;
- }
-
- /* Heading hierarchy for clear information architecture */
- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
- /* Heading font role + semantic text colour (themeable). */
- @apply font-heading font-semibold;
- @apply text-content;
- line-height: 1.2;
- }
-
- h1 {
- @apply text-3xl lg:text-4xl;
- }
- h2 {
- @apply text-2xl lg:text-3xl;
- }
- h3 {
- @apply text-xl lg:text-2xl;
- }
- h4 {
- @apply text-lg lg:text-xl;
- }
-
- /* Suppress the default browser focus ring (outline + tap highlight) but
- leave borders and box-shadows alone — components rely on those for
- selected / focus-visible styling (e.g. the runtime picker cards).
- Deliberate outlines are left alone too. This block used to carry
- `outline: none !important` on the bare `*`, which suppressed EVERY outline
- in the app, not just the focus ring it was aimed at — `!important` on a
- universal selector outranks any component rule. That silently killed all
- four flow-canvas rings, which are drawn with `outline`: the live run
- overlay (`.flow-node-running` / `-success` / `-failed`), the validation
- ring (`.flow-node-error`), and the copilot diff overlay
- (`.flow-node-added` / `-removed`). None of them could ever paint. The
- focus-ring suppression this comment actually describes is fully covered by
- the `*:focus` rule below plus the explicit element list after it. */
- * {
- -webkit-tap-highlight-color: transparent !important;
- }
-
- *:focus {
- outline: none !important;
- }
-
- button:focus,
- a:focus,
- input:focus,
- textarea:focus,
- select:focus,
- [role='button']:focus,
- [tabindex]:focus {
- outline: none !important;
- }
-
- /* Smooth scrolling */
- html {
- scroll-behavior: smooth;
- }
-}
-
-/* Component layer - Reusable patterns */
-@layer components {
-
- /* ============================================
- Dark-mode overrides for @apply'd component classes.
- Most classes are now token-driven (semantic surface/content/line) and flip
- automatically, so only the tinted status badges — which keep a light accent
- tint in light mode — still need an explicit dark override.
- ============================================ */
-
-}
-
-/* Utility layer - Custom utilities */
-@layer utilities {
- /* NOTE: a `.scrollbar-thin` utility used to live here. It had zero call
- sites, and being in `@layer utilities` it outranked the base-layer
- auto-hide rules above — so the moment anyone reached for it, that pane
- would have kept a permanently visible grey thumb and silently ignored
- `data-scrolling`. Deleted rather than kept as a trap; scrollbars are thin
- and theme-tinted app-wide now, so nothing needs to opt in. */
-
- /* Hide scrollbar while keeping scroll behavior.
- Kept as hand-written CSS deliberately: `scrollbar-width: none` has a
- Tailwind utility (`scrollbar-none` isn't in core, but the property is
- expressible), yet the matching `::-webkit-scrollbar { display: none }`
- pseudo-element rule is not something a utility class can express — there
- is no `webkit-scrollbar` variant in Tailwind. Both halves are required
- together (Firefox honours the first, Chromium/CEF the second), so this
- one rule stays as CSS rather than a partial migration. */
- .scrollbar-hide {
- scrollbar-width: none;
- -ms-overflow-style: none;
- }
- .scrollbar-hide::-webkit-scrollbar {
- display: none;
- }
-
- /* Animation utilities */
- .animate-fade-in-up {
- animation: fadeInUp 0.5s ease-out forwards;
- }
-
- @keyframes fadeInUp {
- from {
- opacity: 0;
- transform: translateY(20px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
-
- /* Modal animations */
- .animate-fade-in {
- animation: fadeIn 0.2s ease-out forwards;
- }
-
- .animate-slide-up {
- animation: slideUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
- }
-
- @keyframes fadeIn {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
- }
-
- @keyframes slideUp {
- from {
- opacity: 0;
- transform: translateY(20px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
-
- /* Safe area padding for mobile devices */
- .safe-area-padding {
- padding-top: env(safe-area-inset-top);
- padding-bottom: env(safe-area-inset-bottom);
- padding-left: env(safe-area-inset-left);
- padding-right: env(safe-area-inset-right);
- }
-
- /* Skills table container */
- .skills-table-container {
- position: relative;
- max-height: calc(3 * 2.5rem + 2.5rem + 1px); /* Header + 3 rows + border */
- overflow: hidden;
- display: flex;
- flex-direction: column;
- }
-
- .skills-table-scroll {
- overflow-y: auto;
- overflow-x: hidden;
- max-height: calc(3 * 2.5rem + 2.5rem + 1px);
- }
-
- .skills-table-header {
- position: sticky;
- top: 0;
- z-index: 10;
- background: rgba(255, 255, 255, 0.9);
- backdrop-filter: blur(8px);
- }
-
- :root.dark .skills-table-header {
- background: rgba(23, 23, 23, 0.9);
- }
-
- /* Gradient fade overlay at bottom */
- .skills-table-container::after {
- content: '';
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- height: 50px;
- background: linear-gradient(to bottom, transparent, rgba(245, 245, 245, 0.9));
- pointer-events: none;
- z-index: 10;
- }
-
- :root.dark .skills-table-container::after {
- background: linear-gradient(to bottom, transparent, rgba(10, 10, 10, 0.9));
- }
-
- /* Hover overlay */
- .skills-table-overlay {
- z-index: 20;
- }
-
- .skills-table-container:hover .skills-table-overlay {
- opacity: 1;
- pointer-events: auto;
- }
-}
-
-/* Light mode (default) */
-:root {
- color-scheme: light;
-}
-
-/*
- * Command palette + help overlay tokens — now thin aliases over the canonical
- * theme tokens in styles/tokens.css, so the palette themes along with the rest
- * of the app. Only the shadow (not a colour token) stays literal.
- */
-:root {
- --cmd-accent: rgb(var(--primary-500));
- --cmd-surface: rgb(var(--surface));
- --cmd-surface-elevated: rgb(var(--surface-subtle));
- --cmd-foreground: rgb(var(--content));
- --cmd-foreground-muted: rgb(var(--content-muted));
- --cmd-border: rgb(var(--line));
- --cmd-ring: var(--cmd-accent);
- --cmd-overlay: rgb(var(--surface-overlay) / 0.5);
- --cmd-shadow-palette: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
-}
-
-:root.dark {
- --cmd-accent: rgb(var(--primary-400));
- --cmd-surface: rgb(var(--surface));
- --cmd-surface-elevated: rgb(var(--surface-muted));
- --cmd-foreground: rgb(var(--content));
- --cmd-foreground-muted: rgb(var(--content-muted));
- --cmd-border: rgb(var(--line-strong));
- --cmd-overlay: rgb(var(--surface-overlay) / 0.7);
- --cmd-shadow-palette: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.25);
-}
-
-@media (prefers-reduced-motion: reduce) {
- .cmd-palette-enter,
- .cmd-palette-exit,
- .cmd-help-enter,
- .cmd-help-exit {
- animation: none !important;
- transition: none !important;
- }
-}
+
diff --git a/app/tailwind.config.js b/app/tailwind.config.js
index 647386e4ef..255fb542da 100644
--- a/app/tailwind.config.js
+++ b/app/tailwind.config.js
@@ -268,7 +268,10 @@ module.exports = {
// Premium animations for polished interactions
animation: {
- 'fade-in': 'fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1)',
+ // Was ALSO hand-written in index.css as `.animate-fade-in`, which shadowed
+ // this one in the shipped bundle (verified in dist: `.2s ease-out forwards`).
+ // The CSS copy is gone; these are its values, so the 8 call sites are unchanged.
+ 'fade-in': 'fadeIn 0.2s ease-out forwards',
'fade-up': 'fadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1)',
'slide-in': 'slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1)',
'slide-right': 'slideRight 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)',