Skip to content

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

chore(css): remove unused CSS file

Steven Enamakel121a81710fbb
diff --git a/app/src/index.css b/app/src/index.css
index ed0b17381a..ca7d5e130b 100644
--- a/app/src/index.css
+++ b/app/src/index.css
@@ -667,60 +667,58 @@
outline: none !important;
}
- /* `@plugin '@tailwindcss/forms'` gives every bare input / textarea / select a
- focus ring of its own — a `box-shadow` in a hardcoded `blue-600`, a
- `border-color` in the same blue, and a ring *offset* hardcoded to `#fff`.
- The block above cannot reach it: it clears `outline`, and deliberately
- "leaves borders and box-shadows alone" because components depend on those.
- So the ring survived, in a blue that is not this app's accent and on a
- white halo that stays white in dark mode — the stray light outline around a
- focused composer.
-
- Keeping the ring and re-pointing it at the theme is the fix; deleting it
- would take a real focus affordance with it. `!important` is needed because
- the plugin's selectors are attribute-qualified (`[type='text']:focus`) and
- outrank any element selector written here.
-
- Only the two ring variables are touched. The plugin's blue `border-color`
- is deliberately left alone: a control that cares already sets its own focus
- border as a utility, which outranks the plugin on layer order — and an
- `!important` here would override those, painting an invalid field's coral
- border primary-blue. */
- input:focus,
- textarea:focus,
- select:focus {
- --tw-ring-color: var(--color-ring) !important;
- --tw-ring-offset-color: var(--color-background) !important;
- }
-
- /* Same plugin, its other half: the forms reset also gives every bare
- `textarea` `border-width: 1px`, `border-color: gray-500` and
- `border-radius: 0`. A textarea that styles itself never notices — its own
- `border` utility outranks the reset on layer order, and all four in this
- app (`ui/TextArea`, `PlanReviewCard`, `ShareCardModal`, the legacy chat
- composer) do exactly that.
-
- The ones that notice are the assistant-ui composers. They are written
- against a registry that assumes no forms plugin: `bg-transparent`, no
- border, the focus affordance carried by the wrapper instead. Under the
- reset they drew a sharp grey rectangle inside their rounded pill at all
- times, turning blue on focus.
-
- So the default is flipped: no border unless a component asks for one,
- which is the convention every textarea here already follows. Scoped to
- `textarea` deliberately — the same reset on `input` is load-bearing for
- bare checkboxes and radios, whose box IS that border.
-
- `html textarea` rather than `textarea`, and no `!important`. Tailwind emits
- plugin base styles *after* this block, so an equally specific selector
- would lose on source order; the descendant bumps it to (0,0,2) and wins.
- `!important` would go too far the other way and override the components
- that legitimately set their own `border`, which is a single class at
- (0,1,0) and still outranks this. */
+ /* `@plugin '@tailwindcss/forms'` styles bare `input` / `textarea` / `select`
+ directly, and two halves of that reset fight the rest of this app.
+
+ 1. A focus ring of its own: a 1px `box-shadow` in a hardcoded `blue-600`
+ with a ring *offset* hardcoded to `#fff`. The `outline: none` block
+ above cannot reach it — it clears outlines and deliberately "leaves
+ borders and box-shadows alone" because components depend on those. So
+ the ring survived, in a blue that is not this app's accent, on a white
+ halo that stayed white in dark mode.
+
+ 2. A border: `border-width: 1px`, `border-color: gray-500`,
+ `border-radius: 0`. Combined with (1) that is a sharp grey rectangle
+ that turns blue on focus.
+
+ A control that styles itself never notices either half — its own `border`
+ or `focus:ring-*` utility outranks the reset on layer order, and every
+ textarea in this app (`ui/TextArea`, `PlanReviewCard`, `ShareCardModal`,
+ the legacy chat composer) does exactly that. The ones that notice are the
+ assistant-ui composers, written against a registry that assumes no forms
+ plugin: `bg-transparent`, no border, the focus affordance carried by the
+ wrapper. They drew that rectangle inside their rounded pill.
+
+ Every selector here is `html`-prefixed and none is flagged important, and
+ both of those are load-bearing. Tailwind emits plugin base styles *after*
+ this block, so an equally specific selector would lose on source order; the
+ descendant bumps these to (0,1,2)/(0,0,2) and wins. Flagging them would go
+ too far the other way and beat the utilities components legitimately set —
+ an earlier revision of this block did, and would have painted
+ `ui/TextArea`'s `focus:ring-primary-500/20` fully opaque, and an invalid
+ field's coral ring primary-blue. A single class is (0,1,0)/(0,2,0) and
+ still outranks everything below. */
+ html input:focus,
+ html textarea:focus,
+ html select:focus {
+ --tw-ring-color: var(--color-ring);
+ --tw-ring-offset-color: var(--color-background);
+ }
+
+ /* Scoped to `textarea`: the same reset on `input` is load-bearing for bare
+ checkboxes and radios, whose box IS that border. */
html textarea {
border-width: 0;
}
+ /* A bare textarea gets no ring at all — see the assistant-ui composers above,
+ whose focus affordance is the wrapper's `focus-within:` border. A textarea
+ that wants one still sets `focus:ring-*` itself and outranks this. */
+ html textarea:focus {
+ --tw-ring-shadow: 0 0 #0000;
+ --tw-ring-offset-shadow: 0 0 #0000;
+ }
+
/* Smooth scrolling */
html {
scroll-behavior: smooth;