Skip to content

Some Beginner Question #1813

Answered by estevanmaito
ColeDrain asked this question in Help
May 23, 2020 · 4 comments · 6 replies
Discussion options

You must be logged in to vote

To just get started, you don't even need to touch PostCSS. It's just 2 steps:

  1. Create a CSS file (let's say style.css) with:
@tailwind base;

@tailwind components;

@tailwind utilities;
  1. Compile that file so you can use it the browser

npx tailwindcss build styles.css -o output.css

This will create an output.css file that you can use in your HTML.

That's all you need to start. You can read more here https://tailwindcss.com/docs/installation/#using-tailwind-cli


When you finish your layout, or find that you need to extend some utilities, change fonts, etc, you can create a config file

npx tailwindcss init

This will create tailwind.config.js with this content:

module.exports = {
  theme: {},

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ColeDrain
Comment options

@ColeDrain
Comment options

Comment options

You must be logged in to vote
3 replies
@ColeDrain
Comment options

@estevanmaito
Comment options

@ColeDrain
Comment options

Answer selected by ColeDrain
Comment options

You must be logged in to vote
1 reply
@estevanmaito
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants