44 Commits

Author SHA1 Message Date
Robin Malfait
df1732cce5
add ability to merge arrays of objects when using extend (#2700) 2020-10-29 10:17:10 -04:00
Robin Malfait
09d9262666
add the ability to deep merge extended configs (#2679) 2020-10-26 11:15:50 -04:00
Adam Wathan
11af870f30
Support extend in variants config (#2651)
* WIP

* It's alive

* Pull default variant order from config
2020-10-23 08:58:28 -04:00
Adam Wathan
21d4b8c787 Apply new prettier defaults 2020-10-17 20:34:11 -04:00
Adam Wathan
38b4eeb288 Prettier likes parens a lot now
git blame is now broken forever.
2020-10-16 15:39:44 -04:00
Adam Wathan
038afedfac
Merge plugins when resolving config (#2561) 2020-10-14 12:45:59 -04:00
Adam Wathan
ac82484dd9
Don't import corePlugins in resolveConfig (#2548) 2020-10-13 08:14:57 -04:00
Adam Wathan
b299b6fbe1
Support new presets key + extending core plugins config (#2474)
* WIP

* Support array for Tailwind config

* Drop array format for `presets` key instead

* Update changelog
2020-10-08 11:21:39 -04:00
Adam Wathan
476950ce40
Support defining variants as functions for easier extending (#2309)
* Support defining variants as functions for easier extending

* Fix style

* Remove commented code

* Add 'without' helper to variant function API

* Update changelog
2020-09-04 10:59:02 -04:00
Adam Wathan
311fc66410 Merge changes from 1.1.3 and fix conflicts 2019-10-22 13:04:46 -04:00
Adam Wathan
e3576242a4 Ensure all function properties receive config utils 2019-10-22 12:59:42 -04:00
Adam Wathan
2fa0d4e821 Fix style 2019-10-13 20:35:18 -04:00
Adam Wathan
5911bd704c Reverse extend array to guarantee correct precedence 2019-10-13 20:31:32 -04:00
Adam Wathan
872fe25259 Fix test 2019-10-13 20:29:07 -04:00
Adam Wathan
66ec10edda Add test to document plugin extend behavior 2019-10-13 13:49:23 -04:00
Adam Wathan
94a1d30809 Make handler optional in object plugins 2019-10-12 13:46:51 -04:00
Adam Wathan
53dff626a7 Fix style 2019-10-12 13:41:28 -04:00
Adam Wathan
65d45689ae Allow plugins to provide their own config object 2019-10-12 13:40:00 -04:00
Adam Wathan
33e5546e9b Fix style 2019-10-12 13:05:08 -04:00
Adam Wathan
4c25ca5ed6 Apply config modifications to default config, before resolving config 2019-10-12 13:05:08 -04:00
Adam Wathan
eb24d5067c Fix style 2019-10-12 12:53:32 -04:00
Adam Wathan
e7b831fc09 Allow resolving an arbitrary number of stacked config files 2019-10-12 10:24:01 -04:00
Adam Wathan
19c74b106a Merge branch 'add-prefix-selector-support' of git://github.com/pxwee5/tailwindcss into pxwee5-add-prefix-selector-support 2019-08-06 07:56:34 -04:00
Adam Wathan
25b3aba7d7 Use reduce-css-calc to avoid inspecting value to negate 2019-08-06 07:42:38 -04:00
Ari Seyhun
d3675ebd23 Add support for negative calc values 2019-08-01 13:32:10 +09:30
Ari Seyhun
03b73b135d Add test for negative custom properties 2019-08-01 13:16:11 +09:30
James Wee
12ba0c8916 Changed important (string) to important (selector) 2019-07-11 19:36:48 +12:00
James Wee
382075731d Added Prefix Selector support via important config 2019-07-11 17:07:24 +12:00
Adam Wathan
0183b86b45 Fix global variants not working when configs are merged 2019-05-13 12:44:19 -04:00
Jarek Radosz
23b720bb31 Allow accessing deep paths with function values via theme helper
Example:

```js
theme: {
  spacing: {
    '0': '0',
  },
  width: theme => ({
    ...theme('spacing'),
    '1/3': '33.33333%',
  }),
  minWidth: theme => ({
    '1/3': theme('width.1/3'),
  }),
}
```
2019-05-08 22:11:10 +02:00
Adam Wathan
aac25d6a7a Fix bug where config utils was not passed through to nested closures 2019-04-27 16:55:21 -04:00
Adam Wathan
57284d92b0 Fix style, run whole test suite dummy 2019-03-25 08:00:06 -07:00
Adam Wathan
e5a97a1b04 Test that theme function resolves functions deeply 2019-03-25 07:59:10 -07:00
Brad Cornes
be3be14586 add failing test 2019-03-24 20:10:09 +00:00
Adam Wathan
f5e8c74639 Don't mutate variants in user's config 2019-03-22 13:13:39 -04:00
Adam Wathan
7e1113561a Don't mutate the user's config when resolving 2019-03-22 12:47:21 -04:00
Adam Wathan
509b698bfc Simplify resolveConfig slightly, try to catch more in tests 2019-03-18 11:21:32 -04:00
Jarek Radosz
62972a7693 Lazily evaluate values in the extend section
In a way this combines PRs #655 and #774.
2019-03-17 05:31:35 +01:00
Adam Wathan
fcd0f364db Pass theme to closures as function instead of object 2019-03-16 16:22:31 -04:00
Adam Wathan
c56b56db3e Fix code style 2019-02-14 07:48:57 -05:00
Adam Wathan
e1dd08dad3 Add test to document extend is not deeply merged 2019-02-14 07:43:50 -05:00
Adam Wathan
d95d28eec8 Fix code style 2019-02-13 14:25:37 -05:00
Adam Wathan
8ff2b59096 Add first class support for extending the default theme 2019-02-13 13:07:41 -05:00
Adam Wathan
04e1274e86 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