"use client";
import { motion, AnimatePresence, type Transition } from "motion/react";
import { useState } from "react";
/**
* Add-to-cart morphing button — Rauno Freiberg style.
*
* Design rules applied:
* 1. Monochrome — neutral-900 / white / one muted accent
* 2. Spring physics everywhere — no cubic-bezier, real springs
* 3. One morphing container — layout animates via spring
* 4. Content crossfades — whole phrase, not per-character
* 5. Only transform + opacity — zero filter:blur
* 6. Fewer elements — no pills-in-pills, no checkmarks, no icons
* 7. Slot-machine flip — the only "flashy" detail, earned
* 8. Hover & press feel physical — scale springs with overshoot
*/
/* ── spring presets ── */
const SPRING_LAYOUT: Transition = {
type: "spring",
stiffness: 400,
damping: 30,
};
const SPRING_CONTENT: Transition = {
type: "spring",
stiffness: 300,
damping: 25,
};
const SPRING_TAP: Transition = {
type: "spring",
stiffness: 500,
damping: 30,
};
/* ── component ── */
interface AddToCartButtonProps {
price?: number;
currency?: string;
maxQuantity?: number;
onQuantityChange?: (quantity: number) => void;
}
export function AddToCartButton({
price = 24.99,
currency = "$",
maxQuantity = 99,
onQuantityChange,
}: AddToCartButtonProps) {
const [added, setAdded] = useState(false);
const [qty, setQty] = useState(1);
const [locked, setLocked] = useState(false);
const total = `${currency}${(price * qty).toFixed(2)}`;
const lock = () => {
setLocked(true);
setTimeout(() => setLocked(false), 350);
};
const add = () => {
if (locked) return;
lock();
setAdded(true);
setQty(1);
onQuantityChange?.(1);
};
const minus = () => {
if (qty <= 1) {
if (locked) return;
lock();
setAdded(false);
onQuantityChange?.(0);
return;
}
const n = qty - 1;
setQty(n);
onQuantityChange?.(n);
};
const plus = () => {
const n = Math.min(qty + 1, maxQuantity);
setQty(n);
onQuantityChange?.(n);
};
return (
<div className="flex items-center justify-center">
<AnimatePresence mode="popLayout" initial={false}>
{!added ? (
/* ────────────────────────────────────
STATE A — "Add to cart"
Quiet, confident, one surface.
──────────────────────────────────── */
<motion.button
key="idle"
layoutId="cart"
onClick={add}
whileHover={{ scale: 1.02 }}
whileTap={{ scale: 0.97 }}
style={{ pointerEvents: locked ? "none" : "auto" }}
className="relative flex items-center justify-center gap-2 rounded-xl bg-neutral-900 px-5 py-3 text-[14px] font-medium text-white outline-none cursor-pointer select-none border border-white/[0.08]"
transition={{
layout: SPRING_LAYOUT,
scale: SPRING_TAP,
}}
>
<motion.span
key="label-add"
initial={{ opacity: 0, y: 6 }}
animate={{ opacity: 1, y: 0 }}
exit={{ opacity: 0, y: -6 }}
transition={SPRING_CONTENT}
>
Add to cart
</motion.span>
</motion.button>
) : (
/* ────────────────────────────────────
STATE B — Quantity controls
Same surface, wider. Minimal controls.
──────────────────────────────────── */
<motion.div
key="active"
layoutId="cart"
style={{ pointerEvents: locked ? "none" : "auto" }}
className="relative flex items-center gap-3 rounded-xl bg-neutral-900 px-4 py-2.5 text-[14px] font-medium text-white border border-white/[0.08] select-none"
transition={{
layout: SPRING_LAYOUT,
}}
>
{/* ── Minus ── */}
<motion.button
onClick={minus}
whileHover={{ scale: 1.15 }}
whileTap={{ scale: 0.85 }}
initial={{ opacity: 0, scale: 0.6 }}
animate={{ opacity: 1, scale: 1 }}
exit={{ opacity: 0, scale: 0.6 }}
transition={SPRING_CONTENT}
className="flex h-7 w-7 items-center justify-center rounded-lg text-neutral-400 hover:text-white hover:bg-white/[0.06] transition-colors duration-150 cursor-pointer outline-none"
>
<span className="text-[16px] leading-none">−</span>
</motion.button>
{/* ── Quantity — slot-machine flip ── */}
<motion.div
className="relative flex h-7 w-8 items-center justify-center overflow-hidden"
initial={{ opacity: 0, scale: 0.6 }}
animate={{ opacity: 1, scale: 1 }}
exit={{ opacity: 0, scale: 0.6 }}
transition={{ ...SPRING_CONTENT, delay: 0.03 }}
>
<AnimatePresence mode="popLayout" initial={false}>
<motion.span
key={qty}
initial={{ y: 14, opacity: 0 }}
animate={{ y: 0, opacity: 1 }}
exit={{ y: -14, opacity: 0 }}
transition={{
type: "spring",
stiffness: 350,
damping: 28,
}}
className="absolute tabular-nums"
>
{qty}
</motion.span>
</AnimatePresence>
</motion.div>
{/* ── Plus ── */}
<motion.button
onClick={plus}
whileHover={{ scale: 1.15 }}
whileTap={{ scale: 0.85 }}
initial={{ opacity: 0, scale: 0.6 }}
animate={{ opacity: 1, scale: 1 }}
exit={{ opacity: 0, scale: 0.6 }}
transition={SPRING_CONTENT}
className="flex h-7 w-7 items-center justify-center rounded-lg text-neutral-400 hover:text-white hover:bg-white/[0.06] transition-colors duration-150 cursor-pointer outline-none"
>
<span className="text-[16px] leading-none">+</span>
</motion.button>
{/* ── Divider ── */}
<motion.div
className="h-4 w-px bg-white/[0.1]"
initial={{ opacity: 0, scaleY: 0 }}
animate={{ opacity: 1, scaleY: 1 }}
exit={{ opacity: 0, scaleY: 0 }}
transition={SPRING_CONTENT}
/>
{/* ── Price — slot-machine flip ── */}
<motion.div
className="relative flex h-7 items-center justify-center overflow-hidden min-w-[60px]"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{ ...SPRING_CONTENT, delay: 0.05 }}
>
<AnimatePresence mode="popLayout" initial={false}>
<motion.span
key={total}
initial={{ y: 14, opacity: 0 }}
animate={{ y: 0, opacity: 1 }}
exit={{ y: -14, opacity: 0 }}
transition={{
type: "spring",
stiffness: 350,
damping: 28,
}}
className="absolute text-neutral-400 tabular-nums text-[13px]"
>
{total}
</motion.span>
</AnimatePresence>
</motion.div>
</motion.div>
)}
</AnimatePresence>
</div>
);
}
export default AddToCartButton;
Add To Cart Button Demo
By Ruixen
Try the interaction, copy the React source files, or download the complete example.
About Add To Cart Button Demo
Add To Cart Button Demo is an animated React and Tailwind CSS button by Ruixen. 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
registry/example/add-to-cart-button-demo.tsx
import { AddToCartButton } from "@/registry/ruixenui/add-to-cart-button";
export default function AddToCartButtonDemo() {
return (
<div className="flex min-h-[200px] w-full items-center justify-center">
<AddToCartButton price={24.99} currency="$" />
</div>
);
}
registry/ruixenui/add-to-cart-button.tsx
"use client";
import { motion, AnimatePresence, type Transition } from "motion/react";
import { useState } from "react";
/**
* Add-to-cart morphing button — Rauno Freiberg style.
*
* Design rules applied:
* 1. Monochrome — neutral-900 / white / one muted accent
* 2. Spring physics everywhere — no cubic-bezier, real springs
* 3. One morphing container — layout animates via spring
* 4. Content crossfades — whole phrase, not per-character
* 5. Only transform + opacity — zero filter:blur
* 6. Fewer elements — no pills-in-pills, no checkmarks, no icons
* 7. Slot-machine flip — the only "flashy" detail, earned
* 8. Hover & press feel physical — scale springs with overshoot
*/
/* ── spring presets ── */
const SPRING_LAYOUT: Transition = {
type: "spring",
stiffness: 400,
damping: 30,
};
const SPRING_CONTENT: Transition = {
type: "spring",
stiffness: 300,
damping: 25,
};
const SPRING_TAP: Transition = {
type: "spring",
stiffness: 500,
damping: 30,
};
/* ── component ── */
interface AddToCartButtonProps {
price?: number;
currency?: string;
maxQuantity?: number;
onQuantityChange?: (quantity: number) => void;
}
export function AddToCartButton({
price = 24.99,
currency = "$",
maxQuantity = 99,
onQuantityChange,
}: AddToCartButtonProps) {
const [added, setAdded] = useState(false);
const [qty, setQty] = useState(1);
const [locked, setLocked] = useState(false);
const total = `${currency}${(price * qty).toFixed(2)}`;
const lock = () => {
setLocked(true);
setTimeout(() => setLocked(false), 350);
};
const add = () => {
if (locked) return;
lock();
setAdded(true);
setQty(1);
onQuantityChange?.(1);
};
const minus = () => {
if (qty <= 1) {
if (locked) return;
lock();
setAdded(false);
onQuantityChange?.(0);
return;
}
const n = qty - 1;
setQty(n);
onQuantityChange?.(n);
};
const plus = () => {
const n = Math.min(qty + 1, maxQuantity);
setQty(n);
onQuantityChange?.(n);
};
return (
<div className="flex items-center justify-center">
<AnimatePresence mode="popLayout" initial={false}>
{!added ? (
/* ────────────────────────────────────
STATE A — "Add to cart"
Quiet, confident, one surface.
──────────────────────────────────── */
<motion.button
key="idle"
layoutId="cart"
onClick={add}
whileHover={{ scale: 1.02 }}
whileTap={{ scale: 0.97 }}
style={{ pointerEvents: locked ? "none" : "auto" }}
className="relative flex items-center justify-center gap-2 rounded-xl bg-neutral-900 px-5 py-3 text-[14px] font-medium text-white outline-none cursor-pointer select-none border border-white/[0.08]"
transition={{
layout: SPRING_LAYOUT,
scale: SPRING_TAP,
}}
>
<motion.span
key="label-add"
initial={{ opacity: 0, y: 6 }}
animate={{ opacity: 1, y: 0 }}
exit={{ opacity: 0, y: -6 }}
transition={SPRING_CONTENT}
>
Add to cart
</motion.span>
</motion.button>
) : (
/* ────────────────────────────────────
STATE B — Quantity controls
Same surface, wider. Minimal controls.
──────────────────────────────────── */
<motion.div
key="active"
layoutId="cart"
style={{ pointerEvents: locked ? "none" : "auto" }}
className="relative flex items-center gap-3 rounded-xl bg-neutral-900 px-4 py-2.5 text-[14px] font-medium text-white border border-white/[0.08] select-none"
transition={{
layout: SPRING_LAYOUT,
}}
>
{/* ── Minus ── */}
<motion.button
onClick={minus}
whileHover={{ scale: 1.15 }}
whileTap={{ scale: 0.85 }}
initial={{ opacity: 0, scale: 0.6 }}
animate={{ opacity: 1, scale: 1 }}
exit={{ opacity: 0, scale: 0.6 }}
transition={SPRING_CONTENT}
className="flex h-7 w-7 items-center justify-center rounded-lg text-neutral-400 hover:text-white hover:bg-white/[0.06] transition-colors duration-150 cursor-pointer outline-none"
>
<span className="text-[16px] leading-none">−</span>
</motion.button>
{/* ── Quantity — slot-machine flip ── */}
<motion.div
className="relative flex h-7 w-8 items-center justify-center overflow-hidden"
initial={{ opacity: 0, scale: 0.6 }}
animate={{ opacity: 1, scale: 1 }}
exit={{ opacity: 0, scale: 0.6 }}
transition={{ ...SPRING_CONTENT, delay: 0.03 }}
>
<AnimatePresence mode="popLayout" initial={false}>
<motion.span
key={qty}
initial={{ y: 14, opacity: 0 }}
animate={{ y: 0, opacity: 1 }}
exit={{ y: -14, opacity: 0 }}
transition={{
type: "spring",
stiffness: 350,
damping: 28,
}}
className="absolute tabular-nums"
>
{qty}
</motion.span>
</AnimatePresence>
</motion.div>
{/* ── Plus ── */}
<motion.button
onClick={plus}
whileHover={{ scale: 1.15 }}
whileTap={{ scale: 0.85 }}
initial={{ opacity: 0, scale: 0.6 }}
animate={{ opacity: 1, scale: 1 }}
exit={{ opacity: 0, scale: 0.6 }}
transition={SPRING_CONTENT}
className="flex h-7 w-7 items-center justify-center rounded-lg text-neutral-400 hover:text-white hover:bg-white/[0.06] transition-colors duration-150 cursor-pointer outline-none"
>
<span className="text-[16px] leading-none">+</span>
</motion.button>
{/* ── Divider ── */}
<motion.div
className="h-4 w-px bg-white/[0.1]"
initial={{ opacity: 0, scaleY: 0 }}
animate={{ opacity: 1, scaleY: 1 }}
exit={{ opacity: 0, scaleY: 0 }}
transition={SPRING_CONTENT}
/>
{/* ── Price — slot-machine flip ── */}
<motion.div
className="relative flex h-7 items-center justify-center overflow-hidden min-w-[60px]"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{ ...SPRING_CONTENT, delay: 0.05 }}
>
<AnimatePresence mode="popLayout" initial={false}>
<motion.span
key={total}
initial={{ y: 14, opacity: 0 }}
animate={{ y: 0, opacity: 1 }}
exit={{ y: -14, opacity: 0 }}
transition={{
type: "spring",
stiffness: 350,
damping: 28,
}}
className="absolute text-neutral-400 tabular-nums text-[13px]"
>
{total}
</motion.span>
</AnimatePresence>
</motion.div>
</motion.div>
)}
</AnimatePresence>
</div>
);
}
export default AddToCartButton;
demo.tsx
export { default as default } from "@/registry/example/add-to-cart-button-demo";CSS
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
:root, :host {
--font-sans: -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-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
"Courier New", monospace;
--color-neutral-400: oklch(70.8% 0 none);
--color-neutral-900: oklch(20.5% 0 none);
--color-white: #fff;
--spacing: 0.25rem;
--font-weight-medium: 500;
--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 {
.absolute {
position: absolute;
}
.relative {
position: relative;
}
.container {
width: 100%;
@media (width >= 40rem) {
max-width: 40rem;
}
@media (width >= 48rem) {
max-width: 48rem;
}
@media (width >= 64rem) {
max-width: 64rem;
}
@media (width >= 80rem) {
max-width: 80rem;
}
@media (width >= 96rem) {
max-width: 96rem;
}
}
.flex {
display: flex;
}
.h-4 {
height: calc(var(--spacing) * 4);
}
.h-7 {
height: calc(var(--spacing) * 7);
}
.min-h-\[200px\] {
min-height: 200px;
}
.w-7 {
width: calc(var(--spacing) * 7);
}
.w-8 {
width: calc(var(--spacing) * 8);
}
.w-full {
width: 100%;
}
.w-px {
width: 1px;
}
.min-w-\[60px\] {
min-width: 60px;
}
.transform {
transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
}
.cursor-pointer {
cursor: pointer;
}
.items-center {
align-items: center;
}
.justify-center {
justify-content: center;
}
.gap-2 {
gap: calc(var(--spacing) * 2);
}
.gap-3 {
gap: calc(var(--spacing) * 3);
}
.overflow-hidden {
overflow: hidden;
}
.rounded-lg {
border-radius: var(--radius);
}
.rounded-xl {
border-radius: calc(var(--radius) + 4px);
}
.border {
border-style: var(--tw-border-style);
border-width: 1px;
}
.border-white\/\[0\.08\] {
border-color: color-mix(in srgb, #fff 8%, transparent);
@supports (color: color-mix(in lab, red, red)) {
border-color: color-mix(in oklab, var(--color-white) 8%, transparent);
}
}
.bg-neutral-900 {
background-color: var(--color-neutral-900);
}
.bg-white\/\[0\.1\] {
background-color: color-mix(in srgb, #fff 10%, transparent);
@supports (color: color-mix(in lab, red, red)) {
background-color: color-mix(in oklab, var(--color-white) 10%, transparent);
}
}
.px-4 {
padding-inline: calc(var(--spacing) * 4);
}
.px-5 {
padding-inline: calc(var(--spacing) * 5);
}
.py-2\.5 {
padding-block: calc(var(--spacing) * 2.5);
}
.py-3 {
padding-block: calc(var(--spacing) * 3);
}
.text-\[13px\] {
font-size: 13px;
}
.text-\[14px\] {
font-size: 14px;
}
.text-\[16px\] {
font-size: 16px;
}
.leading-none {
--tw-leading: 1;
line-height: 1;
}
.font-medium {
--tw-font-weight: var(--font-weight-medium);
font-weight: var(--font-weight-medium);
}
.text-neutral-400 {
color: var(--color-neutral-400);
}
.text-white {
color: var(--color-white);
}
.tabular-nums {
--tw-numeric-spacing: tabular-nums;
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
}
.transition {
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
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-150 {
--tw-duration: 150ms;
transition-duration: 150ms;
}
.outline-none {
--tw-outline-style: none;
outline-style: none;
}
.select-none {
-webkit-user-select: none;
user-select: none;
}
@media (hover: hover) {
.hover\:bg-white\/\[0\.06\]:hover {
background-color: color-mix(in srgb, #fff 6%, transparent);
}
@supports (color: color-mix(in lab, red, red)) {
.hover\:bg-white\/\[0\.06\]:hover {
background-color: color-mix(in oklab, var(--color-white) 6%, transparent);
}
}
.hover\:text-white:hover {
color: var(--color-white);
}
}
}
: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;
}
@property --tw-rotate-x {
syntax: "*";
inherits: false;
}
@property --tw-rotate-y {
syntax: "*";
inherits: false;
}
@property --tw-rotate-z {
syntax: "*";
inherits: false;
}
@property --tw-skew-x {
syntax: "*";
inherits: false;
}
@property --tw-skew-y {
syntax: "*";
inherits: false;
}
@property --tw-border-style {
syntax: "*";
inherits: false;
initial-value: solid;
}
@property --tw-leading {
syntax: "*";
inherits: false;
}
@property --tw-font-weight {
syntax: "*";
inherits: false;
}
@property --tw-ordinal {
syntax: "*";
inherits: false;
}
@property --tw-slashed-zero {
syntax: "*";
inherits: false;
}
@property --tw-numeric-figure {
syntax: "*";
inherits: false;
}
@property --tw-numeric-spacing {
syntax: "*";
inherits: false;
}
@property --tw-numeric-fraction {
syntax: "*";
inherits: false;
}
@property --tw-duration {
syntax: "*";
inherits: false;
}
@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-rotate-x: initial;
--tw-rotate-y: initial;
--tw-rotate-z: initial;
--tw-skew-x: initial;
--tw-skew-y: initial;
--tw-border-style: solid;
--tw-leading: initial;
--tw-font-weight: initial;
--tw-ordinal: initial;
--tw-slashed-zero: initial;
--tw-numeric-figure: initial;
--tw-numeric-spacing: initial;
--tw-numeric-fraction: initial;
--tw-duration: initial;
}
}
}