No description
Find a file
Robin Malfait 31a80b1794
Reduce quickPluginTest and quickVariantPluginTest snapshot size (#12170)
* sync package-lock.json

* reduce generated examples

By default we use the default config when creating the quick tests for a
given plugin. However, this can result in _a lot_ of changes. For
example, when you update the opacity values, then these values will be
generated for each color, and for each plugin that uses that color.

You can see that behaviour in Adam's PR (https://github.com/tailwindlabs/tailwindcss/pull/11832).
He added 6 values to the opacity configuration. This resulted in a diff
that looked like this:
```
+219,436 −9
```

This reduces the amount of examples for plugins that generate _a lot_ of
output otherwise.

* use `toMatchSnapshot`

This way all the `quickPluginTest` and `quickVariantPluginTest`
implementations are the same. This also allows us to update tests after
config changes in an easier way because they use snapshot tests right
now.

* use real colors for reduced red

This will make it a tiny bit easier to debug what's going on if we need
it in the future since it's using the same values as the real colors.
2023-10-09 16:49:20 +02:00
.github Remove matrix.setup release-insiders.yml (#11954) 2023-09-05 19:47:03 -04:00
integrations Update rollup to version 3.29.4 2023-10-08 06:20:06 +00:00
jest Always prepend the license comment (#11476) 2023-06-22 16:41:37 -04:00
nesting Ensure to transpile the PostCSS Nesting plugin (tailwindcss/nesting) (#7080) 2022-01-15 16:07:20 +01:00
oxide Batch reading content files to prevent too many open files error (#12079) 2023-09-25 12:18:11 -04:00
perf Performance improvements + memory leak fix (#3032) 2020-12-11 15:03:49 +01:00
scripts Fix typos (#11805) 2023-08-12 08:17:41 -04:00
src Enable error recovery in Lightning CSS 2023-10-03 13:04:17 -04:00
standalone-cli Update test 2023-04-25 17:45:45 -04:00
stubs Extend opacity scale to include all steps of 5 (#11832) 2023-08-16 11:44:14 -04:00
tests Reduce quickPluginTest and quickVariantPluginTest snapshot size (#12170) 2023-10-09 16:49:20 +02:00
types Update types to work with Node16 module resolution (#12097) 2023-09-28 11:12:50 -04:00
.editorconfig Ensure the oxide parser has feature parity with the stable RegEx parser (#11389) 2023-06-07 17:44:35 +02:00
.eslintignore chore: add GitHub Action to manage +1 comments (#11645) 2023-07-24 11:57:35 +02:00
.eslintrc.json Remove duplicate prettier.config.js settings from .eslintrc.json (#5087) 2021-09-01 17:41:43 +02:00
.gitignore chore: add GitHub Action to manage +1 comments (#11645) 2023-07-24 11:57:35 +02:00
.swcrc update .swcrc configuration 2023-08-10 11:02:05 +00:00
base.css Remove preflight CSS export in favor of base 2019-02-11 12:38:46 -05:00
CHANGELOG.md Improve RegEx parser, reduce possibilities as the key for arbitrary properties (#12121) 2023-10-02 16:19:23 +02: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
index.css Support @import "tailwindcss" using top-level index.css file (#11205) 2023-05-12 18:49:35 +02:00
LICENSE Update LICENSE 2022-02-05 15:22:47 -05:00
loadConfig.d.ts Enable ESM and TS based config files (#10785) 2023-03-15 17:04:18 -04:00
loadConfig.js Enable ESM and TS based config files (#10785) 2023-03-15 17:04:18 -04:00
package-lock.json Reduce quickPluginTest and quickVariantPluginTest snapshot size (#12170) 2023-10-09 16:49:20 +02:00
package.json Update browserslist to version 4.22.1 2023-10-04 00:36:35 +00:00
plugin.d.ts Make Config completely optional for plugins (#9502) 2022-10-07 10:45:22 -04: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 fix CI badge in README 2023-05-25 12:01:03 +02:00
resolveConfig.d.ts Improve return value of resolveConfig, unwrap ResolvableTo (#9972) 2022-11-30 14:26:15 +01: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
turbo.json Merge engines (#11275) 2023-05-24 22:10:00 -04: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.