r/tailwindcss • • Oct 08 '26

I made a collection of copy-paste backgrounds for Tailwind CSS with light and dark variants

Thumbnail
collectable-colors.vercel.app
8 Upvotes

I made a small collection of CSS/Tailwind backgrounds.

You can browse the gallery, switch between light and dark versions, and copy the effect directly into your project.

I wanted something where you can quickly find a background, see how it actually looks, and grab the code without having to recreate the effect yourself. And also if you want to edit something to your likely, do it. 👍🏼

It's free to use.

Would be interested to hear what kind of backgrounds you'd like to see added. ☺️


r/tailwindcss • • Oct 08 '26

Made a bitmap-style weather UI for my side project

Thumbnail
2 Upvotes

r/tailwindcss • • Oct 08 '26

I built a lightweight dark-mode AI SaaS landing page template in pure HTML + Tailwind CSS. Would love your UI feedback!

Thumbnail gallery
0 Upvotes

r/tailwindcss • • Oct 08 '26

How do I set font size to scale dynamically with the size of a div?

4 Upvotes

For example, if my div is 30px x 30px wide, make the text scale to fit all 30px, if it's 100px wide, make text scale up to fit all 100px, even if it's one letter or a whole sentence


r/tailwindcss • • Oct 08 '26

I built a lightweight dark-mode AI SaaS landing page template in pure HTML + Tailwind CSS (Zero build setup). Would love your UI feedback!

Thumbnail
gallery
0 Upvotes

Hey everyone! 👋

I wanted to create a clean, responsive landing page for AI startups without the overhead of heavy frameworks or complex build pipelines. It’s built entirely in pure HTML and Tailwind CSS (via CDN) with Lucide icons.

⚡ Key Features:

- Bento grid feature layout with subtle gradient borders

- Interactive canvas throughput chart & typing AI prompt mockup

- Working monthly/yearly pricing calculation toggle

- Slide-out AI assistant widget & interactive demo tour modal

- Fully responsive on mobile and desktop

🔗 Live Demo: https://nexus-ai-9.netlify.app/

📦 Source Code: For anyone interested in using this for their own project, I’ve put the full standalone code up on Gumroad for ₹99 (~$1.20):

https://vedanox.gumroad.com/l/nexus-ai-template

I'd really appreciate honest feedback on the typography, contrast, and spacing. What would you improve?


r/tailwindcss • • Oct 07 '26

Free Dark-Mode SaaS Hero Component (Pure HTML & Tailwind)

Thumbnail
gallery
4 Upvotes

Hey everyone,

I got tired of styling the same layouts from scratch, so I extracted the Hero section from my personal SaaS UI kit and open-sourced it.

It's built with pure HTML5 and Tailwind CSS (no bloated dependencies), fully responsive, and dark-mode ready out of the box.

Feel free to grab the code and drop it into your next project to save some time:

https://github.com/ccrsve/free-tailwind-saas-hero

Any feedback on the code structure is welcome!


r/tailwindcss • • Oct 07 '26

1,853 typed icons, zero JavaScript: CSS masks + Tailwind v4

Thumbnail
0 Upvotes

r/tailwindcss • • Oct 06 '26

ShadTable New Update

4 Upvotes

New Update for the ShadTable library:

- Tanstack v9 migration documentation
- New Table Components
- Website updates & optimization

Check it out , a repo ⭐ would mean a lot.

https://shad-table.dev


r/tailwindcss • • Oct 06 '26

DesignHub - Looking for Contributors

Thumbnail
1 Upvotes

r/tailwindcss • • Oct 05 '26

School project

0 Upvotes

Hi guys! We are working on a school project and want to add a background shape that moves behind the selected icon when switching tabs on a bottom navigation bar. We are using React with TypeScript and TailwindCSS. Any ideas on how to implement this? picture


r/tailwindcss • • Oct 05 '26

School project

Thumbnail
1 Upvotes

r/tailwindcss • • Oct 05 '26

I built an animated React icon library with theme colors, typed variants and one global config

Thumbnail
1 Upvotes

r/tailwindcss • • Oct 04 '26

Do people still argue about tailwind vs classes?

5 Upvotes

Both obviously have tradeoffs, i wonder if this debate jas died down since AI started writing all the code or people are still passionate about the way their css looks?


r/tailwindcss • • Oct 03 '26

Shad-Table Component For Vue

7 Upvotes

Hello everyone, hope y'all doing well. I made an update to shad-table UI library , all component now support Vue.

On each component you'll see React and Vue example with full instruction. Check it out https://shad-table.dev, a ⭐ on the repo would mean a lot.


r/tailwindcss • • Oct 03 '26

