diff --git a/docs/adr/0003-the-hero-scrim-lets-the-photo-show.md b/docs/adr/0003-the-hero-scrim-lets-the-photo-show.md new file mode 100644 index 0000000..7c1948c --- /dev/null +++ b/docs/adr/0003-the-hero-scrim-lets-the-photo-show.md @@ -0,0 +1,20 @@ +# The hero scrim lets the photo show + +Decided 2026-11-20 for cyberpunk 0.5.6, from the website factory's final render pass (orchestrator WO-096, ADR 0084). + +## Context + +The website factory compiles a customer's site onto this theme. The render pass screenshots every page at 1280 and 390 pixels and measures text over images and every button against what is behind it. + +## Decision + +- The light hero scrim is a radial gradient of the theme background centred on the hero text (at 35% across for the left-aligned hero): 84% at the centre, 80% out to 55% of the radius and 40% at the corners. The flat 82% scrim of the last release met contrast but washed the photo out; the text keeps the same backing while the photo reads at the edges. The render harness measures every text element over the photo (orchestrator WO-096). +- Every preset's primary, secondary, accent and destructive colour meets AA (4.5:1) with its foreground in both schemes. The render pass measures every button, and these pairs were under it: acid-rain light accent; acid-rain light destructive; ghost-protocol light accent; hotline light accent; hotline light destructive; hotline light primary; neon-noir light destructive; neon-noir light primary; toxic-bloom light accent; toxic-bloom light destructive. Each colour moved the least lightness (at most ten points) that reaches 4.5 with its own foreground, and a colour that could not switched its foreground to white or near-black; a token that held the same colour (the ring) moved with it. The orchestrator's brand colour step keeps whatever contrast a preset has, so a preset under AA also left a branded site under it. +- The outline button of the hero draws its label in the foreground colour. The accent label (neon cyan) measured 1.7:1 on the light scheme. + +## Consequences + +- cyberpunk 0.5.6 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it. +- No schema field changes. + +Keywords: outline button, presets, AA, button contrast, primaryForeground, accentForeground, cyberpunk, hero, overlayColor, scrim, radial-gradient, contrast, WO-096, website factory, render pass diff --git a/presets.json b/presets.json index 3afb9f1..f57325e 100644 --- a/presets.json +++ b/presets.json @@ -17,7 +17,7 @@ "cardForeground": "260 25% 10%", "popover": "240 10% 99%", "popoverForeground": "260 25% 10%", - "primary": "320 100% 50%", + "primary": "320 100% 44%", "primaryForeground": "0 0% 100%", "secondary": "260 20% 92%", "secondaryForeground": "260 25% 10%", @@ -25,11 +25,11 @@ "mutedForeground": "260 12% 40%", "accent": "185 100% 45%", "accentForeground": "260 25% 10%", - "destructive": "0 90% 55%", + "destructive": "0 90% 48%", "destructiveForeground": "0 0% 100%", "border": "260 20% 88%", "input": "260 20% 88%", - "ring": "320 100% 50%" + "ring": "320 100% 44%" }, "darkColors": { "background": "260 18% 6%", @@ -78,9 +78,9 @@ "secondaryForeground": "220 30% 10%", "muted": "200 20% 95%", "mutedForeground": "220 15% 40%", - "accent": "320 95% 55%", + "accent": "320 95% 45%", "accentForeground": "0 0% 100%", - "destructive": "0 90% 55%", + "destructive": "0 90% 48%", "destructiveForeground": "0 0% 100%", "border": "200 25% 88%", "input": "200 25% 88%", @@ -134,8 +134,8 @@ "muted": "100 12% 95%", "mutedForeground": "120 12% 40%", "accent": "320 100% 55%", - "accentForeground": "0 0% 100%", - "destructive": "0 90% 55%", + "accentForeground": "0 0% 9%", + "destructive": "0 90% 48%", "destructiveForeground": "0 0% 100%", "border": "100 15% 88%", "input": "100 15% 88%", @@ -182,19 +182,19 @@ "cardForeground": "300 30% 12%", "popover": "30 35% 99%", "popoverForeground": "300 30% 12%", - "primary": "330 95% 55%", + "primary": "330 95% 46%", "primaryForeground": "0 0% 100%", "secondary": "30 35% 92%", "secondaryForeground": "300 30% 12%", "muted": "30 25% 94%", "mutedForeground": "300 15% 40%", "accent": "170 85% 40%", - "accentForeground": "0 0% 100%", - "destructive": "0 90% 55%", + "accentForeground": "0 0% 9%", + "destructive": "0 90% 48%", "destructiveForeground": "0 0% 100%", "border": "30 30% 87%", "input": "30 30% 87%", - "ring": "330 95% 55%" + "ring": "330 95% 46%" }, "darkColors": { "background": "285 35% 7%", @@ -244,7 +244,7 @@ "muted": "0 0% 94%", "mutedForeground": "0 0% 38%", "accent": "160 90% 38%", - "accentForeground": "0 0% 100%", + "accentForeground": "0 0% 9%", "destructive": "0 85% 50%", "destructiveForeground": "0 0% 100%", "border": "0 0% 86%", diff --git a/templates/overrides/cyberpunk/hero.ninjatpl b/templates/overrides/cyberpunk/hero.ninjatpl index bd75db4..3f30877 100644 --- a/templates/overrides/cyberpunk/hero.ninjatpl +++ b/templates/overrides/cyberpunk/hero.ninjatpl @@ -17,7 +17,7 @@ {% if descText %}

{{ descText }}

{% endif %} {% if pText or sText %}
{% if pText and pUrl %}{{ pText }}{% endif %} -{% if sText and sUrl %}{{ sText }}{% endif %} +{% if sText and sUrl %}{{ sText }}{% endif %}
{% endif %} {% if trustLogos %}

Trusted by

@@ -33,7 +33,7 @@ {% set align = "center" %} {% if variant == "left-aligned" %}{% set align = "left" %}{% endif %}
-{% if hasImage %}
{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}
{% endif %}
{% else %}
{% endif %} +{% if hasImage %}
{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}
{% endif %}{% else %}
{% endif %}
{{ herocontent(align) }}