Menu

Build a dependency-free launch countdown + waitlist form with Tailwind CSS v4
📰

Build a dependency-free launch countdown + waitlist form with Tailwind CSS v4

DEV Community: html·Daytrading·6 days ago
#6KMP4Z0v
#devto2#devto#dev#const#form
Long article (767 words) — no AI summary yet.
Reading 0:00
15s threshold

Every product launch needs the same page: a headline, a countdown and an email box. You don't need React for that. Here's how to build one with plain HTML, Tailwind CSS v4 and ~40 lines of vanilla JavaScript , accessible and themeable.

1. Theme with two variables

Tailwind v4 moves configuration into CSS. Define your brand once:

@import "tailwindcss" ;

@theme { --color-brand : oklch ( 0.62 0.21 275 ) ; --color-accent : oklch ( 0.78 0.15 195 ) ; }

Enter fullscreen mode

Exit fullscreen mode

Now bg-brand , text-accent , from-brand to-accent all exist, and changing two lines re-themes everything.

2.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.