knowledge-kitchen / course-notes

TailwindCSS - Code Examples

Demonstrating common web page-building tasks using Tailwind CSS.

Every file loads Tailwind via its Play CDN with a single <script> tag - no terminal commands, no npm, no build step. Open any HTML file directly in your web browser to see it work.

What is in this folder

index.html

The main demo - a homepage for the “Beautiful Flowers” site, showing typography, buttons, a responsive 3-column card grid, and a small bit of custom CSS in css/main.css.

layouts/ - empty page layout skeletons

Four common outer-page architectures with no content inside them, so you can see the bones of each layout. Useful as starting points for your own pages.

filled-layouts/ - the same layouts with sample content

The same four layouts, this time populated with realistic headings, paragraphs, navigation links, and images so you can see how each one feels in practice.

alpine/ - interactive components powered by Alpine.js

Tailwind itself ships no JavaScript, so to build interactive components like dropdowns and modal dialogs the Tailwind community pairs Tailwind with Alpine.js - a tiny declarative JavaScript framework also loaded via a single CDN tag.

Other folders

Where to learn more