atinux / content-wind

A lightweight Nuxt theme to build a Markdown driven website. Powered by Nuxt Content, TailwindCSS and Iconify.
https://content-wind.nuxt.space
MIT License
791 stars 55 forks source link

Can we add it as module to an existing project? #29

Closed boussadjra closed 1 year ago

boussadjra commented 1 year ago

Can we add this as module in normal Nuxt project that has already setup content?

atinux commented 1 year ago

It is made to be used with the extends feature actually.

But you can configure the content key in your nuxt.config, no need to add @nuxt/content to the modules key since this theme add it.

Do you have an example of what you want to achieve?

boussadjra commented 1 year ago

Thank you, I'll create a repro in slackblitz

boussadjra commented 1 year ago

For example in Vitesse starter for Nuxt 3 https://stackblitz.com/github/antfu/vitesse-nuxt3

atinux commented 1 year ago

It is possible, but the risk here with vitesse-nuxt3 is that it uses another UI library (UnoCSS) where this template leverages TailwindCSS

elonehoo commented 1 year ago

@boussadjra It's really troublesome, but I like UnoCss very much, so I made one according to this repository https://github.com/elonehoo/content-unocss

atinux commented 1 year ago

Beautiful @elonehoo !

One thing, I updated content-wind to use .demo/ to have content/, public/ and app.config.ts inside.

I suggest doing the same 😊 https://github.com/Atinux/content-wind/tree/main/.demo