@@ -21,9 +21,31 @@ layouts-css makes it a breeze to layout HTML with it's easy-to-understand CSS la
2121
2222<hr />
2323
24- ## Getting Started  
24+ ## Getting Started using tailwind V4  
25+ There are two approaches
2526
26- ℹ️ This guide assume you have Tailwind already setup and configured.
27+ #### Options 1 - (Recommended) Copy paste into your global.css  
28+ Tailwind v4 introduces css based config meaning code can be shared without another npm package to download
29+ 
30+ *  Copy everything in [ layouts.css] ( src/layouts.css ) 
31+ *  Paste into your ` global.css ` 
32+ 
33+ 💥 Boom - you're done and with one less package
34+ 
35+ #### Options 2 - Link in your node modules  
36+ 
37+ ` npm i -D @layouts-css/tailwindcss ` 
38+ 
39+ In ` global.css `  add the
40+ ``` 
41+ @import '@layouts-css/tailwindcss-layouts/src/layouts.css'; 
42+ ``` 
43+ 
44+ Seriously though don't do this...
45+ 
46+ ## Getting Started using tailwind V3  
47+ 
48+ ℹ️ This guide assume you have Tailwind v3 already setup and configure.
2749
2850#### Install package  
2951
@@ -1096,15 +1118,6 @@ Bonus
10961118
10971119` h-max-{number} `  the element can have a max height set
10981120
1099- <br />
1100- 
1101- ### 🔲 Size  
1102- 
1103- Shorthand helper class for setting the same width and height property.
1104- 
1105- ` s-hug `  the element hugs the width and height of it's content.
1106- 
1107- ` s-fill `  the element fills the remaining width and height of it's parent element.
11081121
11091122<br />
11101123
@@ -1139,15 +1152,6 @@ module.exports = {
11391152-  Elements without a layout class will respect default html block & inline element behavior.
11401153-  ` body `  & ` html `  both have ` width `  and ` height `  set to ` 100% ` 
11411154
1142- <br />
1143- 
1144- ## Demo  
1145- 
1146- If you are interested in comparing layouts with and without check out the following Tailwind CSS play links:
1147- 
1148- -  ❌ [ Without layouts-css] ( https:// )  ** 🚧 Coming Soon** 
1149- 
1150- -  ✅ [ With layouts-css] ( https:// )  ** 🚧 Coming Soon** 
11511155
11521156<br >
11531157
@@ -1163,7 +1167,6 @@ A: Hopefully not for long
11631167_ ** 🚧 Coming soon** _ 
11641168
11651169-  [ @layouts-css/plain-css  ] ( https://github.com/layouts-css/plain-css ) 
1166- -  [ @layouts-css/vanilla-extract  ] ( https://github.com/layouts-css/vanilla-extract )  (CSS in JS/TS)
11671170
11681171<br >
11691172
0 commit comments