@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.
@@ -18,8 +18,8 @@ export const CUSTOM_FONT_FAMILY_DEFINITIONS = Object.freeze({
18
18
  }),
19
19
  });
20
20
 
21
- export type CustomFontFamilyKey = keyof typeof CUSTOM_FONT_FAMILY_DEFINITIONS;
22
- export type CustomFontFaceKey = keyof typeof CUSTOM_FONT_FACE_DEFINITIONS;
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
- export interface CustomFontValidationOptions {
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}'Libertinus Mono', 'Courier New', 'Courier', monospace`;
221
+ return `${custom}'Courier Prime', 'Courier New', 'Courier', monospace`;
222
222
  }
223
223
 
224
224
  function defaultParseFont(contents: Buffer): ParsedFont {
@@ -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
- 'libertinus-mono/LibertinusMono-Regular.woff2',
17
+ 'courier-prime/CourierPrime-Regular.woff2',
18
18
  ],
19
19
  } as const;
20
20
 
21
- export interface DefaultFontPreloadFile {
21
+ interface DefaultFontPreloadFile {
22
22
  filePath: string;
23
23
  source: 'package' | 'public';
24
24
  }
@@ -1,10 +1,4 @@
1
- Copyright 2025 The Libertinus Keyboard Project Authors (https://github.com/googlefonts/libertinus)
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:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abreen/tada",
3
- "version": "1.16.10",
3
+ "version": "1.16.12",
4
4
  "type": "module",
5
5
  "description": "A static site generator",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
- export type FontPreference = 'sans' | 'serif';
2
- export type ContrastPreference = 'standard' | 'high';
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';
@@ -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: 'Libertinus Mono';
61
+ font-family: 'Courier Prime';
62
62
  font-style: normal;
63
63
  font-weight: 400;
64
- src: url('libertinus-mono/LibertinusMono-Regular.woff2') format('woff2');
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 {
@@ -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' : 'Libertinus Mono' %>',
47
+ '<%= site.fontOverrides?.serifMono ? 'Tada Custom Serif Mono' : 'Courier Prime' %>',
48
48
  ],
49
49
  };
50
50
  const fontPreferenceLoader = {