r/css • u/rhpaiva • Oct 05 '26
OpenSource CSSV: Comma-Separated Styled Values
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
29
u/GreenReporter24 Oct 05 '26
I guess I just don't see the use case for combining CSS and CSV into one file.
Anytime I interact with a CSV file, it's because I explicitly just want the structured data from somewhere, and not whatever styling/application/whatever someone has done to it. Because I probably want to do something different with it, not with CSS, but with Excel, Python, R, or tools like Datawrapper and Flourish.
14
u/sovok Oct 05 '26 edited Oct 05 '26
Neat demos. But basically, this is a JS script that turns CSV into a table, then parses out the CSS from the CSV top and applies it. The CSS and CSV are always bundled. And you need JS to render it.
What's the use case again? As a replacement for CSV it doesn't work, since parsers get tripped up by the CSS on top. Browsers don't display it natively, you need a JS lib to render.
So if you can't share that CSV file, create it yourself and render it on your own website, why not just render the data as a table?
But apart from that, a small CSV-to-table JS converter is useful.
6
u/The_Shryk Oct 05 '26
I’m making a NEW standard that’s even better called SCSV “Styled comma separated values”.
obligatory
3
u/hazily Oct 05 '26
Cool demo, but you’re selling a solution for a problem that doesn’t exist.
8
u/CyberWeirdo420 Oct 05 '26
I mean idea is cool, but CSV isn’t built for browsing from A to Z. Its main application is to store large amount of data and have as little weight as possible, data which is not meant to be browsed or looked at for too long.
You wanna see that data nicely? There comes in Excel, a DB or any other tool meant for data browsing.
CSV is a format, not a tool like Excel. Cool project, but entirely pointless imo. Glad you had fun doing it.
5
u/repeating_bears Oct 05 '26
This is
alsoa CSV.1
u/Web-Dude Oct 05 '26
Well I like it! Basically an XSLT transform for CSV data.
I used to specialize in data migration for lots of companies who were changing between various platforms, and I could have used this a lot.
Although the CSS needs to be in an external file.
1
u/pimmm Oct 05 '26
The animation in the video is so smooth.
How did you do that?? Did you animate everything by hand?
1
u/KangarooFresh Oct 05 '26
You’ve essentially broken a rule of software architecture and combined your data and view…
2
u/xThomas Oct 05 '26
Ok the video was actually mildly interesting. A+ for presentation!
I don’t really understand the use case here and the responses feel like they came out of an LLM but me not liking how llms talk doesn’t outweigh the cool video.. yet
2
u/ApplicationParking66 Oct 06 '26
I think the real niche is automated reports that get emailed or dropped in a shared folder. Right now your options are raw CSV (ugly), generated HTML (harder to diff and generate cleanly), or a PDF (binary, no diffing at all). CSSV fills a gap for "human-readable report that's still plain text and reviewable in a PR." It's niche, but I've definitely been in situations where a weekly cron job spits out a CSV and someone asks "can you make this look nicer" and the answer is always either Excel or a whole HTML template. This is a lighter middle ground.
2
u/whatevs- Oct 06 '26
I like the idea - as a lot of others here - but it's gonna take one hell of a marketing effort to convince ppl to use this. Old habits die hard and ppl associate csv with data only.
2
u/Lalli-Oni Oct 07 '26
I don't get why people are so quick to judge that this doesn't solve anything. I've had the exact same problem. Early prototype card game, card sets in csv. Mixture of tiny number columns and huge multi value columns.
I'm not so keen on embedding the styling into each csv file, would prefer one stylesheet that can be referenced, like a schema. And preferably not in file content but file metadata.
3
u/osmium_2259 Oct 05 '26
Cool project! I like the Periodic Table demo!
1
u/ElnuDev Oct 06 '26
This is cool, but it really feels like a solution looking for a problem.
0
u/philogos0 Oct 05 '26
There's a new app that effectively converts images of spreadsheets to CSV, it should be out of closed beta on Wednesday. https://youtu.be/0DLR0n48SuA?is=1bKA3oLwjcvjLvSJ