Hover states and selectors
Buttons darken on hover, inputs glow on focus, disabled controls fade. Those are the same element in a different state , and each state can carry its own styles. In Studio you style states from the selector segment of the Style tab 's Target Line, the last word of the sentence before the scope chip.

Style a state
Select the element and open the Style tab.
Click the selector segment of the Target Line. It reads base rule when you're styling the element's normal look.
Pick a state, say
. The Target Line now reads ⌖ button · Base · :hover, so what you're editing stays on screen.Edit styles as usual. Everything you set now applies only in that state.
The full inspector works here: every section, the provenance chips, even breakpoints, so a hover effect can differ between desktop and phone. A state cascades within itself: pick a breakpoint while
:hover
is active and the
:hover
values you set at Base show through as dimmed placeholders, their chip reading
from Base
. Switch the segment back to
base rule
to return to the normal styles.
The same choice is available from the command palette: press ⌘K and run Open Selector Menu , or Set Style Selector to name a selector directly.
The built-in states
The menu offers the common ones:
They mean what they mean on the web:
:hover
while the pointer is over the element,
:focus
while it holds keyboard focus,
:first-child
/
:last-child
when it's the first or last among its siblings,
::placeholder
for an input's hint text.
Add your own selector
Choose + Add custom… at the bottom of the menu. A dialog asks for a state or nested rule to edit under this element; type one and click Use :
:nth-child(2): any state or position selector beyond the built-ins..featured: only when the element has that class.&.active: only when the element itself carries theactiveclass.[disabled]: only when the element has that attribute.
A selector must start with
:
,
.
,
&
, or
[
. Anything else is refused in the dialog, with the reason under the field, so a typo never reaches the file. Accepting the dialog only points the Style tab at the selector; nothing is written until you set your first property. From then on the selector stays in the menu for that element, marked with
●
while it has styles.
Rules for elements inside the selection are the inspector's Relative Styling section instead. Clicking a rule there drills into it through this same selector segment.
Remove state styles
Switch the segment to the state and clear its values with their chips: property by property, or a whole section from the accent dot on its header. When a state has no values left, it drops out of the menu's marked entries.
Each state is saved as a nested rule inside the element's
style
object. These are real CSS pseudo-classes that behave natively on the published page. The format is described in
Styling
.
Next
Combine states with screen sizes in Breakpoints .
Give every link and button a default hover in the Project Styles .