<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Samanyu Pritish</title>
    <description>The latest articles on DEV Community by Samanyu Pritish (@samanyu_pritish_732258606).</description>
    <link>https://dev.to/samanyu_pritish_732258606</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3760011%2F6dcaf024-b0cd-472a-8c5d-3828df0425bd.png</url>
      <title>DEV Community: Samanyu Pritish</title>
      <link>https://dev.to/samanyu_pritish_732258606</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/samanyu_pritish_732258606"/>
    <language>en</language>
    <item>
      <title>CSS Tricks That Feel Illegal but Work - 2</title>
      <dc:creator>Samanyu Pritish</dc:creator>
      <pubDate>Fri, 13 Feb 2026 13:29:34 +0000</pubDate>
      <link>https://dev.to/samanyu_pritish_732258606/css-tricks-that-feel-illegal-but-work-2-396j</link>
      <guid>https://dev.to/samanyu_pritish_732258606/css-tricks-that-feel-illegal-but-work-2-396j</guid>
      <description>&lt;h2&gt;
  
  
  1️⃣ &lt;code&gt;:has()&lt;/code&gt; -- The Parent Selector We Waited For
&lt;/h2&gt;

&lt;p&gt;For years, we couldn't select a parent based on a child.&lt;/p&gt;

&lt;p&gt;Now we can.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.card&lt;/span&gt;&lt;span class="nd"&gt;:has&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;img&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;border&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2px&lt;/span&gt; &lt;span class="nb"&gt;solid&lt;/span&gt; &lt;span class="no"&gt;lime&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;CSS can now say:&lt;/p&gt;

&lt;p&gt;"If this element has a child matching this selector..."&lt;/p&gt;

&lt;p&gt;It feels illegal.&lt;br&gt;
It's revolutionary.&lt;/p&gt;


&lt;h2&gt;
  
  
  2️⃣ &lt;code&gt;scroll-snap&lt;/code&gt; -- Smooth Native Carousels
&lt;/h2&gt;

&lt;p&gt;You don't always need JavaScript sliders.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="py"&gt;scroll-snap-type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="n"&gt;mandatory&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.item&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="py"&gt;scroll-snap-align&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Native snapping scroll behaviour.&lt;br&gt;
Smooth. Fast. Zero JS.&lt;/p&gt;


&lt;h2&gt;
  
  
  3️⃣ &lt;code&gt;isolation: isolate&lt;/code&gt; -- Fix Weird Z-Index Bugs
&lt;/h2&gt;

&lt;p&gt;Ever had random stacking issues?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.parent&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="py"&gt;isolation&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;isolate&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It creates a new stacking context.&lt;br&gt;
Suddenly... z-index starts behaving.&lt;/p&gt;


&lt;h2&gt;
  
  
  4️⃣ &lt;code&gt;accent-color&lt;/code&gt; -- Style Native Inputs Instantly
&lt;/h2&gt;

&lt;p&gt;Styling checkboxes used to be painful.&lt;/p&gt;

&lt;p&gt;Now:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="py"&gt;accent-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;hotpink&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Your checkbox, radio button, and progress bar now match your theme.&lt;br&gt;
No hacks. No SVG. No pain.&lt;/p&gt;




&lt;h2&gt;
  
  
  Is it done?
&lt;/h2&gt;

&lt;p&gt;Yes, now your website's CSS code will be shorter and easier to use. These tricks don't decrease the performance. They increase the performance of the website. Use it, and please follow me.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>CSS Tricks That Feel Illegal But Work</title>
      <dc:creator>Samanyu Pritish</dc:creator>
      <pubDate>Thu, 12 Feb 2026 14:26:05 +0000</pubDate>
      <link>https://dev.to/samanyu_pritish_732258606/css-tricks-that-feel-illegal-but-work-2ijn</link>
      <guid>https://dev.to/samanyu_pritish_732258606/css-tricks-that-feel-illegal-but-work-2ijn</guid>
      <description>&lt;p&gt;Sometimes CSS feels boring.&lt;/p&gt;

&lt;p&gt;And then you discover properties that feel like they &lt;em&gt;shouldn't&lt;/em&gt; work...&lt;br&gt;
But they do.&lt;/p&gt;

&lt;p&gt;Here are some CSS tricks that feel illegal --- but are completely valid&lt;br&gt;
and insanely useful.&lt;/p&gt;


&lt;h2&gt;
  
  
  1️⃣ &lt;code&gt;pointer-events: none&lt;/code&gt; -- Click Through Elements
&lt;/h2&gt;

&lt;p&gt;Ever wanted to put something on top of everything... but still allow&lt;br&gt;
clicks underneath?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.overlay&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;pointer-events&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;none&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now the element becomes visually present, but completely ignores mouse&lt;br&gt;
interaction.&lt;/p&gt;
&lt;h3&gt;
  
  
  🔥 Use Cases:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;  Floating gradients&lt;/li&gt;
