https://github.com/tailwindlabs/tailwindcss-playground
https://github.com/tailwindlabs/tailwindcss-playground
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tailwindlabs/tailwindcss-playground
- Owner: tailwindlabs
- Archived: true
- Created: 2019-05-11T15:52:18.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-29T13:06:36.000Z (over 4 years ago)
- Last Synced: 2025-01-19T20:04:16.077Z (5 months ago)
- Language: HTML
- Size: 23.4 KB
- Stars: 518
- Watchers: 14
- Forks: 163
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tailwind CSS Playground
A simple starter project for playing around with Tailwind in a proper PostCSS environment.
To get started:
1. Clone the repository:
```bash
git clone https://github.com/tailwindcss/playground.git tailwindcss-playgroundcd tailwindcss-playground
```2. Install the dependencies:
```bash
# Using npm
npm install# Using Yarn
yarn
```3. Start the development server:
```bash
# Using npm
npm run serve# Using Yarn
yarn serve
```Now you should be able to see the project running at localhost:8080.
4. Open `public/index.html` in your editor and start experimenting!
## Play with it on CodeSandbox
A CodeSandbox version of this playground [is one click away](https://codesandbox.io/s/github/tailwindcss/playground/tree/master)!
## Building for production
Even though this isn't necessarily a starter kit for a proper project, we've included an example of setting up [cssnano](https://cssnano.co/) to optimize your CSS for production.
To build an optimized version of your CSS, simply run:
```bash
# Using npm
npm run production# Using Yarn
yarn production
```After that's done, check out `./public/build/tailwind.css` to see the optimized output.