@obvia/fonts 0.1.1 → 0.2.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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "keywords" : ["obvia","obvia mono","obvia sans","obvia pixel","typeface","fonts","obvia fonts","webfont","open-type","true-type","typography"],
6
6
  "license" : "SIL OPEN FONT LICENSE",
7
7
  "homepage" : "https://obvia.studio/fonts",
8
- "version" : "0.1.1",
8
+ "version" : "0.2.0",
9
9
 
10
10
  "author" : {
11
11
  "name" : "Selçuk Çukur",
@@ -23,7 +23,6 @@
23
23
  "types" : "./dist/index.d.ts",
24
24
 
25
25
  "scripts" : {
26
- "prebuild" : "robocopy src\\\\fonts dist\\\\fonts /E",
27
26
  "build" : "tsc"
28
27
  },
29
28
 
@@ -31,9 +30,6 @@
31
30
  "typescript" : "^5.9.3"
32
31
  },
33
32
  "peerDependencies" : {
34
- "react" : ">=18.0.0",
35
- "vue" : ">=3.0.0",
36
- "nuxt" : ">=4.0.0",
37
33
  "next" : ">=13.2.0"
38
34
  },
39
35
 
@@ -41,25 +37,9 @@
41
37
  "." : {
42
38
  "types" : "./dist/index.d.ts",
43
39
  "default" : "./dist/index.js"
44
- },
45
- "./react" : {
46
- "types" : "./dist/react.d.ts",
47
- "default" : "./dist/react.js"
48
- },
49
- "./vanilla" : {
50
- "types" : "./dist/vanilla.d.ts",
51
- "default" : "./dist/vanilla.js"
52
- },
53
- "./vue" : {
54
- "types" : "./dist/vue.d.ts",
55
- "default" : "./dist/vue.js"
56
- },
57
- "./nuxt" : {
58
- "types" : "./dist/nuxt.d.ts",
59
- "default" : "./dist/nuxt.js"
60
40
  }
61
41
  },
62
- "files" : ["dist", "fonts"],
42
+ "files" : ["dist"],
63
43
 
