# Tailwind CSS 3 URL: /lynx/getting-started/styling/tailwind-css-3 Source: https://github.com/daangn/seed-design/blob/dev/docs/content/lynx/getting-started/styling/tailwind-css-3.mdx Guides how to use Tailwind CSS v3 and Crispy design tokens in Lynx. ## Overview This guide is for existing Tailwind CSS v3 projects. If you're setting up new, choose Vanilla Extract or Tailwind CSS v4 in [Installation](/lynx/getting-started/installation#choose-a-styling-library). With `@seed-design/tailwind3-plugin`, you can use Crispy tokens as utility classes for native `` and ``. For projects using Tailwind CSS v4, see [v4 configuration](/lynx/getting-started/styling/tailwind-css-4). Theme configuration is covered in [Theming](/lynx/getting-started/styling/theming). ## Setup - npm: npm install @seed-design/lynx-css tailwindcss@3 @seed-design/tailwind3-plugin - pnpm: pnpm add @seed-design/lynx-css tailwindcss@3 @seed-design/tailwind3-plugin - yarn: yarn add @seed-design/lynx-css tailwindcss@3 @seed-design/tailwind3-plugin - bun: bun add @seed-design/lynx-css tailwindcss@3 @seed-design/tailwind3-plugin ### tailwind.config.ts ```ts import type { Config } from "tailwindcss"; import seedDesignPlugin from "@seed-design/tailwind3-plugin"; export default { content: ["./src/**/*.{jsx,tsx}"], corePlugins: { preflight: false }, plugins: [seedDesignPlugin], } satisfies Config; ``` ### postcss.config.js ```js export default { plugins: { tailwindcss: {}, }, }; ``` ### CSS ```css @import "@seed-design/lynx-css/base.css"; @tailwind components; @tailwind utilities; ``` ## Color Crispy color tokens are used with Tailwind's `bg-`, `text-`, `border-` prefixes. ```tsx // Background color // Text color Default text Brand text Error text // Border color ``` ## Typography Crispy typography tokens are provided as component classes. ```tsx Smallest text Default body Bold body Large title Largest title ``` ## Layout Use Tailwind's Flexbox utilities with native `` elements. ```tsx // Flex row (HStack) A B // Flex column (VStack) Item 1 Item 2 ``` ## Lynx Platform Notes - `overflow: scroll` is not supported. If you need scrolling, use the `` element. - The default value of `position` is `relative` (different from web's `static`). - `` + `` are used for virtualized lists. `item-key` is required. - CSS `initial`, `inherit`, `unset` keywords are not supported. - The `inset` shorthand is not used as of Lynx 3.7. Write `top`, `right`, `bottom`, `left` longhand directly.