Brand colours and logos for integrations and DNS providers

Kind tags (Integrations, Servers, DNS) are in the brand's colour with its logo
(Simple Icons, CC0), kept readable on both themes; the dashboard cards, the
kind picker and the menu show the logos too, with a per-browser switch for the
menu icons. Settings -> Display -> Badge colours shows the brand defaults and
Use the brand's goes back to them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-10 20:14:20 +01:00
1 parent 9937ab2202
commit d69962528e
18 files changed
+546 -49

No files matched your search

+7 -1
View File
@@ -29,6 +29,8 @@ import { ErrorNotice } from "../components/Notice";
import { WidgetSkeleton } from "../components/Skeleton";
import { TYPE_GROUPS, TYPE_LABELS, TYPE_PAGES } from "../utils/integrationTypes";
import type { Agenda, Heartbeat } from "../api/client";
import BrandIcon from "../components/BrandIcon";
import { kindOfLabel } from "../utils/brands";
const DNS_TYPE_COLORS: Record<string, string> = {
A: "#60a5fa",
@@ -211,6 +213,7 @@ function WidgetCard({ label, badge, hide, children }: { label: string; badge?: R
// rest follow the order they chose — a card nobody has placed goes last, in the order it was drawn.
const hidden = layout.hidden.includes(label);
const problem = problemOf(badge);
const kind = kindOfLabel(label);
if (hidden && !editing) return null;
return (
<div className="col-md-6" data-card={label} style={{ order: (layout.order[label] ?? UNPLACED) - (problemsFirst && !editing ? (problem === "bad" ? 2_000_000 : problem === "warn" ? 1_000_000 : 0) : 0) }}>
@@ -232,7 +235,10 @@ function WidgetCard({ label, badge, hide, children }: { label: string; badge?: R
)}
<div className="card-body">
<div className="d-flex align-items-center mb-2">
<div className="subheader">{label}</div>
<div className="subheader d-flex align-items-center gap-1">
{kind && <BrandIcon kind={kind} size={14} />}
{label}
</div>
{badge && <div className="ms-auto">{badge}</div>}
</div>
{children}