File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @layouts-css/tailwindcss-plugin" ,
3- "version" : " 1.0.2 " ,
3+ "version" : " 1.1.0-alpha.1 " ,
44 "main" : " src/index.js" ,
55 "types" : " src/index.d.ts" ,
66 "repository" : " https://github.com/layouts-css/tailwindcss-plugin" ,
1616 "peerDependencies" : {
1717 "tailwindcss" : " >=3.0.0 || insiders"
1818 }
19- }
19+ }
Original file line number Diff line number Diff line change @@ -22,6 +22,16 @@ const layoutCss = withOptions((options = {}) => {
2222 flexShrink : '1' ,
2323 height : value ,
2424 } ) ,
25+ 'w-max' : ( value ) => ( {
26+ flexGrow : '1' ,
27+ flexShrink : '1' ,
28+ maxWidth : value ,
29+ } ) ,
30+ 'h-max' : ( value ) => ( {
31+ flexGrow : '1' ,
32+ flexShrink : '1' ,
33+ maxHeight : value ,
34+ } ) ,
2535 } ,
2636 { values : theme ( 'space' ) }
2737 ) ;
@@ -40,6 +50,11 @@ const layoutCss = withOptions((options = {}) => {
4050 height : 'fit-content' ,
4151 } ,
4252
53+ '.w-foo' : {
54+ flexGrow : '1' ,
55+ flexShrink : '0' ,
56+ maxWidth : '94rem' ,
57+ } ,
4358 '.s-hug' : {
4459 width : 'fit-content' ,
4560 height : 'fit-content' ,
You can’t perform that action at this time.
0 commit comments