10 lines · 466 B · TypeScript
RawDownload
import type { AppearanceContrast } from "@t3tools/contracts/settings"; export function applyAppearanceContrast(root: HTMLElement, contrast: AppearanceContrast): void {  root.style.setProperty("--appearance-contrast-base", `${Math.min(contrast, 100)}%`);  root.style.setProperty("--appearance-contrast-boost", `${Math.max(contrast - 100, 0)}%`);  root.style.setProperty(    "--appearance-contrast-border-boost",    `${Math.max(contrast - 100, 0) / 4}%`,  );}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t