Tailwind CSS Forms
A basic reset for form styles that makes form elements easy to override with Tailwind utilities
Repository Health
Technical Analysis
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/classNamestrategy (opt-inclassmode 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, andfocusstates 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
nango
Authentication · Automation · Developer Tools
Build product integrations with AI using 800+ APIs — auth, proxy, and TypeScript functions on production-grade infrastructure.
OnetimeSecret
Security
Generate self-destructing single-use links to share passwords and sensitive data without leaving traces in inboxes or chat logs.
Open Scouts
AI Agents · Automation
Create automated AI scouts that continuously search the web and send email alerts when they find what you're looking for.
Pangolin
Networking
An open-source, identity-based zero-trust remote access platform built on WireGuard — a self-hostable alternative to Cloudflare Tunnel and Twingate with SSO, OIDC, and tunneled reverse proxying.
Papermark
Digital Signiture · File Storage
Open-source DocSend alternative with page-by-page analytics, secure data rooms, and custom domains for document sharing.
Plausible Analytics
Analytics
Open-source, cookie-free web analytics that respects visitor privacy and replaces Google Analytics.
Polar
Developer Tools · Ecommerce · Invoicing Finance
Open source payments infrastructure that turns software into a business — subscriptions, usage-based billing, digital products, and merchant-of-record compliance in one platform.
PrivateCaptcha
Authentication · Security
Privacy-first, self-hostable Proof-of-Work CAPTCHA for GDPR-compliant bot protection.
Rivet
AI Agents · Developer Tools
Stateful actors as a primitive for AI agents, real-time collaboration, and durable execution — with in-memory state, WebSockets, queues, and scheduling built in.