# Dark UI Edge Light

> Shadows barely show on dark backgrounds, so this lifts the card with a hairline border and a lit top edge.

- Category: [CSS Box Shadows](https://copy-css.com/category/shadows)
- Tags: dark mode, elevation, hairline, highlight, inset, card
- Live preview: https://copy-css.com/snippets/dark-edge-light
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="edge-card">
  <h3>Deploys</h3>
  <p>12 today · all green</p>
</div>
```

## CSS

```css
.edge-card {
  width: 220px;
  padding: 20px;
  border-radius: 14px;
  background: #18181b;
  color: #a1a1aa;
  font: 14px/1.5 system-ui, sans-serif;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 12px 32px -8px rgba(0, 0, 0, 0.8);
}

.edge-card h3 {
  margin: 0 0 4px;
  color: #fafafa;
  font-size: 16px;
}

.edge-card p {
  margin: 0;
}
```

## Notes

- This CSS Dark UI Edge Light is 23 lines of pure CSS (0.4 KB) with no JavaScript and no dependencies. It uses box shadows.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
