25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
/**
* Inline style exposing a table group's hue to CSS.
*
* A group stores ONE number. Lightness and chroma are fixed per theme in the
* stylesheet — `--group-c: oklch(0.55 0.15 var(--h))` in light,
* `oklch(0.76 0.13 var(--h))` in dark — so every hue is legible on both
* grounds by construction. Computing a colour here would throw that away.
*/
export function groupStyle(hue: number | null): Record<string, string> {
if (hue === null) {
return {};
}
const wrapped = ((Math.trunc(hue) % 360) + 360) % 360;
return { "--h": String(wrapped) };
}