DEV Community

Faisal Ahmed
Faisal Ahmed

Posted on

linear gradient for text color

for making gradient from figma

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        h2 {
            background: linear-gradient(90deg, #68AFFF -3.25%, #5D36FF 18.45%, #B02AAB 100%),
            linear-gradient(90deg, #06D9F1 -3.25%, #5D36FF 99.99%, #B02AAB 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent; 
        }
    </style>
</head>
<body>
    <h2>Service Info</h2>
</body>
</html>
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay