Skip to content

Commit

Permalink
use cdnfonts
Browse files Browse the repository at this point in the history
  • Loading branch information
owickstrom committed Aug 27, 2024
1 parent 8a004d1 commit 656cb98
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
29 changes: 17 additions & 12 deletions index.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
@import url('https://fonts.cdnfonts.com/css/jetbrains-mono-2');

:root {
--font-family: "Fira Code", monospace;
--line-height: 1.25rem;
--font-family: "JetBrains Mono", monospace;
--line-height: 1.20rem;
--border-thickness: 2px;
--bold-weight: 700;
--text-color: #000;
--text-color-alt: #666;
--background-color: #fff;
--background-color-alt: #eee;

--font-weight-normal: 500;
--font-weight-medium: 600;
--font-weight-bold: 800;

font-family: var(--font-family);
font-optical-sizing: auto;
font-weight: 500;
font-weight: var(--font-weight-normal);
font-style: normal;
font-variant-numeric: tabular-nums lining-nums;
font-size: 16px;
Expand Down Expand Up @@ -64,7 +69,7 @@ body {
}

h1, h2, h3, h4, h5, h6 {
font-weight: var(--bold-weight);
font-weight: var(--font-weight-bold);
margin: calc(var(--line-height) * 2) 0 var(--line-height);
line-height: var(--line-height);
}
Expand Down Expand Up @@ -112,7 +117,7 @@ p {
}

strong {
font-weight: var(--bold-weight);
font-weight: var(--font-weight-bold);
}
em {
font-style: italic;
Expand Down Expand Up @@ -191,15 +196,15 @@ details {
}

summary {
font-weight: 600;
font-weight: var(--font-weight-medium);
}
details[open] summary {
margin-bottom: var(--line-height);
}

details ::marker {
display: inline-block;
content: '';
content: '';
margin: 0;
}
details[open] ::marker {
Expand All @@ -224,7 +229,7 @@ pre, code {
}

code {
font-weight: 600;
font-weight: var(--font-weight-medium);
}

figure {
Expand Down Expand Up @@ -262,7 +267,7 @@ ul ul {
ol li:before {
content: counters(item, ".") ". ";
counter-increment: item;
font-weight: 600;
font-weight: var(--font-weight-medium);
}

li {
Expand Down Expand Up @@ -334,7 +339,7 @@ button::-moz-focus-inner {

button {
text-transform: uppercase;
font-weight: 600;
font-weight: var(--font-weight-medium);
cursor: pointer;
}

Expand All @@ -350,7 +355,7 @@ label {
width: calc(round(down, 100%, 1ch));
height: auto;
line-height: var(--line-height);
font-weight: 600;
font-weight: var(--font-weight-medium);
margin: 0;
}

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<title>The Monospace Web</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap" rel="stylesheet">
<link href="https://fonts.cdnfonts.com/css/ibm-plex-mono" rel="stylesheet">
<link rel="stylesheet" href="reset.css" />
<link rel="stylesheet" href="index.css" />
</head>
Expand Down
3 changes: 0 additions & 3 deletions template.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
<meta name="description" content="$description-meta$" />
$endif$
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap" rel="stylesheet">
$for(css)$
<link rel="stylesheet" href="$css$" />
$endfor$
Expand Down

0 comments on commit 656cb98

Please sign in to comment.