#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
import type { IconBadgeAccent } from "@editor/ui/IconBadge";
/** Per-category icon accent — neutral (no tint background) across all categories. */
export const ROW_ACCENT: Record<string, IconBadgeAccent> = {
ingestion: "neutral",
security: "neutral",
compliance: "neutral",
routing: "neutral",
retention: "neutral",
};
/** Per-category colour for the file badges + enforcement overlay. Separate from
* ROW_ACCENT: the sidebar rows render neutral by design, but the badges keep
* their identity colours so files remain distinguishable at a glance. */
const BADGE_ACCENT: Record<string, string> = {
ingestion: "blue",
classification: "orange",
security: "purple",
compliance: "green",
routing: "amber",
retention: "red",
};
/**
* CSS colour var for a policy category's badge accent (blue for unknown
* categories) — the tint used by the file badges and the enforcement overlay.
*/
export function policyAccentVar(policyKey: string): string {
return `var(--color-${BADGE_ACCENT[policyKey] ?? "blue"})`;
}