CSS Quick-Tip: Custom Properties Fallback Values

Veröffentlicht am: 23 Juni 2023
auf dem Kanal: CSS Weekly
1,470
72

A quick tip outlining how and why you can define fallback values for CSS Custom Properties, which can be useful when you're dealing with larger projects and design systems that contain many CSS Variables.

🔗 Links
Demo: https://codepen.io/ZoranJambor/pen/LY...
Why do we define Custom Properties on :root in CSS:    • What exactly is :root selector in CSS?  

📖 Chapters
00:00 Why you need fallback values for Custom Properties
00:38 How to define fallback values for Custom Properties
01:10 How to define multiple fallback values for CSS Variables

Subscribe to CSS Weekly Newsletter:
💌 https://css-weekly.com/

Course Mastering Prettier & Stylelint
🔥 Learn everything about best linting tools while supporting CSS Weekly: https://masteringlinting.com/
🏷️ Use coupon code YOUTUBE15 to get an additional 15% off on the already discounted, pre-launch price.

Keep up-to-date with CSS Weekly:
👉 Twitter:   / cssweekly  
👉 Instagram:   / cssweekly  
👉 Facebook:   / cssweekly  

Keep up to date with what I'm up to:
🔗 Blog: https://zoranjambor.com
👉 Twitter:   / zoranjambor  
👉 LinkedIn:   / zoranjambor  

Zoran Jambor
#css #csstips


Auf dieser Seite können Sie das Online-Video CSS Quick-Tip: Custom Properties Fallback Values mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer CSS Weekly 23 Juni 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,470 Mal angesehen und es wurde von 72 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!