wispbit logo
wispbit
  • Rules
  • Blog
Categories
  • typescript
    26
  • postgresql
    22
  • migrations
    22
  • prisma
    14
  • python
    13
  • supabase
    13
  • drizzle
    13
  • react
    10
  • nextjs
    9
  • sqlalchemy
    8
  • alembic
    8
  • golang
    7
  • mysql
    4
  • ruby
    3
  • rails
    3
  • rust
    3
  • markdown
    2
  • php
    2
  • javascript
    2
  • vue
    2
  • css
    1
  • expressjs
    1
  • flask
    1
  • quart
    1
  • graphql
    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

Code review that fixes tribal knowledge

Book a chatPrivacy policyTerms of serviceOpen Source