.bnto-alert-soft { display: flex; align-items: center; gap: 11px; background: hsl(202 73% 56% / 0.12); color: hsl(202 63% 34%); border-left: 4px solid hsl(202 73% 56%); padding: 13px 16px; border-radius: 12px; } .bnto-alert-soft .ic { color: hsl(202 73% 56%); flex: none; display: flex; }
<div class="bnto-alert-soft"> <span class="ic"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"> <circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg></span> 保存しました。 </div>
使い方のコツ
アラート配色の基本は「背景=薄い色、文字=濃い同系色、罫線・アイコン=鮮やかな色」の3点セット。同じ色相で明度だけ変えると統一感が出ます。背景の透明度(/ 0.12)を上げると存在感が増します。