"use client";
import * as React from "react";
import { Slot } from "@radix-ui/react-slot";
import { cn } from "@/lib/utils";
type SizeVariant = "sm" | "default" | "lg";
interface FlowButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement> {
children: React.ReactNode;
size?: SizeVariant;
borderColor?: string;
className?: string;
asChild?: boolean;
}
const sizeMap: Record<SizeVariant, string> = {
sm: "h-8 rounded-full gap-1.5 px-3 text-sm",
default: "h-9 px-4 py-2 text-sm rounded-full",
lg: "h-10 rounded-full px-6 text-sm",
};
const borderRadiusMap: Record<SizeVariant, number> = {
sm: 16,
default: 18,
lg: 20,
};
const FlowButton = React.forwardRef<
HTMLButtonElement,
FlowButtonProps
>(
(
{
children,
size = "default",
borderColor = "var(--rotating-border-color)",
className,
asChild = false,
...props
},
ref,
) => {
const buttonRef = React.useRef<HTMLButtonElement>(null);
const [dimensions, setDimensions] = React.useState({ width: 0, height: 0 });
React.useImperativeHandle(ref, () => buttonRef.current!);
const Comp = asChild ? Slot : "button";
React.useEffect(() => {
if (buttonRef.current) {
const { offsetWidth, offsetHeight } = buttonRef.current;
setDimensions({ width: offsetWidth, height: offsetHeight });
}
}, [children]);
const buttonSize = sizeMap[size];
const radius = borderRadiusMap[size];
const createRoundedRectPath = (w: number, h: number, r: number) => {
return `M${r},0.5 H${w - r} A${r},${r} 0 0 1 ${w - 0.5},${r} V${
h - r
} A${r},${r} 0 0 1 ${w - r},${h - 0.5} H${r} A${r},${r} 0 0 1 0.5,${
h - r
} V${r} A${r},${r} 0 0 1 ${r},0.5 Z`;
};
return (
<>
<style>
{`
@keyframes dash-flow {
to {
stroke-dashoffset: -10;
}
}
`}
</style>
<div className="relative inline-block group pointer-events-none">
<div
className="absolute inset-[2px] group-hover:inset-0 pointer-events-none opacity-0 group-hover:opacity-100 transition-all ease-out duration-200 z-10"
style={{ borderRadius: `${radius}px` }}
>
<svg
width={dimensions.width}
height={dimensions.height}
viewBox={`0 0 ${dimensions.width} ${dimensions.height}`}
aria-hidden="true"
preserveAspectRatio="none"
className="absolute top-0 left-0 w-full h-full pointer-events-none"
>
<path
d={createRoundedRectPath(
dimensions.width,
dimensions.height,
radius,
)}
fill="none"
stroke={borderColor}
strokeWidth="1"
strokeDasharray="6,4"
strokeDashoffset="0"
className="group-hover:animate-[dash-flow_1s_linear_infinite]"
/>
</svg>
</div>
<Comp
ref={buttonRef}
className={cn(
"relative z-0 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 pointer-events-auto cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap font-[550] transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 bg-neutral-100 dark:bg-muted/50 text-primary dark:hover:bg-transparent hover:bg-transparent",
buttonSize,
className,
)}
{...props}
>
{children}
</Comp>
</div>
</>
);
},
);
FlowButton.displayName = "FlowButton";
export { FlowButton };
export type { FlowButtonProps };
Flow Button
By tom
Try the interaction, copy the React source files, or download the complete example.
About Flow Button
Flow Button is an animated React and Tailwind CSS button by tom. 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
docs/flow-button/demo.tsx
import { FlowButton } from "@/registry/spell-ui/flow-button";
export function Demo() {
return <FlowButton>Learn more</FlowButton>;
}
registry/spell-ui/flow-button.tsx
"use client";
import * as React from "react";
import { Slot } from "@radix-ui/react-slot";
import { cn } from "@/lib/utils";
type SizeVariant = "sm" | "default" | "lg";
interface FlowButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement> {
children: React.ReactNode;
size?: SizeVariant;
borderColor?: string;
className?: string;
asChild?: boolean;
}
const sizeMap: Record<SizeVariant, string> = {
sm: "h-8 rounded-full gap-1.5 px-3 text-sm",
default: "h-9 px-4 py-2 text-sm rounded-full",
lg: "h-10 rounded-full px-6 text-sm",
};
const borderRadiusMap: Record<SizeVariant, number> = {
sm: 16,
default: 18,
lg: 20,
};
const FlowButton = React.forwardRef<
HTMLButtonElement,
FlowButtonProps
>(
(
{
children,
size = "default",
borderColor = "var(--rotating-border-color)",
className,
asChild = false,
...props
},
ref,
) => {
const buttonRef = React.useRef<HTMLButtonElement>(null);
const [dimensions, setDimensions] = React.useState({ width: 0, height: 0 });
React.useImperativeHandle(ref, () => buttonRef.current!);
const Comp = asChild ? Slot : "button";
React.useEffect(() => {
if (buttonRef.current) {
const { offsetWidth, offsetHeight } = buttonRef.current;
setDimensions({ width: offsetWidth, height: offsetHeight });
}
}, [children]);
const buttonSize = sizeMap[size];
const radius = borderRadiusMap[size];
const createRoundedRectPath = (w: number, h: number, r: number) => {
return `M${r},0.5 H${w - r} A${r},${r} 0 0 1 ${w - 0.5},${r} V${
h - r
} A${r},${r} 0 0 1 ${w - r},${h - 0.5} H${r} A${r},${r} 0 0 1 0.5,${
h - r
} V${r} A${r},${r} 0 0 1 ${r},0.5 Z`;
};
return (
<>
<style>
{`
@keyframes dash-flow {
to {
stroke-dashoffset: -10;
}
}
`}
</style>
<div className="relative inline-block group pointer-events-none">
<div
className="absolute inset-[2px] group-hover:inset-0 pointer-events-none opacity-0 group-hover:opacity-100 transition-all ease-out duration-200 z-10"
style={{ borderRadius: `${radius}px` }}
>
<svg
width={dimensions.width}
height={dimensions.height}
viewBox={`0 0 ${dimensions.width} ${dimensions.height}`}
aria-hidden="true"
preserveAspectRatio="none"
className="absolute top-0 left-0 w-full h-full pointer-events-none"
>
<path
d={createRoundedRectPath(
dimensions.width,
dimensions.height,
radius,
)}
fill="none"
stroke={borderColor}
strokeWidth="1"
strokeDasharray="6,4"
strokeDashoffset="0"
className="group-hover:animate-[dash-flow_1s_linear_infinite]"
/>
</svg>
</div>
<Comp
ref={buttonRef}
className={cn(
"relative z-0 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 pointer-events-auto cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap font-[550] transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 bg-neutral-100 dark:bg-muted/50 text-primary dark:hover:bg-transparent hover:bg-transparent",
buttonSize,
className,
)}
{...props}
>
{children}
</Comp>
</div>
</>
);
},
);
FlowButton.displayName = "FlowButton";
export { FlowButton };
export type { FlowButtonProps };
lib/utils.ts
import type { Metadata } from "next";
import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
import { siteConfig } from "@/lib/config";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export function absoluteUrl(path: string) {
const base = process.env.NEXT_PUBLIC_APP_URL ?? siteConfig.url;
return `${base.replace(/\/$/, "")}${path.startsWith("/") ? path : `/${path}`}`;
}
export function buildOgUrl(params?: { title?: string; description?: string }) {
const url = new URL(absoluteUrl("/og"));
if (params?.title) url.searchParams.set("title", params.title);
if (params?.description) url.searchParams.set("description", params.description);
return url.toString();
}
export function constructMetadata({
title = siteConfig.name,
description = siteConfig.description,
image = absoluteUrl("/og"),
...props
}: {
title?: string;
description?: string;
image?: string;
} & Partial<Metadata> = {}): Metadata {
return {
title,
description,
keywords: siteConfig.keywords,
openGraph: {
title,
description,
type: "website",
url: siteConfig.url,
siteName: siteConfig.name,
images: [
{
url: image,
width: 1200,
height: 628,
alt: title,
},
],
},
twitter: {
card: "summary_large_image",
title,
description,
images: [image],
creator: siteConfig.links.tom.replace("https://x.com/", "@"),
},
metadataBase: new URL(siteConfig.url),
icons: "/icon.svg",
...props,
};
}
lib/config.ts
export const siteConfig = {
name: "Spell UI",
url: "https://spell.sh",
ogImage: "https://spell.sh/og",
description:
"Beautiful, sophisticated UI components designed for modern React and Tailwind CSS applications.",
carbon: {
// Setting serve to "" disables ads entirely.
serve: "CWBDE53E",
placement: "spellsh",
},
links: {
tom: "https://x.com/sushidrip",
x: "https://x.com/intent/follow?screen_name=sushidrip",
discord: "https://discord.gg/CxzqwQ2EAa",
github: "https://github.com/xxtomm/spell-ui",
// instagram: "https://instagram.com/spellui/",
},
keywords: [
"React",
"Tailwind CSS",
"Motion",
"Landing Page",
"Components",
"Next.js",
],
};
export type SiteConfig = typeof siteConfig;
demo.tsx
export { Demo as default } from "@/docs/flow-button/demo";CSS
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
:root, :host {
--color-neutral-100: oklch(97% 0 none);
--color-neutral-200: oklch(92.2% 0 none);
--spacing: 0.25rem;
--text-sm: 0.875rem;
--text-sm--line-height: calc(1.25 / 0.875);
--ease-out: cubic-bezier(0, 0, 0.2, 1);
--default-transition-duration: 150ms;
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
--default-font-family: var(--font-geist-sans);
--default-mono-font-family: var(--font-geist-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-auto {
pointer-events: auto;
}
.pointer-events-none {
pointer-events: none;
}
.absolute {
position: absolute;
}
.relative {
position: relative;
}
.inset-\[2px\] {
inset: 2px;
}
.top-0 {
top: 0px;
}
.left-0 {
left: 0px;
}
.z-0 {
z-index: 0;
}
.z-10 {
z-index: 10;
}
.inline-block {
display: inline-block;
}
.inline-flex {
display: inline-flex;
}
.h-8 {
height: calc(var(--spacing) * 8);
}
.h-9 {
height: calc(var(--spacing) * 9);
}
.h-10 {
height: calc(var(--spacing) * 10);
}
.h-full {
height: 100%;
}
.w-full {
width: 100%;
}
.shrink-0 {
flex-shrink: 0;
}
.cursor-pointer {
cursor: pointer;
}
.items-center {
align-items: center;
}
.justify-center {
justify-content: center;
}
.gap-1\.5 {
gap: calc(var(--spacing) * 1.5);
}
.gap-2 {
gap: calc(var(--spacing) * 2);
}
.rounded-full {
border-radius: calc(infinity * 1px);
}
.bg-neutral-100 {
background-color: var(--color-neutral-100);
}
.px-3 {
padding-inline: calc(var(--spacing) * 3);
}
.px-4 {
padding-inline: calc(var(--spacing) * 4);
}
.px-6 {
padding-inline: calc(var(--spacing) * 6);
}
.py-2 {
padding-block: calc(var(--spacing) * 2);
}
.text-sm {
font-size: var(--text-sm);
line-height: var(--tw-leading, var(--text-sm--line-height));
}
.font-\[550\] {
--tw-font-weight: 550;
font-weight: 550;
}
.whitespace-nowrap {
white-space: nowrap;
}
.text-primary {
color: var(--primary);
}
.opacity-0 {
opacity: 0%;
}
.transition-all {
transition-property: all;
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.transition-colors {
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.duration-200 {
--tw-duration: 200ms;
transition-duration: 200ms;
}
.ease-out {
--tw-ease: var(--ease-out);
transition-timing-function: var(--ease-out);
}
@media (hover: hover) {
.group-hover\:inset-0:is(:where(.group):hover *) {
inset: 0px;
}
.group-hover\:animate-\[dash-flow_1s_linear_infinite\]:is(:where(.group):hover *) {
animation: dash-flow 1s linear infinite;
}
.group-hover\:opacity-100:is(:where(.group):hover *) {
opacity: 100%;
}
.hover\:bg-transparent:hover {
background-color: transparent;
}
}
.focus-visible\:ring-1:focus-visible {
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.focus-visible\:ring-ring:focus-visible {
--tw-ring-color: var(--ring);
}
.focus-visible\:outline-none:focus-visible {
--tw-outline-style: none;
outline-style: none;
}
.disabled\:pointer-events-none:disabled {
pointer-events: none;
}
.disabled\:opacity-50:disabled {
opacity: 50%;
}
.dark\:bg-muted\/50:where(.dark, .dark *) {
background-color: var(--muted);
@supports (color: color-mix(in lab, red, red)) {
background-color: color-mix(in oklab, var(--muted) 50%, transparent);
}
}
@media (hover: hover) {
.dark\:hover\:bg-transparent:where(.dark, .dark *):hover {
background-color: transparent;
}
}
.\[\&_svg\]\:pointer-events-none svg {
pointer-events: none;
}
.\[\&_svg\]\:shrink-0 svg {
flex-shrink: 0;
}
.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*='size-']) {
width: calc(var(--spacing) * 4);
height: calc(var(--spacing) * 4);
}
}
: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;
}
:root {
--radius: 0.625rem;
--background: oklch(1 0 0);
--foreground: oklch(0.145 0 0);
--card: oklch(1 0 0);
--card-foreground: oklch(0.145 0 0);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.145 0 0);
--primary: oklch(0.205 0 0);
--primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.97 0 0);
--secondary-foreground: oklch(0.205 0 0);
--muted: oklch(0.97 0 0);
--muted-foreground: oklch(0.556 0 0);
--accent: oklch(0.97 0 0);
--accent-foreground: oklch(0.205 0 0);
--destructive: oklch(0.577 0.245 27.325);
--border: oklch(0.922 0 0);
--input: oklch(0.922 0 0);
--ring: oklch(0.708 0 0);
--chart-1: oklch(0.646 0.222 41.116);
--chart-2: oklch(0.6 0.118 184.704);
--chart-3: oklch(0.398 0.07 227.392);
--chart-4: oklch(0.828 0.189 84.429);
--chart-5: oklch(0.769 0.188 70.08);
--sidebar: oklch(1 0 0);
--sidebar-foreground: oklch(0.145 0 0);
--sidebar-primary: oklch(0.205 0 0);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.97 0 0);
--sidebar-accent-foreground: oklch(0.205 0 0);
--sidebar-border: oklch(0.922 0 0);
--sidebar-ring: oklch(0.708 0 0);
--rotating-border-color: var(--color-neutral-200);
}
.dark {
--background: oklch(0.1149 0 0);
--foreground: oklch(0.985 0 0);
--card: oklch(0.205 0 0);
--card-foreground: oklch(0.985 0 0);
--popover: oklch(0.205 0 0);
--popover-foreground: oklch(0.985 0 0);
--primary: oklch(0.922 0 0);
--primary-foreground: oklch(0.205 0 0);
--secondary: oklch(22.213% 0.00003 271.152);
--secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.269 0 0);
--muted-foreground: oklch(0.708 0 0);
--accent: oklch(0.269 0 0);
--accent-foreground: oklch(0.985 0 0);
--destructive: oklch(0.704 0.191 22.216);
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%);
--ring: oklch(0.556 0 0);
--chart-1: oklch(0.488 0.243 264.376);
--chart-2: oklch(0.696 0.17 162.48);
--chart-3: oklch(0.769 0.188 70.08);
--chart-4: oklch(0.627 0.265 303.9);
--chart-5: oklch(0.645 0.246 16.439);
--sidebar: oklch(0.1149 0 0);
--sidebar-foreground: oklch(0.985 0 0);
--sidebar-primary: oklch(0.488 0.243 264.376);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.269 0 0);
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(1 0 0 / 10%);
--sidebar-ring: oklch(0.556 0 0);
--rotating-border-color: var(--muted);
}
.dark .shiki, .dark .shiki span {
color: var(--shiki-dark) !important;
background-color: #0f0f0f !important;
}
@property --tw-font-weight {
syntax: "*";
inherits: false;
}
@property --tw-duration {
syntax: "*";
inherits: false;
}
@property --tw-ease {
syntax: "*";
inherits: false;
}
@property --tw-shadow {
syntax: "*";
inherits: false;
initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
syntax: "*";
inherits: false;
}
@property --tw-shadow-alpha {
syntax: "<percentage>";
inherits: false;
initial-value: 100%;
}
@property --tw-inset-shadow {
syntax: "*";
inherits: false;
initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
syntax: "*";
inherits: false;
}
@property --tw-inset-shadow-alpha {
syntax: "<percentage>";
inherits: false;
initial-value: 100%;
}
@property --tw-ring-color {
syntax: "*";
inherits: false;
}
@property --tw-ring-shadow {
syntax: "*";
inherits: false;
initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
syntax: "*";
inherits: false;
}
@property --tw-inset-ring-shadow {
syntax: "*";
inherits: false;
initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
syntax: "*";
inherits: false;
}
@property --tw-ring-offset-width {
syntax: "<length>";
inherits: false;
initial-value: 0px;
}
@property --tw-ring-offset-color {
syntax: "*";
inherits: false;
initial-value: #fff;
}
@property --tw-ring-offset-shadow {
syntax: "*";
inherits: false;
initial-value: 0 0 #0000;
}
@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-font-weight: initial;
--tw-duration: initial;
--tw-ease: initial;
--tw-shadow: 0 0 #0000;
--tw-shadow-color: initial;
--tw-shadow-alpha: 100%;
--tw-inset-shadow: 0 0 #0000;
--tw-inset-shadow-color: initial;
--tw-inset-shadow-alpha: 100%;
--tw-ring-color: initial;
--tw-ring-shadow: 0 0 #0000;
--tw-inset-ring-color: initial;
--tw-inset-ring-shadow: 0 0 #0000;
--tw-ring-inset: initial;
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-offset-shadow: 0 0 #0000;
}
}
}