Composing the Uncomposable with CSS Variables
Adam Wathan's Blog
by
3y ago
Many CSS properties are shorthands for a set of other properties, for example the margin property is a shorthand for setting margin-top, margin-right, margin-bottom, and margin-left all at once. Because the margin property decomposes into those four separate properties, it translates well to a utility class system like Tailwind CSS, where we can create separate utility classes for each property, then compose them arbitrarily in HTML: <style> .mt-2 { margin-top: 0.5rem; } /* ... */ .mr-6 { margin-right: 1.5rem; } /* ... */ .mb-8 { margin-bottom: 2rem ..read more
Visit website
Tailwind CSS: From Side-Project Byproduct to Multi-Million Dollar Business
Adam Wathan's Blog
by
3y ago
This was originally posted as a thread on Twitter, but I thought I'd republish it here to give it a proper home. So about a month or so ago, Tailwind cracked 10 million total installs, which given its humble beginnings, completely blows my mind. We're also about to cross $2 million in revenue from Tailwind UI, our first commercial Tailwind CSS product which was released about 5 months ago — a bit under two years after the very first Tailwind CSS release. Here’s the story from the beginning, while it’s still fresh enough to remember… Reddit meets Pinterest meets Twitter Way back in 2015, I tol ..read more
Visit website
Persistent Layout Patterns in Next.js
Adam Wathan's Blog
by
3y ago
When single-page applications were really getting popular in the early Backbone/Ember/Angular days, one of the biggest selling points was that you could navigate around your site without re-rendering the entire document from scratch every time the URL changed. This meant you could do things like preserve the scroll position in part of the UI that didn't change (like a sidebar for example) without the complexity of measuring it and trying to restore it on the next page load like you'd have to do in a traditional server-driven application. Because this benefit was so heavily advertised, I was ve ..read more
Visit website

Follow Adam Wathan's Blog on FeedSpot

Continue with Google
Continue with Apple
OR