ID:WORK-053Status:ready
CSS Fallback Resolution for Third-Party Packages
Priority:mediumComplexity:moderateMilestone:v1.0.0
No incremental history — criteria tracking started on Apr 17.
Third-party community packages (e.g., @refrakt-community/dnd-5e) may ship default CSS as a fallback. When a theme (like Lumina) doesn't provide CSS for a community rune, the pipeline should fall back to the package's own styles/ directory. The resolution order is: theme CSS first, package CSS second.
Currently the SvelteKit plugin's CSS tree-shaking only checks the theme directory. It needs to also check the source package when no theme CSS exists.
styles/runes/{block}.css first for each runestyles/runes/{block}.cssassembleThemeConfig provenance map is used to locate the source package directoryrefrakt inspect --audit reports which rune CSS comes from the theme vs. package fallback@refrakt-md/*) are not affected — they ship zero CSS, Lumina provides all their stylingprovenance map from assembleThemeConfig to find the source packagestyles/runes/ directory with a matching CSS file, import that as fallbackstyles/runes/ directoryrefrakt inspect should distinguish between theme-provided and package-fallback CSS coverage