13.4.0 • Published 3 years ago

@rm-frontend/instance v13.4.0

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
3 years ago

Instance Module

Use custom font

Always prefer self-hosted fonts!

Self-hosted fonts

For Google Fonts you can use google webfonts helper to download the files.
In Step 3 select "Modern Browsers". We only need woff- and woff2-files.

  1. Place font-files in fonts-folder.
  2. In fonts/_fonts.scss: define the @font-face rules. You can use the commented code block there as starting point.
  3. In settings/base/_typo.scss: change the $font-sans variable to the new font name and, if necessary, the base.$font-sans-weights-values (only change the numbers, not the label!).
  4. In patternlab_meta/_00-head.hbs: preload the primary font (most commonly the regular weight).

Load fonts from other server (e.g. Typekit)

Most font services provide a HTML-Snippet to load the font(s). Usually it looks like this:

<link href="https://CUSTOM-URL" rel="stylesheet">
  1. In fonts/_fonts.scss: remove all @font-face rules.
  2. In settings/base/_typo.scss: change the $font-sans variable to the new font name and, if necessary, the base.$font-sans-weights-values (only change the numbers, not the label!).
  3. In patternlab_meta/_00-head.hbs: replace the <link rel="preload">-tag with the HTML-snippet.

Optional, but recommended: To improve page loading performance modify the HTML-snippet in the following way:

<link href="https://CUSTOM-URL" rel="stylesheet" media="print" onload="this.media='all'">
<noscript><link href="https://CUSTOM-URL" rel="stylesheet"></noscript>

You can read more about non-blocking CSS loading on filament group blog

SVG Icons

Place all SVG-icons in icons-folder. They will be combined to a single SVG-sprite and are available in all components.
To use one of these icons in a component, use the atoms-icon handlebars mixin with the icon's file name as icon-property (without file extension).
E.g. if you have chevron-down.svg in the icons-folder, you can access it via {{> atoms-icon icon="chevron-down" }} in a component's template.
If an icon file starts with _, it will be ignored, so you don't need to delete unused icons, just rename e.g. chevron-down.svg to _chevron-down.svg.

You can read more about this icon-sprite-strategy on CSS-Tricks

Favicons

If not provided, favicons can be generated on https://realfavicongenerator.net/.

Favicons are placed in images/favicons. The theme-color can be changed in .rm-frontendcr.js.

13.4.0

3 years ago

13.3.0

3 years ago

13.2.0

3 years ago

13.1.0

3 years ago

13.0.0

3 years ago

12.0.0

3 years ago

11.12.0

3 years ago

11.11.1

3 years ago

11.11.0

3 years ago

11.10.0

3 years ago

11.9.2

3 years ago

11.9.1

3 years ago

11.9.0

3 years ago

11.8.0

3 years ago

11.7.1

3 years ago

11.7.0

3 years ago

11.6.0

3 years ago

11.5.1

3 years ago

11.5.0

3 years ago

11.4.0

3 years ago

11.3.0

3 years ago

11.2.0

3 years ago

11.1.1

3 years ago

11.1.0

3 years ago

11.0.0

3 years ago

10.15.1

3 years ago

10.15.0

3 years ago

10.14.0

3 years ago

10.13.0

3 years ago

10.12.0

3 years ago

10.11.2

3 years ago

10.11.1

3 years ago

10.11.0

3 years ago

10.10.0

3 years ago

10.9.2

3 years ago

10.9.1

3 years ago

10.9.0

3 years ago

10.8.0

3 years ago

10.7.0

3 years ago

10.6.0

3 years ago

10.5.0

3 years ago

10.4.1

3 years ago

10.4.0

3 years ago

10.3.0

3 years ago

10.2.2

3 years ago

10.2.1

3 years ago

10.2.0

3 years ago

10.1.0

3 years ago

10.0.0

3 years ago

9.4.1

3 years ago

9.4.0

3 years ago

9.3.0

3 years ago

9.2.0

3 years ago

9.1.0

3 years ago

9.0.3

3 years ago

9.0.2

3 years ago

9.0.1

3 years ago

9.0.0

3 years ago

8.5.5

3 years ago

8.5.4

3 years ago

8.5.3

3 years ago

8.5.2

3 years ago

8.5.1

3 years ago

8.5.0

3 years ago

8.4.1

3 years ago

8.4.0

3 years ago

8.3.0

3 years ago

8.2.1

3 years ago

8.2.0

3 years ago

8.1.1

3 years ago

8.1.0

3 years ago

8.0.1

3 years ago

8.0.0

3 years ago

7.2.0

3 years ago

7.1.0

3 years ago

7.0.3

3 years ago

7.0.2

3 years ago

7.0.1

3 years ago

7.0.0

3 years ago

6.8.0

3 years ago

6.7.0

3 years ago

6.6.0

3 years ago

6.5.3

3 years ago

6.5.2

3 years ago

6.5.1

3 years ago

6.5.0

3 years ago

6.4.0

3 years ago

6.3.0

3 years ago

6.2.1

3 years ago

6.2.0

3 years ago

6.1.0

3 years ago

6.0.1

3 years ago

6.0.0

3 years ago

5.0.0

3 years ago

4.1.1

3 years ago

4.1.0

3 years ago

4.0.0

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.0

3 years ago

1.11.0

3 years ago

1.10.0

3 years ago

1.9.0

3 years ago

1.8.0

3 years ago

1.7.4

3 years ago

1.7.3

3 years ago

1.7.2

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.3

3 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.0.0

3 years ago