--- title: At-Rules description: "Yamada UI supports CSS at-rules." --- ## Overview You can configure CSS [at-rules](https://developer.mozilla.org/en-US/docs/Web/CSS/At-rule) by using [Style Props](https://yamada-ui.com/docs/styling/style-props.md). ## @media [@media](https://developer.mozilla.org/en-US/docs/Web/CSS/@media) to apply styles based on specific conditions, use `_media`. ```tsx
Print me
``` `print` and other media types have a convenient shortcut. ```tsx
Print me
``` :::note Available @media are [here](https://yamada-ui.com/docs/styling/style-props.md#at-rules). ::: ### Use multiple queries To use multiple queries, set multiple values in an array. ```tsx Box ``` ### Use arbitrary queries To use arbitrary queries, use `query`. ```tsx Box ``` ## @container [@container](https://developer.mozilla.org/en-US/docs/Web/CSS/@container) to apply styles based on the size or conditions of a specific container, use `_container`. ```tsx
Resize me
``` ### Specify container name ```tsx
Resize me
``` ## @supports [@supports](https://developer.mozilla.org/en-US/docs/Web/CSS/@supports) to apply styles based on conditions, use `_supports`. ```tsx Supported flex ``` ## @keyframes [@keyframes](https://developer.mozilla.org/en-US/docs/Web/CSS/@keyframes) to apply intermediate states of an animation, use `_keyframes`. ```tsx Box ``` :::note Animations have their own documentation. See [Animations](https://yamada-ui.com/docs/styling/animation.md) for more details. ::: ## Arbitrary at-rules To use arbitrary at-rules, use `css`. ```tsx (RULE)": { // Define the style you want to customize. }, }} > Box ```