@@ -55,10 +55,15 @@ const frameworks = [
55
55
56
56
const themes = [
57
57
{ title : 'Vueform' , value : 'vueform' } ,
58
- { title : 'Tailwind' , value : 'tailwind' } ,
58
+ { title : 'Tailwind 3 ' , value : 'tailwind' } ,
59
59
{ title : 'Bootstrap' , value : 'bootstrap' } ,
60
60
{ 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' } ,
62
67
]
63
68
64
69
const tailwind = {
@@ -157,10 +162,10 @@ async function main() {
157
162
inactive : 'no' ,
158
163
} ,
159
164
{
160
- type : ( prev , { builder } ) => ! ! argv . builder || ! ! argv . b || builder === 'builder' ? null : 'select' ,
165
+ type : 'select' ,
161
166
name : 'theme' ,
162
167
message : 'Select a theme for your project:' ,
163
- choices : themes
168
+ choices : ( prev , { builder } ) => ! ! argv . builder || ! ! argv . b || builder === 'builder' ? builderThemes : themes ,
164
169
}
165
170
] ,
166
171
{
@@ -175,9 +180,9 @@ async function main() {
175
180
* Variables
176
181
*/
177
182
const isBuilder = ! ! argv . builder || ! ! argv . b || response . builder === 'builder'
178
- const theme = isBuilder ? 'tailwind' : response . theme
183
+ const theme = response . theme
179
184
const isAstro = framework === 'astro'
180
- const isTailwind = [ 'tailwind' , 'tailwind-material' ] . indexOf ( theme ) !== - 1 || isBuilder
185
+ const isTailwind = [ 'tailwind' , 'tailwind-material' ] . indexOf ( theme ) !== - 1
181
186
const isBootstrap = [ 'bootstrap' ] . indexOf ( theme ) !== - 1
182
187
const isLaravel = framework === 'laravel'
183
188
@@ -240,7 +245,7 @@ async function main() {
240
245
status ( '\nInstalling Tailwind...' )
241
246
await Promise . all ( tailwind [ framework ] . install . map ( async ( script ) => {
242
247
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 ' )
244
249
} ) )
245
250
}
246
251
0 commit comments