Monica Dinculescu publishes her own personal CSS framework

Monica Dinculescu has written up monica.css, described as her very own CSS framework — a file she pastes at the top of every stylesheet and builds from there.

Her reasoning, quoted in the post, is about scope rather than completeness: she doesn't want every padding, margin, colour and flexbox configuration in existence, only the ones she knows she reaches for in every project.

A starter worth borrowing from

The piece's author welcomes people publishing their own CSS starters, and notes that Sanitize is a favorite but can feel like more than needed for small experiments. Given the task of writing a personal starter, they say they would borrow some of Monica's choices and highlight a few of their own:

  • Drop the margin from body, a line they write often.
  • Take some of the [class] approach from Andy's modern CSS reset.
  • Reduce a personal center class to just text-align, and add a separate class for the other preferred centering method: display: grid; place-items: center;.

The post also notes how universally box-sizing is agreed upon.

CSS-Tricks star logo