RevealTheme logo

CSS box-shadowジェネレーター

CSSのbox-shadow値を視覚的に作成します。リアルタイムでプレビューし、生成されたCSSをコピーできます。

box-shadow: 0px 8px 16px 0px #00000033;

このツールの使い方

  1. 1

    Drag the X offset and Y offset sliders (each from -50px to 50px) to move the shadow horizontally and vertically.

  2. 2

    Adjust the Blur slider (0px to 100px) to soften the edges, and the Spread slider (-50px to 50px) to grow or shrink the shadow.

  3. 3

    Pick a shadow color with the color swatch; the live preview square updates as you change any control.

  4. 4

    Copy the generated box-shadow declaration from the output box at the bottom and paste it into your stylesheet.

CSS box-shadowジェネレーターとは何ですか?

CSSのbox-shadowプロパティは、水平方向のオフセット、垂直方向のオフセット、ぼかしの半径、広がりの半径、そして色を受け付けます。複数の影を重ねて、層状の効果を作ることもできます。この視覚的ジェネレーターは、どんな組み合わせのCSSも生成します。ボタン、カード、奥行きの表現などに役立ちます。

よくある活用例

  • Designing a soft elevation shadow for buttons or cards, then tuning Y offset and blur until the depth looks right.

  • Prototyping a Material-style shadow by stacking the value this tool outputs with a second hand-written shadow.

  • Generating a tight, low-blur shadow with negative spread for a crisp focus or hover state.

  • Getting an exact box-shadow string to paste into a Tailwind arbitrary value, CSS module, or inline style.

  • Teaching the difference between blur and spread by dragging each slider and watching the preview react.

  • Quickly matching a shadow from a design mockup by eyeballing offsets against the live preview square.

よくある質問

複数の影を重ねるにはどうすればよいですか?
box-shadowの値をカンマで区切ってください。影を重ねると、単一の影よりもリアルな奥行きが生まれます。
ぼかしと広がりの違いは何ですか?
ぼかし(blur)は影の縁を柔らかくします。広がり(spread)は、影をぼかす前にその大きさを拡大または縮小します。

関連ツール