You can define highly customized materials by initializing NSMaterialView.Effect. This allows you to control the appearance for different states (like active) using MaterialStyle, as well as defining rim colors and widths for borders.
let customEffect = NSMaterialView.Effect(
active: .MaterialStyle(
backgroundColor: NSColor(white: 0.15, alpha: 0.5),
tintColor: NSColor(white: 0.1, alpha: 0.3),
tintFilter: kCAFilterLightenBlendMode,
saturationFactor: 1.8,
brightnessFactor: 0.02,
blurRadius: 30
),
rimColor: (inner: .white.withAlphaComponent(0.15), outer: .clear),
rimWidth: (inner: 1, outer: 0)
)