Ronin Modal
Theming

Theming

By default Ronin Modal uses light mode, you can use the darkMode flag to change the theme:

import { saigon, createRoninModal } from "@roninbuilders/modal"
 
createRoninModal({
	chain: saigon,
	projectId: "YOUR_WALLETCONNECT_PROJECT_ID",
  darkMode: true
})

Custom Theming

If you would like to customize the modal more you can use different CSS properties:

By default Font Family is inherited but it can also be overridden.

CSS properties of <ronin-button>:

CSS PropertyDefault
--rm-connect-btn-width134px
--rm-connect-btn-font-familyinherit
--rm-connect-btn-font-size0.95rem
--rm-connect-btn-font-weight500
--rm-connect-btn-border-radius0.4rem
--rm-connect-btn-padding11px 13px
--rm-connect-btn-bg-color#0d6efd
--rm-connect-btn-bg-color-hover#0d6efde6
--rm-connect-btn-color#fff

CSS properties of <ronin-modal>:

Global

CSS PropertyDefault (light mode)Default (dark mode)
--rm-global-font-familyinherit-
--rm-global-font-size20px-
--rm-global-font-weight500-
--rm-global-border-radius14px-
--rm-global--bg-color#fff#1a1c23
--rm-global-color#000#fff

Titles

CSS PropertyDefault (light mode)Default (dark mode)
--rm-title-font-size20px-
--rm-title-font-weight500-
--rm-title-color#000#fff

Primary Buttons

CSS PropertyDefault (light mode)Default (dark mode)
--rm-main-btn-font-size1.1rem-
--rm-main-btn-font-weight500-
--rm-main-btn-border-radius0.4rem-
--rm-main-btn-bg-color#F6F7F9transparent
--rm-main-btn-bg-color-hover#eceef1#21232c
--rm-main-btn-color#000#fff

Secondary Buttons

CSS PropertyDefault (light mode)Default (dark mode)
--rm-secondary-btn-font-size17px-
--rm-secondary-btn-font-weight500-
--rm-secondary-btn-border-radius10px-
--rm-secondary-btn-height30px-
--rm-secondary-btn-bg-color#F6F7F9#282a39
--rm-secondary-btn-bg-color-hover#eceef1#2d3142
--rm-secondary-btn-color#000#fff