Soft UI only works when the element and the page are the same color, because the trick is two shadows: a light one up-left and a dark one down-right, both tinted from the base. The opening color #427f9c with an 8px radius and a 6px offset writes .soft with box-shadow 6px 6px 12px #2b5365, -6px -6px 12px #84acbf. Those two grays are the base mixed toward black and toward white. On a white page the same rule looks like a dirty sticker.
Flat and pressed keep the solid base as the background. Concave and convex swap in a diagonal gradient so the surface itself looks dished or domed. Pressed inverts the shadows to inset, which reads as a control that has been pushed in. A large offset on a small element makes the halo bigger than the control. Keep the offset well under the padding.
Contrast of any label is your problem. The snippet sets no text color, and a shadow is not a substitute for a difference between the letters and the fill.
Base #427f9c, radius 8, offset 6, surface flat.
.soft { background: #427f9c; border-radius: 8px; box-shadow: 6px 6px 12px #2b5365, -6px -6px 12px #84acbf; }
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
The page behind is a different color from the base. Match them. The light and dark shadows are mixes of that base, so they only blend into the same paint.
Pressed uses inset shadows, so the surface looks pushed in. Flat uses outer shadows. The fill color stays the base in both.
It does not. You add color, and you should measure it. A soft shadow does not make low-contrast type acceptable.
The illusion assumes a flat field of the base color. A photograph behind the card breaks it. Frosted glass is the treatment meant to sit over a picture.
They are #427f9c mixed about 35% toward black and toward white. Change the base and both shadows move with it.