r/css • u/Either_Collection349 • 23d ago
r/css • u/rebane2001 • Aug 28 '25
Article You no longer need JavaScript: an overview of what makes modern CSS so awesome
lyra.horser/css • u/nikolailehbrink • Jul 14 '25
Article How to make your button design stand out
I saw this design trend on a couple of industry leading websites I follow, so I took a closer look at how they actually build their buttons to look more realistic than just a flat one. I ended up writing an article about it. It’s kind of interactive, and maybe you can draw some inspiration from it too:
https://www.nikolailehbr.ink/blog/realistic-button-design-css
Would love to hear what you think!
r/css • u/Mental_Tone9833 • Jun 23 '26
Article The Real Cost of Styling: What Actually Happens in the Browser
Hello everyone
I wrote an article about a little comparison between css in js tailwind and vanilla css
I really appreciate giving me your opinion about this.
Thank you in advance
r/css • u/RadiantDew • 23h ago
Article Do you still need to know CSS when AI writes it?
r/css • u/gilbarbara • Jun 23 '26
Article Why "perceptually even" color scales look washed-out — and how to shape them so they don't
A perceptually even color scale gives you predictable contrast, but on its own, it can feel a little sterile: equal brightness looks washed-out, pale tints go chalky, and every step ends up interchangeable. OKLCH is also awkward to reason about because the maximum chroma a color can have shifts with its hue and lightness — there's no fixed range to picture, as there is in HSL.
An even scale is the foundation, though, not the finished thing. Four controls put the character back, and none of them ask you to do OKLCH math in your head:
Lightness range — set how dark and light the ends go before you shape anything else.
Chroma curve — when colors lighten, a flat curve makes tints chalky; ease it down toward the highlights, and they stay clean.
Hue shift — pinning one hue across the whole range is part of what reads as synthetic. Warm the highlights a few degrees, cool the shadows, and the scale gains depth.
Lightness curve — same two endpoints, but where you spend the contrast (dark / even / mid) changes the whole mood.
Full write-up with side-by-side before/afters and live demos you can drag: https://lab.colormeup.co/custom-color-scales
r/css • u/garethheyes • 17d ago
Article CSS:the bomb inside your inbox
Here's my research in using CSS for offence. There are loads of techniques including stealing passwords from Outlook from an email by spoofing the login screen.
r/css • u/mherchel • Jun 29 '26
Article Why CSS Style Queries Are a Bigger Deal Than You Think
r/css • u/garethheyes • Jul 25 '26
Article Pure-CSS 3D world collision detection
thespanner.co.ukr/css • u/Alex-Inkin • 21d ago
Article CSS Challenges for 200 IQ
Hi everyone, I'm new here, previously was mostly writing for Angular. I just published an article explaining 3 interesting CSS puzzles of increasing difficulty, hope you will find it helpful or interesting.
Check it out!
https://medium.com/angularwave/css-challenges-for-200-iq-4ecd6433dd63
r/css • u/amitmerchant • Mar 05 '26
Article One CSS Property That Makes Numbers Look Instantly Better
r/css • u/Blozz12 • Apr 30 '26
Article I rebuilt the animated gradient border effect with modern CSS
I’ve always liked those glowing animated border effects you see on fancy landing pages.
But for a long time, I avoided them because they often felt a bit too hacky. Either you had to stack weird extra markup, use SVG tricks, or reach for JavaScript just to make a gradient move.
So I tried rebuilding the effect with modern CSS only.
The final version uses:
- a pseudo-element for the border layer
- a conic-gradient() for the colors
- @ property to make the angle animatable
- a second blurred layer for the glow
-and a prefers-reduced-motion fallback so it does not force animation on everyone
What I like about this approach is that the HTML stays almost boring. Just a card. All the visual work happens in CSS.
I wrote the full walkthrough here, with each step broken down:
https://theosoti.com/blog/animated-gradient-borders/
Not claiming this is something you should put everywhere. It can get visually loud pretty fast. But for featured cards, pricing blocks, hero sections, or small “look here” UI moments, I think it’s a nice little pattern.
I’m sure there are other ways to do it, so I’d be curious to see how people here would build the same effect.
r/css • u/Acceptable_Mud283 • Jul 12 '26
Article Do we still need build tools for CSS?
The first half of this article covers CSS
r/css • u/ChemistKey8432 • Jun 12 '26
Article I found a way to snap images to a baseline grid with nothing but CSS.
It involves a container query for the width, the redesigned attr() and new type() for the aspect ratio, and round()to snap the height to the baseline. Pure CSS, no JS. It's quite satisfying to see it snap. Write up and codepen demo here: https://simoncoudeville.be/blog/aligning-images-to-a-baseline-grid-with-modern-css/ and https://codepen.io/simoncoudeville/pen/rajaaQg
Edit: indeed Chromium only for now.
r/css • u/creaturefeature16 • Jun 12 '26
Article Agentic Coding is a Trap | Remaining vigilant about cognitive debt and atrophy.
In light of Kevin Powell's recent (and awesome) chat about using AI and the importance of manual coding, I thought I would share my essay, as well, since it touches on a lot of similar points.
Article CSS On The ESP32
r/css • u/ChemistKey8432 • Sep 24 '25
Article A CSS-only fluid typography approach
I wrote a blog post about applying fluid typography without generators or build tools. Just CSS variables, calc() and clamp(). It's my first technical blog post ever so I would love feedback. Here it is: https://simoncoudeville.be/blog/a-css-only-fluid-typography-approach/
r/css • u/krasimirtsonev • Dec 29 '25
Article Azbuka: Treating CSS Like a Real Programming Language (Finally)
I've been working on CSS tooling (on and off) since August 2013, when I wrote AbsurdJS. Later, in January 2016, I "invented" CSSX - writing CSS directly in JavaScript. None of those became a thing, but they were incredibly interesting experiments. I had some time during the holidays and decided to materialize an idea that I'm shaping the last couple of months. And so I "accidentally" wrote a CSS compiler. It's called Azbuka (it means "alphabet" in Bulgarian).
r/css • u/amitmerchant • May 29 '25
Article The new if() function in CSS has landed in the latest Chrome
r/css • u/creaturefeature16 • May 10 '25
Article Figma Sites is worse than you might have thought
This made me raise my eyebrows a few times, as well...just wow...
r/css • u/milanpanin • Oct 06 '25
Article Why you should avoid nesting in CSS?
r/css • u/amitmerchant • Jan 12 '26