Repository navigation
feat(tokens): make danger red instead of hot pink - #5
Merged
Merged
Conversation
Danger (destructive actions, errors, failures) was the brand's hot pink, so a danger zone looked like any other accent. It is now red: #ff4d4d on dark and #cc1f1f, the same hue, on light, with soft fills of #ff4d4d. Red is not a brand color and is only for danger; palette.red has it as a value, and pink keeps activity and attention. Co-Authored-By: Claude Opus 5.5 <[email protected]>
kalaspuff
deleted the
fctl/27-let-s-make-the-dangerzone-red-instead-of
branch
October 18, 2026 12:06
fctl-sh Bot
added a commit
to hyperstructure/fctl
that referenced
this pull request
Oct 18, 2026
v0.3.0 is hyperstructure/design#5, the commit this branch pinned before it was released; src/ and assets/ are the same, so nothing looks different. Co-Authored-By: Claude Opus 5.5 <[email protected]>
kalaspuff
pushed a commit
to hyperstructure/fctl
that referenced
this pull request
Oct 18, 2026
Danger zones looked purple. "Danger zone" and "Delete account…" in Settings, like every other use of the `danger` token, were the brand's hot pink (`#ff00d8`, `#c800aa` on light), the color fctl also uses for activity and attention. hyperstructure/design#5 makes `danger` red, and the web app now uses it. `@hyperstructure/design` moves from v0.2.0 to [v0.3.0](https://github.com/hyperstructure/design/releases/tag/v0.3.0). Its release notes: > **Features** > - **tokens:** Make danger red instead of hot pink (hyperstructure/design#5) ## What turns red Everything that uses `danger`, and nothing else: - the danger zones in Settings and in a project's settings, and the delete buttons in their dialogs; - destructive menu items, and remove, delete and interrupt buttons on hover; - error banners, form errors, invalid fields and error toasts; - failed sessions (status, dot and orb), failed tool calls, error lines in transcripts and failed attachments; - deleted files, removed lines and deletion counts (`−4`) in diffs. Pink stays for activity and attention: the working, waiting and paused orbs, paused sessions and a reached plan limit. The red is `#ff4d4d` on dark and `#cc1f1f` on light, and the text is about as legible as it was in pink. hyperstructure/design#5 has the contrast figures. AGENTS.md and docs/development.md now say that red is only for danger. ## Screenshots With `cargo xtask dev`, main's web app on :5176 and this branch's on :5173, both against the same control plane and data, at 6108309 (pinned to the design commit before its release). Taken again at 2c30a7a (v0.3.0), they come out the same apart from antialiasing in a few pixels: - **Settings → Danger zone** (dark, light, 1440 px and 390 px): the heading, the border, the divider and "Delete account…" go from hot pink to red. The rest of the page doesn't change. - **A project's danger zone and its delete dialog** (the slug typed in, not submitted), dark and light: "Delete project…" and the dialog's "Delete project" button are red. - **Sign-in with a wrong password**, dark and light: the error banner's icon, border and fill are red. The text stays ink. This session can't attach them: GitHub accepts uploads only with a person's token (#40). ## Verification - `cargo xtask check` passes, at 6108309 and at 2c30a7a. - `npm ci` installs v0.3.0 (`a9b4964`) from the lockfile, and the lockfile entry has the same shape as main's. v0.3.0's `src/` and `assets/` are the same as the commit pinned before the release. - The screenshots above, compared side by side. Made in fctl session https://app.fctl.sh/s/ses_01M57CWW9M53BKG69NM03RP1EF --------- Co-authored-by: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <[email protected]>
kalaspuff
pushed a commit
that referenced
this pull request
Oct 18, 2026
The Release workflow now also runs after every merge to `main`, and releases when the commits since the last tag include a `feat`, `fix`, `perf`, `revert` or breaking change. Other changes (`docs`, `refactor`, `test`, `build`, `ci`, `chore`) wait for the next release. Running it by hand works as before: it releases whatever is new, with any bump, or does a dry run. This automates what has been done by hand so far: each feature was released by hand within minutes of merging (#4 → v0.2.0, #5 → v0.3.0, #6 and #8 → v0.4.0), while #1–#3 (`ci`, `ci`, `docs`) waited and went out with v0.2.0. It is also semantic-release's default rule. Consumers pin exact tags, so a release changes nothing for fctl or fctl.sh until they move their pin. ## How - **`scripts/release.mjs --if-due`**: releases only when `releaseDue()` says the changes call for it. Otherwise it prints `No release: no feat, fix, perf, revert or breaking change since vX.Y.Z.`, adds that to the job summary, and exits 0. The workflow passes it for merges (`push` to `main`), not for runs by hand. - **The workflow** checks out `main` as it is when the run starts, not the commit that started it, so a run that waited behind another one sees that one's release and finds nothing to do. Runs are already queued one at a time (`concurrency: release`). If a merge lands while a run is releasing, the atomic push of the commit and tag is rejected. A run after a merge then leaves the release to the newer merge's run (a notice, exit 0) instead of failing. Any other rejected push still fails. - **`releaseOptions()` moves from `scripts/commits.mjs` to `scripts/release.mjs`**, which exports it with `releaseDue()` and releases only when run as a script, as `icons.mjs` does. hyperstructure/fctl-site copies `commits.mjs` and its test and is told to keep them in step. #8 added a function there that only this script uses, so the copies had drifted. Both files are now the same as fctl-site's again, and the tests are in `scripts/release.test.mjs`. The check for being run as a script compares real paths, because through a symlink `argv[1]` and `import.meta.url` differ and a release script must not silently do nothing. - **Docs**: README.md's release section said to bump the version and push a tag by hand, which the workflow has done since #1. It, AGENTS.md and the `release`, `commit` and `pull-requests` skills now say which merges release, how to release the rest by hand, and how to find the release a merge made (`gh run list --workflow release.yml --commit MERGE_SHA`, then `git tag --contains`). The commit skill's type table says when each type is released. Merging this releases nothing: since v0.4.0 there are only this pull request's `refactor`, `ci` and `docs` commits. fctl's and fctl-site's AGENTS.md say to change design, "tag a release", then bump the tag. That stays true: a merge now makes the tag. ## Verification - `npm run check`, `npm test` (8 tests: "release options", and "a merge releases features, fixes, reverts and breaking changes") and `npm run build`. - `node scripts/release.mjs` still runs by relative path, absolute path and through a symlinked directory, and importing it in the tests releases nothing. - The release step's shell, extracted from the workflow, run against a local bare repository standing in for GitHub, with a stub `gh` that records its arguments: | Case | Result | |---|---| | This pull request merges | No release, exit 0 | | A `feat` merges | v0.5.0: commit and tag pushed, `gh release create v0.5.0 … --notes-file …` | | A run that waited behind that release | No release, exit 0 | | A `docs` merge | No release, exit 0 | | A `fix` merges, and a `feat` lands during its run | The push is rejected; notice, exit 0, nothing pushed | | The newer merge's run | v0.6.0 with the `docs`, `fix` and `feat` together | | By hand, nothing new | `nothing to release since v0.6.0`, exit 1 (as before) | | By hand, only `docs` | v0.6.1 | | A merge whose push is rejected by the server | exit 1 | - The workflow file parses, and the step's script passes `bash -n`. - Not run on GitHub: this session can't start workflows (HTTP 403, no Actions write access). A dry run on this branch checks the run-by-hand path there: `gh workflow run release.yml --repo hyperstructure/design --ref fctl/36-look-into-https-github-com-hyperstructur -f dry_run=true`. The merge path first runs when this merges, and should end with "No release". Session: https://app.fctl.sh/s/ses_01M57KT5CM8S7DMP21YJMN6JCK --------- Co-authored-by: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.com>
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.
danger(destructive actions, errors, failures) was the brand's hot pink#ff00d8, the same color aspinkandviolet, so a danger zone looked like any other accent: in fctl's Settings, "Danger zone" and "Delete account…" read as purple. It is now red.--c-danger#ff00d8→#ff4d4d#c800aa→#cc1f1f--c-danger-softrgb(255 0 216 / 0.12)→rgb(255 77 77 / 0.12)rgb(255 0 216 / 0.07)→rgb(255 77 77 / 0.07)Both reds have the same hue. The light one is the red's text-safe shade, as
#0070e0and#c800aaare for blue and pink, and the soft fills keep their opacities.Why these reds
They are about as legible as the pink they replace (WCAG contrast of the text):
#171717#1c1c1c#fafafa#ffffffI compared
#ff3b30,#ff453a,#ff4d4dand#ff5045in fctl's danger zone. All read as red, but#ff3b30drops to 4.51 on the soft fill (4.35 under fctl's 15% hover fill, where#ff4d4dhas 4.60), and#ff5045looks coral.Also
palette.redinsrc/brand.tshas the red as a value for code that can't read the tokens, andpink's comment no longer mentions errors.--c-dangerstays a#rrggbbhex, becausecssColor()only reads that format, and the orb's failed state uses it.dangermeans what it did, and only its color changes.Verification
npm run check,npm test(6 tests) andnpm run build.red, the tokens showdangeras#ff4d4don dark and#cc1f1fon light, and the Failed orb is dithered in red.cargo xtask dev, before and after: the account and project danger zones, the delete dialog and a sign-in error, in both themes and at 390 px.This session can't attach screenshots: GitHub accepts uploads only with a person's token (hyperstructure/fctl#40).
Releasing
After this merges, release it (
gh workflow run release.yml --repo hyperstructure/design --ref main -f bump=auto), which makes it v0.3.0, then move hyperstructure/fctl#60 from this branch's commit to the tag. fctl.sh doesn't usedanger, so it can stay on v0.2.0 until it needs something newer.Made in fctl session https://app.fctl.sh/s/ses_01M57CWW9M53BKG69NM03RP1EF