Press/to search

Patterns

Triangles v1.0.8

Utilities for sets an element's background triangles pattern.


Class

classcss
pattern
triangles-sm
background-image: linear-gradient(45deg, currentColor 50%, transparent 50%);

background-size: 10px 10px
pattern
triangles-md
background-image: linear-gradient(45deg, currentColor 50%, transparent 50%);

background-size: 25px 25px
pattern
triangles-lg
background-image: linear-gradient(45deg, currentColor 50%, transparent 50%);

background-size: 50px 50px
pattern
triangles-xl
background-image: linear-gradient(45deg, currentColor 50%, transparent 50%);

background-size: 100px 100px

Usage

Set basic triangles pattern.

<!-- Example -->
<y class="pattern triangles-sm ... h-32 w-full">
...
</y>

Set pattern with color by using text-{color} utility. (See Text Color).

<!-- Example -->
<y class="pattern triangles-sm text-amber-400 ... h-32 w-full">
...
</y>

Set pattern clipping with text.

TEXT
<!-- Example -->
<y class="pattern triangles-sm clip-text text-red-500">
<y>
TEXT
</y>
</y>

Variant

ResponsiveDark ModeLight ModeReduce-MotionPortraitLandscapeHoverGroup-HoverFocusGroup-FocusFocus-VisibleFocus-WithinActiveVisitedCheckedDisabled

Default enabled variants. Read more information about the Responsive and Pseudo-Class Variants.