Shayna Productions
banner
shayna-productions.bsky.social
Shayna Productions
@shayna-productions.bsky.social
Accessibility Consultant/Developer using React.js/CSS/HTML to make the world better one website at a time.

https://www.shaynaproductions.com/
Blogging on: https://substack.com/@shaynaproductions
This substack I wrote might be of help understanding what I'm talking about. substack.com/home/post/p-...
February 15, 2025 at 12:00 PM
I saw that. I don't set a base size either, simply setting my base var as 1/16 of a rem.
February 14, 2025 at 4:49 PM
font-size: calc(var(--base) * 16).
width: calc(var(--base) * 324);
padding: calc(var(--base) * 16) calc(var(--base) * 8)

It keeps my pages and components consistent and is more easily understood than all the variables Radix provides (--space-1 = 4px and --space-4 = 16px).

3/3
February 14, 2025 at 11:24 AM
It allows for the same ratios and proportions regardless of whether a user has reset their base font size.

Modern libraries like Radix UI do it, but with multiple, not easily understood variables.

Since every designer thinks in 16px to a Rem, it makes it easier to translate from Figma.
2/3
February 14, 2025 at 11:24 AM
I've run up against this lately. I've embraced what I call a base-16 system (assuming the base font is 16px), but then I create a 1px base variable --base: calc( 1rem / 16).

I use that variable everywhere (font size, spacing, width) calc(var(--base) * {pixels}).
1/3
February 14, 2025 at 11:24 AM
I can see a whole bunch of people calling up the white house and asking who died.
February 9, 2025 at 3:48 PM
I mean why spend anytime at all on making your stuff easier to use.
January 25, 2025 at 11:07 AM