--- title: Spacing description: The Spacing utility provides classes for consistent margin and padding adjustments across elements. --- The spacing utility was updated in **2026.01.2** to support logical properties alongside physical ones. See the [logical properties example](/utils/spacing/#logical-properties). The custom specifiers `horizontal`, `vertical`, and `around` are deprecated. See [Deprecated](/utils/spacing/#deprecated) for details. ## Usage Use spacing utilities to apply margin and padding consistently across the system. Use the pattern `env-{property}-{specifier}--{size}`, or use the shorthand `env-{property}--{size}` to apply spacing to all sides. ### Valid values #### {property} - `m` margin - `p` padding #### {specifier} Physical and logical properties are both supported. Logical properties are recommended for spacing within components and internationalized content, while physical properties remain useful for overall layout and dimensions. - `top` - `right` - `bottom` - `left` - `block-start` - `inline-end` - `block-end` - `inline-start` - `block` block-start & block-end shorthand - `inline` inline-start & inline-end shorthand - `{omitted}` block and inline shorthand #### {size} - `0` No margin - `a` auto, only applicable to margin - `xxx-small` (0.125em) - `xx-small` (0.25em) - `x-small` (0.5em) - `small` (0.75em) - `medium` (1em) - `large` (1.25em) - `x-large` (1.5em) - `xx-large` (1.75em) - `xxx-large` (2em) ### Negative margin Negative margin is applied by combining a size class with the `--negative` modifier. Negative values are only available for margin. Example: `