Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roy/rename unstable create theme #2174

Merged
merged 3 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/lovely-spies-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/themes': patch
---

Rename `unstable_createTheme` to `experimental_createTheme`
2 changes: 1 addition & 1 deletion packages/themes/src/createTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface CreateClerkThemeParams extends DeepPartial<Theme> {
elements?: Elements | ((params: { theme: InternalTheme }) => Elements);
}

export const unstable_createTheme = (appearance: Appearance<CreateClerkThemeParams>): BaseTheme => {
export const experimental_createTheme = (appearance: Appearance<CreateClerkThemeParams>): BaseTheme => {
// Placeholder method that might hande more transformations in the future
return { ...appearance, __type: 'prebuilt_appearance' };
};
4 changes: 2 additions & 2 deletions packages/themes/src/themes/dark.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { unstable_createTheme } from '../createTheme';
import { experimental_createTheme } from '../createTheme';

export const dark = unstable_createTheme({
export const dark = experimental_createTheme({
variables: {
colorBackground: '#19191A',
colorInputBackground: '#19191A',
Expand Down
4 changes: 2 additions & 2 deletions packages/themes/src/themes/neobrutalism.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { unstable_createTheme } from '../createTheme';
import { experimental_createTheme } from '../createTheme';

const buttonStyle = {
boxShadow: '3px 3px 0px #000',
Expand All @@ -14,7 +14,7 @@ const buttonStyle = {
},
};

export const neobrutalism = unstable_createTheme({
export const neobrutalism = experimental_createTheme({
variables: {
colorPrimary: '#DF1B1B',
colorTextSecondary: '#000',
Expand Down
4 changes: 2 additions & 2 deletions packages/themes/src/themes/shadesOfPurple.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { unstable_createTheme } from '../createTheme';
import { experimental_createTheme } from '../createTheme';
import { dark } from './dark';

export const shadesOfPurple = unstable_createTheme({
export const shadesOfPurple = experimental_createTheme({
baseTheme: dark,
variables: {
colorBackground: '#3f3c77',
Expand Down
Loading