Skip to the content

Quick Start

ApollionProvider is the single entry point for theme configuration. Pass your brand seeds, a mode preference and a density; the engine derives the rest.
Start
import type { ReactNode } from 'react';
import { ApollionProvider } from '@apollion-dsi/core/themes';

const colors = { main: '#003750', primary: '#32AFDC', danger: '#E12712' };

export function Root({ children }: { children: ReactNode }) {
  return (
    <ApollionProvider colors={colors} defaultMode="system" persist="localStorage" dimension="normal">
      {children}
    </ApollionProvider>
  );
}
  • colors — light-mode seeds; omitted slots keep the stock values, and dark mode is derived from them.
  • defaultMode="system" follows the operating system; persist stores the reader's choice.
  • dimension sets the spacing density: compact, normal or spacious.

Every prop is listed on ApollionProvider.