skip to Main Content

Very new to web technologies and just trying to complete a design with full page gradient. Color values are rgba(8,32,62,50%) and rgba(85,124,147,50%) I am just unable to identify the angle from figma design. Here is the actual implementation of this color combination in the page. Sharing a screenshot below.enter image description here

Here is what I have been doing.

body {
  background: linear-gradient(rgba(8, 32, 62), rgba(85, 124, 147, 50%));
}
<body></body>

2

Answers


  1. I hope it will help you.

    To create a gradient in CSS with the colors rgba(8,32,62,50%) and rgba(85,124,147,50%), you can use the following CSS code:

    body {
      background: linear-gradient(to right bottom, rgba(8, 32, 62, 50%), rgba(85, 124, 147, 50%));
      margin: 0;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;  /* Set text color to white or any readable color */
    }
    <body></body>

    In this code, linear-gradient is used to create a gradient background. The to right bottom specifies the direction of the gradient. You can adjust the direction based on your Figma design.

    If the gradient doesn’t look quite right, you may need to experiment with different angles or directions. In Figma, you can usually find the gradient angle in the gradient settings. Look for an angle indicator or input field where you can set the angle for the gradient. Adjust this until it matches your Figma design.

    If you can provide more details about how the gradient is applied in Figma or a description of the design, I might be able to offer more specific guidance.

    Login or Signup to reply.
  2. Kindly adjust the gradient value accordingly:

    body {
      background: linear-gradient(to right bottom, rgb(20, 32, 47), rgb(85, 124, 147));
      margin: 0;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff; /* Set text color to white or any readable color */
    }
    <body></body>
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search