Skip to content

Commit 707749a

Browse files
update to Tailwind CSS 0.2.1
1 parent c707e51 commit 707749a

File tree

3 files changed

+31
-26
lines changed

3 files changed

+31
-26
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A Laravel front-end scaffolding preset for [Tailwind CSS](https://tailwindcss.com) - a Utility-First CSS Framework for Rapid UI Development.
44

5-
*Current version:* **Tailwind CSS 0.1.6**
5+
*Current version:* **Tailwind CSS 0.2.1**
66

77
## Usage
88

src/TailwindCssPreset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function installAuth()
2727
protected static function updatePackageArray(array $packages)
2828
{
2929
return [
30-
'tailwindcss' => '^0.1.6',
30+
'tailwindcss' => '^0.2.1',
3131
] + Arr::except($packages, ['bootstrap-sass', 'jquery']);
3232
}
3333

src/tailwindcss-stubs/tailwind.js

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ View the full documentation at https://tailwindcss.com.
2424
|
2525
*/
2626

27-
// var defaultConfig = require('tailwindcss').defaultConfig()
27+
// var defaultConfig = require('tailwindcss/defaultConfig')()
2828

2929

3030
/*
@@ -157,10 +157,10 @@ module.exports = {
157157

158158
/*
159159
|-----------------------------------------------------------------------------
160-
| Screens https://tailwindcss.com//docs/responsive-design
160+
| Screens https://tailwindcss.com/docs/responsive-design
161161
|-----------------------------------------------------------------------------
162162
|
163-
| Screens in Tailwind are essentially CSS media queries. They define the
163+
| Screens in Tailwind are translated to CSS media queries. They define the
164164
| responsive breakpoints for your project. By default Tailwind takes a
165165
| "mobile first" approach, where each screen size represents a minimum
166166
| viewport width. Feel free to have as few or as many screens as you
@@ -170,6 +170,8 @@ module.exports = {
170170
| useful in certain situations. Be sure to see the full responsive
171171
| documentation for a complete list of options.
172172
|
173+
| Class name: .{screen}:{utility}
174+
|
173175
*/
174176

175177
screens: {
@@ -210,6 +212,7 @@ module.exports = {
210212
'Fira Sans',
211213
'Droid Sans',
212214
'Helvetica Neue',
215+
'sans-serif',
213216
],
214217
'serif': [
215218
'Constantia',
@@ -263,8 +266,6 @@ module.exports = {
263266
'3xl': '1.875rem', // 30px
264267
'4xl': '2.25rem', // 36px
265268
'5xl': '3rem', // 48px
266-
'6xl': '4rem', // 64px
267-
'7xl': '5.25rem', // 84px
268269
},
269270

270271

@@ -373,7 +374,7 @@ module.exports = {
373374
|
374375
| Here is where you define your border widths. Take note that border
375376
| widths require a special "default" value set as well. This is the
376-
| width that will be used when you do not specify a border color.
377+
| width that will be used when you do not specify a border width.
377378
|
378379
| Class name: .border{-side?}{-width?}
379380
|
@@ -413,20 +414,23 @@ module.exports = {
413414
| Border radius https://tailwindcss.com/docs/border-radius
414415
|-----------------------------------------------------------------------------
415416
|
416-
| Here is where you define your border radius values. Take note that
417-
| a default radius is required. This is the value used for the
418-
| non-suffixed version of this utility (.rounded).
417+
| Here is where you define your border radius values. If a `default` radius
418+
| is provided, it will be made available as the non-suffixed `.rounded`
419+
| utility.
420+
|
421+
| If your scale includes a `0` value to reset already rounded corners, it's
422+
| a good idea to put it first so other values are able to override it.
419423
|
420-
| Class name: .rounded-{radius?}
424+
| Class name: .rounded{-side?}{-size?}
421425
|
422426
*/
423427

424428
borderRadius: {
425-
default: '.25rem',
429+
'none': '0',
426430
'sm': '.125rem',
431+
default: '.25rem',
427432
'lg': '.5rem',
428433
'full': '9999px',
429-
'none': '0',
430434
},
431435

432436

@@ -619,7 +623,7 @@ module.exports = {
619623
| common use-cases like "1px". You can, of course, modify these
620624
| values as needed.
621625
|
622-
| Class name: .p{-side?}-{size}
626+
| Class name: .p{side?}-{size}
623627
|
624628
*/
625629

@@ -646,11 +650,12 @@ module.exports = {
646650
| common use-cases like "1px". You can, of course, modify these
647651
| values as needed.
648652
|
649-
| Class name: .m{-side?}-{size}
653+
| Class name: .m{side?}-{size}
650654
|
651655
*/
652656

653657
margin: {
658+
'auto': 'auto',
654659
'px': '1px',
655660
'0': '0',
656661
'1': '0.25rem',
@@ -673,7 +678,7 @@ module.exports = {
673678
| generally get used together. You can, of course, modify these
674679
| values as needed.
675680
|
676-
| Class name: .-m{-side?}-{size}
681+
| Class name: .-m{side?}-{size}
677682
|
678683
*/
679684

@@ -698,8 +703,8 @@ module.exports = {
698703
| the defaults we provide, it's possible to apply multiple shadows
699704
| per utility using comma separation.
700705
|
701-
| Take note that a default shadow is required. This is the value used
702-
| for the non-suffixed version of this utility (.shadow).
706+
| If a `default` shadow is provided, it will be made available as the non-
707+
| suffixed `.shadow` utility.
703708
|
704709
| Class name: .shadow-{size?}
705710
|
@@ -728,13 +733,13 @@ module.exports = {
728733
*/
729734

730735
zIndex: {
736+
'auto': 'auto',
731737
'0': 0,
732738
'10': 10,
733739
'20': 20,
734740
'30': 30,
735741
'40': 40,
736742
'50': 50,
737-
'auto': 'auto',
738743
},
739744

740745

@@ -762,17 +767,17 @@ module.exports = {
762767

763768
/*
764769
|-----------------------------------------------------------------------------
765-
| Packages
770+
| Options https://tailwindcss.com/docs/configuration#options
766771
|-----------------------------------------------------------------------------
767772
|
768-
| Here is where you can define the configuration for any Tailwind packages
769-
| you're using. These can be utility packs, component bundles, or even
770-
| complete themes. You'll want to reference each package's
771-
| documentation for a list of settings available for it.
773+
| Here is where you can set your Tailwind configuration options. For more
774+
| details about these options, visit the configuration options documentation.
772775
|
773776
*/
774777

775-
packages: {
778+
options: {
779+
prefix: '',
780+
important: false,
776781
},
777782

778783
}

0 commit comments

Comments
 (0)