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
b91f0ef628
Ignore values not parseable by reduce-css-calc
2019-08-09 16:10:41 -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
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
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
Brad Cornes
caa687a59b
account for function values in theme function
2019-03-24 20:10:15 +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
aee1e44431
Fix code style
2019-03-18 11:42:56 -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
4754d225af
Remove need for without function
2019-02-14 07:47:32 -05:00
Adam Wathan
d95d28eec8
Fix code style
2019-02-13 14:25:37 -05:00
Adam Wathan
2342d72c5e
Use existing parameter
2019-02-13 14:22:45 -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