You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-17Lines changed: 27 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,11 @@
6
6
7
7
## Breaking Change: v6.0.0
8
8
9
-
### @import, @use and @forward
9
+
v6.0.0 of GEL Typography implements the [@use](https://sass-lang.com/documentation/at-rules/use/) and [@forward](https://sass-lang.com/documentation/at-rules/forward/) approach and removes [@import](https://sass-lang.com/documentation/at-rules/import/).
10
10
11
-
The `@import` directive is now deprecated in favour of `@use` and `@forward`, see [SASS documentation](https://sass-lang.com/documentation/at-rules/use/) for more information.
11
+
This has a number of consequences; how modules are loaded, and how to access variables. Namespaces now come into play, so please read the sassdocumentation links above to learn more.
12
12
13
-
GEL Typography has now been updated to `@use` and `@forward` to remove a large number of deprecation notices.
14
-
15
-
With the new @use directive, no var, function, or mixin is placed in global scope, and they are all scoped within the file.
16
-
17
-
This means that users will explicitly need to include the partial file in each file that may use its vars, functions or mixins.
13
+
For usage of GEL Typography prior to v6.0.0 please reference the [v5.2.0 readme](https://github.com/bbc/gel-typography/tree/5.2.0).
18
14
19
15
20
16
## What is this?
@@ -27,9 +23,11 @@ The typographic scale has been optimised based on the size of the viewport and t
@@ -62,12 +60,22 @@ You can install this component manually by downloading the content of this Git r
62
60
63
61
> **Note:** you will manually need to manage the dependencies below, without these this component will fail to compile.
64
62
65
-
## Dependencies
63
+
### Loadpaths
64
+
65
+
Because this module depends on other modules, [GEL Sass Tools](https://github.com/bbc/gel-sass-tools) and [Sass MQ](https://github.com/sass-mq/sass-mq), when compiling your Sass it needs to know where find the referenced modules. It does this via a [loadPath](https://sass-lang.com/documentation/at-rules/use/#load-paths).
66
66
67
-
In order to use the component you will need the following components available:
67
+
If compiling from the command line you can specify:
68
+
```
69
+
sass --load-path=node_modules/ <options>
70
+
```
71
+
72
+
With nodejs you can call `compile` or `compileAsync`:
0 commit comments