28 Commits

Author SHA1 Message Date
Adam Wathan
bdbec26136 Use font-sans as the default font, not the system font 2020-02-03 11:50:40 -05:00
Adam Wathan
7815e01d71 Update fixtures, add system-ui to sans font stack as well 2020-02-03 11:44:36 -05:00
Adam Argyle
ef248321aa
adding system-ui to the font-family list
https://caniuse.com/#feat=font-family-system-ui

if a browser supports system-ui, it'll choose the best font and won't cascade through the fallback list. this protects tailwind from it's static list not being as up to date with platforms fonts as time goes on.
2020-01-22 13:25:01 -08:00
Benoît Rouleau
a158c7c7eb Change button background reset in Preflight 2019-12-25 13:54:10 -05:00
Nestor Vera
2821f189cb Fix box-sizing for shadow-dom elements 2019-09-06 13:58:55 +02:00
Adam Wathan
84964c7744 Fix base styles for horizontal rules 2019-08-14 07:54:33 -04:00
Adam Wathan
371d320eeb Use hard-coded default placeholder color
IE 11 doesn't support opacity properly on placeholders and causes the entire input to render with that opacity. This fixes that bug.
2019-08-06 11:09:47 -04:00
AlexVipond
2304f64119 add hr css 2019-06-27 19:20:25 -06:00
Adam Wathan
6d1533e9a8 Revert #745, always default to bolder for strong tags 2019-03-18 13:10:54 -04:00
Adam Wathan
0bbf942897 Make replaced elements block by default, preserve aspect ratio 2019-03-15 10:25:48 -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
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
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
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
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
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
df8fe5afa6 Rename borderColors to borderColor 2019-02-14 15:23:22 -05:00
Adam Wathan
32fd2151c8 Depend on normalize.css properly 2019-02-11 15:49:12 -05:00
Adam Wathan
a9a0cf03e5 Move preflight CSS into plugins directory 2019-02-07 15:27:17 -05:00