1052 Commits

Author SHA1 Message Date
Adam Wathan
4f20e968c1 Split wordBreak plugin from whitespace plugin 2019-03-15 07:54:28 -04:00
Matt Stypa
7ec4b11d73 Ripped out the code no longer needed 2019-03-14 20:24:31 -05:00
Matt Stypa
9e4f54a17f Merging in changes from upstream 2019-03-14 18:07:29 -05:00
Matt Stypa
9e835e4546 Fixed failing tests and added additional coverage 2019-03-14 16:51:36 -05:00
mattstypa
92b3b0c0a1 Updated CLI init commend 2019-03-14 15:51:21 -05:00
Adam Wathan
8fa379a995 Remove super old deprecation error 2019-03-14 15:20:06 -04:00
Adam Wathan
f3db5f1a47
Merge pull request #765 from tailwindcss/make-container-core
Make container plugin a core plugin, configured in theme
2019-03-14 15:16:39 -04:00
Adam Wathan
fefc53b88b Reintroduce ability for screens to be passed explicitly 2019-03-14 14:54:20 -04:00
Adam Wathan
c6449f8fa8 Make container plugin a core plugin, configured in theme 2019-03-14 14:36:28 -04:00
Adam Wathan
33bfb8793f Make inset utilities customizable 2019-03-14 12:35:37 -04:00
Adam Wathan
1940e31b12 Rename pin utilities to top/right/bottom/left/inset 2019-03-14 12:23:51 -04:00
Adam Wathan
eba4600c01 Split pin utilities into inset plugin 2019-03-14 12:19:14 -04:00
Adam Wathan
9d9ceca5e4 Combine wrap-normal and break-normal, rename wrap-break to break-words
This preserves backwards compatibility with Tailwind 0.x and provides some useful normalization on top of these two funky ass properties.
2019-03-14 08:41:12 -04:00
Adam Wathan
310b848bbf
Merge pull request #761 from tailwindcss/list-utilities
Rework list utilities
2019-03-13 20:05:09 -04:00
Adam Wathan
4be5af28ff Unstyle lists by default 2019-03-13 19:45:23 -04:00
Adam Wathan
e13413153f Add list-inside and list-outside utilities 2019-03-13 19:45:23 -04:00
Adam Wathan
7b8ebc525e Make listStyleType customizable 2019-03-13 19:44:35 -04:00
Adam Wathan
137159aaa9 Rename list-reset to list-none, remove padding declaration 2019-03-13 19:44:35 -04:00
Adam Wathan
f4e9100799 Make link styling opt-in instead of opt-out 2019-03-13 13:26:19 -04:00
Adam Wathan
87cf9df68e Use configured monospace font for monospace elements 2019-03-12 21:28:27 -04:00
Adam Wathan
525d03b7dc Support unquoted lists as default theme function values 2019-03-12 21:20:31 -04:00
Adam Wathan
35a4100f15 Default to Tailwind's 'normal' line-height 2019-03-12 20:35:27 -04:00
Adam Wathan
209b71a83d Use system font stack by default instead of sans-serif 2019-03-12 20:22:12 -04:00
Adam Wathan
0d25dd274d Use configured bold for strong tags 2019-03-12 17:19:34 -04:00
Adam Wathan
3d12231bdb Remove background color transparent 2019-03-12 17:05:20 -04:00
Adam Wathan
b4db53676e Don't reset form elements quite as aggressively 2019-03-12 16:59:25 -04:00
Adam Wathan
58f581ef32 Reset form elements even more aggressively 2019-03-12 11:18:42 -04:00
Adam Wathan
c246f19773 Make form elements inherit more font properties 2019-03-12 10:59:16 -04:00
Geoff Selby
64cea138ee Add disabled variant
This commit adds a `disabled` variant to the Tailwind core. Not sure if/where this would be used by default.
2019-03-07 22:37:44 -06:00
Adam Wathan
da4984e0e1 Support default key in color objects 2019-03-05 11:36:31 -05:00
Adam Wathan
43ea7311d5
Merge pull request #697 from tailwindcss/rename-config-to-theme
Remove config() function in favor of theme()
2019-03-05 09:42:58 -05:00
Adam Wathan
817f68595d
Merge pull request #707 from tailwindcss/nested-color-object
Support object syntax for theme colors
2019-03-05 09:42:37 -05:00
Adam Wathan
6a592930a4 Simplify ternary to or statement 2019-03-05 07:41:26 -05:00
Adam Wathan
7ade6ea744 Load tailwind.config.js automatically if present 2019-03-04 16:27:38 -05:00
Adam Wathan
9b07984144 Support nested object for borderColor plugin 2019-03-04 13:10:34 -05:00
Adam Wathan
bfde7e4d6e Support nested object for textColor plugin 2019-03-04 13:09:35 -05:00
Adam Wathan
c3c9cdf5d6 Support nested object for backgroundColor plugin 2019-03-04 13:05:18 -05:00
Adam Wathan
fb451e7aa6 Update font-size and font-weight to inherit 2019-03-02 13:05:39 -05:00
Adam Wathan
c3886066cc Reset heading styles in preflight
Set all headings to inherit the parent font size and reset the font
weight to normal. This prevents you from accidentally using browser
default sizes in your designs and deviating from your design system.
2019-03-01 20:53:01 -05:00
Adam Wathan
7482ed55d1 Make flex-* utilities customizable 2019-03-01 13:46:53 -05:00
Adam Wathan
cd64304d7b Merge branch 'master' into next 2019-03-01 09:07:15 -05:00
Adam Wathan
a7a95b15c8 Escape tracking class names 2019-03-01 09:06:58 -05: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
e99753bc33 Update plugins to source their config themselves
Instead of plugins being configured directly, they grab their configuration from the Tailwind config passed to them. This makes core plugins consistent with how we will recommend third-party plugins be authored so that the configuration for everything in the system is readable through the theme.
2019-02-28 14:53:55 -05:00
Adam Wathan
928bc549dd Source zIndex options from config 2019-02-28 14:22:52 -05:00
Adam Wathan
51b2d05506 Source width options from config 2019-02-28 12:39:17 -05:00
Adam Wathan
a9d9492ff9 Source whitespace options from config 2019-02-28 12:38:51 -05:00
Adam Wathan
340628f217 Source visibility options from config 2019-02-28 12:38:23 -05:00
Adam Wathan
bcdbcaaf4e Source verticalAlign options from config 2019-02-28 12:38:06 -05:00
Adam Wathan
7e848e71e4 Source userSelect options from config 2019-02-28 12:37:47 -05:00