RevealTheme logo

مولد گرادیان CSS

گرادیان‌های خطی و شعاعی CSS بسازید. رنگ‌ها را به‌صورت بصری انتخاب کنید و CSS تولیدشده را کپی کنید.

background: linear-gradient(135deg, #535beb, #7c3aed);

نحوه استفاده از این ابزار

  1. 1

    Click the Color 1 swatch and choose your starting color from the native color picker.

  2. 2

    Click the Color 2 swatch and choose the color the gradient fades into.

  3. 3

    Drag the Angle slider from 0 to 360 degrees to set the gradient direction; the live preview updates instantly.

  4. 4

    Copy the generated background: linear-gradient(...) line from the code box into your stylesheet.

مولد گرادیان CSS چیست؟

گرادیان‌های CSS گذارهای رنگی بین دو یا چند رنگ هستند. گرادیان‌های خطی در یک جهت جریان می‌یابند؛ گرادیان‌های شعاعی از یک نقطه ساطع می‌شوند. این مولد موارد رایج را پوشش می‌دهد؛ برای گرادیان‌های پیچیده چندتوقفی با موقعیت‌های سفارشی، آن‌ها را به‌صورت دستی بسازید.

موارد استفاده رایج

  • Creating a hero section or landing page banner background that fades between two brand colors.

  • Generating button and card backgrounds with a subtle two-tone diagonal fade.

  • Producing a gradient overlay placed above a photo to improve text contrast.

  • Prototyping color direction quickly by dragging the angle slider before committing to final values.

  • Grabbing a ready-to-paste linear-gradient string for a Tailwind, styled-components, or plain CSS file.

  • Teaching or demonstrating how gradient angle changes the visual direction of a fade.

پرسش‌های متداول

آیا گرادیان‌ها کارآمد هستند؟
بله: بسیار کم‌هزینه‌تر از تصاویر گرادیان. بدون افت کیفیت به هر اندازه‌ای مقیاس می‌گیرند.
آیا می‌توانم گرادیان‌ها را متحرک کنم؟
انیمیشن مستقیم گرادیان‌ها پشتیبانی نمی‌شود؛ ویژگی‌های گرادیان را از طریق JavaScript متحرک کنید یا از ترفندهای background-position استفاده کنید.

ابزارهای مرتبط