Quick Tip
\nPress Ctrl + S to save your work, or Ctrl + Z to undo.
\n{
"$schema": "../schemas/code-crispies-module-schema.json",
"id": "typography-fonts",
"title": "Typography",
"description": "Learn how to control text appearance through font selection, sizing, spacing, and styling.",
"difficulty": "beginner",
"lessons": [
{
"id": "monospace-font",
"title": "Monospace Fonts",
"description": "Different font families create different visual impressions. monospace fonts have equal-width characters, making them perfect for displaying code, data, or keyboard shortcuts. Press Ctrl + S to save your work, or Ctrl + Z to undo. Great coffee starts with quality beans. The roast level affects flavor—light roasts are fruity and acidic, while dark roasts are bold and smoky. Water temperature matters too. Brew between 90-96°C for optimal extraction. Too hot burns the coffee; too cold leaves it weak. Fresh pastries and artisan coffee, 20% off all items this Saturday and Sunday. Learn the fundamentals of web typography in this beginner-friendly guide.
Every computer has a monospace font built in, so font-family: monospace always works. This makes it a safe choice for inline code in any web project.",
"task": "Style the inline code with a monospace font. Add font-family: monospace.",
"previewHTML": "Quick Tip
\n
font-size controls how big the text appears. For body text, 1rem (16px by default) is a comfortable starting point.
line-height sets the space between lines. A value of 1.6 means the line height is 1.6 times the font size—giving text room to breathe.",
"task": "Make the text comfortable to read. Add font-size: 1rem and line-height: 1.6.",
"previewHTML": "The Art of Coffee
\n
• normal (400) — default body text
• bold (700) — strong emphasis
• lighter / bolder — relative to parent
Card titles and headings often use bold text to create visual hierarchy and draw attention to key information.",
"task": "Make the card title stand out. Add font-weight: bold.",
"previewHTML": "
• uppercase — ALL CAPS (great for labels, buttons)
• lowercase — all lowercase
• capitalize — First Letter Of Each Word
Combined with letter-spacing, uppercase text creates a clean, modern label style often used in UI design.",
"task": "Style the tag labels. Add text-transform: uppercase and letter-spacing: 1px.",
"previewHTML": "Getting Started with Typography
\n
• underline — line below text
• line-through — strikethrough
• none — removes decoration (useful for links)
You can also style decorations with text-decoration-color and text-decoration-style.",
"task": "Show the old price with a strikethrough. Add text-decoration: line-through.",
"previewHTML": "
text-shadow: x-offset y-offset blur color;