likec4-postcss-isolation
Installation
SKILL.md
LikeC4 PostCSS isolation
Use this when likec4 serve fails inside a monorepo with errors such as:
Failed to load PostCSS config
Invalid PostCSS Plugin found at: plugins[0]
and the error points at the repo root postcss.config.*.
Cause
LikeC4 serves its viewer through an internal Vite app rooted under its installed package. Vite searches upward for PostCSS configuration and can load the repo root postcss.config.*, which belongs to another app.
A PostCSS config beside the .c4 files does not help: LikeC4 sets Vite's root to its internal app, so the architecture project directory is not on Vite's search path.