Search

Buttons

Buttons with Astro

Button

Cyberpunk button

The Cyberpunk aesthetic is surprisingly easy to create thanks to the clip-path property, which uses a polygon shape to define a clipping region. Check out the following CSS example and pay attention to the clip-path property values—the rest of the button CSS is for demo purposes only and could be modified to suit your needs.

The shape creates an area that includes everything but a small rectangle on the bottom-right corner, which is subtracted by shifting the second-to-last point left by 10px and the third point up by 10px, making the notch. This effectively clips or “cuts out” a rectangular portion from the bottom right of the button (or any element you use this on).

The one caveat: clip-path will also hide any outer styling, such as a border or box-shadow so keep that in mind!

Default button

Use these default button styles with multiple colors to indicate an action or link within your website.

Button pills

The button pills can be used as an alternative style by using fully rounded edges.

Gradient monochrome

These beautifully colored buttons built with the gradient color stops utility classes from Tailwind CSS can be used as a creative alternative to the default button styles.

Gradient duotone

These buttons use a style that includes two contrasted colors creating an impressive mesh gradient effect.

Gradient outline

This is a special button style that incorporates a gradient color for the outline that can be used as a secondary style to the fully colored gradient buttons.