For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /examples/tailwind-4.md.

Tailwind CSS 4

Tailwind CSS 4 utilities on Lynx, next to the UI components' theme. Look here for the utilities whose Tailwind 4 CSS the build rewrites for Lynx: colors, opacity modifiers, logical padding, transforms and borders.

What it shows

  • Tailwind 4, set up as ng add does — .postcssrc.json runs @tailwindcss/postcss, and src/styles.css imports Tailwind's theme and utilities without Preflight. See Tailwind CSS.
  • The palette and opacity modifiers — Tailwind 4's oklch() colors and bg-sky-500/40 reach Lynx as rgb() and rgba().
  • Transforms — rotate-45, scale-75, -translate-y-2 and skew-x-12 compose into one transform, and animate-spin spins.
  • A transition — the button toggles scale-x-50 on the bar, which transition-transform animates.
  • The UI components' theme — src/styles/tailwind.css gives Card and Button their colors, such as bg-card, in Tailwind 4, and bg-primary/10 takes an opacity modifier from the theme's --primary-rgb.