LogoLogo
Manifold for Developers
Manifold for Developers
  • Introduction
  • Shopify Merch Bridge
    • Overview
    • Tutorial
      • Step 1: Product Gate Setup
        • 1.1: Configure the Product
        • 1.2: Install Manifold Merch Bridge
        • 1.2: Create a New Product Gate
        • 1.3: Link a Product to the Gate
        • 1.4: Add Rules
      • Step 2: Store Theme Setup
        • 2.1 The Theme Editor
        • 2.2 Product Page Setup
        • 2.3 Cart Page Setup
    • Advanced Configuration
    • FAQ / Error Help
    • Reference
      • Product and Gate Configuration
        • Shopify Products
        • Product Gates
          • Gate Products
          • Rules
      • Custom Themes
      • Updating to the Latest Version
      • UI Configuration Options
      • Advanced Usage
      • Common Issues
  • Guides
    • Getting Started
    • HTML
    • React
    • NextJS
    • Vue
    • Wix
    • Squarespace
      • Simple Squarespace Site
      • Customised Squarespace Template
  • Resources
    • Apps
      • Grant Types
    • Widgets
      • Directory
      • Manifold CSS Variables
        • Scheme Utility Classes
        • List of Manifold CSS Variables
      • Connect Widget
        • Blockchain Interaction
        • Wallet Authentication
        • Data Client
          • NFT Information Retrieval
            • getNFT
            • getNFTsOfOwner
            • ownerHasNFT
            • getCollectors
          • Data Storage and Retrieval
        • Advanced Configuration
        • Customization & Styling
        • Automatic Error Handling
      • Campaign Widget
        • Campaign Creation
          • Questionnaire
        • Campaign Progress
        • Customization & Styling
      • Curation Widget
      • Marketplace Widgets
        • Widgets
          • Data Attributes
          • Layout Widgets
          • Card Widgets
          • Listing Widgets
        • Window Events
        • Troubleshooting
        • Customization & Styling
        • Version Change Notes
          • 3.2.1 - CSS Selector Changes
          • 3.1.1 - CSS Selector Changes
      • Claim Widgets
        • Widgets
          • Data Attributes
          • Complete Claim Widget
          • Buy Button Only Widget
          • Mint Count Widget
        • Troubleshooting
        • Customization & Styling
        • Version Change Notes
          • 1.7.0, 1.7.1 - CSS Selector Changes
      • Restricted Token Widget
        • Customization & Styling
      • Wallet Identity Widget
        • Customization & Styling
      • Subscription Widget
      • 6551 Display Widget
    • Manifold Ethereum Provider
  • Tools and APIs
    • Merkle Tree Tool
    • Snapshot Tool
    • Discord Tools
    • Server-Side Session Authentication
      • Signature Grant
      • Authorization Code Grant
  • Smart Contracts
    • Manifold Creator
      • Contracts
        • Creator Core
          • Common Functions
          • ERC721 Functions
          • ERC1155 Functions
        • Extensions
          • Extensions Functions
          • Extensions Examples
          • Extensions Deployment Guide
            • Dynamic NFT Extension
            • Lazy Mint Extension ERC1155
            • Lazy Mint Extension ERC721
        • Mint Permissions
          • Mint Permissions Functions
      • Prior Versions
        • 1.0.x
          • Creator Core
            • Common Functions
            • ERC721 Functions
            • ERC1155 Functions
          • Extensions
            • Extensions Functions
            • Extensions Examples
            • Extensions Deployment Guide
              • Dynamic NFT Extension
              • Lazy Mint Extension ERC1155
              • Lazy Mint Extension ERC721
          • Mint Permissions
            • Mint Permissions Functions
        • 2.0.x
          • Creator Core
            • Common Functions
            • ERC721 Functions
            • ERC1155 Functions
          • Extensions
            • Extensions Functions
            • Extensions Examples
            • Extensions Deployment Guide
              • Dynamic NFT Extension
              • Lazy Mint Extension ERC1155
              • Lazy Mint Extension ERC721
          • Mint Permissions
            • Mint Permissions Functions
    • Marketplace
      • Identity Verifier
    • Royalty Registry
  • Contact Us
Powered by GitBook
On this page
  • Optional Properties
  • Custom CSS
  • Manifold CSS Variables

Was this helpful?

  1. Resources
  2. Widgets
  3. Connect Widget

Customization & Styling

Changing how the Connect Widget looks

Last updated 2 years ago

Was this helpful?

Optional Properties

Additional Connect Widget display settings are available out of the box by specifying the following props:

  • data-override-connect-text - Overrides the default "Connect" button text so you can customize to anything you'd like.

  • data-show-balance - (boolean) displays the ETH balance of the user's wallet next to their name.

  • data-show-chain - (boolean) displays a network connection indicator to the left of the button text (e.g. green for mainnet) when true.

  • data-always-open - (boolean) whether to always show all connection options (rather than user hitting "connect" to open the menu.

Here's an example of styling the Connect Button by data-show-chain, and data-show-balance.

<div
  data-widget="m-connect"
  data-show-chain="true"
  data-show-balance="true"
  data-client-id="<your app client id>"
  data-app-name="<your app name>"
  data-network="<your desired network's chain id>"
></div>

Once the user successfully connects you can see the additional UI elements rendered (default styling).

It's also important to note that when the user is connected and clicks on their name, a dropdown will appear displaying a Disconnect option.

Custom CSS

By default the Connect Widget uses a standard html button style, however, we've built the widget to allow custom CSS styling as desired to fit the look and feel of your website or application. Here's an example of how to add custom CSS styling and button text upon installation. Inspect the comments in the HTML and CSS files for more information.

CodePen

Manifold CSS Variables

This section assumes you have basic HTML and CSS knowledge.

You can also customize the Connect Widget (>= 2.1.0) using the Manifold CSS variables.

The following list of variables are those that have an effect on the Connect Widget:

Connect Widget Overrides

#m-connection {
  /** overrides of existing shared variables */
  --manifold-border--radius: 10px;
  --manifold-border--color: var(--manifold-text--color--body);
  --manifold-text--font-size--body: 16px;
}

Theme

  • --manifold-theme-color--primary: background colour for the widget's buttons on hover.

  • --manifold-text-color--primary: text colour for the widget's buttons on hover.

Text

  • --manifold-text--font-family--body: affects the font-family of the widget.

  • --manifold-text--font-size--body: affects the font-size of the widget.

  • --manifold-text--color--body: affects the default colour of the widget text.

Border

  • --manifold-border--color: colour of the border around the widget's buttons. By default, set to the same colour as the text.

  • --manifold-border--width: width of the border around the widget's buttons.

  • --manifold-border--style: style of the border around the widget's buttons.

  • --manifold-border--radius: radius of the border around the widget's buttons.

Other

  • --manifold-element--color--background: affects the background colour of the button.

Open in a new window to see more clearly