&lt;li&gt;  Decorative layers&lt;/li&gt;
&lt;li&gt;  Custom cursor effects&lt;/li&gt;
&lt;li&gt;  Non-blocking overlays&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  2️⃣ &lt;code&gt;aspect-ratio&lt;/code&gt; -- Finally No More Padding Hacks
&lt;/h2&gt;

&lt;p&gt;Remember the old padding-bottom trick for maintaining aspect ratio?&lt;br&gt;
Yeah. Forget that.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.card&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="py"&gt;aspect-ratio&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;16&lt;/span&gt; &lt;span class="p"&gt;/&lt;/span&gt; &lt;span class="m"&gt;9&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No wrappers. No hacks. No math.&lt;/p&gt;

&lt;p&gt;It just works.&lt;/p&gt;




&lt;h2&gt;
  
  
  3️⃣ &lt;code&gt;clamp()&lt;/code&gt; -- Responsive Magic in One Line
&lt;/h2&gt;

&lt;p&gt;This one feels like cheating.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;font-size&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;clamp&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="err"&gt;1&lt;/span&gt;&lt;span class="nt"&gt;rem&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="err"&gt;2&lt;/span&gt;&lt;span class="nt"&gt;vw&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="err"&gt;2&lt;/span&gt;&lt;span class="nt"&gt;rem&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;  Minimum → 1rem\&lt;/li&gt;
&lt;li&gt;  Preferred → 2vw\&lt;/li&gt;
&lt;li&gt;  Maximum → 2rem&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your text now scales smoothly without media queries.&lt;/p&gt;




&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;CSS isn't limited.&lt;br&gt;
Most developers just don't explore it deeply enough.&lt;br&gt;
The cleanest solutions often require &lt;em&gt;less&lt;/em&gt; code --- not more.&lt;br&gt;
Now, You know the 60% of the tricks, 40% main tricks in the next part.&lt;br&gt;
Which CSS trick felt the most illegal to you?&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>css</category>
    </item>
    <item>
      <title>Your Website Doesn't need more animations.</title>
      <dc:creator>Samanyu Pritish</dc:creator>
      <pubDate>Sun, 08 Feb 2026 13:51:54 +0000</pubDate>
      <link>https://dev.to/samanyu_pritish_732258606/your-website-doesnt-need-more-animations-1f3d</link>
      <guid>https://dev.to/samanyu_pritish_732258606/your-website-doesnt-need-more-animations-1f3d</guid>
      <description>&lt;p&gt;Fades, slides, and micro-interactions are all examples of animations.&lt;br&gt;
However, the majority of websites feel slower rather than better.&lt;/p&gt;

&lt;p&gt;Animation isn't the problem.&lt;br&gt;
Animation is being used to cover up poor design.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Animations Are Not a Feature&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;UX is not automatically enhanced by animations.&lt;/p&gt;

&lt;p&gt;Frequently, they&lt;/p&gt;

&lt;p&gt;interaction delays&lt;/p&gt;

&lt;p&gt;users' distraction&lt;/p&gt;

&lt;p&gt;make simple tasks seem laborious&lt;/p&gt;

&lt;p&gt;Usability is already compromised if clicking seems slower.&lt;/p&gt;

&lt;p&gt;Motion Should Not Decorate, But Explain&lt;/p&gt;

&lt;p&gt;Change is explained by good animation:&lt;/p&gt;

&lt;p&gt;the source of the content&lt;/p&gt;

&lt;p&gt;what just took place&lt;/p&gt;

&lt;p&gt;Things to Pay Attention to&lt;/p&gt;

&lt;p&gt;If taking away an animation doesn't improve comprehension, it wasn't necessary.&lt;/p&gt;

&lt;p&gt;Performance Is UX&lt;/p&gt;

&lt;p&gt;Too many animations indicate:&lt;/p&gt;

&lt;p&gt;dropped frames.&lt;/p&gt;

&lt;p&gt;janky scrolling&lt;/p&gt;

&lt;p&gt;bad mobile experience.&lt;/p&gt;

&lt;p&gt;A slow, animated interface is always inferior to a quick, static one.&lt;/p&gt;

&lt;p&gt;Always be subtle.&lt;/p&gt;

&lt;p&gt;The fastest animations are the best.&lt;/p&gt;

&lt;p&gt;Silent&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Modification&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;where the content originates&lt;/p&gt;

&lt;p&gt;What just took place&lt;/p&gt;

&lt;p&gt;What to Pay Attention to&lt;/p&gt;

&lt;p&gt;An animation wasn't necessary if cutting it out doesn't alter comprehension.&lt;/p&gt;

&lt;p&gt;UX is performance.&lt;/p&gt;

&lt;p&gt;An excessive number of animations indicates:&lt;/p&gt;

&lt;p&gt;dropped frames&lt;/p&gt;

