tailwind-fractal-vue-boilerplate Tailwind Templates

Tailwind Fractal Vue Boilerplate

tailwind-fractal-vue-boilerplate

WIP - still needs to add VUE and JS into gulp process

Project setup

npm install

Compiles and hot-reloads for development

gulp develop

Step by step - How to make your own

Git and Node

First of all you need git and node to start anything. Follow their installation instructions here:

Fractal

Fractal is a tool to help you build and document web component libraries, and then integrate them into your projects.

npm install --save @frctl/fractal

Follow the steps on the link bellow to install it quickly. The default values are good to go.

TL;DR Fractal Installation

Atomic Design - folder organization

After installing fractal, we added a few folders inside components folder. Each one of those represents a level in the Atomic Design pattern.

Gulp tasks

We also need a watcher for JS and CSS file changes, we followed the same approach as in this repo joao-olivio/fractal-css

Vue

Vue Vue (pronounced /vjuː/, like view) is a progressive framework for building user interfaces. Unlike other monolithic frameworks, Vue is designed from the ground up to be incrementally adoptable.

npm install vue

Tailwind

First of all, add tailwindcss to your dependencies

npm install tailwindcss

Then create your custom config file, there is a task for it

npx tailwindcss init

After that we proceed add tailwind to gulp, and as noted here, we need gulp-postcss, so we add 2 entries on tasks/style.js one for tailwind, another for autoprefixer.

npm install --save gulp-postcss

Layout References

https://codepen.io/Gthibaud/pen/MqpmXE

Top categories

Loading Svelte Themes