BluxBlux

Appearance

Customize the look and feel of the Blux modal to match your dApp's branding.

Blux is easy to style so it fits the look and feel of your app. You can adjust fonts, colors, borders, and backgrounds to match your design system. Every field is optional — if you leave something out, Blux falls back to the default theme for that field.

Setup

Pass an appearance object when initializing Blux:

<BluxProvider
  config={{
    appName: "MyApp",
    networks: [networks.mainnet],
    appearance: {
      accentColor: "#0070f3",
      borderRadius: "16px",
    },
  }}
>
  {children}
</BluxProvider>
createConfig({
  appName: "MyApp",
  networks: [core.networks.mainnet],
  appearance: {
    accentColor: "#0070f3",
    borderRadius: "16px",
  },
});

Default Themes

Blux ships with built-in light and dark defaults applied automatically based on the user's system preference.

{
  logo: '',
  font: 'Manrope',
  textColor: '#000000',
  accentColor: '#0c1083',
  background: '#ffffff',
  fieldBackground: '#ffffff',
  borderRadius: '24px',
  borderColor: '#cdceee',
  borderWidth: '1px',
  outlineWidth: '1px',
}
{
  logo: '',
  font: 'Manrope',
  textColor: '#ffffff',
  accentColor: '#ffffff',
  background: '#000000',
  fieldBackground: '#1a1a1a',
  borderRadius: '24px',
  borderColor: '#333333',
  borderWidth: '1px',
  outlineWidth: '1px',
}

Properties

PropertyTypeDescription
logostringURL of your app logo displayed in the modal
fontstringFont family for all modal text
textColorstringMain text color
accentColorstringPrimary highlight or action color
backgroundstringModal background color or image
fieldBackgroundstringBackground color for input fields
borderRadiusstringCorner radius for UI elements (e.g. 16px)
borderColorstringBorder color for elements
borderWidthstringBorder width (e.g. 1px, 0)
backdropBlurstringBlur intensity behind the modal (e.g. 8px)
backdropColorstringOverlay color behind the modal
boxShadowstringBox shadow applied to the modal
outlineWidthstringOutline width — falls back to borderWidth
outlineColorstringOutline color — falls back to borderColor
outlineRadiusstringOutline corner radius — falls back to borderRadius

Want to experiment with the appearance settings visually? Try the live demo →

On this page