21.08.2025, Technical documentation & snippets

Integration of SCSS mixins in WPCodeBox / WPCodeBox2

  1. Create a "Partial" in WPCodebox. In this case "_mixins".
  2. Create the SCSS file that is to be compiled to CSS in WordPress. In this case "app.scss"
  3. To add the partial to the main SCSS file in WPCodebox2, make sure to use single quotes:
@use '_mixins'
root {
  --color-mnc-blue: #1782c5;
}Code language: SCSS (scss)

See also