@@ -55,10 +55,15 @@ const frameworks = [
5555
5656const themes = [
5757 { title : 'Vueform' , value : 'vueform' } ,
58- { title : 'Tailwind' , value : 'tailwind' } ,
58+ { title : 'Tailwind 3 ' , value : 'tailwind' } ,
5959 { title : 'Bootstrap' , value : 'bootstrap' } ,
6060 { title : 'Material' , value : 'material' } ,
61- { title : 'Tailwind Material' , value : 'tailwind-material' } ,
61+ { title : 'Tailwind 3 Material' , value : 'tailwind-material' } ,
62+ ]
63+
64+ const builderThemes = [
65+ { title : 'Vueform' , value : 'vueform' } ,
66+ { title : 'Tailwind 3' , value : 'tailwind' } ,
6267]
6368
6469const tailwind = {
@@ -157,10 +162,10 @@ async function main() {
157162 inactive : 'no' ,
158163 } ,
159164 {
160- type : ( prev , { builder } ) => ! ! argv . builder || ! ! argv . b || builder === 'builder' ? null : 'select' ,
165+ type : 'select' ,
161166 name : 'theme' ,
162167 message : 'Select a theme for your project:' ,
163- choices : themes
168+ choices : ( prev , { builder } ) => ! ! argv . builder || ! ! argv . b || builder === 'builder' ? builderThemes : themes ,
164169 }
165170 ] ,
166171 {
@@ -175,9 +180,9 @@ async function main() {
175180 * Variables
176181 */
177182 const isBuilder = ! ! argv . builder || ! ! argv . b || response . builder === 'builder'
178- const theme = isBuilder ? 'tailwind' : response . theme
183+ const theme = response . theme
179184 const isAstro = framework === 'astro'
180- const isTailwind = [ 'tailwind' , 'tailwind-material' ] . indexOf ( theme ) !== - 1 || isBuilder
185+ const isTailwind = [ 'tailwind' , 'tailwind-material' ] . indexOf ( theme ) !== - 1
181186 const isBootstrap = [ 'bootstrap' ] . indexOf ( theme ) !== - 1
182187 const isLaravel = framework === 'laravel'
183188
@@ -240,7 +245,7 @@ async function main() {
240245 status ( '\nInstalling Tailwind...' )
241246 await Promise . all ( tailwind [ framework ] . install . map ( async ( script ) => {
242247 const command = script . split ( ' ' )
243- await runCommand ( command [ 0 ] , command . slice ( 1 ) , 'install Tailwind CSS' )
248+ await runCommand ( command [ 0 ] , command . slice ( 1 ) , 'install Tailwind CSS v3 ' )
244249 } ) )
245250 }
246251
0 commit comments