No description
Find a file
Robin Malfait f63b4531f5
Add tailwindcss/nesting plugin (#4673)
* add nesting plugin

* rename @tailwindcss/nesting to tailwindcss/nesting

* ignore the built `nesting` plugin

* add a postcss7 compat version

* include `nesting` plugin when publishing

* add `build-plugins` script

This will allow us to keep the plugins in their dedicated folders +
tests + postcss7 compatibility files. However, when we copy over the
plugins to the root. For example `plugins/nesting/` -> `nesting/` we
skip files like `.test.js` and `.postcss7.js`.

* build plugins when running `prepublishOnly`

* improve compat mode

We will use a glob so that we can move all *.postcss7.* files to just
*.* likewise we will also backup to *.* to *.postcss8.* for restoring
purposes.

Concrete example:

- Current state:
  - index.js            // PostCSS 8 implementation
  - index.postcss7.js   // PostCSS 7 implementation

- Run "compat"
  - index.js            // PostCSS 7 implementation
  - index.postcss7.js   // PostCSS 7 implementation
  - index.postcss8.js   // PostCSS 8 implementation (Backup of original)

- Run "compat:restore"
  - index.js            // PostCSS 8 implementation
  - index.postcss7.js   // PostCSS 7 implementation
  - X index.postcss8.js // PostCSS 8 implementation (Removed)

* Update README.md

* ensure we `npm install` before publishing

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2021-06-17 09:43:52 -04:00
.github Update 1.bug_report.yml 2021-05-24 08:45:28 -04:00
dist Add empty .npmignore so dist files are distributed with releases 2017-11-09 09:21:30 -05:00
integrations Use tmp file as a touch file (#4650) 2021-06-15 10:06:29 -04:00
jest improve integration tests (#4572) 2021-06-07 13:50:53 -04:00
perf Performance improvements + memory leak fix (#3032) 2020-12-11 15:03:49 +01:00
plugins/nesting Add tailwindcss/nesting plugin (#4673) 2021-06-17 09:43:52 -04:00
scripts Add tailwindcss/nesting plugin (#4673) 2021-06-17 09:43:52 -04:00
src Resolve purge paths relative to the current working directory (#4655) 2021-06-15 16:37:04 -04:00
stubs Add blur-none with intent to deprecate blur-0 (#4614) 2021-06-10 12:13:19 -04:00
tests Resolve purge paths relative to the current working directory (#4655) 2021-06-15 16:37:04 -04:00
.editorconfig Convert new stuff to use ES6 modules 2017-08-27 18:02:41 -04:00
.eslintignore Improve new JIT-compatible CLI (#4558) 2021-06-04 10:28:09 -04:00
.eslintrc.json Fix style 2021-04-02 14:34:50 -04:00
.gitignore Add tailwindcss/nesting plugin (#4673) 2021-06-17 09:43:52 -04:00
base.css Remove preflight CSS export in favor of base 2019-02-11 12:38:46 -05:00
CHANGELOG.md Resolve purge paths relative to the current working directory (#4655) 2021-06-15 16:37:04 -04:00
colors.js Rename lightBlue to sky (#4513) 2021-05-31 09:22:47 -04:00
components.css Move CSS files to root for easier imports 2018-03-13 10:05:24 -04:00
defaultConfig.js Updated CLI init commend 2019-03-14 15:51:21 -05:00
defaultTheme.js Updated CLI init commend 2019-03-14 15:51:21 -05:00
LICENSE Avoid updating license every year 2017-12-29 22:32:43 +01:00
package-lock.json Use tmp file as a touch file (#4650) 2021-06-15 10:06:29 -04:00
package.json Add tailwindcss/nesting plugin (#4673) 2021-06-17 09:43:52 -04:00
package.postcss7.json Pin PurgeCSS to ^3 for compat build 2021-05-31 08:57:45 -04:00
plugin.js Add default interop to tailwindcss/plugin 2020-10-06 14:34:35 -04:00
prettier.config.js Add Prettier configuration file (prettier.config.js) (#3713) 2021-05-13 09:07:24 -04:00
README.md Update README.md 2021-05-18 09:58:28 -04:00
resolveConfig.js Support new presets key + extending core plugins config (#2474) 2020-10-08 11:21:39 -04: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
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.