Do not hardcode outline color for dashed borders. The value of the element's color property (foreground color) is used by default, which should work on all backgrounds.