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

Preethi Sam

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.

Post Thumbnail for Obscuring Text with @counter-style
@counter-styleCSS

Obscuring Text with @counter-style

By Preethi Sam on Jun 03, 2026

@counter-style is useful for replacing the ::marker of lists easily, but it controls any markers-of-counters, so we can use it for more.

Post Thumbnail for Callout UI with CSS Offset & Border
corner-shapeCSSoffset-path

Callout UI with CSS Offset & Border

By Preethi Sam on May 13, 2026

We look at designing callout UI elements using CSS, incorporating leader lines and text boxes. It details setting up the HTML structure, utilizing CSS properties like offset-path and borders.

Post Thumbnail for CSS `n of` Selectors for Conditional Validation
:nth-child()CSSForm Validation

CSS `n of` Selectors for Conditional Validation

By Preethi Sam on May 04, 2026

:nth-child supports the keyword `of` in the argument which can be super useful on it’s own. Combo that with a :has() selector to do some pretty wild stuff!

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