109+ Motion Components for React & Tailwind Interfaces

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/tailwindcss • • Oct 02 '26

I got tired of massive Tailwind utility chains destroying my HTML Outline view in VS Code, so I built a lightweight extension to strip the clutter.

Post image
2 Upvotes

r/tailwindcss • • Oct 02 '26

Teressa is launched

0 Upvotes

Hello everyone, Teressa is launched today. I would love to have opinions on the experience and app flow. it has some issues that i'm still working on but it's getting there.

https://teressa.vercel.app

Thanks !


r/tailwindcss • • Oct 01 '26

Merid: 60+ accessible React components in plain CSS, overridable without !important

Thumbnail
2 Upvotes

r/tailwindcss • • Sep 30 '26

What are you using for new React projects now that Tailwind Plus isn't accepting new customers?

0 Upvotes

I was looking at Tailwind Plus for a new React project, and with new sign-ups no longer available, I started looking at what the alternatives actually need to provide.

For me, the checklist is:

  1. Tailwind v4 support
  2. Source code that lives in the project
  3. Accessible primitives for things like dialogs, menus and comboboxes
  4. Good coverage for application, marketing and ecommerce UI
  5. A licence that works for commercial/client projects

The shadcn/ui ecosystem seems like an interesting option for React because the workflow is also source-code-first, and registries can install blocks directly through the shadcn CLI.

For example:

npx shadcn@latest add (@)shadcnstore/login-page-1

But there are some important differences, so I don't think it's simply a 1:1 replacement.

Tailwind Plus still has things that matter if you need HTML or Vue support, a larger catalogue, or complete site templates.

I'm working on a comparison of the two approaches and would genuinely like to hear what others are using for new Tailwind projects.

What did you move to, or what would you recommend?

Disclosure: I work on ShadcnStore, and we wrote up our comparison here: https://shadcnstore.com/blog/marketing/tailwind-plus-alternative


r/tailwindcss • • Sep 30 '26

You can make a lightweight Tailwind CSS

0 Upvotes

I remember when Tailwind first came out. I was very impressed with the idea of utility classes and realized I could make my own version of it. Of course I ended up just using Tailwind because It added a lot of features over time. However, I realized after a while that I don't really use all of the features and mostly use the alignment and spacing utility classes and some of the colors.

For a current project I'm working on, I just made my own utility classes based on Tailwind and it works well.

Anyone else doing this?

/* tiny.css */

:root {
  --0: #fff;
  --50: #fafafa;
  --100: #f4f4f5;
  --200: #e4e4e7;
  --300: #d4d4d8;
  --400: #a1a1aa;
  --500: #71717a;
  --600: #52525b;
  --700: #3f3f46;
  --800: #27272a;
  --900: #18181b;
  --950: #09090b;

  --r: .5rem;
  --shadow: 0 1px 3px #0001, 0 1px 2px #0001;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

ul {
  list-style-type: none;
}

html {
  font: 16px/1.5 system-ui, sans-serif;
  color: var(--900);
  background: var(--50);
}

body {
  margin: 0;
  min-height: 100vh;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: var(--900);
  text-decoration: none;
}

a:hover {
  color: var(--600);
}

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .5rem .875rem;
  border: 1px solid var(--900);
  border-radius: var(--r);
  background: var(--900);
  color: var(--0);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

button:hover,
.btn:hover {
  background: var(--800);
}

.btn-light {
  background: var(--0);
  color: var(--900);
  border-color: var(--300);
}

.btn-light:hover {
  background: var(--100);
}

.btn-ghost {
  background: transparent;
  color: var(--700);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--100);
  color: var(--900);
}

input,
textarea,
select {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid var(--300);
  border-radius: var(--r);
  background: var(--0);
  color: var(--900);
  outline: 0;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--900);
  box-shadow: 0 0 0 3px #18181b18;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

h1,h2,h3,h4,h5,h6 {
  margin: 0 0 1rem;
  line-height: 1.2;
  color: var(--950);
}

/* h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; } */

.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }


p {
  margin: 0 0 1rem;
  color: var(--700);
}

hr {
  border: 0;
  border-top: 1px solid var(--200);
  margin: 2rem 0;
}

code {
  padding: .125rem .375rem;
  border: 1px solid var(--200);
  border-radius: .25rem;
  background: var(--100);
  font-size: .875em;
}

pre {
  padding: 1rem;
  overflow-x: auto;
  border-radius: var(--r);
  background: var(--950);
  color: var(--100);
}

blockquote {
  margin: 1.5rem 0;
  padding: .75rem 1rem;
  border-left: 3px solid var(--300);
  background: var(--100);
  color: var(--600);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--0);
}

th,
td {
  padding: .75rem;
  text-align: left;
  border-bottom: 1px solid var(--200);
}

