CSS ライブデモ:text-shadow デモボタンをクリックしてみてください!
selector {
    text-shadow: /* 値 */
}
/*
 * <offset-x>(必須):x軸(横方向)の距離(正の数、0、負の数が指定可能)。長さの値(%単位の使用は不可)
 * <offset-y>(必須):y軸(縦方向)の距離(正의 数、0、負の数が指定可能)。長さの値(%単位の使用は不可)
 * <blur-radius>(任意):ぼかし効果。大きさの基準はぼかし効果を円の半径として測定(正の数、0のみ。負の数は不可)。
 * 初期値は 0。長さの値(%単位の使用は不可)
 * <color>(任意):影の色。初期値は currentcolor(現在の文字色)
 */

/* 注意! <offset-x> と <offset-y> の間に <blur-radius> や <color> を配置することはできません。 */
/* 注意! <blur-radius> は必ず <offset-y> の直後に指定しなければなりません。 */
/* 注意! <color> は <offset-x>、<offset-y>、<blur-radius> の間に配置することはできません。 */

/* <offset-x> | <offset-y> | <blur-radius> | <color> */
text-shadow: 2px 3px 4px red;

/* <color> | <offset-x> | <offset-y> | <blur-radius> */
text-shadow: red 2px 0 4px;

/* <offset-x> | <offset-y> | <color> */
text-shadow: 5px 5px #00a0e9;

/* <color> | <offset-x> | <offset-y> */
text-shadow: green 2px 5px;

/* <offset-x> | <offset-y>
    <color> と <blur-radius> は初期値が適用されます */
text-shadow: 5px 10px;

/* 複数の影の効果は値をカンマ(,)で区切って追加します。
    影の効果は記述した順に前面から背面へと適用されます。最初の影が最前面に表示されます。 */
text-shadow: red 2px 0 4px, blue 4px 0 4px, green 6px 8px;

/* 初期値 */
text-shadow: none; /* 影の効果がないことを意味します */

/* グローバル値 */
text-shadow: inherit;
text-shadow: initial;
text-shadow: revert;
text-shadow: revert-layer;
text-shadow: unset;
<style>
    .box {
        width: 200px;
        height: 100px;
        background-color: transparent;
        box-shadow: 10px 10px 10px yellowgreen;
    }
</style>
<div class="box">BOX</div>
実際の適用例
<style>
    .text {
        font-size: 70px;
        font-weight: 900;
        color: rgba(0, 0, 0, 0.4);
        text-shadow: 5px 5px red;
    }
</style>
<p class="text">テキスト</p>
実際の適用例
<style>
    .box {
        width: 200px;
        height: 100px;
        background-color: gold;
    }
    .box-1 {
        margin-bottom: 25px;
    }
    .box-2 {
        box-shadow: 0 -50px 20px rgba(0, 0, 0, 0.7);
    }
</style>
<div class="box box-1">BOX 1</div>
<div class="box box-2">BOX 2</div>
実際の適用例
<style>
    .text {
        font-size: 70px;
        font-weight: 900;
        color: gold;
    }
    .text-1 {
        margin-bottom: 10px;
    }
    .text-2 {
        text-shadow: 0 -50px 10px rgba(0, 0, 0, 0.4);
    }
</style>
<p class="text text-1">テキスト1</p>
<p class="text text-2">テキスト2</p>
実際の適用例
<style>
    .text {
        font-size: 70px;
        font-weight: 900;
        color: gold;
        text-decoration: underline;
        text-shadow: 5px 5px red;
    }
</style>
<p class="text">テキスト</p>
実際の適用例
<style>
    .text {
        font-size: 70px;
        font-weight: 900;
        color: gold;
        text-emphasis: dot;
        text-shadow: 5px 5px red;
    }
</style>
<p class="text">テキスト</p>
実際の適用例
<style>
    .text {
        font-size: 100px;
        font-weight: 900;
        color: gold;
        text-shadow: 7px 7px red,
                     14px 14px green,
                     21px 21px blue;
    }
</style>
<p class="text">あ</p>
実際の適用例