Giter Site home page Giter Site logo

sample-tailwind-landing-page's Introduction

Tailwind CSS

All the sample code for the written blog article Everything Important About Tailwind CSS - Provided by AppSeed.

The article explains how to use Tailwind CSS by building a landing page and also a dashboard layout. The website will be built with Tailwind CSS using HTML.


How to use this example

  • Download the files
  • Open src folder
  • Open index.html in a code editor, if needed make some changes
  • Double click index.html to open it in a web browser and see your changes.

How to start your own project when following the tutorial

  • Install Node.js.
  • Open VSCode and your project folder inside it.
  • Open Terminal inside VSCode
  • Install Tailwind globally with: npm install -D tailwindcss
  • Create your tailwind.config.js file: npx tailwindcss init
  • Open tailwind.config.js and inside the content brackets, add this: "./src/**/*.{html,js}"
  • Create a src folder to your directory
  • Inside src folder create index.html and input.css files
  • Open input.css and paste this inside it: @tailwind base; @tailwind components; @tailwind utilities;
  • Close your config and css files
  • Inside terminal paste this: npx tailwindcss -i ./src/input.css -o ./dist/output.css --watch This makes sure that when we change our css file it will output the same thing to a compiled css file. And --watch makes the changes update in real time
  • Inside index.html, copy and paste this sample HTML code from this link: Tailwind CSS Get Started Sample HTML Code
  • Add a helpful extension inside VSCode called Tailwind CSS IntelliSense

Tailwind.config.js

This file is used when you want to change fonts or add custom colors, etc. You don't have to worry about it by default.


Components

  • Navbar
  • Home
  • Features
  • Pricing
  • Footer

What is Tailwind CSS

A utility-first CSS framework packed with classes like flex, pt-4, text-center and rotate-90 that can be composed to build any design, directly in your markup.



Everything important about Tailwind CSS - Provided by AppSeed.

sample-tailwind-landing-page's People

Contributors

app-generator avatar rene-f avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.