{ "$schema": "../schemas/code-crispies-module-schema.json", "id": "tailwindcss-basics", "title": "TW Basics", "description": "Learn how to use Tailwind CSS utility classes to quickly style your HTML elements", "difficulty": "beginner", "lessons": [ { "id": "tw-1", "title": "Text and Font Weight", "description": "Tailwind provides utility classes to style text appearance, like size and weight.", "task": "Make the heading bold and the paragraph text gray using Tailwind classes.", "previewHTML": "
Tailwind makes styling easy.
", "previewBaseCSS": "body { font-family: system-ui, sans-serif; padding: 1.25rem; }", "sandboxCSS": "", "codePrefix": "\nTailwind makes styling easy.
", "codeSuffix": "", "previewContainer": "preview-area", "validations": [ { "type": "contains", "value": "font-bold", "message": "Add font-bold to the heading" }, { "type": "contains", "value": "text-gray-600", "message": "Add text-gray-600 to the paragraph" } ] }, { "id": "tw-2", "title": "Background Colors", "description": "Use Tailwind background utility classes like bg-red-400 to style element backgrounds.", "task": "Apply a red background to the alert box and make the text white.", "previewHTML": "