feat: add llms.txt endpoint for LLM-optimized documentation by quantizor · Pull Request #2388 · tailwindlabs/tailwindcss.com
Add /llms.txt endpoint that serves a concatenated, text-only version of all Tailwind CSS documentation pages optimized for Large Language Model consumption.
Extract text from MDX files, removing J…
GitHub · github.com [1]
Damn this one is getting some reach, I’ve seen it from Simon Willison [2] and Justin Searls [3] and t3.gg [4]. I feel for Adam, He has built a fantastic product that the world is running with, something we all needed. Something that everyone laughs at turns their nose up “ppft I don’t need that” the first time they see it, but once they try people get it, and a lot of them like it and keep it. But its something that no one really wants to pay for, no matter how big of products get built on it. As we see more and more features coming to css, its not stopping, the work will always be there. I really hope to see something happen to tailwind to keep it afloat. massive growth and revenue down 80% does not help.
References:
[1]: https://github.com/tailwindlabs/tailwindcss.com/pull/2388#issuecomment-3717222957
[2]: https://simonwillison.net/20...
Posts tagged: css
All posts with the tag "css"
21 posts
latest post 2026-01-08
Publishing rhythm
-
css if() just landed, I’m struggling to understand what I an do with this that I can’t do with something as old as classes. I can get it if I don’t have control over html [1] creation or js to add classes. The example that Una shows includes data that could directly be a classname with a set of styles in css rather than this crazy css variable unpacking out of a data attribute and an if statement.
References:
[1]: /html/
-
How to make an entire clickable without presenting the entire content of the card as the link title. These videos are great, I’ve ran into these types of problems so many times, and definitely did not know about things like isolate to keep the z-index scoped to one element.
- isolate - scope z-index inside this element so that it does not leak out.
- [.relative [.absolute, inset-0, z-10]] - the inset zero is a modern shorthand for zeroing all sides, top-0, right-0, bottom-0, left-0.
Animate to height: auto; (and other intrinsic sizing keywords) in CSS | CSS and UI | Chrome for Developers
Animate to and from intrinsic sizing keywords with `interpolate-size` and `calc-size()`
Chrome for Developers · developer.chrome.com [1]
Css is getting so good, new things like interpolate-size are making things that use to require some deep expertise and hacks intuitive and easy.
/* Opt-in the whole page to interpolate sizes to/from keywords */
:root {
interpolate-size: allow-keywords; /* 👈 */
}
References:
[1]: https://developer.chrome.com/docs/css-ui/animate-to-height-auto/
-
Reminder to tune in later, can’t watch now, but saw a link on Dave’s blog.
[1]
References:
[1]: https://dropper.waylonwalker.com/api/file/ea6d4a9f-9abe-4853-9b5b-97335130d221.webp
Wes Bos (@wesbos) on X
CSS Anchors: flip a tooltip to the bottom when it goes offscreen
X (formerly Twitter) · x.com [1]
These css anchors are crazy that you can do this with html [2] and not a bunch of js, probably requiring a library or framework.
[3]
References:
[1]: https://x.com/wesbos/status/1856724739336859713
[2]: /html/
[3]: https://x.com/i/status/1856724739336859713
Wes Bos (@wesbos) on X
Are you using position: absolute; to overlap elements?
It's almost always better to Use CSS Grid instead!
X (formerly Twitter) · x.com [1]
This is a pretty incredible use of css grid to overlay items overtop of each other without needing to resort to position: absolute and the side effects that it brings.
.wrap {
display: grid;
& > * {
grid-row: 1;
grid-column: 1;
}
}
References:
[1]: https://x.com/wesbos/status/1834242925401694490
SVG backgrounds, icons, and other website graphics
👉 Copy-and-paste backgrounds, patterns, icons, and other website graphics directly into projects. All customizable, tiny in file size, and licensed for multi-use.
SVG Backgrounds · svgbackgrounds.com [1]
svgbackgrounds is a really awesome resource for svg things recently featured on https://shoptalkshow.com/618/
References:
[1]: https://www.svgbackgrounds.com/
text-decoration-line - Typography
Utilities for controlling the decoration of text.
tailwindcss.com [1]
Tailwind calls strikethrough line-through. This caught me off guard and took me a minute to find.
Control how text is decorated with the underline, no-underline, and line-through utilities.
References:
[1]: https://tailwindcss.com/docs/text-decoration
Adam Wathan (@adamwathan) on X
Hear me out.
X (formerly Twitter) · twitter.com [1]
I’m going to give this trick a shot on my sites, and see how I like it.
* {
min-width: 0
}
Down in the comments @adamwathan [2] goes on to say.
Basically every layout overflow bug ever boils down to some flex or grid child needing min-width: 0 😄
Oh and @ryanflorence [3] also says in the comments.
I … do this.
References:
[1]: https://twitter.com/adamwathan/status/1734696245015494711
[2]: https://twitter.com/adamwathan/
[3]: https://twitter.com/ryanflorence
External Link
stackoverflow.com [1]
Get those print colors exact
body{
-webkit-print-color-adjust:exact !important;
print-color-adjust:exact !important;
}
References:
[1]: https://stackoverflow.com/questions/3893986/css-media-print-issues-with-background-color#answer-14784655
page-break-after CSS property - CSS | MDN
The page-break-after CSS property adjusts page breaks after the current element.
MDN Web Docs · developer.mozilla.org [1]
I’m working on something that might go to print, so I want the page breaks to happen somewhat in my control as the content author. As I do my writing I break my content up in to many short sections using h2, sometimes an h3. These are generally short sections that go together, should stay together, and typically are not too lengthy to cause a large white space in print.
I found a way in css to only allow page breaks to happen on h2 and h3, and it turned out perfect, suck it WSIWIG editors
* {
page-break-before: avoid;
}
h2,
h3 {
page-break-before: auto;
}
References:
[1]: https://developer.mozilla.org/en-US/docs/Web/CSS/page-break-after
-
Tailwind comes with space that I have never heard of that is made to give margin and padding together in one class. Adam dropped it here in the Tailwind Connect conference.
overflow - Layout
Utilities for controlling how an element handles content that is too large for the container.
tailwindcss.com [1]
Controlling overflow with tailwindcss
Examples # [2]
<div class="overflow-visible ..."></div>
<div class="overflow-hidden ..."></div>
References:
[1]: https://tailwindcss.com/docs/overflow
[2]: #examples
[1]
Default scrollbars on a dark theme website are just the ugliest thing. This page covers all the pseudo selectors needed to style the scrollbar.
/* width */
::-webkit-scrollbar {
width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
background: #f1f1f1;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #888;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
}
References:
[1]: /static/https://www.w3schools.com/howto/howto_css_custom_scrollbar.asp
Change Autocomplete Styles in WebKit Browsers | CSS-Tricks
We got a nice tip from Lydia Dugger via email with a method for changing the styles that WebKit browsers apply to form fields that have been autocompleted.
CSS-Tricks · css-tricks.com [1]
All the hover, select, autofil, focus combinations have left me confused on how to consistently get my form elements styled in dark mode
This snippet from CSS tricks has fixed all the different states for me to give me full control.
/* Change Autocomplete styles in Chrome*/
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
border: 1px solid green;
-webkit-text-fill-color: green;
-webkit-box-shadow: 0 0 0px 1000px #000 inset;
transition: background-color 5000s ease-in-out 0s;
}
References:
[1]: https://css-tricks.com/snippets/css/change-autocomplete-styles-webkit-browsers/
[1]
Tailwind css component library. There are many examples with copy and pastabily with the tailwind classes already setup.
References:
[1]: /static/https://preline.co/docs/index.html
Tailwind CSS Cheat Sheet
Cheat sheet to learn Tailwind CSS quickly. Browse and search all Tailwind utility classes or CSS properties on one page.
nerdcave.com [1]
A nice searchable cheatsheet for tailwindcss classes.
References:
[1]: https://nerdcave.com/tailwind-cheat-sheet
-
Nice intro into tailwind, I definitely started grasping some of the concepts after watching Brad.
A nice codepen reference for dark forms. I am using it for my thoughts chrome extension.
[1]@chriscoyier [1]) on X — I was unaware of `text-wrap: pretty;`
I knew about the (new/cool) text-wrap: balance; — but sometimes that's a bit… too much. I feel like it's nice on headers but not smaller type.
Here's what I mean." loading=“lazy”>
Chris Coyier (@chriscoyier [2]) on X
I was unaware of text-wrap: pretty;
I knew about the (new/cool) text-wrap: balance; — but sometimes that's a bit… too much. I feel like it's nice on headers but not smaller type.
Here's w…
X (formerly Twitter) · twitter.com
Next time I’m working with large headers on small screens I need to try this. I always truggle to get them to look good for most text and overflow ridiculously long words correctly or at all.
text-wrap: pretty;
text-wrap: balance
References:
[1]: https://twitter.com/chriscoyier/status/1681407724993798144
[2]: https://chriscoyier.net