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

chore: compare fonts in /examples/fonts page #2215

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
5bfc910
chore: compare fonts in /examples/fonts page
julien-deramond Aug 30, 2023
6ca3620
Add yellow lines + toggle button
julien-deramond Aug 30, 2023
fd6321e
[skip ci] Add second sub-section
julien-deramond Aug 30, 2023
678f89d
[skip ci] Add third sub-section
julien-deramond Aug 31, 2023
7b5d3dd
[skip ci] Add 4th and 5th sub-section
julien-deramond Aug 31, 2023
5cf1acc
Add Roboto font test
julien-deramond Sep 4, 2023
ada4d2c
[skip ci] .
julien-deramond Sep 5, 2023
ae44205
[skip ci] add example with 2-lines body text
julien-deramond Sep 5, 2023
32a0489
[skip ci] add last 2 examples
julien-deramond Sep 5, 2023
578ddfc
[skip ci] add sf pro display
julien-deramond Sep 5, 2023
e28fad7
[skip ci] add some yellow lines
julien-deramond Sep 5, 2023
2fb1b40
[skip ci] add some yellow lines
julien-deramond Sep 5, 2023
576c837
[skip ci] add some yellow lines
julien-deramond Sep 5, 2023
e1723ec
[skip ci] add some yellow lines
julien-deramond Sep 5, 2023
495a264
[skip ci] add some yellow lines
julien-deramond Sep 5, 2023
f2edff6
Add red background toggle button
MewenLeHo Sep 13, 2023
4ef55c1
Extend support
MewenLeHo Sep 13, 2023
e552e00
Fix dark mode
MewenLeHo Sep 13, 2023
3c0c635
[skip ci] Add more tests
MewenLeHo Sep 15, 2023
e8f4f0e
[skip ci] Fix text white
MewenLeHo Sep 15, 2023
aa47cb3
[skip ci] Add more values
MewenLeHo Sep 15, 2023
2980c0b
[skip ci] Add more values
MewenLeHo Sep 15, 2023
9304e5e
[skip ci] Add more bold examples
MewenLeHo Sep 15, 2023
5e169e9
Merge branch 'main' into main-jd-compare-fonts
MewenLeHo Sep 25, 2023
1672fd8
[skip ci] Update fonts
MewenLeHo Sep 25, 2023
a1aeb4f
[skip ci] Fix span red background
MewenLeHo Sep 26, 2023
52a33f7
[skip ci] Add letter spacing and line height for fs 30px
MewenLeHo Sep 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ $aspect-ratios: (

// scss-docs-start font-variables
// stylelint-disable value-keyword-case
$font-family-sans-serif: HelvNeueOrange#{"/*rtl:insert:Arabic*/"}, "Helvetica Neue", Helvetica, "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default;
$font-family-sans-serif: "Helvetica Neue", Helvetica, "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default;
$font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default;
// stylelint-enable value-keyword-case
$font-family-base: var(--#{$prefix}font-sans-serif) !default;
Expand Down
160 changes: 160 additions & 0 deletions site/content/docs/5.3/examples/fonts/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
.roboto {
font-family: 'Roboto', sans-serif !important;
}

.helvetica {
font-family: Helvetica !important;
}

.helvetica-neue {
font-family: "Helvetica Neue" !important;
}

.helvetica-neue-orange {
font-family: HelvNeueOrange !important;
}

.arial {
font-family: Arial !important;
}

.san-francisco {
font-family: 'SF Pro Display' !important;
}

.fw-400 {
font-weight: 400;
}

.fw-700 {
font-weight: 700;
}

.fs-14px {
font-size: 14px;
}

.fs-16px {
font-size: 16px;
}

.fs-18px {
font-size: 18px;
}

.fs-20px {
font-size: 20px;
}

.fs-24px {
font-size: 24px;
}

.fs-30px {
font-size: 30px;
}

.fs-34px {
font-size: 34px;
}

.fs-40px {
font-size: 40px;
}

.fs-50px {
font-size: 50px;
}

.lh-20px {
line-height: 20px;
}

.lh-26px {
line-height: 26px;
}

.lh-30px {
line-height: 30px;
}

.lh-40px {
line-height: 40px;
}

.lh-50px {
line-height: 50px;
}

.lh-1 {
line-height: 1;
}

.lh-107 {
line-height: 1.07;
}

.lh-108 {
line-height: 1.08;
}

.lh-111 {
line-height: 1.11;
}

.lh-114 {
line-height: 1.14;
}

.lh-150 {
line-height: 1.5;
}

.letter-spacing-n1 {
letter-spacing: -1px;
}

.letter-spacing-n1-4 {
letter-spacing: -1.4px;
}

.letter-spacing-n1-6 {
letter-spacing: -1.6px;
}

.letter-spacing-n0-8 {
letter-spacing: -.8px;
}

.letter-spacing-n0-4 {
letter-spacing: -.4px;
}

.letter-spacing-n0-2 {
letter-spacing: -.2px;
}

.letter-spacing-n0-25 {
letter-spacing: -.25px;
}

.letter-spacing-n0-5 {
letter-spacing: -.5px;
}

.letter-spacing-n0-1 {
letter-spacing: -.1px;
}

.bg-light-gray {
background-color: rgba(256, 0, 0, .4);
}

.bg-none {
background-color: none;
}

.w-500 {
width: 500px;
max-width: 500px;
}
Loading