შინაარსზე გადასვლა

ტერმინები

რა არის Tailwind CSS?

ვრცლად

Tailwind 2017 launch-დან 2026-მდე — most-installed CSS framework npm-ზე (Bootstrap-ი დაიკლო 2022-ში). Philosophy: არ წერდე custom CSS — instead compose utility class-ებიდან (mt-4 = margin-top: 1rem). Result: design tokens HTML-ში, no class-name burnout, automatic dead-CSS elimination.

v3 → v4 (2025): (1) **Engine rewrite** — Lightning CSS, 5× faster build. (2) **Native CSS variables** — hsl(var(--color-blue-500)). (3) **Container queries first-class** — @container (min-width: 400px). (4) **3D transforms** — rotate-x-12, scale-z-95. (5) **CSS @import-style imports** — @import "tailwindcss" replace tailwind.config.js. Migration v3 → v4: 2-8 hours typical project.

Class categories: (1) **Layout** — grid, flex, container. (2) **Spacing** — m-{0..96}, p-{0..96}. (3) **Typography** — text-sm, font-bold, leading-relaxed. (4) **Colors** — bg-blue-500, text-red-600 (50-950 scale). (5) **Borders** — border, border-2, rounded-lg, ring-2. (6) **Effects** — shadow-md, blur-sm, opacity-50. (7) **Responsive** — sm:, md:, lg:, xl:, 2xl: prefixes. (8) **State** — hover:, focus:, active:, disabled:. (9) **Dark mode** — dark: prefix.

For Georgian context: full Latin + Georgian Unicode support. Font stack: font-sans (Inter) + Georgian fallback (Noto Sans Georgian). RTL support: dir-rtl: prefix. Component libraries: Headless UI (accessibility), Radix (primitives), shadcn/ui (copy-paste components).

Craftwebstudio default 2024-2026: Tailwind v3 (stability) → v4 migration in 2026 H2. All 770+ pages styled with Tailwind. Custom theme: prismatic accent palette (purple/turquoise/coral/yellow) + Inter + Noto Sans Georgian.

მაგალითები

  • 1Card component: <div className="rounded-2xl border bg-white p-6 shadow-md">
  • 2Responsive flex: flex flex-col md:flex-row gap-4
  • 3Dark mode: bg-white dark:bg-gray-900 — automatic toggle
  • 4Custom theme: tailwind.config.js theme.extend.colors → brand palette
  • 5Bundle size: production build dead-CSS removed → 8-15kb gzipped final

მსგავსი ტერმინები

დაკავშირებული სერვისები

ხშირად დასმული კითხვები

Tailwind CSS-ი HTML-ს არ აზიანებს ricky-ად?

პირველად კი — 5-10 class per element ხშირია. გამოსავალი: extract repeating patterns into components (React/Vue). component-based codebase clean.

Tailwind vs CSS-in-JS (styled-components)?

Tailwind: build-time CSS, 0 runtime overhead, smaller bundle. CSS-in-JS: dynamic theming, props-based styling, larger bundle. 2026 trend: Tailwind wins (RSC era — no runtime CSS).

Tailwind v3 vs v4 — როდის migrate?

v4 stable 2025 Q4. Migration: 2-8 hours typical project. Recommended waiting 6 months stability vs immediate migration. Craftwebstudio v3 → v4 plan 2026 H2.

გინდა უფასო კონსულტაცია?

დაგვიკავშირდი — 24 საათის განმავლობაში დაგიბრუნებთ საპასუხო წერილს პროექტის შეფასებით.

ახლა რთავსCraftwebstudio Mix