CSS Variable Secrets | Lea Verou | CSS Day 2022

  Рет қаралды 29,233

Web Conferences Amsterdam

Web Conferences Amsterdam

Күн бұрын

By now most developers use CSS custom properties on the regular, but few understand them deeply enough to harness their full power. Lea will take you on a journey from the practical to the mind-blowing, and from the widely implemented to the cutting edge, demonstrating a host of tips, tricks, and gotchas relating to CSS variables in her trademark interactive style. You will leave this talk with both your CSS toolbox and your mind refreshed, and a much deeper understanding of CSS custom properties that you ever thought possible.
Slides: projects.verou...
About Rety (live coding, without the stress): lea.verou.me/2...
About Lea: lea.verou.me
Follow Lea: ‪@LeaVerou‬ or / leaverou
More about CSS Day: cssday.nl or / cssdayconf
Receive conference announcements in your inbox: cssday.nl/subs...

Пікірлер: 37
@gbegerow
@gbegerow 2 жыл бұрын
I never seen a talk of lea without learning something new but this blows it out of the water.
@beardcat
@beardcat 2 жыл бұрын
same here! she is amazing :D
@WellSaint001
@WellSaint001 2 жыл бұрын
omg.. this presentation is just mindblowing! thanks lea!
@adamuk73
@adamuk73 2 жыл бұрын
Shout out to everyone who came here via Kevin Powell
@WebConferencesAmsterdam
@WebConferencesAmsterdam 2 жыл бұрын
What did he do?! :)
@adamuk73
@adamuk73 2 жыл бұрын
@@WebConferencesAmsterdam he posted a link to this talk on his weekly email.
@WebConferencesAmsterdam
@WebConferencesAmsterdam 2 жыл бұрын
Ah, brilliant! And we’ve got more talks coming up in the next few weeks, so make sure to subscribe if you liked this one.
@yannicknana
@yannicknana 2 жыл бұрын
Mind blowingly informative, great talk !
@LD-oq1co
@LD-oq1co 2 жыл бұрын
woah Lea is so impressive!! Amazing Talk
@yashmmee
@yashmmee 2 жыл бұрын
Amazing stuff! Must watch for ui library maintainers
@kamiln022
@kamiln022 2 жыл бұрын
love your t-shirt and ofc whole lecture
@LucasGenzelis
@LucasGenzelis 2 жыл бұрын
Wow, this was amazing! Thanks a lot Lea!
@NoiseLeGGa
@NoiseLeGGa 2 жыл бұрын
my brain hurts - but thx - brilliant as always
@josh_finnis
@josh_finnis Жыл бұрын
I was following along the example and getting an error with the calc in the linear gradient: `calc(.3 var(--glossy, + .3))`. Turns out it was the sass preprocessor throwing the error, it works fine in css.
@WebConferencesAmsterdam
@WebConferencesAmsterdam Жыл бұрын
Go standards!
@JaneOri
@JaneOri 2 жыл бұрын
34:55 👋👽
@kishoreandra
@kishoreandra 2 жыл бұрын
amazing 🙌
@AlexanderBarakhov
@AlexanderBarakhov 2 жыл бұрын
Very useful!
@iftekharrousseau493
@iftekharrousseau493 2 жыл бұрын
Thank you!
@jhacris7189
@jhacris7189 2 жыл бұрын
Worked, thx
@jesh182
@jesh182 Жыл бұрын
Is there a way to know if the browser supports the "container style queries" mentioned as the future of css?
@WebConferencesAmsterdam
@WebConferencesAmsterdam Жыл бұрын
Good question! Hopefully Miriam Suzanne will cover that in three weeks: cssday.nl/2023
@bluntman2k6
@bluntman2k6 Жыл бұрын
does anyone know the tool that she uses to record and playback the coding?
@WebConferencesAmsterdam
@WebConferencesAmsterdam Жыл бұрын
Rety; lea.verou.me/2022/07/rety/
@GodOfMacro
@GodOfMacro 2 жыл бұрын
Fun stuff
@joaomelo9774
@joaomelo9774 2 жыл бұрын
anyone knows which code playground she is using?
@WebConferencesAmsterdam
@WebConferencesAmsterdam 2 жыл бұрын
She coded this herself: twitter.com/LeaVerou/status/1532362352263299072 (not sure if it’s released already) Update: Lea released it: rety.verou.me/
@mohamedlabarre166
@mohamedlabarre166 Жыл бұрын
Hi everyone Can know how to become a member of this chain
@WebConferencesAmsterdam
@WebConferencesAmsterdam Жыл бұрын
Not via the iOS app, only via the website: www.youtube.com/@WebConferencesAmsterdam/join
@peryMimon
@peryMimon 2 жыл бұрын
So how can I write "if 1 print 👍 if 2 print 👎" on some ":before {content}"
@peryMimon
@peryMimon 2 жыл бұрын
trying those on my side project and it is not working @property --player-index { syntax: ''; inherits: true; initial-value: 0; } div:before { --player-index: 1; // condition properties from Lea Verou kzbin.info/www/bejne/kKa9mq2neatnp5o --is-player-1: calc(var(--player-index)); --is-not-player-1: calc(var(--player-index) - 1 ); counter-reset: calc( var(--is-player-1) * "👍" + var(--is-not-player-1) * "👎" ) player-icon; content: counter(player-icon); font-size: 2em; }
@Georgije2
@Georgije2 2 жыл бұрын
I'm not at a computer right now, so this might not work at all, but based on this talk, I'd go with transform: scaleY(3 - (2 * var(--player-index))) and keep the content always equal to 👍. The idea being that it gets flipped upside down for player 2 :)
@Georgije2
@Georgije2 2 жыл бұрын
I just checked it on my computer, and found that what I wrote above works, if i add a "calc" to the expression, and also display the ::before element as a block.
@meaningmean
@meaningmean Жыл бұрын
brain hurts but thanks
@haotianyang740
@haotianyang740 2 жыл бұрын
what's this wizardry...
@georgiiperepechko9321
@georgiiperepechko9321 2 жыл бұрын
I absolutely love Lea, but it's horrifying to see how hacky implementing something in CSS instead of JS is... I'd probably request changes on any PR with this code at this point, hopefully with the spec changes we'll soon get something more readable.
@WebConferencesAmsterdam
@WebConferencesAmsterdam 2 жыл бұрын
Thanks for letting us know.
The CSS Cascade, a deep dive | Bramus Van Damme | CSS Day 2022
47:02
Web Conferences Amsterdam
Рет қаралды 6 М.
Start over-engineering your CSS | Kevin Powell | CSS Day 2024
50:28
Web Conferences Amsterdam
Рет қаралды 17 М.
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 52 МЛН
小丑在游泳池做什么#short #angel #clown
00:13
Super Beauty team
Рет қаралды 43 МЛН
CSS Masonry Layouts | Nicole Sullivan | CSS Day 2024
41:59
Web Conferences Amsterdam
Рет қаралды 296
How to Teach CSS | Josh Comeau | CSS Day 2024
46:39
Web Conferences Amsterdam
Рет қаралды 2,4 М.
Oh Snap! | Adam Argyle | CSS Day 2022
49:46
Web Conferences Amsterdam
Рет қаралды 6 М.
The “Other” C in CSS | Sara Soueidan | CSS Day 2024
55:56
Web Conferences Amsterdam
Рет қаралды 5 М.
Layout and Reading Order | Rachel Andrew | CSS Day 2024
50:47
Web Conferences Amsterdam
Рет қаралды 4,4 М.
Utility First CSS Isn’t Inline Styles | Sarah Dayan | CSS Day 2024
52:22
Web Conferences Amsterdam
Рет қаралды 5 М.
Web Design Engineering With the New CSS | Matthias Ott | CSS Day 2024
51:14
Web Conferences Amsterdam
Рет қаралды 10 М.
Creative CSS Layout | Michelle Barker | CSS Day 2022
51:20
Web Conferences Amsterdam
Рет қаралды 13 М.
Dynamic CSS secrets by Lea Verou
53:33
Wey Wey Web
Рет қаралды 2,9 М.
The Secret Mechanisms of CSS - Web à Québec
39:19
Josh Comeau
Рет қаралды 14 М.