Coder Social home page Coder Social logo

michelegera / create-tailwindcss-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
116.0 5.0 18.0 530 KB

🌬A bare-bones Tailwind CSS boilerplate

License: MIT License

JavaScript 88.67% HTML 9.42% CSS 0.95% Shell 0.95%
tailwindcss tailwind-css parcel-bundler parceljs postcss boilerplate tailwind-css-boilerplate parcel purgecss yarn

create-tailwindcss-boilerplate's Introduction

Create Tailwind CSS Boilerplate

A bare-bones Tailwind CSS boilerplate.

It creates a simple HTML + CSS template with Tailwind CSS support, served by Parcel and using PurgeCSS in production builds.

Getting started

Requirements

Yarn is suggested, but not required. The project will be set up with npm if Yarn is not found.

Create boilerplate

yarn create tailwindcss-boilerplate

# or

npx create-tailwindcss-boilerplate

Follow instructions at the prompt to create your project:

? Name your project root directory my-project
  βœ” Create directory structure
  βœ” Create project files
  βœ” Create templates
  βœ” Set up dependencies

Run server

yarn dev

Open your favorite text editor and start coding!

Build for production

yarn build

Build files will end up in /dist.

Contributing

If you want to add a feature, fix a bug or propose a change, please feel free to submit an issue or open a pull request.

Thanks to all the contributors!

Acknowledgments

This project piggybacks on the excellent TailwindCSS + Parcel + PurgeCSS Starter Project by didier. Check out his blog post on getting started with Tailwind CSS.

create-tailwindcss-boilerplate's People

Contributors

dependabot[bot] avatar livchits avatar michelegera avatar sensiblemnd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

create-tailwindcss-boilerplate's Issues

PostCSS plugin postcss-purgecss requires PostCSS 8

The template seems to be broken.

On the barebones template (after npx create-tailwindcss-boilerplate)

yarn run v1.22.15
$ parcel build src/index.html
🚨  /private/tmp/tailwind-test/src/css/main.css:undefined:undefined: PostCSS plugin postcss-purgecss requires PostCSS 8.
Migration guide for end-users:
https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users
Migration guide for end-users:
https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users
    at Processor.normalize (/private/tmp/tailwind-test/node_modules/postcss/lib/processor.js:167:15)
    at new Processor (/private/tmp/tailwind-test/node_modules/postcss/lib/processor.js:56:25)
    at postcss (/private/tmp/tailwind-test/node_modules/postcss/lib/postcss.js:55:10)
    at module.exports (/private/tmp/tailwind-test/node_modules/parcel-bundler/src/transforms/postcss.js:17:19)
    at async CSSAsset.transform (/private/tmp/tailwind-test/node_modules/parcel-bundler/src/assets/CSSAsset.js:133:5)
    at async CSSAsset.process (/private/tmp/tailwind-test/node_modules/parcel-bundler/src/Asset.js:216:7)
    at async Pipeline.processAsset (/private/tmp/tailwind-test/node_modules/parcel-bundler/src/Pipeline.js:46:7)
    at async Pipeline.process (/private/tmp/tailwind-test/node_modules/parcel-bundler/src/Pipeline.js:24:23)
    at async Object.run (/private/tmp/tailwind-test/node_modules/parcel-bundler/src/worker.js:15:12)
    at async Bundler.loadAsset (/private/tmp/tailwind-test/node_modules/parcel-bundler/src/Bundler.js:577:19)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.