diff --git a/.changeset/twenty-ducks-pump.md b/.changeset/twenty-ducks-pump.md
new file mode 100644
index 00000000000..1c3c8cc06fe
--- /dev/null
+++ b/.changeset/twenty-ducks-pump.md
@@ -0,0 +1,6 @@
+---
+'@clerk/clerk-js': patch
+'@clerk/types': patch
+---
+
+Refactor `` components to apply descriptors and ensure styling is properly connected to theming layer.
diff --git a/packages/clerk-js/src/ui/components/Checkout/Checkout.tsx b/packages/clerk-js/src/ui/components/Checkout/Checkout.tsx
index 848a2edc0da..7d4e4bcb933 100644
--- a/packages/clerk-js/src/ui/components/Checkout/Checkout.tsx
+++ b/packages/clerk-js/src/ui/components/Checkout/Checkout.tsx
@@ -36,9 +36,7 @@ const AuthenticatedRoutes = withCoreUserGuard((props: __experimental_CheckoutPro
-
-
-
+
);
diff --git a/packages/clerk-js/src/ui/components/Checkout/CheckoutComplete.tsx b/packages/clerk-js/src/ui/components/Checkout/CheckoutComplete.tsx
index 00b9d5cb7ab..c44ff51e7ba 100644
--- a/packages/clerk-js/src/ui/components/Checkout/CheckoutComplete.tsx
+++ b/packages/clerk-js/src/ui/components/Checkout/CheckoutComplete.tsx
@@ -1,8 +1,8 @@
import type { __experimental_CommerceCheckoutResource } from '@clerk/types';
import { useCheckoutContext } from '../../contexts';
-import { Box, Button, Col, Flex, Icon, Text } from '../../customizables';
-import { LineItems } from '../../elements';
+import { Box, Button, descriptors, Heading, Icon, Span, Text } from '../../customizables';
+import { Drawer, LineItems } from '../../elements';
import { Check } from '../../icons';
export const CheckoutComplete = ({ checkout }: { checkout: __experimental_CommerceCheckoutResource }) => {
@@ -15,44 +15,85 @@ export const CheckoutComplete = ({ checkout }: { checkout: __experimental_Commer
};
return (
-
- ({
- flex: 1,
- paddingBlock: t.space.$4,
- })}
- >
-
-
-
+
+ ({
+ margin: 'auto',
+ position: 'relative',
+ aspectRatio: '1/1',
+ display: 'grid',
+ width: '100%',
+ padding: t.space.$4,
+ flexShrink: 0,
+ })}
>
- {/* TODO(@COMMERCE): needs localization */}
- Payment was successful!
- ({ textAlign: 'center', paddingInline: t.space.$8 })}>
- {/* TODO(@COMMERCE): needs localization */}
- Minim adipisicing enim fugiat enim est ad nisi exercitation nisi exercitation quis culpa.
-
-
-
+
+
+
+ ({
+ margin: 'auto',
+ gridArea: '1/1',
+ display: 'flex',
+ position: 'relative',
+ width: t.sizes.$16,
+ height: t.sizes.$16,
+ borderRadius: t.radii.$circle,
+ backgroundImage: `linear-gradient(180deg, rgba(255, 255, 255, 0.30) 0%, rgba(0, 0, 0, 0.12) 50%, rgba(0, 0, 0, 0.30) 95.31%)`,
+ boxShadow: '0px 4px 12px 0px rgba(0, 0, 0, 0.35), 0px 1px 0px 0px rgba(255, 255, 255, 0.05) inset',
+ ':before': {
+ content: '""',
+ position: 'absolute',
+ inset: t.space.$1,
+ borderRadius: t.radii.$circle,
+ backgroundColor: t.colors.$colorBackground,
+ },
+ })}
+ >
+
+
+ ({
+ margin: 'auto',
+ gridArea: '1/1',
+ position: 'relative',
+ textAlign: 'center',
+ transform: `translateY(${t.space.$20})`,
+ })}
+ >
+
+ Payment was successful!
+
+ ({ textAlign: 'center', paddingInline: t.space.$8, marginBlockStart: t.space.$2 })}
+ >
+ {/* TODO(@COMMERCE): needs localization */}
+ Minim adipisicing enim fugiat enim est ad nisi exercitation nisi exercitation quis culpa.
+
+
+
+
- ({
- padding: t.space.$4,
- borderTopWidth: t.borderWidths.$normal,
- borderTopStyle: t.borderStyles.$solid,
- borderTopColor: t.colors.$neutralAlpha100,
- position: 'relative',
+ rowGap: t.space.$4,
})}
>
@@ -77,131 +118,37 @@ export const CheckoutComplete = ({ checkout }: { checkout: __experimental_Commer
{checkout.invoice ? checkout.invoice.id : '–'}
-