TEXTURE / 080

Checker pattern

市松模様
円錐形グラデーションをタイル状に繰り返し、格子をつくります。

実際のHTML・CSSで描かれた見本です。

ラボで詳しく試す ↗

ひとつ試すなら

どこが変わるかを観察して、似た表現と見比べてみよう。

こんなときに

透明部分の目印や、幾何学的な背景。

仕組みと使い方

背景の大きさで、模様の細かさを調整します。

市松チェッカーchecker格子
実装コードを見る
<style>
.sample{width:100%;height:100%;min-height:190px;display:grid;place-items:center;position:relative;overflow:hidden;box-sizing:border-box;font-family:Arial,'Hiragino Kaku Gothic ProN',Meiryo,sans-serif;color:#20211d;background:#f1f0e9;padding:22px}.sample *{box-sizing:border-box}.sample button,.sample input,.sample summary{font:inherit}.sample button,.sample summary,.sample label{touch-action:manipulation}.sample :focus-visible{outline:3px solid #6050bf;outline-offset:5px}.sample small{font-size:10px;line-height:1.5}.sample .editable{margin:0}.sample svg{max-width:100%;height:auto}
.sample .check{width:210px;height:132px;border-radius:10px;background:repeating-conic-gradient(#b6a1e3 0% 25%,#eee9fa 0% 50%) 0/36px 36px}
</style>
<div class="sample">
<div class="check"></div>
</div>