It is ok to say "CSS variables" instead of "custom properties"
https://blog.kizu.dev/css-variables/
#HackerNews #CSSVariables #CustomProperties #WebDevelopment #FrontEndDesign #CodingTips
#Tag
It is ok to say "CSS variables" instead of "custom properties"
https://blog.kizu.dev/css-variables/
#HackerNews #CSSVariables #CustomProperties #WebDevelopment #FrontEndDesign #CodingTips
I have a new article out!
Super Simple Full-Bleed & Breakout Styles
https://frontendmasters.com/blog/super-simple-full-bleed-breakout-styles/ - my take on an old problem using modern CSS solutions.
Using a spooky made up Halloween recipe to illustrate concepts.
PS @chriscoyier told me to be proud of it 😛
#CSS #cssLayout #cssGrid #cssVariables #containerQueries #containerQuery #code #web #webDev #webDevelopment #dev #coding #frontend #Halloween
I have a new article out!
Super Simple Full-Bleed & Breakout Styles
https://frontendmasters.com/blog/super-simple-full-bleed-breakout-styles/ - my take on an old problem using modern CSS solutions.
Using a spooky made up Halloween recipe to illustrate concepts.
PS @chriscoyier told me to be proud of it 😛
#CSS #cssLayout #cssGrid #cssVariables #containerQueries #containerQuery #code #web #webDev #webDevelopment #dev #coding #frontend #Halloween
So what else could we do? Use an SVG filter!✨
Set the #CSS gradient as one with two end stops and no steps and apply a super simple #SVG #filter (same idea as here https://mastodon.social/@anatudor/114703583973454917 ) that makes it stepped.
Works for all gradient types - see this @codepen demo https://codepen.io/thebabydino/pen/raVrZQN 😼
#cssGradient #code #coding #frontend #web #dev #webDevelopment #webDev #svgFilter #cssVariables
So what else could we do? Use an SVG filter!✨
Set the #CSS gradient as one with two end stops and no steps and apply a super simple #SVG #filter (same idea as here https://mastodon.social/@anatudor/114703583973454917 ) that makes it stepped.
Works for all gradient types - see this @codepen demo https://codepen.io/thebabydino/pen/raVrZQN 😼
#cssGradient #code #coding #frontend #web #dev #webDevelopment #webDev #svgFilter #cssVariables
Using CSS variables solves both these problems, but we cannot use #CSS variables inside the #Sass mix() function, we have to use the CSS color-mix(). This means the compiled output looks way uglier.
You can check it out in this @codepen demo https://codepen.io/thebabydino/pres/bNdjKwJ
#cssGradient #code #coding #frontend #web #dev #webDev #webDevelopment #cssVariables
A space for Bonfire maintainers and contributors to communicate