🌐 CSS Relative Colors: A New Way to Handle Colors in CSS
Learn about CSS relative colors - a modern approach to working with colors that lets you manipulate and adjust color values directly in your stylesheets.
Instead of defining colors as static values, relative colors allow you to base new colors on existing ones. For example, you can take a border color and create a background color that's a lighter or darker version of it, adjust opacity, or change saturation - all with simple CSS calculations.
The guide covers syntax, practical use cases, and demonstrates how relative colors work with HSL color space. You'll see how to generate color variations dynamically without needing to manually calculate new color values.
Check out the interactive guide with examples: https://ishadeed.com/article/css-relative-colors
Learn about CSS relative colors - a modern approach to working with colors that lets you manipulate and adjust color values directly in your stylesheets.
Instead of defining colors as static values, relative colors allow you to base new colors on existing ones. For example, you can take a border color and create a background color that's a lighter or darker version of it, adjust opacity, or change saturation - all with simple CSS calculations.
The guide covers syntax, practical use cases, and demonstrates how relative colors work with HSL color space. You'll see how to generate color variations dynamically without needing to manually calculate new color values.
Check out the interactive guide with examples: https://ishadeed.com/article/css-relative-colors
👍10❤4
🧰 JSON Mocker
Need realistic test data for your projects? JSON Mocker is a free online tool that generates JSON data based on your schema.
Instead of creating fake data manually, you can define what your JSON should look like using a reusable schema, and the tool will automatically generate matching data for testing and development.
The web-based editor makes it easy to create and save schema templates, perfect for developers who need consistent mock data across different projects.
Check it out here: https://laurawebdev.github.io/json-mocker/
Need realistic test data for your projects? JSON Mocker is a free online tool that generates JSON data based on your schema.
Instead of creating fake data manually, you can define what your JSON should look like using a reusable schema, and the tool will automatically generate matching data for testing and development.
The web-based editor makes it easy to create and save schema templates, perfect for developers who need consistent mock data across different projects.
Check it out here: https://laurawebdev.github.io/json-mocker/
❤8🤔1
🦧 State, Logic, And Native Power: CSS Wrapped 2025
CSS Wrapped 2025 is out! We’re entering a world where CSS can increasingly handle logic, state, and complex interactions once reserved for JavaScript. It’s no longer just about styling documents, but about crafting dynamic, ergonomic, and robust applications with a native toolkit more powerful than ever. Here’s an unpacking of the highlights and how they connect to the broader evolution of modern CSS.
CSS Wrapped 2025 is out! We’re entering a world where CSS can increasingly handle logic, state, and complex interactions once reserved for JavaScript. It’s no longer just about styling documents, but about crafting dynamic, ergonomic, and robust applications with a native toolkit more powerful than ever. Here’s an unpacking of the highlights and how they connect to the broader evolution of modern CSS.
❤8👍1
🎮 CSS Hell: 15 challenging CSS puzzles
Test your CSS skills with 15 tricky puzzles where you need to align pegs with their corresponding holes by adding the right CSS properties to divs. Each puzzle presents a visual challenge that requires creative use of CSS to solve.
Think you know CSS? This game will put your skills to the test with increasingly difficult challenges that will make you think outside the box.
Try it out and see how many puzzles you can solve!
https://csshell.com/
Test your CSS skills with 15 tricky puzzles where you need to align pegs with their corresponding holes by adding the right CSS properties to divs. Each puzzle presents a visual challenge that requires creative use of CSS to solve.
Think you know CSS? This game will put your skills to the test with increasingly difficult challenges that will make you think outside the box.
Try it out and see how many puzzles you can solve!
https://csshell.com/
👍10
👩💻 Puck is a visual editor for React developed by Measured Corporation Ltd!
🌟 It allows developers to create and edit React components using an intuitive interface, simplifying the process of developing user interfaces. Puck offers drag-and-drop capabilities for components, customizing their properties, and visually editing the application structure.
🌟 It allows developers to create and edit React components using an intuitive interface, simplifying the process of developing user interfaces. Puck offers drag-and-drop capabilities for components, customizing their properties, and visually editing the application structure.
❤13
✂️ Margin-Trim: A CSS Layout Helper
A new CSS property called
This simplifies layout creation by eliminating the need to manually remove margins from first and last child elements, making your CSS cleaner and more maintainable.
Currently, this property is only supported in Safari browsers, but it's a promising addition to the CSS toolkit for creating more efficient layouts.
Read more on WebKit's blog: https://webkit.org/blog/16854/margin-trim/
A new CSS property called
margin-trim has been introduced. It allows a parent container to automatically trim the margins of its child elements when those margins push against the container's edges.This simplifies layout creation by eliminating the need to manually remove margins from first and last child elements, making your CSS cleaner and more maintainable.
Currently, this property is only supported in Safari browsers, but it's a promising addition to the CSS toolkit for creating more efficient layouts.
Read more on WebKit's blog: https://webkit.org/blog/16854/margin-trim/
👍4🔥3👏2
📏 The CSS Height Puzzle
Have you ever wondered why percentage-based heights in CSS often don't work as expected? Josh Comeau explains this common frustration.
The secret is that percentage heights rely on the parent element having an explicit height defined. If the parent doesn't have a set height, the browser has no reference point, so the percentage won't work.
This creates a chicken-and-egg problem where elements can't determine each other's heights. The solution? Always ensure parent elements have explicit heights when using percentage-based heights for children, or use modern layout methods like Flexbox or Grid that handle this more intuitively.
Read the full explanation here: https://www.joshwcomeau.com/css/height-enigma/
Have you ever wondered why percentage-based heights in CSS often don't work as expected? Josh Comeau explains this common frustration.
The secret is that percentage heights rely on the parent element having an explicit height defined. If the parent doesn't have a set height, the browser has no reference point, so the percentage won't work.
This creates a chicken-and-egg problem where elements can't determine each other's heights. The solution? Always ensure parent elements have explicit heights when using percentage-based heights for children, or use modern layout methods like Flexbox or Grid that handle this more intuitively.
Read the full explanation here: https://www.joshwcomeau.com/css/height-enigma/
❤7🤔1
📝 Console.log Formatting Tips
Making your console.log output more practical and readable is easier than you might think. Chrome DevTools offers several ways to format and style your log messages.
You can use format specifiers like %s for strings, %i for integers, and %f for floating-point numbers to structure your output cleanly.
Want to add some visual flair? Use the %c format specifier followed by CSS styles to color and style your messages right in the console. For Node.js developers, ANSI escape sequences are another great option for adding color to your logs.
These simple techniques help make debugging sessions more efficient by making important information stand out clearly.
Source: https://developer.chrome.com/docs/devtools/console/format-style
Making your console.log output more practical and readable is easier than you might think. Chrome DevTools offers several ways to format and style your log messages.
You can use format specifiers like %s for strings, %i for integers, and %f for floating-point numbers to structure your output cleanly.
Want to add some visual flair? Use the %c format specifier followed by CSS styles to color and style your messages right in the console. For Node.js developers, ANSI escape sequences are another great option for adding color to your logs.
These simple techniques help make debugging sessions more efficient by making important information stand out clearly.
Source: https://developer.chrome.com/docs/devtools/console/format-style
❤4🔥4
🚀 Understanding JavaScript's "this" Keyword
Ever wondered why JavaScript's "this" keyword behaves so unpredictably? It's not about where you write it, but how the function gets called.
The key lies in execution contexts and the call stack. When JavaScript runs, it creates contexts that track what's happening. The value of "this" depends on whether you call a function as a standalone, a method, or a constructor.
Learn how execution contexts determine "this" and avoid those frustrating reference errors.
Read the full explanation: https://piccalil.li/blog/javascript-when-is-this/
Ever wondered why JavaScript's "this" keyword behaves so unpredictably? It's not about where you write it, but how the function gets called.
The key lies in execution contexts and the call stack. When JavaScript runs, it creates contexts that track what's happening. The value of "this" depends on whether you call a function as a standalone, a method, or a constructor.
Learn how execution contexts determine "this" and avoid those frustrating reference errors.
Read the full explanation: https://piccalil.li/blog/javascript-when-is-this/
👍7
🔍 The Ultimate JavaScript Regex Guide
Struggling with JavaScript regular expressions? This comprehensive guide covers everything from basic syntax and flags to advanced operators, character classes, and grouping techniques. Learn how to use regex methods effectively in your JavaScript projects, from simple pattern matching to complex text processing.
The resource breaks down regex concepts into digestible sections, making this powerful text manipulation tool approachable for developers of all levels.
Read more: https://www.honeybadger.io/blog/javascript-regular-expressions/
Struggling with JavaScript regular expressions? This comprehensive guide covers everything from basic syntax and flags to advanced operators, character classes, and grouping techniques. Learn how to use regex methods effectively in your JavaScript projects, from simple pattern matching to complex text processing.
The resource breaks down regex concepts into digestible sections, making this powerful text manipulation tool approachable for developers of all levels.
Read more: https://www.honeybadger.io/blog/javascript-regular-expressions/
👍4❤1
📱 10 Key Web Updates from Google I/O 2025
Google just unveiled some big improvements for web development. The highlights include built-in CSS carousels, AI-powered DevTools, and a Prompt API with multimodal capabilities.
You can now use Gemini Nano directly in Chrome for AI features, and DevTools got smarter with real-user data analysis. There's also better integration with Firebase for hybrid AI solutions and improvements to make sign-in smoother for users.
Check out all the details in the full recap.
Source: https://developer.chrome.com/blog/web-at-io25
Google just unveiled some big improvements for web development. The highlights include built-in CSS carousels, AI-powered DevTools, and a Prompt API with multimodal capabilities.
You can now use Gemini Nano directly in Chrome for AI features, and DevTools got smarter with real-user data analysis. There's also better integration with Firebase for hybrid AI solutions and improvements to make sign-in smoother for users.
Check out all the details in the full recap.
Source: https://developer.chrome.com/blog/web-at-io25
🔥5👍1
📦 Dockerizing Your React App
Learn how to containerize your React application with Docker in this step-by-step tutorial for developers. The guide covers creating a Dockerfile, setting up .dockerignore, building your Docker image, and running your React app in a production-ready container environment.
https://www.docker.com/blog/how-to-dockerize-react-app/
Learn how to containerize your React application with Docker in this step-by-step tutorial for developers. The guide covers creating a Dockerfile, setting up .dockerignore, building your Docker image, and running your React app in a production-ready container environment.
https://www.docker.com/blog/how-to-dockerize-react-app/
❤9👍1