Skip to content

Commit 0c5cdc0

Browse files
[dapp-kit] expose theme types so people can declare external themes more easily (#14207)
## Description I was taking a stab at migrating SuiFrens to use dapp-kit, and I noticed none of the theme types were exposed. [before] dAppTheme.ts ``` const theme = {}; // bleh const theme: ComponentProps<typeof WalletProvider>['theme'] = {}; // bleh ``` [after] dAppTheme.ts ``` const theme: Theme = {...}; ``` ## Test Plan - CI --- If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process. ### Type of Change (Check all that apply) - [ ] protocol change - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [ ] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ### Release notes
1 parent 361818a commit 0c5cdc0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/pretty-poets-confess.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@mysten/dapp-kit': minor
3+
---
4+
5+
Expose types related to theming

sdk/dapp-kit/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ export * from './hooks/useSuiClientQuery.js';
2121
export * from './hooks/useSuiClientInfiniteQuery.js';
2222
export * from './themes/lightTheme.js';
2323
export * from './types.js';
24+
25+
export type { Theme, ThemeVars, DynamicTheme } from './themes/themeContract.js';

0 commit comments

Comments
 (0)