I want to add a box connotation (colored status field) to a customized stock screen (AR303000) in a customization project on 2026 R1.
I created status-colors.scss and referenced it from my customization HTML:
<template>
<require from="./status-colors.scss"></require>
<qp-fieldset id="fsLoyaltyProgram" view.bind="BAccount" caption="Loyalty Program" wg-container="BAccount_LoyaltyProgram">
<field name="UsrMembershipStatus" class="colored"></field>
</qp-fieldset>
</template>The file shows on the Modern UI Files page at screens\AR\AR303000\extensions\status-colors.scss, and the customization publishes successfully. But at runtime the console throws:
Uncaught (in promise) Error: Failed loading required CSS file: customizationScreens/Company/screens/AR/AR303000/extensions/status-colors.scssWhat I've already ruled out:
- Not the SCSS contents — fails the same way even with a trivial
.colored { font-weight: bold; }and no@import. - Not stale cache — hard reload with cache disabled, no change.
- Not an incremental-publish miss — Publish with Cleanup didn't help.
- No network request is ever issued for the file; there's a blob: reference that never resolves.
- I’ve tried several path options for the require, but haven’t arrived at one that works, or a way to tell what it should be.
My hunch is the .scss is registered in the project but isn't being compiled into the Modern UI bundle the way a native screen's SCSS is. So my question:
What's the correct way to add a stylesheet to a Modern UI customization project so it's compiled and bundled? Is there a step beyond adding it as a Modern UI file?



