@obvia/fonts 0.0.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/changelog.md +3 -0
- package/dist/index.d.mts +75 -0
- package/dist/index.d.ts +75 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +59 -0
- package/readme.md +169 -0
- package/src/fonts/obvia-mono/ObviaMono-Black.ttf +0 -0
- package/src/fonts/obvia-mono/ObviaMono-Black.woff2 +0 -0
- package/src/fonts/obvia-mono/ObviaMono-Bold.ttf +0 -0
- package/src/fonts/obvia-mono/ObviaMono-Bold.woff2 +0 -0
- package/src/fonts/obvia-mono/ObviaMono-Light.ttf +0 -0
- package/src/fonts/obvia-mono/ObviaMono-Light.woff2 +0 -0
- package/src/fonts/obvia-mono/ObviaMono-Medium.ttf +0 -0
- package/src/fonts/obvia-mono/ObviaMono-Medium.woff2 +0 -0
- package/src/fonts/obvia-mono/ObviaMono-Regular.ttf +0 -0
- package/src/fonts/obvia-mono/ObviaMono-Regular.woff2 +0 -0
- package/src/fonts/obvia-mono/ObviaMono-SemiBold.ttf +0 -0
- package/src/fonts/obvia-mono/ObviaMono-SemiBold.woff2 +0 -0
- package/src/fonts/obvia-mono/ObviaMono-Thin.ttf +0 -0
- package/src/fonts/obvia-mono/ObviaMono-Thin.woff2 +0 -0
- package/src/fonts/obvia-mono/ObviaMono-UltraBlack.ttf +0 -0
- package/src/fonts/obvia-mono/ObviaMono-UltraBlack.woff2 +0 -0
- package/src/fonts/obvia-mono/ObviaMono-UltraLight.ttf +0 -0
- package/src/fonts/obvia-mono/ObviaMono-UltraLight.woff2 +0 -0
- package/src/fonts/obvia-mono/ObviaMono-Variable.ttf +0 -0
- package/src/fonts/obvia-mono/ObviaMono-Variable.woff2 +0 -0
- package/src/fonts/obvia-pixel/ObviaPixel-Circle.ttf +0 -0
- package/src/fonts/obvia-pixel/ObviaPixel-Circle.woff2 +0 -0
- package/src/fonts/obvia-pixel/ObviaPixel-Grid.ttf +0 -0
- package/src/fonts/obvia-pixel/ObviaPixel-Grid.woff2 +0 -0
- package/src/fonts/obvia-pixel/ObviaPixel-Line.ttf +0 -0
- package/src/fonts/obvia-pixel/ObviaPixel-Line.woff2 +0 -0
- package/src/fonts/obvia-pixel/ObviaPixel-Square.ttf +0 -0
- package/src/fonts/obvia-pixel/ObviaPixel-Square.woff2 +0 -0
- package/src/fonts/obvia-pixel/ObviaPixel-Triangle.ttf +0 -0
- package/src/fonts/obvia-pixel/ObviaPixel-Triangle.woff2 +0 -0
- package/src/fonts/obvia-sans/Obvia-Black.ttf +0 -0
- package/src/fonts/obvia-sans/Obvia-Black.woff2 +0 -0
- package/src/fonts/obvia-sans/Obvia-Bold.ttf +0 -0
- package/src/fonts/obvia-sans/Obvia-Bold.woff2 +0 -0
- package/src/fonts/obvia-sans/Obvia-Italic.ttf +0 -0
- package/src/fonts/obvia-sans/Obvia-Light.ttf +0 -0
- package/src/fonts/obvia-sans/Obvia-Light.woff2 +0 -0
- package/src/fonts/obvia-sans/Obvia-Medium.ttf +0 -0
- package/src/fonts/obvia-sans/Obvia-Medium.woff2 +0 -0
- package/src/fonts/obvia-sans/Obvia-Regular.ttf +0 -0
- package/src/fonts/obvia-sans/Obvia-Regular.woff2 +0 -0
- package/src/fonts/obvia-sans/Obvia-SemiBold.ttf +0 -0
- package/src/fonts/obvia-sans/Obvia-SemiBold.woff2 +0 -0
- package/src/fonts/obvia-sans/Obvia-Thin.ttf +0 -0
- package/src/fonts/obvia-sans/Obvia-Thin.woff2 +0 -0
- package/src/fonts/obvia-sans/Obvia-UltraBlack.ttf +0 -0
- package/src/fonts/obvia-sans/Obvia-UltraBlack.woff2 +0 -0
- package/src/fonts/obvia-sans/Obvia-UltraLight.ttf +0 -0
- package/src/fonts/obvia-sans/Obvia-UltraLight.woff2 +0 -0
- package/src/fonts/obvia-sans/Obvia-Variable.ttf +0 -0
- package/src/fonts/obvia-sans/Obvia-Variable.woff2 +0 -0
- package/src/index.d.ts +75 -0
- package/src/index.ts +178 -0
- package/tsup.config.ts +38 -0
package/changelog.md
ADDED
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { NextFontWithVariable } from 'next/dist/compiled/@next/font';
|
|
2
|
+
|
|
3
|
+
declare module "@obvia/fonts" {
|
|
4
|
+
/**
|
|
5
|
+
* **Obvia Sans** font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
6
|
+
*
|
|
7
|
+
* **Weights**
|
|
8
|
+
* - `100` - Thin
|
|
9
|
+
* - `200` - Ultra Light
|
|
10
|
+
* - `300` - Light
|
|
11
|
+
* - `400` - Regular
|
|
12
|
+
* - `500` - Medium
|
|
13
|
+
* - `600` - Semibold
|
|
14
|
+
* - `700` - Bold
|
|
15
|
+
* - `800` - Black
|
|
16
|
+
* - `900` - Ultra Black
|
|
17
|
+
*/
|
|
18
|
+
export const ObviaSans: NextFontWithVariable
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* **Obvia Mono** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
22
|
+
*
|
|
23
|
+
* **Weights**
|
|
24
|
+
* - `100` - Thin
|
|
25
|
+
* - `200` - Ultra Light
|
|
26
|
+
* - `300` - Light
|
|
27
|
+
* - `400` - Regular
|
|
28
|
+
* - `500` - Medium
|
|
29
|
+
* - `600` - Semibold
|
|
30
|
+
* - `700` - Bold
|
|
31
|
+
* - `800` - Black
|
|
32
|
+
* - `900` - Ultra Black
|
|
33
|
+
*/
|
|
34
|
+
export const ObviaMono: NextFontWithVariable
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* **Obvia Pixel Square** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
38
|
+
*
|
|
39
|
+
* **Weights**
|
|
40
|
+
* - `500` - Medium
|
|
41
|
+
*/
|
|
42
|
+
export const ObviaPixelSquare: NextFontWithVariable
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* **Obvia Pixel Grid** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
46
|
+
*
|
|
47
|
+
* **Weights**
|
|
48
|
+
* - `500` - Medium
|
|
49
|
+
*/
|
|
50
|
+
export const ObviaPixelGrid: NextFontWithVariable
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* **Obvia Pixel Circle** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
54
|
+
*
|
|
55
|
+
* **Weights**
|
|
56
|
+
* - `500` - Medium
|
|
57
|
+
*/
|
|
58
|
+
export const ObviaPixelCircle: NextFontWithVariable
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* **Obvia Pixel Triangle** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
62
|
+
*
|
|
63
|
+
* **Weights**
|
|
64
|
+
* - `500` - Medium
|
|
65
|
+
*/
|
|
66
|
+
export const ObviaPixelTriangle: NextFontWithVariable
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* **Obvia Pixel Line** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
70
|
+
*
|
|
71
|
+
* **Weights**
|
|
72
|
+
* - `500` - Medium
|
|
73
|
+
*/
|
|
74
|
+
export const ObviaPixelLine: NextFontWithVariable
|
|
75
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { NextFontWithVariable } from 'next/dist/compiled/@next/font';
|
|
2
|
+
|
|
3
|
+
declare module "@obvia/fonts" {
|
|
4
|
+
/**
|
|
5
|
+
* **Obvia Sans** font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
6
|
+
*
|
|
7
|
+
* **Weights**
|
|
8
|
+
* - `100` - Thin
|
|
9
|
+
* - `200` - Ultra Light
|
|
10
|
+
* - `300` - Light
|
|
11
|
+
* - `400` - Regular
|
|
12
|
+
* - `500` - Medium
|
|
13
|
+
* - `600` - Semibold
|
|
14
|
+
* - `700` - Bold
|
|
15
|
+
* - `800` - Black
|
|
16
|
+
* - `900` - Ultra Black
|
|
17
|
+
*/
|
|
18
|
+
export const ObviaSans: NextFontWithVariable
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* **Obvia Mono** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
22
|
+
*
|
|
23
|
+
* **Weights**
|
|
24
|
+
* - `100` - Thin
|
|
25
|
+
* - `200` - Ultra Light
|
|
26
|
+
* - `300` - Light
|
|
27
|
+
* - `400` - Regular
|
|
28
|
+
* - `500` - Medium
|
|
29
|
+
* - `600` - Semibold
|
|
30
|
+
* - `700` - Bold
|
|
31
|
+
* - `800` - Black
|
|
32
|
+
* - `900` - Ultra Black
|
|
33
|
+
*/
|
|
34
|
+
export const ObviaMono: NextFontWithVariable
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* **Obvia Pixel Square** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
38
|
+
*
|
|
39
|
+
* **Weights**
|
|
40
|
+
* - `500` - Medium
|
|
41
|
+
*/
|
|
42
|
+
export const ObviaPixelSquare: NextFontWithVariable
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* **Obvia Pixel Grid** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
46
|
+
*
|
|
47
|
+
* **Weights**
|
|
48
|
+
* - `500` - Medium
|
|
49
|
+
*/
|
|
50
|
+
export const ObviaPixelGrid: NextFontWithVariable
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* **Obvia Pixel Circle** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
54
|
+
*
|
|
55
|
+
* **Weights**
|
|
56
|
+
* - `500` - Medium
|
|
57
|
+
*/
|
|
58
|
+
export const ObviaPixelCircle: NextFontWithVariable
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* **Obvia Pixel Triangle** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
62
|
+
*
|
|
63
|
+
* **Weights**
|
|
64
|
+
* - `500` - Medium
|
|
65
|
+
*/
|
|
66
|
+
export const ObviaPixelTriangle: NextFontWithVariable
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* **Obvia Pixel Line** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
70
|
+
*
|
|
71
|
+
* **Weights**
|
|
72
|
+
* - `500` - Medium
|
|
73
|
+
*/
|
|
74
|
+
export const ObviaPixelLine: NextFontWithVariable
|
|
75
|
+
}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _local = require('next/font/local'); var _local2 = _interopRequireDefault(_local);var e=_local2.default.call(void 0, {src:"./fonts/obvia-sans/Obvia-Variable.woff2",variable:"--font-obvia-sans",weight:"100 900"}),i= exports.obviaMono =_local2.default.call(void 0, {src:"./fonts/obvia-mono/ObviaMono-Variable.woff2",variable:"--font-obvia-mono",weight:"100 900",fallback:["ui-monospace","SFMono-Regular","Roboto Mono","Menlo","Monaco","Liberation Mono","DejaVu Sans Mono","Courier New","monospace"],adjustFontFallback:!1}),n= exports.obviaPixelSquare =_local2.default.call(void 0, {src:"./fonts/obvia-pixel/ObviaPixel-Square.woff2",variable:"--font-obvia-pixel-square",weight:"500",fallback:["Obvia Mono","ui-monospace","SFMono-Regular","Roboto Mono","Menlo","Monaco","Liberation Mono","DejaVu Sans Mono","Courier New","monospace"],adjustFontFallback:!1}),l= exports.obviaPixelGrid =_local2.default.call(void 0, {src:"./fonts/obvia-pixel/ObviaPixel-Grid.woff2",variable:"--font-obvia-pixel-grid",weight:"500",fallback:["Obvia Mono","ui-monospace","SFMono-Regular","Roboto Mono","Menlo","Monaco","Liberation Mono","DejaVu Sans Mono","Courier New","monospace"],adjustFontFallback:!1}),b= exports.obviaPixelCircle =_local2.default.call(void 0, {src:"./fonts/obvia-pixel/ObviaPixel-Circle.woff2",variable:"--font-obvia-pixel-circle",weight:"500",fallback:["Obvia Mono","ui-monospace","SFMono-Regular","Roboto Mono","Menlo","Monaco","Liberation Mono","DejaVu Sans Mono","Courier New","monospace"],adjustFontFallback:!1}),t= exports.obviaPixelTriangle =_local2.default.call(void 0, {src:"./fonts/obvia-pixel/ObviaPixel-Triangle.woff2",variable:"--font-obvia-pixel-triangle",weight:"500",fallback:["Obvia Mono","ui-monospace","SFMono-Regular","Roboto Mono","Menlo","Monaco","Liberation Mono","DejaVu Sans Mono","Courier New","monospace"],adjustFontFallback:!1}),r= exports.obviaPixelLine =_local2.default.call(void 0, {src:"./fonts/obvia-pixel/ObviaPixel-Line.woff2",variable:"--font-obvia-pixel-line",weight:"500",fallback:["Obvia Mono","ui-monospace","SFMono-Regular","Roboto Mono","Menlo","Monaco","Liberation Mono","DejaVu Sans Mono","Courier New","monospace"],adjustFontFallback:!1});exports.obviaMono = i; exports.obviaPixelCircle = b; exports.obviaPixelGrid = l; exports.obviaPixelLine = r; exports.obviaPixelSquare = n; exports.obviaPixelTriangle = t; exports.obviaSans = e;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["d:\\Projects\\Obvia\\Repository\\fonts\\packages\\fonts\\dist\\index.js"],"names":[],"mappings":"AAAA,+PAA8B,IAAK,CAAC,CAAC,6BAAC,CAAE,GAAG,CAAC,yCAAyC,CAAC,QAAQ,CAAC,mBAAmB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,qBAAC,6BAAC,CAAE,GAAG,CAAC,6CAA6C,CAAC,QAAQ,CAAC,mBAAmB,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,cAAc,CAAC,gBAAgB,CAAC,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,4BAAC,6BAAC,CAAE,GAAG,CAAC,6CAA6C,CAAC,QAAQ,CAAC,2BAA2B,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,cAAc,CAAC,gBAAgB,CAAC,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,0BAAC,6BAAC,CAAE,GAAG,CAAC,2CAA2C,CAAC,QAAQ,CAAC,yBAAyB,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,cAAc,CAAC,gBAAgB,CAAC,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,4BAAC,6BAAC,CAAE,GAAG,CAAC,6CAA6C,CAAC,QAAQ,CAAC,2BAA2B,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,cAAc,CAAC,gBAAgB,CAAC,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,8BAAC,6BAAC,CAAE,GAAG,CAAC,+CAA+C,CAAC,QAAQ,CAAC,6BAA6B,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,cAAc,CAAC,gBAAgB,CAAC,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,0BAAC,6BAAC,CAAE,GAAG,CAAC,2CAA2C,CAAC,QAAQ,CAAC,yBAAyB,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,cAAc,CAAC,gBAAgB,CAAC,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,iMAAiJ","file":"D:\\Projects\\Obvia\\Repository\\fonts\\packages\\fonts\\dist\\index.js","sourcesContent":[null]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import o from"next/font/local";var e=o({src:"./fonts/obvia-sans/Obvia-Variable.woff2",variable:"--font-obvia-sans",weight:"100 900"}),i=o({src:"./fonts/obvia-mono/ObviaMono-Variable.woff2",variable:"--font-obvia-mono",weight:"100 900",fallback:["ui-monospace","SFMono-Regular","Roboto Mono","Menlo","Monaco","Liberation Mono","DejaVu Sans Mono","Courier New","monospace"],adjustFontFallback:!1}),n=o({src:"./fonts/obvia-pixel/ObviaPixel-Square.woff2",variable:"--font-obvia-pixel-square",weight:"500",fallback:["Obvia Mono","ui-monospace","SFMono-Regular","Roboto Mono","Menlo","Monaco","Liberation Mono","DejaVu Sans Mono","Courier New","monospace"],adjustFontFallback:!1}),l=o({src:"./fonts/obvia-pixel/ObviaPixel-Grid.woff2",variable:"--font-obvia-pixel-grid",weight:"500",fallback:["Obvia Mono","ui-monospace","SFMono-Regular","Roboto Mono","Menlo","Monaco","Liberation Mono","DejaVu Sans Mono","Courier New","monospace"],adjustFontFallback:!1}),b=o({src:"./fonts/obvia-pixel/ObviaPixel-Circle.woff2",variable:"--font-obvia-pixel-circle",weight:"500",fallback:["Obvia Mono","ui-monospace","SFMono-Regular","Roboto Mono","Menlo","Monaco","Liberation Mono","DejaVu Sans Mono","Courier New","monospace"],adjustFontFallback:!1}),t=o({src:"./fonts/obvia-pixel/ObviaPixel-Triangle.woff2",variable:"--font-obvia-pixel-triangle",weight:"500",fallback:["Obvia Mono","ui-monospace","SFMono-Regular","Roboto Mono","Menlo","Monaco","Liberation Mono","DejaVu Sans Mono","Courier New","monospace"],adjustFontFallback:!1}),r=o({src:"./fonts/obvia-pixel/ObviaPixel-Line.woff2",variable:"--font-obvia-pixel-line",weight:"500",fallback:["Obvia Mono","ui-monospace","SFMono-Regular","Roboto Mono","Menlo","Monaco","Liberation Mono","DejaVu Sans Mono","Courier New","monospace"],adjustFontFallback:!1});export{i as obviaMono,b as obviaPixelCircle,l as obviaPixelGrid,r as obviaPixelLine,n as obviaPixelSquare,t as obviaPixelTriangle,e as obviaSans};
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import localFont from \"next/font/local\"\r\n\r\n/**\r\n * **Obvia Sans** font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`\r\n *\r\n * **Weights**\r\n * - `100` - Thin\r\n * - `200` - Ultra Light\r\n * - `300` - Light\r\n * - `400` - Regular\r\n * - `500` - Medium\r\n * - `600` - Semibold\r\n * - `700` - Bold\r\n * - `800` - Black\r\n * - `900` - Ultra Black\r\n */\r\nexport const obviaSans = localFont({\r\n src : \"./fonts/obvia-sans/Obvia-Variable.woff2\",\r\n variable : \"--font-obvia-sans\",\r\n weight : \"100 900\"\r\n})\r\n\r\n/**\r\n * **Obvia Mono** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`\r\n *\r\n * **Weights**\r\n * - `100` - Thin\r\n * - `200` - Ultra Light\r\n * - `300` - Light\r\n * - `400` - Regular\r\n * - `500` - Medium\r\n * - `600` - Semibold\r\n * - `700` - Bold\r\n * - `800` - Black\r\n * - `900` - Ultra Black\r\n */\r\nexport const obviaMono = localFont({\r\n src : \"./fonts/obvia-mono/ObviaMono-Variable.woff2\",\r\n variable : \"--font-obvia-mono\",\r\n weight : \"100 900\",\r\n fallback: [\r\n \"ui-monospace\",\r\n \"SFMono-Regular\",\r\n \"Roboto Mono\",\r\n \"Menlo\",\r\n \"Monaco\",\r\n \"Liberation Mono\",\r\n \"DejaVu Sans Mono\",\r\n \"Courier New\",\r\n \"monospace\",\r\n ],\r\n adjustFontFallback: false\r\n})\r\n\r\n/**\r\n * **Obvia Pixel Square** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`\r\n *\r\n * **Weights**\r\n * - `500` - Medium\r\n */\r\nexport const obviaPixelSquare = localFont({\r\n src : \"./fonts/obvia-pixel/ObviaPixel-Square.woff2\",\r\n variable : \"--font-obvia-pixel-square\",\r\n weight : \"500\",\r\n fallback : [\r\n \"Obvia Mono\",\r\n \"ui-monospace\",\r\n \"SFMono-Regular\",\r\n \"Roboto Mono\",\r\n \"Menlo\",\r\n \"Monaco\",\r\n \"Liberation Mono\",\r\n \"DejaVu Sans Mono\",\r\n \"Courier New\",\r\n \"monospace\",\r\n ],\r\n adjustFontFallback: false\r\n})\r\n\r\n/**\r\n * **Obvia Pixel Grid** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`\r\n *\r\n * **Weights**\r\n * - `500` - Medium\r\n */\r\nexport const obviaPixelGrid = localFont({\r\n src : \"./fonts/obvia-pixel/ObviaPixel-Grid.woff2\",\r\n variable : \"--font-obvia-pixel-grid\",\r\n weight : \"500\",\r\n fallback : [\r\n \"Obvia Mono\",\r\n \"ui-monospace\",\r\n \"SFMono-Regular\",\r\n \"Roboto Mono\",\r\n \"Menlo\",\r\n \"Monaco\",\r\n \"Liberation Mono\",\r\n \"DejaVu Sans Mono\",\r\n \"Courier New\",\r\n \"monospace\",\r\n ],\r\n adjustFontFallback: false\r\n})\r\n\r\n/**\r\n * **Obvia Pixel Circle** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`\r\n *\r\n * **Weights**\r\n * - `500` - Medium\r\n */\r\nexport const obviaPixelCircle = localFont({\r\n src : \"./fonts/obvia-pixel/ObviaPixel-Circle.woff2\",\r\n variable : \"--font-obvia-pixel-circle\",\r\n weight : \"500\",\r\n fallback : [\r\n \"Obvia Mono\",\r\n \"ui-monospace\",\r\n \"SFMono-Regular\",\r\n \"Roboto Mono\",\r\n \"Menlo\",\r\n \"Monaco\",\r\n \"Liberation Mono\",\r\n \"DejaVu Sans Mono\",\r\n \"Courier New\",\r\n \"monospace\",\r\n ],\r\n adjustFontFallback: false\r\n})\r\n\r\n/**\r\n * **Obvia Pixel Triangle** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`\r\n *\r\n * **Weights**\r\n * - `500` - Medium\r\n */\r\nexport const obviaPixelTriangle = localFont({\r\n src : \"./fonts/obvia-pixel/ObviaPixel-Triangle.woff2\",\r\n variable : \"--font-obvia-pixel-triangle\",\r\n weight : \"500\",\r\n fallback : [\r\n \"Obvia Mono\",\r\n \"ui-monospace\",\r\n \"SFMono-Regular\",\r\n \"Roboto Mono\",\r\n \"Menlo\",\r\n \"Monaco\",\r\n \"Liberation Mono\",\r\n \"DejaVu Sans Mono\",\r\n \"Courier New\",\r\n \"monospace\",\r\n ],\r\n adjustFontFallback: false\r\n})\r\n\r\n/**\r\n * **Obvia Pixel Line** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`\r\n *\r\n * **Weights**\r\n * - `500` - Medium\r\n */\r\nexport const obviaPixelLine = localFont({\r\n src: \"./fonts/obvia-pixel/ObviaPixel-Line.woff2\",\r\n variable: \"--font-obvia-pixel-line\",\r\n weight: \"500\",\r\n fallback: [\r\n \"Obvia Mono\",\r\n \"ui-monospace\",\r\n \"SFMono-Regular\",\r\n \"Roboto Mono\",\r\n \"Menlo\",\r\n \"Monaco\",\r\n \"Liberation Mono\",\r\n \"DejaVu Sans Mono\",\r\n \"Courier New\",\r\n \"monospace\",\r\n ],\r\n adjustFontFallback: false\r\n})\r\n"],"mappings":"AAAA,OAAOA,MAAe,kBAgBf,IAAMC,EAAYD,EAAU,CAC/B,IAAY,0CACZ,SAAY,oBACZ,OAAY,SAChB,CAAC,EAgBYE,EAAYF,EAAU,CAC/B,IAAY,8CACZ,SAAY,oBACZ,OAAY,UACZ,SAAU,CACN,eACA,iBACA,cACA,QACA,SACA,kBACA,mBACA,cACA,WACJ,EACA,mBAAoB,EACxB,CAAC,EAQYG,EAAmBH,EAAU,CACtC,IAAY,8CACZ,SAAY,4BACZ,OAAY,MACZ,SAAY,CACR,aACA,eACA,iBACA,cACA,QACA,SACA,kBACA,mBACA,cACA,WACJ,EACA,mBAAoB,EACxB,CAAC,EAQYI,EAAiBJ,EAAU,CACpC,IAAY,4CACZ,SAAY,0BACZ,OAAY,MACZ,SAAY,CACR,aACA,eACA,iBACA,cACA,QACA,SACA,kBACA,mBACA,cACA,WACJ,EACA,mBAAoB,EACxB,CAAC,EAQYK,EAAmBL,EAAU,CACtC,IAAY,8CACZ,SAAY,4BACZ,OAAY,MACZ,SAAY,CACR,aACA,eACA,iBACA,cACA,QACA,SACA,kBACA,mBACA,cACA,WACJ,EACA,mBAAoB,EACxB,CAAC,EAQYM,EAAqBN,EAAU,CACxC,IAAY,gDACZ,SAAY,8BACZ,OAAY,MACZ,SAAY,CACR,aACA,eACA,iBACA,cACA,QACA,SACA,kBACA,mBACA,cACA,WACJ,EACA,mBAAoB,EACxB,CAAC,EAQYO,EAAiBP,EAAU,CACpC,IAAK,4CACL,SAAU,0BACV,OAAQ,MACR,SAAU,CACN,aACA,eACA,iBACA,cACA,QACA,SACA,kBACA,mBACA,cACA,WACJ,EACA,mBAAoB,EACxB,CAAC","names":["localFont","obviaSans","obviaMono","obviaPixelSquare","obviaPixelGrid","obviaPixelCircle","obviaPixelTriangle","obviaPixelLine"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name" : "@obvia/fonts",
|
|
3
|
+
"description" : "Obvia is a new font family for custom typography families designed for unique and cohesive branding",
|
|
4
|
+
"keywords" : ["obvia","obvia mono","obvia sans","obvia pixel","typeface","fonts","obvia fonts","webfont","open-type","true-type","typography"],
|
|
5
|
+
"license" : "SIL OPEN FONT LICENSE",
|
|
6
|
+
"homepage" : "https://obvia.studio/fonts",
|
|
7
|
+
"version" : "0.0.1",
|
|
8
|
+
|
|
9
|
+
"author" : {
|
|
10
|
+
"name" : "Selçuk Çukur",
|
|
11
|
+
"email" : "hello@selcukcukur.me",
|
|
12
|
+
"url" : "https://selcukcukur.me"
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
"bugs" : {
|
|
16
|
+
"email" : "security@selcukcukur.me",
|
|
17
|
+
"url" : "https://github.com/obvialabs/fonts/issues"
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
"main" : "./dist/index.js",
|
|
21
|
+
"module" : "./dist/index.mjs",
|
|
22
|
+
"types" : "./dist/index.d.ts",
|
|
23
|
+
|
|
24
|
+
"scripts" : {
|
|
25
|
+
"build" : "tsup src/index.ts --format esm,cjs --dts --out-dir dist"
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
"devDependencies" : {
|
|
29
|
+
"tsup" : "^8.5.1",
|
|
30
|
+
"typescript" : "^5.9.3"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies" : {
|
|
33
|
+
"next" : ">=13.2.0"
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
"exports" : {
|
|
37
|
+
"." : {
|
|
38
|
+
"types" : "./dist/index.d.ts",
|
|
39
|
+
"import" : "./dist/index.mjs",
|
|
40
|
+
"require" : "./dist/index.js"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
"publishConfig" : {
|
|
45
|
+
"access" : "public"
|
|
46
|
+
},
|
|
47
|
+
"publisher" : {
|
|
48
|
+
"type" : "github",
|
|
49
|
+
"user" : "obvialabs",
|
|
50
|
+
"repo" : "fonts"
|
|
51
|
+
},
|
|
52
|
+
"repository" : {
|
|
53
|
+
"type" : "git",
|
|
54
|
+
"url" : "git+https://github.com/obvialabs/fonts.git",
|
|
55
|
+
"directory" : "packages/fonts"
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
"packageManager": "pnpm@10.32.1"
|
|
59
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# Obvia Sans, Obvia Mono & Obvia Pixel
|
|
4
|
+
|
|
5
|
+
Obvia is a new font family created by [Vercel](https://vercel.com/design) in collaboration with [Basement Studio](https://basement.studio/).
|
|
6
|
+
|
|
7
|
+
Obvia Sans is a sans-serif typeface designed for legibility and simplicity. It is modern, geometric, and based on the principles of classic Swiss typography. It is designed to be used in body copy, headlines, logos, posters, and other large display sizes.
|
|
8
|
+
|
|
9
|
+
Obvia Mono is a monospaced typeface, crafted to be the perfect partner to Obvia Sans. It is designed to be used in code editors, diagrams, terminals, and other text-based interfaces where code is rendered.
|
|
10
|
+
|
|
11
|
+
Obvia Pixel is a display typeface family featuring five unique pixel-based variants, each with a distinct visual style. It is designed for decorative use in headlines, logos, and other display contexts where a pixelated aesthetic is desired.
|
|
12
|
+
|
|
13
|
+
### Installation
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
npm install obvia
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Using with Next.js
|
|
20
|
+
|
|
21
|
+
`ObviaSans` is exported from `obvia/font/sans`, `ObviaMono` can be found in `obvia/font/mono`, and Obvia Pixel variants are available from `obvia/font/pixel`. All are `NextFontWithVariable` instances. You can learn more by [reading the `next/font` docs](https://nextjs.org/docs/app/building-your-application/optimizing/fonts).
|
|
22
|
+
|
|
23
|
+
#### Obvia Pixel Variants
|
|
24
|
+
|
|
25
|
+
Obvia Pixel includes five distinct variants, each exported separately:
|
|
26
|
+
|
|
27
|
+
| Export | CSS Variable | Description |
|
|
28
|
+
| -------------------- | ----------------------------- | ------------------------ |
|
|
29
|
+
| `ObviaPixelSquare` | `--font-obvia-pixel-square` | Square pixel shapes |
|
|
30
|
+
| `ObviaPixelGrid` | `--font-obvia-pixel-grid` | Grid-based pixel pattern |
|
|
31
|
+
| `ObviaPixelCircle` | `--font-obvia-pixel-circle` | Circular pixel shapes |
|
|
32
|
+
| `ObviaPixelTriangle` | `--font-obvia-pixel-triangle` | Triangular pixel shapes |
|
|
33
|
+
| `ObviaPixelLine` | `--font-obvia-pixel-line` | Line-based pixel pattern |
|
|
34
|
+
|
|
35
|
+
```jsx
|
|
36
|
+
import {
|
|
37
|
+
ObviaPixelSquare,
|
|
38
|
+
ObviaPixelGrid,
|
|
39
|
+
ObviaPixelCircle,
|
|
40
|
+
ObviaPixelTriangle,
|
|
41
|
+
ObviaPixelLine,
|
|
42
|
+
} from "obvia/font/pixel";
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
#### App Router
|
|
46
|
+
|
|
47
|
+
In `app/layout.js`:
|
|
48
|
+
|
|
49
|
+
```jsx
|
|
50
|
+
import { ObviaSans } from "obvia/font/sans";
|
|
51
|
+
|
|
52
|
+
export default function RootLayout({ children }) {
|
|
53
|
+
return (
|
|
54
|
+
<html lang="en" className={ObviaSans.className}>
|
|
55
|
+
<body>{children}</body>
|
|
56
|
+
</html>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
#### Pages Router
|
|
62
|
+
|
|
63
|
+
In `pages/_app.js`:
|
|
64
|
+
|
|
65
|
+
```jsx
|
|
66
|
+
import { ObviaSans } from "obvia/font/sans";
|
|
67
|
+
|
|
68
|
+
export default function MyApp({ Component, pageProps }) {
|
|
69
|
+
return (
|
|
70
|
+
<main className={ObviaSans.className}>
|
|
71
|
+
<Component {...pageProps} />
|
|
72
|
+
</main>
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
If you're using a version of Next.js that's older than 15, then in `next.config.js` or `next.config.mjs` add:
|
|
78
|
+
|
|
79
|
+
```diff js
|
|
80
|
+
/** @type {import('next').NextConfig} */
|
|
81
|
+
const nextConfig = {
|
|
82
|
+
reactStrictMode: true,
|
|
83
|
+
+ transpilePackages: ["obvia"],
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export default nextConfig;
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
This is required to fix errors like:
|
|
90
|
+
|
|
91
|
+
- `TypeError: next_font_local__WEBPACK_IMPORTED_MODULE_0___default(...) is not a function`
|
|
92
|
+
- `SyntaxError: Cannot use import statement outside a module`
|
|
93
|
+
|
|
94
|
+
#### With Tailwind CSS
|
|
95
|
+
|
|
96
|
+
All Obvia fonts can be used through CSS variables.
|
|
97
|
+
|
|
98
|
+
- `ObviaSans`: `--font-obvia-sans`
|
|
99
|
+
- `ObviaMono`: `--font-obvia-mono`
|
|
100
|
+
- `ObviaPixelSquare`: `--font-obvia-pixel-square`
|
|
101
|
+
- `ObviaPixelGrid`: `--font-obvia-pixel-grid`
|
|
102
|
+
- `ObviaPixelCircle`: `--font-obvia-pixel-circle`
|
|
103
|
+
- `ObviaPixelTriangle`: `--font-obvia-pixel-triangle`
|
|
104
|
+
- `ObviaPixelLine`: `--font-obvia-pixel-line`
|
|
105
|
+
|
|
106
|
+
In `app/layout.js`:
|
|
107
|
+
|
|
108
|
+
```jsx
|
|
109
|
+
import { ObviaSans } from "obvia/font/sans";
|
|
110
|
+
import { ObviaMono } from "obvia/font/mono";
|
|
111
|
+
import { ObviaPixelSquare } from "obvia/font/pixel";
|
|
112
|
+
|
|
113
|
+
export default function RootLayout({ children }) {
|
|
114
|
+
return (
|
|
115
|
+
<html
|
|
116
|
+
lang="en"
|
|
117
|
+
className={`${ObviaSans.variable} ${ObviaMono.variable} ${ObviaPixelSquare.variable}`}
|
|
118
|
+
>
|
|
119
|
+
<body>{children}</body>
|
|
120
|
+
</html>
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
##### Tailwind CSS V4
|
|
126
|
+
|
|
127
|
+
Then in `tailwind.css`:
|
|
128
|
+
|
|
129
|
+
```css
|
|
130
|
+
@theme {
|
|
131
|
+
/* rest of your theme config */
|
|
132
|
+
|
|
133
|
+
--font-sans: var(--font-obvia-sans);
|
|
134
|
+
--font-mono: var(--font-obvia-mono);
|
|
135
|
+
--font-pixel-square: var(--font-obvia-pixel-square);
|
|
136
|
+
--font-pixel-grid: var(--font-obvia-pixel-grid);
|
|
137
|
+
--font-pixel-circle: var(--font-obvia-pixel-circle);
|
|
138
|
+
--font-pixel-triangle: var(--font-obvia-pixel-triangle);
|
|
139
|
+
--font-pixel-line: var(--font-obvia-pixel-line);
|
|
140
|
+
|
|
141
|
+
/* rest of your theme config */
|
|
142
|
+
}
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
##### Tailwind CSS V3
|
|
146
|
+
|
|
147
|
+
Then in `tailwind.config.js`:
|
|
148
|
+
|
|
149
|
+
```javascript
|
|
150
|
+
module.exports = {
|
|
151
|
+
theme: {
|
|
152
|
+
extend: {
|
|
153
|
+
fontFamily: {
|
|
154
|
+
sans: ["var(--font-obvia-sans)"],
|
|
155
|
+
mono: ["var(--font-obvia-mono)"],
|
|
156
|
+
"pixel-square": ["var(--font-obvia-pixel-square)"],
|
|
157
|
+
"pixel-grid": ["var(--font-obvia-pixel-grid)"],
|
|
158
|
+
"pixel-circle": ["var(--font-obvia-pixel-circle)"],
|
|
159
|
+
"pixel-triangle": ["var(--font-obvia-pixel-triangle)"],
|
|
160
|
+
"pixel-line": ["var(--font-obvia-pixel-line)"],
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
};
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### License
|
|
168
|
+
|
|
169
|
+
The Obvia font family is free and open sourced under the [SIL Open Font License](../../LICENSE.txt).
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { NextFontWithVariable } from "next/dist/compiled/@next/font"
|
|
2
|
+
|
|
3
|
+
declare module "@obvia/fonts" {
|
|
4
|
+
/**
|
|
5
|
+
* **Obvia Sans** font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
6
|
+
*
|
|
7
|
+
* **Weights**
|
|
8
|
+
* - `100` - Thin
|
|
9
|
+
* - `200` - Ultra Light
|
|
10
|
+
* - `300` - Light
|
|
11
|
+
* - `400` - Regular
|
|
12
|
+
* - `500` - Medium
|
|
13
|
+
* - `600` - Semibold
|
|
14
|
+
* - `700` - Bold
|
|
15
|
+
* - `800` - Black
|
|
16
|
+
* - `900` - Ultra Black
|
|
17
|
+
*/
|
|
18
|
+
export const ObviaSans: NextFontWithVariable
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* **Obvia Mono** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
22
|
+
*
|
|
23
|
+
* **Weights**
|
|
24
|
+
* - `100` - Thin
|
|
25
|
+
* - `200` - Ultra Light
|
|
26
|
+
* - `300` - Light
|
|
27
|
+
* - `400` - Regular
|
|
28
|
+
* - `500` - Medium
|
|
29
|
+
* - `600` - Semibold
|
|
30
|
+
* - `700` - Bold
|
|
31
|
+
* - `800` - Black
|
|
32
|
+
* - `900` - Ultra Black
|
|
33
|
+
*/
|
|
34
|
+
export const ObviaMono: NextFontWithVariable
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* **Obvia Pixel Square** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
38
|
+
*
|
|
39
|
+
* **Weights**
|
|
40
|
+
* - `500` - Medium
|
|
41
|
+
*/
|
|
42
|
+
export const ObviaPixelSquare: NextFontWithVariable
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* **Obvia Pixel Grid** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
46
|
+
*
|
|
47
|
+
* **Weights**
|
|
48
|
+
* - `500` - Medium
|
|
49
|
+
*/
|
|
50
|
+
export const ObviaPixelGrid: NextFontWithVariable
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* **Obvia Pixel Circle** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
54
|
+
*
|
|
55
|
+
* **Weights**
|
|
56
|
+
* - `500` - Medium
|
|
57
|
+
*/
|
|
58
|
+
export const ObviaPixelCircle: NextFontWithVariable
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* **Obvia Pixel Triangle** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
62
|
+
*
|
|
63
|
+
* **Weights**
|
|
64
|
+
* - `500` - Medium
|
|
65
|
+
*/
|
|
66
|
+
export const ObviaPixelTriangle: NextFontWithVariable
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* **Obvia Pixel Line** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
70
|
+
*
|
|
71
|
+
* **Weights**
|
|
72
|
+
* - `500` - Medium
|
|
73
|
+
*/
|
|
74
|
+
export const ObviaPixelLine: NextFontWithVariable
|
|
75
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import localFont from "next/font/local"
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* **Obvia Sans** font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
5
|
+
*
|
|
6
|
+
* **Weights**
|
|
7
|
+
* - `100` - Thin
|
|
8
|
+
* - `200` - Ultra Light
|
|
9
|
+
* - `300` - Light
|
|
10
|
+
* - `400` - Regular
|
|
11
|
+
* - `500` - Medium
|
|
12
|
+
* - `600` - Semibold
|
|
13
|
+
* - `700` - Bold
|
|
14
|
+
* - `800` - Black
|
|
15
|
+
* - `900` - Ultra Black
|
|
16
|
+
*/
|
|
17
|
+
export const obviaSans = localFont({
|
|
18
|
+
src : "./fonts/obvia-sans/Obvia-Variable.woff2",
|
|
19
|
+
variable : "--font-obvia-sans",
|
|
20
|
+
weight : "100 900"
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* **Obvia Mono** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
25
|
+
*
|
|
26
|
+
* **Weights**
|
|
27
|
+
* - `100` - Thin
|
|
28
|
+
* - `200` - Ultra Light
|
|
29
|
+
* - `300` - Light
|
|
30
|
+
* - `400` - Regular
|
|
31
|
+
* - `500` - Medium
|
|
32
|
+
* - `600` - Semibold
|
|
33
|
+
* - `700` - Bold
|
|
34
|
+
* - `800` - Black
|
|
35
|
+
* - `900` - Ultra Black
|
|
36
|
+
*/
|
|
37
|
+
export const obviaMono = localFont({
|
|
38
|
+
src : "./fonts/obvia-mono/ObviaMono-Variable.woff2",
|
|
39
|
+
variable : "--font-obvia-mono",
|
|
40
|
+
weight : "100 900",
|
|
41
|
+
fallback: [
|
|
42
|
+
"ui-monospace",
|
|
43
|
+
"SFMono-Regular",
|
|
44
|
+
"Roboto Mono",
|
|
45
|
+
"Menlo",
|
|
46
|
+
"Monaco",
|
|
47
|
+
"Liberation Mono",
|
|
48
|
+
"DejaVu Sans Mono",
|
|
49
|
+
"Courier New",
|
|
50
|
+
"monospace",
|
|
51
|
+
],
|
|
52
|
+
adjustFontFallback: false
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* **Obvia Pixel Square** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
57
|
+
*
|
|
58
|
+
* **Weights**
|
|
59
|
+
* - `500` - Medium
|
|
60
|
+
*/
|
|
61
|
+
export const obviaPixelSquare = localFont({
|
|
62
|
+
src : "./fonts/obvia-pixel/ObviaPixel-Square.woff2",
|
|
63
|
+
variable : "--font-obvia-pixel-square",
|
|
64
|
+
weight : "500",
|
|
65
|
+
fallback : [
|
|
66
|
+
"Obvia Mono",
|
|
67
|
+
"ui-monospace",
|
|
68
|
+
"SFMono-Regular",
|
|
69
|
+
"Roboto Mono",
|
|
70
|
+
"Menlo",
|
|
71
|
+
"Monaco",
|
|
72
|
+
"Liberation Mono",
|
|
73
|
+
"DejaVu Sans Mono",
|
|
74
|
+
"Courier New",
|
|
75
|
+
"monospace",
|
|
76
|
+
],
|
|
77
|
+
adjustFontFallback: false
|
|
78
|
+
})
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* **Obvia Pixel Grid** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
82
|
+
*
|
|
83
|
+
* **Weights**
|
|
84
|
+
* - `500` - Medium
|
|
85
|
+
*/
|
|
86
|
+
export const obviaPixelGrid = localFont({
|
|
87
|
+
src : "./fonts/obvia-pixel/ObviaPixel-Grid.woff2",
|
|
88
|
+
variable : "--font-obvia-pixel-grid",
|
|
89
|
+
weight : "500",
|
|
90
|
+
fallback : [
|
|
91
|
+
"Obvia Mono",
|
|
92
|
+
"ui-monospace",
|
|
93
|
+
"SFMono-Regular",
|
|
94
|
+
"Roboto Mono",
|
|
95
|
+
"Menlo",
|
|
96
|
+
"Monaco",
|
|
97
|
+
"Liberation Mono",
|
|
98
|
+
"DejaVu Sans Mono",
|
|
99
|
+
"Courier New",
|
|
100
|
+
"monospace",
|
|
101
|
+
],
|
|
102
|
+
adjustFontFallback: false
|
|
103
|
+
})
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* **Obvia Pixel Circle** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
107
|
+
*
|
|
108
|
+
* **Weights**
|
|
109
|
+
* - `500` - Medium
|
|
110
|
+
*/
|
|
111
|
+
export const obviaPixelCircle = localFont({
|
|
112
|
+
src : "./fonts/obvia-pixel/ObviaPixel-Circle.woff2",
|
|
113
|
+
variable : "--font-obvia-pixel-circle",
|
|
114
|
+
weight : "500",
|
|
115
|
+
fallback : [
|
|
116
|
+
"Obvia Mono",
|
|
117
|
+
"ui-monospace",
|
|
118
|
+
"SFMono-Regular",
|
|
119
|
+
"Roboto Mono",
|
|
120
|
+
"Menlo",
|
|
121
|
+
"Monaco",
|
|
122
|
+
"Liberation Mono",
|
|
123
|
+
"DejaVu Sans Mono",
|
|
124
|
+
"Courier New",
|
|
125
|
+
"monospace",
|
|
126
|
+
],
|
|
127
|
+
adjustFontFallback: false
|
|
128
|
+
})
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* **Obvia Pixel Triangle** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
132
|
+
*
|
|
133
|
+
* **Weights**
|
|
134
|
+
* - `500` - Medium
|
|
135
|
+
*/
|
|
136
|
+
export const obviaPixelTriangle = localFont({
|
|
137
|
+
src : "./fonts/obvia-pixel/ObviaPixel-Triangle.woff2",
|
|
138
|
+
variable : "--font-obvia-pixel-triangle",
|
|
139
|
+
weight : "500",
|
|
140
|
+
fallback : [
|
|
141
|
+
"Obvia Mono",
|
|
142
|
+
"ui-monospace",
|
|
143
|
+
"SFMono-Regular",
|
|
144
|
+
"Roboto Mono",
|
|
145
|
+
"Menlo",
|
|
146
|
+
"Monaco",
|
|
147
|
+
"Liberation Mono",
|
|
148
|
+
"DejaVu Sans Mono",
|
|
149
|
+
"Courier New",
|
|
150
|
+
"monospace",
|
|
151
|
+
],
|
|
152
|
+
adjustFontFallback: false
|
|
153
|
+
})
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* **Obvia Pixel Line** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
|
|
157
|
+
*
|
|
158
|
+
* **Weights**
|
|
159
|
+
* - `500` - Medium
|
|
160
|
+
*/
|
|
161
|
+
export const obviaPixelLine = localFont({
|
|
162
|
+
src: "./fonts/obvia-pixel/ObviaPixel-Line.woff2",
|
|
163
|
+
variable: "--font-obvia-pixel-line",
|
|
164
|
+
weight: "500",
|
|
165
|
+
fallback: [
|
|
166
|
+
"Obvia Mono",
|
|
167
|
+
"ui-monospace",
|
|
168
|
+
"SFMono-Regular",
|
|
169
|
+
"Roboto Mono",
|
|
170
|
+
"Menlo",
|
|
171
|
+
"Monaco",
|
|
172
|
+
"Liberation Mono",
|
|
173
|
+
"DejaVu Sans Mono",
|
|
174
|
+
"Courier New",
|
|
175
|
+
"monospace",
|
|
176
|
+
],
|
|
177
|
+
adjustFontFallback: false
|
|
178
|
+
})
|
package/tsup.config.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineConfig } from "tsup"
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
// Entry point(s) for the build
|
|
5
|
+
entry: ["src/index.ts"],
|
|
6
|
+
|
|
7
|
+
// Output directory for compiled files
|
|
8
|
+
outDir: "dist",
|
|
9
|
+
|
|
10
|
+
// Build formats: ESM (.mjs) and CommonJS (.js)
|
|
11
|
+
format: ["esm", "cjs"],
|
|
12
|
+
|
|
13
|
+
// Generate TypeScript declaration files (.d.ts / .mts)
|
|
14
|
+
dts: {
|
|
15
|
+
entry: "src/index.ts",
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
// Generate source maps for debugging
|
|
19
|
+
sourcemap: true,
|
|
20
|
+
|
|
21
|
+
// Clean the output directory before each build
|
|
22
|
+
clean: true,
|
|
23
|
+
|
|
24
|
+
// Minify the output for production
|
|
25
|
+
minify: true,
|
|
26
|
+
|
|
27
|
+
// Target modern JavaScript (ESNext)
|
|
28
|
+
target: "esnext",
|
|
29
|
+
|
|
30
|
+
// Enable code splitting (useful for multiple entry points)
|
|
31
|
+
splitting: true,
|
|
32
|
+
|
|
33
|
+
// Bundle everything into distributable files
|
|
34
|
+
bundle: true,
|
|
35
|
+
|
|
36
|
+
// Do not bundle node_modules dependencies
|
|
37
|
+
skipNodeModulesBundle: true
|
|
38
|
+
})
|