opacity: 0.85,
},
},
- // Focused class in instance view
+ // Focused class in instance view: darken the class colour for
+ // emphasis. Restricted to class nodes so we don't clobber the
+ // family node's amber background (which has dark text — repainting
+ // it dark blue makes the label illegible).
{
- selector: 'node[?focused]',
+ selector: 'node[kind = "class"][?focused]',
style: {
'background-color': '#1e3a8a',
'border-color': '#1e3a8a',
'font-size': 14,
},
},
+ // Focused family in family view: keep the family's own amber
+ // colours; emphasise via a thicker brown border + larger text.
+ {
+ selector: 'node[kind = "family"][?focused]',
+ style: {
+ 'border-color': '#92400e',
+ 'border-width': 3,
+ 'font-size': 14,
+ },
+ },
// Instance node
{
selector: 'node[kind = "instance"]',