Tailwind CSS Forms

A basic reset for form styles that makes form elements easy to override with Tailwind utilities

Library
npm
v0.5.11
4,564 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
49 /100 Fair
Development Activity 8
Maintenance 32
Community 56
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
70 /100 Good
Architecture 68
Code Quality 60
Innovation 62
Learning Curve 90

Tailwind CSS Forms is the official Tailwind plugin that normalizes browser default styling on form elements — inputs, textareas, selects, checkboxes, and radio buttons — so they can be restyled entirely with Tailwind utility classes instead of fighting inconsistent user-agent stylesheets across browsers.

It injects a small set of base styles (via Tailwind’s addBase/addComponents plugin API) that strip out things like default border radius, box shadow, and background images on native form controls, replacing checkbox/radio appearance with SVG data URIs so they can still be colored and sized with utilities like text-indigo-600.

What You Get

  • A globalStyles/className strategy (opt-in class mode or automatic global reset) applied via Tailwind’s plugin system
  • Reset styling for text inputs, textareas, and selects so borders/shadows/focus rings come purely from utility classes
  • Custom SVG-based checkbox and radio button appearance that can be recolored with standard Tailwind color utilities
  • Support for disabled, checked, indeterminate, and focus states without extra custom CSS
  • Compatibility with both Tailwind CSS v3 and v4 via a single peer-dependency range

Common Use Cases

  • Building a sign-up or login form styled purely with Tailwind utilities without writing custom form CSS
  • Restyling checkboxes and radio buttons to match a design system’s brand color instead of the browser default blue
  • Normalizing form-control appearance across Chrome, Firefox, and Safari in a marketing site or dashboard
  • Quickly prototyping admin/dashboard forms where every input needs a consistent focus-ring and border treatment

Under The Hood

Architecture — The plugin is a single-purpose Tailwind plugin defined in src/index.js, registered via Tailwind’s plugin() API; it calls addBase to inject a scoped CSS reset (or addComponents when strategy: 'class' is configured) targeting native form element selectors, and it uses the mini-svg-data-uri dependency to inline the checkbox/radio-button check-mark and dot as data-URI background images so they can be recolored via background-color utilities. Tech Stack — Plain JavaScript (no build step for the library itself — it ships src/index.js directly), with a tailwind.config.js and index.html/kitchen-sink.html used as a manual visual testing harness rather than an automated suite; PostCSS/Autoprefixer and live-server support a local dev-preview workflow. Code Quality — The codebase is intentionally minimal (two files: index.js and its type declaration index.d.ts), which keeps the surface area small and easy to audit, but the test script is a no-op (exit 0) — there is no automated test suite, and correctness is verified manually via the kitchen-sink HTML page and visual review. API Design — Zero-config by default (styles apply globally to all form elements once the plugin is registered) with an opt-in strategy: 'class' mode that requires an explicit form-input/form-checkbox class instead, giving consumers a clear escape hatch when the global reset is too aggressive for an existing codebase; this two-mode design is the plugin’s main ergonomic strength.

Used by 59 apps in this directory

Go
57%
MPL 2.0

shaper

Analytics · Data Engineering

1,265

Build analytics dashboards, reports, and customer-facing analytics by writing pure SQL — powered by DuckDB and designed for self-hosted deployment.

View details
80
Repo Health
79
Technical
71
Dependency
Built with
Go 57%
TypeScript 42%
Updated 6 days ago
PHP
47%
AGPL 3.0

solidtime

Invoicing Finance · Productivity

9,027

Modern open-source time tracker for freelancers and agencies with invoicing, multi-org support, and Toggl/Clockify migration built in.

View details
84
Repo Health
81
Technical
67
Dependency
Built with
PHP 47%
TypeScript 28%
Vue 22%
Updated 1 weeks ago
Rust
79%
AGPL 3.0

Spacedrive

Collaboration · File Storage

39,292

One file manager for all your devices and clouds — powered by a Virtual Distributed File System built in Rust.

View details
84
Repo Health
84
Technical
63
Dependency
Built with
Rust 79%
TypeScript 18%
Updated 2 weeks ago
TypeScript
72%
Apache 2.0

Supabase

Authentication · Databases · Developer Tools

113,827

The open-source Postgres development platform that replaces Firebase with authentication, real-time APIs, edge functions, storage, and vector embeddings — all built on PostgreSQL.

View details
90
Repo Health
91
Technical
62
Dependency
Built with
TypeScript 72%
MDX 26%
Updated 5 days ago
TypeScript
97%
AGPL 3.0

Swetrix

Analytics

1,213

Privacy-first, cookieless web analytics with error tracking, session replays, and performance monitoring — self-host or use Cloud.

View details
87
Repo Health
71
Technical
66
Dependency
Built with
TypeScript 97%
Updated 1 weeks ago
Rust
71%
MIT

Trieve

AI Development · Developer Tools · Search

2,721

All-in-one self-hostable platform for hybrid search, RAG, recommendations, and analytics built on Rust and Qdrant.

View details
42
Repo Health
74
Technical
65
Dependency
Built with
Rust 71%
Updated 9 months ago
TypeScript
99%
Apache 2.0

Trigger.dev

AI Development · Automation · Developer Tools

16,606

Build and deploy fully-managed AI agents and background jobs in TypeScript — with no timeouts, durable retries, real-time observability, and elastic scaling built in.

View details
90
Repo Health
9
Technical
63
Dependency
Built with
TypeScript 99%
Updated 5 days ago
Ruby
94%
AGPL 3.0

Ubicloud

Devops · Hosting Control Panel

12,331

Open source cloud infrastructure platform delivering AWS-like IaaS services on bare metal providers at a fraction of the cost.

View details
76
Repo Health
81
Technical
0
Dependency
Built with
Ruby 94%
Updated 6 days ago
Go
86%
Apache 2.0

Uncloud

Devops

5,572

Deploy and scale containerised apps across any servers without Kubernetes or Swarm overhead

View details
83
Repo Health
78
Technical
67
Dependency
Built with
Go 86%
Updated 2 weeks ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers