Journal Entry · 2026.08.26 1 min read
← All journal entries

1 min read

Writing CSS for this portfolio

I use custom properties, Grid, and fluid type to style the site without a CSS framework.

Utility CSS frameworks like Tailwind speed up prototyping on large teams. For projects where distinct identity, small bundles, and long-term readability matter, I prefer hand-written CSS.

Built-In CSS Primitives

Standard CSS covers the layout problems that drove teams to frameworks ten years ago:

  • CSS Custom Properties: Shared color tokens and spacing scales that update without a build step.
  • CSS Grid and Flexbox: Responsive multi-column layouts in a dozen lines.
  • clamp() for fluid type: Smooth scale shifts from phone screens to desktop monitors without endless breakpoints.

Keeping Markup Readable

Utility frameworks tie HTML templates to presentation classes. One button can carry twenty utility tokens that repeat across templates or force extra wrapper components.

With semantic CSS, your HTML describes document structure while the stylesheet controls appearance:

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

You end up with a compact, cacheable stylesheet you can still read years later without a compiler.

Mark Ocampos
Independent web engineer
Have a project in mind?
Send me a message.