flavors
画像3Dツール料金スポンサー
← Flavorsの無料ツール一覧

CSS グラデーション ボーダー ジェネレーター

線形・円錐グラデーションの色指定、角丸、透明・不透明カード、回転オプションに対応。ダーク・ライト両方でプレビューでき、CSSまたはTailwind v4で出力できます。

Presets
ダーク
Proプラン$9/moRemix、REST + MCP、広告なし。
ライト
Proプラン$9/moRemix、REST + MCP、広告なし。
CSSコード
.gradient-border {
  border: 2px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(#0e0e11, #0e0e11) padding-box,
    linear-gradient(135deg, #ff5f6d 0%, #ffc371 50%, #a855f7 100%) border-box;
}
Tailwind v4
<div class="rounded-[20px] border-[2px] border-transparent [background:linear-gradient(#0e0e11,#0e0e11)_padding-box,linear-gradient(135deg,_#ff5f6d_0%,_#ffc371_50%,_#a855f7_100%)_border-box]">…</div>
手法
グラデーション
動き
カラーストップ
#ff5f6d0%
#ffc37150%
#a855f7100%
Flavors Pro · $49/yr or $9/mo

Need a complete UI system around this border?

Pair this border with complete AI-ready UI design languages, 3D hero components, Tailwind v4 themes, and REST + MCP access.

Unlock full kits in Flavors ProSign in straight to $49/yr checkout

よくある質問

CSSでborder-radius付きのグラデーションボーダーを作るには?

border-imageはborder-radiusを無視するため、角丸のグラデーションボーダーには別の手法が必要です。不透明なカードなら、2つの背景を重ねます。padding-boxで塗りを切り抜き、border-boxでグラデーションを切り抜いて、ボーダーを透明にします。透明なカードなら、::beforeレイヤーにグラデーションを描き、mask-composite: excludeで中央を切り抜きます。

背景が透明なグラデーションボーダーを作るには?

mask-compositeの手法を使います。::before疑似要素にグラデーションを設定し、ボーダー幅と同じpaddingを付けます。content-boxと全体のボックスを使った2つのマスクをexcludeで合成すると、輪郭だけが残ります。カードの背景は完全に透明なままです。

回転するグラデーションボーダーをアニメーションさせるには?

@propertyで--border-angleを<angle>として登録し、グラデーションの向き(conic-gradient(from var(--border-angle), …))に使ってから、@keyframesでアニメーションさせます。@propertyがないとブラウザは角度を補間できず、ボーダーは回転せずに切り替わります。

Tailwind CSS v4で使えますか?

はい。[background:…_padding-box,…_border-box]やbefore:mask-excludeなどの任意値ユーティリティを出力します。回転を有効にすると、@themeのアニメーショントークンも追加されます。マークアップと、アニメーションを使う場合はスニペットもglobals.cssに貼り付けてください。

CSSグラデーションボーダーのブラウザ対応状況は?

主要な現行ブラウザに対応しています。mask-composite: excludeはChrome 120以降、Safari 15.4以降、Firefox 53以降でプレフィックスなしで使えます。古いWebKit向けには-webkit-mask-composite: xorも含まれます。@propertyは現行のすべてのブラウザでサポートされています。

More Free Design Tools

View all tools →
16 Google Font pairs

Google Font Pairings Generator

16 curated Google Font heading + body pairings with live editable preview, Google Fonts link & Tailwind v4.

Open tool
5-layer shadows

CSS Box Shadow Generator

Multi-layer CSS box-shadow studio with 8 curated presets, inset support & Tailwind utility export.

Open tool
WCAG AA/AAA

WCAG Color Contrast Checker

Check WCAG AA/AAA & UI contrast in HEX, RGB or OKLCH and auto-fix failing pairs in one click.

Open tool
70s · 80s · 90s · Y2K

Retro Color Palette Generator

70s groove, 80s synthwave, 90s Memphis, Y2K Chrome, Mid-Century, Bauhaus & Kodak Film palettes.

Open tool
Curated moods & WCAG

Aesthetic Color Palette Generator

Matcha & Cream, Dark Academia, Japandi, Pastel Dream & harmony sliders with WCAG badges.

Open tool
HTML · BRAND.md · CSS

Brand Guidelines Generator

Build a live mini brand book and export HTML brand sheet, BRAND.md or CSS design tokens.

Open tool
50–950 OKLCH scales

Tailwind v4 Palette Generator

Perceptually uniform 50–950 Tailwind v4 OKLCH scales and dark-mode palettes.

Open tool
HEX ↔ OKLCH

OKLCH Color Converter

Convert HEX to OKLCH and OKLCH to HEX with live Lightness, Chroma & Hue sliders.

Open tool
Frosted glass CSS

CSS Glassmorphism Generator

Frosted-glass CSS & Tailwind v4 cards with live backdrop-filter blur and saturation.

Open tool

flavors · 雰囲気はテンプレートじゃない · © 2026

Flavors画像3D無料ツール料金ブログこのサイトについてお問い合わせスポンサー更新履歴バグを報告コミュニティプライバシー利用規約Affiliates
Popular toolsGoogle Font PairingsBox Shadow GeneratorColor Contrast CheckerRetro Color PaletteAesthetic PaletteBrand GuidelinesGradient Border CSS