~/components/boot-screen
Boot Screen
A tuigreet-style login screen that types itself out, rains a little matrix and gets out of the way.
guest@mpkcn.dev:~$ session started
guest@mpkcn.dev:~$
"use client";
import { useEffect, useRef, useState } from "react";
import { isLowPower, startMatrixRain } from "./lib/matrix-rain";
export type BootScreenHint = {
/** Text inside the key badge, e.g. "ESC". */
key: string;
/** What the key does, shown next to the badge. */
label: string;
};
export type BootScreenProps = {
/** Username typed into the login box. @default "guest" */
user?: string;
/** Host shown in the box title, which reads "Log in to {host}". @default "mpkcn.dev" */
host?: string;
/** Key-hint badges docked to the bottom. @default ESC Reset · ENTER Start session · ANY KEY Skip */
hints?: BootScreenHint[];
/** Play a short matrix rain after login (skipped on low-power devices). @default true */
matrix?: boolean;
/** Play only once per browser session (sessionStorage key "mpkcn-booted"). @default true */
oncePerSession?: boolean;
/** Fixed overlay over the whole page. Set to false to fill the nearest positioned parent instead (for previews). @default true */
fullscreen?: boolean;
/** Play even when the user prefers reduced motion (e.g. behind an explicit "play" button). Use sparingly. @default false */
ignoreReducedMotion?: boolean;
/** Called once when the screen finishes, is skipped, or is not shown at all. */
onDone?: () => void;
/** Extra classes for the root element. */
className?: string;
};
const DEFAULT_HINTS: BootScreenHint[] = [
{ key: "ESC", label: "Reset" },
{ key: "ENTER", label: "Start session" },
{ key: "ANY KEY", label: "Skip" },
];
const STORAGE_KEY = "mpkcn-booted";
const PASSWORD_LEN = 8;
const TYPE_MS = 40;
const MATRIX_MS = 900;
const FADE_MS = 500;
type Phase = "login" | "matrix" | "done";
function formatClock(d: Date): string {
const date = d
.toLocaleDateString("en-GB", { weekday: "short", day: "2-digit", month: "short" })
.replace(/\./g, "");
const time = d.toLocaleTimeString("en-GB", { hour: "2-digit", minute: "2-digit", hour12: false });
return `${date} — ${time}`;
}
function cx(...parts: (string | false | undefined)[]): string {
return parts.filter(Boolean).join(" ");
}
/**
* A tuigreet-style login screen: clock on top, a box with the title set in its
* border, the username typed in, password dots, "authenticating…", key hints at
* the bottom, then optional matrix rain, then a fade out.
* Any key or click skips it. Under prefers-reduced-motion it is skipped entirely.
* Change its `key` to replay it.
*/
export function BootScreen({
user = "guest",
host = "mpkcn.dev",
hints = DEFAULT_HINTS,
matrix = true,
oncePerSession = true,
fullscreen = true,
ignoreReducedMotion = false,
onDone,
className,
}: BootScreenProps) {
const [phase, setPhase] = useState<Phase>("login");
const [instant, setInstant] = useState(false);
const [typed, setTyped] = useState("");
const [pwLen, setPwLen] = useState(0);
const [authenticating, setAuthenticating] = useState(false);
const [clock, setClock] = useState("");
const [gone, setGone] = useState(false);
const rootRef = useRef<HTMLDivElement>(null);
const rainRef = useRef<HTMLCanvasElement>(null);
const onDoneRef = useRef(onDone);
useEffect(() => {
onDoneRef.current = onDone;
}, [onDone]);
const done = phase === "done";
// Decide whether to play at all, then run the typing sequence.
useEffect(() => {
const reduced = !ignoreReducedMotion && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
let seen = false;
if (oncePerSession) {
try {
seen = sessionStorage.getItem(STORAGE_KEY) === "1";
} catch {
// storage blocked: just play
}
}
const timeouts: number[] = [];
const after = (fn: () => void, ms: number) => {
timeouts.push(window.setTimeout(fn, ms));
};
const clear = () => timeouts.forEach((t) => window.clearTimeout(t));
if (reduced || seen) {
after(() => {
setInstant(true);
setPhase("done");
}, 0);
return clear;
}
after(() => setClock(formatClock(new Date())), 0);
let i = 0;
const typeUser = () => {
if (i <= user.length) {
setTyped(user.slice(0, i));
i++;
after(typeUser, TYPE_MS);
} else {
after(typePassword, 200);
}
};
let p = 0;
const typePassword = () => {
if (p <= PASSWORD_LEN) {
setPwLen(p);
p++;
after(typePassword, TYPE_MS);
} else {
setAuthenticating(true);
after(() => setPhase(matrix && !isLowPower() ? "matrix" : "done"), 350);
}
};
after(typeUser, 250);
return clear;
// Runs once per mount; remount (change `key`) to replay.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
// Matrix rain stage.
useEffect(() => {
if (phase !== "matrix" || !rainRef.current) return;
const stop = startMatrixRain(rainRef.current);
const t = window.setTimeout(() => setPhase("done"), MATRIX_MS);
return () => {
stop();
window.clearTimeout(t);
};
}, [phase]);
// Any key or click skips. Fullscreen listens on the window; a preview only on itself.
useEffect(() => {
if (done) return;
const skip = () => setPhase("done");
const target: Window | HTMLDivElement | null = fullscreen ? window : rootRef.current;
if (!target) return;
target.addEventListener("pointerdown", skip);
target.addEventListener("keydown", skip);
return () => {
target.removeEventListener("pointerdown", skip);
target.removeEventListener("keydown", skip);
};
}, [done, fullscreen]);
// Finish: notify, then unmount the overlay after the fade.
useEffect(() => {
if (!done) return;
// Mark as seen only once finished, so React StrictMode's double mount still plays it.
if (oncePerSession) {
try {
sessionStorage.setItem(STORAGE_KEY, "1");
} catch {
// storage blocked: nothing to remember
}
}
onDoneRef.current?.();
const t = window.setTimeout(() => setGone(true), instant ? 0 : FADE_MS);
return () => window.clearTimeout(t);
}, [done, instant, oncePerSession]);
if (gone) return null;
return (
<div
ref={rootRef}
aria-hidden={done || undefined}
aria-label={done ? undefined : "Boot screen. Press any key or click to skip."}
role={fullscreen ? undefined : "button"}
tabIndex={fullscreen || done ? undefined : 0}
className={cx(
"inset-0 flex items-center justify-center overflow-hidden bg-mpk-bg font-mpk-mono text-mpk-ink",
"transition-[opacity,visibility] duration-500 ease-out motion-reduce:transition-none",
"focus-visible:outline focus-visible:outline-1 focus-visible:-outline-offset-2 focus-visible:outline-mpk-amber",
fullscreen ? "fixed z-[100]" : "absolute z-10",
done && "pointer-events-none invisible opacity-0",
instant && "transition-none",
className,
)}
>
{phase === "matrix" ? (
<canvas ref={rainRef} aria-hidden="true" className="absolute inset-0 h-full w-full" />
) : (
<>
<div className="absolute inset-x-0 top-[26px] text-center text-[13px] tracking-[0.05em] text-mpk-ink">
{clock}
</div>
<div className="relative min-w-[min(340px,calc(100%-2rem))] border border-mpk-ink bg-mpk-bg px-[30px] pt-[30px] pb-[22px]">
<span aria-hidden="true" className="pointer-events-none absolute -top-[9px] -left-[6px] text-base leading-none text-mpk-ink">┌</span>
<span aria-hidden="true" className="pointer-events-none absolute -top-[9px] -right-[6px] text-base leading-none text-mpk-ink">┐</span>
<span aria-hidden="true" className="pointer-events-none absolute -bottom-[9px] -left-[6px] text-base leading-none text-mpk-ink">└</span>
<span aria-hidden="true" className="pointer-events-none absolute -right-[6px] -bottom-[9px] text-base leading-none text-mpk-ink">┘</span>
<span className="absolute -top-[10px] left-5 bg-mpk-bg px-2 text-xs text-mpk-blue">
Log in to {host}
</span>
<div className="mt-4 flex items-center gap-1.5 text-[13px]">
<span>Username:</span>
<span className="tracking-[0.08em]">{typed}</span>
{typed.length < user.length && (
<span aria-hidden="true" className="inline-block h-3.5 w-[7px] animate-mpk-blink bg-mpk-blue" />
)}
</div>
<div className="mt-4 flex items-center gap-1.5 text-[13px]">
<span>Password:</span>
<span className="tracking-[0.08em]">{"•".repeat(pwLen)}</span>
{typed.length >= user.length && pwLen < PASSWORD_LEN && (
<span aria-hidden="true" className="inline-block h-3.5 w-[7px] animate-mpk-blink bg-mpk-blue" />
)}
</div>
{authenticating && (
<div className="mt-4 text-xs tracking-[0.04em] text-mpk-blue">authenticating…</div>
)}
</div>
{hints.length > 0 && (
<div className="absolute inset-x-0 bottom-[22px] flex flex-wrap justify-center gap-x-5 gap-y-2 px-5 text-xs text-mpk-dim">
{hints.map((h) => (
<span key={`${h.key}-${h.label}`} className="inline-flex items-center gap-1.5">
<span className="border border-mpk-ink px-1.5 py-px text-mpk-ink">{h.key}</span>
{h.label}
</span>
))}
</div>
)}
</>
)}
</div>
);
}Installation
npx mpkcn add boot-screen01Add mpkcn-theme.css if you haven't yet (see Installation)
02Copy the source into your components folder
"use client";
import { useEffect, useRef, useState } from "react";
import { isLowPower, startMatrixRain } from "./lib/matrix-rain";
export type BootScreenHint = {
/** Text inside the key badge, e.g. "ESC". */
key: string;
/** What the key does, shown next to the badge. */
label: string;
};
export type BootScreenProps = {
/** Username typed into the login box. @default "guest" */
user?: string;
/** Host shown in the box title, which reads "Log in to {host}". @default "mpkcn.dev" */
host?: string;
/** Key-hint badges docked to the bottom. @default ESC Reset · ENTER Start session · ANY KEY Skip */
hints?: BootScreenHint[];
/** Play a short matrix rain after login (skipped on low-power devices). @default true */
matrix?: boolean;
/** Play only once per browser session (sessionStorage key "mpkcn-booted"). @default true */
oncePerSession?: boolean;
/** Fixed overlay over the whole page. Set to false to fill the nearest positioned parent instead (for previews). @default true */
fullscreen?: boolean;
/** Play even when the user prefers reduced motion (e.g. behind an explicit "play" button). Use sparingly. @default false */
ignoreReducedMotion?: boolean;
/** Called once when the screen finishes, is skipped, or is not shown at all. */
onDone?: () => void;
/** Extra classes for the root element. */
className?: string;
};
const DEFAULT_HINTS: BootScreenHint[] = [
{ key: "ESC", label: "Reset" },
{ key: "ENTER", label: "Start session" },
{ key: "ANY KEY", label: "Skip" },
];
const STORAGE_KEY = "mpkcn-booted";
const PASSWORD_LEN = 8;
const TYPE_MS = 40;
const MATRIX_MS = 900;
const FADE_MS = 500;
type Phase = "login" | "matrix" | "done";
function formatClock(d: Date): string {
const date = d
.toLocaleDateString("en-GB", { weekday: "short", day: "2-digit", month: "short" })
.replace(/\./g, "");
const time = d.toLocaleTimeString("en-GB", { hour: "2-digit", minute: "2-digit", hour12: false });
return `${date} — ${time}`;
}
function cx(...parts: (string | false | undefined)[]): string {
return parts.filter(Boolean).join(" ");
}
/**
* A tuigreet-style login screen: clock on top, a box with the title set in its
* border, the username typed in, password dots, "authenticating…", key hints at
* the bottom, then optional matrix rain, then a fade out.
* Any key or click skips it. Under prefers-reduced-motion it is skipped entirely.
* Change its `key` to replay it.
*/
export function BootScreen({
user = "guest",
host = "mpkcn.dev",
hints = DEFAULT_HINTS,
matrix = true,
oncePerSession = true,
fullscreen = true,
ignoreReducedMotion = false,
onDone,
className,
}: BootScreenProps) {
const [phase, setPhase] = useState<Phase>("login");
const [instant, setInstant] = useState(false);
const [typed, setTyped] = useState("");
const [pwLen, setPwLen] = useState(0);
const [authenticating, setAuthenticating] = useState(false);
const [clock, setClock] = useState("");
const [gone, setGone] = useState(false);
const rootRef = useRef<HTMLDivElement>(null);
const rainRef = useRef<HTMLCanvasElement>(null);
const onDoneRef = useRef(onDone);
useEffect(() => {
onDoneRef.current = onDone;
}, [onDone]);
const done = phase === "done";
// Decide whether to play at all, then run the typing sequence.
useEffect(() => {
const reduced = !ignoreReducedMotion && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
let seen = false;
if (oncePerSession) {
try {
seen = sessionStorage.getItem(STORAGE_KEY) === "1";
} catch {
// storage blocked: just play
}
}
const timeouts: number[] = [];
const after = (fn: () => void, ms: number) => {
timeouts.push(window.setTimeout(fn, ms));
};
const clear = () => timeouts.forEach((t) => window.clearTimeout(t));
if (reduced || seen) {
after(() => {
setInstant(true);
setPhase("done");
}, 0);
return clear;
}
after(() => setClock(formatClock(new Date())), 0);
let i = 0;
const typeUser = () => {
if (i <= user.length) {
setTyped(user.slice(0, i));
i++;
after(typeUser, TYPE_MS);
} else {
after(typePassword, 200);
}
};
let p = 0;
const typePassword = () => {
if (p <= PASSWORD_LEN) {
setPwLen(p);
p++;
after(typePassword, TYPE_MS);
} else {
setAuthenticating(true);
after(() => setPhase(matrix && !isLowPower() ? "matrix" : "done"), 350);
}
};
after(typeUser, 250);
return clear;
// Runs once per mount; remount (change `key`) to replay.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
// Matrix rain stage.
useEffect(() => {
if (phase !== "matrix" || !rainRef.current) return;
const stop = startMatrixRain(rainRef.current);
const t = window.setTimeout(() => setPhase("done"), MATRIX_MS);
return () => {
stop();
window.clearTimeout(t);
};
}, [phase]);
// Any key or click skips. Fullscreen listens on the window; a preview only on itself.
useEffect(() => {
if (done) return;
const skip = () => setPhase("done");
const target: Window | HTMLDivElement | null = fullscreen ? window : rootRef.current;
if (!target) return;
target.addEventListener("pointerdown", skip);
target.addEventListener("keydown", skip);
return () => {
target.removeEventListener("pointerdown", skip);
target.removeEventListener("keydown", skip);
};
}, [done, fullscreen]);
// Finish: notify, then unmount the overlay after the fade.
useEffect(() => {
if (!done) return;
// Mark as seen only once finished, so React StrictMode's double mount still plays it.
if (oncePerSession) {
try {
sessionStorage.setItem(STORAGE_KEY, "1");
} catch {
// storage blocked: nothing to remember
}
}
onDoneRef.current?.();
const t = window.setTimeout(() => setGone(true), instant ? 0 : FADE_MS);
return () => window.clearTimeout(t);
}, [done, instant, oncePerSession]);
if (gone) return null;
return (
<div
ref={rootRef}
aria-hidden={done || undefined}
aria-label={done ? undefined : "Boot screen. Press any key or click to skip."}
role={fullscreen ? undefined : "button"}
tabIndex={fullscreen || done ? undefined : 0}
className={cx(
"inset-0 flex items-center justify-center overflow-hidden bg-mpk-bg font-mpk-mono text-mpk-ink",
"transition-[opacity,visibility] duration-500 ease-out motion-reduce:transition-none",
"focus-visible:outline focus-visible:outline-1 focus-visible:-outline-offset-2 focus-visible:outline-mpk-amber",
fullscreen ? "fixed z-[100]" : "absolute z-10",
done && "pointer-events-none invisible opacity-0",
instant && "transition-none",
className,
)}
>
{phase === "matrix" ? (
<canvas ref={rainRef} aria-hidden="true" className="absolute inset-0 h-full w-full" />
) : (
<>
<div className="absolute inset-x-0 top-[26px] text-center text-[13px] tracking-[0.05em] text-mpk-ink">
{clock}
</div>
<div className="relative min-w-[min(340px,calc(100%-2rem))] border border-mpk-ink bg-mpk-bg px-[30px] pt-[30px] pb-[22px]">
<span aria-hidden="true" className="pointer-events-none absolute -top-[9px] -left-[6px] text-base leading-none text-mpk-ink">┌</span>
<span aria-hidden="true" className="pointer-events-none absolute -top-[9px] -right-[6px] text-base leading-none text-mpk-ink">┐</span>
<span aria-hidden="true" className="pointer-events-none absolute -bottom-[9px] -left-[6px] text-base leading-none text-mpk-ink">└</span>
<span aria-hidden="true" className="pointer-events-none absolute -right-[6px] -bottom-[9px] text-base leading-none text-mpk-ink">┘</span>
<span className="absolute -top-[10px] left-5 bg-mpk-bg px-2 text-xs text-mpk-blue">
Log in to {host}
</span>
<div className="mt-4 flex items-center gap-1.5 text-[13px]">
<span>Username:</span>
<span className="tracking-[0.08em]">{typed}</span>
{typed.length < user.length && (
<span aria-hidden="true" className="inline-block h-3.5 w-[7px] animate-mpk-blink bg-mpk-blue" />
)}
</div>
<div className="mt-4 flex items-center gap-1.5 text-[13px]">
<span>Password:</span>
<span className="tracking-[0.08em]">{"•".repeat(pwLen)}</span>
{typed.length >= user.length && pwLen < PASSWORD_LEN && (
<span aria-hidden="true" className="inline-block h-3.5 w-[7px] animate-mpk-blink bg-mpk-blue" />
)}
</div>
{authenticating && (
<div className="mt-4 text-xs tracking-[0.04em] text-mpk-blue">authenticating…</div>
)}
</div>
{hints.length > 0 && (
<div className="absolute inset-x-0 bottom-[22px] flex flex-wrap justify-center gap-x-5 gap-y-2 px-5 text-xs text-mpk-dim">
{hints.map((h) => (
<span key={`${h.key}-${h.label}`} className="inline-flex items-center gap-1.5">
<span className="border border-mpk-ink px-1.5 py-px text-mpk-ink">{h.key}</span>
{h.label}
</span>
))}
</div>
)}
</>
)}
</div>
);
}const CHARS = "01アイウエオカキクケコ<>/{}$#";
const SIZE = 16;
const TICK_MS = 45;
type NavigatorWithHints = Navigator & {
deviceMemory?: number;
connection?: { saveData?: boolean };
};
/**
* Rough check for weak devices: few CPU cores, little memory, or data saver on.
* Also honours `<html data-perf="low">` if the app sets it.
*/
export function isLowPower(): boolean {
if (typeof window === "undefined") return false;
try {
if (document.documentElement.dataset.perf === "low") return true;
const n = navigator as NavigatorWithHints;
return Boolean(
(n.hardwareConcurrency && n.hardwareConcurrency <= 4) ||
(n.deviceMemory && n.deviceMemory <= 4) ||
n.connection?.saveData,
);
} catch {
return false;
}
}
function cssVar(el: Element, name: string, fallback: string): string {
return getComputedStyle(el).getPropertyValue(name).trim() || fallback;
}
/**
* Draws matrix rain on the canvas until the returned stop function is called.
* The canvas is sized to its parent element (and follows it on resize);
* glyphs use `--mpk-blue`, the trail fades into `--mpk-bg`.
*/
export function startMatrixRain(canvas: HTMLCanvasElement): () => void {
const ctx = canvas.getContext("2d");
if (!ctx) return () => {};
const host = canvas.parentElement ?? canvas;
const ink = cssVar(canvas, "--mpk-blue", "#6fb2ff");
const bg = cssVar(canvas, "--mpk-bg", "#0a0d10");
let drops: number[] = [];
const resize = () => {
const w = Math.max(1, Math.round(host.clientWidth || window.innerWidth));
const h = Math.max(1, Math.round(host.clientHeight || window.innerHeight));
canvas.width = w;
canvas.height = h;
const cols = Math.ceil(w / SIZE);
drops = Array.from({ length: cols }, (_, i) => drops[i] ?? Math.random() * -50);
};
resize();
const observer = typeof ResizeObserver !== "undefined" ? new ResizeObserver(resize) : null;
observer?.observe(host);
const timer = window.setInterval(() => {
ctx.globalAlpha = 0.08;
ctx.fillStyle = bg;
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.globalAlpha = 1;
ctx.fillStyle = ink;
ctx.font = `${SIZE}px "JetBrains Mono", ui-monospace, monospace`;
drops.forEach((y, x) => {
ctx.fillText(CHARS[Math.floor(Math.random() * CHARS.length)], x * SIZE, y * SIZE);
drops[x] = y * SIZE > canvas.height && Math.random() > 0.975 ? 0 : y + 1;
});
}, TICK_MS);
return () => {
window.clearInterval(timer);
observer?.disconnect();
};
}03Update the import paths to match your project
Usage
Render it once, at the top of your root layout. By default it covers the whole page as a fixed overlay, plays once per browser session, then removes itself.
import { BootScreen } from "@/components/mpkcn/boot-screen";
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en" suppressHydrationWarning>
<body>
<BootScreen user="mpk" host="mpk.dev" />
{children}
</body>
</html>
);
}The sequence: a clock at the top, a login box with the title set in its border, the username typed in, password dots, authenticating…, then an optional matrix rain and a fade out. Any key or click skips straight to the end.
Examples
Inside a box
Pass fullscreen={false} to fill the nearest positioned parent instead of the viewport. Give the parent position: relative and a height. Change key to replay it.
guest@mpkcn.dev:~$ session started
guest@mpkcn.dev:~$
import { useState } from "react";
import { BootScreen } from "@/components/mpkcn/boot-screen";
export function BootPreview() {
const [run, setRun] = useState(0);
return (
<div className="relative h-[420px] overflow-hidden border border-mpk-line">
<BootScreen key={run} fullscreen={false} oncePerSession={false} />
<button onClick={() => setRun((r) => r + 1)}>replay</button>
</div>
);
}Custom user, host and hints
root@prod-01:~$ session started
root@prod-01:~$
<BootScreen
user="root"
host="prod-01"
matrix={false}
hints={[
{ key: "F1", label: "Help" },
{ key: "ANY KEY", label: "Continue" },
]}
/>Run code when it ends
onDone fires once when the screen finishes, is skipped, or is not shown at all (already seen this session, or reduced motion). Use it to start your own intro animations.
"use client";
import { useState } from "react";
import { BootScreen } from "@/components/mpkcn/boot-screen";
export function Intro({ children }: { children: React.ReactNode }) {
const [ready, setReady] = useState(false);
return (
<>
<BootScreen onDone={() => setReady(true)} />
<div data-ready={ready}>{children}</div>
</>
);
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
| user | string | "guest" | Username typed into the login box. |
| host | string | "mpkcn.dev" | Host shown in the box title, which reads "Log in to {host}". |
| hints | { key: string; label: string }[] | ESC · ENTER · ANY KEY | Key-hint badges docked to the bottom. Defaults: ESC Reset, ENTER Start session, ANY KEY Skip. |
| matrix | boolean | true | Play a short matrix rain after login. Skipped on low-power devices (4 cores or fewer, 4 GB memory or less, or Save-Data on). |
| oncePerSession | boolean | true | Play only once per browser session, using the sessionStorage key "mpkcn-booted". |
| fullscreen | boolean | true | Fixed overlay over the whole page. false fills the nearest positioned parent (for previews). |
| ignoreReducedMotion | boolean | false | Play even when the user prefers reduced motion. Only use it behind an explicit action, like a "play anyway" button. |
| onDone | () => void | — | Called once when the screen finishes, is skipped, or is not shown at all. |
| className | string | — | Extra classes for the root element. |
Accessibility
- Under
prefers-reduced-motion: reducethe screen is skipped entirely andonDonefires right away, unlessignoreReducedMotionis set (the previews on this site only set it after you click "play anyway"). - Any key or pointer press skips it. In fullscreen mode it listens on the window; inside a box, only on itself.
- Inside a box it is a focusable
buttonlabelled "Boot screen. Press any key or click to skip.", with a visible focus ring. - Once finished it is
aria-hidden, fades out and unmounts, so it never traps focus or hides content from screen readers. - The box-drawing corners and the matrix canvas are decorative and hidden from assistive technology.