Now, I really hope this isn't too opinion based. But I would just love to here some advice since I have no idea how to start this.
I have a basic Nx workspace with a TypeScript React frontend combined with SCSS styles. The project's architecture looks sort of this:
root/
├─ apps/
├─ libs/
│ ├─ someLib1/
│ │ ├─ src/
│ │ │ ├─ lib/
│ │ │ │ ├─ someLib1.tsx
│ │ │ │ ├─ someLib1.scss
│ ├─ someLib2/
│ ├─ someLib3/
│ ├─ shared/
│ │ ├─ styles/
│ │ │ ├─ global.scss
Is there any clever way how I could import global.scss into any accessable (=same folder level or below) component in /libs? To give an example:
Imagine I have declared $example: #fff; in global.scss. How would I use it in someLib1.scss without importing it by the absolute path (@import/@use "../../../shared/styles/global.scss" or @import/@use "/libs/shared/styles/global.scss")?