I need to create a unique header design which includes a gradient and a triangle for decoration. While I have no trouble implementing the gradient and positioning the triangle using ::after
, I am facing an issue with matching the color of the triangle to the changing background gradient. The challenge arises because the gradient is not consistent across all devices, resulting in varying shades. As a result, I am unsure how to dynamically adjust the triangle color to match the gradient. Any assistance or suggestions on how to achieve this would be greatly appreciated. Thank you.