Matrix Version: 5.4.0.0
I’m currently converting a new design over to SCSS and I’ve run into what seems to be an oversight with the SCSS Design File - it doesn’t seem possible to import other SCSS files directly?
So far I’ve tried somewhat normal SCSS methods:
- @import ‘variables.scss’
- @import [asset_id]
variables.scss is a SCSS Design File contain common variable that I’d like to use across several design files.
I’ve also tried directly nesting it via %globals_asset_contents_raw:[asset_id]% and got:
“(‘Error occured when compiling SCSS content: parse error: failed at %globals_asset_contents_raw:634837%
(stdin) on line 2’)”.
It looks like Suiz keywords aren’t available (even a simple %asset_assetid% doesn’t work)?
The design files are nested under a CSS File Folder which has a mix of regular CSS, CSS Design File & SCSS Design File children.
Importing SCSS variables & mixins seems like a standard use case, is there something I’m missing?