Material's corner-radius scale as Tailwind classes, so components share
one consistent set of tokens instead of hand-picking rounded-* per
component. As with PhoenixPaper.Elevation/PhoenixPaper.Spacing, every
class is a full literal string (never interpolated) so Tailwind's static
scanner can find it in this file.
Summary
Functions
Returns the Tailwind class rounding all four corners to token.
Returns the Tailwind class rounding only the edge (:top or :bottom)
corners to token — used by components like the filled text field, whose
Material spec only rounds the top corners.
Types
Functions
Returns the Tailwind class rounding all four corners to token.
iex> PhoenixPaper.Shape.class(:lg)
"rounded-lg"
Returns the Tailwind class rounding only the edge (:top or :bottom)
corners to token — used by components like the filled text field, whose
Material spec only rounds the top corners.
iex> PhoenixPaper.Shape.class(:lg, :top)
"rounded-t-lg"