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
2017-11-23 09:58:25 -05:00
2019-02-26 09:59:50 -05:00
2018-09-25 11:09:20 -05:00
2019-02-27 13:31:13 -05:00
2018-02-24 08:12:55 -05:00
2017-12-29 22:32:43 +01:00
2019-02-27 16:40:19 -05:00
2019-02-14 08:51:33 -05:00
2019-02-07 15:19:54 -05:00
2019-02-27 13:53:28 -05:00


A utility-first CSS framework for rapidly building custom user interfaces.

Build Status Total Downloads Latest Release License


Documentation

For full documentation, visit tailwindcss.com.

Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

Discuss Tailwind CSS on GitHub

For casual chit-chat with others using the framework:

Join the Tailwind CSS Discord Server

Contributing

If you're interested in contributing to Tailwind CSS, please read our contributing docs before submitting a pull request.

Description
A utility-first CSS framework for rapid UI development.
Readme 222 MiB
Languages
JavaScript 90.6%
CSS 7.6%
HTML 1.7%