Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new Ubuntu variable font to custom CSS #160

Merged
merged 2 commits into from
Jan 9, 2024

Conversation

bartaz
Copy link
Member

@bartaz bartaz commented Jan 5, 2024

This PR adds @font-face definitions based on Vanilla to include latest Ubuntu variable web font, and uses this font in font config. This should fix the issue with wrong weight of the Ubuntu font and align this better with Vanilla styling.

image

Part of WEBDOC-7

Copy link
Contributor

@ru-fu ru-fu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but code examples appear quite different now - is this how it should be?

Now:
image

Before:
image

unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}


/** Fix the font weight (300 for normal, 400 for slightly bold) **/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do these font weights still make sense, or should it be 400 for normal text and 550 for bold now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. It needs to be adjusted, at least for the code blocks. I'll also have a look at other common text elements.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Contributor

@ru-fu ru-fu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, looks good to me! :)

(I'll wait a bit with merging in case someone else wants to review.)

@bartaz
Copy link
Member Author

bartaz commented Jan 5, 2024

Apart from the font itself the typography could use some adjustments towards Vanilla (font sizes, margins, etc), but should be fine as is for now.

@ru-fu ru-fu merged commit 70b1bb3 into canonical:main Jan 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants