wispbit logo
wispbit
Early Access
  • Rules
    new!
  • Blog
  • Pricing
Categories
  • typescript
    24
  • postgresql
    15
  • migrations
    15
  • python
    11
  • prisma
    9
  • supabase
    9
  • drizzle
    9
  • react
    9
  • nextjs
    8
  • golang
    7
  • sqlalchemy
    6
  • alembic
    6
  • mysql
    4
  • rust
    3
  • markdown
    2
  • php
    2
  • javascript
    2
  • vue
    2
  • css
    1
  • expressjs
    1
  • flask
    1
  • quart
    1
  • graphql
    1
  • ruby
    1
  • shell
    1
  • tailwind
    1

tailwind Rules

1 rule found for tailwind

Prefer tailwind design tokens

Use Tailwind's predefined design tokens instead of arbitrary values. Do not use custom pixel values, color codes, or arbitrary numbers in your Tailwind CSS classes. 1. Use Tailwind's spacing scale instead of arbitrary pixel values 2. Use Tailwind's color palette instead of custom color codes 3. Use Tailwind's z-index scale instead of arbitrary z-index values 4. Use Tailwind's percentage-based positioning values instead of arbitrary percentages Bad: `html <div class="mt-[37px] text-[#3366FF] z-[9999] top-[37%] w-[142px]"> Custom content </div> ` Good: `html <div class="mt-10 text-blue-600 z-50 top-1/3 w-36">Custom content</div> `

nextjs

tailwind

wispbit
Privacy policyTerms of serviceBook a demo