Skip to content

Soft UI cards with gentle relief

Three treatment cards in accessible neumorphism: gently raised surfaces, buttons that sink in when activated, a light/dark switch for the block itself. 3:1 outlines and AA text kept.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

The Soft UI style without its usual flaws. Each card presents a treatment with an icon in a carved well, an eyebrow, a title, a text, a duration and a price in an inset panel, then two raised buttons: "Réserver" (book), a real link, and "Mettre de côté" (keep), a toggle button (aria-pressed) that sinks into the surface, colours its text and fills its heart; a status region tells screen reader users how many treatments are kept. The "Mode sombre" (dark mode) button switches the theme of this block only, independently of the page, and the choice is stored in the browser (localStorage, synced across tabs); with no choice, the block follows the page data-theme attribute, then the system preference. Light and dark shadows are computed from two variables (--csu-sd, --csu-sl), so a single palette sets the whole relief. Accessibility: state never relies on shadows alone, every button keeps a 3:1 outline and a 44 px target, button names mention the treatment, strong visible focus, AA text in light and dark themes, thicker outline in high contrast mode, transitions removed under prefers-reduced-motion. Without JavaScript, cards and links still work and the useless buttons are hidden. Labels wrap without overflowing from 360 px. Example: the signature treatments of a beauty institute.

Code

Loading the code…

The code of this component in

Archive contents

carte-neumorphisme-soft-ui-html-tailwind.zip3 files · 7 Ko

  • index.html18 Ko
  • README.md5 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • A mobile page to link from your social profiles: portrait, name, priority links (booking, WhatsApp, website, reviews, call), opening hours with an open or closed status, social links and a share button, in dependency-free HTML and CSS.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A single-plan pricing card: struck-through price and discount, a places-left gauge driven by a data attribute, the list of everything included and a booking button that turns into a waiting list once sold out.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Four fully clickable workshop cards in a neo-brutalist style: thick border, solid offset shadow and a card that sinks onto its shadow on hover or focus. Pastel tones, dark mode, no JavaScript.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Three brutalist service cards: one-pixel border, hard offset shadow that lifts on hover and sinks on click, large type, accent and dark variants. No JavaScript.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component