@nous-research/ui 0.14.0 → 0.14.1

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
@@ -13,6 +13,22 @@ import the global styles in your app's root css file:
13
13
  @import '@nous-research/ui/styles/globals.css';
14
14
  ```
15
15
 
16
+ `globals.css` includes the design-system tokens, utilities, component styles,
17
+ and default `--font-*` variable values, but does not register font files.
18
+ Import the optional font stylesheet first if your app wants CSS-managed
19
+ `@font-face` declarations:
20
+
21
+ ```css
22
+ @import 'tailwindcss';
23
+ @import '@nous-research/ui/styles/fonts.css';
24
+ @import '@nous-research/ui/styles/globals.css';
25
+ ```
26
+
27
+ Next.js apps should prefer `next/font/local` with the exported
28
+ `@nous-research/ui/fonts/*` files and map them to the same `--font-*`
29
+ variables. Apps can also provide their own `--font-*` variables while keeping
30
+ the design-system utilities from `globals.css`.
31
+
16
32
  ## usage
17
33
 
18
34
  everything exports from the top level export:
package/dist/ui/build.css CHANGED
@@ -1,3 +1,4 @@
1
1
  @import "tailwindcss";
2
2
  @source "../";
3
+ @import "./fonts.css";
3
4
  @import "./globals.css";
@@ -1,5 +1,4 @@
1
1
  @source ".";
2
- @import './fonts.css';
3
2
  @import './components/fit-text/fit-text.css' layer(components);
4
3
  @import './components/grid/grid.css' layer(components);
5
4
  @import './components/modal/modal.css' layer(components);
@@ -145,6 +144,11 @@
145
144
  --foreground: color-mix(in srgb, #fff 100%, transparent);
146
145
  --foreground-base: #fff;
147
146
  --foreground-alpha: 1;
147
+ --font-sans: 'Collapse', sans-serif;
148
+ --font-mono: 'Courier Prime', monospace;
149
+ --font-rules-compressed: 'Rules Compressed', sans-serif;
150
+ --font-rules-expanded: 'Rules Expanded', sans-serif;
151
+ --font-mondwest: 'Mondwest', sans-serif;
148
152
  --vsq: calc(0.5vw + 0.5vh);
149
153
  }
150
154
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nous-research/ui",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "sideEffects": [
@@ -35,6 +35,7 @@
35
35
  },
36
36
  "./fonts/*": "./dist/fonts/*",
37
37
  "./assets/*": "./dist/assets/*",
38
+ "./styles/fonts.css": "./dist/ui/fonts.css",
38
39
  "./styles/globals.css": "./dist/ui/globals.css"
39
40
  },
40
41
  "scripts": {