MÓDULO_TEÓRICO
Ultra-fast Setup with CDN and Inline Configuration

Up and Running in 5 Seconds
One of the greatest joys of Tailwind CSS is that you do not need Node.js, Webpack, npm, or complex toolchains to start building high-fidelity interfaces.
We can load it directly into any HTML document via the official next-generation CDN.
1. The Magic CDN Tag
Create an index.html file and add the following <script> tag inside the <head>:
html<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Quantum Portal | Tailwind CDN</title> <!-- Official Tailwind CSS CDN --> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="bg-slate-950 text-slate-100 min-h-screen"> <h1 class="text-3xl font-bold text-cyan-400 text-center mt-10"> Tailwind CSS is Live! ⚡ </h1> </body> </html>
2. Immediate Customization with Inline tailwind.config
The Tailwind CDN allows extending default design tokens by adding a simple inline <script> block. We can register custom branding colors, fonts, and glowing neon box shadows:
html<head> <!-- 1. Load CDN --> <script src="https://cdn.tailwindcss.com"></script> <!-- 2. Custom Project Config --> <script> tailwind.config = { darkMode: 'class', theme: { extend: { colors: { brand: { dark: '#07080e', card: 'rgba(15, 23, 42, 0.75)', cyan: '#00f0ff', magenta: '#ff007f', neon: '#00ff88', } }, boxShadow: { 'neon-cyan': '0 0 25px rgba(0, 240, 255, 0.35)', 'neon-magenta': '0 0 25px rgba(255, 0, 127, 0.35)', } } } } </script> </head>
Now you can use your custom tokens as native Tailwind utility classes:
bg-brand-darktext-brand-cyanshadow-neon-cyan
💡 When to Use CDN vs CLI / PostCSS?
- Use the CDN (like in this course): For learning, rapid prototyping, hackathons, and stand-alone dashboards where you want zero build friction.
- Use Node.js / Vite / Next.js: For large-scale production enterprise applications where you want purposed CSS bundle tree-shaking.
