Giter Club home page Giter Club logo

tailwind-playground's Introduction

Tailwind Playground

A repository I'll be using to assess Tailwind ๐Ÿคท๐Ÿผโ€โ™‚๏ธ

To simply make use of this template:

  1. Clone repository
  2. cd into repository
  3. Ensure you're running Node v18 or above
  4. Run yarn
  5. Run yarn start
  6. Boom ๐Ÿ’ฅ your app should be running in your browser

Steps I've taken to bootstrap this template with Tailwind CSS and Vite, I recommend going through this process on your own in a folder of your own in order to understand how we got here:

  1. Step 1 under "Using React" BUT using yarn and TypeScript vite template
yarn add vite tailwind-playground -- --template react-ts
cd tailwind-playground
  1. Step 2, but using yarn
yarn add tailwindcss -D postcss autoprefixer
npx tailwindcss init -p
  1. Follow step as is

  2. Follow step as is

  3. Follow step as is

  4. Follow step as is

  5. Ran yarn dev

Tada ๐ŸŽ‰ you're up and running with Vite, React 18, TypeScript and Tailwind CSS ๐Ÿš€

Next steps

First and foremost, please provide feedback any time and as much as possible. I want to make this great, for you. To do that I need your help ๐Ÿ’ช๐Ÿป GitHub issues is a good place to do so.

This seems obvious, but I highly recommend reading through the 6 items under "What to read next" on the installation screen (https://tailwindcss.com/docs/installation). You'll need an understanding of these concepts to effectively use and contribute to this project, and I don't feel like explaining what is already explained in extensive detail. This will guide you in building #worldclass software:

  1. https://tailwindcss.com/docs/utility-first
  2. https://tailwindcss.com/docs/responsive-design
  3. https://tailwindcss.com/docs/hover-focus-and-other-states
  4. https://tailwindcss.com/docs/dark-mode
  5. https://tailwindcss.com/docs/reusing-styles
  6. https://tailwindcss.com/docs/adding-custom-styles

After you've read through this content, I recommend adding the Tailwind intellisense extension to VS code. This has a variety of benefits as explained by them such as:

  • Autocomplete. Intelligent suggestions for class names, as well as CSS functions and directives.
  • Linting. Highlights errors and potential bugs in both your CSS and your markup.
  • Hover Previews. See the complete CSS for a Tailwind class name by hovering over it.
  • Syntax Highlighting. Provides syntax definitions so that Tailwind features are highlighted correctly.

Next up I'm going to try out the Tailwind + Prettier, do we wanna use this or our own prettier config?

tailwind-playground's People

Contributors

moosefaceee avatar

Watchers

 avatar

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.