You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/types/src/appearance.ts
+61-51Lines changed: 61 additions & 51 deletions
Original file line number
Diff line number
Diff line change
@@ -833,57 +833,67 @@ export type PricingTableTheme = Theme;
833
833
exporttypeCheckoutTheme=Theme;
834
834
exporttypePlanDetailTheme=Theme;
835
835
836
-
exporttypeAppearance<T=Theme>=T&{
836
+
typeGlobalAppearanceOptions={
837
837
/**
838
-
* Theme overrides that only apply to the `<SignIn/>` component
838
+
* The name of the CSS layer for Clerk component styles.
839
+
* This is useful for advanced CSS customization, allowing you to control the cascade and prevent style conflicts by isolating Clerk's styles within a specific layer.
840
+
* For more information on CSS layers, see the [MDN documentation on @layer](https://developer.mozilla.org/en-US/docs/Web/CSS/@layer).
839
841
*/
840
-
signIn?: T;
841
-
/**
842
-
* Theme overrides that only apply to the `<SignUp/>` component
843
-
*/
844
-
signUp?: T;
845
-
/**
846
-
* Theme overrides that only apply to the `<UserButton/>` component
847
-
*/
848
-
userButton?: T;
849
-
/**
850
-
* Theme overrides that only apply to the `<UserProfile/>` component
851
-
*/
852
-
userProfile?: T;
853
-
/**
854
-
* Theme overrides that only apply to the `<UserVerification/>` component
855
-
*/
856
-
userVerification?: T;
857
-
/**
858
-
* Theme overrides that only apply to the `<OrganizationSwitcher/>` component
859
-
*/
860
-
organizationSwitcher?: T;
861
-
/**
862
-
* Theme overrides that only apply to the `<OrganizationList/>` component
863
-
*/
864
-
organizationList?: T;
865
-
/**
866
-
* Theme overrides that only apply to the `<OrganizationProfile/>` component
867
-
*/
868
-
organizationProfile?: T;
869
-
/**
870
-
* Theme overrides that only apply to the `<CreateOrganization />` component
871
-
*/
872
-
createOrganization?: T;
873
-
/**
874
-
* Theme overrides that only apply to the `<CreateOrganization />` component
875
-
*/
876
-
oneTap?: T;
877
-
/**
878
-
* Theme overrides that only apply to the `<Waitlist />` component
879
-
*/
880
-
waitlist?: T;
881
-
/**
882
-
* Theme overrides that only apply to the `<PricingTable />` component
883
-
*/
884
-
pricingTable?: T;
885
-
/**
886
-
* Theme overrides that only apply to the `<Checkout />` component
887
-
*/
888
-
checkout?: T;
842
+
cssLayerName?: string;
889
843
};
844
+
845
+
exporttypeAppearance<T=Theme>=T&
846
+
GlobalAppearanceOptions&{
847
+
/**
848
+
* Theme overrides that only apply to the `<SignIn/>` component
849
+
*/
850
+
signIn?: T;
851
+
/**
852
+
* Theme overrides that only apply to the `<SignUp/>` component
853
+
*/
854
+
signUp?: T;
855
+
/**
856
+
* Theme overrides that only apply to the `<UserButton/>` component
857
+
*/
858
+
userButton?: T;
859
+
/**
860
+
* Theme overrides that only apply to the `<UserProfile/>` component
861
+
*/
862
+
userProfile?: T;
863
+
/**
864
+
* Theme overrides that only apply to the `<UserVerification/>` component
865
+
*/
866
+
userVerification?: T;
867
+
/**
868
+
* Theme overrides that only apply to the `<OrganizationSwitcher/>` component
869
+
*/
870
+
organizationSwitcher?: T;
871
+
/**
872
+
* Theme overrides that only apply to the `<OrganizationList/>` component
873
+
*/
874
+
organizationList?: T;
875
+
/**
876
+
* Theme overrides that only apply to the `<OrganizationProfile/>` component
877
+
*/
878
+
organizationProfile?: T;
879
+
/**
880
+
* Theme overrides that only apply to the `<CreateOrganization />` component
881
+
*/
882
+
createOrganization?: T;
883
+
/**
884
+
* Theme overrides that only apply to the `<CreateOrganization />` component
885
+
*/
886
+
oneTap?: T;
887
+
/**
888
+
* Theme overrides that only apply to the `<Waitlist />` component
889
+
*/
890
+
waitlist?: T;
891
+
/**
892
+
* Theme overrides that only apply to the `<PricingTable />` component
893
+
*/
894
+
pricingTable?: T;
895
+
/**
896
+
* Theme overrides that only apply to the `<Checkout />` component
0 commit comments