feat(theme): implement accessible Technical-Light 1.0 contracts

This commit is contained in:
Joseph Doherty
2026-11-13 15:49:08 -05:00
parent 8969bee6a9
commit f8469aa837
63 changed files with 3695 additions and 120 deletions
@@ -0,0 +1,50 @@
# Real CentralUI component canary
This fixture is a disposable local **component canary**, not the complete ScadaBridge application, a new production UI, or a deployment. Source is retained under `scadabridge/`. It references actual CentralUI source from the authorized sister checkout, whose observed commit is `f8c2851d25090474c687cca76ee4fc005fcd521c` on `codex/scada-ui-consistency`; the sister source/pins remained unchanged.
## Boundaries and prerequisites
- Existing local Docker rigs already occupy 9000/9001/9002 and 9100/9101/9102, with shared SQL/LDAP and their own data. They were inspected read-only and were not restarted, rebuilt, seeded or used for this canary.
- This host binds **127.0.0.1:5199** only. It starts no Docker containers. No SQL, Akka, LDAP, management client, fleet data service or mutating application endpoint is registered.
- The real CentralUI MainLayout includes NavMenu, DarkModeToggle, SessionExpiry and DialogHost. The fixture supplies an anonymous AuthenticationStateProvider and the actual local DialogService. The anonymous state keeps real policy-gated administrative/pending-update services out of the render path.
- The root page composes the real MainLayout with real DateTimeRangeFilter and LoadingSpinner plus synthetic local content. `/login` renders the real CentralUI Login component. No real username/password is used. Login/logout POST return 405; session ping/activity endpoints are local no-op responses. Native dialog Confirm/Cancel only resolves a local Task; it cannot perform a fleet command.
- Antiforgery uses ephemeral DataProtection, with no fixture key persistence. The host serves Bootstrap/icons from the actual Host/wwwroot and actual RCL Theme/CentralUI static assets. Local DarkModeToggle writes only this localhost origin's storage.
- .NET SDK 10.0.403 and Python Playwright's installed Chromium were available. The existing documented Playwright Docker server was not running; this pass launched its own independent local Chromium and did not use the parent's shared MCP browser tab.
## Exact baseline run
Cwd: `/Users/dohertj2/.codex/worktrees/scada-ui-consistency/scadaproj`.
```sh
dotnet run --project components/ui-theme/validation/theme-1.0.0/canary/scadabridge/ScadaBridgeUiCanary.csproj --artifacts-path /tmp/scadabridge-ui-canary-artifacts --no-launch-profile --urls http://127.0.0.1:5199
```
The current baseline is default `CanaryThemeVersion=0.5.3`, matching CentralUI's current pin. Launch output is `/tmp/scadabridge-ui-canary-before.log`; execution tool session 75357 owns the running dotnet process. Use `lsof -nP -iTCP:5199 -sTCP:LISTEN` to identify only this fixture listener, then send TERM to that exact process to stop it; do not stop existing ScadaBridge containers. Remove the task-local artifacts directory after the comparison is complete. The parent may retain/relaunch the fixture while completing the authorized before/after comparison.
`GET /canary-provenance` responds with Theme assembly **0.5.3.0**, CentralUI assembly **1.0.0.0**, and the local-only service boundary. `/tmp/scadabridge-ui-canary-artifacts/obj/ScadaBridgeUiCanary/project.assets.json` resolves `ZB.MOM.WW.Theme/0.5.3`.
## Observed baseline
See `scadabridge-before.json`, `scadabridge-login-before.png` and `scadabridge-components-before.png`. Chromium desktop viewport 1440×1000, `prefers-reduced-motion:reduce` set before navigation; measurements taken immediately after DOMContentLoaded, then keyboard traversal after 600ms.
- Actual Login `.login-wrap.rise` still reports animation `rise`, duration `0.4s`, opacity approximately `0.0105` at about 8ms; the component sample's `.rise` panel reports opacity `0` at time 0. Reduced-motion preference was true. The screenshot was captured after the entrance settled, so the JSON, not the screenshot, is the immediate-motion evidence.
- Keyboard Tab reaches the actual login username and DateTimeRangeFilter From input. Both match `:focus-visible`, have no outline (`0px`/none), but have Bootstrap's visible 4px blue box-shadow and changed border. This is a shared focus-style consistency baseline, **not proof of invisible focus**.
- No document horizontal overflow in these two desktop samples, Theme stylesheet HTTP 200, and no page JavaScript errors. No mobile, dark-mode, screen-reader, complete application route or authenticated fleet acceptance is claimed.
## Candidate handoff
Wait for the parent's reviewed immutable Theme package before changing this host's resolution. The fixture's own direct package reference supports `-p:CanaryThemeVersion=1.0.0` plus the approved task-local package source; this is a fixture-only override and does not edit sister source/pins. Stop this baseline process before rebuilding/relaunching against the candidate, or use another verified free loopback port.
Do not assume the root override alone proves the static asset version: inspect the candidate host's restored graph/runtime assembly, static asset manifest and served CSS hashes. Run the same real component/motion/focus observations against the candidate, compare both supported light/dark local overrides, and report actual integration limitations. These after steps are pending the candidate package; this baseline does not close TH-06/07 or the complete TH-04 browser acceptance.
## Candidate-only fixture extension (prepared; not yet built or visually run)
After recording the 0.5.3 observations, the fixture source was extended with actual enhanced TechField (For/HintId/ErrorId, linked hint/error and input validation state), actual TechButton BusyText with 800ms synthetic local success/failure, caller-disabled action, and a caller-owned polite outcome region. These code paths have no data service and cannot write fleet state. The new parameter usage requires the reviewed 1.0.0 candidate; the still-running baseline process uses its already-built 0.5.3 binaries and is unchanged. For a clean re-run of the original baseline, first restore `Components/Pages/Canary.before.razor.txt` to `Canary.razor` and `Components/App.before.razor.txt` to `App.razor` in a disposable fixture copy, not in production source.
The new `wwwroot/canary-adoption.css` is a **fixture-only proposal** for later ScadaBridge adoption, namespaced to `html[data-canary=scadabridge]`. It supplies the full dark accent family, semantic status text inks and readable `--on-accent:#111827`. It also lightens the existing blue accent to #7aa0ef because static pair calculation shows current #4d7fe8 link text is 3.88:1 on current dark card and 4.43:1 on paper; #7aa0ef is 5.71:1 on card, and #111827 on it is 6.84:1. This calculation guides the candidate; it is not a computed-browser contrast acceptance claim. No production ScadaBridge stylesheet or pin was modified. The candidate and dark aliases must be tested with actual served CSS after the parent hands over the reviewed package.
### Four-family candidate route
Candidate-only `/accent?family=default|historian|btdb|overview` composes actual ThemeShell, NavRailItem, TechButton primary/ghost/caller-disabled, a link and semantic Info StatusPill. A closed mapping converts the query choice to the exact approved release-decision values; arbitrary query input is never inserted into CSS. Default blue, Historian green, BTDB teal **#1b7f8e**, and Overview purple use the exact documented deep/focus/tint/border families. This route supplies light-scheme accent state cases. The root actual MainLayout component fixture supplies the separately labelled proposed ScadaBridge dark adoption case. No full sister-app or family-wide dark-theme conformance is implied.
Prepared fixture source is now frozen for parent source review/commit/package provenance. Candidate-only additions have not been built, launched or visually exercised before receiving the reviewed package. The running process continues to serve the original baseline assembly.
@@ -0,0 +1,48 @@
"""Disposable Chromium fixture with real browser zoom, never a user profile.
chrome.tabs.setZoom changes layout zoom (innerWidth halves at 200%, DPR doubles).
CSS zoom and CDP page-scale emulation do not establish this acceptance criterion.
Use only with explicit loopback canary origins and clean up the context afterward.
"""
from contextlib import contextmanager
import json
from pathlib import Path
import tempfile
from urllib.parse import urlsplit
@contextmanager
def zoom_browser(playwright, width=1440, height=900):
with tempfile.TemporaryDirectory(prefix="technical-light-zoom-") as temporary:
root = Path(temporary)
extension = root / "extension"
extension.mkdir()
(extension / "manifest.json").write_text(json.dumps({
"manifest_version": 3, "name": "Local canary browser zoom", "version": "1.0",
"permissions": ["tabs"], "background": {"service_worker": "worker.js"},
}))
(extension / "worker.js").write_text("chrome.runtime.onInstalled.addListener(() => {});")
context = playwright.chromium.launch_persistent_context(
str(root / "profile"), channel="chromium", headless=True,
args=[f"--disable-extensions-except={extension}", f"--load-extension={extension}"],
viewport={"width": width, "height": height})
try:
worker = context.service_workers[0] if context.service_workers else context.wait_for_event("serviceworker")
yield context, worker
finally:
context.close()
def set_browser_zoom(worker, page, factor):
parsed = urlsplit(page.url)
if parsed.hostname not in {"127.0.0.1", "localhost", "::1"}:
raise ValueError("Browser zoom fixture only permits explicit loopback hosts")
if factor not in {1, 2}:
raise ValueError("Only 100% and 200% acceptance zoom are supported")
return worker.evaluate("""async ({url, factor}) => {
const tabs = await chrome.tabs.query({});
const target = tabs.find(tab => tab.url === url);
if (!target) throw new Error('Canary tab not found');
await chrome.tabs.setZoom(target.id, factor);
return await chrome.tabs.getZoom(target.id);
}""", {"url": page.url, "factor": factor})
@@ -0,0 +1,73 @@
{
"browser": "Chromium",
"origin": "http://127.0.0.1:5199",
"host": "Actual CentralUI component canary, not full application",
"provenance": {
"purpose": "Disposable local component canary; not the complete ScadaBridge application",
"themeAssembly": "0.5.3.0",
"centralUiAssembly": "1.0.0.0",
"data": "Synthetic local only; no SQL, Akka, LDAP or fleet services registered",
"source": "Authorized ScadaBridge checkout via project reference"
},
"observations": [
{
"selector": ".login-wrap.rise",
"animationName": "rise",
"animationDuration": "0.4s",
"opacity": "0.0104866",
"transform": "matrix(1, 0, 0, 1, 0, 5.93708)",
"matchReduced": true,
"animations": [
{
"currentTime": 8.333000022731726,
"playState": "running"
}
],
"url": "http://127.0.0.1:5199/login",
"status": 200,
"keyboardFocusReached": true,
"focusedControl": {
"tag": "INPUT",
"id": "username",
"focusVisible": true,
"outlineStyle": "none",
"outlineWidth": "0px",
"outlineColor": "rgb(27, 29, 33)",
"boxShadow": "rgba(13, 110, 253, 0.25) 0px 0px 0px 4px",
"borderColor": "rgb(134, 183, 254)"
},
"horizontalOverflow": false,
"themeStylesheetStatus": 200
},
{
"selector": "#canary-rise",
"animationName": "rise",
"animationDuration": "0.4s",
"opacity": "0",
"transform": "matrix(1, 0, 0, 1, 0, 6)",
"matchReduced": true,
"animations": [
{
"currentTime": 0,
"playState": "running"
}
],
"url": "http://127.0.0.1:5199/",
"status": 200,
"keyboardFocusReached": true,
"focusedControl": {
"tag": "INPUT",
"id": "canary-from",
"focusVisible": true,
"outlineStyle": "none",
"outlineWidth": "0px",
"outlineColor": "rgb(27, 29, 33)",
"boxShadow": "rgba(13, 110, 253, 0.25) 0px 0px 0px 4px",
"borderColor": "rgb(134, 183, 254)"
},
"horizontalOverflow": false,
"themeStylesheetStatus": 200
}
],
"pageErrors": []
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en" data-bs-theme="light">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<base href="/" />
<link href="/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="/lib/bootstrap-icons/bootstrap-icons.css" rel="stylesheet" />
<ThemeHead />
<link href="/ScadaBridgeUiCanary.styles.css" rel="stylesheet" />
<link href="/_content/ZB.MOM.WW.ScadaBridge.CentralUI/css/site.css" rel="stylesheet" />
<HeadOutlet @rendermode="InteractiveServer" />
</head>
<body>
<Routes @rendermode="InteractiveServer" />
<script src="/_framework/blazor.web.js"></script>
<script src="/_content/ZB.MOM.WW.ScadaBridge.CentralUI/js/theme.js"></script>
<script src="/_content/ZB.MOM.WW.ScadaBridge.CentralUI/js/dialog.js"></script>
<ThemeScripts />
</body>
</html>
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en" data-bs-theme="light" data-canary="scadabridge">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<base href="/" />
<link href="/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="/lib/bootstrap-icons/bootstrap-icons.css" rel="stylesheet" />
<ThemeHead />
<link href="/ScadaBridgeUiCanary.styles.css" rel="stylesheet" />
<link href="/_content/ZB.MOM.WW.ScadaBridge.CentralUI/css/site.css" rel="stylesheet" />
<link href="/canary-adoption.css" rel="stylesheet" />
<HeadOutlet @rendermode="InteractiveServer" />
</head>
<body>
<Routes @rendermode="InteractiveServer" />
<script src="/_framework/blazor.web.js"></script>
<script src="/_content/ZB.MOM.WW.ScadaBridge.CentralUI/js/theme.js"></script>
<script src="/_content/ZB.MOM.WW.ScadaBridge.CentralUI/js/dialog.js"></script>
<ThemeScripts />
</body>
</html>
@@ -0,0 +1,41 @@
@page "/accent"
<PageTitle>Four-family accent component canary</PageTitle>
<h1>Four-family accent component canary</h1>
<p>Fixture-only shared components under the actual CentralUI stylesheet. These four cases use the release-decision table and validate the shared light scheme, not a full sister application.</p>
<nav aria-label="Accent fixture cases">
<a href="/accent?family=default">Default blue</a> ·
<a href="/accent?family=historian">Historian green</a> ·
<a href="/accent?family=btdb">BTDB teal</a> ·
<a href="/accent?family=overview">Overview purple</a> ·
<a href="/">Actual CentralUI component fixture</a>
</nav>
<ThemeShell Product="@Selected.Label" Accent="@Selected.Accent" AccentDeep="@Selected.Deep"
AccentTint="@Selected.Tint" AccentBorder="@Selected.Border" AccentFocus="@Selected.Deep">
<Nav>
<NavRailItem Href="/accent" Text="Selected sample" Match="NavLinkMatch.All" />
</Nav>
<ChildContent>
<h2 id="accent-family-title">@Selected.Label</h2>
<p><a id="canary-family-link" href="#accent-family-title">An actual theme-styled link</a></p>
<div class="canary-action-row">
<TechButton id="canary-family-primary" @onclick="CountClick">Local primary action</TechButton>
<TechButton id="canary-family-ghost" Variant="ButtonVariant.Ghost" @onclick="CountClick">Local ghost action</TechButton>
<TechButton id="canary-family-disabled" disabled="true">Disabled primary action</TechButton>
</div>
<StatusPill State="StatusState.Info">Independent semantic information</StatusPill>
<p id="canary-family-outcome" role="status">Synthetic local clicks: @_clicks</p>
</ChildContent>
</ThemeShell>
@code {
[SupplyParameterFromQuery(Name = "family")] public string? Family { get; set; }
private int _clicks;
private void CountClick() => _clicks++;
private AccentCase Selected => Family?.ToLowerInvariant() switch
{
"historian" => new("Historian green", "#2f855a", "#1c6540", "#edf5f0", "#bddbc9"),
"btdb" => new("BTDB teal", "#1b7f8e", "#125764", "#eaf5f6", "#b7d9dd"),
"overview" => new("Overview purple", "#6d28d9", "#4c1d95", "#f2ecfc", "#d7c5f2"),
_ => new("Default blue", "#2f5fd0", "#1e3f99", "#eef2fc", "#cdd9f7")
};
private sealed record AccentCase(string Label, string Accent, string Deep, string Tint, string Border);
}
@@ -0,0 +1,20 @@
@page "/"
@layout ZB.MOM.WW.ScadaBridge.CentralUI.Components.Layout.MainLayout
@inject IDialogService Dialogs
<PageTitle>ScadaBridge local component canary</PageTitle>
<h1>ScadaBridge local component canary</h1>
<p>Actual CentralUI MainLayout, DateTimeRangeFilter, LoadingSpinner and DialogHost with synthetic local content. This is not the complete application.</p>
<p><a href="/login">Actual CentralUI login</a> · <a href="/canary-provenance">Fixture provenance</a></p>
<section class="panel rise" id="canary-rise">
<div class="panel-head">Synthetic local filter</div>
<div class="panel-body">
<DateTimeRangeFilter IdPrefix="canary" />
<LoadingSpinner IsLoading="true" Message="Synthetic pending state" />
<p>These controls have no fleet service behind them.</p>
<TechButton @onclick="ShowDialog">Open local confirmation</TechButton>
</div>
</section>
@code {
private async Task ShowDialog() => await Dialogs.ConfirmAsync(
"Local fixture confirmation", "Synthetic dialog. Confirm and Cancel only dismiss this local fixture.");
}
@@ -0,0 +1,54 @@
@page "/"
@layout ZB.MOM.WW.ScadaBridge.CentralUI.Components.Layout.MainLayout
@inject IDialogService Dialogs
<PageTitle>ScadaBridge local component canary</PageTitle>
<h1>ScadaBridge local component canary</h1>
<p>Actual CentralUI MainLayout, DateTimeRangeFilter, LoadingSpinner and DialogHost with synthetic local content. This is not the complete application.</p>
<p><a href="/login">Actual CentralUI login</a> · <a href="/canary-provenance">Fixture provenance</a></p>
<section class="panel rise" id="canary-rise">
<div class="panel-head">Synthetic local filter</div>
<div class="panel-body">
<DateTimeRangeFilter IdPrefix="canary" />
<LoadingSpinner IsLoading="true" Message="Synthetic pending state" />
<p>These controls have no fleet service behind them.</p>
<TechField Label="Synthetic label" For="canary-field" Hint="Local-only fixture value; no credential or backend."
HintId="canary-field-hint" Error="@_fieldError" ErrorId="canary-field-error">
<input id="canary-field" class="form-control" @bind="_sample" @bind:event="oninput" @bind:after="ValidateSample"
aria-describedby="@FieldDescription" aria-invalid="@(_fieldError is not null ? "true" : "false")" />
</TechField>
<div class="canary-action-row">
<TechButton id="canary-busy-success" Busy="@SuccessBusy" BusyText="Saving local sample…"
disabled="@IsWorking" @onclick="() => WorkAsync(false)">Save local sample</TechButton>
<TechButton id="canary-busy-failure" Variant="ButtonVariant.Secondary" Busy="@FailureBusy" BusyText="Trying local sample…"
disabled="@IsWorking" @onclick="() => WorkAsync(true)">Simulate local failure</TechButton>
<TechButton id="canary-caller-disabled" disabled="true">Caller-disabled local action</TechButton>
<TechButton @onclick="ShowDialog">Open local confirmation</TechButton>
</div>
<div id="canary-outcome" role="status" aria-live="polite">@_outcome</div>
<p>Dark-mode candidate tokens below are fixture-only proposed adoption aliases, not current ScadaBridge production styling.</p>
</div>
</section>
@code {
private string _sample = "";
private string? _fieldError = "Synthetic validation error. Enter a label to clear it.";
private string? _workingAction;
private string _outcome = "No local operation has run.";
private bool IsWorking => _workingAction is not null;
private bool SuccessBusy => _workingAction == "success";
private bool FailureBusy => _workingAction == "failure";
private string FieldDescription => _fieldError is null
? "canary-field-hint" : "canary-field-hint canary-field-error";
private void ValidateSample() => _fieldError = string.IsNullOrWhiteSpace(_sample)
? "Synthetic validation error. Enter a label to clear it." : null;
private async Task WorkAsync(bool failure)
{
if (IsWorking) return;
_workingAction = failure ? "failure" : "success";
_outcome = "Local sample pending.";
await Task.Delay(800);
_outcome = failure ? "Local sample failed. Try again." : "Local sample saved.";
_workingAction = null;
}
private async Task ShowDialog() => await Dialogs.ConfirmAsync(
"Local fixture confirmation", "Synthetic dialog. Confirm and Cancel only dismiss this local fixture.");
}
@@ -0,0 +1,3 @@
@page "/login"
<PageTitle>ScadaBridge actual login component canary</PageTitle>
<ZB.MOM.WW.ScadaBridge.CentralUI.Components.Pages.Login />
@@ -0,0 +1,4 @@
<Router AppAssembly="typeof(App).Assembly">
<Found Context="routeData"><RouteView RouteData="routeData" /></Found>
<NotFound><h1>Canary route not found</h1></NotFound>
</Router>
@@ -0,0 +1,6 @@
@using Microsoft.AspNetCore.Components
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using static Microsoft.AspNetCore.Components.Web.RenderMode
@using ZB.MOM.WW.Theme
@using ZB.MOM.WW.ScadaBridge.CentralUI.Components.Shared
@@ -0,0 +1,45 @@
using System.Security.Claims;
using Microsoft.AspNetCore.DataProtection;
using Microsoft.AspNetCore.Components.Authorization;
using Microsoft.Extensions.FileProviders;
using ScadaBridgeUiCanary.Components;
using ZB.MOM.WW.ScadaBridge.CentralUI.Components.Shared;
using ZB.MOM.WW.Theme;
var builder = WebApplication.CreateBuilder(args);
builder.WebHost.UseStaticWebAssets();
builder.Services.AddRazorComponents().AddInteractiveServerComponents();
builder.Services.AddDataProtection().UseEphemeralDataProtectionProvider();
builder.Services.AddAuthorizationCore();
builder.Services.AddCascadingAuthenticationState();
builder.Services.AddScoped<AuthenticationStateProvider, LocalAnonymousState>();
builder.Services.AddScoped<IDialogService, DialogService>();
var app = builder.Build();
app.UseStaticFiles(new StaticFileOptions
{
FileProvider = new PhysicalFileProvider(Path.Combine(
builder.Configuration["Canary:ScadaBridgeRoot"] ?? "/Users/dohertj2/Desktop/ScadaBridge",
"src/ZB.MOM.WW.ScadaBridge.Host/wwwroot"))
});
app.UseStaticFiles();
app.UseAntiforgery();
app.MapGet("/canary-provenance", () => new
{
purpose = "Disposable local component canary; not the complete ScadaBridge application",
themeAssembly = typeof(ThemeShell).Assembly.GetName().Version?.ToString(),
centralUiAssembly = typeof(DialogHost).Assembly.GetName().Version?.ToString(),
data = "Synthetic local only; no SQL, Akka, LDAP or fleet services registered",
source = "Authorized ScadaBridge checkout via project reference"
});
app.MapGet("/auth/ping", () => Results.Ok());
app.MapPost("/auth/activity", () => Results.NoContent());
app.MapPost("/auth/login", () => Results.StatusCode(405));
app.MapPost("/auth/logout", () => Results.StatusCode(405));
app.MapRazorComponents<App>().AddInteractiveServerRenderMode();
app.Run();
internal sealed class LocalAnonymousState : AuthenticationStateProvider
{
public override Task<AuthenticationState> GetAuthenticationStateAsync() =>
Task.FromResult(new AuthenticationState(new ClaimsPrincipal(new ClaimsIdentity())));
}
@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<ScadaBridgeRoot Condition="'$(ScadaBridgeRoot)' == ''">/Users/dohertj2/Desktop/ScadaBridge</ScadaBridgeRoot>
<CanaryThemeVersion Condition="'$(CanaryThemeVersion)' == ''">0.5.3</CanaryThemeVersion>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="$(ScadaBridgeRoot)/src/ZB.MOM.WW.ScadaBridge.CentralUI/ZB.MOM.WW.ScadaBridge.CentralUI.csproj" />
<PackageReference Include="ZB.MOM.WW.Theme" Version="$(CanaryThemeVersion)" />
</ItemGroup>
</Project>
@@ -0,0 +1,26 @@
/* Fixture-only proposed ScadaBridge dark adoption aliases. This stylesheet is never
copied into the production app. Load after the actual CentralUI stylesheet. */
html[data-canary="scadabridge"] .canary-action-row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: .75rem;
margin-block: 1rem;
}
html[data-canary="scadabridge"][data-bs-theme="dark"] {
/* Existing dark accent #4d7fe8 is only 3.88:1 as link text on --card.
The same blue hue is lightened here for body-sized links. */
--accent: #7aa0ef;
--accent-deep: #9dbaf6;
--accent-tint: #1e2640;
--accent-border: #566d9c;
--accent-focus: #a7c1ff;
--on-accent: #111827;
--ok-ink: #8ada96;
--warn-ink: #efbd63;
--warn-ink-deep: #efbd63;
--bad-ink: #ff9d9d;
--idle-ink: #c3cad5;
--info-ink: #b4c6ff;
--ink-faint: #a8b0bc;
}