Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before deploying
APP_PRIMARY_COLORis optional; unset, the app renders exactly as before.#7c3aed,7c3aedand#abcall parse) — it is the baseshade, the rest of the ramp is derived. Anything unparseable falls back to the built-in green.
app/favicon.ico,app/icon0.svg,app/icon1.png,app/apple-icon.png,public/web-app-manifest-*.png) — they are rendered per request now. Acustom icon can no longer be dropped in as a file.
docker-compose.yml.What's in it
50…950ramp.primary-color.config.tsconverts it to OKLCH andinterpolates every shade: the curve shape (lightness/chroma per step) is averaged over Tailwind's
17 chromatic palettes, the hue and the saturation come from the hex, and
50/950keepTailwind's extremes no matter how light or dark the input is.
layout.tsxputs the--app-primary-*overrides on<html>as an inline style. Unset envemits no style attribute at all and
globals.cssfalls back tovar(--color-green-*), so thedefault renders byte-identically to before.
green-*class in the UI becameprimary-*. Red/amber/green stay hard-coded where theyare semantic — the success toast and the storage quota bar.
color via
next/og(no webfont, nothing fetched);app/icon.tsx,app/apple-icon.tsxandapp/api/icon?size=192|512for the maskable manifest icons, allforce-dynamic.proxy.tshad to exempticon/apple-icon. The generated routes carry no file extension, sothe matcher's
.*\..*escape hatch missed them and the browser's favicon request was beingbounced to
/login.theme-color, the manifest and the OG badge follow the same hex — they were pinned to#16a34a, Tailwind v3's green, while the UI has been rendering v4's#00a63esince the v4 bump.Verification
pnpm buildandpnpm lintpass.nonsense→theme_color: #00a63e, no style attribute,green icon;
#7c3aed→#7c3aed, the oklch ramp at hue 293.01, violet icon;e11d48→ likewise./icon,/apple-iconand/api/icon?size=192all return200 image/png; the generated badgematches the
icon1.pngit replaces.violet— same hue, same lightness at600.