sunday-serif 0.0.0-stage → 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/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,94 @@
1
- # Temporary Holding Version
1
+ # sunday-serif
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **A soft serif for slow days.** Free and open-source, with print effects on variable axes.
4
+
5
+ Webfonts for [Sunday Serif](https://sunday-serif.kkratter.com): a weight axis (400–600) and three effects: Light Burn (`BURN`), Ink Bleed (`INKB`) and
6
+ Worn Print (`WORN`). Desktop fonts (TTF, OTF) are on the
7
+ [GitHub releases](https://github.com/kkratterf/sunday-serif/releases/latest).
8
+
9
+ ```bash
10
+ pnpm add sunday-serif
11
+ ```
12
+
13
+ | Import | Family | What | Size |
14
+ | --- | --- | --- | --- |
15
+ | `sunday-serif/text.css` | `Sunday Serif` | Weight only, effects at their default. For all text | ~45 KB per style |
16
+ | `sunday-serif/fx.css` | `Sunday Serif FX` | Weight plus the three effect axes. Only where effects show | ~500 KB per style |
17
+ | `sunday-serif/grain.css` | `Sunday Serif Grain` | Display cut with the Grain Blur axis (`GRAN`), Regular and Italic | ~1.5 MB per style |
18
+
19
+ ## Next.js
20
+
21
+ ```tsx
22
+ // app/layout.tsx
23
+ import { SundaySerif, SundaySerifFX } from "sunday-serif/next";
24
+
25
+ export default function RootLayout({ children }: { children: React.ReactNode }) {
26
+ return (
27
+ <html lang="en" className={`${SundaySerif.variable} ${SundaySerifFX.variable}`}>
28
+ <body>{children}</body>
29
+ </html>
30
+ );
31
+ }
32
+ ```
33
+
34
+ ```css
35
+ body {
36
+ font-family: var(--font-sunday-serif);
37
+ }
38
+ .headline {
39
+ font-family: var(--font-sunday-serif-fx);
40
+ font-weight: 600;
41
+ font-variation-settings: "BURN" 40, "INKB" 30, "WORN" 0;
42
+ }
43
+ ```
44
+
45
+ `SundaySerif` is preloaded; `SundaySerifFX` is not, so it only downloads
46
+ on pages that use it.
47
+
48
+ ## Any bundler
49
+
50
+ ```js
51
+ import "sunday-serif/text.css";
52
+ import "sunday-serif/fx.css"; // only if you use the effects
53
+ import "sunday-serif/grain.css"; // only if you use Grain Blur
54
+ ```
55
+
56
+ Then use `font-family: "Sunday Serif"`, `"Sunday Serif FX"` and `"Sunday Serif Grain"`.
57
+
58
+ ## Effects
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:
62
+
63
+ ```css
64
+ .with-effects {
65
+ font-family: "Sunday Serif FX", "Sunday Serif", serif;
66
+ font-variation-settings: "BURN" var(--burn, 0), "INKB" var(--ink, 0), "WORN" var(--worn, 0);
67
+ }
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
+ .grainy {
85
+ font-family: "Sunday Serif Grain", "Sunday Serif", serif;
86
+ font-variation-settings: "GRAN" 80;
87
+ }
88
+ ```
89
+
90
+ `SundaySerifGrain` in `sunday-serif/next` sets `--font-sunday-serif-grain`.
91
+
92
+ ## License
93
+
94
+ [SIL Open Font License 1.1](OFL.txt), with Reserved Font Name "Sunday Serif".
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.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
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
+ }