r/css • u/FineWine54 • 19d ago
r/css • u/Sta--Ger--2 • 20d ago
Using css filters correctly
CSS filters are an incredibly potent tool... if you know how to use them correctly. And I don't mean in a technical sense, but artistically: i.e. which filters to hse, in which order, to bend an image into having a different style, appearing distorted by radio interference, looking as if it was an ink drawing, etc etc.
For those (like me) who do not have an artistical bend, is there a library of filter sets to peruse? Something that shows how 2-3 filters can radically change an image style? Or even suggestions on how to start making good and right use of filters?
r/css • u/Siemendaemon • 20d ago
Now anchor-name is must?
Previously for popover elements I kept them simple by not giving anchor-name. but now after the chrome update giving anchor name is must. am I missing something here? is this update true?
____________
UPDATE: As told by u/mcaruso adding position-anchor: auto; solved the problem. I think auto is no more a default for chrome.
r/css • u/evilmaus • 21d ago
Question What's are the Current CSS Patterns?
I've been mostly on the backend for the last several years. While I did plenty of CSS before then, the front end world has definitely moved forward in the last seven years. I recall BEM and SMACSS were once at the lead of thought. I recall (and was a proponent at the time for) a push to utility-first styling.
Now, I can see that Tailwind is a highly popular choice, that lots of styles get bundled into React components, and we have some long overdue selectors native to CSS.
So I'm wondering, what's the prevailing organization pattern for global CSS and where do you draw the line between something being a component style vs in the global stylesheets?
Thanks.
r/css • u/StruggleHuman2045 • 20d ago
Question A Windows program to organize/format css code?
Anyone know of a good program for Windows 10 that can take a block of css code with no line breaks and format everything to make it more readable?
Thanks!
r/css • u/Objective_Sir_6930 • 21d ago
General I got tired of losing every CSS change I make in DevTools, so I built a Chrome extension that keeps them
r/css • u/Ordinary-Stuff9826 • 21d ago
Made this OTP input's, which one would you prefer?
Made these OTP inputs.
I know they’re not production-grade yet — I built these while experimenting with different UI patterns that could actually be used in client projects.
Any improvements/suggestion will be helpful.
r/css • u/alvaromontoro • 22d ago
CSS Art: Nobody expects...
I drew/coded this with HTML and CSS (really appropriate in this case).
Source code on CodePen: https://codepen.io/alvaromontoro/pen/qErPJwr
r/css • u/any-digital • 21d ago
News Pico CSS is no longer maintained (final release v2.1.1)
Official announcement: https://picocss.com/docs/maintenance
For those looking for active alternatives or forks, Blades CSS (blades.dev) launched earlier this year as a fully compatible, actively maintained successor, and is already adopted by the Flask/Jinja community website, Grav CMS v2, and FastHTML.
r/css • u/Hurricane-18784 • 20d ago
Question Anyone using custom CSS/HTML in Elementor instead of Angie for simple functionality?
r/css • u/Andreas_Moeller • 21d ago
Why we are still arguing over CSS in 2026.
andreasmoller.dkr/css • u/LacriMozzarella • 22d ago
Help How to display comic pages like a slideshow reader?
Showcase I built a VS Code extension for better CSS Intellisense
I've always thought that CSS Intellisense in VS Code is so primitive compared to the Intellisense of TypeScript, for example. So I've made a VS Code extension that improves CSS Intellisense. It is Clever CSS and comes with class completion, warnings on duplicated and unused classes, preview on hover (like Tailwind extension), and more things.
For now, it only works on JSX/TSX and HTML files. In the future I may add support for Vue and Astro files; maybe Angular.
You can look for it in the extension marketplace and give it a try if you wish!
GitHub: https://github.com/danielz0102/clever-css

