@nadicodeai/design-system 0.19.2 → 0.20.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/README.md CHANGED
@@ -14,7 +14,7 @@ Import the complete CSS module once:
14
14
 
15
15
  That interface includes the generated tokens, mode aliases, semantic role maps, page geometry, type utilities, motion primitives, and framework-agnostic CSS components. Apply `.dark` to the document root or to a scoped static composition to select dark mode. The generation and cascade mechanics live only in [`DESIGN.md`, "CSS Architecture & Token Pipeline"](./DESIGN.md#css-architecture--token-pipeline).
16
16
 
17
- Geist and Geist Mono (SIL Open Font License 1.1) are optional package assets. A static consumer that does not supply its own font loading can import the `@font-face` shim:
17
+ That interface also registers the brand typeface. Geist and Geist Mono (SIL Open Font License 1.1) ship with the package, and the CSS module declares their `@font-face` rules and loads the woff2 files from package paths, so no consumer supplies its own font loading. The `@font-face` shim stays exported for a consumer that wants the faces without the CSS module:
18
18
 
19
19
  ```css
20
20
  @import "@nadicodeai/design-system/assets/fonts/geist.css";
@@ -100,8 +100,7 @@ accessibility contract.
100
100
  <head>
101
101
  <meta charset="utf-8" />
102
102
  <meta name="viewport" content="width=device-width, initial-scale=1" />
103
- <!-- Geist + Geist Mono, then the bundle -->
104
- <link rel="stylesheet" href="https://unpkg.com/@nadicodeai/design-system/assets/fonts/geist.css" />
103
+ <!-- One stylesheet: tokens, geometry, components, and the brand typeface -->
105
104
  <link rel="stylesheet" href="https://unpkg.com/@nadicodeai/design-system/css" />
106
105
  <!-- In a bundler, prefer a CSS entry: @import "@nadicodeai/design-system/css"; -->
107
106
  </head>
@@ -0,0 +1,92 @@
1
+ Copyright (c) 2023 Vercel, in collaboration with basement.studio
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+ -----------------------------------------------------------
8
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
9
+ -----------------------------------------------------------
10
+
11
+ PREAMBLE
12
+ The goals of the Open Font License (OFL) are to stimulate worldwide
13
+ development of collaborative font projects, to support the font creation
14
+ efforts of academic and linguistic communities, and to provide a free and
15
+ open framework in which fonts may be shared and improved in partnership
16
+ with others.
17
+
18
+ The OFL allows the licensed fonts to be used, studied, modified and
19
+ redistributed freely as long as they are not sold by themselves. The
20
+ fonts, including any derivative works, can be bundled, embedded,
21
+ redistributed and/or sold with any software provided that any reserved
22
+ names are not used by derivative works. The fonts and derivatives,
23
+ however, cannot be released under any other type of license. The
24
+ requirement for fonts to remain under this license does not apply
25
+ to any document created using the fonts or their derivatives.
26
+
27
+ DEFINITIONS
28
+ "Font Software" refers to the set of files released by the Copyright
29
+ Holder(s) under this license and clearly marked as such. This may
30
+ include source files, build scripts and documentation.
31
+
32
+ "Reserved Font Name" refers to any names specified as such after the
33
+ copyright statement(s).
34
+
35
+ "Original Version" refers to the collection of Font Software components as
36
+ distributed by the Copyright Holder(s).
37
+
38
+ "Modified Version" refers to any derivative made by adding to, deleting,
39
+ or substituting -- in part or in whole -- any of the components of the
40
+ Original Version, by changing formats or by porting the Font Software to a
41
+ new environment.
42
+
43
+ "Author" refers to any designer, engineer, programmer, technical
44
+ writer or other person who contributed to the Font Software.
45
+
46
+ PERMISSION AND CONDITIONS
47
+ Permission is hereby granted, free of charge, to any person obtaining
48
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
49
+ redistribute, and sell modified and unmodified copies of the Font
50
+ Software, subject to the following conditions:
51
+
52
+ 1) Neither the Font Software nor any of its individual components,
53
+ in Original or Modified Versions, may be sold by itself.
54
+
55
+ 2) Original or Modified Versions of the Font Software may be bundled,
56
+ redistributed and/or sold with any software, provided that each copy
57
+ contains the above copyright notice and this license. These can be
58
+ included either as stand-alone text files, human-readable headers or
59
+ in the appropriate machine-readable metadata fields within text or
60
+ binary files as long as those fields can be easily viewed by the user.
61
+
62
+ 3) No Modified Version of the Font Software may use the Reserved Font
63
+ Name(s) unless explicit written permission is granted by the corresponding
64
+ Copyright Holder. This restriction only applies to the primary font name as
65
+ presented to the users.
66
+
67
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
68
+ Software shall not be used to promote, endorse or advertise any
69
+ Modified Version, except to acknowledge the contribution(s) of the
70
+ Copyright Holder(s) and the Author(s) or with their explicit written
71
+ permission.
72
+
73
+ 5) The Font Software, modified or unmodified, in part or in whole,
74
+ must be distributed entirely under this license, and must not be
75
+ distributed under any other license. The requirement for fonts to
76
+ remain under this license does not apply to any document created
77
+ using the Font Software.
78
+
79
+ TERMINATION
80
+ This license becomes null and void if any of the above conditions are
81
+ not met.
82
+
83
+ DISCLAIMER
84
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
85
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
86
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
87
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
88
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
89
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
90
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
91
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
92
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -1,5 +1,43 @@
1
1
  @layer tokens, theme, reset, foundation, motion, layout, primitives, components;
2
2
 
3
+ /* src/assets/fonts/geist.css */
4
+ /*!
5
+ * Geist & Geist Mono — SIL Open Font License 1.1
6
+ * © 2023 Vercel, in collaboration with basement.studio
7
+ * Source: https://github.com/vercel/geist-font. The full licence ships as
8
+ * OFL.txt beside the font files this stylesheet points at.
9
+ * Marked as a legal comment so the attribution survives into the bundled
10
+ * public artifact that ships those files.
11
+ */
12
+ @font-face {
13
+ font-family: "Geist";
14
+ font-style: normal;
15
+ font-weight: 100 900;
16
+ font-display: swap;
17
+ src: url(./assets/fonts/files/Geist-Variable.woff2) format("woff2");
18
+ }
19
+ @font-face {
20
+ font-family: "Geist";
21
+ font-style: italic;
22
+ font-weight: 100 900;
23
+ font-display: swap;
24
+ src: url(./assets/fonts/files/Geist-Italic.woff2) format("woff2");
25
+ }
26
+ @font-face {
27
+ font-family: "Geist Mono";
28
+ font-style: normal;
29
+ font-weight: 100 900;
30
+ font-display: swap;
31
+ src: url(./assets/fonts/files/GeistMono-Variable.woff2) format("woff2");
32
+ }
33
+ @font-face {
34
+ font-family: "Geist Mono";
35
+ font-style: italic;
36
+ font-weight: 100 900;
37
+ font-display: swap;
38
+ src: url(./assets/fonts/files/GeistMono-Italic.woff2) format("woff2");
39
+ }
40
+
3
41
  /* src/css/tokens.generated.css */
4
42
  @layer tokens {
5
43
  :root {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadicodeai/design-system",
3
- "version": "0.19.2",
3
+ "version": "0.20.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -154,6 +154,7 @@
154
154
  "generate:favicons": "tsx scripts/generate-favicons.ts",
155
155
  "lint:design": "design.md lint DESIGN.md",
156
156
  "lint": "eslint --max-warnings=0",
157
+ "typecheck": "tsc -p tsconfig.json",
157
158
  "test": "vitest run",
158
159
  "test:visual": "playwright test --config playwright.visual.config.ts",
159
160
  "prepublishOnly": "npm run build"
@@ -1,7 +1,10 @@
1
- /*
1
+ /*!
2
2
  * Geist & Geist Mono — SIL Open Font License 1.1
3
3
  * © 2023 Vercel, in collaboration with basement.studio
4
- * Source: https://github.com/vercel/geist-font (see ./OFL.txt).
4
+ * Source: https://github.com/vercel/geist-font. The full licence ships as
5
+ * OFL.txt beside the font files this stylesheet points at.
6
+ * Marked as a legal comment so the attribution survives into the bundled
7
+ * public artifact that ships those files.
5
8
  */
6
9
 
7
10
  @font-face {