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 adddoes —.postcssrc.jsonruns@tailwindcss/postcss, andsrc/styles.cssimports Tailwind's theme and utilities without Preflight. See Tailwind CSS. - The palette and opacity modifiers — Tailwind 4's
oklch()colors andbg-sky-500/40reach Lynx asrgb()andrgba(). - Transforms —
rotate-45,scale-75,-translate-y-2andskew-x-12compose into onetransform, andanimate-spinspins. - A transition — the button toggles
scale-x-50on the bar, whichtransition-transformanimates. - The UI components' theme —
src/styles/tailwind.cssgives Card and Button their colors, such asbg-card, in Tailwind 4, andbg-primary/10takes an opacity modifier from the theme's--primary-rgb.
