CSS
Flexbox, Grid, animations, custom properties, selectors, and responsive design patterns.
Flexbox
1 topic
Flex Container
One-dimensional layout with Flexbox
.container {
display: flex;
flex-direction: row; /* row | column */
justify-content: center; /* Main axis */
align-items: center; /* Cross axis */
gap: 1rem;
flex-wrap: wrap;
}
.item {
flex: 1; /* Grow equally */
flex: 0 0 200px; /* Fixed width */
align-self: flex-start; /* Override alignment */
}💡 justify-content = main axis, align-items = cross axis
⚡ gap is cleaner than margins for spacing
CSS Grid
1 topic
Grid Layout
Two-dimensional layouts with CSS Grid
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: auto 1fr auto;
gap: 1rem;
}
.span-2 {
grid-column: span 2;
}
.full-width {
grid-column: 1 / -1;
}
/* Named areas */
.layout {
grid-template-areas:
"header header"
"sidebar main"
"footer footer";
}💡 fr unit distributes available space
📌 Use minmax() for responsive columns without media queries
Custom Properties
1 topic
CSS Variables
Reusable values with CSS custom properties
:root {
--color-primary: #3b82f6;
--color-bg: #0f172a;
--spacing-md: 1rem;
--radius: 0.5rem;
}
.button {
background: var(--color-primary);
padding: var(--spacing-md);
border-radius: var(--radius);
}
/* Override in context */
.dark {
--color-bg: #000;
}💡 Custom properties cascade and can be overridden
⚡ Great for theming and dark mode
Related Cheat Sheets
More hands-on references connected to this topic.
Tailwind utility classes for layout, spacing, typography, flexbox, grid, and responsive design.
shared topics, same difficulty
Modern JavaScript — ES6+, arrays, objects, promises, destructuring, and common patterns.
same difficulty, keyword overlap
Python syntax, data structures, comprehensions, OOP, error handling, and standard library essentials.
same difficulty, keyword overlap
SQL queries, joins, aggregations, subqueries, window functions, and database design patterns.
same difficulty, keyword overlap
Related Articles
Background reading and deeper explanations for this sheet.
Build an Agentic App with FastAPI and Azure AI Foundry: A Practical Beginner-to-Pro Guide
Learn how to design, build, and deploy an agentic application using FastAPI and Azure AI Foundry with practical, real-world examples. This guide walks you from architecture and setup to tool-calling, memory, observability, and production deployment patterns.
keyword overlap
Event-Driven Agents with Kafka Streams: A Practical Guide for Building Real-Time AI Workflows
Event-driven agents let you move from slow, request/response automation to responsive systems that react in milliseconds to real-world signals. In this hands-on guide, you’ll learn how to design, build, and operate agentic workflows using Apache Kafka and Kafka Streams, with practical patterns, code snippets, and production-ready advice.
keyword overlap
System Design for 100 Million Requests/Day: Scalable Patterns Made Simple
Designing for 100 million requests a day sounds intimidating, but it becomes manageable when you break traffic into layers and apply proven patterns. In this guide, you’ll learn the architecture, capacity math, and practical system design patterns—like caching, queue-based load leveling, and CQRS—with easy examples you can reuse.
keyword overlap
AWS AI & App Modernization Guide: SageMaker, Bedrock, ECS/EKS, and Lambda in Practice
AWS offers multiple paths to build intelligent, scalable applications—but choosing the right service can feel overwhelming. In this practical guide, you’ll learn what SageMaker, Bedrock, ECS/EKS, and Lambda are best at, how they fit together, and how to apply them in real-world architectures with beginner-friendly clarity and technical depth.
keyword overlap