Skip to content

Instantly share code, notes, and snippets.

@senthilsweb
Created April 21, 2024 15:42
Show Gist options
  • Save senthilsweb/9ccc579ab0e1f639fdf6504b6ed0cf1d to your computer and use it in GitHub Desktop.
Save senthilsweb/9ccc579ab0e1f639fdf6504b6ed0cf1d to your computer and use it in GitHub Desktop.
tailwind card backdrop
<div class="absolute inset-0 -z-10 mx-0 max-w-none overflow-hidden">
<div class="absolute left-1/2 top-0 ml-[-38rem] h-[25rem] w-[81.25rem] dark:[mask-image:linear-gradient(white,transparent)]">
<div class="absolute inset-0 bg-gradient-to-r from-[#ec4899] to-[#fbcfe8] opacity-40 [mask-image:radial-gradient(farthest-side_at_top,white,transparent)] dark:from-[#ec4899]/30 dark:to-[#fbcfe8]/30 dark:opacity-100">
<svg aria-hidden="true" class="dark:fill-white/2.5 absolute inset-x-0 inset-y-[-50%] h-[200%] w-full skew-y-[-18deg] fill-black/40 stroke-black/50 mix-blend-overlay dark:stroke-white/5">
<defs>
<pattern id=":S1:" width="72" height="56" patternUnits="userSpaceOnUse" x="-12" y="4"><path d="M.5 56V.5H72" fill="none"></path></pattern>
</defs>
<rect width="100%" height="100%" stroke-width="0" fill="url(#:S1:)"></rect>
<svg x="-12" y="4" class="overflow-visible">
<rect stroke-width="0" width="73" height="57" x="288" y="168"></rect>
<rect stroke-width="0" width="73" height="57" x="144" y="56"></rect>
<rect stroke-width="0" width="73" height="57" x="504" y="168"></rect>
<rect stroke-width="0" width="73" height="57" x="720" y="336"></rect>
</svg>
</svg>
</div>
<svg viewBox="0 0 1113 440" aria-hidden="true" class="absolute left-1/2 top-0 ml-[-19rem] w-[69.5625rem] fill-white blur-[26px] dark:hidden"><path d="M.016 439.5s-9.5-300 434-300S882.516 20 882.516 20V0h230.004v439.5H.016Z"></path></svg>
</div>
</div>
<div class="mt-2 px-6">
<h1 class="text-base font-medium tracking-tight text-slate-900">Getting started with Figma</h1>
<p class="mt-2 text-sm text-slate-600">Get familiar with the Figma UI, the different tools it offers, and the most important features.</p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment