Commit Graph
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
Adam WathanandGitHub d2fa3c47f2 Merge pull request #701 from tailwindcss/new-max-width-scale
Use progressive maxWidth scale
2019-03-05 09:44:12 -05:00
Adam Wathan 1c29c6fc92 Remove 7xl and 8xl
Now that I plan to add max-w-screen-* variations, I don't think these huge options provide any real value.
2019-03-02 16:00:05 -05:00
Adam Wathan c79eb88108 Renumber scale to account for missing value
Somehow I skipped 6xl? I'm an idiot.
2019-03-02 15:58:31 -05:00
Adam Wathan 7a412dca1b Remove fontSize comments
Not really as useful when we aren't publishing the config, plus we
don't list them in the docs either.
2019-03-01 19:57:21 -05:00
Adam Wathan 71a8b6f115 Use progressive maxWidth scale 2019-03-01 14:29:38 -05:00
Adam WathanandGitHub 39cd89fb19 Merge pull request #700 from tailwindcss/make-flex-customizable
Make flex-* utilities customizable
2019-03-01 13:52:46 -05:00
Adam Wathan 0f116a3e75 Make flex-* utilities customizable 2019-03-01 13:46:53 -05:00
Adam Wathan 75c54b71f5 Add 40/48/56/64 to shared spacing scale 2019-03-01 13:41:47 -05:00
Adam Wathan 5c8315dc91 Add 56 value for width/height 2019-03-01 13:27:56 -05:00
Adam Wathan c3d00f4691 Update shadows to incorporate progressive negative spread 2019-02-28 07:46:26 -05:00
Adam Wathan 7f422eb01b Update fixtures 2019-02-27 20:31:53 -05:00
Adam Wathan 6df1566023 Add new shadows (need to update fixtures though) 2019-02-27 20:31:53 -05:00
Adam Wathan 17a3698caf Make flex-grow/shrink customizable 2019-02-26 13:45:12 -05:00
Adam Wathan 8c28ec16d5 Update default breakpoints 2019-02-22 21:20:22 -05:00
Adam Wathan 1d05dee59d Fix style 2019-02-22 12:47:23 -05:00
Nestor Vera a20512acf9 Allow users to configure cursors 2019-02-22 16:47:58 +01:00
Adam WathanandGitHub 2545de0512 Merge pull request #671 from tailwindcss/extend-tracking-scale
Extend letter-spacing scale
2019-02-21 15:03:37 -05:00
Adam WathanandGitHub 4f87b198b1 Merge pull request #673 from tailwindcss/extend-line-height-scale
Add snug and relaxed line-heights
2019-02-21 11:42:50 -05:00
Nestor Vera 9c5a249f4d Allow users to customize objectPostions 2019-02-21 12:51:15 +01:00
Adam Wathan f89a75e072 Add snug and relaxed line-heights 2019-02-20 19:41:55 -05:00
Adam Wathan cf225257c0 Remove leading zeroes 2019-02-20 14:50:02 -05:00
Adam Wathan 0e790669ce Extend letter-spacing scale 2019-02-20 14:44:19 -05:00
Adam Wathan 2dd11b379e Rename tracking plugin to letterSpacing 2019-02-19 15:54:07 -05:00
Adam Wathan 676847f972 Rename leading plugin to lineHeight 2019-02-19 15:49:33 -05:00
Adam Wathan adbc082d6d Fix conflicts 2019-02-18 09:39:38 -05:00
Adam Wathan aa9e50edb1 Update width and height to share spacing values 2019-02-16 20:53:35 -05:00
Adam Wathan a06fe941d5 Extract padding/margin values to spacing 2019-02-16 20:33:05 -05:00
Adam Wathan 13eee3647e Revert renaming leading to lineHeight 2019-02-15 22:08:58 -05:00
Adam Wathan d65ce2f752 Revert renaming tracking to letterSpacing 2019-02-15 22:07:37 -05:00
Adam Wathan 4c9f5b780e Rename textColors to textColor 2019-02-15 15:31:06 -05:00
Adam Wathan da1c4e5adb Rename tracking to letterSpacing 2019-02-15 15:24:40 -05:00
Adam Wathan 467fbb29cb Rename textSizes to fontSize 2019-02-15 15:21:27 -05:00
Adam Wathan 8ab2ddf2ff Rename svgStroke to stroke 2019-02-15 15:20:05 -05:00
Adam Wathan c4f3fb7dab Rename svgFill to fill 2019-02-14 15:33:51 -05:00
Adam Wathan a6e9d4b0c6 Rename shadows to boxShadow 2019-02-14 15:32:38 -05:00
Adam Wathan c580cea7a9 Rename leading plugin to lineHeight 2019-02-14 15:31:19 -05:00
Adam Wathan c0988414cb Rename fontWeights to fontWeight 2019-02-14 15:25:35 -05:00
Adam Wathan 93af642427 Rename borderWidths to borderWidth 2019-02-14 15:24:20 -05:00
Adam Wathan 364c8cdb5e Rename borderColors to borderColor 2019-02-14 15:23:22 -05:00
Adam Wathan 3259928f54 Rename backgroundColors to backgroundColor 2019-02-14 15:20:07 -05:00
Adam Wathan 8a75b1583e Rename fonts plugin to fontFamily 2019-02-14 14:39:08 -05:00
Adam Wathan 9e2786ddb7 Finish merge of master 2019-02-07 13:58:47 -05:00
Adam Wathan 25e362c97c Remove colors constant 2019-02-05 20:42:14 -05:00
Adam Wathan 8996879988 Rename mergeConfig to resolveConfig
Accept configs to resolve as an array to allow reuse when only resolving from a single config, update processTailwindFeatures to use resolveConfig even when no config is provided, update defaultTheme to self-reference colors.
2019-02-05 20:36:54 -05:00
Adam Wathan e48c30eb7c Fix code style 2019-02-01 12:32:50 -05:00