@prismora/fonts 0.1.1 → 0.1.3

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
@@ -7,7 +7,7 @@ npm install @prismora/fonts
7
7
  ```
8
8
 
9
9
  ```ts
10
- import '@prismora/fonts/pairing-inter'; // the files of one pairing
10
+ import '@prismora/fonts/pairing-inter.css'; // the files of one pairing
11
11
  ```
12
12
 
13
13
  Pick the pairing in your theme (`typography: { font: 'inter' }`).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * @prismora/fonts — self-hosted variable fonts (SIL Open Font License 1.1, via Fontsource) and the pairings that use
3
3
  * them. Import only what you use; each file loads just the character subsets a page needs (unicode-range).
4
4
  *
5
- * import '@prismora/fonts/pairing-inter'; // every font of a pairing
5
+ * import '@prismora/fonts/pairing-inter.css'; // every font of a pairing
6
6
  * import '@prismora/fonts/fraunces'; // or a single font
7
7
  * <html data-font="inter"> // apply a pairing (or set typography.font in your theme)
8
8
  */
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * @prismora/fonts — self-hosted variable fonts (SIL Open Font License 1.1, via Fontsource) and the pairings that use
3
3
  * them. Import only what you use; each file loads just the character subsets a page needs (unicode-range).
4
4
  *
5
- * import '@prismora/fonts/pairing-inter'; // every font of a pairing
5
+ * import '@prismora/fonts/pairing-inter.css'; // every font of a pairing
6
6
  * import '@prismora/fonts/fraunces'; // or a single font
7
7
  * <html data-font="inter"> // apply a pairing (or set typography.font in your theme)
8
8
  */
@@ -30,4 +30,4 @@ export function pairingFonts(id) {
30
30
  return [...new Set(fams.map((f) => byFamily.get(f)).filter(Boolean))];
31
31
  }
32
32
  /** Module specifiers to import for a pairing, e.g. for a code snippet or a dynamic import. */
33
- export const pairingImport = (id) => `@prismora/fonts/pairing-${id}`;
33
+ export const pairingImport = (id) => `@prismora/fonts/pairing-${id}.css`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismora/fonts",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Self-hosted, open-licence (OFL) variable fonts and font pairings for Prismora. Import only the fonts you use.",
5
5
  "keywords": [
6
6
  "prismora",
@@ -28,6 +28,7 @@
28
28
  "default": "./dist/index.js"
29
29
  },
30
30
  "./all.css": "./css/all.css",
31
+ "./*.css": "./css/*.css",
31
32
  "./*": "./css/*.css"
32
33
  },
33
34
  "files": [
@@ -50,7 +51,7 @@
50
51
  "@fontsource-variable/plus-jakarta-sans": "^5.3.0",
51
52
  "@fontsource-variable/source-serif-4": "^5.3.1",
52
53
  "@fontsource-variable/space-grotesk": "^5.3.0",
53
- "@prismora/tokens": "^0.1.1"
54
+ "@prismora/tokens": "^0.1.3"
54
55
  },
55
56
  "publishConfig": {
56
57
  "access": "public"