Are flexbox and bootstrap same or different?
For linear gradient you need to define atleast two colors.
background-image: linear-gradient( direction , color-1 , color-2, … );
For eg: background: linear-gradient(to right, red , green);
You can add more colors as per your requirement. Also can change the direction or angle along the gradient effect.