Etherspot
These are our V1 docs and will be deprecated soon. Please visit https://etherspot.fyi/introduction to use our new version of the SDK.
  • Welcome to Etherspot
    • Chains, Bridges & DEXes
    • Social Logins
    • Web3 Logins
  • Transaction Kit
    • Introduction
    • Code Sandboxes
    • Quick Start
    • React Hooks
      • useEtherspotAssets()
      • useEtherspotNfts()
      • useEtherspotHistory()
        • getAccountTransactions()
        • getAccountTransaction()
      • useEtherspotTransactions()
        • estimate()
        • send()
      • useEtherspotAddresses()
      • useEtherspotBalances()
    • React Components
      • <EtherspotTransactionKit />
      • <EtherspotBatches />
      • <EtherspotBatch />
      • <EtherspotTransaction />
      • <EtherspotContractTransaction />
      • <EtherspotApprovalTransaction />
      • <EtherspotTokenTransferTransaction />
  • BUIDLER React Component
    • Introduction
    • Installation
    • Integrate React Component
    • Shared Sessions
    • Wallet Connectors
    • Blocks
      • Send
      • Batching Transaction
      • Multicall Transaction
      • Swaps
      • Bridges
      • Custom Contract Interactions
      • Styling
    • Build Your Own Block
      • Cross-chain KLIMA DAO Staking
  • Etherspot SDK Guides
    • Requirements
    • Install Etherspot SDK
    • Bootstrap Etherspot SDK
      • Instantiate Etherspot SDK
    • Events
    • Etherspot Block Explorer
    • Etherspot Playground
    • Social Login using Etherspot SDK
    • Sponsored Transactions
  • Use Cases & Guides
    • Crosschain Streaming
    • Token Swaps
    • Transactions
      • Historical
      • Sending
    • Multi-chain Bridges
      • ERC20 Bridge
      • DAI - xDai Bridge
      • xDai - DAI Bridge
      • Native Token Bridge
    • Custom Contract Interaction
    • Multi-chain Assets
    • Multi-chain Gas Prices
    • Peer-to-Peer Payments
  • Reference
    • Etherspot SDK API Docs
    • Etherspot SDK on Github
    • Etherspot on NPM
    • Etherspot Playground
    • Etherspot Block Explorer
    • Etherspot Architecture
    • EIP-1271
    • Etherspot/Pillar Audit
  • Brand Assets
    • Etherspot Brand Assets
  • Security
    • Security
  • Get in touch
    • ⚒️Discord
    • Twitter
    • Telegram
Powered by GitBook
On this page

Was this helpful?

  1. BUIDLER React Component
  2. Blocks

Styling

The Etherspot BUIDLER React Component can be styled to match your theme. See an example below of a theme object that can be passed to the Etherspot component:

Example

const theme = {
  color: {
    background: {
      main: "#221f33",
      topMenu: "#443d66",
      topMenuButton: "#ff884d",
      card: "#2b2640",
      button: "#ff884d",
      closeButton: "#ff884d",
      selectInputToggleButton: "#ff884d",
      selectInput: "#443d66",
      selectInputExpanded: "#1a1726",
      selectInputImagePlaceholder: "#443d66",
      textInput: "#1a1726",
      switchInput: "#1a1726",
      switchInputActiveTab: "#443d66",
      switchInputInactiveTab: "transparent",
      pill: "#2b2640",
      checkboxInputInactive: "#665c99",
      toDropdownColor: "#F8EFEA",
    },
    text: {
      selectInput: "#ffeee6",
      selectInputOption: "#ffeee6",
      selectInputOptionSecondary: "#ffeee6",
      searchInput: "#998ae6",
      searchInputSecondary: "#998ae6",
      outerLabel: "#998ae6",
      innerLabel: "#998ae6",
      topMenu: "#998ae6",
      main: "#ffeee6",
      topBar: "#998ae6",
      buttonSecondary: "#998ae6",
      card: "#ffeee6",
      cardTitle: "#ffeee6",
      button: "#fff",
      errorMessage: "#ff4d6a",
      textInput: "#ffeee6",
      textInputSecondary: "#ffeee6",
      switchInputActiveTab: "#ffeee6",
      switchInputInactiveTab: "#bbb8cc",
      selectInputImagePlaceholder: "#ffeee6",
      cardDisabled: "#605e5e",
      pill: "#bbb8cc",
      pillValue: "#ffeee6",
    },
  },
};

This object can then be passed directly to the Etherspot component:

<Etherspot
  themeOverride={theme}
/>
PreviousCustom Contract InteractionsNextBuild Your Own Block

Last updated 2 years ago

Was this helpful?