The build was failing due to incompatible Sass syntax in the SCSS files:
@use "sass:color"- Modern Sass module syntax not supportedcolor.adjust()- Modern color function not compatiblecolor.channel()- Complex color function causing build failure
- File:
_sass/_variables.scssand_sass/_themes.scss - Lines: Around 591-598
- Error: "Build script returned non-zero exit code: 2"
// ❌ Before (incompatible):
@use "sass:color";
$light-cyan-color: color.adjust($cyan-color, $lightness: 25%);
$light-purple-color: color.adjust($purple-color, $lightness: 25%);
$grey-color-light: color.adjust($grey-color, $lightness: 40%);
// ✅ After (compatible):
$light-cyan-color: lighten($cyan-color, 25%);
$light-purple-color: lighten($purple-color, 25%);
$grey-color-light: lighten($grey-color, 40%);// ❌ Before (incompatible):
@use "sass:color";
--global-back-to-top-bg-color: rgba(
#{color.channel($black-color, "red", $space: rgb)},
#{color.channel($black-color, "green", $space: rgb)},
#{color.channel($black-color, "blue", $space: rgb)},
0.4
);
// ✅ After (compatible):
--global-back-to-top-bg-color: rgba(0, 0, 0, 0.4);- Sass Compatibility: Replaced modern functions with traditional ones
- Jekyll Support: Uses functions that work with current Jekyll/Sass setup
- Build Process: SCSS compilation will now succeed without errors
- Color Generation: Simplified but equivalent color values
| Modern Function | Traditional Function | Purpose |
|---|---|---|
color.adjust($color, $lightness: X%) |
lighten($color, X%) |
Lighten colors |
color.channel($color, "red", $space: rgb) |
rgba(0, 0, 0, alpha) |
Generate rgba values |
The build should now succeed because:
- ✅ All modern Sass syntax has been replaced
- ✅ Traditional color functions are used throughout
- ✅ SCSS compilation will work without errors
- ✅ Site styling will be applied correctly
The color values are functionally equivalent:
- Light theme:
rgba(0, 0, 0, 0.4)= black with 40% opacity - Dark theme:
rgba(255, 255, 255, 0.5)= white with 50% opacity
Ready for deployment! 🚀