sunday-serif 0.0.0-stage → 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/OFL.txt +94 -0
- package/README.md +103 -2
- 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/fx.css +16 -0
- package/grain.css +16 -0
- package/next.d.ts +8 -0
- package/next.js +39 -0
- package/package.json +50 -4
- package/text.css +15 -0
package/OFL.txt
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
Copyright 2026 The Sunday Serif Project Authors (https://github.com/kkratterf/sunday-serif), with Reserved Font Name "Sunday Serif".
|
|
2
|
+
Copyright 2014-2023 Adobe (http://www.adobe.com/), with Reserved Font Name "Source".
|
|
3
|
+
|
|
4
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
5
|
+
This license is copied below, and is also available with a FAQ at:
|
|
6
|
+
https://openfontlicense.org
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
-----------------------------------------------------------
|
|
10
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
11
|
+
-----------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
PREAMBLE
|
|
14
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
15
|
+
development of collaborative font projects, to support the font creation
|
|
16
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
17
|
+
open framework in which fonts may be shared and improved in partnership
|
|
18
|
+
with others.
|
|
19
|
+
|
|
20
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
21
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
22
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
23
|
+
redistributed and/or sold with any software provided that any reserved
|
|
24
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
25
|
+
however, cannot be released under any other type of license. The
|
|
26
|
+
requirement for fonts to remain under this license does not apply
|
|
27
|
+
to any document created using the fonts or their derivatives.
|
|
28
|
+
|
|
29
|
+
DEFINITIONS
|
|
30
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
31
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
32
|
+
include source files, build scripts and documentation.
|
|
33
|
+
|
|
34
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
35
|
+
copyright statement(s).
|
|
36
|
+
|
|
37
|
+
"Original Version" refers to the collection of Font Software components as
|
|
38
|
+
distributed by the Copyright Holder(s).
|
|
39
|
+
|
|
40
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
41
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
42
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
43
|
+
new environment.
|
|
44
|
+
|
|
45
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
46
|
+
writer or other person who contributed to the Font Software.
|
|
47
|
+
|
|
48
|
+
PERMISSION & CONDITIONS
|
|
49
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
50
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
51
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
52
|
+
Software, subject to the following conditions:
|
|
53
|
+
|
|
54
|
+
1) Neither the Font Software nor any of its individual components,
|
|
55
|
+
in Original or Modified Versions, may be sold by itself.
|
|
56
|
+
|
|
57
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
58
|
+
redistributed and/or sold with any software, provided that each copy
|
|
59
|
+
contains the above copyright notice and this license. These can be
|
|
60
|
+
included either as stand-alone text files, human-readable headers or
|
|
61
|
+
in the appropriate machine-readable metadata fields within text or
|
|
62
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
63
|
+
|
|
64
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
65
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
66
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
67
|
+
presented to the users.
|
|
68
|
+
|
|
69
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
70
|
+
Software shall not be used to promote, endorse or advertise any
|
|
71
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
72
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
73
|
+
permission.
|
|
74
|
+
|
|
75
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
76
|
+
must be distributed entirely under this license, and must not be
|
|
77
|
+
distributed under any other license. The requirement for fonts to
|
|
78
|
+
remain under this license does not apply to any document created
|
|
79
|
+
using the Font Software.
|
|
80
|
+
|
|
81
|
+
TERMINATION
|
|
82
|
+
This license becomes null and void if any of the above conditions are
|
|
83
|
+
not met.
|
|
84
|
+
|
|
85
|
+
DISCLAIMER
|
|
86
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
87
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
88
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
89
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
90
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
91
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
92
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
93
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
94
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,104 @@
|
|
|
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>
|
|
2
4
|
|
|
3
|
-
|
|
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>
|
|
14
|
+
|
|
15
|
+
**A soft serif for slow days.** Free and open-source, with print effects on variable axes.
|
|
16
|
+
|
|
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.
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pnpm add sunday-serif
|
|
21
|
+
```
|
|
22
|
+
|
|
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 | |
|
|
28
|
+
| --- | --- | --- | --- |
|
|
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.
|
|
49
|
+
|
|
50
|
+
## Next.js
|
|
51
|
+
|
|
52
|
+
```tsx
|
|
53
|
+
// app/layout.tsx
|
|
54
|
+
import { SundaySerif, SundaySerifFX } from "sunday-serif/next";
|
|
55
|
+
|
|
56
|
+
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
57
|
+
return (
|
|
58
|
+
<html lang="en" className={`${SundaySerif.variable} ${SundaySerifFX.variable}`}>
|
|
59
|
+
<body>{children}</body>
|
|
60
|
+
</html>
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
```css
|
|
66
|
+
body {
|
|
67
|
+
font-family: var(--font-sunday-serif);
|
|
68
|
+
}
|
|
69
|
+
.headline {
|
|
70
|
+
font-family: var(--font-sunday-serif-fx);
|
|
71
|
+
font-weight: 600;
|
|
72
|
+
font-variation-settings: "BURN" 40, "INKB" 30, "WORN" 0;
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
`SundaySerif` is preloaded. `SundaySerifFX` and `SundaySerifGrain` (`--font-sunday-serif-grain`) are not.
|
|
77
|
+
|
|
78
|
+
## Any bundler
|
|
79
|
+
|
|
80
|
+
```js
|
|
81
|
+
import "sunday-serif/text.css";
|
|
82
|
+
import "sunday-serif/fx.css"; // where effects show
|
|
83
|
+
import "sunday-serif/grain.css"; // for Grain Blur
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Effects in CSS
|
|
87
|
+
|
|
88
|
+
`font-variation-settings` replaces the whole list each time it is set. Keep each effect in a custom property and write them together:
|
|
89
|
+
|
|
90
|
+
```css
|
|
91
|
+
.with-effects {
|
|
92
|
+
font-family: "Sunday Serif FX", "Sunday Serif", serif;
|
|
93
|
+
font-variation-settings: "BURN" var(--burn, 0), "INKB" var(--ink, 0), "WORN" var(--worn, 0);
|
|
94
|
+
transition: font-variation-settings 0.6s ease;
|
|
95
|
+
}
|
|
96
|
+
.grainy {
|
|
97
|
+
font-family: "Sunday Serif Grain", "Sunday Serif", serif;
|
|
98
|
+
font-variation-settings: "GRAN" 80;
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## License
|
|
103
|
+
|
|
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/fx.css
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* Sunday Serif FX: weight plus the BURN, INKB and WORN effect axes (~500 KB per style).
|
|
2
|
+
Browsers download it only for text that uses the "Sunday Serif FX" family. */
|
|
3
|
+
@font-face {
|
|
4
|
+
font-family: "Sunday Serif FX";
|
|
5
|
+
src: url("./fonts/SundaySerif-Variable.woff2") format("woff2");
|
|
6
|
+
font-weight: 400 600;
|
|
7
|
+
font-style: normal;
|
|
8
|
+
font-display: swap;
|
|
9
|
+
}
|
|
10
|
+
@font-face {
|
|
11
|
+
font-family: "Sunday Serif FX";
|
|
12
|
+
src: url("./fonts/SundaySerif-Italic-Variable.woff2") format("woff2");
|
|
13
|
+
font-weight: 400 600;
|
|
14
|
+
font-style: italic;
|
|
15
|
+
font-display: swap;
|
|
16
|
+
}
|
package/grain.css
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* Sunday Serif Grain: the Grain Blur axis (GRAN 0...100), Regular and Italic (~1.5 MB per style).
|
|
2
|
+
A display cut: browsers download it only for text that uses the "Sunday Serif Grain" family. */
|
|
3
|
+
@font-face {
|
|
4
|
+
font-family: "Sunday Serif Grain";
|
|
5
|
+
src: url("./fonts/SundaySerifGrain-Variable.woff2") format("woff2");
|
|
6
|
+
font-weight: 400;
|
|
7
|
+
font-style: normal;
|
|
8
|
+
font-display: swap;
|
|
9
|
+
}
|
|
10
|
+
@font-face {
|
|
11
|
+
font-family: "Sunday Serif Grain";
|
|
12
|
+
src: url("./fonts/SundaySerifGrain-Italic-Variable.woff2") format("woff2");
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
font-style: italic;
|
|
15
|
+
font-display: swap;
|
|
16
|
+
}
|
package/next.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { NextFontWithVariable } from "next/dist/compiled/@next/font";
|
|
2
|
+
|
|
3
|
+
/** Text cut: weight 400-600, preloaded. CSS variable `--font-sunday-serif`. */
|
|
4
|
+
export declare const SundaySerif: NextFontWithVariable;
|
|
5
|
+
/** Weight plus BURN, INKB and WORN, not preloaded. CSS variable `--font-sunday-serif-fx`. */
|
|
6
|
+
export declare const SundaySerifFX: NextFontWithVariable;
|
|
7
|
+
/** Display cut with the Grain Blur axis (GRAN), not preloaded. CSS variable `--font-sunday-serif-grain`. */
|
|
8
|
+
export declare const SundaySerifGrain: NextFontWithVariable;
|
package/next.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// next/font/local resolves these paths at build time, relative to this file.
|
|
2
|
+
import localFont from "next/font/local";
|
|
3
|
+
|
|
4
|
+
export const SundaySerif = localFont({
|
|
5
|
+
src: [
|
|
6
|
+
{ path: "./fonts/SundaySerifText-Variable.woff2", weight: "400 600", style: "normal" },
|
|
7
|
+
{ path: "./fonts/SundaySerifText-Italic-Variable.woff2", weight: "400 600", style: "italic" },
|
|
8
|
+
],
|
|
9
|
+
variable: "--font-sunday-serif",
|
|
10
|
+
display: "swap",
|
|
11
|
+
fallback: ["Georgia", "serif"],
|
|
12
|
+
adjustFontFallback: "Times New Roman",
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
// Not preloaded: only pages that render text in this family download it.
|
|
16
|
+
export const SundaySerifFX = localFont({
|
|
17
|
+
src: [
|
|
18
|
+
{ path: "./fonts/SundaySerif-Variable.woff2", weight: "400 600", style: "normal" },
|
|
19
|
+
{ path: "./fonts/SundaySerif-Italic-Variable.woff2", weight: "400 600", style: "italic" },
|
|
20
|
+
],
|
|
21
|
+
variable: "--font-sunday-serif-fx",
|
|
22
|
+
display: "swap",
|
|
23
|
+
preload: false,
|
|
24
|
+
fallback: ["Georgia", "serif"],
|
|
25
|
+
adjustFontFallback: "Times New Roman",
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
// Display cut with the Grain Blur axis (GRAN), not preloaded.
|
|
29
|
+
export const SundaySerifGrain = localFont({
|
|
30
|
+
src: [
|
|
31
|
+
{ path: "./fonts/SundaySerifGrain-Variable.woff2", weight: "400", style: "normal" },
|
|
32
|
+
{ path: "./fonts/SundaySerifGrain-Italic-Variable.woff2", weight: "400", style: "italic" },
|
|
33
|
+
],
|
|
34
|
+
variable: "--font-sunday-serif-grain",
|
|
35
|
+
display: "swap",
|
|
36
|
+
preload: false,
|
|
37
|
+
fallback: ["Georgia", "serif"],
|
|
38
|
+
adjustFontFallback: "Times New Roman",
|
|
39
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,52 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sunday-serif",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "A soft serif for slow days. Free and open-source, with print effects on variable axes: webfonts, CSS and next/font helpers.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"font",
|
|
7
|
+
"webfont",
|
|
8
|
+
"variable-font",
|
|
9
|
+
"serif",
|
|
10
|
+
"woff2",
|
|
11
|
+
"next-font"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://sunday-serif.kkratter.com",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/kkratterf/sunday-serif.git",
|
|
17
|
+
"directory": "npm"
|
|
18
|
+
},
|
|
19
|
+
"bugs": "https://github.com/kkratterf/sunday-serif/issues",
|
|
20
|
+
"license": "OFL-1.1",
|
|
21
|
+
"author": "Federico Kratter Thaler",
|
|
22
|
+
"type": "module",
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"*.css"
|
|
25
|
+
],
|
|
26
|
+
"files": [
|
|
27
|
+
"fonts",
|
|
28
|
+
"*.css",
|
|
29
|
+
"next.js",
|
|
30
|
+
"next.d.ts",
|
|
31
|
+
"OFL.txt"
|
|
32
|
+
],
|
|
33
|
+
"exports": {
|
|
34
|
+
"./text.css": "./text.css",
|
|
35
|
+
"./fx.css": "./fx.css",
|
|
36
|
+
"./grain.css": "./grain.css",
|
|
37
|
+
"./next": {
|
|
38
|
+
"types": "./next.d.ts",
|
|
39
|
+
"default": "./next.js"
|
|
40
|
+
},
|
|
41
|
+
"./fonts/*": "./fonts/*",
|
|
42
|
+
"./package.json": "./package.json"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"next": ">=13.2"
|
|
46
|
+
},
|
|
47
|
+
"peerDependenciesMeta": {
|
|
48
|
+
"next": {
|
|
49
|
+
"optional": true
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
package/text.css
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* Sunday Serif, text cut: weight 400-600 only, effects at their default (~45 KB per style). */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: "Sunday Serif";
|
|
4
|
+
src: url("./fonts/SundaySerifText-Variable.woff2") format("woff2");
|
|
5
|
+
font-weight: 400 600;
|
|
6
|
+
font-style: normal;
|
|
7
|
+
font-display: swap;
|
|
8
|
+
}
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: "Sunday Serif";
|
|
11
|
+
src: url("./fonts/SundaySerifText-Italic-Variable.woff2") format("woff2");
|
|
12
|
+
font-weight: 400 600;
|
|
13
|
+
font-style: italic;
|
|
14
|
+
font-display: swap;
|
|
15
|
+
}
|