51 Commits
Author SHA1 Message Date
Robin MalfaitandGitHub 976ffe5c7c Add default interop to public available functions (#6348)
* add `default` interop to public available functions

* update changelog
2021-12-10 11:25:10 +01:00
Robin MalfaitandGitHub 59ca5d13cb Improve public API (#5526)
* introduce `public` folder

This can contain all of the `public` functions we want to expose.
This will be a bit nicer for example when you want to use
internal/private functions (we use some in the vscode intellisense
plugin).

* use public `resolveConfig` function

* expose resolveConfig in the root

This will use the resolveConfig we expose from the `public` folder. We
can probably generate these as well.

* make `colors` public

* make `default config` public

* make `default theme` public

* make `create plugin` public

* update to public paths

* remove `@tailwindcss/aspect-ratio` from tests

This should be tested in its own repo instead.

* remove `@tailwindcss/aspect-ratio` as a dependency

* drop `Build` step from CI

The build step is not a prerequisite anymore for running the tests. When
we want to release a new (insiders) release, the `prepublishOnly` step
will be executed for us.

Before this change, it would have been executed twice:
- Once before the tests
- Once before the actual release

* improve paths for caching purposes

* add pretest scrip for generating the plugin list

Now that we can use `SWC`, automatically generating the plugin list
before running the tests is super fast and you don't even have to think
about it anymore!
2021-09-26 12:44:13 +02:00
Robin MalfaitandGitHub 4617931eda Fix incorrect import in defaultConfig and defaultTheme (#5527)
We should import from `lib` and not from `src`
2021-09-17 13:16:38 +02:00
Robin MalfaitandGitHub 868a25def8 Remove lodash (#5390)
* remove `lodash` usage

* implement custom cloneDeep to replace lodash's

* drop lodash in processPlugins

* add `toPath` utility

* add `tap` utility

* add `cloneDeep` utility

* drop lodash in evaluateTailwindFunctions

* add `defaults` utility

* drop lodash from `resolveConfig`

* remove `lodash` dependency
2021-09-06 14:15:10 -04:00
mattstypa bc61a3b834 Updated CLI init commend 2019-03-14 15:51:21 -05:00
Jonathan Reinink e3f2a97675 Switch to separate config import
Import default config from separate path (require('tailwindcss/defaultConfig')) to allow importing the default config without importing all of Tailwind, which causes errors with Webpack due to a dynamic require.
2017-11-14 08:03:31 -05:00
Jonathan ReininkandAdam Wathan 1d7bc8361f Simplify margin auto utilities 2017-11-06 15:32:51 -05:00
Jonathan Reinink b0ac66ba1e Add sans-serif to default font stack 2017-11-06 11:31:18 -05:00
Jonathan Reinink 1a233a14bf Put "auto" first in zIndex config 2017-11-04 07:08:27 -04:00
Jonathan ReininkandGitHub 2f9246cb19 Merge pull request #28 from psren/patch-1
Dash in comments is wrong
2017-11-01 14:00:01 -04:00
Jonathan ReininkandGitHub ef15ad8c2d Use "screen" instead of "breakpoint" 2017-11-01 13:56:41 -04:00
PatrickandGitHub 0c055b1cd9 Dash in comments is wrong
For margin/padding utilities there is a dash in the comment.
The rendered css-classes look like that: ```.mt-4``` so i think the comments are wrong.
2017-11-01 18:50:26 +01:00
Pedro Borges 10751882f0 Add responsive sample to default config 2017-11-01 14:10:44 -02:00
Adam Wathan 7af91cb066 Tweak inline shadow docs in default config 2017-11-01 00:44:31 -04:00
Adam Wathan e3266241a1 Tweak inline config docs for border radius 2017-11-01 00:42:26 -04:00
Adam Wathan 2282c40283 Wording in default config 2017-11-01 00:38:04 -04:00
Jordan PittmanandGitHub 9ec3d40763 Fix typo
border color -> border width
2017-11-01 00:04:40 -04:00
Jonathan ReininkandGitHub bb2840145a Fix spacing 2017-10-31 23:54:27 -04:00
mattdfloydandGitHub 34a9acb237 Update defaultConfig.js
Removes double back slash
2017-10-31 23:52:55 -04:00
Jonathan Reinink 3948fc0b33 Remove slate color entirely, and set new default border color 2017-10-31 20:27:19 -04:00
Jonathan Reinink ac322c310a Remove slate and smoke colors 2017-10-31 16:15:04 -04:00
Jonathan Reinink 6a05795cca Update default shadows 2017-10-31 15:16:51 -04:00
Adam Wathan b9389e6c17 Update colors to match Steve's latest stuff 2017-10-31 14:15:42 -04:00
Adam Wathan b6a01b3ae8 Rename rounded-pill to rounded-full, add rounded-none 2017-10-30 17:12:23 -04:00
Jonathan Reinink 4d023fe82a Update urls in default config to match real doc urls 2017-10-30 13:38:05 -04:00
Jonathan Reinink dd74a1c6e2 Add z-index docs 2017-10-28 07:37:05 -04:00
Adam Wathan b4738aa9b7 Update colors to Steve's new palette 2017-10-26 15:59:49 -04:00
Adam Wathan 782598319a Comment out requiring defaultConfig inside itself
Uncomment on init
2017-10-26 12:06:10 -04:00
Jonathan Reinink e1140cd6d0 Tweak wording of color docs in config 2017-10-26 11:41:32 -04:00
Jonathan Reinink 24199b140f Lazy load default config 2017-10-26 09:29:52 -04:00
Jonathan ReininkandGitHub a1e584dd35 Merge branch 'master' into add-documentation-to-config 2017-10-26 09:15:25 -04:00
Jonathan Reinink 12faf8af8a Tweak config docs 2017-10-25 19:04:38 -04:00
Jonathan Reinink 3e58d198d8 Update generators for the new config keys 2017-10-25 17:56:50 -04:00
Jonathan Reinink cfbe2660d4 Fix alignment of text sizes 2017-10-25 17:36:50 -04:00
Jonathan Reinink 78bbb668b9 Finish initial draft of the config docs 2017-10-25 17:33:18 -04:00
Jonathan Reinink b414ac5d10 Add docs to config for margins and padding 2017-10-25 17:14:24 -04:00
Jonathan Reinink 5ee988e2e0 Add docs to config for border and sizing utilities 2017-10-25 16:58:29 -04:00
Adam Wathan 751bfe681b Switch to Schoger-approved default font size scale 2017-10-25 16:08:03 -04:00
Jonathan Reinink b9cc27854b Switch font families to arrays in config 2017-10-25 11:14:07 -04:00
Jonathan Reinink 0ad2ffe483 Quote all editable keys in the config 2017-10-25 11:13:19 -04:00
Jonathan Reinink 67f8d1b9cb Improve border, padding and margin docs in config 2017-10-25 10:02:38 -04:00
Jonathan Reinink a08388efc7 Add more color docs to config 2017-10-25 09:58:11 -04:00
Jonathan Reinink 382537f86a Improve formatting of config, and add links and class names 2017-10-25 09:42:53 -04:00
Jonathan Reinink 165c001e65 Add "packages" key to config 2017-10-25 08:53:37 -04:00
Jonathan Reinink 2a00fab8ab Flatten config (remove nested keys) 2017-10-25 08:52:04 -04:00
Jonathan Reinink cdffce9044 Remove "SFMono-Regular" from default mono font stack 2017-10-25 07:48:22 -04:00
Jonathan Reinink b1bd134d1e Add text tracking docs to config 2017-10-25 07:32:36 -04:00
Jonathan Reinink 53d1bc78f5 Add leading docs to config 2017-10-25 07:31:38 -04:00
Jonathan Reinink 5e19fb5f62 Add documentation to config 2017-10-25 00:48:46 -04:00
Adam Wathan 564ac50868 Reduce tracking-wide default to .05em
.1em is just a bit too wide ¯\_(ツ)_/¯
2017-10-24 09:25:30 -04:00