Skip to main content

Loading…

Skip to main content
HomeProjectsPostsApproachesStackResourcesContact
Justin Tsugranes LogoJustin Tsugranes Logo

Justin Tsugranes

HomeProjectsPostsApproachesStackResourcesContact

Stay in the loop

Occasional notes on what I'm building, lessons earned, and the studio behind it.

By subscribing, you agree to receive No spam. Unsubscribe in one click anytime. from Justin Tsugranes. No spam. Unsubscribe anytime. Privacy Policy

© 2026 Total Ventures LLC. All rights reserved.

Privacy PolicyTerms of ServiceCookie Policy
← All stack tools

Stack Tool · devtools

Tailwind CSS v4

Tailwind CSS v4 provides utility-first styling with zero runtime cost, allowing me to rapidly build and theme multiple brand sites using CSS variables for consistent design.

Visit tailwindcss.com ↗

Tailwind CSS v4 is the foundational styling layer for every Total Ventures product, enabling rapid, consistent UI development across disparate brands by compiling atomic CSS from a single source of truth.

What it is

Tailwind CSS v4 is the latest iteration of the utility-first CSS framework, evolving its core principle of composing designs directly in markup. Unlike previous versions that relied on a PostCSS plugin to parse and generate CSS, v4 shifts to a pure Rust engine. This change means significantly faster compilation times and a more robust parsing pipeline. It leverages CSS variables extensively for theming, allowing for dynamic adjustments to design tokens without regenerating large CSS files. The output is a highly optimized, purged CSS bundle that contains only the styles actually used in the project, resulting in minimal file sizes and no runtime JavaScript overhead for styling.

How I use it

Every brand site in the Total Ventures portfolio—from Total Formula 1 to Pregnancy Power Hour and Inky—is built on Tailwind CSS v4. I use it to style everything from layout primitives to complex interactive components. My `@totalventures/ui` monorepo package, which houses shared UI primitives, is entirely styled with Tailwind. This allows a single component definition to adapt its appearance across different brands simply by overriding CSS variables defined in each brand's specific kit. For example, a primary button component inherits its `background-color` from a `--brand-primary` CSS variable, which is set to a different hex value for Total Formula 1 versus Pregnancy Power Hour. This ensures visual consistency within a brand while maintaining code reusability across the studio. When I need to implement new UI elements or refactor existing ones, Claude Code often generates the necessary utility classes directly in the JSX, accelerating development cycles. Even when integrating visual assets generated by tools like Imagen, Tailwind provides the precise layout and spacing controls needed to embed them seamlessly into the UI, ensuring consistent presentation. Similarly, for custom media players, like those potentially built around Veo3, Tailwind handles the styling of controls and containers with granular detail.

Why this over alternatives

The primary advantage of Tailwind CSS v4 is its development velocity and performance profile. By composing styles directly in the markup, I avoid the constant context switching between HTML and separate CSS files, which significantly speeds up UI implementation. The utility-first approach inherently enforces design system constraints, leading to more consistent UIs without the need for extensive manual style guide checks. Compared to traditional CSS or preprocessors like Sass, Tailwind eliminates the burden of naming conventions (like BEM) and the risk of global style collisions. The compile-time nature of v4, especially with the Rust engine, means the final CSS bundle is exceptionally lean and performant, with zero runtime cost, unlike CSS-in-JS solutions such as Styled Components or Emotion, which introduce JavaScript overhead. This is critical for delivering fast-loading experiences across all Total Ventures products.

Where it falls short

While powerful, Tailwind CSS v4 is not without its trade-offs. The initial learning curve for developers new to the utility-first paradigm can be steep; understanding the vast array of classes and how to combine them effectively takes time. For very complex, highly dynamic components, the class lists in the HTML can become verbose, potentially impacting readability if not managed carefully through component abstraction. It also introduces a mandatory build step, which, while standard in modern web development, adds a layer of complexity to the project setup. Finally, while the CSS variable-based theming is robust, setting up a multi-brand theming system from scratch requires a thoughtful architecture to ensure maintainability and scalability across numerous products.

FAQs

Does it make my HTML unreadable with too many classes?
Initially, yes. But with componentization and a clear design system, the HTML remains clean and semantic. The visual intent is clear at a glance, and components abstract away the verbosity.
How does it handle brand-specific styling for multiple products?
I use CSS variables for theme tokens. Each brand kit defines these variables, allowing a single component to render correctly across Total Formula 1 or Pregnancy Power Hour without style duplication.

See how I run a multi-brand studio with this stack.

See the full stack →
Written by Justin Tsugranes, Founder, Total Ventures· Founder, Total Ventures · U.S. Army veteran (13 years) · M.M. Jazz Studies, University of South Carolina
Last reviewed July 22, 2026

Related

  • Next.js App RouterNext.js App Router is the unified framework powering every Total Ventures brand site, leveraging React Server Components and Incremental Static Regeneration for performant, maintainable web experiences.
  • React EmailReact Email allows me to build all transactional emails for Total Ventures brands using React components, ensuring consistent design and reliable delivery through Resend.
  • TurboTurbo is the build system that orchestrates tasks and caches outputs across my monorepo, ensuring fast, consistent builds and type-checks for every Total Ventures product.
  • PDFs as React ComponentsI render all customer-facing PDFs as React components, ensuring high-fidelity, consistent brand output directly from code, treating them as first-class product artifacts.
  • SanitySanity is the headless CMS I use across Total Ventures for all editorial content, providing a structured content backend that integrates directly with my frontend projects and agentic workflows.
  • Monorepo as Operating SystemI run Total Ventures' multi-product studio from a single monorepo, centralizing infrastructure and tooling so every new brand boots with a complete, inherited operating system.