Tailwind CSS Landing Page with Dark Mode - Mizu Light
A product launch landing page for SaaS and digital products, built with Astro and Tailwind CSS.
By oxygenna-themes oxygenna-themes/mizu-light-astro-theme 35 stars
Introduction
Mizu Light is a landing‑page theme for SaaS and digital product launches. It is built with Astro and Tailwind CSS v4 and includes dark‑mode support, SEO‑ready markup, and a set of reusable UI components.
What this project offers
- A ready‑to‑use product‑launch site with pre‑built pages (home, features, pricing, contact, blog, etc.).
- Dark‑mode toggle that works automatically.
- SEO‑friendly structure and sitemap generation.
- Integration points for Google Analytics and Tag Manager.
- Content collections for easy management of blog posts and other data.
Main features
- Dark Mode
- Responsive Design (handled by Tailwind utilities)
- SEO Ready (meta tags, sitemap)
- Content Collections (Astro)
- Reusable UI Components
- Pre‑built Pages
- Smooth Animations (Lottie, Swiper)
- Analytics Ready
Technology stack
- Astro ^7.3.3
- Tailwind CSS ^4.1.18
- React ^19.2.3 (used for interactive components)
- TypeScript ^5.9.3
- Lottie, Swiper for animations
- Netlify and Vercel adapters for deployment
Requirements
- Node.js 22.12.0 or later
Installation
- Download the project – unzip the file you received (
/download/mizu-light-astro.zip). - Open a terminal in the unzipped folder.
cd path/to/mizu-light-astro
- Install dependencies.
npm install
- Run the development server (optional, to see the site locally).
npm run dev
The site will be available at http://localhost:4321.
- Build the production version.
npm run build
This runs astro check && astro build. The generated static files are placed in the dist/ directory.
- Preview the built site (optional).
npm run preview
The preview server will serve the contents of dist/ at http://localhost:4321.
- Deploy – upload the contents of the
dist/folder to your static‑host of choice (Netlify, Vercel, or any other provider that serves static files).
Configuration
Configuration files are located in src/config/ and include:
analytics.ts– set your Google Analytics or Tag Manager IDs.config.ts– site‑wide settings such as the site title and description.navigationBar.tsandfooterNavigation.ts– define the menu items.
Edit these TypeScript files to match your branding and tracking requirements. The project uses Astro’s content collections (src/content/) for blog posts and other structured data.
Customizing the project
- Styling – Tailwind utilities are used throughout. You can extend the design in
tailwind.config.mjs. - Components – UI components live in
src/components/ui/; section blocks are insrc/components/blocks/. Add, remove, or reorder them to change page layouts. - Pages –
.astrofiles insrc/pages/correspond to routes. Create new pages or modify existing ones to suit your content. - Assets – Images, icons, and fonts are stored under
public/andsrc/assets/. Replace them with your own assets as needed.
Project structure
/
├─ public/
│ ├─ assets/
│ └─ favicon.svg
├─ src/
│ ├─ assets/
│ ├─ components/
│ │ ├─ blocks/
│ │ └─ ui/
│ ├─ config/
│ ├─ content/
│ ├─ data/
│ ├─ icons/
│ ├─ layouts/
│ └─ pages/
│ ├─ 404.astro
│ ├─ blog/
│ ├─ contact.astro
│ ├─ features.astro
│ ├─ index.astro
│ ├─ pricing.astro
│ └─ terms.astro
├─ styles/
│ └─ global.css
├─ astro.config.mjs
├─ tailwind.config.mjs
├─ tsconfig.json
├─ vite.config.ts
└─ package.json
Tips
- Run
npm run devwhile editing to get hot‑reloading and fast feedback. - Use the
src/data/json-files/folder to store feature lists, testimonials, or other structured content that can be imported into components. - The
netlifyadapter is pre‑configured; if you deploy to Netlify, simply connect the repository and the build commandnpm run buildwill be used automatically. - For Vercel deployment, the
@astrojs/vercelintegration is already listed inpackage.json.
License and attribution
The project is licensed under the MIT License. See the LICENSE file in the repository.
Original repository: https://github.com/oxygenna-themes/mizu-light-astro-theme
When redistributing, keep the LICENSE file and give credit to the original author.
Use this prompt with an AI coding assistant (Claude Code, Cursor, Copilot, ChatGPT and similar).
- Download the ZIP and extract it where your new project will live.
- Download the ZIP and extract it next to your project, so the assistant can read both.
- Fill in the bracketed parts under “About my project”.
- Paste the prompt into your assistant and review each change it proposes.
# Start a new project with Mizu Light ## Your task You are a senior frontend engineer. We are building a new project using Mizu Light, a landing page built with Tailwind CSS 4, as the starting point. Keep its design and turn the demo into a clean, real codebase that I can maintain. ## About my project - What I'm building and for whom: [describe it] - Pages I need: [list them] - Stack: [keep it as it is, with its own build, or name one: Vite / Laravel / Next.js / Astro] - Brand: [name, colours, fonts, logo] # Mizu Light — project brief ## Source project Mizu Light is a landing‑page theme built with Astro and Tailwind CSS v4. It provides a set of pre‑built pages, dark‑mode support and responsive design. Repository: https://github.com/oxygenna-themes/mizu-light-astro-theme, license MIT (see LICENSE, author Oxygenna). ## Files that matter - **Pages (entry page is `src/pages/index.astro`)** - `src/pages/index.astro` – home/landing page - `src/pages/features.astro` – feature list - `src/pages/pricing.astro` – pricing information - `src/pages/contact.astro` – contact form - `src/pages/blog/` – blog collection (includes `404.astro`) - **Stylesheets** - `src/styles/global.css` – global Tailwind imports and custom styles - **Scripts** - `src/components/scripts/` – contains JavaScript/TypeScript modules used by components (e.g., Lottie, Swiper initialisation) - `src/config/analytics.ts` – analytics configuration - **Images & fonts** (served from `public/` and `src/assets/`) - `public/assets/`, `public/bgs/`, `src/assets/` – logos, background SVGs, WebP images, etc. - **Icons** - `src/icons/` – SVG icons used throughout the UI - **Partials / templates** - `src/layouts/Layout.astro` – base layout wrapper - `src/layouts/BlogLayout.astro` – layout for blog pages - `src/components/blocks/` – reusable section blocks - `src/components/ui/` – UI components (buttons, cards, etc.) - **Configuration files** - `astro.config.mjs` – Astro site configuration and integrations (React, Lottie, Markdoc, Netlify, sitemap) - `tailwind.config.mjs` – Tailwind content paths (currently only `src/pages/index.astro`) - `vite.config.ts` – Vite configuration with Tailwind plugin - `tsconfig.json` – TypeScript settings ## Setup and build Mizu Light requires a build step with Astro. ```bash npm install # install all dependencies npm run dev # start development server at http://localhost:4321 npm run build # run Astro check then build production files into ./dist npm run preview # preview the built site locally ``` The production output is placed in the `dist/` directory. ## How it is put together The theme uses a **layout‑based structure**: `Layout.astro` provides the common header, footer and theme toggle, while each page (`index.astro`, `features.astro`, etc.) injects its content into the layout slot. Reusable **section blocks** (`src/components/blocks/`) are composed inside pages to build the landing sections. UI components (`src/components/ui/`) are small React components (via `@astrojs/react`) such as buttons or cards. **Libraries and initialisation** - **Astro** (v7) handles routing and server‑side rendering. - **Tailwind CSS** (v4) supplies utility classes; global styles are in `src/styles/global.css`. - **React** (v19) is used for interactive components. - **Lottie** (`astro-integration-lottie` + `lottie-web`) renders animation JSON files; initialisation occurs in the block components that import the Lottie script. - **Swiper** (`astro-swiper`) provides carousel functionality; initialisation is performed in the relevant block component. - **Analytics** (`@vercel/analytics`, custom `analytics.ts`) is loaded via the layout. **Theme values** – colour palette, fonts, and dark‑mode colours are defined in Tailwind’s configuration and applied via utility classes. Dark mode is toggled by a component that adds the `dark` class to the `<html>` element; Tailwind’s `dark:` variant handles the styling. No RTL support is included. ## Watch out for 1. **Tailwind content scope** – `tailwind.config.mjs` only scans `src/pages/index.astro`. Other pages may miss Tailwind classes unless the config is expanded. 2. **React version mismatch** – the project uses React 19; ensure any added React components are compatible with this version. 3. **Global CSS side effects** – `global.css` imports Tailwind’s base styles which reset many defaults; custom CSS must be placed after the Tailwind imports to avoid being overridden. 4. **CDN‑less assets** – all images, fonts and icons are served locally; large assets should be optimised to keep page‑weight low. 5. **Script expectations** – component scripts assume specific DOM IDs (e.g., the theme toggle button). Adding or renaming those IDs can break initialisation. 6. **Duplicate library loading** – both `@tailwindcss/vite` and a separate Vite plugin are configured; avoid adding another Tailwind plugin that could load the CSS twice. ## Verify - [ ] Home page (`/`) renders with all sections and dark‑mode toggle works. - [ ] Feature, pricing, contact, and blog pages load without missing assets. - [ ] Lottie animations and Swiper carousels initialise and run without console errors. - [ ] Responsive layout adapts to mobile widths (check breakpoints manually). - [ ] Dark mode styles apply correctly across all components. - [ ] No duplicate Tailwind CSS files are loaded in the network tab. - [ ] Build completes (`npm run build`) and the `dist/` folder contains the expected HTML, CSS and JS assets. - [ ] License file is present in the final distribution and the MIT notice remains unchanged. # How to work ## Step 1 — Get it running as it is Start from the downloaded ZIP or a clone of the repository. Install the dependencies and start the dev server with the exact commands in "Setup and build" above. Confirm it runs without console errors before changing anything. ## Step 2 — Plan the project with me List the pages and sections of Mizu Light to keep, rename or remove for my project, the folder structure you propose for my stack, and where the repeated parts will live. Wait for my OK. ## Step 3 — Build it - Write the real copy for each section and remove sections I don't need. - Make every form submit somewhere real (or a clearly marked placeholder), and add page titles, meta descriptions and social images. - Put my brand name, colours and fonts where Mizu Light defines its theme (see "How it is put together" above), not as one-off overrides. - Keep Tailwind CSS's markup patterns and class conventions so the design stays consistent, and don't change its major version unless I ask. - Keep dark mode working on every page you touch. ## Step 4 — Polish and launch - Remove demo content and every CSS/JS file nothing uses any more; optimise images. - Check phone, tablet and desktop widths, labels, alt text, keyboard focus and colour contrast. - Run the production build and tell me which folder to deploy. - Keep the license file and credit the author of Mizu Light. ## Ground rules Work in small steps and show me each change. Use only the libraries already in the project unless I agree to add one.






