#styleQueries

Ana Tudor ๐Ÿฏanatudor
2025-02-22

I haven't used style queries much, but just gave them a spin and got an idea (that I've just tested & works) about how we can have ranges in style queries right now. ๐Ÿฅณ

That is, red background if --k <= 20, orange background if 20 < --k <= 40 and so on...

Screenshot of a basic test for ranges n style queries.
Inautiloinautilo
2025-02-20


A future of themes ยท What to expect from CSS inline if() for theming? ilo.im/162ftx

_____

pablolarahpablolarah
2024-09-09
On orange background:
Small Black text: Querying the  
Big White text: Color Scheme
Egor Kloosdutchcelt
2024-06-16

As the discussion around container queries, especially style queries, continues to grow, I've found the real-world use cases interesting

This inspired me to take this further and look at how this would work with a mixed-component approach.

codepen.io/dutchcelt/pen/YzbYy

Using style queries to pass down a given context and data attributes for the DOM to configure them from the outside. (Note the use of javascript setting the disqualified player)

pablolarahpablolarah
2024-04-16
Green text on pink background:
Alternating Style Queries
pablolarahpablolarah
2024-04-10

๐ŸŸข๐Ÿ”ด Layered Toggles: Optional CSS Mixins
by Roma Komarov @kizu @kizmarh

kizu.dev/layered-toggles/

Dark green text on pink background:
"Layered Toggles: Optional CSS Mixins"
pablolarahpablolarah
2024-03-08

๐Ÿ”ด๐Ÿ”ต Add Superpowers to Your CSS Variables with Style Queries
by Jared White @jaredwhite
@jaredcwhite

thathtml.blog/2024/03/superpow

Red text on light green blue background:
Add Superpowers to Your CSS Variables with Style Queries
Inautiloinautilo
2023-08-11


A future of themes with CSS Container Style Queries ยท Style Queries will make website theming much more convenient ilo.im/14nd2z

_____

Lukas Oppermannlukasoppermann
2023-07-19

are a pretty interesting thing. You can test for existing styles on parents. This opens huge possibilities like defining css variables as a sort of boolean or choice value.

Learn all in this great @chrome article: developer.chrome.com/blog/styl

Drawing explaining concept of query
Inautiloinautilo
2023-06-29


Future CSS: State Container Queries ยท The Chromium team is experimenting with a new type of query ilo.im/13u1nb

_____

pablolarahpablolarah
2023-03-03

๐Ÿ”ต๐ŸŸฃ Simplified Dark Mode With Style Queries
by Stephanie Eckles @5t3ph

thinkdobecreate.com/articles/s

White text on gradient blue-violet background:
"Simplified Dark Mode With Style Queries"
pablolarahpablolarah
2023-03-01

๐Ÿ”ด๐Ÿ”ต Getting Started with Style Queries
Una Kravets @Una@front-end.social @Una
at @ChromiumDev

developer.chrome.com/en/blog/s

Light blue purse on a pink background and pink purse on light blue background. Both bags with long straps

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst