Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Shows the inputSurface() recipe for shared form-control chrome in Shade, covering 'self' and 'within' modes.
46% 100%+54 ptsof test cases passed
Passed 24 of 24 test cases with the skill, and 11 of 24 without it.
This test ran on v1. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
inputSurface recipeForm controls share one visual rule: border, background, radius, transition, focus ring, invalid state. That rule lives in inputSurface (clients/shade/src/components/ui/input-surface.ts) and is used by Input, Textarea, InputGroup, and the Select trigger. Don't duplicate the chrome — compose the recipe.
import {inputSurface, inputSurfaceClasses} from '@/components/ui/input-surface';
import {cn} from '@/lib/utils';
inputSurface('self') — directly on the focusable elementUse on <input>, <textarea>, or any element that itself receives focus.
<input
className={cn(
inputSurface('self'),
'flex h-9 w-full px-3 py-1 text-control placeholder:text-muted-foreground',
className
)}
{...props}
/>
Covers: base chrome + focus-visible: ring + aria-[invalid=true] styling + disabled: opacity.
inputSurface('within') — on a wrapper containing a focusable childUse when the styled element is the wrapper (e.g. InputGroup) and focus state should react to any focusable descendant via :has().
<div className={cn(
inputSurface('within'),
'flex h-9 items-center gap-2 px-3',
className
)}>
<Icon />
<input className="bg-transparent outline-hidden focus:outline-hidden" />
Next to this one in the catalogue, plus more from the same author.