WordPress REST API + Nuxt 3 + Tailwind CSS – [WP + Nuxt.js PART 1]
[WordPress REST API + Nuxt 3 + Tailwind CSS – [WP + Nuxt.js PART 1]
All code and written instructions at:
Using the WordPress REST API with Nuxt 3 and Tailwind CSS.
In this video I will create a headless WordPress theme in order to output the WordPress pages via Nuxt 3.
I use useFetch to pull in the WordPress API data via a get request.
Then pass the data to a Nuxt component that has been styled with Tailwind CSS (Tailwind UI).
How to use the WordPress REST API with Nuxt 3 and Tailwind CSS
WordPress is a great for building websites (breaking news). However, in my opinion, it isn’t the most enjoyable experience when it comes to theme and plugin development. But now we have the WordPress REST API available to use, that has all changed! The WordPress REST API allows us to use WordPress as a content management system only, and use our own frontend to display our WordPress content. This makes development much more enjoyable as we can use Javascript frameworks, such as Nuxt.js, to display our content! In this guide we will do just that. Create a WordPress REST API by installing WordPress with a Headless theme. Then create a Nuxt 3 project to pull in our data from the WordPress API. Then style our Nuxt 3 components using Tailwind CSS. It’s going to be a lovely experience.
➪ Tags: #WordPress #REST #API #Nuxt #Tailwind #CSS #Nuxtjs #PART
➪ Keyword: wordpress,tailwind,tailwindcss,tailwind css,tailwindui,tailwind ui,nuxt,nuxt.js,nuxt 3,wp,wordpress,wordpress api,wordpress rest,wordpress rest api,wp rest,wp rest api,wp api