At-Rules

Yamada UI supports CSS at-rules.

Overview

You can configure CSS at-rules by using Style Props.

@media

@media to apply styles based on specific conditions, use _media.

Print me

print and other media types have a convenient shortcut.

Print me

Use multiple queries

To use multiple queries, set multiple values in an array.

Box

Use arbitrary queries

To use arbitrary queries, use query.

Box

@container

@container to apply styles based on the size or conditions of a specific container, use _container.

Resize me

Specify container name

Resize me

@supports

@supports to apply styles based on conditions, use _supports.

Supported flex

@keyframes

@keyframes to apply intermediate states of an animation, use _keyframes.

Box

Arbitrary at-rules

To use arbitrary at-rules, use css.

<Box
  css={{
    "@<identifier> (RULE)": {
      // Define the style you want to customize.
    },
  }}
>
  Box
</Center>
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd