You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This awesome light-dark() css feature just dropped and I wanted to shed some light (or dark) on it to get this integrated into the TW v4 color system! I think this can open up some huge possibilities into styling light/dark modes in one shot while reducing a ton of code!
@endigo9740 at @skeletonlabs has a unique solution for this called Color Pairings which combines the .{property}-{color}-{baseShade}-{darkShade} together and it feels like the natural next step e.g.:
// html
<LightDarkclass="bg-blue-50-950" />
<LightDarkclass="text-blue-50-950" />
<LightDarkclass="border-blue-50-950" />
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This awesome light-dark() css feature just dropped and I wanted to shed some light (or dark) on it to get this integrated into the TW v4 color system! I think this can open up some huge possibilities into styling light/dark modes in one shot while reducing a ton of code!
@endigo9740 at @skeletonlabs has a unique solution for this called Color Pairings which combines the
.{property}-{color}-{baseShade}-{darkShade}
together and it feels like the natural next step e.g.:What do you guys think?
Beta Was this translation helpful? Give feedback.
All reactions