&lt;p&gt;Janky scrolling&lt;/p&gt;

&lt;p&gt;bad mobile experience&lt;/p&gt;

&lt;p&gt;A quick, static interface is always preferable to a slow, animated one.&lt;/p&gt;

&lt;p&gt;The subtlety always wins.&lt;/p&gt;

&lt;p&gt;The most effective animations are quick.&lt;/p&gt;

&lt;p&gt;silent&lt;/p&gt;

&lt;p&gt;dependable&lt;/p&gt;

&lt;p&gt;Good user interfaces don't flaunt themselves.&lt;br&gt;
It moves aside.&lt;/p&gt;

&lt;p&gt;When Animation Is Beneficial&lt;/p&gt;

&lt;p&gt;Make use of animation to:&lt;/p&gt;

&lt;p&gt;provide feedback&lt;/p&gt;

&lt;p&gt;direct attention&lt;/p&gt;

&lt;p&gt;elucidate transitions&lt;/p&gt;

&lt;p&gt;Never to hide a misunderstanding.&lt;/p&gt;

</description>
      <category>design</category>
      <category>performance</category>
      <category>ux</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Your Chrome needs these</title>
      <dc:creator>Samanyu Pritish</dc:creator>
      <pubDate>Sun, 08 Feb 2026 13:40:24 +0000</pubDate>
      <link>https://dev.to/samanyu_pritish_732258606/your-chrome-needs-these-3160</link>
      <guid>https://dev.to/samanyu_pritish_732258606/your-chrome-needs-these-3160</guid>
      <description>&lt;p&gt;Although browser extensions are meant to simplify your life, most users either install the incorrect ones or too many.&lt;/p&gt;

&lt;p&gt;Flashy features and trendy tools are not the focus of this list.&lt;br&gt;
It's about extensions that genuinely enhance your regular browsing experience, whether it's through time savings, friction reduction, or just making Chrome more enjoyable to use.&lt;/p&gt;

&lt;p&gt;I've separated these extensions into two distinct groups:&lt;/p&gt;

&lt;p&gt;Tools that address actual issues and become practically necessary once you use them are needed.&lt;br&gt;
Good-looking extensions are ones that not only function well but also improve the peace, order, and enjoyment of your workflow.&lt;/p&gt;

&lt;p&gt;Not much fanfare. No long lists.&lt;br&gt;
There are only five Chrome extensions that are truly worthy of being installed on your browser.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WhatFont&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Ever landed on a website and thought, “Which font is this?”&lt;br&gt;
WhatFont answers that question instantly.&lt;/p&gt;

&lt;p&gt;Just hover over any text, and it tells you the font family, weight, and style — no DevTools, no inspecting elements, no guesswork. It’s fast, simple, and does exactly one thing really well.&lt;/p&gt;

&lt;p&gt;If you care about UI, typography, or even basic visual consistency, this extension saves you unnecessary friction every single day.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GoFullPage&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Taking screenshots shouldn’t be complicated — and GoFullPage keeps it that way.&lt;/p&gt;

&lt;p&gt;With a single click, it captures an entire webpage from top to bottom. No manual scrolling, no stitching images together, no broken sections. What you see is exactly what you get.&lt;/p&gt;

&lt;p&gt;It’s perfect for documentation, design inspiration, audits, or sharing layouts with others. Once you use GoFullPage, normal screenshots start to feel incomplete.&lt;/p&gt;

&lt;p&gt;If you ever need to capture a webpage properly, this extension is a no-brainer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AdBlock&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Ads don’t just distract — they slow things down.&lt;/p&gt;

&lt;p&gt;AdBlock removes unnecessary clutter from the web, making pages load faster and layouts cleaner. Once ads are gone, you start noticing how much noise they were adding in the first place.&lt;/p&gt;

&lt;p&gt;This isn’t about convenience anymore—it’s about control.&lt;br&gt;
A cleaner web simply feels better to use.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reflect New Tab&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every new tab doesn’t need to scream for attention.&lt;/p&gt;

&lt;p&gt;Reflect replaces the default Chrome new tab with something calm and minimal. It gives you space to think, jot down notes, or simply pause before jumping to the next task.&lt;/p&gt;

&lt;p&gt;It’s not aggressive productivity.&lt;br&gt;
It’s quiet focus — and that’s exactly why it works.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dark Reader&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Bright white pages at night are a problem Dark Reader quietly solves.&lt;/p&gt;

&lt;p&gt;It applies a consistent dark theme across websites, with control over brightness, contrast, and colours. Unlike forced dark modes, it actually respects readability.&lt;/p&gt;

&lt;p&gt;This extension isn’t just about looks—it’s about comfort.&lt;br&gt;
Once your eyes get used to it, going back feels painful.&lt;/p&gt;

</description>
      <category>browser</category>
    </item>
  </channel>
</rss>
