Skip to main content

Variable: CPK_COLORS

const CPK_COLORS: Readonly<Record<string, string>>

Defined in: src/mobjects/chemistry/cpkColors.ts:18

Element symbol to hex color (CPK / Jmol convention).

Carbon uses a visible mid-gray rather than pure black so it reads on a dark background; callers can override any element through MoleculeOptions.colors.