Web Development

Creating Branded Blog Series: The Pink Slips NSW Case Study

How we built a conditional styling system for branded blog series - one layout, smart overrides, zero code duplication.

Dec 7, 2025
10 min

Building With AI?

Learn how to build features like this yourself. I offer 1-on-1 AI web development coaching to help you ship faster with tools like Claude, Cursor, and ChatGPT.

Client case studies deserve their own identity. But separate layouts create maintenance nightmares. Here's how we built a conditional styling system that brands content without duplicating code.

One Layout. Smart Overrides. Zero Duplication.

How conditional styling beats separate layouts every time.

Six blog posts documenting a client project. Great content, but visually identical to everything else. Client case studies deserve their own identity—but not at the cost of maintainability.

Download

The Wrong Way

Separate layouts = maintenance hell. Every new feature needs adding twice. Bug fixes happen twice. Layouts drift apart.

JJM

Separate Layouts

  • Duplicate code for each series
  • Features added twice
  • Bug fixes in multiple places
  • Layouts drift apart over time
  • More code = more maintenance

Conditional Styling

  • One layout, smart overrides
  • Features apply everywhere
  • Single source of truth
  • Branding is additive
  • Less code = less bugs
Download

The Right Way

One layout, smart overrides. A single boolean drives everything. Zero code duplication. New features apply everywhere.

JJM

The Core Pattern

// Define the helper
const isPinkSlips = blogPost?.series?.name === "Pink Slips NSW";

// Use it everywhere
className={isPinkSlips ? "bg-pink-50" : "bg-white"}
className={isPinkSlips ? "border-pink-500" : "border-purple-500"}
className={isPinkSlips ? "text-pink-600" : "text-purple-600"}

With this pattern, we updated the hero section, article background, meta card, social share section, related posts, back to top button, and all social media cards. Every element checks one boolean.

Download
2hrs
Full Series Branding

Hero, backgrounds, social cards, schedule visuals. Retroactive to all 6 existing posts.

JJM
20m
Hero Section
15m
Meta Card
30m
Social Cards
25m
Schedule Visuals
30m
Testing
2h
Total
Download

Adding a New Branded Series

  • 1

    Define helper: const isNewSeries = ...

  • 2

    Add color scheme to components

  • 3

    Add logo to public/clients/

  • 4

    Base layout stays unchanged

JJM

The pattern is proven and scales. Future branded series just need a helper boolean, color scheme, and client logo. The base layout stays untouched—new features automatically apply to all series.

Download
"

Client work gets proper identity. New features benefit all series. One codebase to maintain. The foundation scales.

— Branding Without Technical Debt

JJM

LinkedIn Carousel Cards

These cards are designed to flow together as a LinkedIn carousel. Each card continues the visual story from the previous one, with a flowing ribbon that connects them all. Download all cards and upload them as a document post on LinkedIn.

Social Media Carousel

8 cards • Click to download individually or as ZIP

Download
Branded Blog Series
1 of 8

How We Built a Branded Blog Series

From generic to client-branded

A 2-hour investment that scales infinitely

JJM
Download
Branded Blog Series
2 of 8
2hrs
Total Build Time

Hero, meta cards, social cards, and testing

JJM
Download
Branded Blog Series
3 of 8

The Problem

Client case studies looked exactly like every other blog post. Purple gradients, standard layouts, generic styling. The content was about the client, but the visual identity was ours.

JJM
Download
Branded Blog Series
4 of 8

The Transformation

Before

Separate layouts, duplicate code, maintenance hell

After

One layout, smart overrides, zero duplication

Same layout. Same components. Different identity.

JJM
Download
Branded Blog Series
5 of 8

What Changed

  • 1

    Hero: Client-branded gradient

  • 2

    Badge: Series name + part number

  • 3

    Logos: Dual display (client + JJM)

  • 4

    Social cards: Branded patterns

JJM
Download
Branded Blog Series
6 of 8

The Key Insight

Don't create separate layouts for branded series. Use conditional styling within the existing layout. One codebase, multiple brand identities.

JJM
Download
Branded Blog Series
7 of 8
"

Future branded series just need: a color scheme, a helper boolean, and conditional class overrides. No new layouts. No duplicated code.

— The Pattern Is Proven

JJM
Download
Branded Blog Series
8 of 8

Need a Branded Content System?

We build content systems that scale with your brand.

Let's Talk →
JJM

Systems That Scale

This isn't just about pink gradients. It's about building systems where branding is additive, not duplicative. Client work gets proper identity without creating technical debt.

Share This Article

Spread the knowledge

Free Strategy Session

Stop Guessing.
Start Growing.

Get a custom strategy built around your goals, not generic advice. Real insights. Measurable results.

No obligation
30-min call
Custom strategy

Continue Your Learning Journey

Explore these related articles to deepen your understanding of web development

AI Dev Session: Building Social Carousel Cards & Admin Dashboard in 3 Hours

Building social carousel cards, admin dashboard, and fixing a sneaky TOC bug—in 3 hours.

8 min read
Read →

Volume 7: Branding Our Own Blog Series

The meta moment when we built custom branding for the Pink Slips NSW blog series - pink gradients, dual logos, and conditional styling in 2 hours.

6 min read
Read →

Building 500+ Location Pages with AI-Generated Content

Building 790 location pages with AI content, database schema, and SEO implementation.

20 min read
Read →