# S2 styling Style with the `style` [macro](https://react-spectrum.adobe.com/styling) (`import {style} from '../style' with {type: 'macro'};` — the `with {type: 'macro'}` attribute is required). Pass typed style objects to it; don't write CSS files or hand-rolled className strings for S2.