@youversion/design-system-components 2.10.0 → 3.0.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,65 @@
1
1
  # @youversion/design-system-components
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 44bd6c8: Migrate the design system's Aktiv Grotesk font implementation from self-hosted web fonts to Adobe Fonts licensing to ensure proper licensing compliance. This is a breaking change that will require all consuming applications to add the Adobe Fonts stylesheet and Content Security Policy:
8
+
9
+ (1) TypeKit will need to be added to any exisiting Content Security Policies:
10
+ font-src 'self' https://use.typekit.net;
11
+ style-src 'self' https://use.typekit.net;
12
+
13
+ (2) Add the Adobe Fonts link to your HTML `<head>` for Aktiv Grotesk:
14
+
15
+ ```html
16
+ <!-- In your HTML head section -->
17
+ <link rel="stylesheet" href="https://use.typekit.net/wfn2tts.css" />
18
+ ```
19
+
20
+ For Next.js App Router, add this to your `app/layout.tsx`:
21
+
22
+ ```tsx
23
+ // app/layout.tsx
24
+ export default function RootLayout({ children }: { children: React.ReactNode }) {
25
+ return (
26
+ <html lang='en'>
27
+ <head>
28
+ <link rel='stylesheet' href='https://use.typekit.net/wfn2tts.css' />
29
+ </head>
30
+ <body>{children}</body>
31
+ </html>
32
+ );
33
+ }
34
+ ```
35
+
36
+ For Next.js Pages Router, add this to your `pages/_document.tsx`:
37
+
38
+ ```tsx
39
+ // pages/_document.tsx
40
+ import { Html, Head, Main, NextScript } from 'next/document';
41
+
42
+ export default function Document() {
43
+ return (
44
+ <Html>
45
+ <Head>
46
+ <link rel='stylesheet' href='https://use.typekit.net/wfn2tts.css' />
47
+ </Head>
48
+ <body>
49
+ <Main />
50
+ <NextScript />
51
+ </body>
52
+ </Html>
53
+ );
54
+ }
55
+ ```
56
+
57
+ ### Patch Changes
58
+
59
+ - Updated dependencies [44bd6c8]
60
+ - @youversion/design-system-tokens@3.0.0
61
+ - @youversion/design-system-core@5.0.0
62
+
3
63
  ## 2.10.0
4
64
 
5
65
  ### Minor Changes
package/dist/index.es.js CHANGED
@@ -224,8 +224,8 @@ var Xe = Object.defineProperty, Ye = Object.defineProperties, Ke = Object.getOwn
224
224
  bold: 700
225
225
  },
226
226
  fontFamily: {
227
- "aktiv-grotesk": 'Aktiv Grotesk, "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif',
228
- "aktiv-grotesk-exanded": 'Aktiv Grotesk Expanded, Aktiv Grotesk, "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif',
227
+ "aktiv-grotesk": '"aktiv-grotesk", "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif',
228
+ "aktiv-grotesk-expanded": '"aktiv-grotesk-expanded", "aktiv-grotesk", "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif',
229
229
  "untitled-serif": "Untitled Serif, Baskerville, Georgia, Times New Roman, serif"
230
230
  },
231
231
  lineHeight: {