No description
Find a file
Robin Malfait f2e3e22c6b make the cloning of the rule in the lookup table lazy
We create a big lookup table so that we can lookup the nodes by its
utilityName. This is used inside the recursive `@apply` code.

This big lookup table will clone every single rule and put it in,
however we don't need to clone everything! We are only interested in the
rules that have been actually applied.

This way we make the cloning of the rule lazy and only when we use this
exact rule.

There is an additional performace "issue" though: When we read the same
rule multiple times, it will clone every time you read from that object.
We could add additional memoization stuff, but so far it doesn't seem to
be the bottleneck. Therefore I've added a perf todo just to leave a mark
when this becomes the bottleneck.
2020-08-18 08:21:33 -04:00
.github Add Node.js 14.x to test matrix 2020-08-07 15:45:59 -04:00
__tests__ Update flagged fixture 2020-08-18 08:21:22 -04:00
dist Add empty .npmignore so dist files are distributed with releases 2017-11-09 09:21:30 -05:00
jest Add tests for all the new scenarios @apply now supports 2020-08-13 20:46:27 -04:00
perf add perf utils 2020-08-18 08:21:33 -04:00
scripts Update rebuildFixtures to use 'all' for flags 2020-08-06 16:26:55 -04:00
src make the cloning of the rule in the lookup table lazy 2020-08-18 08:21:33 -04:00
stubs Add "to" to gradient background class names 2020-08-17 11:50:35 -04:00
.editorconfig Convert new stuff to use ES6 modules 2017-08-27 18:02:41 -04:00
.eslintignore Updated CLI init commend 2019-03-14 15:51:21 -05:00
.eslintrc.json Disable lint rule for TODO comments 🖕 2020-05-01 15:16:59 -04:00
.gitignore add perf utils 2020-08-18 08:21:33 -04:00
base.css Remove preflight CSS export in favor of base 2019-02-11 12:38:46 -05: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.json Add support for background images and 2/3-color-stop gradients 2020-08-16 15:23:49 -04:00
plugin.js Add new plugin and plugin.withOptions functions for creating plugins 2019-12-20 10:53:27 -05:00
README.md ♻️💬 Add alt attribute to logo 2020-05-13 12:58:40 +09:00
resolveConfig.js Support resolving multiple configs using public resolveConfig function 2019-10-12 13:00:50 -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
yarn.lock Merge pull request #2028 from tailwindcss/dependabot/npm_and_yarn/master/babel/node-7.10.5 2020-07-15 06:59:27 +00: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.