No description
Find a file
Robin Malfait 4fddd2d611
Polish matchVariant API (#9313)
* convert the `matchVariant` to look more like `addVariant`

With the biggest difference that the `matchVariant` will have a callback
function that receives the current value of the variant.

* use object as argument for `matchVariant` callback

This will allow us to add more properties in the future if needed
without breaking changes.

- This is a breaking change: `(value) => ...` -> `({ value, other }) => ...`
- This is **not** a breaking change: `({ value }) => ...` -> `({ value, other }) => ...`

* add types for `matchVariant`
2022-09-16 15:37:35 +02:00
.github mayhaps fix insiders workflow? 2022-09-12 15:26:32 -04:00
integrations Enable postcss-import in the CLI by default in watch mode (#8580) 2022-06-10 11:33:35 +02:00
jest Allow returning parallel variants from addVariant or matchVariant callback functions (#8455) 2022-05-31 15:03:06 +02:00
nesting Ensure to transpile the PostCSS Nesting plugin (tailwindcss/nesting) (#7080) 2022-01-15 16:07:20 +01:00
perf Performance improvements + memory leak fix (#3032) 2020-12-11 15:03:49 +01:00
scripts Add more explicit types for the default theme (#8780) 2022-07-07 09:05:38 -04:00
src Polish matchVariant API (#9313) 2022-09-16 15:37:35 +02:00
standalone-cli Add standalone-cli node16-linux-armv7 build (#9084) 2022-08-12 13:10:10 -04:00
stubs Add type annotations to the tailwind.config.js file (#8493) 2022-06-02 16:44:12 +02:00
tests Polish matchVariant API (#9313) 2022-09-16 15:37:35 +02:00
types Polish matchVariant API (#9313) 2022-09-16 15:37:35 +02:00
.editorconfig Convert new stuff to use ES6 modules 2017-08-27 18:02:41 -04:00
.eslintignore Generate plugin list file (#4725) 2021-06-23 14:13:03 -04:00
.eslintrc.json Remove duplicate prettier.config.js settings from .eslintrc.json (#5087) 2021-09-01 17:41:43 +02:00
.gitignore Don't emit utilities containing invalid theme fn keys (#9319) 2022-09-14 13:27:01 -04:00
.swcrc Switch to swc from babel (#5593) 2021-09-24 19:17:19 +02:00
base.css Remove preflight CSS export in favor of base 2019-02-11 12:38:46 -05:00
CHANGELOG.md Revert "Only listen for stdin close on TTYs (#8523)" (#9331) 2022-09-14 16:06:34 -04:00
colors.d.ts Add TypeScript types for the tailwind.config.js file (#7891) 2022-03-22 10:24:28 +01:00
colors.js Add default interop to public available functions (#6348) 2021-12-10 11:25:10 +01:00
components.css Move CSS files to root for easier imports 2018-03-13 10:05:24 -04:00
defaultConfig.d.ts Add TypeScript types for the tailwind.config.js file (#7891) 2022-03-22 10:24:28 +01:00
defaultConfig.js Add default interop to public available functions (#6348) 2021-12-10 11:25:10 +01:00
defaultTheme.d.ts Add more explicit types for the default theme (#8780) 2022-07-07 09:05:38 -04:00
defaultTheme.js Add default interop to public available functions (#6348) 2021-12-10 11:25:10 +01:00
LICENSE Update LICENSE 2022-02-05 15:22:47 -05:00
package-lock.json Update fast-glob to version 3.2.12 2022-09-16 10:29:03 +00:00
package.json Update fast-glob to version 3.2.12 2022-09-16 10:29:03 +00:00
plugin.d.ts Improve types of the tailwindcss/plugin (#8400) 2022-05-23 12:35:19 +02:00
plugin.js Add default interop to public available functions (#6348) 2021-12-10 11:25:10 +01:00
prettier.config.js Add Prettier configuration file (prettier.config.js) (#3713) 2021-05-13 09:07:24 -04:00
README.md Centered the project name (#9000) 2022-07-31 10:51:09 -04:00
resolveConfig.d.ts Add declaration file for resolveConfig (#8924) 2022-07-25 14:54:25 -04:00
resolveConfig.js Add default interop to public available functions (#6348) 2021-12-10 11:25:10 +01:00
screens.css Add screen.css file for postcss-import convenience 2019-05-12 10:36:59 -04:00
tailwind.css Undo accidental changes to CDN build process 2019-12-25 13:54:09 -05:00
utilities.css Move CSS files to root for easier imports 2018-03-13 10:05:24 -04:00
variants.css JIT: Replace @tailwind screens with @tailwind variants (#4356) 2021-05-14 13:58:52 -04:00

Tailwind CSS Tailwind CSS

A utility-first CSS framework for rapidly building custom user interfaces.

Build Status Total Downloads Latest Release License


Documentation

For full documentation, visit tailwindcss.com.

Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

Discuss Tailwind CSS on GitHub

For casual chit-chat with others using the framework:

Join the Tailwind CSS Discord Server

Contributing

If you're interested in contributing to Tailwind CSS, please read our contributing docs before submitting a pull request.