PureChatNext Tailwind-first styling
Use this skill when creating a React component or changing its styles in PureChatNext.
Required decisions
- New components default to Tailwind CSS classes.
- Do not add
createStaticStylesfor a few simple static declarations such as layout, spacing, color, border, radius, or basic responsive rules. - Keep
createStaticStyleswhen the style is genuinely complex or dynamic: multiple selectors/states, container queries, keyframes, SVG animation, custom scrollbar geometry, calculated values, or shared UI bridge behavior. - Prefer semantic theme variables and existing
@pure/ui; do not introduce another styling library. - Do not migrate
@pure/uiinternals as part of an unrelated business component change. - If an exception is retained, leave a short reason near the style definition.
Workflow
- Read the style guidelines for component-level rules.
- Read the migration guide when converting existing
createStaticStylescode. - Prefer the smallest change that keeps class names readable and preserves theme, responsive, and interaction behavior.
- Remove unused
antd-styleimports, style constants, and test mocks after a successful simple-style migration. - Run targeted ESLint and
pnpm exec tsc --noEmitwhen the change is complete.
Do not treat zero remaining createStaticStyles usages as the goal. The goal is that new code is Tailwind-first and remaining CSS-in-JS has a concrete complexity or public-component reason.