SpacingScale final class
Minn\Theme\SpacingScale · public/minn/src/Minn/Theme/SpacingScale.php · 48 lines
The spacing sizes a theme.json spacing scale makes (probe theme-json-css): Medium (slug 50) at the medium step; below it, half the other steps rounded down, each divided by (or less) the increment, named Small, X-Small, 2X-Small; above it the rest, multiplied by (or plus) it, named Large, X-Large, 2X-Large; slugs ten apart, values rounded to two places. An invalid scale makes none.
Public
| static | sizes(array $scale): array# | The sizes the scale makes, smallest first.
@return list<array{name: string, slug: string, size: string}> |
Internals 2
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
Nothing matches.