feat(ui): add flat surfaces and compact profile/site controls

This commit is contained in:
DCCONSTRUCTIONS
2026-11-05 12:33:25 +03:00
parent 4904fbe1f7
commit 8addef187b
12 changed files with 98 additions and 10 deletions
+4 -1
View File
@@ -17,6 +17,8 @@ export interface ApplyThemeOptions {
theme?: NodedcTheme;
/** Operator UI qualified against Mission Core; opt-in across portals. */
appearance?: "default" | "mission";
/** Flat surfaces remove decorative edges; keyboard focus uses a contrasting fill. */
edges?: "default" | "flat";
accent?: RgbTuple;
material?: NodedcMaterial;
}
@@ -31,10 +33,11 @@ function clampOpacity(value: number): number {
export function applyNodedcTheme(
target: HTMLElement,
{ theme = "dark", accent, material, appearance = "default" }: ApplyThemeOptions = {},
{ theme = "dark", accent, material, appearance = "default", edges = "default" }: ApplyThemeOptions = {},
): void {
target.dataset.nodedcTheme = theme;
target.dataset.nodedcAppearance = appearance;
target.dataset.nodedcEdges = edges;
target.dataset.nodedcUi = "true";
if (accent) {