Customizing the Styling
The files placed in the src
file tree will replace files during the build in the dock-app
repo. This allows the white label build to have custom colors and styling.
Theme
The app theme can be customized using the values in the ../src/design-system/theme.js file. The javascript file contains three customizable variables:
Theme
: Contains the following variables:borderRadius
determines the radius of some card-like elements, e.g Modals.touchOpacity
the opacity of pressable items that should indicate pressed state
COLORS
: Determines the color scheme of the entire application. It uses a color pallet system (You can generate a color pallet using any of the tools like JSON Color Palette Generator, Smart Swatch, or Palx). This section contains the following main colors:primary
: primary brand color pallet.primaryButton
: range200-600
pallet for primary button phases (disabled, pressed, etc.) and atext
value to set the color of the primary button text.secondaryButton
: range200-600
pallet for secondary button phases (disabled, pressed, etc.) and atext
value to set the color of secondary button texts.secondary
: with only 400 and 600 values in the pallet, they is used as accent backgrounds in sections of the application. To maintain contrast in values are recommended to be dark colored for dark themed customization and light for light themed customization.neutral
: a pallet for background and text colors. Contrast between 1 and 900 should be as much as possible, with light theme ranging from very dark(e.g {1: "black"}) to very light (e.g {900: "white}) and dark theme ranging the opposite wayorange
: test mode indicator background and text colorsteal
: validity inidicator colorsblue
: used once for information box background.warning
: pending state indicator colorerror
: error state indicotor palletbackdrop
: used for modal backdrop transparency (dark)whiteBackdrop
: used for modal backdrop transparency (light)warningBg
: warning box background
baseTheme
: This should require no much changes. However if there is a need to change the style for specific components, this can be updated based on nativebase guideline.
See examples of white labeled wallet designs
Images
The app icon and the splash screen logo can be customized on the app.
TIP You can use tools like https://www.appicon.co to auto-size your images to the appropriate sizes.
Updating the Splash Screen Logo
There are two logos with sizes variations available for customization, they need to be replaced in the following folders.
Please ensure that the image width matches while allowing the height to be flexible. Avoid adding empty margins to fill the remaining height.
Updating the App Icon
The app icon should be a .png
file and needs to be replaced with your custom app icon in these sizes.
Last updated