Aliens School
Cinematic Knowledge Experience
0%
Aliens School
Now Playing
Aliens School ยท HIEN
โŒจ๏ธ Keyboard Shortcuts
โ†’Next slide โ†Previous slide SpacePlay / Pause MNarration on/off FFullscreen ?Show/hide this
Press any key to close
Skill Topic ยท Cinematic

๐ŸŽฏ CSS Variables (Custom Properties) โ€” Dynamic Theming Power

CSS Variables = reusable values ek jagah define karo, har jagah use karo โ€” dynamic theming, easyโ€ฆ

Overview
๐ŸŒŸ

๐ŸŽฏ CSS Variables (Custom Properties) โ€” Dynamic Theming Power โ€” Quick Facts

๐Ÿ“Œ

Switchboard Part: CSS Feature

๐ŸŽฏ

โ˜Ž๏ธ Central panel: :root { --var: value }

โšก

๐Ÿ”Œ Connection wire: --primary: #3B82F6

๐Ÿ”‘

๐Ÿ“ž Connected phone: var(--primary)

Topic 1
๐Ÿ“š

๐ŸŽฏ Real-World Analogy: Switchboard Operator System โ˜Ž๏ธ๐Ÿ”Œ

๐Ÿ“š Socho tumhare paas ek Telephone Switchboard hai. Operator central panel se sabโ€ฆ
Topic 2
๐Ÿ’ก

๐Ÿ“Œ Section 1: Problem Without Variables

๐Ÿ’ก `css / โŒ Bina variables ke = har jagah value repeat! / .header { background: #3B82F6; }โ€ฆ
Topic 3
โœจ

๐Ÿ“Œ Section 2: Syntax โ€” Declare & Use

๐ŸŽฏ `css / === DECLARE: -- (double dash) se start === / :root { --primary: #3B82F6; / Color /โ€ฆ
Topic 4
โญ

๐Ÿ“Œ Section 3: :root โ€” Global Variables Panel

โญ โ˜Ž๏ธ Switchboard Analogy: :root = main switchboard panel. Yahan sab wires (variables)โ€ฆ
Topic 5
๐Ÿ“ฅ ๐Ÿ“ฅ ๐Ÿง  ๐Ÿ”ฌ ๐Ÿ’ก ๐ŸŽฏ

๐Ÿ“Œ Section 4: Fallback Values

๐Ÿ”‘ `css / === Agar variable exist na kare โ†’ fallback use hoga === / .text { color:โ€ฆ
Topic 6
โœจ

๐Ÿ“Œ Section 5: Scope โ€” Local vs Global

โœจ โ˜Ž๏ธ Switchboard Analogy: Building ka main switchboard (:root) sab rooms ko defaultโ€ฆ
Topic 7
๐Ÿ”’

๐Ÿ“Œ Section 6: calc() ke saath Variables

๐ŸŒŸ `css :root { --base-size: 16px; --spacing: 1rem; --columns: 3; --sidebar-width: 250px; }โ€ฆ
Topic 8
๐Ÿš€

๐Ÿ“Œ Section 7: Dark Mode Theming โญ

๐Ÿš€ โ˜Ž๏ธ Switchboard Analogy: Raat ko operator sab wires ek doosre set pe switch kar deta hai โ€”โ€ฆ
Topic 9
๐Ÿ“ฅ ๐Ÿ“ฅ ๐Ÿง  ๐Ÿ”ฌ ๐Ÿ’ก ๐ŸŽฏ

๐Ÿ“Œ Section 8: JavaScript se Variables Change

๐Ÿ“š `javascript // === GET variable value === const root = document.documentElement; constโ€ฆ
Topic 10
๐Ÿ’ก

๐Ÿ“Œ Section 9: @property โ€” Animate Variables

๐Ÿ’ก `css / โš ๏ธ Variables directly animate nahi hote! / / โœ… Solution: @property rule /โ€ฆ
Topic 11
๐Ÿ”’

๐Ÿ“Œ Section 10: 3-Layer Design System โญ

๐ŸŽฏ `css / === Layer 1: Raw Palette (fixed colors) === / :root { --blue-50: #EFF6FF;โ€ฆ
Topic 12
โœจ

๐Ÿ“Œ Section 11: CSS Variables vs Sass Variables

โญ | Feature | CSS Variables var() | Sass $variable | |---|---|---| | Runtime? | โœ… Live inโ€ฆ
Topic 13
๐Ÿ“ฅ ๐Ÿ“ฅ ๐Ÿง  ๐Ÿ”ฌ ๐Ÿ’ก ๐ŸŽฏ

๐Ÿ“Œ Section 12: Complete Working Example ๐Ÿ—๏ธ

๐Ÿ”‘ `html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <metaโ€ฆ
Topic 14
โœจ

โš ๏ธ Common Mistakes (Galtiyan Jo Sab Karte Hain)

โœจ | # | โŒ Galti | โœ… Sahi Tareeqa | ๐Ÿค” Kyun? | |---|---|---|---| | 1 | Single dash -color seโ€ฆ
Topic 15
๐ŸŒŸ

๐Ÿงช Practice Exercises

๐ŸŒŸ ๐ŸŸข Beginner: Basic Variable System Task: :root me 5 color variables, 3 spacing variables,โ€ฆ
Topic 16
๐Ÿš€

๐Ÿ“‹ Quick Reference Summary Table

๐Ÿš€ | Concept | Syntax/Value | Notes | |---|---|---| | Declare | --name: value | Double dashโ€ฆ
Topic 17
๐Ÿ“ฅ ๐Ÿ“ฅ ๐Ÿง  ๐Ÿ”ฌ ๐Ÿ’ก ๐ŸŽฏ

๐Ÿ”— Navigation

๐Ÿ“š โฌ…๏ธ Previous: CSS User Interface | โžก๏ธ Next: CSS Box Sizing
Comparison
โœจ

๐Ÿ“Œ Section 11: CSS Variables vs Sass Variables

โš–๏ธ

Runtime?: โœ… Live in browser

โš–๏ธ

JavaScript access: โœ… Yes

โš–๏ธ

Dark mode theming: โœ… Perfect

Diagram
๐Ÿ“ฅ โš™๏ธ ๐Ÿ”ฌ ๐Ÿ’ก

Visual Flow

๐Ÿ“Š Diagram visualization โ€” details in narration
Quick Quiz
๐Ÿง  QUIZ TIME

Quiz โ€” Question 1

๐ŸŽฏ CSS Variables (Custom Properties) โ€” Dynamic Theming Power ka sabse sahi definition kya hai?

Quick Quiz
๐Ÿง  QUIZ TIME

Quiz โ€” Question 2

๐ŸŽฏ CSS Variables (Custom Properties) โ€” Dynamic Theming Power ka 'โ˜Ž๏ธ Central panel' kya hai?

Complete! ๐ŸŽ‰
COMPLETE

๐ŸŽฏ CSS Variables (Custom Properties) โ€” Dynamic Theming Power Complete!

Aliens School ยท HIEN ยท Cinematic Knowledge

โœ…

๐ŸŽฏ CSS Variables (Custom Properties) โ€” Dynamic Theming Power Complete

1/24
0:00
REC 00:00ESC=Cancel
Aliens School
3
Recording shuru hone wali hai...
โœ…
Recording Complete
Video process ho rahi hai...
Live Class
Slide 1 / 7
Timer
00:00
๐Ÿ“ Speaker Notes
โ€”
โญ๏ธ Up Next
โ€”
โ€”
๐Ÿ—‚๏ธ All Slides