Jump to content

Tailwind CSS

What is Tailwind CSS?

Tailwind CSS is a tiny, utility first↗ CSS framework for building custom designs, without the context switching that regular CSS requires. It is purely a CSS framework and does not provide any pre-built components or logic, and provides a very different set of benefits↗ compared to a component library like Material UI.

It makes CSS incredibly easy and quick to write, as shown by the following example:

Old CSS:

  1. Write CSS, often in a separate file
.my-class {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  padding: 1rem;
}
  1. Import CSS into your component
import "./my-class.css";
  1. Add the class to your HTML
<div class="my-class">...</div>

Equivalent in Tailwind:

  1. Just write classes in your HTML
<div
  class="flex flex-col items-center justify-center rounded border border-gray-200 bg-white p-4"
>
  ...
</div>

When used together with React Components, it is extremely powerful for quickly building UIs.

Tailwind CSS has a beautiful built-in design system, that comes out of the box with a carefully chosen color palette, sizing patterns for styles such as width/height and padding/margin for a uniform design, as well as media breakpoints for creating responsive layouts. This design system can be customized and extended to create the exact toolbox of styles that your project needs.

Tru Narla better known as mewtru↗ gave an amazing talk on building a design system using Tailwind CSS↗.

Usage

Make sure you have editor plugins for Tailwind installed to improve your experience writing Tailwind.

Extensions and Plugins

Formatting

Tailwind CSS classes can easily get a bit messy, so a formatter for the classes is a must have. Tailwind CSS Prettier Plugin↗ sorts the classes in the recommended order↗ so that the classes match the outputted css bundle. When selecting Tailwind in the CLI, we will install and configure this for you.

Conditionally Applying Classes

Conditionally adding classes using ternaries can get very messy and hard to read. These packages help in organizing your classes when using some conditional logic.

Useful Resources

ResourceLink
Tailwind Docshttps://tailwindcss.com/docs/editor-setup/β†—
Tailwind Cheat Sheethttps://nerdcave.com/tailwind-cheat-sheet/β†—
awesome-tailwindcsshttps://github.com/aniftyco/awesome-tailwindcss/β†—
Tailwind Communityhttps://github.com/tailwindlabs/tailwindcss/discussions/β†—
Tailwind Discord Serverhttps://tailwindcss.com/discord/β†—
TailwindLabs Youtube Channelhttps://www.youtube.com/tailwindlabs/β†—
Tailwind Playgroundhttps://play.tailwindcss.com/β†—

Website Navigation

Peace

Yaya

Donald Duck

Japan

Mimi

Football

Jump

Doge

QQ

Clown

Anonymous

BTC

ETH

USDC

USDT

Pepe

BNB

BUSD

Solana

XRP

Ada

543X

Website Navigation

543x Sites

USDT

  • Description: All things USDT Alipay USDT is simply paying homage to a USD we all love and recognize.
  • Link: usdt.543x.comβ†—

Ethereum (ETH)

  • Description: A talking pig! ETH is simply paying homage to a Vitalik Buterin we all love and recognize.
  • Link: eth.543x.comβ†—

USDC

  • Description: USDC is simply paying homage to a USD we all love and recognize.
  • Link: usdc.543x.comβ†—

PEPE

  • Description: PEPE is simply paying homage to a meme we all love and recognize. The most memeable memecoin in existence. It’s time to Make Memecoins Great Again.
  • Link: pepe.543x.comβ†—

BNB

BUSD

FDUSD

  • Description: FDUSD is simply paying homage to a meme we all love and recognize.
  • Link: fdusd.543x.comβ†—

Solana (SOL)

Girlfriend (GF)

  • Description: It’s time for the most recognizable meme in the world to take his reign as king of the internet. It’s time to Make Memecoins Great Again.
  • Link: gf.543x.comβ†—

Cat

Miqi

YY

  • Description: Can you never catch up to a turtle in front of you? YY is time to Make Memecoins Great Again.
  • Link: yy.543x.comβ†—

Panda

Sheep

Rabbit

Ord

Monkey

Rat

  • Description: What currency is rat? Rat is time to Make Memecoins Great Again.
  • Link: rat.543x.comβ†—

Dragon

X

  • Description: X is simply paying homage to a x.com we all love and recognize.
  • Link: x.543x.comβ†—

Cow

Seal

Satoshi Nakamoto

  • Description: The Monetary Future: At the intersection of free banking, cryptography, and digital currency.
  • Link: satoshi.543x.comβ†—

Other Resources

AI

Swap

  • Description: The Monetary Future: At the intersection of free banking, cryptography, and digital currency.
  • Link: s.543x.comβ†—

Bitcoin

Blockchain

  • Description: Blockchain is a shared, immutable ledger.
  • Link: z2.pwβ†—

Web Library

  • Description: The library for web and native user interfaces.
  • Link: r.543x.comβ†—

Solana Creation

React Creation

  • Description: Set up a modern web app by running one command.
  • Link: e.543x.comβ†—

Firebase

  • Description: Google tools help build applications, improve quality and efficiency.
  • Link: d.543x.comβ†—

React App Creation