"use client";
import {
forwardRef,
type ComponentPropsWithoutRef,
type ReactNode,
} from "react";
import { cn } from "@/lib/cn";
export type SheenPillButtonProps = Readonly<
{
children: ReactNode;
width?: number;
height?: number;
highlight?: number;
} & ComponentPropsWithoutRef<"button">
>;
const SHEEN_PILL_RADIUS = 9999;
const SHEEN_SHELL =
"group relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-4 overflow-hidden border border-double border-[rgba(51,51,51,0.08)] bg-[rgba(255,255,255,0.08)] backdrop-blur-[5px] brightness-[1.05]";
const SHEEN_SHELL_SHADOW =
"[box-shadow:inset_2px_-2px_1px_-1px_rgba(255,255,255,0.9),inset_-2px_2px_1px_-1px_rgba(255,255,255,0.9),inset_6px_-6px_1px_-6px_rgba(255,255,255,0.55),inset_-6px_6px_1px_-6px_rgba(255,255,255,0.55),inset_0_0_2px_rgba(0,0,0,0.8),0_4px_8px_rgba(0,0,0,0.2)]";
const SHEEN_SHELL_HOVER_SHADOW =
"hover:[box-shadow:inset_2px_-2px_1px_-1px_rgba(255,255,255,0.95),inset_-2px_2px_1px_-1px_rgba(255,255,255,0.95),inset_6px_-6px_1px_-6px_rgba(255,255,255,0.65),inset_-6px_6px_1px_-6px_rgba(255,255,255,0.65),inset_0_0_2px_rgba(0,0,0,0.65),0_6px_12px_rgba(0,0,0,0.22)]";
export const SheenPillButton = forwardRef<
HTMLButtonElement,
SheenPillButtonProps
>(
(
{
children,
className,
width = 180,
height = 60,
highlight = 15,
type = "button",
disabled,
style,
...props
},
ref,
) => {
const shadeVeilWidth = width - 16;
const shadeVeilHeight = height - 16;
const rimWireWidth = width - 9;
const rimWireHeight = height - 9;
return (
<button
ref={ref}
type={type}
disabled={disabled}
data-slot="sheen-pill-button"
className={cn(
SHEEN_SHELL,
"transition-[transform,background-color,box-shadow,filter] duration-250 ease-linear motion-reduce:transition-none",
"hover:scale-[1.02] hover:bg-transparent hover:brightness-110",
"active:scale-100 motion-reduce:hover:scale-100",
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-neutral-900",
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
SHEEN_SHELL_SHADOW,
SHEEN_SHELL_HOVER_SHADOW,
className,
)}
style={{
width,
height,
borderRadius: SHEEN_PILL_RADIUS,
...style,
}}
{...props}
>
<span
aria-hidden="true"
data-layer="sheen-shade-veil"
className="pointer-events-none absolute top-[35%] left-1/2 z-0 -translate-x-1/2 border border-[rgba(0,0,0,0.9)] blur-sm transition-[opacity,transform,filter] duration-250 ease-linear group-hover:opacity-80 group-hover:blur-md motion-reduce:transition-none"
style={{
width: shadeVeilWidth,
height: shadeVeilHeight,
borderRadius: SHEEN_PILL_RADIUS,
}}
/>
<span
aria-hidden="true"
data-layer="sheen-light-band"
className="pointer-events-none absolute inset-0 z-10 opacity-80 blur-[7px] transition-[opacity,transform,filter] duration-250 ease-linear group-hover:scale-105 group-hover:opacity-100 group-hover:blur-[9px] motion-reduce:transition-none motion-reduce:group-hover:scale-100"
style={{
borderRadius: SHEEN_PILL_RADIUS,
background: `linear-gradient(45deg, rgba(255,255,255,0.8) 0%, transparent ${highlight}%, transparent calc(100% - ${highlight}%), rgba(255,255,255,0.8) 100%)`,
}}
/>
<span
aria-hidden="true"
data-layer="sheen-rim-wire"
className="pointer-events-none absolute top-1/2 left-1/2 z-20 -translate-x-1/2 -translate-y-1/2 border border-[rgba(255,255,255,0.2)] blur-[1px] transition-[border-color,opacity] duration-250 ease-linear group-hover:border-[rgba(255,255,255,0.45)] group-hover:opacity-100 motion-reduce:transition-none"
style={{
width: rimWireWidth,
height: rimWireHeight,
borderRadius: SHEEN_PILL_RADIUS,
}}
/>
<span
data-layer="sheen-label-well"
className="relative z-30 flex h-full w-full items-center justify-center gap-4 px-[0.8rem]"
>
<span
data-layer="sheen-label"
className="text-lg leading-none whitespace-nowrap text-[#3e3e3e] filter-[drop-shadow(0_25px_3px_rgba(102,102,102,0.15))] transition-[color,filter,transform] duration-250 ease-linear group-hover:translate-y-[-0.5px] group-hover:text-neutral-800 group-hover:filter-[drop-shadow(0_28px_4px_rgba(102,102,102,0.2))] motion-reduce:transition-none motion-reduce:group-hover:translate-y-0"
>
{children}
</span>
</span>
</button>
);
},
);
SheenPillButton.displayName = "SheenPillButton";
Sheen Pill Button
By Bidyut
Try the interaction, copy the React source files, or download the complete example.
About Sheen Pill Button
Sheen Pill Button is an animated React and Tailwind CSS button by Bidyut. Try the interaction, copy the React source, or download the example with creator credit.
- Effects and categories
- Hover effects, Animated
- Using this example
- Copy a TSX file or download the original source and standalone demo. Test keyboard focus, motion and contrast in your own project.
Usage, Tailwind and licensing questions
Read the source files
import-examples/sheen-pill-button.tsx
import {SheenPillButton} from "@/components/buttons/sheen-pill-button";
export default function Demo(){return (<SheenPillButton>Get started</SheenPillButton>);}components/buttons/sheen-pill-button.tsx
"use client";
import {
forwardRef,
type ComponentPropsWithoutRef,
type ReactNode,
} from "react";
import { cn } from "@/lib/cn";
export type SheenPillButtonProps = Readonly<
{
children: ReactNode;
width?: number;
height?: number;
highlight?: number;
} & ComponentPropsWithoutRef<"button">
>;
const SHEEN_PILL_RADIUS = 9999;
const SHEEN_SHELL =
"group relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-4 overflow-hidden border border-double border-[rgba(51,51,51,0.08)] bg-[rgba(255,255,255,0.08)] backdrop-blur-[5px] brightness-[1.05]";
const SHEEN_SHELL_SHADOW =
"[box-shadow:inset_2px_-2px_1px_-1px_rgba(255,255,255,0.9),inset_-2px_2px_1px_-1px_rgba(255,255,255,0.9),inset_6px_-6px_1px_-6px_rgba(255,255,255,0.55),inset_-6px_6px_1px_-6px_rgba(255,255,255,0.55),inset_0_0_2px_rgba(0,0,0,0.8),0_4px_8px_rgba(0,0,0,0.2)]";
const SHEEN_SHELL_HOVER_SHADOW =
"hover:[box-shadow:inset_2px_-2px_1px_-1px_rgba(255,255,255,0.95),inset_-2px_2px_1px_-1px_rgba(255,255,255,0.95),inset_6px_-6px_1px_-6px_rgba(255,255,255,0.65),inset_-6px_6px_1px_-6px_rgba(255,255,255,0.65),inset_0_0_2px_rgba(0,0,0,0.65),0_6px_12px_rgba(0,0,0,0.22)]";
export const SheenPillButton = forwardRef<
HTMLButtonElement,
SheenPillButtonProps
>(
(
{
children,
className,
width = 180,
height = 60,
highlight = 15,
type = "button",
disabled,
style,
...props
},
ref,
) => {
const shadeVeilWidth = width - 16;
const shadeVeilHeight = height - 16;
const rimWireWidth = width - 9;
const rimWireHeight = height - 9;
return (
<button
ref={ref}
type={type}
disabled={disabled}
data-slot="sheen-pill-button"
className={cn(
SHEEN_SHELL,
"transition-[transform,background-color,box-shadow,filter] duration-250 ease-linear motion-reduce:transition-none",
"hover:scale-[1.02] hover:bg-transparent hover:brightness-110",
"active:scale-100 motion-reduce:hover:scale-100",
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-neutral-900",
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
SHEEN_SHELL_SHADOW,
SHEEN_SHELL_HOVER_SHADOW,
className,
)}
style={{
width,
height,
borderRadius: SHEEN_PILL_RADIUS,
...style,
}}
{...props}
>
<span
aria-hidden="true"
data-layer="sheen-shade-veil"
className="pointer-events-none absolute top-[35%] left-1/2 z-0 -translate-x-1/2 border border-[rgba(0,0,0,0.9)] blur-sm transition-[opacity,transform,filter] duration-250 ease-linear group-hover:opacity-80 group-hover:blur-md motion-reduce:transition-none"
style={{
width: shadeVeilWidth,
height: shadeVeilHeight,
borderRadius: SHEEN_PILL_RADIUS,
}}
/>
<span
aria-hidden="true"
data-layer="sheen-light-band"
className="pointer-events-none absolute inset-0 z-10 opacity-80 blur-[7px] transition-[opacity,transform,filter] duration-250 ease-linear group-hover:scale-105 group-hover:opacity-100 group-hover:blur-[9px] motion-reduce:transition-none motion-reduce:group-hover:scale-100"
style={{
borderRadius: SHEEN_PILL_RADIUS,
background: `linear-gradient(45deg, rgba(255,255,255,0.8) 0%, transparent ${highlight}%, transparent calc(100% - ${highlight}%), rgba(255,255,255,0.8) 100%)`,
}}
/>
<span
aria-hidden="true"
data-layer="sheen-rim-wire"
className="pointer-events-none absolute top-1/2 left-1/2 z-20 -translate-x-1/2 -translate-y-1/2 border border-[rgba(255,255,255,0.2)] blur-[1px] transition-[border-color,opacity] duration-250 ease-linear group-hover:border-[rgba(255,255,255,0.45)] group-hover:opacity-100 motion-reduce:transition-none"
style={{
width: rimWireWidth,
height: rimWireHeight,
borderRadius: SHEEN_PILL_RADIUS,
}}
/>
<span
data-layer="sheen-label-well"
className="relative z-30 flex h-full w-full items-center justify-center gap-4 px-[0.8rem]"
>
<span
data-layer="sheen-label"
className="text-lg leading-none whitespace-nowrap text-[#3e3e3e] filter-[drop-shadow(0_25px_3px_rgba(102,102,102,0.15))] transition-[color,filter,transform] duration-250 ease-linear group-hover:translate-y-[-0.5px] group-hover:text-neutral-800 group-hover:filter-[drop-shadow(0_28px_4px_rgba(102,102,102,0.2))] motion-reduce:transition-none motion-reduce:group-hover:translate-y-0"
>
{children}
</span>
</span>
</button>
);
},
);
SheenPillButton.displayName = "SheenPillButton";
lib/cn.ts
import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
demo.tsx
export { default as default } from "@/import-examples/sheen-pill-button";CSS
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
:root, :host {
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, Monaco,
Consolas, monospace;
--color-neutral-800: oklch(26.9% 0 none);
--color-neutral-900: oklch(20.5% 0 none);
--spacing: 0.25rem;
--text-lg: 1.125rem;
--text-lg--line-height: calc(1.75 / 1.125);
--blur-sm: 8px;
--blur-md: 12px;
--default-transition-duration: 150ms;
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
--default-font-family: var(--font-sans);
--default-mono-font-family: var(--font-mono);
}
}
@layer base {
*, ::after, ::before, ::backdrop, ::file-selector-button {
box-sizing: border-box;
margin: 0;
padding: 0;
border: 0 solid;
}
html, :host {
line-height: 1.5;
-webkit-text-size-adjust: 100%;
tab-size: 4;
font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
font-feature-settings: var(--default-font-feature-settings, normal);
font-variation-settings: var(--default-font-variation-settings, normal);
-webkit-tap-highlight-color: transparent;
}
hr {
height: 0;
color: inherit;
border-top-width: 1px;
}
abbr:where([title]) {
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
h1, h2, h3, h4, h5, h6 {
font-size: inherit;
font-weight: inherit;
}
a {
color: inherit;
-webkit-text-decoration: inherit;
text-decoration: inherit;
}
b, strong {
font-weight: bolder;
}
code, kbd, samp, pre {
font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
font-feature-settings: var(--default-mono-font-feature-settings, normal);
font-variation-settings: var(--default-mono-font-variation-settings, normal);
font-size: 1em;
}
small {
font-size: 80%;
}
sub, sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
table {
text-indent: 0;
border-color: inherit;
border-collapse: collapse;
}
:-moz-focusring:where(:not(iframe)) {
outline: auto;
}
progress {
vertical-align: baseline;
}
summary {
display: list-item;
}
ol, ul, menu {
list-style: none;
}
img, svg, video, canvas, audio, iframe, embed, object {
display: block;
vertical-align: middle;
}
img, video {
max-width: 100%;
height: auto;
}
button, input, select, optgroup, textarea, ::file-selector-button {
font: inherit;
font-feature-settings: inherit;
font-variation-settings: inherit;
letter-spacing: inherit;
color: inherit;
border-radius: 0;
background-color: transparent;
opacity: 1;
}
:where(select:is([multiple], [size])) optgroup {
font-weight: bolder;
}
:where(select:is([multiple], [size])) optgroup option {
padding-inline-start: 20px;
}
::file-selector-button {
margin-inline-end: 4px;
}
::placeholder {
opacity: 1;
}
@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
::placeholder {
color: currentcolor;
@supports (color: color-mix(in lab, red, red)) {
color: color-mix(in oklab, currentcolor 50%, transparent);
}
}
}
textarea {
resize: vertical;
}
::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-date-and-time-value {
min-height: 1lh;
text-align: inherit;
}
::-webkit-datetime-edit {
display: inline-flex;
}
::-webkit-datetime-edit-fields-wrapper {
padding: 0;
}
::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
padding-block: 0;
}
::-webkit-calendar-picker-indicator {
line-height: 1;
}
:-moz-ui-invalid {
box-shadow: none;
}
button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
appearance: button;
}
::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
height: auto;
}
[hidden]:where(:not([hidden="until-found"])) {
display: none !important;
}
}
@layer utilities {
.pointer-events-none {
pointer-events: none;
}
.absolute {
position: absolute;
}
.relative {
position: relative;
}
.inset-0 {
inset: 0px;
}
.top-1\/2 {
top: calc(1 / 2 * 100%);
}
.top-\[35\%\] {
top: 35%;
}
.left-1\/2 {
left: calc(1 / 2 * 100%);
}
.z-0 {
z-index: 0;
}
.z-10 {
z-index: 10;
}
.z-20 {
z-index: 20;
}
.z-30 {
z-index: 30;
}
.flex {
display: flex;
}
.inline-flex {
display: inline-flex;
}
.h-full {
height: 100%;
}
.w-full {
width: 100%;
}
.shrink-0 {
flex-shrink: 0;
}
.-translate-x-1\/2 {
--tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
translate: var(--tw-translate-x) var(--tw-translate-y);
}
.-translate-y-1\/2 {
--tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
translate: var(--tw-translate-x) var(--tw-translate-y);
}
.cursor-pointer {
cursor: pointer;
}
.items-center {
align-items: center;
}
.justify-center {
justify-content: center;
}
.gap-4 {
gap: calc(var(--spacing) * 4);
}
.overflow-hidden {
overflow: hidden;
}
.border {
border-style: var(--tw-border-style);
border-width: 1px;
}
.border-double {
--tw-border-style: double;
border-style: double;
}
.border-\[rgba\(0\,0\,0\,0\.9\)\] {
border-color: rgba(0,0,0,0.9);
}
.border-\[rgba\(51\,51\,51\,0\.08\)\] {
border-color: rgba(51,51,51,0.08);
}
.border-\[rgba\(255\,255\,255\,0\.2\)\] {
border-color: rgba(255,255,255,0.2);
}
.bg-\[rgba\(255\,255\,255\,0\.08\)\] {
background-color: rgba(255,255,255,0.08);
}
.px-\[0\.8rem\] {
padding-inline: 0.8rem;
}
.text-lg {
font-size: var(--text-lg);
line-height: var(--tw-leading, var(--text-lg--line-height));
}
.leading-none {
--tw-leading: 1;
line-height: 1;
}
.whitespace-nowrap {
white-space: nowrap;
}
.text-\[\#3e3e3e\] {
color: #3e3e3e;
}
.opacity-80 {
opacity: 80%;
}
.\[box-shadow\:inset_2px_-2px_1px_-1px_rgba\(255\,255\,255\,0\.9\)\,inset_-2px_2px_1px_-1px_rgba\(255\,255\,255\,0\.9\)\,inset_6px_-6px_1px_-6px_rgba\(255\,255\,255\,0\.55\)\,inset_-6px_6px_1px_-6px_rgba\(255\,255\,255\,0\.55\)\,inset_0_0_2px_rgba\(0\,0\,0\,0\.8\)\,0_4px_8px_rgba\(0\,0\,0\,0\.2\)\] {
box-shadow: inset 2px -2px 1px -1px rgba(255,255,255,0.9),inset -2px 2px 1px -1px rgba(255,255,255,0.9),inset 6px -6px 1px -6px rgba(255,255,255,0.55),inset -6px 6px 1px -6px rgba(255,255,255,0.55),inset 0 0 2px rgba(0,0,0,0.8),0 4px 8px rgba(0,0,0,0.2);
}
.blur-\[1px\] {
--tw-blur: blur(1px);
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
}
.blur-\[7px\] {
--tw-blur: blur(7px);
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
}
.blur-sm {
--tw-blur: blur(var(--blur-sm));
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
}
.brightness-\[1\.05\] {
--tw-brightness: brightness(1.05);
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
}
.filter-\[drop-shadow\(0_25px_3px_rgba\(102\,102\,102\,0\.15\)\)\] {
filter: drop-shadow(0 25px 3px rgba(102,102,102,0.15));
}
.backdrop-blur-\[5px\] {
--tw-backdrop-blur: blur(5px);
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
}
.transition-\[border-color\,opacity\] {
transition-property: border-color,opacity;
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.transition-\[color\,filter\,transform\] {
transition-property: color,filter,transform;
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.transition-\[opacity\,transform\,filter\] {
transition-property: opacity,transform,filter;
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.transition-\[transform\,background-color\,box-shadow\,filter\] {
transition-property: transform,background-color,box-shadow,filter;
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.duration-250 {
--tw-duration: 250ms;
transition-duration: 250ms;
}
.ease-linear {
--tw-ease: linear;
transition-timing-function: linear;
}
@media (hover: hover) {
.group-hover\:translate-y-\[-0\.5px\]:is(:where(.group):hover *) {
--tw-translate-y: -0.5px;
translate: var(--tw-translate-x) var(--tw-translate-y);
}
.group-hover\:scale-105:is(:where(.group):hover *) {
--tw-scale-x: 105%;
--tw-scale-y: 105%;
--tw-scale-z: 105%;
scale: var(--tw-scale-x) var(--tw-scale-y);
}
.group-hover\:border-\[rgba\(255\,255\,255\,0\.45\)\]:is(:where(.group):hover *) {
border-color: rgba(255,255,255,0.45);
}
.group-hover\:text-neutral-800:is(:where(.group):hover *) {
color: var(--color-neutral-800);
}
.group-hover\:opacity-80:is(:where(.group):hover *) {
opacity: 80%;
}
.group-hover\:opacity-100:is(:where(.group):hover *) {
opacity: 100%;
}
.group-hover\:blur-\[9px\]:is(:where(.group):hover *) {
--tw-blur: blur(9px);
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
}
.group-hover\:blur-md:is(:where(.group):hover *) {
--tw-blur: blur(var(--blur-md));
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
}
.group-hover\:filter-\[drop-shadow\(0_28px_4px_rgba\(102\,102\,102\,0\.2\)\)\]:is(:where(.group):hover *) {
filter: drop-shadow(0 28px 4px rgba(102,102,102,0.2));
}
.hover\:scale-\[1\.02\]:hover {
scale: 1.02;
}
.hover\:bg-transparent:hover {
background-color: transparent;
}
.hover\:\[box-shadow\:inset_2px_-2px_1px_-1px_rgba\(255\,255\,255\,0\.95\)\,inset_-2px_2px_1px_-1px_rgba\(255\,255\,255\,0\.95\)\,inset_6px_-6px_1px_-6px_rgba\(255\,255\,255\,0\.65\)\,inset_-6px_6px_1px_-6px_rgba\(255\,255\,255\,0\.65\)\,inset_0_0_2px_rgba\(0\,0\,0\,0\.65\)\,0_6px_12px_rgba\(0\,0\,0\,0\.22\)\]:hover {
box-shadow: inset 2px -2px 1px -1px rgba(255,255,255,0.95),inset -2px 2px 1px -1px rgba(255,255,255,0.95),inset 6px -6px 1px -6px rgba(255,255,255,0.65),inset -6px 6px 1px -6px rgba(255,255,255,0.65),inset 0 0 2px rgba(0,0,0,0.65),0 6px 12px rgba(0,0,0,0.22);
}
.hover\:brightness-110:hover {
--tw-brightness: brightness(110%);
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
}
}
.focus-visible\:outline-2:focus-visible {
outline-style: var(--tw-outline-style);
outline-width: 2px;
}
.focus-visible\:outline-offset-2:focus-visible {
outline-offset: 2px;
}
.focus-visible\:outline-neutral-900:focus-visible {
outline-color: var(--color-neutral-900);
}
.active\:scale-100:active {
--tw-scale-x: 100%;
--tw-scale-y: 100%;
--tw-scale-z: 100%;
scale: var(--tw-scale-x) var(--tw-scale-y);
}
.disabled\:pointer-events-none:disabled {
pointer-events: none;
}
.disabled\:cursor-not-allowed:disabled {
cursor: not-allowed;
}
.disabled\:opacity-50:disabled {
opacity: 50%;
}
@media (prefers-reduced-motion: reduce) {
.motion-reduce\:transition-none {
transition-property: none;
}
@media (hover: hover) {
.motion-reduce\:group-hover\:translate-y-0:is(:where(.group):hover *) {
--tw-translate-y: 0px;
translate: var(--tw-translate-x) var(--tw-translate-y);
}
.motion-reduce\:group-hover\:scale-100:is(:where(.group):hover *) {
--tw-scale-x: 100%;
--tw-scale-y: 100%;
--tw-scale-z: 100%;
scale: var(--tw-scale-x) var(--tw-scale-y);
}
.motion-reduce\:hover\:scale-100:hover {
--tw-scale-x: 100%;
--tw-scale-y: 100%;
--tw-scale-z: 100%;
scale: var(--tw-scale-x) var(--tw-scale-y);
}
}
}
}
:root {
--background: #fff;
--foreground: #111;
--primary: #171717;
--primary-foreground: #fff;
--secondary: #eee;
--secondary-foreground: #171717;
--muted: #eee;
--muted-foreground: #666;
--accent: #eee;
--accent-foreground: #171717;
--border: #ddd;
--input: #ddd;
--ring: #777;
--destructive: #dc2626;
--destructive-foreground: #fff;
--popover: #fff;
--popover-foreground: #111;
--success: #15803d;
--success-foreground: #fff;
--radius: .625rem;
--hairline: 1px;
}
.dark {
--background: #090909;
--foreground: #fafafa;
--primary: #fafafa;
--primary-foreground: #171717;
--secondary: #262626;
--secondary-foreground: #fafafa;
--muted: #262626;
--muted-foreground: #a3a3a3;
--accent: #262626;
--accent-foreground: #fafafa;
--border: #333;
--input: #333;
--popover: #171717;
--popover-foreground: #fafafa;
}
@keyframes code-panel-shift {
0%, 100% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
}
@keyframes caret-blink {
0%, 49% {
opacity: 1;
}
50%, 100% {
opacity: 0;
}
}
@keyframes wave-hand {
0%, 100% {
transform: rotate(0deg);
}
50% {
transform: rotate(-12deg);
}
}
@keyframes marketing-go-back-in {
from {
opacity: 0;
transform: translateX(-6px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes showcase-fade-in {
from {
opacity: 0;
transform: translateY(3px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes watch-ring-draw-outer {
from {
stroke-dasharray: 0 163;
}
to {
stroke-dasharray: 121 163;
}
}
@keyframes watch-ring-draw-middle {
from {
stroke-dasharray: 0 119;
}
to {
stroke-dasharray: 74 119;
}
}
@keyframes watch-ring-draw-inner {
from {
stroke-dasharray: 0 75;
}
to {
stroke-dasharray: 66 75;
}
}
@keyframes watch-brand-line {
from {
opacity: 0;
transform: translateY(5px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes showcase-progress {
0% {
transform: scaleX(0.12);
}
100% {
transform: scaleX(0.96);
}
}
@keyframes showcase-art-zoom {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.07);
}
}
@keyframes ipod-bar {
0%, 100% {
transform: scaleY(0.28);
}
50% {
transform: scaleY(1);
}
}
@property --tw-translate-x {
syntax: "*";
inherits: false;
initial-value: 0;
}
@property --tw-translate-y {
syntax: "*";
inherits: false;
initial-value: 0;
}
@property --tw-translate-z {
syntax: "*";
inherits: false;
initial-value: 0;
}
@property --tw-border-style {
syntax: "*";
inherits: false;
initial-value: solid;
}
@property --tw-leading {
syntax: "*";
inherits: false;
}
@property --tw-blur {
syntax: "*";
inherits: false;
}
@property --tw-brightness {
syntax: "*";
inherits: false;
}
@property --tw-contrast {
syntax: "*";
inherits: false;
}
@property --tw-grayscale {
syntax: "*";
inherits: false;
}
@property --tw-hue-rotate {
syntax: "*";
inherits: false;
}
@property --tw-invert {
syntax: "*";
inherits: false;
}
@property --tw-opacity {
syntax: "*";
inherits: false;
}
@property --tw-saturate {
syntax: "*";
inherits: false;
}
@property --tw-sepia {
syntax: "*";
inherits: false;
}
@property --tw-drop-shadow {
syntax: "*";
inherits: false;
}
@property --tw-drop-shadow-color {
syntax: "*";
inherits: false;
}
@property --tw-drop-shadow-alpha {
syntax: "<percentage>";
inherits: false;
initial-value: 100%;
}
@property --tw-drop-shadow-size {
syntax: "*";
inherits: false;
}
@property --tw-backdrop-blur {
syntax: "*";
inherits: false;
}
@property --tw-backdrop-brightness {
syntax: "*";
inherits: false;
}
@property --tw-backdrop-contrast {
syntax: "*";
inherits: false;
}
@property --tw-backdrop-grayscale {
syntax: "*";
inherits: false;
}
@property --tw-backdrop-hue-rotate {
syntax: "*";
inherits: false;
}
@property --tw-backdrop-invert {
syntax: "*";
inherits: false;
}
@property --tw-backdrop-opacity {
syntax: "*";
inherits: false;
}
@property --tw-backdrop-saturate {
syntax: "*";
inherits: false;
}
@property --tw-backdrop-sepia {
syntax: "*";
inherits: false;
}
@property --tw-duration {
syntax: "*";
inherits: false;
}
@property --tw-ease {
syntax: "*";
inherits: false;
}
@property --tw-scale-x {
syntax: "*";
inherits: false;
initial-value: 1;
}
@property --tw-scale-y {
syntax: "*";
inherits: false;
initial-value: 1;
}
@property --tw-scale-z {
syntax: "*";
inherits: false;
initial-value: 1;
}
@property --tw-outline-style {
syntax: "*";
inherits: false;
initial-value: solid;
}
@layer properties {
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
*, ::before, ::after, ::backdrop {
--tw-translate-x: 0;
--tw-translate-y: 0;
--tw-translate-z: 0;
--tw-border-style: solid;
--tw-leading: initial;
--tw-blur: initial;
--tw-brightness: initial;
--tw-contrast: initial;
--tw-grayscale: initial;
--tw-hue-rotate: initial;
--tw-invert: initial;
--tw-opacity: initial;
--tw-saturate: initial;
--tw-sepia: initial;
--tw-drop-shadow: initial;
--tw-drop-shadow-color: initial;
--tw-drop-shadow-alpha: 100%;
--tw-drop-shadow-size: initial;
--tw-backdrop-blur: initial;
--tw-backdrop-brightness: initial;
--tw-backdrop-contrast: initial;
--tw-backdrop-grayscale: initial;
--tw-backdrop-hue-rotate: initial;
--tw-backdrop-invert: initial;
--tw-backdrop-opacity: initial;
--tw-backdrop-saturate: initial;
--tw-backdrop-sepia: initial;
--tw-duration: initial;
--tw-ease: initial;
--tw-scale-x: 1;
--tw-scale-y: 1;
--tw-scale-z: 1;
--tw-outline-style: solid;
}
}
}