Check out example codes for "diagonal linear gradient". It will help you in understanding the concepts better.

Code Example 1

body {
  background-image: linear-gradient(to bottom right, red, yellow);
}

Learn ReactJs, React Native from akashmittal.com