Instead of hard coded values, use Kirigami.Theme.frameContrast for the outline/border contrast values.
Kirigami.Theme.frameContrast