@fluid-theme/core 2.0.0 → 2.1.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +22 -1
  2. package/CLAUDE.md +10 -2
  3. package/dist/fluid-1x.min.css +1 -1
  4. package/dist/fluid-fonts-archivo.min.css +2 -0
  5. package/dist/fluid-fonts-bodoni.min.css +2 -0
  6. package/dist/fluid-fonts.min.css +1 -1
  7. package/dist/fluid-legacy-1x.css +1 -1
  8. package/dist/fluid-nav.min.css +1 -1
  9. package/dist/fluid-toc.min.css +1 -1
  10. package/dist/fluid-zero.min.css +1 -1
  11. package/dist/fluid.min.css +1 -1
  12. package/dist/fonts/OFL-archivo.txt +93 -0
  13. package/dist/fonts/OFL-bodoni-moda.txt +93 -0
  14. package/dist/fonts/OFL-hanken-grotesk.txt +93 -0
  15. package/dist/fonts/archivo-latin-wdth-italic.woff2 +0 -0
  16. package/dist/fonts/archivo-latin-wdth-normal.woff2 +0 -0
  17. package/dist/fonts/bodoni-moda-latin-opsz-italic.woff2 +0 -0
  18. package/dist/fonts/bodoni-moda-latin-opsz-normal.woff2 +0 -0
  19. package/dist/fonts/hanken-grotesk-latin-wght-italic.woff2 +0 -0
  20. package/dist/fonts/hanken-grotesk-latin-wght-normal.woff2 +0 -0
  21. package/package.json +8 -9
  22. package/src/fluid.css +1 -1
  23. package/starters/workflows/README.md +40 -0
  24. package/starters/workflows/dependabot.yml +21 -0
  25. package/starters/workflows/update-fluid-theme.yml +296 -0
  26. package/themes/fonts/OFL-archivo.txt +93 -0
  27. package/themes/fonts/OFL-bodoni-moda.txt +93 -0
  28. package/themes/fonts/OFL-hanken-grotesk.txt +93 -0
  29. package/themes/fonts/archivo-latin-wdth-italic.woff2 +0 -0
  30. package/themes/fonts/archivo-latin-wdth-normal.woff2 +0 -0
  31. package/themes/fonts/archivo.css +20 -0
  32. package/themes/fonts/bodoni-moda-latin-opsz-italic.woff2 +0 -0
  33. package/themes/fonts/bodoni-moda-latin-opsz-normal.woff2 +0 -0
  34. package/themes/fonts/bodoni.css +35 -0
  35. package/themes/fonts/hanken-grotesk-latin-wght-italic.woff2 +0 -0
  36. package/themes/fonts/hanken-grotesk-latin-wght-normal.woff2 +0 -0
  37. package/themes/gallery.css +105 -0
  38. package/themes/swiss.css +53 -0
