Skip to main content

🎨 Theme

npm version npm downloads GitHub source code Publish NPM Packages Contributions welcome npm unpacked size language npm last update npm bundle size npm license

Welcome to the documentation for the @flexnative/theme-context package. This guide provides a comprehensive overview of how to use, customize, and extend the theming system in your FlexNative application.

Whether you're looking to simply apply a theme, toggle between light and dark mode, or build a completely custom design system, these documents will guide you through the process.

Getting Started

If you are new to the theme package, we recommend reading the documents in the following order:

  1. Theme Provider: Learn how to set up the root provider, which is the entry point for the entire theming system.
  2. Consuming the Theme: Discover the React hooks (useThemeColors, useThemeState) used to access theme properties like colors and fonts within your components.
  3. Custom Themes & Colors: A step-by-step guide to extending the default theme with your own custom colors while maintaining type safety.

Installation

You can installing FlexNative theme-context packages using npm:

npm i @flexnative/theme-context

API Reference & Guides

Dive deeper into specific parts of the theme API.