175 Commits

Author SHA1 Message Date
Adam Wathan
f5c0e301a5 Fix bug where browserslist target didn't work outside of tuple syntax 2020-05-01 15:30:39 -04:00
Adam Wathan
652100e2d5 Add corePlugins function to plugin API 2020-05-01 14:41:12 -04:00
Adam Wathan
1117e28c5c Add support for browserslist as target 2020-04-29 16:25:20 -04:00
Adam Wathan
b4acd94390 Generate non-composable transforms in IE11 target mode 2020-04-29 16:25:20 -04:00
Adam Wathan
371a79feca Support plugin-specific target mode 2020-04-29 16:25:20 -04:00
Adam Wathan
e5288ff8fe Remove target helper 2020-04-29 16:24:26 -04:00
Adam Wathan
2950ff339b Initial support for IE11 target 2020-04-29 16:24:26 -04:00
Adam Wathan
f94e2c37f2 Fix import 2020-04-26 11:05:42 -04:00
Adam Wathan
3b565d1f9c Add opacity modifiers for color utilities 2020-04-26 09:49:23 -04:00
Adam Wathan
b3a7f7788a Test making config function optional, refactor to default parameter 2020-01-04 12:35:12 -05:00
Benoît Rouleau
eb2f3669e3 Fix plugin.withOptions() when no config function is passed 2020-01-03 12:36:33 -05:00
Adam Wathan
038b158e28 Add max-w-screen-{breakpoint} utilities 2019-12-27 08:53:47 -05:00
Adam Wathan
872dcdc515 Update createUtilityPlugin to support generating multiple utilities for a single themeKey 2019-12-25 13:54:10 -05:00
Adam Wathan
2ae6ee6c12 Update fixtures and code style 2019-12-25 13:54:09 -05:00
Adam Wathan
5335df2b2c Add first pass of transform utilities 2019-12-25 13:54:09 -05:00
Adam Wathan
26337bc39f Add new plugin and plugin.withOptions functions for creating plugins 2019-12-20 10:53:27 -05: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
5911bd704c Reverse extend array to guarantee correct precedence 2019-10-13 20:31:32 -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
e130771c32 Allow plugins to modify the config 2019-10-12 13:04:02 -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
b91f0ef628 Ignore values not parseable by reduce-css-calc 2019-08-09 16:10:41 -04:00
Adam Wathan
763ee71033 Ensure all selectors in a rule receive important scope 2019-08-06 08:14:16 -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
5da23984a5
Merge pull request #992 from AlexVipond/prefixNegativeModifiers_for_boxShadow_and_letterSpacing_and_lineHeight
Support negative prefix syntax for boxShadow and letterSpacing
2019-08-06 07:54:19 -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
c3075d97fe Add support for negative css custom properties 2019-08-01 12:57:46 +09:30
Adam Wathan
660ea44db2 Don't mutate nested rules when generating variants 2019-07-28 10:46:59 -04:00
ecrmnn
66e75b89ab Replaces use of Lodash isArray with built-in Array.isArray 2019-07-13 16:52:07 +02:00
James Wee
382075731d Added Prefix Selector support via important config 2019-07-11 17:07:24 +12:00
AlexVipond
a249bc4433 Handle default keyword for negative prefix syntax. Write tests for negative prefix syntax 2019-06-28 10:11:47 -06:00
AlexVipond
fd203a8906 support negative prefix for box shadow and letter spacing 2019-06-27 19:44:38 -06:00
Adam Wathan
5e7c263e0a Add test, fix style 2019-05-27 08:05:51 +02:00
Benoît Rouleau
6ce2cfe349 Bubble @screen at-rules when adding styles through plugins 2019-05-26 21:40:23 -04: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
0735e3d27e Remove 'className' from plugin API
Certain plugins behave differently and the rules about `default` meaning "no suffix" are not universal (see the cursor plugin). The simplest thing to do right now is keep things as they are, which means only certain plugins respect the default option and only certain other plugins respect the negative prefix convention.
2019-04-26 08:19:23 -04:00
Adam Wathan
8fb2351463 Make second parameter to className optional 2019-04-25 07:59:47 -04:00
Adam Wathan
c6ae957aff Support negative values for inset 2019-04-24 16:37:13 -04:00
Adam Wathan
e8b64fdb62 Move negative margin logic into a helper
Adds a new `utils` bucket that's passed as a second arg when using a closure for theme values. The idea is you can destructure useful helper functions out of this argument, in this case a `negative` function that converts a positive scale to negative values. That's the only helper function right now, but making it a destructurable arg so we can add more if necessary without adding a bunch of positional arguments.
2019-04-24 15:15:30 -04:00
Michaël De Boey
d4b2b8b755
Make theme config directly accessible in the plugins 2019-04-18 23:29:07 +02:00
Adam Wathan
0e0ab3ab7a Make it possible to whitelist core plugins by passing an array 2019-04-18 10:31:14 -04:00