tailwindcss/__tests__
Adam Wathan 53ca284553 Remove config() function in favor of theme()
The only reason the config() helper function existed was to access your design tokens in your CSS, like:

```css
.foo {
  color: config('colors.blue')
}
```

Now that design tokens are nested in the new `theme` section, using the `config()` function is a bit more verbose:

```css
.foo {
  color: config('theme.colors.blue')
}
```

This PR removes the `config()` function in favor of a new `theme()` function that is already scoped to the `theme` section of the config:

```css
.foo {
  color: theme('colors.blue')
}
```

I can't think of any reason at all why you would need to access the non-theme values in your config from your CSS (like enabled variants, or your list of plugins), and the word `theme` is much more expressive than `config`, so I think this is a worthwhile change.
2019-03-01 08:35:24 -05:00
..
fixtures Remove config() function in favor of theme() 2019-03-01 08:35:24 -05:00
applyAtRule.test.js Fix test 2019-02-28 14:39:59 -05:00
cli.compile.test.js Refactored the CLI build process to use configuration object instead of many arguments. 2019-02-04 21:42:27 -06:00
cli.test.js Don't skip CLI tests 2019-02-01 12:32:50 -05:00
cli.utils.test.js Refactored the CLI build process to use configuration object instead of many arguments. 2019-02-04 21:42:27 -06:00
configurePlugins.test.js Update plugins to source their config themselves 2019-02-28 14:53:55 -05:00
containerPlugin.test.js Move screens into theme config 2019-02-01 12:32:50 -05:00
customConfig.test.js Move screens into theme config 2019-02-01 12:32:50 -05:00
defaultConfig.test.js Rename test to be more clear 2017-11-24 14:14:04 -05:00
escapeClassName.test.js Switch to more robust existing CSS escaping library 2018-06-04 09:14:38 -04:00
parseObjectStyles.test.js Get object style parsing working without the insanity 2018-03-07 09:37:01 -05:00
prefixSelector.test.js Remove prefixTree, update relevant tests 2019-01-14 15:43:12 -05:00
processPlugins.test.js Fix undefined var in one test 2019-02-22 16:59:56 +01:00
resolveConfig.test.js Fix code style 2019-02-14 07:48:57 -05:00
responsiveAtRule.test.js Finish merge of master 2019-02-07 13:58:47 -05:00
sanity.test.js Move important to top level option 2019-02-01 12:32:50 -05:00
themeFunction.test.js Remove config() function in favor of theme() 2019-03-01 08:35:24 -05:00
variantsAtRule.test.js Require plugin authors to manually escape variants 2019-02-28 10:17:09 -05:00