BlueRain
Github
  • 💧Introduction
  • Overview
    • 📲Quick Start
    • 🎛️Configuration with bluerain.js
    • 🎡Lifecycle Events
    • 🛣️Roadmap
  • Key Concepts
    • 🔌Plugins
      • Developing an Analytics Plugin
      • Developing a Logger Plugin
      • Developing a Theme Plugin
    • 🎣Hooks
    • 🎁Components
    • 📦BlueRain Modules
    • 🎛️Configs
    • 📈Analytics
    • 📔Logger
    • 🎨Themes
      • Installation
      • Consuming Selected Theme
      • Customise Themes
      • Customise Components
      • Theme Configs
      • Theme Structure
    • Registry
  • Guides
    • 🗿Icons
    • 🛂Migrating from V3
  • Components
    • Typography
    • Icons
      • Icon
      • DynamicIcon 📌
      • PluginIcon 📌
  • CLI
    • Expo
    • Web
    • Storybook (Web)
    • Storybook Native (Expo)
Powered by GitBook
On this page
  • In bluebase.js
  • Creating a Theme Plugin
  1. Key Concepts
  2. Themes

Installation

PreviousThemesNextConsuming Selected Theme

Last updated 6 years ago

In bluebase.js

The easiest way to install themes in BlueBase is to import your theme into the themes property in the bluebase file in your project.

bluebase.ts
const bootOptions = {

	themes: [
		import('path/to/theme-1'),
		import('path/to/theme-2'),
	]
};

export default bootOptions;

This method is especially useful if you're developing a theme or have a custom theme in your project.

But this is not how other developers may distribute their themes. As some themes may come with their components, configs, and other customisations.

Another problem with this method is that these themes cannot be disabled, while themes installed by plugins get disabled when plugins are disabled.

Hence, a better option is to package your theme as a plugin.

Creating a Theme Plugin

To register themes via plugin, you need need to create a new plugin or modify an existing one. Follow this to learn more.

🎨
guide