Sign up and get 15% off the four courses and Lifetime.
Gradient button
A button with a thin gradient edge and layered washes of one colour, so it reads as soft glass rather than a flat fill. For a quiet call to action such as Book a call.
Members·React and Tailwind
Try it
How to use this
- 01
Make a file called soft-gradient-button.tsx in your project's components folder.
- 02
It needs nothing beyond React and Tailwind.
- 03
Paste the code in, keeping the licence note at the top.
- 04
Import it where you want it and change the words, colours and sizes to yours.
The code
"use client";
import type { ComponentProps, ReactNode } from "react";
const cn = (...c: (string | false | null | undefined)[]) => c.filter(Boolean).join(" ");
export type SoftGradientButtonVariant = "blue" | "lime" | "ink";
export interface SoftGradientButtonProps extends Omit<ComponentProps<"button">, "children"> {
/** Button content. Takes precedence over `label`. */
children?: ReactNode;
/** Fallback text when no `children` are passed. */This one comes with the course.
This component comes with the course, or with a membership.
One membership covers all four courses and Brands.
- All lessons in the four Learn courses
- All brand breakdowns in the Brands section
- All quizzes, flashcards and crosswords
- An AI teacher on every lesson, for up to 60 questions a day
- A scored final project and a portfolio card in every course
- A portfolio page for the work you pass
- All course material published during the membership
Price
One course is $29, paid once.One course is ₹1,499 + GST, paid once. Membership is charged at $20 each month until it is cancelled. Lifetime access is $60, paid once.Membership is charged at ₹699 + GST each month until it is cancelled. Lifetime access is ₹4,999 + GST, paid once.