Skip to content

Use our custom fonts in Lookbook

Thomas Hutterer requested to merge lookbook_use_custom_fonts into master

What does this MR do and why?

This MR adds our custom fonts stylesheets (currently split into two with a experimental FF) to the layout haml file that is used inside Lookbook for its component previews.

This way, our ViewComponent previews use the same fonts (Gitlab Sans, Gitlab Mono) as our main app does. Before, they used a system font. E.g. on Linux, that was "Ubuntu".

Screenshots or screen recordings

See the bottom-right of the screenshot. The alllllert title was the selected element. The screenshots were taken on a Linux system.

Before After
image image

How to set up and validate locally

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Thomas Hutterer

Merge request reports