# Retro Bevel Button

> A classic Windows 95 style gray button with beveled edges that invert when pressed.

- Category: [CSS Buttons](https://copy-css.com/category/buttons)
- Tags: windows 95, classic, inset, pixel, vintage
- Live preview: https://copy-css.com/snippets/retro-bevel-button
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<button class="btn-bevel">OK</button>
```

## CSS

```css
.btn-bevel {
  min-width: 88px;
  padding: 7px 20px;
  border: 0;
  border-radius: 0;
  background: #c0c0c0;
  color: #000;
  font: 14px/1.2 Tahoma, "MS Sans Serif", Geneva, sans-serif;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf;
  cursor: pointer;
}

.btn-bevel:active {
  padding: 8px 19px 6px 21px;
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px #0a0a0a,
    inset -2px -2px #dfdfdf,
    inset 2px 2px #808080;
}

.btn-bevel:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -5px;
}
```

## Notes

- This CSS Retro Bevel Button is 29 lines of pure CSS (0.6 KB) with no JavaScript and no dependencies. It uses box shadows and keyboard focus styles.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
