Skip to content

Release v6.0.0

Choose a tag to compare

@commonpike commonpike released this 10 Nov 20:48
· 25 commits to master since this release
76d8eed

Update to Sass 1.80+

Changes

Replace @import with @use and @forward

see https://sass-lang.com/documentation/breaking-changes/import/

Setting assets path

Sass does not use globals anymore, so you have to 'configure' sass with your settings:

old:

$pds-assets-path="../foobar"

new:

@use "...path-to-pds/settings" with ( 
    $assets-path: "../foobar" 
);

Using prepend

prepend.sccs is gone; it is replaced by settings.scss.

old:

import "@pds/sass/prepend.scss";

new: nothing

Import pds namespace and replace pds- prefix with pds. namespace

Sass does not use globals anymore, so you have to use the pds namespace in every file if you need any of those:

old:

h1 { font-size: pds-fontsize(huge); }

new:

@use "...path-to-pds/pds" 
h1 { font-size: pds.fontsize(huge); }

If you've been using $pds-assets-path in your own code, it is now available at pds.$assets-path. The same is true for other variables that use to be 'global' - they are now 'inside pds'.