@@ -0,0 +1,93 @@
1
+ Copyright 2021 The Hanken Grotesk Project Authors (https://github.com/marcologous/hanken-grotesk) HankenGrotesk-Italic[wght].ttf: Copyright 2021 The Hanken Grotesk Project Authors (https://github.com/marcologous/hanken-grotesk)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,20 @@
1
+ /* Archivo (wdth 62-125, wght 100-900), latin, SIL OFL 1.1 (OFL-archivo.txt).
2
+ The "swiss" pairing: spec _docs/plans/base-v2.md §15. Width is set with
3
+ font-variation-settings, never font-stretch (that would pick Helvetica
4
+ Neue Condensed on a Mac without the file). Italic loads only when used. */
5
+ @font-face {
6
+ font-family: "Archivo Variable";
7
+ font-style: normal;
8
+ font-display: swap;
9
+ font-weight: 100 900;
10
+ src: url("./archivo-latin-wdth-normal.woff2") format("woff2-variations");
11
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
12
+ }
13
+ @font-face {
14
+ font-family: "Archivo Variable";
15
+ font-style: italic;
16
+ font-display: swap;
17
+ font-weight: 100 900;
18
+ src: url("./archivo-latin-wdth-italic.woff2") format("woff2-variations");
19
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
20
+ }
@@ -0,0 +1,35 @@
1
+ /* Bodoni Moda (opsz 6-96, wght 400-900) over Hanken Grotesk (wght 100-900),
2
+ latin, SIL OFL 1.1 (OFL-*.txt). The "gallery" pairing: spec
3
+ _docs/plans/base-v2.md §16. Italics load only when used. */
4
+ @font-face {
5
+ font-family: "Bodoni Moda Variable";
6
+ font-style: normal;
7
+ font-display: swap;
8
+ font-weight: 400 900;
9
+ src: url("./bodoni-moda-latin-opsz-normal.woff2") format("woff2-variations");
10
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
11
+ }
12
+ @font-face {
13
+ font-family: "Bodoni Moda Variable";
14
+ font-style: italic;
15
+ font-display: swap;
16
+ font-weight: 400 900;
17
+ src: url("./bodoni-moda-latin-opsz-italic.woff2") format("woff2-variations");
18
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
19
+ }
20
+ @font-face {
21
+ font-family: "Hanken Grotesk Variable";
22
+ font-style: normal;
23
+ font-display: swap;
24
+ font-weight: 100 900;
25
+ src: url("./hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations");
26
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
27
+ }
28
+ @font-face {
29
+ font-family: "Hanken Grotesk Variable";
30
+ font-style: italic;
31
+ font-display: swap;
32
+ font-weight: 100 900;
33
+ src: url("./hanken-grotesk-latin-wght-italic.woff2") format("woff2-variations");
34
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
35
+ }
@@ -0,0 +1,105 @@
1
+ /* "gallery": an alternate child theme on the Fluid base v2
2
+ (spec _docs/plans/base-v2.md §16). A Didone display over a quiet grotesk;
3
+ the images carry the colour, the accent is kept for actions. Fonts:
4
+ themes/fonts/bodoni.css (or dist/fluid-fonts-bodoni.min.css). Link after
5
+ the base: fluid.min.css, then this file. Dark mode adds 30 to heading
6
+ weights (base), but the lede's light weight (350) sits under Bodoni Moda's
7
+ 400 floor, so it never reached the lede: the low-resolution rule at the end
8
+ sets it (680, a token). */
9
+ @layer reset, tokens, base, layouts, components, themes, utilities;
10
+
11
+ @layer themes {
12
+ :root {
13
+ --font-heading: "Bodoni Moda Variable", Didot, "Bodoni MT", "Noto Serif Display", P052, Georgia, serif;
14
+ --font-body: "Hanken Grotesk Variable", "Helvetica Neue", "Segoe UI Variable Text", "Segoe UI", Roboto, Arial, sans-serif;
15
+ --accent: oklch(46% 0.22 266); /* ultramarine (Klein); white on it ≈ 7.6:1 */
16
+ --neutral-tint: oklch(50% 0.006 85); /* gallery white: a breath of warmth so photos read true */
17
+ --display-max: 12rem;
18
+ --measure: 62ch;
19
+ --container-content: 90rem;
20
+ --space-section: clamp(5rem, 3rem + 8.889vi, 11rem); /* 80 → 176 */
21
+ --space-gutter: clamp(2.5rem, 0.667rem + 8.148vi, 8rem); /* both sides: 20 → 64px a side */
22
+ --toc-font: var(--font-body);
23
+ --toc-dock-font: var(--font-body);
24
+ /* Nav links tracked like the labels; on a narrow bar the base squeezes
25
+ the tracking down to the minimum before the links wrap. */
26
+ --nav-tracking: 0.12em;
27
+ --nav-tracking-min: 0.04em;
28
+ }
29
+
30
+ .eyebrow { color: var(--color-text-muted); } /* one label voice; the accent is kept for actions */
31
+
32
+ /* The label voice reaches the UI. */
33
+ :is(button, .button), :is(.nav__link, .nav__dropdown-link), .toc a {
34
+ font-size: var(--step--2);
35
+ font-weight: 600;
36
+ text-transform: uppercase;
37
+ }
38
+ :is(button, .button), .toc a { letter-spacing: 0.12em; } /* nav links: --nav-tracking above */
39
+ /* The compact nav's panel (fluid-nav.min.css) sets its links in the
40
+ reading size; this file's label size above would win over it. */
41
+ @supports selector(:popover-open) {
42
+ @container nav (max-width: 40rem) {
43
+ .nav[data-nav~="compact"] .nav__panel .nav__link { font-size: var(--step-1); }
44
+ }
45
+ }
46
+
47
+ blockquote {
48
+ font: italic 400 var(--step-3) / 1.15 var(--font-display);
49
+ border: 0;
50
+ padding: 0;
51
+ text-indent: -0.42em;
52
+ }
53
+ /* The hanging open quote goes on the first paragraph, so it hangs in the
54
+ margin instead of standing on a line of its own; the testimonial adds
55
+ its own quote marks. */
56
+ blockquote:not(.testimonial__quote) > :first-child::before { content: "\201C"; }
57
+
58
+ .hero__headline, .display { line-height: 0.92; letter-spacing: -0.02em; }
59
+ /* Bodoni's long descender (~0.25em) hangs below a 0.92 line: room under it. */
60
+ .hero__headline, .display { padding-block-end: 0.12em; }
61
+
62
+ /* The dock's two rows differ by face and size, not only by position. */
63
+ .toc[data-toc-mode="dock"] .toc__fold > ol > li > a {
64
+ font: 400 var(--step-0) / 1.2 var(--font-display);
65
+ text-transform: none;
66
+ letter-spacing: 0;
67
+ }
68
+ figcaption { max-inline-size: 48ch; }
69
+
70
+ /* Bodoni Moda's display cut (opsz 72) loses its hairlines on 1x (non-Retina)
71
+ screens and at phone sizes: there, the font's own sturdier optical sizes
72
+ and heavier weights. Retina desktops keep the fine display cut. Neil,
73
+ 2026-10-29, on a 27" 2560x1440 LED Cinema Display: two steps heavier than
74
+ the first fix ("err on the side of readable; a site can go lighter").
75
+ A site goes lighter by setting the two weights lower (floor 400). */
76
+ :root {
77
+ --gallery-lowres-weight: 650; /* headlines and section heads */
78
+ --gallery-lowres-lede-weight: 680; /* lede, pull quote, blockquote */
79
+ }
80
+ @media (max-resolution: 1.5dppx), (max-width: 40rem) {
81
+ :root { --weight-display: var(--gallery-lowres-weight); } /* h3 +100; +30 in dark */
82
+ .display, .hero__headline { font-variation-settings: "opsz" 14; }
83
+ h2, h3 { font-variation-settings: "opsz" 9; }
84
+ :is(.lede, .pullquote) {
85
+ font-weight: calc(var(--gallery-lowres-lede-weight) + var(--_dark-weight));
86
+ font-variation-settings: "opsz" 6;
87
+ }
88
+ blockquote {
89
+ font-weight: calc(var(--gallery-lowres-lede-weight) + var(--_dark-weight));
90
+ font-variation-settings: "opsz" 9;
91
+ }
92
+ /* The low optical sizes are spaced for small text: tighten them back
93
+ (Neil: "too much white space between the letters"). */
94
+ .display, .hero__headline { letter-spacing: -0.045em; }
95
+ h2 { letter-spacing: -0.035em; }
96
+ h3 { letter-spacing: -0.03em; }
97
+ :is(.lede, .pullquote), blockquote { letter-spacing: -0.03em; }
98
+ /* The wordmark set in the display face gets the same sturdier cut. */
99
+ .nav__brand {
100
+ font-weight: calc(var(--gallery-lowres-weight) + var(--_dark-weight));
101
+ font-variation-settings: "opsz" 9;
102
+ letter-spacing: -0.025em;
103
+ }
104
+ }
105
+ }
@@ -0,0 +1,53 @@
1
+ /* "swiss": an alternate child theme on the Fluid base v2
2
+ (spec _docs/plans/base-v2.md §15). One grotesk family, a heavy display
3
+ over a light lede, an off-centre column with a start-side rail, ink
4
+ labels instead of accent eyebrows. Fonts: themes/fonts/archivo.css (or
5
+ dist/fluid-fonts-archivo.min.css). Link after the base: fluid.min.css,
6
+ then this file. */
7
+ @layer reset, tokens, base, layouts, components, themes, utilities;
8
+
9
+ @layer themes {
10
+ :root {
11
+ --font-heading: "Archivo Variable", "Helvetica Neue", "Nimbus Sans", Arial, sans-serif;
12
+ --font-body: var(--font-heading);
13
+ --accent: oklch(47% 0.21 264); /* ultramarine; white on it ≈ 6.8:1 */
14
+ --neutral-tint: oklch(50% 0.006 85);
15
+ --type-ratio: 1.5; /* h1 ≈ 5× body on desktop */
16
+ --weight-display: 760;
17
+ --display-max: 11rem;
18
+ --measure: 65ch;
19
+ --container-content: 90rem;
20
+ --space-section: clamp(4.5rem, 2.613rem + 8.387vi, 11rem); /* 72 → 176 */
21
+ --space-gutter: clamp(2.5rem, 0.9032rem + 7.097vi, 8rem); /* both sides: 20 → 64px a side */
22
+ --rail: 13rem; /* the column sits off-centre; the rail is free for labels */
23
+ --toc-marker: decimal-leading-zero;
24
+ --toc-dock-font: var(--font-body);
25
+ }
26
+
27
+ .display, .hero__headline {
28
+ line-height: 0.92;
29
+ letter-spacing: -0.045em;
30
+ font-variation-settings: "wdth" 92;
31
+ }
32
+ h1 { letter-spacing: -0.04em; }
33
+ h2 { font-weight: 700; letter-spacing: -0.03em; }
34
+ h3 { font-weight: 600; }
35
+
36
+ :is(.eyebrow, h5, h6, thead th, .toc__label) {
37
+ color: var(--color-text);
38
+ letter-spacing: 0.1em;
39
+ font-variation-settings: "wdth" 112;
40
+ }
41
+
42
+ .lede { font-family: var(--font-body); font-weight: 300; }
43
+
44
+ /* No italic in the display: emphasis by weight. */
45
+ blockquote, :is(h1, h2, h3, .display) em { font-style: normal; }
46
+ :is(h1, h2, h3, .display) em { font-weight: 400; }
47
+
48
+ .section__head { --section-rule: 3px; }
49
+
50
+ /* At ratio 1.5 step 4 is ~100px: heavy numerals that wide overrun a
51
+ four-column stats row, so they step down one. */
52
+ .stat__value { font-size: var(--step-3); }
53
+ }