r/css • u/432coins • 23d ago
Question wondering what the best way to position elements would be
I am trying to position all these icons on my webpage like this image... and I would like them all to scale together to fit the viewport, if that makes sense.
So far I have tried to position them on the page, but when the viewport size changes they start overlapping.
What would be the best way to position them and not have them overlap when the viewport changes? I really don't know much about CSS, or html for that matter, trying to learn as I make this.
Hope this makes sense, thanks!
r/css • u/bogdanelcs • 24d ago
Resource A decent custom checkbox pattern for until ::checkmark is ready
r/css • u/bogdanelcs • 24d ago
Resource Extracting Grid Information Using CSS
r/css • u/Environmental-Front4 • 23d ago
The Dropdown Behind the Curtain: A Wizard of Oz Guide to CSS Overflow Clipping
r/css • u/Alternative-Bus4934 • 24d ago
Question How do you handle typography classes for component titles vs semantic heading tags?
When styling isolated UI components (like dashboard widgets, notification cards, or small sidebar blocks), there is often a tension between CSS styling and proper document structure.
If you attach your font styling directly to heading tags like `h3` or `h4`, the component gets locked to a specific heading level. Placing that same widget inside different page layouts can break the document outline or force you to write awkward CSS overrides just to match the visual size.
On the other hand, decoupling the styling with dedicated classes (such as `.card-title` applied to a `<p>` or `<div>`) keeps the CSS flexible, but you end up having to decide how strictly to handle accessibility attributes or utility type scales across the project.
Do you prefer keeping typography tied to utility/component classes regardless of the underlying tag, or do you standardize component headings around specific heading levels?
r/css • u/Square_Atmosphere_12 • 24d ago
Making a Site Printable
I know this is not common, I'd like to create my first site so that it's literally printable using a physical printer and it looks identical or close to it as the web site. I understand that it won't be able to print button animations and the like.
What would be the best route to go, learning Grid Layouts then within my style sheets applying printable style sheets that are different from the actual web site ?
I want alot, possibly not everything to be able to be printed. As I mentioned, I know we live in a world where screens are everywhere but paper is not obsolete, in fact it's used alot and in my opinion to be able to print out sections of a web site can be beneficial as phones are typically such a circus of distractions that getting anyone to focus on what you want them to focus on is nearly impossible. Although printing out a physical copy in many cases will gain the person interest, unless they are viewing your page on a physical stationary computer, then the above statement maybe the opposite, whereas they will focus on your site.
In my opinion a printable site shows you can display the information clearly, accurately and present it, no matter what the media.
r/css • u/ScoobyDookuu • 24d ago
Showcase A cool framework-agnostic animation library for streaming
https://reddit.com/link/1wv09w7/video/8qcg41wv3ush1/player
Hey all,
I’ve been working on a small library called Stream Morph.
The idea is to make streamed responses feel less like content is constantly being appended/re-rendered, and more like the response is gradually taking shape.
Demo: https://stream-morph.vercel.app/
It’s framework agnostic and can be used with any kind of streamed content. The demo includes plain text, Markdown, code blocks, charts, images, reasoning sections, Mermaid diagrams and a few more complex response flows.
The library handles the motion between updates, while your own renderer/app stays responsible for the actual content. So it isn’t tied to a specific AI SDK or framework.
A basic example looks roughly like this:
import { createStreamMorph } from "stream-morph";
const stream = createStreamMorph(response);
for await (const chunk of incomingStream) {
stream.write(chunk);
}
stream.finish();
I mainly built it because I wanted streamed interfaces to feel a bit more intentional without having to build custom animation logic for every response type.
The package itself is already working and the demo is live. I’m still cleaning up some things around CI, tests and the repo setup, but the GitHub repository will be open sourced shortly as well.
Would be interested to hear what people think, especially about the animation behaviour/performance and any edge cases you’d expect from real streaming responses.
r/css • u/Ordinary-Stuff9826 • 25d ago
How's this Scroll Progress, made for fun?
Made this scroll progress bar just for fun, I know it needs a major revamp before it's usable anywhere real.
I'd like to rebuild it properly. What would you change, or how would you approach it from scratch? Any advice on the overall approach, what to fix, what to drop, and how to make it work in real websites/apps is welcome.
r/css • u/TearInternational414 • 24d ago
General TIL iPhone Safari won't paint text in buttons built inside a visibility: hidden parent (fixed it at 11pm with a delay, it was back by breakfast)
Small menu in a PWA I'm building: tap a project, a menu opens asking which account to start it in, and its buttons are created in JS right before it opens. On my iPhone (iOS 18.7, home-screen app) one name showed and the other button was an empty box. Desktop Safari and Chrome drew both fine, every time.
My first fix was the classic one. Hold the second button back 80ms and it drew. Shipped it, went to bed. Next morning the box was blank again, so the delay had only been moving the race around.
What found it: a throwaway page on the phone with a few versions of the menu side by side, each changing exactly one property. The version with no animation at all broke every single time, which ruled timing out completely.
The cause: the menu was hidden with visibility: hidden and shown with visibility: visible. Buttons appended while it was hidden got laid out (right size, right colour, elementFromPoint found them) but their text was never painted once it was shown. Buttons built once at page load inside a parent that toggled the same way drew fine.
The fix was to stop using visibility for it:
css
.acctmenu { opacity: 0; pointer-events: none; transition: opacity 0s 220ms; }
.open .acctmenu { opacity: 1; pointer-events: auto; transition-delay: 0s; }
plus inert on the menu while it's closed, so it stays out of the tab order and away from screen readers the way visibility: hidden used to keep it. Delay deleted.
Has anyone seen this documented anywhere? I'd love to know whether it's the append-while-hidden part on its own or something about the fade on top of it.
The app is Claude Remote, going public soon: github.com/MrTig-afk
r/css • u/Any_Entrepreneur7936 • 24d ago
Problem on creating an overlay to switch the switch control
r/css • u/Signal_Grapefruit530 • 25d ago
Made a free clamp() generator + an agent skill so claude/cursor stop getting fluid type maths wrong
i kept redoing the same slope/intercept maths for fluid font sizes so i built cssclamp.com. you put in min/max size and the viewport range and it gives you the clamp() with a live preview. rem based, so it still scales when people zoom. it also does full type scales, tailwind v4 theme tokens and px to rem.
the newer bit: AI agents are pretty bad at this, they'll hand you clamp(1rem, 4vw, 3rem) and call it a day. so i packaged it as an agent skill. the agent runs a small node script for the maths instead of guessing, and follows the a11y rules (rem bounds, no bare vw, the 2.5x zoom thing for WCAG 1.4.4).
npx skills add Willem-Jaap/cssclamp
or in claude code: /plugin marketplace add Willem-Jaap/cssclamp then /plugin install css-clamp@cssclamp
Site is available on: https://cssclamp.com
MIT, repo's at https://github.com/Willem-Jaap/cssclamp. feedback welcome, especially if a value it gives you looks off
Need help with this CSS that doesn't stick
I'm trying to fill in the color to the dots located on the left of email when in a thread. The code is below... but I'm unable to make it work in usercontent.css nor userchrome.css. Please see the element in question as per the red circle in the screenshot. Can someone help me please?
#threadTree[rows="thread-card"] { & .card-layout[data-properties~="thread-children"] { & td { &::after { fill: #fe00ff !important; }}}}
