📝(doc) update instructions to use modern SASS
Replaced deprecated '@import' with '@use' to align with best practices.
This commit is contained in:
committed by
aleb_the_flash
parent
36eedc61c0
commit
b714c3d543
@@ -53,13 +53,15 @@ Then, add these lines at the top of your main stylesheet file:
|
||||
dark
|
||||
format={false}
|
||||
code={`
|
||||
@import "@openfun/cunningham-react/fonts"; // Imports default fonts ( Roboto ). You can also import fonts by yourself.
|
||||
@import "@openfun/cunningham-react/icons"; // Imports icons ( Material Icons ).
|
||||
@import "@openfun/cunningham-react/style"; // Imports the default theme.
|
||||
@import "cunningham-tokens"; // Imports the file you just generated.
|
||||
@use "@openfun/cunningham-react/fonts"; // Imports default fonts ( Roboto ). You can also import fonts by yourself.
|
||||
@use "@openfun/cunningham-react/icons"; // Imports icons ( Material Icons ).
|
||||
@use "@openfun/cunningham-react/style"; // Imports the default theme.
|
||||
@use "cunningham-tokens"; // Imports the file you just generated.
|
||||
`}
|
||||
/>
|
||||
|
||||
> If you are not using dart sass, you can use `@import`, please visit the [documentation](https://sass-lang.com/documentation/at-rules/import/).
|
||||
|
||||
> Please see [here](https://github.com/openfun/cunningham/tree/main/packages/tokens#use-the-design-tokens) to see how to use the design tokens in your source code.
|
||||
|
||||
We're done! 🎉
|
||||
|
||||
Reference in New Issue
Block a user