mitsunee,
@mitsunee@ieji.de avatar

Is there a way to deduplicate the dark theme values with CSS nesting? I currently have the postccss-preset-env plugin for nesting explicitly enabled.

#webdev #css #css3

keithjgrant,
@keithjgrant@front-end.social avatar

@mitsunee Container style queries make this possible, but it's still Chrome only at this point
https://caniuse.com/mdn-css_at-rules_container_style_queries_for_custom_properties

mitsunee,
@mitsunee@ieji.de avatar

@keithjgrant that looks interesting but we're probably still a few years away from getting to use container queries without fallbacks and/or polyfills :\

keithjgrant,
@keithjgrant@front-end.social avatar

@mitsunee I don't think it's that far away, but yeah, we're not there yet on style queries.

(container size queries, on the other hand, are just around the corner/available now depending on support needs)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • webdev
  • DreamBathrooms
  • thenastyranch
  • osvaldo12
  • magazineikmin
  • GTA5RPClips
  • rosin
  • InstantRegret
  • Youngstown
  • slotface
  • ngwrru68w68
  • kavyap
  • khanakhh
  • Durango
  • mdbf
  • JUstTest
  • everett
  • ethstaker
  • normalnudes
  • cisconetworking
  • tacticalgear
  • cubers
  • modclub
  • provamag3
  • Leos
  • tester
  • anitta
  • megavids
  • lostlight
  • All magazines