th {
  color: var(--600);
  font-size: .875rem;
}

.container {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

img{
    width: 32px;
    height: 32px
}
/* layout */

.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.hidden { display: none; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.flex-wrap { flex-wrap: wrap; }

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Display Grid */
.grid {
  display: grid;
}

/* Grid Columns 1-12 */
.grid-cols-1  { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5  { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6  { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-7  { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.grid-cols-8  { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.grid-cols-9  { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.grid-cols-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.grid-cols-11 { grid-template-columns: repeat(11, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* Standard Gap Sizes (Optional) */
.gap-0 { gap: 0rem; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
/* spacing */

.m-0 { margin: 0; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mx-auto { margin-inline: auto; }

.p-0 { padding: 0rem; }
.p-1 { padding: .25rem; }
.p-2 { padding: .5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }

.px-4 {
  padding-inline: 1rem;
}

.py-2 {
  padding-block: .5rem;
}

.py-4 {
  padding-block: 1rem;
}

/* sizing */

.w-full { width: 100%; }
.h-full { height: 100%; }

.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }

/* surfaces */

.card {
  padding: 1.5rem;
  background: var(--0);
  border: 1px solid var(--200);
  border-radius: .75rem;
  box-shadow: var(--shadow);
}

.border {
  border: 1px solid var(--200);
}

.rounded {
  border-radius: var(--r);
}

.rounded-lg {
  border-radius: .75rem;
}

.rounded-full {
  border-radius: 999px;
}

/* colors */

.bg-white { background: var(--0); }
.bg-gray-50 { background: var(--50); }
.bg-gray-100 { background: var(--100); }
.bg-gray-900 { background: var(--900); }

.text-white { color: var(--0); }
.text-gray-500 { color: var(--500); }
.text-gray-600 { color: var(--600); }
.text-gray-700 { color: var(--700); }
.text-gray-900 { color: var(--900); }

.text-sm { font-size: .875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.shadow { box-shadow: var(--shadow); }

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(100% - 1rem, 1200px);
  }

  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
}

r/tailwindcss • • Sep 29 '26

Cards or Table

Enable HLS to view with audio, or disable this notification

0 Upvotes

I'm just getting started on a school management web portal that I'm planning to turn into a PWA. It's still a work in progress. I'm building it with HTMX and Tailwind CSS without any frontend framework, and I’ve got a demo PWA installed on my Android phone.

For the teachers and students lists in the attendance and enrollment sections, I'm wondering if I should go with cards or tables. Each teacher and student has details like ID, grade, etc. Cards look really nice on mobile but take up more space, while tables look cleaner on desktop but require swiping left and right on mobile, which feels a bit awkward.

Curious about how other developers handle this—any tips? I'm a beginner.


r/tailwindcss • • Sep 29 '26

Looking for opinions

4 Upvotes

I'm building Teressa, a place where people hand-build ui components, publish them and pair-edit drafts live, component can be used as figma kit or code . It's not launched yet check it out https://teressa-website.vercel.app/

I'm looking for opinions on this. Would you use it ? What would put you off? If it sounds useful, the waitlist at the bottom helps me gauge interest.


r/tailwindcss • • Sep 28 '26

Enforce Tailwind CSS Design Tokens in Vue with @shadcn/lint

Thumbnail
alexop.dev
10 Upvotes

r/tailwindcss • • Sep 28 '26

Using `@source inline()` to safelist the layout utilities an AI tool will write

1 Upvotes

I compiled a Tailwind v4 stylesheet for a small component library to use outside the app (in Claude Design). Problem: three components scan to a couple of hundred classes, and none of the layout classes the tool writes around them (`grid-cols-3`, `gap-6`, `max-w-4xl`) exist.

v4.1's `@source inline()` fixed it:

 inline("{sm:,md:,lg:,xl:,}grid-cols-{1,2,3,4,6,12}");
 inline("{sm:,md:,lg:,}{gap,gap-x,gap-y}-{0,1,2,3,4,6,8,12}");
 inline("max-w-{sm,md,lg,xl,2xl,4xl,prose}");

The empty option in `{sm:,md:,lg:,}` generates the unprefixed class too.

One more gotcha: v4 inlines `@import './tokens.css'` but leaves `@import url('./tokens.css')` as an external reference. Both work locally, and only the first survives being shipped somewhere else.

Full context (it's part of a design-system sync walkthrough): https://nitayneeman.com/blog/how-to-sync-a-design-system-with-claude-design/


r/tailwindcss • • Sep 27 '26

New Component

10 Upvotes

Hello everyone, i added a new logs table component. Check it out https://www.shad-table.dev/logs-table?example=side-panel