Skip to content

Commit b642af7

Browse files
committed
[css-fonts-4][editorial] starting a new color font example
1 parent 028aed6 commit b642af7

File tree

4 files changed

+55
-0
lines changed

4 files changed

+55
-0
lines changed
Binary file not shown.

css-fonts-4/highlighter/monaspace.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@font-face {
2+
font-family: 'Monaspace';
3+
src:
4+
url('/MonaspaceKrypton-SyntaxHighlighter-Regular.woff2')
5+
format('woff2')
6+
;
7+
}
8+
code {
9+
font-family: "Monaspace", monospace;
10+
font-feature-settings: "colr", "calt";
11+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<style>
3+
@font-face {
4+
font-family: 'Monaspace';
5+
src:
6+
url('./MonaspaceKrypton-SyntaxHighlighter-Regular.woff2')
7+
format('woff2');
8+
}
9+
textarea {
10+
font-family: "Monaspace", monospace;
11+
font-variant-ligatures: contextual common-ligatures;
12+
font-variant-alternates: styleset(ss04);
13+
xfont-feature-settings: "colr", "calt";
14+
font-feature-settings: "colr";
15+
background-color: #BBA;
16+
width: 30em;
17+
height: 6em;
18+
}
19+
</style>
20+
<textarea>
21+
<div class="spoilers">
22+
<strong>Yes, it's possible!</strong>
23+
<small>...to some extent =)</small>
24+
</div>
25+
</textarea>

css-fonts-4/monaspace.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<style>
2+
@font-face {
3+
font-family: 'Monaspace';
4+
src:
5+
url('./MonaspaceKrypton-SyntaxHighlighter-Regular.woff2')
6+
format('woff2')
7+
;
8+
}
9+
textarea {
10+
font-family: "Monaspace", monospace;
11+
font-feature-settings: "colr", "calt";
12+
}
13+
</style>
14+
<textarea>
15+
<div class="spoilers">
16+
<strong>Yes, it's possible!</strong>
17+
<small>...to some extent =)</small>
18+
</div>
19+
</textarea>

0 commit comments

Comments
 (0)