Onboard Modal Theming
Wire-up
import {
PrivacyBridgeProvider,
type OnboardModalTheme,
} from '@coti-io/coti-wallet-plugin';
const lightOnboardTheme: OnboardModalTheme = {
backdrop: { backgroundColor: 'rgba(4, 19, 61, 0.35)' },
modal: {
backgroundColor: '#ffffff',
color: '#0f172a',
border: '1px solid #e2e8f0',
},
title: { color: '#0f172a' },
description: { color: '#64748b' },
saveOptionTitle: { color: '#0f172a' },
saveOptionDescription: { color: '#64748b' },
tooltipButton: { color: '#64748b' },
primaryButton: { backgroundColor: '#1E29F6', color: '#ffffff' },
cancelButton: { color: '#64748b' },
};
export function AppRoot() {
return (
<PrivacyBridgeProvider privateUnlock={{ theme: lightOnboardTheme }}>
<App />
</PrivacyBridgeProvider>
);
}How it works
Style targets
Key
Used for
Minimum for light mode
Light / dark toggle
Optional warning text
Related docs
Last updated
Was this helpful?