# Rounded Utility classes for corner radius. Predefined sizes, per-corner control, and arbitrary pixel values. ### Size Variants The rounded system includes predefined base sizes and arbitrary pixel values. These standardized radii help maintain consistent corner rounding across your application's components. #### Base The base `rounded` class without size modifiers and the `rounded--base` class both produce the same visual result, providing the standard border radius (10px). Use `rounded--base` when you need to explicitly set the base size in responsive contexts. See the [Responsive Rounded](#responsive-rounded) section for examples. rounded--none rounded--xsmall rounded--small rounded rounded--medium rounded--large rounded--xlarge rounded--xxlarge rounded--full ![TRMNL Logo](/images/plugins/trmnl--render.svg)Predefined RoundedDesign System ```
...
...
...
...
...
...
...
...
...
...
...
``` #### Arbitrary Use `rounded--[Npx]` syntax to specify exact pixel values from **0px to 50px**. This rounds all four corners and does not support responsive variants. Corner-specific utilities take the named sizes only. rounded--[0px] rounded--[10px] rounded--[30px] rounded--[20px] rounded--[40px] rounded--[50px] ![TRMNL Logo](/images/plugins/trmnl--render.svg)Arbitrary Pixel RoundedDesign System ```
...
...
...
...
...
...
...
``` Arbitrary rounded values using the `rounded--[Npx]` syntax do not support responsive variants. Use predefined rounded classes if you need responsive behavior. ### Corner-Specific Rounding Apply border radius to specific corners or sides of an element. This allows for more complex shapes and asymmetric designs while maintaining consistency. #### Individual Corners Target specific corners with `rounded-{corner}`, where corner is tl (top-left), tr (top-right), br (bottom-right), or bl (bottom-left). Add a size with a second double dash: `rounded-tl--large`. Every corner takes the full size scale, the same one the all-corners class uses: bare (base), `--base`, `--none`, `--xsmall`, `--small`, `--medium`, `--large`, `--xlarge`, `--xxlarge`, and `--full`. rounded-tl--large rounded-tr--large rounded-bl--large rounded-br--large ![TRMNL Logo](/images/plugins/trmnl--render.svg)Corner-Specific RoundingDesign System #### Side Rounding Round entire sides with `rounded-{side}`, where side is t (top), r (right), b (bottom), or l (left). Sides take the same size scale as the corners, so `rounded-t` is the base radius and `rounded-t--xxlarge` is the widest. rounded-t--large rounded-r--large rounded-b--large rounded-l--large ![TRMNL Logo](/images/plugins/trmnl--render.svg)Side RoundingDesign System ```
Top left corner
Top right corner
Bottom right corner
Bottom left corner
Top corners
Right corners
Bottom corners
Left corners
``` ### Responsive Rounded Rounded utilities support size-based breakpoints, orientation variants, and their combination. Use prefixes like `md:`, `portrait:`, and `md:portrait:` to target conditions. #### Base Examples Apply different border radius values at different breakpoints using the size-based responsive system. The framework follows a mobile-first approach where larger breakpoints inherit smaller ones. The `--base` modifier is particularly useful for resetting to the default size at specific breakpoints. Responsive Xlarge in landscape, small in portrait ![TRMNL Logo](/images/plugins/trmnl--render.svg)Responsive RoundedSize-Based ```
Xlarge in landscape, small in portrait
``` #### Corner-Specific Examples Corner-specific rounding utilities support responsive variants just like base rounded utilities. Use prefixes like `md:`, `portrait:`, and `md:portrait:` to apply different corner rounding at different breakpoints. Responsive Xlarge in landscape, small in portrait ![TRMNL Logo](/images/plugins/trmnl--render.svg)Responsive Corner RoundingSize-Based ```
Xlarge in landscape, small in portrait
``` ### Related Tokens These tokens are automatically mapped to this page by token prefix. | Token | 1-bit | 2-bit | Density 2x | 4-bit and up | | --- | --- | --- | --- | --- | | Base | | `--progress-bar-radius` | calc(10px \* var(--ui-scale)) | calc(10px \* var(--ui-scale) \* var(--framework-layout-corner-factor, 1)) | - | calc(10px \* var(--ui-scale) \* var(--framework-layout-corner-factor, 1)) | | `--rounded-full` | 9999px | - | - | - | | `--rounded-large` | 20px | - | - | - | | `--rounded-medium` | 15px | - | - | - | | `--rounded-none` | 0px | - | - | - | | `--rounded-small` | 7px | - | - | - | | `--rounded-xlarge` | 25px | - | - | - | | `--rounded-xsmall` | 5px | - | - | - | | `--rounded-xxlarge` | 30px | - | - | - | | `--title-bar-border-radius` | calc(10px \* var(--ui-scale)) | calc(10px \* var(--ui-scale) \* var(--framework-layout-corner-factor, 1)) | - | calc(10px \* var(--ui-scale) \* var(--framework-layout-corner-factor, 1)) | Previous [ ## Border Draw horizontal and vertical rules on the same shade scale as backgrounds ](/framework/docs/3.4/border) Next [ ## Outline Draw a pixel-perfect dotted rounded border on any element ](/framework/docs/3.4/outline)