Skip to content

docs: Tailwind v4 usage guide + refresh stale config references - #5541

Merged
norman-abramovitz merged 1 commit into
cloudfoundry:developfrom
nabramovitz:norm/docs/tailwind-v4-usage
Jul 2, 2026
Merged

docs: Tailwind v4 usage guide + refresh stale config references#5541
norman-abramovitz merged 1 commit into
cloudfoundry:developfrom
nabramovitz:norm/docs/tailwind-v4-usage

Conversation

@nabramovitz

Copy link
Copy Markdown
Contributor

What

Adds docs/tailwind-usage.md — how we expect Tailwind CSS v4 to be used in Stratos — and refreshes stale references in the existing theming/branding docs.

The new doc covers:

Doc refreshes (all verified against the current build):

  • theming-architecture.md: overview diagram, Key Files table, angular.json styles list (was missing tailwind.css), add-a-variable step 6, cross-link to the new doc
  • branding-architecture.md: stale tailwind.config.js table row

Why

Issues #5539 and #5540 both traced back to Tailwind v4 mechanics that were undocumented: the cascade-layer interaction and the HMR limitation. The existing docs still described the v3 tailwind.config.js setup.

Refs #5539 #5540

Add docs/tailwind-usage.md covering the v4 CSS-first configuration
(@theme in packages/theme/styles/tailwind.css), the cascade-layer
interaction between unlayered SCSS and @layer utilities, the two
dark-mode token rules (semantic singletons adapt via .dark-theme;
numbered scales need explicit dark: pairing), the @apply/@reference
build-only failure mode, and the transitive Sass partial HMR gotcha.

Update theming-architecture.md and branding-architecture.md, which
still documented tailwind.config.js — deleted in the v4 conversion —
and sync the angular.json styles list with reality.

Refs cloudfoundry#5539 cloudfoundry#5540

@norman-abramovitz norman-abramovitz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@norman-abramovitz
norman-abramovitz merged commit 713a7f2 into cloudfoundry:develop Jul 2, 2026
25 of 27 checks passed
@nabramovitz
nabramovitz deleted the norm/docs/tailwind-v4-usage branch July 3, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants