Skip to content

Commit

Permalink
typography improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
micolsalomone committed Nov 5, 2024
1 parent 560f1d2 commit b4579cb
Show file tree
Hide file tree
Showing 18 changed files with 65 additions and 13 deletions.
22 changes: 10 additions & 12 deletions docs/themes/dyne-soft/assets/assets/sass/_elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ body {
overflow-x: hidden;
}
p {
font-size: 1.2em; /* 16px is the default em size */
line-height: 1.9555em; /* = 22px/14px */
font-size: 1.25em; /* 20px */
line-height: 1.5em; /* 24px */
margin-bottom: 1.5em;
}
em {
Expand All @@ -44,26 +44,24 @@ pre > code {
}
h1, h2, h3, h4, h5, h6 {
font-family: _font(family);
text-transform: uppercase;
font-weight: 700;
font-weight: 500;
margin-bottom: 1.5em;
line-height: 1.5;
}
h1 {
font-size: 2.9em;
line-height: 1.1em;
font-size: 2.5em;
}
h2 {
font-size: 2em;
line-height: 2em;
font-size: 2.25em;
}
h3 {
font-size: 2em;
}
h4 {
font-size: 1.5em;
line-height: 1,83333333333em;
font-family: _font(family);

}
ul, ol {
font-size: 1.2em;
font-size: 1.25em;
}
strong {
font-weight: 500;
Expand Down
56 changes: 55 additions & 1 deletion docs/themes/dyne-soft/assets/assets/sass/libs/_vars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,64 @@

}

@font-face {
font-family: 'jakarta';
src: url('/tomb/assets/fonts/jakarta/webfonts/PlusJakartaSans-Regular.woff2'),
url('/tomb/assets/fonts/jakarta/ttf/PlusJakartaSans-Regular.ttf') format('ttf');
font-weight: normal;
font-style: normal;

}

@font-face {
font-family: 'jakarta';
src: url('/tomb/assets/fonts/jakarta/webfonts/PlusJakartaSans-Italic.woff2'),
url('/tomb/assets/fonts/jakarta/ttf/PlusJakartaSans-Italic.ttf') format('ttf');
font-weight: normal;
font-style: italic;

}

@font-face {
font-family: 'jakarta';
src: url('/tomb/assets/fonts/jakarta/webfonts/PlusJakartaSans-Medium.woff2'),
url('/tomb/assets/fonts/jakarta/ttf/PlusJakartaSans-Medium.ttf') format('ttf');
font-weight: 300;
font-style: normal;

}

@font-face {
font-family: 'jakarta';
src: url('/tomb/assets/fonts/jakarta/webfonts/PlusJakartaSans-MediumItalic.woff2'),
url('/tomb/assets/fonts/jakarta/ttf/PlusJakartaSans-MediumItalic.ttf') format('ttf');
font-weight: 300;
font-style: italic;

}


@font-face {
font-family: 'jakarta';
src: url('/tomb/assets/fonts/jakarta/webfonts/PlusJakartaSans-Bold.woff2'),
url('/tomb/assets/fonts/jakarta/ttf/PlusJakartaSans-Bold.ttf') format('ttf');
font-weight: 500;
font-style: normal;
}

@font-face {
font-family: 'jakarta';
src: url('/tomb/assets/fonts/jakarta/webfonts/PlusJakartaSans-BoldItalic.woff2'),
url('/tomb/assets/fonts/jakarta/ttf/PlusJakartaSans-BoldItalic.ttf') format('ttf');
font-weight: 500;
font-style: italic;
}



$font: (
title: ('syne', 'Arial', 'Helvetica', sans-serif),
family: ('syne', 'Arial', 'Helvetica', sans-serif),
family: ('jakarta', 'Arial', 'Helvetica', sans-serif),
family-fixed: ('syne-mono', 'dejavu_sans_monobook', 'Lucida Console', Monaco, monospace),
weight: 200,
weight-bold: 700,
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit b4579cb

Please sign in to comment.