Skip to content

Hard offset shadow cards

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
Open in a new tab

Description

Each card presents a workshop with a level badge, a title, a text, a duration, a price and a "See dates" prompt. The whole card is a single link: the title holds the link and stretches it over the card, so screen readers announce only the title and the Tab key stops once per card. At rest the shadow is a flat, unblurred block offset by 8 px; on hover or keyboard focus the card moves by exactly that depth and lands on its shadow, like a pressed key, and a thick outline marks focus. Four tones (pink, mint, blue, yellow) are picked with a class that only changes two variables: in the dark theme, cards switch to a charcoal background and the tone colours the border, shadow and badge. Shadow depth (--cbo-depth), border width (--cbo-border) and fonts are set at the top of the file. AA contrast in light and dark themes, layout from 360 px, prefers-reduced-motion removes the transition.

Code

Loading the code…

The code of this component in

Archive contents

cartes-brutalistes-ombre-dure-html-tailwind.zip3 files · 5 Ko

  • index.html12 Ko
  • README.md4 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
  • 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
    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