Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
d1d4036
Add display axis (tech+emitter) and setup board
DutchDiederik Jul 28, 2026
1726ec1
Show emission 'peak' in display readout
DutchDiederik Jul 28, 2026
df5a21a
Add computed plasma gas palettes and pipeline
DutchDiederik Jul 28, 2026
cda13ec
Update visual test baseline images
DutchDiederik Jul 28, 2026
d9688e6
Add per-gas Rayleigh scatter tokens
DutchDiederik Jul 28, 2026
823051a
Make PLASMA/CRT exclusive; style restore guarded
DutchDiederik Jul 28, 2026
c2c2a5e
Apply inherited halo and enforce pairing check
DutchDiederik Jul 28, 2026
aa0ed86
Fixed persisting phosphors on CRT simulations
DutchDiederik Jul 28, 2026
4105625
Updated the phosphor effects, added radar demo
DutchDiederik Jul 29, 2026
acfca99
Bugfixes
DutchDiederik Jul 29, 2026
9b7f79c
Add classic corner style and extruded key edge
DutchDiederik Jul 29, 2026
6ad9eb0
UK English - US English
DutchDiederik Jul 30, 2026
21a3a46
Radar demo update
DutchDiederik Jul 30, 2026
7fe7e31
Guide screen update
DutchDiederik Jul 30, 2026
a2e8334
Code quality updates
DutchDiederik Jul 30, 2026
ec88fcb
Code improvements
DutchDiederik Jul 30, 2026
4b64158
--gas-* names a gas, and 7 of the 11 palettes are phosphors.
DutchDiederik Jul 31, 2026
3271b3d
Split effects.css into token, sim and base files
DutchDiederik Jul 31, 2026
4fda416
Code quality update.
DutchDiederik Jul 31, 2026
7d9fa26
Clarify simulation ordering comments
DutchDiederik Jul 31, 2026
1be8d2e
Make classic corner the CSS default (2px)
DutchDiederik Aug 4, 2026
5e95d26
2.0 RC
DutchDiederik Aug 4, 2026
1d3d19e
Refactor docs CSS and ignore new baselines
DutchDiederik Aug 4, 2026
4a61a2c
Raise engine persistence floor to 80ms
DutchDiederik Aug 4, 2026
cdb450d
Show engine notes and sync sim switches
DutchDiederik Aug 4, 2026
f2e30dc
Use BSD-3-Clause, enforce 80ms persist floor
DutchDiederik Aug 4, 2026
cecef93
Stamp docs REV and update baselines
DutchDiederik Aug 4, 2026
5195dd2
Pre-launch audit: license, docs accuracy and demo accessibility
DutchDiederik Aug 9, 2026
93a3450
Fix print palette losing a specificity tie, and gate it
DutchDiederik Aug 9, 2026
1646300
Bugfixes and final checks
DutchDiederik Aug 9, 2026
4b325bb
Post-2.0 audit: fixes, docs, and test updates
DutchDiederik Aug 9, 2026
2d7e4df
Prevent leftover scratch file and browser leak
DutchDiederik Aug 9, 2026
228a2e6
Add meter computed tests; update docs & changelog
DutchDiederik Aug 9, 2026
61acef0
Fix radar T4 acquisition promotion bug
DutchDiederik Aug 9, 2026
379b672
Resolve forced-colors to system color names
DutchDiederik Aug 9, 2026
ec0b526
Release version 2.0.0
DutchDiederik Aug 9, 2026
eb33c25
Merge remote-tracking branch 'origin/main' into Feature-updates-for-2.0
DutchDiederik Aug 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: ["https://buymeacoffee.com/dutchdiederik"]
77 changes: 77 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Bug report
description: Something renders or behaves differently than the guide says it should.
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Before filing: this framework is deliberately opinionated, and several
things that look like bugs are documented decisions. The
[six laws](https://github.com/DutchDiederik/AmberConsole#the-six-laws) and
[RATIONALE.md](https://github.com/DutchDiederik/AmberConsole/blob/main/RATIONALE.md)
cover most of them — the 18px type floor, the absence of a second hue, the
2px stroke, the stepped meter fill.

- type: textarea
id: what
attributes:
label: What happens, and what you expected instead
validations:
required: true

- type: input
id: repro
attributes:
label: Smallest page that reproduces it
description: A CodePen, a gist, or markup pasted below. Start from `starter.html` if that is easiest.
validations:
required: true

- type: input
id: browser
attributes:
label: Browser and version
placeholder: Firefox 142 on Windows 11
validations:
required: true

- type: dropdown
id: build
attributes:
label: Which build are you loading?
options:
- dist/amber-console.css
- dist/amber-console.min.css
- dist/amber-console.layer.css
- dist/amber-console.layer.min.css
- src/ directly, via my own bundler
validations:
required: true

- type: input
id: palette
attributes:
label: Palette
description: The two root attributes, or "default" if you set neither.
placeholder: data-ac-tech="crt" data-ac-emitter="p7"
validations:
required: true

- type: checkboxes
id: js
attributes:
label: Optional JavaScript loaded
description: Both are optional and independently loadable. Leave both unchecked for CSS only.
options:
- label: amber-console.js (behavior — tabs, dialogs, toggles, presets)
- label: amber-console.effects.js (persistence — ghosting, smear, decay)

- type: checkboxes
id: env
attributes:
label: Does it also happen under any of these?
options:
- label: prefers-reduced-motion
- label: forced-colors / high contrast
- label: print preview
- label: a viewport under 480px
51 changes: 51 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Component or feature request
description: Propose something the framework does not have yet.
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: |
**This is a genre framework, and the answer to most requests is no.** That
is not hostility — it is the thing that makes the system coherent. A
proposal is judged on whether it follows from the constraints of an amber
plasma panel, not on whether it would be useful in general.

Read [the six laws](https://github.com/DutchDiederik/AmberConsole#the-six-laws)
first. Requests that need a second hue, an icon set, SVG, a light mode,
type below 18px, or a transition on a component are already answered
there, and `npm run check` fails the build on most of them.

- type: textarea
id: what
attributes:
label: What you want, and what you are building that needs it
validations:
required: true

- type: textarea
id: laws
attributes:
label: Which law justifies it?
description: >
Name the one it follows from and say how. "It would be handy" is not an
argument here; "the panel had a physical key for this and nothing in the
vocabulary draws one" is.
validations:
required: true

- type: textarea
id: existing
attributes:
label: Why the existing vocabulary cannot express it
description: >
Check the [reference index](https://dutchdiederik.github.io/AmberConsole/docs/guide-reference.html)
first — it lists every class, attribute and token. Most requests turn out
to be a composition of two things that already exist.
validations:
required: true

- type: textarea
id: markup
attributes:
label: Minimum markup you imagine writing
render: html
43 changes: 43 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Security Policy

## Supported versions

| Version | Supported |
| --- | --- |
| 2.x | Yes |
| 1.x | No — upgrade path is in [DEPRECATIONS.md](../DEPRECATIONS.md) |

## What the attack surface actually is

Worth stating plainly, because it is small and it shapes what is worth reporting.

Amber Console is a stylesheet plus two **optional**, independently loadable client-side JavaScript
modules. It has no server component, no build-time plugin, and no runtime dependencies — nothing is
installed alongside it. Neither JS module makes a network request, and neither writes HTML: the DOM
work is `createElement`, `setAttribute` and `classList`, with no `innerHTML`, `eval` or
`new Function` anywhere in `src/`.

The only state it persists is a handful of display and simulation preferences under the `ac.sim.*`
prefix in `localStorage`, and every read is validated against a fixed set of known values before it
reaches a selector or an attribute. All access is wrapped in `try`/`catch`, because `localStorage`
throws in private mode and in sandboxed `file://` frames.

Realistic report classes, then:

- A stored preference that reaches the DOM without being validated first.
- A CSS value that can escape its custom property and alter a rule it should not.
- A `@font-face` or asset reference that resolves somewhere unintended.
- Anything in `scripts/` that reads or writes outside the repository.

Not in scope: the demo pages in `docs/` invent all their data — no fixture there represents a real
system, account or credential.

## Reporting

Report privately through
[GitHub Security Advisories](https://github.com/DutchDiederik/AmberConsole/security/advisories/new).
Please do not open a public issue for a vulnerability first.

Include the version, the browser, and the smallest page that reproduces it. You will get an
acknowledgement within a week. If the report is confirmed, the fix ships in the next release and the
advisory credits you unless you would rather it did not.
37 changes: 37 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## What this changes, and why

<!-- If it changes a value in src/tokens/, say what makes it a bug rather than a
preference — see CONTRIBUTING.md § Changing a value. Accessibility criteria
are a valid reason; taste is not. -->

## Gates

```bash
npm test # lint + check + gas + contrast + build (needs npm i)
npm run test:computed # computed styles: blink, persistence, corners
npm run test:visual # screenshots (run locally — CI cannot, font rasterisation)
```

- [ ] `npm test` passes
- [ ] `npm run test:computed` passes
- [ ] `npm run test:visual` passes, and any moved baseline was reviewed by eye and committed
- [ ] **`dist/` is rebuilt and committed** — CI fails the run if `git diff -- dist/` is dirty

## If this adds or changes a component

- [ ] Its own file in `src/components/`, added to the `@import` list in `src/amber-console.css`
- [ ] Header comment: what it is, the minimum markup, and **when not to use it**
- [ ] A live specimen in `docs/guide-controls.html` or `docs/guide-display.html`, with a copyable class string
- [ ] A row in the README class reference **and** in `docs/guide-reference.html`
- [ ] Correct under `prefers-reduced-motion`, `forced-colors: active` and `@media print`
- [ ] 44×44 minimum hit area if interactive, and a `:focus-visible` ring that reads on both `--ac-screen` and inverse video

## If this removes or renames anything public

- [ ] Listed in `DEPRECATIONS.md` with the release that removes it
- [ ] Nothing is removed outside a major version

## Notes

<!-- Screenshots help for anything visual. Both palettes if the change touches
color: a plasma gas and a CRT phosphor behave differently. -->
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,31 @@ jobs:
- name: Check prohibitions
run: npm run check

# The palettes are generated; this fails if colors.css has drifted from
# what scripts/derive-gas.mjs produces. It was in `npm test` but not here,
# so a hand-edited palette could reach main. The two gate sets now match:
# lint, check, gas, contrast, build — which is exactly what `npm test` runs.
- name: Check palette derivations
run: npm run gas -- --check

- name: Check contrast ratios
run: npm run contrast

- name: Build
run: npm run build

# Computed-style regression. This one DOES run here, unlike the visual
# suite: nothing it measures depends on font rasterisation, so it gives the
# same answer on a Linux runner as on the machine the baselines came from.
# It is also the only gate that can see the class of bug where a rule stops
# applying without becoming invalid — lint and the prohibition checker both
# pass straight through that.
- name: Install Chromium for the computed suite
run: npx playwright install --with-deps chromium

- name: Computed-style regression
run: npm run test:computed

# dist/ is committed so the framework works from a raw GitHub URL and from
# the Pages demo without a build step. This fails the run if someone edits
# src/ and forgets to rebuild.
Expand Down
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ node_modules/
.env
.env.*

# Visual-regression run output. Only baselines/ is committed.
# Visual-regression run output — written only for a capture that FAILED, so it
# can be eyeballed against its baseline. Throwaway; the next run rewrites it.
test/visual/*.actual.png

# scripts/make-assets.mjs unlinks this; it only survives a crashed run.
Expand All @@ -28,3 +29,13 @@ Thumbs.db
*.swp
.idea/
.vscode/

# NOTHING HERE IGNORES test/visual/baselines/, AND THAT IS DELIBERATE.
#
# A baseline IS the test. Ignoring one does not spare the repository the bytes,
# it only spares them review — and it costs the suite the thing it exists for,
# a fresh clone that can say whether the pages still render the way they did.
# An ignored file is not reported as missing, so the gap is silent.
#
# The full set is committed as of 2.0. Adding a page means committing its
# baselines with it.
Loading
Loading