Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tailwindtoolbox/startertemplate

Tailwind Starter Template
https://github.com/tailwindtoolbox/startertemplate

html npm open-source purgecss tailwind-css tailwindcss template

Last synced: about 2 months ago
JSON representation

Tailwind Starter Template

Awesome Lists containing this project

README

        

# [Tailwind Toolbox](https://www.tailwindtoolbox.com/) - [Starter Template](https://www.tailwindtoolbox.com/setup)

It's pretty straight forward to setup [Tailwind CSS](https://www.tailwindcss.com/) and give it a test spin using the CDN version. However, as mentioned on the Tailwind site, you need to setup Tailwind using npm in order to start customising Tailwind.

*Note: This starter template is for Tailwind CSS version 1 beta 3 (which is pretty much the [final version](https://twitter.com/adamwathan/status/1108450684783849472))

If you want the starter template for version 0.7.4, then please [download it from here](https://github.com/tailwindtoolbox/StarterTemplate/archive/v0-7-4.zip)*

## Setup Guide
* Download [Node/npm](https://nodejs.org/en/download/)
* Download the [Tailwind Starter Template](https://github.com/tailwindtoolbox/StarterTemplate/archive/master.zip)
* Open ```package.json``` and then edit the follow section of the file to match your project

```"name": "TailwindStarterTemplate",
"version": "1.0.0",
"description": "Tailwind Starter Template",
"license" : "MIT",
"repository": {
"type" : "git",
"url" : "https://github.com/tailwindtoolbox/StarterTemplate.git"
},
```

Refer to https://docs.npmjs.com/files/package.json for guidance

* Open your node command prompt/terminal and navigate to your 'project-name' folder and create the `node_modules` directory

```npm install or npm update```

* Refresh the Tailwind.js file

```npm run del:js && npm run create:js```

* Re-create the initial css file

```npm run dev:css```

* Start building your website using the starter template in the dist folder.

## Tweaking
* Customise the tailwind.config.js and tailwind.config.css to create the tailwind.css for your project
* Use purgecss/cssnano to remove unused CSS and minify the final CSS file

Refer to the [full setup guide for detailed instructions](https://www.tailwindtoolbox.com/setup)

## Bugs and Issues

Have a bug, suggestion or question? [Open a new issue](https://github.com/tailwindtoolbox/StarterTemplate/issues/new) here on GitHub.

## Creator

[Tailwind Toolbox](https://www.tailwindtoolbox.com/) was created by and is maintained by **[Amrit Nagi](https://amritnagi.info/)**, Co-owner of [Astrava.Solutions](https://astrava.solutions).

* https://twitter.com/tailwindtoolbox
* https://twitter.com/amritnagi
* https://github.com/tailwindtoolbox

Tailwind Toolbox is based on the [Tailwind CSS](https://www.tailwindcss.com/) framework created by [Adam Wathan](https://twitter.com/adamwathan), [Jonathan Reinink](https://twitter.com/reinink), [David Hemphill](https://twitter.com/davidhemphill) and [Steve Schoger](https://twitter.com/steveschoger)