10 Commits

Author SHA1 Message Date
Adam Wathan
d6e22b944e Remove leading dot from apply case in sanity test 2020-08-13 07:44:59 -04:00
Adam Wathan
beb83de208 Replace 0.x colors with rough draft of 1.0 colors
These will 100% change, but the names are at least correct, and the colors are probably ~close. Hoping to finish fine-tuning these by the end of the week.
2019-03-13 21:06:46 -04:00
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
Adam Wathan
690c7f2d52 Convert preflight to plugin 2019-02-07 15:19:54 -05:00
Adam Wathan
f3097f9421 Move colors inside of theme 2019-02-01 12:32:50 -05:00
Adam Wathan
7c8e6f9d25 Enable more variants by default 2018-06-20 14:34:50 -04:00
Adam Wathan
20461a3418 Generate container classes as components, not utilities 2018-03-12 15:34:34 -04:00
Adam Wathan
960275cc86 Add container classes as utilities not components
Just for now so that this feature can be introduced into the codebase
without forcing a BC break. The container classes will eventually be
moved to a built-in plugin that adds them as components.
2018-03-05 09:58:35 -05:00
Adam Wathan
5f77aa0ec3 Implement basic plugin system 2018-03-05 09:58:35 -05:00
Adam Wathan
e46cc65d80 Remove example class from dist build
Still want to be including this in our tests, so sanity test now runs
against a separate fixture.
2017-11-02 13:25:50 -04:00