Skip to content

Commit a945944

Browse files
Merge pull request #11 from cringer/tw030
Upgrade to TailwindCSS 0.3.0
2 parents 15eabc4 + b0dc8af commit a945944

File tree

3 files changed

+106
-5
lines changed

3 files changed

+106
-5
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.2.2**
5+
*Current version:* **Tailwind CSS 0.3.0**
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.2.2',
30+
'tailwindcss' => '^0.3.0',
3131
] + Arr::except($packages, ['bootstrap-sass', 'jquery']);
3232
}
3333

src/tailwindcss-stubs/tailwind.js

Lines changed: 104 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -767,17 +767,118 @@ module.exports = {
767767

768768
/*
769769
|-----------------------------------------------------------------------------
770-
| Options https://tailwindcss.com/docs/configuration#options
770+
| SVG fill https://tailwindcss.com/docs/svg
771771
|-----------------------------------------------------------------------------
772772
|
773-
| Here is where you can set your Tailwind configuration options. For more
774-
| details about these options, visit the configuration options documentation.
773+
| Here is where you define your SVG fill colors. By default we just provide
774+
| `fill-current` which sets the fill to the current text color. This lets you
775+
| specify a fill color using existing text color utilities and helps keep the
776+
| generated CSS file size down.
777+
|
778+
| Class name: .fill-{name}
779+
|
780+
*/
781+
782+
svgFill: {
783+
'current': 'currentColor',
784+
},
785+
786+
787+
/*
788+
|-----------------------------------------------------------------------------
789+
| SVG stroke https://tailwindcss.com/docs/svg
790+
|-----------------------------------------------------------------------------
791+
|
792+
| Here is where you define your SVG stroke colors. By default we just provide
793+
| `stroke-current` which sets the stroke to the current text color. This lets
794+
| you specify a stroke color using existing text color utilities and helps
795+
| keep the generated CSS file size down.
796+
|
797+
| Class name: .stroke-{name}
798+
|
799+
*/
800+
801+
svgStroke: {
802+
'current': 'currentColor',
803+
},
804+
805+
806+
/*
807+
|-----------------------------------------------------------------------------
808+
| Modules https://tailwindcss.com/docs/configuration#modules
809+
|-----------------------------------------------------------------------------
810+
|
811+
| Here is where you control which modules are generated and what variants are
812+
| generated for each of those modules.
813+
|
814+
| Currently supported variants: 'responsive', 'hover', 'focus'
815+
|
816+
| To disable a module completely, use `false` instead of an array.
817+
|
818+
*/
819+
820+
modules: {
821+
appearance: ['responsive'],
822+
backgroundAttachment: ['responsive'],
823+
backgroundColors: ['responsive', 'hover'],
824+
backgroundPosition: ['responsive'],
825+
backgroundRepeat: ['responsive'],
826+
backgroundSize: ['responsive'],
827+
borderColors: ['responsive', 'hover'],
828+
borderRadius: ['responsive'],
829+
borderStyle: ['responsive'],
830+
borderWidths: ['responsive'],
831+
cursor: ['responsive'],
832+
display: ['responsive'],
833+
flexbox: ['responsive'],
834+
float: ['responsive'],
835+
fonts: ['responsive'],
836+
fontWeights: ['responsive', 'hover'],
837+
height: ['responsive'],
838+
leading: ['responsive'],
839+
lists: ['responsive'],
840+
margin: ['responsive'],
841+
maxHeight: ['responsive'],
842+
maxWidth: ['responsive'],
843+
minHeight: ['responsive'],
844+
minWidth: ['responsive'],
845+
negativeMargin: ['responsive'],
846+
opacity: ['responsive'],
847+
overflow: ['responsive'],
848+
padding: ['responsive'],
849+
pointerEvents: ['responsive'],
850+
position: ['responsive'],
851+
resize: ['responsive'],
852+
shadows: ['responsive'],
853+
svgFill: [],
854+
svgStroke: [],
855+
textAlign: ['responsive'],
856+
textColors: ['responsive', 'hover'],
857+
textSizes: ['responsive'],
858+
textStyle: ['responsive', 'hover'],
859+
tracking: ['responsive'],
860+
userSelect: ['responsive'],
861+
verticalAlign: ['responsive'],
862+
visibility: ['responsive'],
863+
whitespace: ['responsive'],
864+
width: ['responsive'],
865+
zIndex: ['responsive'],
866+
},
867+
868+
/*
869+
|-----------------------------------------------------------------------------
870+
| Advanced Options https://tailwindcss.com/docs/configuration#options
871+
|-----------------------------------------------------------------------------
872+
|
873+
| Here is where you can tweak advanced configuration options. We recommend
874+
| leaving these options alone unless you absolutely need to change them.
775875
|
776876
*/
777877

778878
options: {
779879
prefix: '',
780880
important: false,
881+
separator: ':',
781882
},
782883

783884
}

0 commit comments

Comments
 (0)