@value for defining CSS variables and sharing them between CSS modules is not compatible with Turbopack and LightningCSS.
The codebase needs to be refactored to use standard CSS variables instead. CSS modules that currently export design tokens such as colours should be moved into a single global CSS file called "design_system.css" that exports all tokens into the global root as CSS variables.