Using @use/@forward over @import for Sass? #203
ProspectPyxis
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi @ProspectPyxis, The change is easy to make. I created a test branch here: There are no breaking changes on .css files. // Override default variables
$primary-500: #e91e63;
$primary-600: #d81b60;
$primary-700: #c2185b;
// Import full Pico source code
@import "path/pico"; Not sure what to do here. Note: v2 will also add a configurable prefix on all CSS variables: $prefix: "pico-";
:root {
--#{$prefix}color: #000; // --pico-color: #000;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sass has plans to gradually phrase out
@import
directives in the future (ignore the dates on the document), and the recommendation is to use the new@use
and@forward
directives instead.Does picocss have any plans to switch to this new syntax in the future? I'm phrasing this more as a question, since I'm aware this would be a breaking change and would likely require a 2.0 version of the library at the very least.
Beta Was this translation helpful? Give feedback.
All reactions