Customization & Styling
Optional Widget Customizations
Additional button settings are available out of the box by specifying the following props. Add these in the HTML component covered in the Installation page like so:
Here are the available button text modification props:
data-connect-wallet-text
- This is the text shown on the "Claim" button before it is clickable when there is no web3 wallet connection. Currently this defaults to "Connect Wallet" though can sometimes be confusing when implemented as a button. Use this prop to modify it to whatever you'd like.data-claim-text
- This is the text shown on the "Claim" button when active (e.g. when web3 wallet is connected). Use this prop to modify to whatever you'd likedata-inner-claim-text
- This is the button text shown in the widget once an NFT is selected to start the claim process. Currently this defaults to "Claim Here" (see screenshot below). Use this prop to modify it to whatever you'd like
Styling
The Campaign Widget can be styled as desired by modifying the below out-of-the-box SCSS to suit your project. Primary elements are defined below. When building a full custom campaign widget flow be sure to inspect all available elements for other classes within the flow you may like to custom style.
Manifold CSS Variables
The campaign widget has simplistic dark and light mode styles. By default, it renders according to the end-user's preferred OS colour scheme. The widget can be easily stylized by changing the appropriate Manifold CSS Variables.
This section assumes you have basic HTML and CSS knowledge.
You can also customize the identity widget using the Manifold CSS variables.
The following list of variables are those that have an effect on the identity widget:
--manifold-text--font-family--body
: sets the font-family of the widget.--manifold-text--font-size--body
: sets the font-size of the widget.--manifold-text--color--body
: sets the interior text colour.--manifold-page--color--background
: sets the background colour of the widget.--manifold-element--color--background
: sets the background colour of the form inputs.--manifold-theme--color--primary
: sets the colour for the "Submit" and "Edit" buttons.--manifold-theme--color--secondary
: sets the colour for the eligible token and already redeemed tabs.--manifold-text--color--primary
: sets the inner text colour for the "Submit" and "Edit" buttons.--manifold-text--color--secondary
: sets the inner text colour for the eligible token and already redeemed tabs.--manifold-border--color
: sets the line colour between cells in the Edit form.
Last updated