← Back to Master.dev
Courses Learn Become a Member Guest Writing
RSS
Blog
Author Archive for

Preethi Sam

Post Thumbnail for 5 CSS Values for Easier Text Styling
@layerAccentColorchCSSRelative Color Syntaxrevert-layerTypographyunset

5 CSS Values for Easier Text Styling

By Preethi Sam on Nov 18, 2026

Sometimes picking the right value matters more than picking the right property. Here are five CSS values (unset, AccentColor, ch, from, and revert-layer) that take a lot of the work out of styling text.

Post Thumbnail for true or false in CSS
@property@scopeContainer QueriesCSSCustom Properties

true or false in CSS

By Preethi Sam on Nov 06, 2026

CSS doesn’t have a boolean type, but it does have the true and false keywords. Register a custom property that only accepts them, flip it with :has(), and container style queries turn messy :checked selector combinations into readable conditions.

Post Thumbnail for 5 Good Choices for HTML Containers

5 Good Choices for HTML Containers

By Preethi Sam on Oct 09, 2026

Divs and spans are fine, but purposefully meaningless. Often the meaning actually matters, so let’s look at some of those situations.

Post Thumbnail for Dark Mode Very Much Matters To Me
AccessibilityColorCSSDark ThemeUX

Dark Mode Very Much Matters To Me

By Preethi Sam on Sep 21, 2026

It’s not just vibes, it’s an accessibility thing.

Post Thumbnail for Comparing Values With CSS progress()
CSSprogress()

Comparing Values With CSS progress()

By Preethi Sam on Sep 14, 2026

The new CSS progress() function maps a given value to a range. Super useful for responsive layouts, responsive typography, and fun tricks.

Post Thumbnail for Background Image Refraction in CSS
background-imageCSSLiquid Glass

Background Image Refraction in CSS

By Preethi Sam on Aug 28, 2026

“Liquid glass” design is helped along by offsetting/scaling the background as if you’re looking through real glass. But that gets tricky with arbitrary CSS background positioning.

Post Thumbnail for 5 CSS Properties You Should Know for Better Text Designs
align-contentbackground-clipbox-decoration-modeCSSletter-spacingTypography

5 CSS Properties You Should Know for Better Text Designs

By Preethi Sam on Aug 05, 2026

Includes background-clip for masking backgrounds, vertical-align for aligning elements, box-decoration-mode for consistent edge styling, letter-spacing for spacing control, and text-combine-upright for vertical text layouts.

Post Thumbnail for Using `animation-composition` in CSS to Avoid Redeclaring Other Values
@keyframesanimation-compositionbox-shadowCSS

Using `animation-composition` in CSS to Avoid Redeclaring Other Values

By Preethi Sam on Jul 23, 2026

Here’s an example. You can list multiple comma-separated box-shadows, but if you apply a *new* box-shadow, it overrides anything set before. Not true here.

Post Thumbnail for Boundary-Aware Styling in CSS
AnimationCSS

Boundary-Aware Styling in CSS

By Preethi Sam on Jul 07, 2026

You might think of the view() function as used in scroll-driven animations, but really it just pairs @keyframes animation with the current position of an element.

Post Thumbnail for Word Rotator with @counter-style
@counter-styleCSS

Word Rotator with @counter-style

By Preethi Sam on Jun 05, 2026

Using @counter-style for tricky visual effects like word rotation and obfuscation.

Author

Preethi Sam
Preethi Sam
Web Developer & Writer
Website X Profile
Older Posts →
$966,000

Master.dev donates to open source projects through thanks.dev and Open Collective, as well as donates to non-profits like The Last Mile, Annie Canons, and Vets Who Code.

  • Courses
  • Learn
  • Teachers
  • Guides
  • Blog
  • FAQ
  • Login
  • Join Now
  • RSS
X LinkedIn Facebook Instagram RSS
Master.dev App on the Apple App Store Master.dev App on Google Play
Contact: support@master.dev
Master.dev is proudly made in Minneapolis, MN
©2026 Master.dev · Terms of Service · Privacy Policy