This guide gives you the essentials on how global styles and themes work in the Ultimate Cursor AI Boilerplate. We keep things simple, modern, and fully customizable.Documentation Index
Fetch the complete documentation index at: https://docs.builderbox.ai/llms.txt
Use this file to discover all available pages before exploring further.
🎯 Why index.css Exists
Our index.css file:
- Sets up base styles (font, spacing, resets)
- Defines design tokens (colors, radii, fonts) as CSS variables
- Enables dark mode with one toggle
- Supports custom animations (like marquees)
- Powers all Tailwind utility classes
🔧 How It Works (Core Concepts)
1. Tailwind + Custom Layers
We start by importing the basics:2. CSS Variables (Design Tokens)
Global theme variables live under:root, like:
3. Dark Mode = .dark Class
Dark theme overrides the same variables:
.dark class on <html> or <body>.
4. Custom Animations (Optional)
Extras like marquee animations:💡 Want Your Own Theme?
Use TweakCN to generate your own Tailwind-compatible themes. Just copy the variables into:root and .dark blocks.
✅ Component Example
🧠Final Notes
- Use
bg-*,text-*,shadow-*—they all reflect your theme - All design tokens live in
index.css - Tailwind config is extended to reference them
- Dark mode? Just toggle
.dark
index.css.
For more, check the Tailwind theming docs or try TweakCN to craft your palette.