style: 14px text floor and one shared status wording

- app.css: add --hope-text-small (14px) and --hope-text-fine (13px, footer
  fine print). Every font size below 14px now uses them. The help-tip circle,
  event badge and date stamp grow to fit the larger text.
- schedule.ts: shared filledCount(), spotsSentence() and fillLabel().
  Public pages say "4 of 6 spots filled"; coordinator pills say
  "Full · 6 of 6" or "2 open · 4 of 6" (needs tone when under half full).
- admin-pages.tsx: drop needCopy(); dashboard, event page and shift lines
  all use fillLabel().
- tests: update wording expectations; add design-rules.test.ts to guard the
  14px floor and the wording.
- README: update example wording.
This commit is contained in:
Cosmically Creative committed 2026-11-20 13:24:23 -06:00
1 parent 085f2dc668
commit 1230030e39
9 files changed
+112 -67

No files matched your search

+31 -28
View File
@@ -39,6 +39,9 @@
--hope-full-edge: #e4c4be;
--hope-blue-quiet: #d7ebf8;
--hope-blue-quiet-ink: #2d5f86;
/* Smallest text in the app. Footer fine print may use --hope-text-fine. */
--hope-text-small: 0.875rem;
--hope-text-fine: 13px;
--hope-scrollbar-size: 14px;
--hope-scrollbar-thumb: var(--hope-gold);
--hope-scrollbar-thumb-hover: color-mix(in srgb, var(--hope-gold) 72%, var(--hope-ink));
@@ -1184,7 +1187,7 @@ main a:hover {
.roster-label {
margin: 0.75rem 0 0.2rem;
color: var(--hope-ink-2);
font-size: 0.82rem;
font-size: var(--hope-text-small);
font-weight: 650;
letter-spacing: 0.04em;
text-transform: uppercase;
@@ -1292,7 +1295,7 @@ main a:hover {
.cal-weekdays {
margin: 0.55rem 0 0.35rem;
text-align: center;
font-size: 0.82rem;
font-size: var(--hope-text-small);
font-weight: 650;
color: var(--hope-ink-2);
}
@@ -1406,7 +1409,7 @@ main a:hover {
background: var(--hope-blue-50);
border: 1px solid var(--hope-gold);
border-radius: 999px;
font-size: 0.68rem;
font-size: var(--hope-text-small);
font-weight: 700;
line-height: 1.4;
}
@@ -1452,7 +1455,7 @@ main a:hover {
padding: 0.08rem 0.28rem;
border-radius: 0.35rem;
background: var(--hope-yellow);
font-size: 0.78rem;
font-size: var(--hope-text-small);
font-weight: 650;
line-height: 1.35;
}
@@ -1727,7 +1730,7 @@ article.shift-card {
justify-content: center;
gap: 0;
cursor: default;
font-size: 0.85rem;
font-size: var(--hope-text-small);
font-weight: 500;
line-height: 1.25;
}
@@ -2364,7 +2367,7 @@ article.shift-card {
border: 1px solid #e4edf5;
box-shadow: none;
color: #4a5563;
font-size: 0.75rem;
font-size: var(--hope-text-small);
font-weight: 500;
line-height: 1.2;
}
@@ -3373,7 +3376,7 @@ button.btn-quiet::before {
.need-day-count {
margin: 0;
font-size: 0.82rem;
font-size: var(--hope-text-small);
font-weight: 650;
white-space: nowrap;
}
@@ -3516,7 +3519,7 @@ button.btn-quiet::before {
.desk-row-copy span {
color: #7d8b99;
font-size: 0.86rem;
font-size: var(--hope-text-small);
}
.desk-row::after {
@@ -3539,7 +3542,7 @@ button.btn-quiet::before {
padding: 0.12rem 0.7rem;
border: 1px solid transparent;
border-radius: 999px;
font-size: 0.82rem;
font-size: var(--hope-text-small);
font-weight: 650;
line-height: 1.2;
white-space: nowrap;
@@ -4009,7 +4012,7 @@ button.btn-quiet::before {
.admin-you {
margin-left: 0.45rem;
font-size: 0.85rem;
font-size: var(--hope-text-small);
font-weight: 650;
}
@@ -4101,7 +4104,7 @@ button.btn-quiet::before {
}
.equal-text {
font-size: 12.5px;
font-size: var(--hope-text-fine);
color: #444;
}
@@ -4454,7 +4457,7 @@ button.btn-quiet::before {
@media (max-width: 33em) {
.header,
.footer {
font-size: 13.824px;
font-size: var(--hope-text-small);
}
.nav {
@@ -4486,14 +4489,14 @@ button.btn-quiet::before {
}
.equal-text {
font-size: 9.6px;
font-size: var(--hope-text-fine);
}
.copyright-text {
display: flex;
flex-direction: column;
align-items: center;
font-size: 11.52px;
font-size: var(--hope-text-fine);
}
.social-links {
@@ -4956,12 +4959,12 @@ main > .crumb,
display: inline-flex;
align-items: center;
flex: none;
min-height: 1.4rem;
min-height: 1.6rem;
padding: 0.05rem 0.55rem;
border-radius: 999px;
background: #e7edf2;
color: #5c6770;
font-size: 0.75rem;
font-size: var(--hope-text-small);
font-weight: 650;
line-height: 1.2;
}
@@ -5133,7 +5136,7 @@ main > .crumb,
}
.event-fields .hint {
font-size: 0.86rem;
font-size: var(--hope-text-small);
line-height: 1.4;
color: #5c6b78;
}
@@ -5216,7 +5219,7 @@ main > .crumb,
}
.event-panel-tools .pick-all {
font-size: 0.8rem;
font-size: var(--hope-text-small);
color: #7d8b99;
}
@@ -5322,12 +5325,12 @@ main > .crumb,
.help-tip > summary {
display: grid;
place-items: center;
width: 1.15rem;
height: 1.15rem;
width: 1.4rem;
height: 1.4rem;
border: 1.5px solid #b7c3cc;
border-radius: 999px;
color: #8b98a6;
font-size: 0.72rem;
font-size: var(--hope-text-small);
font-weight: 700;
line-height: 1;
list-style: none;
@@ -5355,7 +5358,7 @@ main > .crumb,
border-radius: 0.75rem;
box-shadow: 0 8px 24px rgb(34 55 70 / 0.12);
color: #44515c;
font-size: 0.86rem;
font-size: var(--hope-text-small);
font-weight: 400;
letter-spacing: 0;
line-height: 1.45;
@@ -5430,14 +5433,14 @@ main > .crumb,
display: grid;
justify-items: center;
flex: none;
width: 2.6rem;
width: 3rem;
line-height: 1.05;
}
.shift-dow,
.shift-mon {
color: #8b98a6;
font-size: 0.68rem;
font-size: var(--hope-text-small);
font-weight: 700;
letter-spacing: 0.04em;
}
@@ -5462,7 +5465,7 @@ main > .crumb,
.shift-copy span {
color: #7d8b99;
font-size: 0.86rem;
font-size: var(--hope-text-small);
line-height: 1.3;
}
@@ -5476,7 +5479,7 @@ main > .crumb,
padding: 0.12rem 0.7rem;
border: 1px solid transparent;
border-radius: 999px;
font-size: 0.82rem;
font-size: var(--hope-text-small);
font-weight: 650;
line-height: 1.2;
white-space: nowrap;
@@ -5624,7 +5627,7 @@ main > .crumb,
padding: 0;
list-style: none;
color: #7d8b99;
font-size: 0.8rem;
font-size: var(--hope-text-small);
}
.fill-legend li {
@@ -5676,7 +5679,7 @@ main > .crumb,
.repeat-copy span {
color: #7d8b99;
font-size: 0.86rem;
font-size: var(--hope-text-small);
line-height: 1.3;
}