@abreen/tada 1.16.10 → 1.16.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/custom-fonts.ts +4 -4
- package/build/generate-fonts.ts +2 -2
- package/fonts/{libertinus-mono → courier-prime}/LICENSE.txt +1 -7
- package/fonts/courier-prime/woff2/CourierPrime-Bold.woff2 +0 -0
- package/fonts/courier-prime/woff2/CourierPrime-BoldItalic.woff2 +0 -0
- package/fonts/courier-prime/woff2/CourierPrime-Italic.woff2 +0 -0
- package/fonts/courier-prime/woff2/CourierPrime-Regular.woff2 +0 -0
- package/package.json +1 -1
- package/src/appearance-picker/index.ts +2 -2
- package/src/header/_base.scss +20 -0
- package/src/style.scss +30 -2
- package/templates/_top.html +1 -1
- package/fonts/libertinus-mono/woff2/LibertinusMono-Regular.woff2 +0 -0
package/build/custom-fonts.ts
CHANGED
|
@@ -18,8 +18,8 @@ export const CUSTOM_FONT_FAMILY_DEFINITIONS = Object.freeze({
|
|
|
18
18
|
}),
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
type CustomFontFamilyKey = keyof typeof CUSTOM_FONT_FAMILY_DEFINITIONS;
|
|
22
|
+
type CustomFontFaceKey = keyof typeof CUSTOM_FONT_FACE_DEFINITIONS;
|
|
23
23
|
|
|
24
24
|
const FACE_KEYS = Object.freeze(
|
|
25
25
|
Object.keys(CUSTOM_FONT_FACE_DEFINITIONS) as CustomFontFaceKey[],
|
|
@@ -32,7 +32,7 @@ interface ParsedFont {
|
|
|
32
32
|
availableFeatures: readonly string[];
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
interface CustomFontValidationOptions {
|
|
36
36
|
fontOverrides: FontOverrides | undefined;
|
|
37
37
|
publicDir: string;
|
|
38
38
|
publicFiles: ReadonlySet<string>;
|
|
@@ -218,7 +218,7 @@ export function getSerifMonoFontStack(
|
|
|
218
218
|
const custom = fontOverrides?.serifMono
|
|
219
219
|
? `'${CUSTOM_FONT_FAMILY_DEFINITIONS.serifMono.cssFamily}', `
|
|
220
220
|
: '';
|
|
221
|
-
return `${custom}'
|
|
221
|
+
return `${custom}'Courier Prime', 'Courier New', 'Courier', monospace`;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
function defaultParseFont(contents: Buffer): ParsedFont {
|
package/build/generate-fonts.ts
CHANGED
|
@@ -14,11 +14,11 @@ export const DEFAULT_FONT_PRELOAD_FILES = {
|
|
|
14
14
|
],
|
|
15
15
|
serif: [
|
|
16
16
|
'source-serif-4/SourceSerif4-VariableFont_opsz,wght.woff2',
|
|
17
|
-
'
|
|
17
|
+
'courier-prime/CourierPrime-Regular.woff2',
|
|
18
18
|
],
|
|
19
19
|
} as const;
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
interface DefaultFontPreloadFile {
|
|
22
22
|
filePath: string;
|
|
23
23
|
source: 'package' | 'public';
|
|
24
24
|
}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
Copyright
|
|
2
|
-
Copyright 2025 The Libertinus Math Project Authors (https://github.com/googlefonts/libertinus)
|
|
3
|
-
Copyright 2025 The Libertinus Mono Project Authors (https://github.com/googlefonts/libertinus)
|
|
4
|
-
Copyright 2025 The Libertinus Sans Project Authors (https://github.com/googlefonts/libertinus)
|
|
5
|
-
Copyright 2025 The Libertinus Serif Project Authors (https://github.com/googlefonts/libertinus)
|
|
6
|
-
Copyright 2025 The Libertinus Serif Display Project Authors (https://github.com/googlefonts/libertinus)
|
|
7
|
-
Copyright 2025 The Libertinus Serif Initials Project Authors (https://github.com/googlefonts/libertinus)
|
|
1
|
+
Copyright 2015 The Courier Prime Project Authors (https://github.com/quoteunquoteapps/CourierPrime).
|
|
8
2
|
|
|
9
3
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
10
4
|
This license is copied below, and is also available with a FAQ at:
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type FontPreference = 'sans' | 'serif';
|
|
2
|
+
type ContrastPreference = 'standard' | 'high';
|
|
3
3
|
|
|
4
4
|
const FONT_STORAGE_KEY = 'fontPreference';
|
|
5
5
|
const CONTRAST_STORAGE_KEY = 'contrastPreference';
|
package/src/header/_base.scss
CHANGED
|
@@ -16,6 +16,7 @@ header {
|
|
|
16
16
|
grid-template-columns: 1fr;
|
|
17
17
|
width: 100%;
|
|
18
18
|
background: var(--bg-color-translucent);
|
|
19
|
+
border-bottom: 1px solid var(--bg2-color);
|
|
19
20
|
backdrop-filter: var(--backdrop-filter);
|
|
20
21
|
view-transition-name: site-header;
|
|
21
22
|
|
|
@@ -36,6 +37,25 @@ header {
|
|
|
36
37
|
background: var(--bg-color);
|
|
37
38
|
}
|
|
38
39
|
|
|
40
|
+
body > .container::before {
|
|
41
|
+
position: fixed;
|
|
42
|
+
inset: 0;
|
|
43
|
+
z-index: 999;
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
content: '';
|
|
46
|
+
background: var(--bg-color-translucent);
|
|
47
|
+
opacity: 0;
|
|
48
|
+
|
|
49
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
50
|
+
transition: opacity 150ms ease-out;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
body:has(header details[open]) > .container::before {
|
|
55
|
+
pointer-events: auto;
|
|
56
|
+
opacity: 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
39
59
|
header > details {
|
|
40
60
|
min-width: 0;
|
|
41
61
|
}
|
package/src/style.scss
CHANGED
|
@@ -58,11 +58,39 @@
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
@font-face {
|
|
61
|
-
font-family: '
|
|
61
|
+
font-family: 'Courier Prime';
|
|
62
62
|
font-style: normal;
|
|
63
63
|
font-weight: 400;
|
|
64
|
-
src: url('
|
|
64
|
+
src: url('courier-prime/CourierPrime-Regular.woff2') format('woff2');
|
|
65
65
|
font-display: swap;
|
|
66
|
+
size-adjust: 106.383%;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@font-face {
|
|
70
|
+
font-family: 'Courier Prime';
|
|
71
|
+
font-style: italic;
|
|
72
|
+
font-weight: 400;
|
|
73
|
+
src: url('courier-prime/CourierPrime-Italic.woff2') format('woff2');
|
|
74
|
+
font-display: swap;
|
|
75
|
+
size-adjust: 106.383%;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@font-face {
|
|
79
|
+
font-family: 'Courier Prime';
|
|
80
|
+
font-style: normal;
|
|
81
|
+
font-weight: 700;
|
|
82
|
+
src: url('courier-prime/CourierPrime-Bold.woff2') format('woff2');
|
|
83
|
+
font-display: swap;
|
|
84
|
+
size-adjust: 106.383%;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@font-face {
|
|
88
|
+
font-family: 'Courier Prime';
|
|
89
|
+
font-style: italic;
|
|
90
|
+
font-weight: 700;
|
|
91
|
+
src: url('courier-prime/CourierPrime-BoldItalic.woff2') format('woff2');
|
|
92
|
+
font-display: swap;
|
|
93
|
+
size-adjust: 106.383%;
|
|
66
94
|
}
|
|
67
95
|
|
|
68
96
|
::selection {
|
package/templates/_top.html
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
sans: ['Inter', 'Google Sans Code'],
|
|
45
45
|
serif: [
|
|
46
46
|
'<%= site.fontOverrides?.serif ? 'Tada Custom Serif' : 'Source Serif 4' %>',
|
|
47
|
-
'<%= site.fontOverrides?.serifMono ? 'Tada Custom Serif Mono' : '
|
|
47
|
+
'<%= site.fontOverrides?.serifMono ? 'Tada Custom Serif Mono' : 'Courier Prime' %>',
|
|
48
48
|
],
|
|
49
49
|
};
|
|
50
50
|
const fontPreferenceLoader = {
|
|
Binary file
|