sunday-serif 0.2.0 → 0.2.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 +46 -36
- package/fonts/SundaySerif-Italic-Variable.woff2 +0 -0
- package/fonts/SundaySerif-Variable.woff2 +0 -0
- package/fonts/SundaySerifGrain-Italic-Variable.woff2 +0 -0
- package/fonts/SundaySerifGrain-Variable.woff2 +0 -0
- package/fonts/SundaySerifText-Italic-Variable.woff2 +0 -0
- package/fonts/SundaySerifText-Variable.woff2 +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,20 +1,51 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://sunday-serif.kkratter.com/"><img src="https://raw.githubusercontent.com/kkratterf/sunday-serif/main/.github/readme/banner-light.png" alt="Sunday Serif. A soft serif for slow days, with print effects on variable axes." width="100%"></a>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://sunday-serif.kkratter.com/">Website</a>
|
|
7
|
+
·
|
|
8
|
+
<a href="https://github.com/kkratterf/sunday-serif">GitHub</a>
|
|
9
|
+
·
|
|
10
|
+
<a href="https://github.com/kkratterf/sunday-serif/releases/latest">Desktop fonts</a>
|
|
11
|
+
·
|
|
12
|
+
<a href="#license">OFL 1.1</a>
|
|
13
|
+
</p>
|
|
2
14
|
|
|
3
15
|
**A soft serif for slow days.** Free and open-source, with print effects on variable axes.
|
|
4
16
|
|
|
5
|
-
|
|
6
|
-
Worn Print (`WORN`). Desktop fonts (TTF, OTF) are on the
|
|
7
|
-
[GitHub releases](https://github.com/kkratterf/sunday-serif/releases/latest).
|
|
17
|
+
The webfonts of Sunday Serif, with ready `@font-face` rules and `next/font` objects. A text face in roman and italic, from Regular to SemiBold, with three axes borrowed from the print shop: exposure, ink and wear.
|
|
8
18
|
|
|
9
19
|
```bash
|
|
10
20
|
pnpm add sunday-serif
|
|
11
21
|
```
|
|
12
22
|
|
|
13
|
-
|
|
23
|
+
## Effects
|
|
24
|
+
|
|
25
|
+
<img src="https://raw.githubusercontent.com/kkratterf/sunday-serif/main/.github/readme/effects-light.png" alt="Light Burn from 0 to 100 across the letters of its own name; Ink Bleed and Worn Print at 0 and at 100." width="100%">
|
|
26
|
+
|
|
27
|
+
| Axis | Tag | Range | |
|
|
14
28
|
| --- | --- | --- | --- |
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
29
|
+
| Weight | `wght` | 400 to 600, default 400 | Regular, Medium, SemiBold and everything between. |
|
|
30
|
+
| Light Burn | `BURN` | 0 to 100, default 0 | Overexposure. The ink spreads until the counters fill in. |
|
|
31
|
+
| Ink Bleed | `INKB` | 0 to 100, default 0 | Ink spreading into the paper. Rounder forms, slightly tighter spacing. |
|
|
32
|
+
| Worn Print | `WORN` | 0 to 100, default 0 | The wear of an old press: grain at the edges, dust, starved patches. |
|
|
33
|
+
|
|
34
|
+
## Grain Blur
|
|
35
|
+
|
|
36
|
+
<img src="https://raw.githubusercontent.com/kkratterf/sunday-serif/main/.github/readme/grain-light.png" alt="Grain Blur from 0 to 100 across the letters of its own name." width="100%">
|
|
37
|
+
|
|
38
|
+
Sunday Serif Grain is a separate display family with one axis, `GRAN` (0 to 100): a blur made of grain, like a dithered photo. Spacing never changes.
|
|
39
|
+
|
|
40
|
+
## What to import
|
|
41
|
+
|
|
42
|
+
| Import | Family | Axes | Size per style | |
|
|
43
|
+
| --- | --- | --- | --- | --- |
|
|
44
|
+
| `sunday-serif/text.css` | `Sunday Serif` | `wght` | ~55 KB | Running text |
|
|
45
|
+
| `sunday-serif/fx.css` | `Sunday Serif FX` | `wght` `BURN` `INKB` `WORN` | ~1.8 MB | Only where an effect shows |
|
|
46
|
+
| `sunday-serif/grain.css` | `Sunday Serif Grain` | `GRAN` | ~1.5 MB | Display lines |
|
|
47
|
+
|
|
48
|
+
A browser downloads a font only when some text uses its family, so the heavier cuts cost nothing on pages that do not use them.
|
|
18
49
|
|
|
19
50
|
## Next.js
|
|
20
51
|
|
|
@@ -42,53 +73,32 @@ body {
|
|
|
42
73
|
}
|
|
43
74
|
```
|
|
44
75
|
|
|
45
|
-
`SundaySerif` is preloaded
|
|
46
|
-
on pages that use it.
|
|
76
|
+
`SundaySerif` is preloaded. `SundaySerifFX` and `SundaySerifGrain` (`--font-sunday-serif-grain`) are not.
|
|
47
77
|
|
|
48
78
|
## Any bundler
|
|
49
79
|
|
|
50
80
|
```js
|
|
51
81
|
import "sunday-serif/text.css";
|
|
52
|
-
import "sunday-serif/fx.css";
|
|
53
|
-
import "sunday-serif/grain.css"; //
|
|
82
|
+
import "sunday-serif/fx.css"; // where effects show
|
|
83
|
+
import "sunday-serif/grain.css"; // for Grain Blur
|
|
54
84
|
```
|
|
55
85
|
|
|
56
|
-
|
|
86
|
+
## Effects in CSS
|
|
57
87
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
`font-variation-settings` replaces the whole list each time it is set, so set all three
|
|
61
|
-
effects together, for example through custom properties:
|
|
88
|
+
`font-variation-settings` replaces the whole list each time it is set. Keep each effect in a custom property and write them together:
|
|
62
89
|
|
|
63
90
|
```css
|
|
64
91
|
.with-effects {
|
|
65
92
|
font-family: "Sunday Serif FX", "Sunday Serif", serif;
|
|
66
93
|
font-variation-settings: "BURN" var(--burn, 0), "INKB" var(--ink, 0), "WORN" var(--worn, 0);
|
|
94
|
+
transition: font-variation-settings 0.6s ease;
|
|
67
95
|
}
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
| Axis | Tag | Range | Default |
|
|
71
|
-
| --- | --- | --- | --- |
|
|
72
|
-
| Weight | `wght` | 400–600 | 400 |
|
|
73
|
-
| Light Burn | `BURN` | 0–100 | 0 |
|
|
74
|
-
| Ink Bleed | `INKB` | 0–100 | 0 |
|
|
75
|
-
| Worn Print | `WORN` | 0–100 | 0 |
|
|
76
|
-
|
|
77
|
-
## Grain Blur
|
|
78
|
-
|
|
79
|
-
Sunday Serif Grain is a separate display cut: a blur made of grain, like a dithered photo.
|
|
80
|
-
At 0 the letters are plain; towards 100 a cloud of ink dots spreads out from every edge.
|
|
81
|
-
Spacing never changes.
|
|
82
|
-
|
|
83
|
-
```css
|
|
84
96
|
.grainy {
|
|
85
97
|
font-family: "Sunday Serif Grain", "Sunday Serif", serif;
|
|
86
98
|
font-variation-settings: "GRAN" 80;
|
|
87
99
|
}
|
|
88
100
|
```
|
|
89
101
|
|
|
90
|
-
`SundaySerifGrain` in `sunday-serif/next` sets `--font-sunday-serif-grain`.
|
|
91
|
-
|
|
92
102
|
## License
|
|
93
103
|
|
|
94
|
-
[SIL Open Font License 1.1](OFL.txt), with Reserved Font Name "Sunday Serif".
|
|
104
|
+
[SIL Open Font License 1.1](OFL.txt), with Reserved Font Name "Sunday Serif". Designed by [Federico Kratter Thaler](https://kkratter.com) for [Sunday](https://joinsunday.co).
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED