JSFiddle - React, Tailwind, and code Playground

Cutted corner with pseudo-stroke

by Odisseya

HTML

<div class="card">Cutted corner with pseudo-stroke</div>

CSS

body {
  background: linear-gradient(45deg, #1687ed, #14375a) no-repeat 0 0 /cover;
  min-height: 100vh;
}

.card {
  width: 200px;
  height: 250px;
  background: linear-gradient(135deg, transparent 20px, white 20px);
  border-radius: 10px;
  position: relative;
  margin: 50px;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
}

/* Суррогат обводки */

.card::before {
  content: '';
  position: absolute;
  background-color: inherit;
  background: linear-gradient(135deg, transparent 22px, gold 22px);
  left: -5px;
  right: -5px;
  top: -5px;
  bottom: -5px;
  z-index: -1;
  border-radius: 14px;
}