@monospaced/set-assets 0.0.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 +94 -0
- package/package.json +25 -0
- package/src/favicons/apple-touch-icon.png +0 -0
- package/src/favicons/favicon.ico +0 -0
- package/src/favicons/favicon.svg +1 -0
- package/src/favicons/maskable-icon-192.png +0 -0
- package/src/favicons/maskable-icon-512.png +0 -0
- package/src/fonts/Berkeley Mono Variable.woff2 +0 -0
- package/src/fonts/FantasqueSansMono-Regular.subset.woff2 +0 -0
- package/src/fonts/PlaypenSans[wght].subset.woff2 +0 -0
- package/src/fonts.css +38 -0
package/README.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# @monospaced/set-assets
|
|
2
|
+
|
|
3
|
+
Runtime assets for Set. Fonts and favicons consumed by sites and apps building on the system.
|
|
4
|
+
|
|
5
|
+
## Fonts
|
|
6
|
+
|
|
7
|
+
Bundled `.woff2` files in `src/fonts/`:
|
|
8
|
+
|
|
9
|
+
- `InterVariable.subset.woff2`
|
|
10
|
+
- `InterVariable-Italic.subset.woff2`
|
|
11
|
+
- `RobotoMono-VariableFont_wght.subset.woff2`
|
|
12
|
+
- `RobotoMono-Italic-VariableFont_wght.subset.woff2`
|
|
13
|
+
- `PlaypenSans[wght].subset.woff2`
|
|
14
|
+
- `FantasqueSansMono-Regular.subset.woff2`
|
|
15
|
+
|
|
16
|
+
Family names exposed by `fonts.css`:
|
|
17
|
+
|
|
18
|
+
- `InterVariable`
|
|
19
|
+
- `Roboto Mono`
|
|
20
|
+
- `Playpen Sans`
|
|
21
|
+
- `Fantasque Sans Mono`
|
|
22
|
+
|
|
23
|
+
### Usage
|
|
24
|
+
|
|
25
|
+
Import fonts before core styles:
|
|
26
|
+
|
|
27
|
+
```css
|
|
28
|
+
@import "@monospaced/set-assets/fonts.css";
|
|
29
|
+
@import "@monospaced/set-core/styles.css";
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Favicons
|
|
33
|
+
|
|
34
|
+
Bundled icon files in `src/favicons/`:
|
|
35
|
+
|
|
36
|
+
- `favicon.ico` — legacy fallback
|
|
37
|
+
- `favicon.svg` — modern scalable; adapts to OS light/dark via `prefers-color-scheme`
|
|
38
|
+
- `apple-touch-icon.png` — iOS home screen (180×180)
|
|
39
|
+
- `maskable-icon-192.png` — PWA / Android (192×192, maskable)
|
|
40
|
+
- `maskable-icon-512.png` — PWA / Android (512×512, maskable)
|
|
41
|
+
|
|
42
|
+
### Usage
|
|
43
|
+
|
|
44
|
+
Copy the icon files into the consumer site's static directory at build time (e.g. Vite/Next/Astro `public/`, plain HTML's web root) and reference them at root paths:
|
|
45
|
+
|
|
46
|
+
```html
|
|
47
|
+
<link href="apple-touch-icon.png" rel="apple-touch-icon" />
|
|
48
|
+
<link href="favicon.ico" rel="icon" sizes="32x32" />
|
|
49
|
+
<link href="favicon.svg" rel="icon" type="image/svg+xml" />
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
For PWA / Android install icons, reference the maskable PNGs from your manifest (`manifest.webmanifest`):
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
{
|
|
56
|
+
"icons": [
|
|
57
|
+
{
|
|
58
|
+
"purpose": "any",
|
|
59
|
+
"sizes": "192x192",
|
|
60
|
+
"src": "maskable-icon-192.png",
|
|
61
|
+
"type": "image/png"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"purpose": "maskable",
|
|
65
|
+
"sizes": "192x192",
|
|
66
|
+
"src": "maskable-icon-192.png",
|
|
67
|
+
"type": "image/png"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"purpose": "any",
|
|
71
|
+
"sizes": "512x512",
|
|
72
|
+
"src": "maskable-icon-512.png",
|
|
73
|
+
"type": "image/png"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"purpose": "maskable",
|
|
77
|
+
"sizes": "512x512",
|
|
78
|
+
"src": "maskable-icon-512.png",
|
|
79
|
+
"type": "image/png"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
The manifest itself isn't shipped by this package — its icon paths must be resolvable from the consumer's served origin, so consumers author their own and copy the icon files into their static directory at build time.
|
|
86
|
+
|
|
87
|
+
For bundler-import workflows:
|
|
88
|
+
|
|
89
|
+
```js
|
|
90
|
+
import faviconSvg from "@monospaced/set-assets/favicons/favicon.svg";
|
|
91
|
+
import appleTouchIcon from "@monospaced/set-assets/favicons/apple-touch-icon.png";
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
The bundler resolves these to hashed asset URLs.
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@monospaced/set-assets",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "Runtime assets for Set. Fonts and favicons consumed by sites and apps building on the system.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/monospaced/set.git",
|
|
8
|
+
"directory": "packages/assets"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"style": "./src/fonts.css",
|
|
12
|
+
"files": [
|
|
13
|
+
"src/fonts.css",
|
|
14
|
+
"src/fonts",
|
|
15
|
+
"src/favicons"
|
|
16
|
+
],
|
|
17
|
+
"exports": {
|
|
18
|
+
"./fonts.css": "./src/fonts.css",
|
|
19
|
+
"./favicons/favicon.ico": "./src/favicons/favicon.ico",
|
|
20
|
+
"./favicons/favicon.svg": "./src/favicons/favicon.svg",
|
|
21
|
+
"./favicons/apple-touch-icon.png": "./src/favicons/apple-touch-icon.png",
|
|
22
|
+
"./favicons/maskable-icon-192.png": "./src/favicons/maskable-icon-192.png",
|
|
23
|
+
"./favicons/maskable-icon-512.png": "./src/favicons/maskable-icon-512.png"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><style>#tile{fill:#007c7c}#mark{fill:#fff}@media (prefers-color-scheme:dark){#tile{fill:#3ba9a9}#mark{fill:#000}}</style><path id="tile" d="M0 0h512v512H0z"/><path id="mark" d="M149.76 43.52h53.12v106.24h-53.12zm106.24 0h53.12v106.24H256zm-53.12 106.24H256V256h-53.12zm106.24 0h53.12V256h-53.12zM149.76 256h53.12v106.24h-53.12zM256 256h53.12v106.24H256zm-53.12 106.24H256v106.24h-53.12zm106.24 0h53.12v106.24h-53.12z"/></svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/fonts.css
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* stylelint-disable scale-unlimited/declaration-strict-value -- @font-face font-weight is a font-file descriptor not a typographic styling */
|
|
2
|
+
|
|
3
|
+
@font-face {
|
|
4
|
+
font-display: swap;
|
|
5
|
+
font-family: "Berkeley Mono";
|
|
6
|
+
font-stretch: 60% 100%;
|
|
7
|
+
font-style: normal;
|
|
8
|
+
font-weight: 100 900;
|
|
9
|
+
src: url("./fonts/Berkeley Mono Variable.woff2") format("woff2");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@font-face {
|
|
13
|
+
font-display: swap;
|
|
14
|
+
font-family: "Berkeley Mono";
|
|
15
|
+
font-stretch: 60% 100%;
|
|
16
|
+
font-style: oblique 0deg 16deg;
|
|
17
|
+
font-weight: 100 900;
|
|
18
|
+
src: url("./fonts/Berkeley Mono Variable.woff2") format("woff2");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@font-face {
|
|
22
|
+
font-display: swap;
|
|
23
|
+
font-family: "Fantasque Sans Mono";
|
|
24
|
+
font-style: normal;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
size-adjust: 116%;
|
|
27
|
+
src: url("./fonts/FantasqueSansMono-Regular.subset.woff2") format("woff2");
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@font-face {
|
|
31
|
+
descent-override: 42%;
|
|
32
|
+
font-display: swap;
|
|
33
|
+
font-family: "Playpen Sans";
|
|
34
|
+
font-style: normal;
|
|
35
|
+
font-weight: 100 800;
|
|
36
|
+
size-adjust: 94%;
|
|
37
|
+
src: url("./fonts/PlaypenSans[wght].subset.woff2") format("woff2");
|
|
38
|
+
}
|