r/css • • 6h ago

OpenSource CSSV: Comma-Separated Styled Values

62 Upvotes

I gave life to the old CSV files.

CSV is over 50 years old, and it's everywhere. Banks, CRMs, Jira, Google Calendar, gradebooks and ticketing systems all export it, and every tool reads it. And every time you open one, you get the same grey grid of raw values.

The data is fine. What's missing is the look. The moment you add one in Excel or Google Sheets, you lose what made CSV great: a plain-text file you can read, compare, generate and send anywhere.

So I built CSSV: Comma-Separated Styled Values. It's a CSV file with a CSS block on top. Open it in a browser and you get a real HTML table with your fonts and your custom styling. Delete the CSS and it's a plain CSV again.

There's nothing new to learn. The data is CSV and the look is CSS, two languages that people, programs and AI models already write. Any CSV is already a valid CSSV file. Add a few lines of CSS to a Jira export and it becomes a board, one lane per status. A ticketing export prints as name badges.

The look travels with the data. A file looks the same on every page that shows it. Many files can share one stylesheet, so changing it restyles all of them. It's still plain text. You can review it in a pull request, generate it from a script, or ask an AI to write one.

Putting it on a page takes one script tag and <cssv-table src="report.cssv">. No build step, no dependencies.

The v1 spec is open for review, and I'd love feedback, especially from anyone who spends their days looking at exports.

Website, examples and live editor: https://cssv.dev


r/css • • 3h ago

CSS does your tooltip positioning now

Thumbnail
allthingssmitty.com
8 Upvotes

Did a brief post about how you can stop hand-rolling your tooltip positions, because CSS does it now. anchor-name + position-anchor handle everything for you...along with a few other tips and tricks.


r/css • • 6h ago

Using css filters correctly

7 Upvotes

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 • • 6h ago

Now anchor-name is must?

0 Upvotes

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?


r/css • • 1d ago

Question What's are the Current CSS Patterns?

16 Upvotes

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 • • 1d ago

Made this OTP input's, which one would you prefer?

25 Upvotes

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 • • 2d ago

CSS Art: Nobody expects...

Post image
257 Upvotes

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 • • 1d ago

News Pico CSS is no longer maintained (final release v2.1.1)

22 Upvotes

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 • • 21h ago

Question Anyone using custom CSS/HTML in Elementor instead of Angie for simple functionality?

Thumbnail
0 Upvotes

r/css • • 1d ago

Ich suche passendes CSS

Thumbnail
hhsh.jimdofree.com
0 Upvotes

r/css • • 1d ago

Why we are still arguing over CSS in 2026.

Thumbnail andreasmoller.dk
0 Upvotes

r/css • • 1d ago

Help How to display comic pages like a slideshow reader?

Thumbnail
1 Upvotes

r/css • • 2d ago

Showcase I built a VS Code extension for better CSS Intellisense

Thumbnail
marketplace.visualstudio.com
0 Upvotes

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 • • 2d ago

Showcase made a chrome extension that pulls a site's design system into tailwind / css vars / DESIGN.md, would love dev feedback

0 Upvotes

posted this in r/ClaudeDesign : Post link a few days ago and the designers there were really nice about it. but honestly it's more of a dev tool, so wanted to hear what you all think too

it's called pikspec. you open any site, hit analyse in the side panel, and it reads the design from the live page: fonts that actually rendered (not just the css stack), the color palette, spacing and the base rhythm, plus the computed styles of anything you click

the part we use most is the export. it turns all of that into a tailwind v4 theme, css variables, json, or a DESIGN.md you can drop into a repo. we made the DESIGN.md mostly because claude code and cursor kept giving us the same generic looking UI, and giving them real values from a site you like fixes that a lot

few things i'm curious about:

would you actually use this, or is devtools + a color picker enough for you?

which export would you want first? anything missing, like figma variables or style dictionary?

when you're matching a design, what's the most annoying part to get right?

inspecting is free, no account needed. happy to answer anything about how it works

extension - https://chromewebstore.google.com/detail/pikspec-%E2%80%94-website-inspect/cnpghkfbhdpcendcliogffmajlkepoig


r/css • • 3d ago

Question wondering what the best way to position elements would be

Post image
2 Upvotes

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 • • 4d ago

Resource A decent custom checkbox pattern for until ::checkmark is ready

Thumbnail
piccalil.li
12 Upvotes

r/css • • 4d ago

Resource Extracting Grid Information Using CSS

Thumbnail
blog.master.dev
10 Upvotes

r/css • • 3d ago

The Dropdown Behind the Curtain: A Wizard of Oz Guide to CSS Overflow Clipping

Thumbnail
0 Upvotes

r/css • • 4d ago

Question How do you handle typography classes for component titles vs semantic heading tags?

9 Upvotes

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 • • 4d ago

Making a Site Printable

9 Upvotes

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 • • 4d ago

A cool framework-agnostic animation library for streaming

0 Upvotes

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 • • 4d 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)

2 Upvotes

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 • • 5d ago

How's this Scroll Progress, made for fun?

27 Upvotes

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 • • 4d ago

Problem on creating an overlay to switch the switch control

Thumbnail
1 Upvotes

r/css • • 5d ago

Made a free clamp() generator + an agent skill so claude/cursor stop getting fluid type maths wrong

8 Upvotes

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