Agile育成ブログ
未来を変える喜びを
tailwindcss

ailwindcssチートシート解説(Borders)


Warning: count(): Parameter must be an array or an object that implements Countable in /home/xs638785/agile-software.site/public_html/wp-content/plugins/rich-table-of-content/functions.php on line 490

Border Radius

Rounded corners

Pills and circles

No rounding

Rounding sides separately

片側だけ丸める

Rounding corners separately

要素の1つの角だけを丸める

ClassProperties
rounded-noneborder-radius: 0px;
rounded-smborder-radius: 0.125rem;
roundedborder-radius: 0.25rem;
rounded-mdborder-radius: 0.375rem;
rounded-lgborder-radius: 0.5rem;
rounded-xlborder-radius: 0.75rem;
rounded-2xlborder-radius: 1rem;
rounded-3xlborder-radius: 1.5rem;
rounded-fullborder-radius: 9999px;
rounded-t-noneborder-top-left-radius: 0px; border-top-right-radius: 0px;
rounded-r-noneborder-top-right-radius: 0px; border-bottom-right-radius: 0px;
rounded-b-noneborder-bottom-right-radius: 0px; border-bottom-left-radius: 0px;

Border Width

All sides

要素のすべてに幅を設定


Individual sides

要素の片側の境界線の幅を設定


Between elements

境界線を追加することができる

ClassProperties
.border-0border-width: 0;
roundedborder-radius: 0.25rem;
rounded-mdborder-radius: 0.375rem;
rounded-lgborder-radius: 0.5rem;
rounded-xlborder-radius: 0.75rem;
rounded-2xlborder-radius: 1rem;
rounded-3xlborder-radius: 1.5rem;
rounded-fullborder-radius: 9999px;
rounded-t-noneborder-top-left-radius: 0px; border-top-right-radius: 0px;
rounded-r-noneborder-top-right-radius: 0px; border-bottom-right-radius: 0px;
rounded-b-noneborder-bottom-right-radius: 0px; border-bottom-left-radius: 0px;

Border Color

Changing opacity

境界線の不透明度の色を制御

ClassProperties
.border-transparentborder-color: transparent;
roundedborder-radius: 0.25rem;
rounded-mdborder-radius: 0.375rem;
rounded-lgborder-radius: 0.5rem;
rounded-xlborder-radius: 0.75rem;
rounded-2xlborder-radius: 1rem;
rounded-3xlborder-radius: 1.5rem;
rounded-fullborder-radius: 9999px;
rounded-t-noneborder-top-left-radius: 0px; border-top-right-radius: 0px;
rounded-r-noneborder-top-right-radius: 0px; border-bottom-right-radius: 0px;
rounded-b-noneborder-bottom-right-radius: 0px; border-bottom-left-radius: 0px;

Border Opacity

ClassProperties
border-opacity-0–tw-border-opacity: 0;
roundedborder-radius: 0.25rem;
rounded-mdborder-radius: 0.375rem;
rounded-lgborder-radius: 0.5rem;
rounded-xlborder-radius: 0.75rem;
rounded-2xlborder-radius: 1rem;
rounded-3xlborder-radius: 1.5rem;
rounded-fullborder-radius: 9999px;
rounded-t-noneborder-top-left-radius: 0px; border-top-right-radius: 0px;
rounded-r-noneborder-top-right-radius: 0px; border-bottom-right-radius: 0px;
rounded-b-noneborder-bottom-right-radius: 0px; border-bottom-left-radius: 0px;

Border Style

ClassProperties
border-solidborder-style: solid;
roundedborder-radius: 0.25rem;
rounded-mdborder-radius: 0.375rem;
rounded-lgborder-radius: 0.5rem;
rounded-xlborder-radius: 0.75rem;
rounded-2xlborder-radius: 1rem;
rounded-3xlborder-radius: 1.5rem;
rounded-fullborder-radius: 9999px;
rounded-t-noneborder-top-left-radius: 0px; border-top-right-radius: 0px;
rounded-r-noneborder-top-right-radius: 0px; border-bottom-right-radius: 0px;
rounded-b-noneborder-bottom-right-radius: 0px; border-bottom-left-radius: 0px;

Divide Width

Add borders between horizontal children

水平コンテンツ間に境界線を設定

Add borders between stacked children

Reversing children order

要素が逆だったとしても正しいところに境界線を設定できる

ClassProperties
divide-y-0 > * + *–tw-divide-y-reverse: 0; border-top-width: calc(0px * calc(1 – var(–tw-divide-y-reverse))); border-bottom-width: calc(0px * var(–tw-divide-y-reverse));
roundedborder-radius: 0.25rem;
rounded-mdborder-radius: 0.375rem;
rounded-lgborder-radius: 0.5rem;
rounded-xlborder-radius: 0.75rem;
rounded-2xlborder-radius: 1rem;
rounded-3xlborder-radius: 1.5rem;
rounded-fullborder-radius: 9999px;
rounded-t-noneborder-top-left-radius: 0px; border-top-right-radius: 0px;
rounded-r-noneborder-top-right-radius: 0px; border-bottom-right-radius: 0px;
rounded-b-noneborder-bottom-right-radius: 0px; border-bottom-left-radius: 0px;

Divide Color

境界線の色を設定

Changing opacity

境界線の不透明度を設定

ClassProperties
divide-transparent > * + *border-color: transparent;
roundedborder-radius: 0.25rem;
rounded-mdborder-radius: 0.375rem;
rounded-lgborder-radius: 0.5rem;
rounded-xlborder-radius: 0.75rem;
rounded-2xlborder-radius: 1rem;
rounded-3xlborder-radius: 1.5rem;
rounded-fullborder-radius: 9999px;
rounded-t-noneborder-top-left-radius: 0px; border-top-right-radius: 0px;
rounded-r-noneborder-top-right-radius: 0px; border-bottom-right-radius: 0px;
rounded-b-noneborder-bottom-right-radius: 0px; border-bottom-left-radius: 0px;

Divide Opacity

Divide Style

Ring Width

Focus rings

外枠の幅を設定

Focus rings

ClassProperties
*box-shadow: 0 0 #0000;
roundedborder-radius: 0.25rem;
rounded-mdborder-radius: 0.375rem;
rounded-lgborder-radius: 0.5rem;
rounded-xlborder-radius: 0.75rem;
rounded-2xlborder-radius: 1rem;
rounded-3xlborder-radius: 1.5rem;
rounded-fullborder-radius: 9999px;
rounded-t-noneborder-top-left-radius: 0px; border-top-right-radius: 0px;
rounded-r-noneborder-top-right-radius: 0px; border-bottom-right-radius: 0px;
rounded-b-noneborder-bottom-right-radius: 0px; border-bottom-left-radius: 0px;

Ring Color

ClassProperties
divide-transparent > * + *border-color: transparent;
roundedborder-radius: 0.25rem;
rounded-mdborder-radius: 0.375rem;
rounded-lgborder-radius: 0.5rem;
rounded-xlborder-radius: 0.75rem;
rounded-2xlborder-radius: 1rem;
rounded-3xlborder-radius: 1.5rem;
rounded-fullborder-radius: 9999px;
rounded-t-noneborder-top-left-radius: 0px; border-top-right-radius: 0px;
rounded-r-noneborder-top-right-radius: 0px; border-bottom-right-radius: 0px;
rounded-b-noneborder-bottom-right-radius: 0px; border-bottom-left-radius: 0px;

Ring Opacity

Ring Offaet Width

Ring Offset Color

You cannot copy content of this page