Skip to content

Commit 38868f8

Browse files
ryan-williamsclaude
andcommitted
Warm hues for transition metals (contrast with blue iso)
The default iso-surface shading is blue; CPK/Jmol's standard colors for 4d/5d transition metals (Rh `#0a7d8c`, Pd `#006985`, Mo `#54b5b5`, Ti `#bfc2c7`, Hf `#4dc2ff`, Ta `#4da6ff`, W `#2194d6`, Re `#267dab`, Os `#266696`, Ir `#175487`, etc.) are blue/teal/gray and visually merge with the iso. Repalette these to warm hues (red/orange/yellow/pink) that contrast with both the iso *and* each other. Diverges from CPK convention but ELvis isn't a chemistry-publication viewer — legibility against the surface beats Jmol-fidelity. Bi (purple), Fe (orange), Co (pink), N (blue), O (red), S (yellow), Cl (green) keep their canonical colors since those don't conflict. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 08ce711 commit 38868f8

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

pkgs/core/src/utils/elements.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ export const ELEMENTS: Record<string, ElementData> = {
2828
Ar: { color: 0x80d1e3, radius: 1.06 },
2929
K: { color: 0x8f40d4, radius: 2.03 },
3030
Ca: { color: 0x3dff00, radius: 1.76 },
31-
Sc: { color: 0xe6e6e6, radius: 1.70 },
32-
Ti: { color: 0xbfc2c7, radius: 1.60 },
33-
V: { color: 0xa6a6ab, radius: 1.53 },
34-
Cr: { color: 0x8a99c7, radius: 1.39 },
31+
Sc: { color: 0xff9466, radius: 1.70 },
32+
Ti: { color: 0xffb5e8, radius: 1.60 },
33+
V: { color: 0xff6b6b, radius: 1.53 },
34+
Cr: { color: 0xff5e3a, radius: 1.39 },
3535
Mn: { color: 0x9c7ac7, radius: 1.39 },
3636
Fe: { color: 0xe06633, radius: 1.32 },
3737
Co: { color: 0xf090a0, radius: 1.26 },
@@ -46,14 +46,14 @@ export const ELEMENTS: Record<string, ElementData> = {
4646
Kr: { color: 0x5cb8d1, radius: 1.16 },
4747
Rb: { color: 0x702eb0, radius: 2.20 },
4848
Sr: { color: 0x00ff00, radius: 1.95 },
49-
Y: { color: 0x94ffff, radius: 1.90 },
50-
Zr: { color: 0x94e0e0, radius: 1.75 },
51-
Nb: { color: 0x73c2c9, radius: 1.64 },
52-
Mo: { color: 0x54b5b5, radius: 1.54 },
53-
Tc: { color: 0x3b9e9e, radius: 1.47 },
54-
Ru: { color: 0x248f8f, radius: 1.46 },
55-
Rh: { color: 0x0a7d8c, radius: 1.42 },
56-
Pd: { color: 0x006985, radius: 1.39 },
49+
Y: { color: 0xffe066, radius: 1.90 },
50+
Zr: { color: 0xffaa3a, radius: 1.75 },
51+
Nb: { color: 0xff7a3a, radius: 1.64 },
52+
Mo: { color: 0xff8c00, radius: 1.54 },
53+
Tc: { color: 0xff5252, radius: 1.47 },
54+
Ru: { color: 0xffb000, radius: 1.46 },
55+
Rh: { color: 0xff1493, radius: 1.42 },
56+
Pd: { color: 0xff69b4, radius: 1.39 },
5757
Ag: { color: 0xc0c0c0, radius: 1.45 },
5858
Cd: { color: 0xffd98f, radius: 1.44 },
5959
In: { color: 0xa67573, radius: 1.42 },
@@ -78,12 +78,12 @@ export const ELEMENTS: Record<string, ElementData> = {
7878
Tm: { color: 0x00d452, radius: 1.90 },
7979
Yb: { color: 0x00bf38, radius: 1.87 },
8080
Lu: { color: 0x00ab24, radius: 1.87 },
81-
Hf: { color: 0x4dc2ff, radius: 1.75 },
82-
Ta: { color: 0x4da6ff, radius: 1.70 },
83-
W: { color: 0x2194d6, radius: 1.62 },
84-
Re: { color: 0x267dab, radius: 1.51 },
85-
Os: { color: 0x266696, radius: 1.44 },
86-
Ir: { color: 0x175487, radius: 1.41 },
81+
Hf: { color: 0xffc56a, radius: 1.75 },
82+
Ta: { color: 0xff9a3a, radius: 1.70 },
83+
W: { color: 0xffd700, radius: 1.62 },
84+
Re: { color: 0xff4040, radius: 1.51 },
85+
Os: { color: 0xff7f00, radius: 1.44 },
86+
Ir: { color: 0xff6699, radius: 1.41 },
8787
Pt: { color: 0xd0d0e0, radius: 1.36 },
8888
Au: { color: 0xffd123, radius: 1.36 },
8989
Hg: { color: 0xb8b8d0, radius: 1.32 },

0 commit comments

Comments
 (0)