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

TypeScript
95%
AGPL 3.0

HeyForm

Forms Surveys · No Code Platforms

9,048

Open-source conversational form builder with AI generation, conditional logic, and 30+ integrations — self-host with full data ownership.

View details
86
Repo Health
67
Technical
67
Dependency
Built with
TypeScript 95%
Updated 5 days ago
JavaScript
99%
GPL 3.0

homepage

Monitoring · Productivity

33,326

A fast, fully static, and secure self-hosted startpage with Docker service discovery and integrations for over 160 services.

View details
91
Repo Health
86
Technical
71
Dependency
Built with
JavaScript 99%
Updated 5 days ago
Rust
51%
Other

hoodik

File Storage · Security

1,539

Self-hosted, end-to-end encrypted cloud storage with browser-based encryption and S3-compatible storage support

View details
77
Repo Health
71
Technical
63
Dependency
Built with
Rust 51%
TypeScript 34%
Vue 14%
Updated 1 weeks ago
Go
69%
MIT

hoop

Monitoring · Security

836

A wire-protocol gateway that enforces data masking, command blocking, approval workflows, and full session recording for engineers and AI agents accessing production infrastructure.

View details
86
Repo Health
80
Technical
64
Dependency
Built with
Go 69%
Clojure 13%
Updated 5 days ago
PHP
84%
Other

Invoice Ninja

Invoicing Finance · Project Management

10,311

Self-hostable invoicing, time-tracking, and multi-gateway payment platform for freelancers and small businesses, with built-in e-invoicing compliance for EU and global standards.

View details
97
Repo Health
83
Technical
62
Dependency
Built with
PHP 84%
Updated 1 weeks ago
TypeScript
96%
AGPL 3.0

Kan

Project Management

5,825

An open-source, self-hostable Kanban board built as a modern Trello alternative with team workspaces, board permissions, and Trello import.

View details
86
Repo Health
78
Technical
67
Dependency
Built with
TypeScript 96%
Updated 1 weeks ago
Elixir
71%
AGPL 3.0

Keila

Marketing

2,246

Self-hosted newsletter platform with a visual block editor, Liquid personalization, and flexible email delivery — a privacy-respecting Mailchimp alternative you run on your own infrastructure.

View details
87
Repo Health
76
Technical
66
Dependency
Built with
Elixir 71%
HTML 18%
Updated 1 weeks ago
Python
71%
MIT

Langflow

AI Agents · AI Development

155,973

Build, test, and deploy AI agents and RAG workflows visually with native API and MCP server export.

View details
90
Repo Health
85
Technical
64
Dependency
Built with
Python 71%
TypeScript 21%
Updated 5 days ago
TypeScript
96%
Other

Langfuse

AI Development · Monitoring

36,276

Open source AI engineering platform for LLM observability, prompt management, evaluation, and debugging — self-host in minutes or use Langfuse Cloud.

View details
92
Repo Health
81
Technical
65
Dependency
Built with
TypeScript 96%
Updated 5 days 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