64
44
  "publishConfig" : {
65
45
  "access" : "public"
@@ -1,70 +0,0 @@
1
- /* Obvia Sans */
2
- @font-face {
3
- font-family: "Obvia Sans";
4
- src: url("./fonts/obvia-sans/Obvia-Variable.woff2") format("woff2");
5
- font-weight: 100 900;
6
- font-display: swap;
7
- }
8
- .font-obvia-sans {
9
- font-family: "Obvia Sans", sans-serif;
10
- }
11
-
12
- /* Obvia Mono */
13
- @font-face {
14
- font-family: "Obvia Mono";
15
- src: url("./fonts/obvia-mono/ObviaMono-Variable.woff2") format("woff2");
16
- font-weight: 100 900;
17
- font-display: swap;
18
- }
19
- .font-obvia-mono {
20
- font-family: "Obvia Mono", ui-monospace, SFMono-Regular, Roboto Mono,
21
- Menlo, Monaco, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
22
- }
23
-
24
- /* Obvia Pixel */
25
- @font-face {
26
- font-family: "Obvia Pixel Square";
27
- src: url("./fonts/obvia-pixel/ObviaPixel-Square.woff2") format("woff2");
28
- font-weight: 500;
29
- font-display: swap;
30
- }
31
- @font-face {
32
- font-family: "Obvia Pixel Grid";
33
- src: url("./fonts/obvia-pixel/ObviaPixel-Grid.woff2") format("woff2");
34
- font-weight: 500;
35
- font-display: swap;
36
- }
37
- @font-face {
38
- font-family: "Obvia Pixel Circle";
39
- src: url("./fonts/obvia-pixel/ObviaPixel-Circle.woff2") format("woff2");
40
- font-weight: 500;
41
- font-display: swap;
42
- }
43
- @font-face {
44
- font-family: "Obvia Pixel Triangle";
45
- src: url("./fonts/obvia-pixel/ObviaPixel-Triangle.woff2") format("woff2");
46
- font-weight: 500;
47
- font-display: swap;
48
- }
49
- @font-face {
50
- font-family: "Obvia Pixel Line";
51
- src: url("./fonts/obvia-pixel/ObviaPixel-Line.woff2") format("woff2");
52
- font-weight: 500;
53
- font-display: swap;
54
- }
55
-
56
- .font-obvia-pixel-square {
57
- font-family: "Obvia Pixel Square", "Obvia Mono", monospace;
58
- }
59
- .font-obvia-pixel-grid {
60
- font-family: "Obvia Pixel Grid", "Obvia Mono", monospace;
61
- }
62
- .font-obvia-pixel-circle {
63
- font-family: "Obvia Pixel Circle", "Obvia Mono", monospace;
64
- }
65
- .font-obvia-pixel-triangle {
66
- font-family: "Obvia Pixel Triangle", "Obvia Mono", monospace;
67
- }
68
- .font-obvia-pixel-line {
69
- font-family: "Obvia Pixel Line", "Obvia Mono", monospace;
70
- }
package/dist/nuxt.d.ts DELETED
@@ -1,13 +0,0 @@
1
- import { fonts } from "./vue"
2
-
3
- declare module "#app" {
4
- interface NuxtApp {
5
- $fonts: typeof fonts
6
- }
7
- }
8
-
9
- declare module "vue" {
10
- interface ComponentCustomProperties {
11
- $fonts: typeof fonts
12
- }
13
- }
package/dist/nuxt.js DELETED
@@ -1,11 +0,0 @@
1
- import { defineNuxtPlugin } from "nuxt/app";
2
- import { fonts } from "./vue";
3
- import "../fonts/fonts.css";
4
- export default defineNuxtPlugin((nuxtApp) => {
5
- // Provide fonts via Nuxt injection system
6
- // Accessible with: const nuxtApp = useNuxtApp(); nuxtApp.$fonts
7
- nuxtApp.provide("fonts", fonts);
8
- // Add fonts to Vue global properties
9
- // Accessible directly in templates with: $fonts
10
- nuxtApp.vueApp.config.globalProperties.$fonts = fonts;
11
- });
package/dist/react.js DELETED
@@ -1,129 +0,0 @@
1
- import "./fonts/fonts.css";
2
- /**
3
- * **Obvia Sans** font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
4
- *
5
- * **Weights**
6
- * - `100` - Thin
7
- * - `200` - Ultra Light
8
- * - `300` - Light
9
- * - `400` - Regular
10
- * - `500` - Medium
11
- * - `600` - Semibold
12
- * - `700` - Bold
13
- * - `800` - Black
14
- * - `900` - Ultra Black
15
- *
16
- * **Usage**
17
- * ```tsx
18
- * import { obviaSans } from "@obvia/fonts/react"
19
- *
20
- * export const ObviaSans ({ children, className }) => (
21
- * <span className={`${obviaSans}`}>{children}</span>
22
- * )
23
- * ```
24
- */
25
- export const obviaSans = "font-obvia-sans";
26
- /**
27
- * **Obvia Mono** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
28
- *
29
- * **Weights**
30
- * - `100` - Thin
31
- * - `200` - Ultra Light
32
- * - `300` - Light
33
- * - `400` - Regular
34
- * - `500` - Medium
35
- * - `600` - Semibold
36
- * - `700` - Bold
37
- * - `800` - Black
38
- * - `900` - Ultra Black
39
- *
40
- * **Usage**
41
- * ```tsx
42
- * import { obviaMono } from "@obvia/fonts/react"
43
- *
44
- * export const ObviaMono ({ children, className }) => (
45
- * <span className={`${obviaMono}`}>{children}</span>
46
- * )
47
- * ```
48
- */
49
- export const obviaMono = "font-obvia-mono";
50
- /**
51
- * **Obvia Pixel Square** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
52
- *
53
- * **Weights**
54
- * - `500` - Medium
55
- *
56
- * **Usage**
57
- * ```tsx
58
- * import { obviaPixelSquare } from "@obvia/fonts/react"
59
- *
60
- * export const ObviaPixelSquare = ({ children, className }) => (
61
- * <span className={`${obviaPixelSquare}`}>{children}</span>
62
- * )
63
- * ```
64
- */
65
- export const obviaPixelSquare = "font-obvia-pixel-square";
66
- /**
67
- * **Obvia Pixel Grid** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
68
- *
69
- * **Weights**
70
- * - `500` - Medium
71
- *
72
- * **Usage**
73
- * ```tsx
74
- * import { obviaPixelGrid } from "@obvia/fonts/react"
75
- *
76
- * export const ObviaPixelGrid = ({ children, className }) => (
77
- * <span className={`${obviaPixelGrid}`}>{children}</span>
78
- * )
79
- * ```
80
- */
81
- export const obviaPixelGrid = "font-obvia-pixel-grid";
82
- /**
83
- * **Obvia Pixel Circle** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
84
- *
85
- * **Weights**
86
- * - `500` - Medium
87
- *
88
- * **Usage**
89
- * ```tsx
90
- * import { obviaPixelCircle } from "@obvia/fonts/react"
91
- *
92
- * export const ObviaPixelCircle = ({ children, className }) => (
93
- * <span className={`${obviaPixelCircle}`}>{children}</span>
94
- * )
95
- * ```
96
- */
97
- export const obviaPixelCircle = "font-obvia-pixel-circle";
98
- /**
99
- * **Obvia Pixel Triangle** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
100
- *
101
- * **Weights**
102
- * - `500` - Medium
103
- *
104
- * **Usage**
105
- * ```tsx
106
- * import { obviaPixelTriangle } from "@obvia/fonts/react"
107
- *
108
- * export const ObviaPixelTriangle = ({ children, className }) => (
109
- * <span className={`${obviaPixelTriangle}`}>{children}</span>
110
- * )
111
- * ```
112
- */
113
- export const obviaPixelTriangle = "font-obvia-pixel-triangle";
114
- /**
115
- * **Obvia Pixel Line** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
116
- *
117
- * **Weights**
118
- * - `500` - Medium
119
- *
120
- * **Usage**
121
- * ```tsx
122
- * import { obviaPixelLine } from "@obvia/fonts/react"
123
- *
124
- * export const ObviaPixelLine = ({ children, className }) => (
125
- * <span className={`${obviaPixelLine}`}>{children}</span>
126
- * )
127
- * ```
128
- */
129
- export const obviaPixelLine = "font-obvia-pixel-line";
package/dist/vanilla.js DELETED
@@ -1,8 +0,0 @@
1
- import "./fonts/fonts.css";
2
- export const obviaSans = "font-obvia-sans";
3
- export const obviaMono = "font-obvia-mono";
4
- export const obviaPixelSquar = "font-obvia-pixel-square";
5
- export const obviaPixelGrid = "font-obvia-pixel-grid";
6
- export const obviaPixelCircle = "font-obvia-pixel-circle";
7
- export const obviaPixelTriangle = "font-obvia-pixel-triangle";
8
- export const obviaPixelLine = "font-obvia-pixel-line";
package/dist/vue.d.ts DELETED
@@ -1,33 +0,0 @@
1
- import { fonts } from "./vue"
2
-
3
- declare module "@vue/runtime-core" {
4
- interface ComponentCustomProperties {
5
- /**
6
- * **Obvia Font Family** variable font, with `className` and `variable` properties, meant to be attached to DOM elements via `className`
7
- *
8
- * **Family**
9
- * - `Obvia Sans` - A geometric sans-serif crafted for precision and readability. Rooted in Swiss modernist principles,
10
- * it balances simplicity with strength, making it suitable for body text, headlines, branding, and
11
- * large-scale display use
12
- * - `Obvia Mono` - A monospaced companion to Obvia Sans. Designed for technical contexts — code editors, diagrams,
13
- * and terminal interfaces — it brings consistency and clarity to environments where structure matters
14
- * most
15
- * - `Obvia Pixel` - A playful display family of five pixel-inspired styles. Each variant explores a different facet of
16
- * digital aesthetics, offering bold, decorative forms for logos, posters, and expressive headlines
17
- *
18
- * **Usage**
19
- * ```vue
20
- * <template>
21
- * <div :class="$fonts.obviaSans">Obvia Sans Style</div>
22
- * <div :class="$fonts.obviaMono">Pixel Mono Style</div>
23
- * <div :class="$fonts.obviaPixelSquare">Pixel Square Style</div>
24
- * <div :class="$fonts.obviaPixelGrid">Pixel Grid Style</div>
25
- * <div :class="$fonts.obviaPixelCircle">Pixel Circle Style</div>
26
- * <div :class="$fonts.obviaPixelTriangle">Pixel Triangle Style</div>
27
- * <div :class="$fonts.obviaPixelLine">Pixel Line Style</div>
28
- * </template>
29
- * ```
30
- */
31
- $fonts: typeof fonts
32
- }
33
- }
package/dist/vue.js DELETED
@@ -1,15 +0,0 @@
1
- import "./fonts/fonts.css";
2
- export const fonts = {
3
- obviaSans: "font-obvia-sans",
4
- obviaMono: "font-obvia-mono",
5
- obviaPixelSquare: "font-obvia-pixel-square",
6
- obviaPixelGrid: "font-obvia-pixel-grid",
7
- obviaPixelCircle: "font-obvia-pixel-circle",
8
- obviaPixelTriangle: "font-obvia-pixel-triangle",
9
- obviaPixelLine: "font-obvia-pixel-line"
10
- };
11
- export default {
12
- install(app) {
13
- app.config.globalProperties.$fonts = fonts;
14
- }
15
- };