Comments on: The Coyier CSS Starter https://frontendmasters.com/blog/the-coyier-css-starter/ Helping Your Journey to Senior Developer Tue, 04 Nov 2025 16:39:43 +0000 hourly 1 https://wordpress.org/?v=6.8.3 By: Chris Coyier https://frontendmasters.com/blog/the-coyier-css-starter/#comment-45954 Tue, 04 Nov 2025 16:39:43 +0000 https://frontendmasters.com/blog/?p=7245#comment-45954 In reply to Mike Foskett.

Yeah I like it, good point. I’d probably use px all around for this particular thing. Will update when I get a chance.

]]>
By: Mike Foskett https://frontendmasters.com/blog/the-coyier-css-starter/#comment-45887 Mon, 03 Nov 2025 22:45:09 +0000 https://frontendmasters.com/blog/?p=7245#comment-45887 Hey Chris, nice reset, a few new ones there that I’ll be using going forward.

May I raise an accessibility concern with using 1 rem on the body for horizontal padding? 16px does not scale while 1rem does.

Perhaps it’d be better stated as:

body {
 padding: 1rem 16px;
}
@media (min-width: 30em) { /* 480px rather than 500px - but do use ems */
  body {padding: 2rem;}
}

Now if I increase the font size to 200% for accessibility, the left (and right) margin doesn’t take up as much horizontal real estate.
It also makes it easier to find the start of the content at severe scaling (500%+).

]]>
By: Chris Coyier https://frontendmasters.com/blog/the-coyier-css-starter/#comment-43536 Fri, 10 Oct 2025 21:48:07 +0000 https://frontendmasters.com/blog/?p=7245#comment-43536 In reply to Antoine Moreau.

Good catch, will fix.

]]>
By: Antoine Moreau https://frontendmasters.com/blog/the-coyier-css-starter/#comment-43535 Fri, 10 Oct 2025 21:20:52 +0000 https://frontendmasters.com/blog/?p=7245#comment-43535 Hey!

Will testing your starter, I encountered an issue. When setting “list-style: inside;” on the lists elements, you’re overriding ol {list-style-type: decimal;} from the user agent stylesheet.

Easily fixed by setting “list-style-position: inside;” instead though.

Great stuff anyway, thanks for searching !

]]>
By: Chris Coyier https://frontendmasters.com/blog/the-coyier-css-starter/#comment-42829 Sun, 05 Oct 2025 15:33:16 +0000 https://frontendmasters.com/blog/?p=7245#comment-42829

but as someone with an ultrawide monitor, this kind of thing pains me to have everything blow up large just for moving a long screen.

Hence the clamp() there. There is a limit to how big it gets, which should hit long before the ultra in ultrawide matters. I mean fair enough if it’s still too big for you, but the idea is to NOT just use viewport units but instead keep it contained.

at least deprioritize it with :where() so folks that have overridden the default already thru userStyles

The whole thing is in a @layer so should be easily overridable by user agent styles which aren’t, yes?

the issue is the browser vendors not exposing user’s preferred tab stop in the preferences like they do for font & sizes.

Good point! Seems like that would be a useful setting. I wish all browsers had a similar approach to visual overrides.

]]>
By: toastal https://frontendmasters.com/blog/the-coyier-css-starter/#comment-42703 Sat, 04 Oct 2025 14:37:02 +0000 https://frontendmasters.com/blog/?p=7245#comment-42703

font-size: clamp(1rem, 1rem + 0.5dvw, 2rem);

I know you said it could be “controversial”, but as someone with an ultrawide monitor, this kind of thing pains me to have everything blow up large just for moving a long screen. Where it really bugs me is long form blogs/posts where I just want the body font to be the default I set for readability in my user agent (where 1rem is all you need)—I have already bumped up the default a little bit to 18 for my eyes & don’t need more.

But speaking of readability…

tab-size: 2;

Man, as I have aged, 2-space code is nigh unreadable (which is why I support tabs for indentation so I can fix the presentation on my & while not bothering others). 8 isn’t a good practical default, but at least deprioritize it with :where() so folks that have overridden the default already thru userStyles can have our settings respected. Tho let’s be real, the issue is the browser vendors not exposing user’s preferred tab stop in the preferences like they do for font & sizes.

]]>
By: Phil https://frontendmasters.com/blog/the-coyier-css-starter/#comment-41990 Sun, 28 Sep 2025 21:48:38 +0000 https://frontendmasters.com/blog/?p=7245#comment-41990 An odd thing about using color-scheme: light dark is if you don’t apply text and background colors WAVE accessibility testing fails on contrast issues. Whether that’s just WAVE I don’t know, but my own solution is just to include color: CanvasText and background-color: Canvas with the styles just to be sure.

]]>
By: Phil https://frontendmasters.com/blog/the-coyier-css-starter/#comment-41986 Sun, 28 Sep 2025 21:31:57 +0000 https://frontendmasters.com/blog/?p=7245#comment-41986 In reply to Adam Shand.

My browser’s are set to dark mode and use the style regularly and I’ve never experienced that at all.

]]>
By: Chris Coyier https://frontendmasters.com/blog/the-coyier-css-starter/#comment-41967 Sun, 28 Sep 2025 16:40:12 +0000 https://frontendmasters.com/blog/?p=7245#comment-41967 In reply to Sean van Zuidam.

not sure if I would put the default view-transition in a prefers-reduced-motion, since this not considered a harmful animation.

It kinda feels like it could be harmful to me as it affects the entire page (by default). Even thought it’s just a fade, not movement, it feels like it could be a lot for some. This is just a hunch and not backed by anything.

]]>
By: Chris Coyier https://frontendmasters.com/blog/the-coyier-css-starter/#comment-41966 Sun, 28 Sep 2025 16:38:25 +0000 https://frontendmasters.com/blog/?p=7245#comment-41966 In reply to Matt.

Makes me think about how it would be interesting if style-queries worked for more than custom properties, so like

p {
  @container not style(text-align: center) {
    max-inline-size: 88ch;
  }
}

(That’s not actually a real thing, just would be neat.)

]]>