Skip to content

Ecosystem Brand & Design System Playbook

This document is the canonical Single Source of Truth for implementing the PLANOVI brand identity across all repositories in the ecosystem:

  • planovi-flutter-app (panel.planovi.app — Client & Energy Cooperative SPA / Mobile)
  • planovi-converter/admin (cloud.planovi.app — IoT Converter Fleet Admin in Flutter)
  • planovi-converter (RP2350 C Firmware, Embedded Web UI ux_page.h, Serial CLI, DIN Enclosure)
  • planovi-converter/cloud (Python FastAPI Backend & Provisioning CLI)
  • planovi-microservices (Laravel 11 / PHP 8.3 + Blade + Tailwind CSS — Dealflow, Scheduler, Agreements, <iframe> embeds, and GoTrue Auth Email Templates in dealflow/email-templates/)
  • planovi-backend (Supabase Edge Functions in Deno/TypeScript, Resend Transactional Emails, PDF/DOCX Generators)
  • planovi-webpage (planovi.app & dev-webpage.planovi.app)
  • planovi-docs (docs.planovi.app — Central Documentation & Canonical brand-kit/ Hub)

All official vector, raster, favicon, and animation files are hosted statically under /brand/ in this documentation portal (canonical source: PA-IDEAS/planovi-docs/brand-kit/assets/ and public/brand/).


1. Core Brand Identity & Logo Rules

1.1 Logo Variants & Geometry

The official PLANOVI mark consists of a custom geometric lowercase wordmark planovi (with a diagonal cut on the p descender, l ascender, and i stem) paired with a vibrant green dot (#32CA42) above the i. For square/compact contexts, the standalone p symbol with a green dot in its lower-right quadrant is used.

Asset File (/brand/...)Type & DimensionsUse Case
/brand/planovi-logo-white.svgVector (viewBox="0 0 1284 375")Primary wordmark on Dark Mode surfaces (#FFFFFF letters + #32CA42 dot)
/brand/planovi-logo-black.svgVector (viewBox="0 0 1284 375")Primary wordmark on Light Mode surfaces & A4 print (#000000 letters + #32CA42 dot)
/brand/planovi-logo-currentcolor.svgVector (viewBox="0 0 1284 375")Dynamic CSS/Blade/Web wordmark (fill="currentColor" + #32CA42 dot)
/brand/planovi-logo-embedded.svgMicro-SVG (2.2 KB, viewBox="0 0 1284 375")Ultra-compact vector optimized for RP2350 Flash memory (ux_page.h)
/brand/planovi-symbol-white.svgVector (304 B, viewBox="50 70 300 300")Standalone p symbol for dark app bars, collapsed sidebars, splash screens
/brand/planovi-symbol-black.svgVector (304 B, viewBox="50 70 300 300")Standalone p symbol for light backgrounds, monochrome laser engraving
/brand/favicon.svgVector (434 B, viewBox="0 0 360 360", rx="80")Browser tab SVG favicon (#09090B rounded container + white p + #32CA42 dot)
/brand/favicon-32x32.pngPNG (32×32)Legacy browser & WebView fallback icon
/brand/apple-touch-icon.pngPNG (180×180, no alpha)iOS / iPadOS home screen & PWA icon
/brand/logo-white.png / logo-black.pngPNG (1200×350, transparent)Tightly cropped raster logos for HTML emails & DOCX/PDF engines without SVG support
/brand/planovi-logo-black.pngPNG (1920×1080)Padded official asset for Schema.org Organization.logo
/brand/og-image.pngPNG (1200×630)Default Open Graph (og:image) & Twitter Card (summary_large_image)
/brand/planovi-animacja-dark.mp4MP4 (1920×1080, 176 KB)Official animated logo reveal on dark background
/brand/planovi-animacja-light.mp4MP4 (1920×1080, 173 KB)Official animated logo reveal on light background

1.2 Mandatory Do’s & Don’ts

[!IMPORTANT] Never recreate the logo in HTML/CSS or Flutter Text() widgets. Do not render uppercase PLANOVI next to a CSS .logo-dot circle. Always use the official SVG/PNG assets above.

  • Clear space: Maintain a minimum padding around the wordmark equal to 0.5× the height of the logo (14px padding for a 28px-tall navbar logo).
  • Minimum size: Full wordmark minimum height is 20px on screen (6 mm in print). Below 20px height or in narrow 64px collapsed sidebars, switch to the standalone p symbol (planovi-symbol-*.svg).
  • Wordmark contrast: Use pure #FFFFFF in Dark Mode and pure #000000 in Light Mode. The dot above i remains #32CA42 in both modes (except 1-bit monochrome laser/thermal printing, where both paths use 100% K).

1A. Two-Tier Architecture: Platform UI vs. White-Label / Tenant Widgets

The PLANOVI ecosystem includes self-service widget builders (Dealflow, Scheduler, Agreements), white-label <iframe> embeds, and multi-style document galleries. Branding rules are strictly divided into two architectural zones — never hardcode Planovi colors over customer-configurable layers!

Zone 1: Platform UI (Native Planovi Shell)

Applies wherever users interact directly with the PLANOVI brand:

  • Marketing website, blog, and status board (planovi-webpage),
  • Core planovi-flutter-app shell (auth screens, main navigation, settings, left-hand editor panel in configurators),
  • IoT Fleet Admin (planovi-converter/admin — cloud.planovi.app) and RP2350 C Web UI (ux_page.h),
  • System transactional emails and Supabase GoTrue auth emails,
  • Default initial fallback when a tenant has not yet configured custom colors or a custom logo.

Rule in Zone 1: Use official Planovi tokens (neutral dark graphite #09090B / #121215, crisp zinc #FAFAFA / #FFFFFF, solid green #32CA42 with dark #09090B button text, #22A830 for green text on light backgrounds) and official SVG/PNG logos from assets/brand/.

Zone 2: Tenant White-Label & Co-Branded Widgets (Customer-Configurable)

Applies to views and documents styled by our customers for their own brand and embedded via <iframe> or direct links:

  • Public widget views in planovi-microservices (scheduler/index.php, dealflow/offer.php, agreements/sign.php, and Blade widget views in laravel-app),
  • Right-hand Live Preview panels and color pickers in konfiguracjebranding_screen.dart and create_dealflow_screen.dart,
  • Offer/agreement template style presets (template_styles.dart, e.g., modern_blue, minimal_white) and cooperative/client PDF/DOCX generators.

Rules in Zone 2:

  1. Unrestricted Tenant Palettes: Customers may choose any primary, accent, or background hex color (including navies, royal blues, teals, reds, etc.). Never add CI commit hooks or linters that block hex colors in presets or tenant configs.
  2. Zero Hardcoded Secondary Accents in Widget CSS: Widget stylesheets must never hardcode legacy Planovi accents (such as --accent-blue: #14B8A6) on hovers, toggles, or step indicators. Derive all interactive states from the tenant’s chosen color (color-mix(in srgb, var(--tenant-primary) 14%, transparent)).
  3. Automatic Luminance Contrast (--tenant-on-primary): Because tenant colors vary from bright yellow/green to deep navy, always compute button and selected-slot text contrast dynamically via WCAG relative luminance:
    • luminance(tenantPrimary) > 0.42 (bright colors, including default #32CA42) -> #09090B dark text,
    • luminance(tenantPrimary) <= 0.42 (dark colors, e.g., navy, royal blue, crimson) -> #FFFFFF white text.
  4. Tenant Logo Priority: Render the customer’s logo_url when present; fall back to the official Planovi logo from assets/brand/ only when unconfigured (unless white-label mode hides platform branding).

2. Master Color System & WCAG Contrast Rules (Zone 1: Platform UI & Fallbacks)

In Zone 1 (Platform UI) and unconfigured fallbacks, PLANOVI uses a strictly neutral graphite/zinc surface palette paired with official brand green (#32CA42). Legacy Planovi defaults (#0B1120, #0F172A, #14B8A6, #2DD4BF, #0D9488, #2563EB) should be replaced in Zone 1 during migration (while remaining completely valid as customer choices or template presets in Zone 2).

2.1 Brand & Surface Tokens (Dark & Light Mode)

Semantic TokenDark Mode (Default Web/IoT)Light Mode (Default Print/Docs)Usage & WCAG Rule
bg-main#09090B (rgb(9, 9, 11))#FAFAFA (rgb(250, 250, 250))Root page / scaffold background
bg-secondary#121215 (rgb(18, 18, 21))#F4F4F5 (rgb(244, 244, 245))Inputs, sidebars, secondary panels, table headers
bg-elevated#18181B (rgb(24, 24, 27))#FFFFFF (rgb(255, 255, 255))Solid cards, modals, dropdown menus, popovers
bg-glassrgba(20, 20, 24, 0.72)rgba(255, 255, 255, 0.88)Glassmorphic cards (backdrop-filter: blur(16px))
border-subtlergba(255, 255, 255, 0.08) (#27272A solid)rgba(9, 9, 11, 0.08) (#E4E4E7 solid)Card, input, and table dividers
text-main#F4F4F5 (rgb(244, 244, 245))#09090B (rgb(9, 9, 11))Primary headings and body copy (>15:1 contrast)
text-muted#A1A1AA (rgb(161, 161, 170))#52525B (rgb(82, 82, 91))Subtitles, labels, metadata (>7:1 contrast)
text-disabled#52525B (rgb(82, 82, 91))#A1A1AA (rgb(161, 161, 170))Disabled controls & placeholders
brand-solid#32CA42 (rgb(50, 202, 66))#32CA42 (rgb(50, 202, 66))Solid primary CTA buttons, active switches, logo dot
brand-hover#28B437 (rgb(40, 180, 55))#28B437 (rgb(40, 180, 55))Hover/pressed state for solid primary buttons
brand-on-solid#09090B (rgb(9, 9, 11))#09090B (rgb(9, 9, 11))CRITICAL: Text & icons placed ON #32CA42 buttons/badges (9.4:1 AAA; white #FFF is only 2.15:1 and FAILS WCAG!)
brand-text#32CA42 (rgb(50, 202, 66))#22A830 (rgb(34, 168, 48))Links, active tabs, accent icons, text on surface (#22A830 ensures WCAG AA contrast on #FAFAFA / #FFFFFF)
brand-subtlergba(50, 202, 66, 0.10)rgba(34, 168, 48, 0.08)Soft green badge/banner/selected row fill
brand-borderrgba(50, 202, 66, 0.35)rgba(34, 168, 48, 0.30)Accent card hover & active input focus ring

2.2 Semantic Status Tokens (UI, IoT Fleet & Hardware LEDs)

StateDark ModeLight ModeSubtle Fill (Dark / Light)Hardware / Platform Meaning
Operational / Online#32CA42#22A830rgba(50,202,66,0.12)System healthy, Converter online, mTLS verified, Invoice paid
Warning / Maintenance#F59E0B#D97706rgba(245,158,11,0.12)Scheduled maintenance, RS-485 retry/CRC warning, Payment due
Error / Offline / Fault#EF4444#DC2626rgba(239,68,68,0.12)Outage, Converter offline, mTLS auth failure, Overcurrent
Info / Syncing / OTA#38BDF8#0284C7rgba(56,189,248,0.12)Firmware OTA in progress, Telemetry syncing, Draft status

3. Energy & Telemetry Chart Palette

Multi-series charts in planovi-flutter-app (fl_chart / syncfusion) and planovi-converter/admin must use a deterministic semantic palette so users immediately recognize energy directions and 3-phase electrical parameters across dashboards and PDF reports.

3.1 Energy Balance Series (PV, Grid, Battery, Autarky)

SeriesDark UI HexLight UI / Print HexFill Area OpacityRationale
Autoconsumption / Balancing#32CA42#22A83020% -> 0% gradientCore Planovi value: green local clean energy
PV / Renewable Generation#FACC15#CA8A0418% -> 0% gradientSolar generation (distinct from green autarky)
Grid Import (Pobór z sieci)#F97316#EA580C15% -> 0% gradientExternal grid draw / cost-bearing energy
Grid Export (Oddawanie do OSD)#38BDF8#0284C715% -> 0% gradientSurplus fed into DSO virtual prosumer/cooperative pool
Battery / Storage SoC#A855F7#7E22CE15% -> 0% gradientBESS charge/discharge state
Baseline / Consumption Load#A1A1AA#52525BDashed line (2px)Total building demand reference curve

3.2 3-Phase Electrical Telemetry (Modbus RTU: L1, L2, L3, N)

Aligned with European PN-HD 308 S2 / IEC 60445 conductor conventions adapted for high readability on dark/light charts:

Phase / MetricDark UI HexLight UI / Print HexElectrical Parameter
Phase L1#D97706 (Warm Amber/Brown)#B45309Voltage $U_{L1}$, Current $I_{L1}$, Active Power $P_{L1}$
Phase L2#94A3B8 (Silver Slate — visible on dark!)#334155Voltage $U_{L2}$, Current $I_{L2}$, Active Power $P_{L2}$
Phase L3#818CF8 (Indigo Violet)#4F46E5Voltage $U_{L3}$, Current $I_{L3}$, Active Power $P_{L3}$
Total / 3-Phase $\Sigma$#32CA42#22A830Total Active Power $\Sigma P$, Power Factor $\cos\varphi$
Reactive Power ($Q$)#F43F5E#E11D48Inductive / Capacitive reactive energy

4. Typography, Spacing & Elevation Scale

  • Primary Web & App Font: Poppins (weights: 400 Regular, 500 Medium, 600 SemiBold, 700 Bold) with latin-ext subset for Polish diacritics (ą, ć, ę, ł, ń, ó, ś, ź, ż).
  • Dense Data / Tables / Telemetry Values: Enable tabular numerals (font-variant-numeric: tabular-nums in CSS; FontFeature.tabularFigures() in Flutter) so kWh, PLN, V, A, and Hz columns align vertically without jitter.
  • Offline / Embedded / System Fallback Stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif.
  • Monospace (Modbus Registers, Serial Logs, Hashes, Invoice IDs): JetBrains Mono, SFMono-Regular, Consolas, monospace.
  • PDF / Print Body Font: Inter or Roboto (Poppins SemiBold/Bold for headings, Inter/Roboto Regular 9.5pt–10.5pt for dense financial/kWh tables — superior legibility at small print sizes with full Polish UTF-8 support).
  • Radii:
    • Marketing & Hero Glass Cards: 24px
    • App Cards / Panels / Modals (Flutter, Laravel, Admin): 16px
    • Buttons / Inputs / Selects: 12px (App/Microservices) / 14px (Marketing)
    • Badges / Status Pills: 9999px

5. Technology Implementation Recipes

5.1 Flutter & Dart (planovi-flutter-app & planovi-converter/admin)

Drop this directly into lib/core/theme/planovi_colors.dart and lib/core/theme/app_theme.dart. Notice surfaceTintColor: Colors.transparent to prevent Material 3 from tinting neutral #121215 cards green, and built-in Client Co-Branding support via ThemeExtension.

import 'dart:ui';
import 'package:flutter/material.dart';
abstract final class PlanoviColors {
// Official Brand Green
static const Color brandSolid = Color(0xFF32CA42);
static const Color brandHover = Color(0xFF28B437);
static const Color brandOnSolid = Color(0xFF09090B); // Always dark text on #32CA42!
static const Color brandTextDark = Color(0xFF32CA42);
static const Color brandTextLight = Color(0xFF22A830); // WCAG AA on white
// Dark Surfaces (Neutral Graphite)
static const Color darkBgMain = Color(0xFF09090B);
static const Color darkBgSecondary = Color(0xFF121215);
static const Color darkBgElevated = Color(0xFF18181B);
static const Color darkBorder = Color(0xFF27272A);
static const Color darkTextMain = Color(0xFFF4F4F5);
static const Color darkTextMuted = Color(0xFFA1A1AA);
// Light Surfaces (Crisp Zinc)
static const Color lightBgMain = Color(0xFFFAFAFA);
static const Color lightBgSecondary = Color(0xFFF4F4F5);
static const Color lightBgElevated = Color(0xFFFFFFFF);
static const Color lightBorder = Color(0xFFE4E4E7);
static const Color lightTextMain = Color(0xFF09090B);
static const Color lightTextMuted = Color(0xFF52525B);
// Semantic Status
static const Color operational = Color(0xFF32CA42);
static const Color warning = Color(0xFFF59E0B);
static const Color error = Color(0xFFEF4444);
static const Color info = Color(0xFF38BDF8);
// Energy & Telemetry Chart Series
static const Color chartAutarky = Color(0xFF32CA42);
static const Color chartPvSolar = Color(0xFFFACC15);
static const Color chartGridImport = Color(0xFFF97316);
static const Color chartGridExport = Color(0xFF38BDF8);
static const Color chartBattery = Color(0xFFA855F7);
static const Color phaseL1 = Color(0xFFD97706);
static const Color phaseL2 = Color(0xFF94A3B8);
static const Color phaseL3 = Color(0xFF818CF8);
}
/// Supports Tenant / Cooperative Co-Branding for documents & white-label headers
/// while keeping the core Planovi application shell consistent.
@immutable
class TenantBrandExtension extends ThemeExtension<TenantBrandExtension> {
const TenantBrandExtension({
required this.tenantAccent,
this.tenantLogoUrl,
});
final Color tenantAccent;
final String? tenantLogoUrl;
/// Ensures tenant color meets minimum contrast on white A4 documents
Color get safeDocumentAccent {
final luminance = tenantAccent.computeLuminance();
if (luminance > 0.45) {
final hsl = HSLColor.fromColor(tenantAccent);
return hsl.withLightness((hsl.lightness * 0.65).clamp(0.15, 0.40)).toColor();
}
return tenantAccent;
}
@override
TenantBrandExtension copyWith({Color? tenantAccent, String? tenantLogoUrl}) =>
TenantBrandExtension(
tenantAccent: tenantAccent ?? this.tenantAccent,
tenantLogoUrl: tenantLogoUrl ?? this.tenantLogoUrl,
);
@override
TenantBrandExtension lerp(ThemeExtension<TenantBrandExtension>? other, double t) {
if (other is! TenantBrandExtension) return this;
return TenantBrandExtension(
tenantAccent: Color.lerp(tenantAccent, other.tenantAccent, t)!,
tenantLogoUrl: t < 0.5 ? tenantLogoUrl : other.tenantLogoUrl,
);
}
}
class PlanoviTheme {
static ThemeData dark({Color? tenantColor, String? tenantLogoUrl}) {
const scheme = ColorScheme.dark(
primary: PlanoviColors.brandSolid,
onPrimary: PlanoviColors.brandOnSolid,
secondary: PlanoviColors.brandTextDark,
onSecondary: PlanoviColors.brandOnSolid,
surface: PlanoviColors.darkBgElevated,
onSurface: PlanoviColors.darkTextMain,
error: PlanoviColors.error,
outline: PlanoviColors.darkBorder,
);
return _base(scheme, isDark: true, tenantColor: tenantColor, tenantLogoUrl: tenantLogoUrl);
}
static ThemeData light({Color? tenantColor, String? tenantLogoUrl}) {
const scheme = ColorScheme.light(
primary: PlanoviColors.brandTextLight,
onPrimary: Colors.white,
primaryContainer: PlanoviColors.brandSolid,
onPrimaryContainer: PlanoviColors.brandOnSolid,
secondary: PlanoviColors.brandTextLight,
surface: PlanoviColors.lightBgElevated,
onSurface: PlanoviColors.lightTextMain,
error: Color(0xFFDC2626),
outline: PlanoviColors.lightBorder,
);
return _base(scheme, isDark: false, tenantColor: tenantColor, tenantLogoUrl: tenantLogoUrl);
}
static ThemeData _base(
ColorScheme scheme, {
required bool isDark,
Color? tenantColor,
String? tenantLogoUrl,
}) {
return ThemeData(
useMaterial3: true,
brightness: isDark ? Brightness.dark : Brightness.light,
colorScheme: scheme,
scaffoldBackgroundColor: isDark ? PlanoviColors.darkBgMain : PlanoviColors.lightBgMain,
cardTheme: CardTheme(
color: scheme.surface,
surfaceTintColor: Colors.transparent,
elevation: 0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(16),
side: BorderSide(color: scheme.outline),
),
),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
backgroundColor: PlanoviColors.brandSolid,
foregroundColor: PlanoviColors.brandOnSolid,
elevation: 0,
padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 16),
textStyle: const TextStyle(fontWeight: FontWeight.w700, fontSize: 15),
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
),
),
extensions: [
TenantBrandExtension(
tenantAccent: tenantColor ?? PlanoviColors.brandTextLight,
tenantLogoUrl: tenantLogoUrl,
),
],
);
}
}

Reusable PlanoviLogo Flutter Widget (flutter_svg)

Bundle assets/brand/planovi-logo-white.svg, planovi-logo-black.svg, planovi-symbol-white.svg, and planovi-symbol-black.svg in pubspec.yaml:

import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
class PlanoviLogo extends StatelessWidget {
const PlanoviLogo({
super.key,
this.height = 28,
this.compact = false,
this.forceDarkBg,
});
final double height;
final bool compact; // true = 'p' symbol only (e.g. collapsed NavigationRail)
final bool? forceDarkBg;
@override
Widget build(BuildContext context) {
final isDark = forceDarkBg ?? (Theme.of(context).brightness == Brightness.dark);
final asset = compact
? (isDark ? 'assets/brand/planovi-symbol-white.svg' : 'assets/brand/planovi-symbol-black.svg')
: (isDark ? 'assets/brand/planovi-logo-white.svg' : 'assets/brand/planovi-logo-black.svg');
return SvgPicture.asset(
asset,
height: height,
semanticsLabel: 'Planovi',
);
}
}

5.2 Laravel 11 + Blade + Tailwind CSS (planovi-microservices)

Microservices (Dealflow, Scheduler, Agreements) run both standalone and inside client <iframe> embeds.

resources/css/app.css & tailwind.config.js

resources/css/app.css
:root {
--bg-main: #FAFAFA;
--bg-secondary: #F4F4F5;
--bg-elevated: #FFFFFF;
--border-subtle: rgba(9, 9, 11, 0.08);
--text-main: #09090B;
--text-muted: #52525B;
--brand: #22A830;
--brand-solid: #32CA42;
--brand-hover: #28B437;
--brand-contrast: #09090B;
--brand-subtle: rgba(34, 168, 48, 0.08);
--brand-border: rgba(34, 168, 48, 0.30);
--logo-color: #000000;
}
.dark, [data-theme="dark"] {
--bg-main: #09090B;
--bg-secondary: #121215;
--bg-elevated: #18181B;
--border-subtle: rgba(255, 255, 255, 0.08);
--text-main: #F4F4F5;
--text-muted: #A1A1AA;
--brand: #32CA42;
--brand-solid: #32CA42;
--brand-hover: #28B437;
--brand-contrast: #09090B;
--brand-subtle: rgba(50, 202, 66, 0.10);
--brand-border: rgba(50, 202, 66, 0.35);
--logo-color: #FFFFFF;
}
/* Transparent mode when ?embed=1 is passed inside client <iframe> */
html[data-embed="true"], html[data-embed="true"] body {
background: transparent !important;
}
tailwind.config.js
export default {
darkMode: ['selector', '[data-theme="dark"]'],
content: ['./resources/**/*.blade.php', './resources/**/*.js'],
theme: {
extend: {
fontFamily: {
sans: ['Poppins', 'system-ui', 'sans-serif'],
mono: ['JetBrains Mono', 'monospace'],
},
colors: {
surface: {
main: 'var(--bg-main)',
secondary: 'var(--bg-secondary)',
elevated: 'var(--bg-elevated)',
},
content: {
main: 'var(--text-main)',
muted: 'var(--text-muted)',
},
brand: {
DEFAULT: 'var(--brand)', // #22A830 light / #32CA42 dark (for text & borders)
solid: '#32CA42', // Always #32CA42 for primary CTA backgrounds
hover: '#28B437',
contrast: '#09090B', // Always dark text on solid green button!
subtle: 'var(--brand-subtle)',
border: 'var(--brand-border)',
},
},
borderRadius: {
card: '16px',
btn: '12px',
},
},
},
};

Blade <x-brand-logo /> & <iframe> Embed Rules

{{-- resources/views/components/brand-logo.blade.php --}}
@props(['class' => 'h-7 w-auto'])
<span class="inline-flex items-center text-[var(--logo-color)]" aria-label="Planovi">
{!! str_replace('<svg ', '<svg class="'.$class.'" aria-hidden="true" focusable="false" ', file_get_contents(public_path('brand/planovi-logo-currentcolor.svg'))) !!}
</span>
  • <iframe> Query Parameters (?theme=dark|light&embed=1): Read request()->query('theme', 'dark') on the <html data-theme="..."> tag and data-embed="{{ request()->boolean('embed') ? 'true' : 'false' }}".
  • Iframe Skeleton / Spinner: Use a subtle border-2 border-brand-subtle border-t-brand-solid rounded-full animate-spin spinner — never default browser blue loaders.
  • Primary Button Utility: bg-brand-solid hover:bg-brand-hover text-brand-contrast font-semibold rounded-btn px-6 py-3 transition.

5.3 C / Embedded Firmware (planovi-converter — RP2350 / Pico SDK)

The RS-485 Modbus RTU DIN-rail converter operates in isolated LAN subnets without internet access and serves its UI from Flash (src/ux/index.html -> src/ux/ux_page.h).

1. Self-Contained Zero-CDN Embedded Web UI Template (< 3.5 KB total overhead)

  • Zero external requests: System font stack + tabular numbers (font-variant-numeric: tabular-nums) for live Modbus register tables, voltage/current readouts, and baudrate configs.
  • Inline Favicon Data URI (434 B) + Minified Embedded Logo (planovi-logo-embedded.svg, 2.2 KB):
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Planovi Converter</title>
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 360'%3E%3Crect width='360' height='360' rx='80' fill='%2309090B'/%3E%3Cg transform='translate(-20,-40)'%3E%3Cpath d='M100 90H144V350L100 306V90Z' fill='%23FFF'/%3E%3Cpath d='M100 190A100 100 0 1 1 225.88 286.59L214.49 244.09A56 56 0 1 0 144 190H100Z' fill='%23FFF'/%3E%3Ccircle cx='179.81' cy='265.34' r='24' fill='%2332CA42'/%3E%3C/g%3E%3C/svg%3E">
<style>
:root{--bg:#09090B;--bg2:#121215;--card:#18181B;--bd:#27272A;--txt:#F4F4F5;--mut:#A1A1AA;--ok:#32CA42;--warn:#F59E0B;--err:#EF4444;--sync:#38BDF8}
*{box-sizing:border-box;margin:0;padding:0}
body{background:var(--bg);color:var(--txt);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-variant-numeric:tabular-nums}
header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:var(--bg2);border-bottom:1px solid var(--bd)}
.logo{color:#FFF;display:inline-flex;align-items:center;gap:10px}
.logo svg{height:22px;width:auto}
.card{background:var(--card);border:1px solid var(--bd);border-radius:12px;padding:16px}
.btn{background:var(--ok);color:#09090B;border:0;border-radius:8px;padding:8px 16px;font-weight:700;cursor:pointer}
.pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:99px;font-size:12px;font-weight:600}
.pill.ok{background:rgba(50,202,66,.14);color:var(--ok)}
.pill.warn{background:rgba(245,158,11,.14);color:var(--warn)}
.pill.err{background:rgba(239,68,68,.14);color:var(--err)}
</style>
</head>

(Embed the contents of /brand/planovi-logo-embedded.svg inside <span class="logo">...</span> — when gzipped into ux_page.h, the logo + CSS + favicon add less than 1.1 KB to RP2350 Flash.)

2. Hardware LED & Web UI Diagnostic Status Standard (planovi_brand.h)

Ensure physical enclosure LEDs (RGB WS2812 or discrete status LEDs) match the exact states shown in the embedded Web UI and cloud.planovi.app:

include/planovi_brand.h
#ifndef PLANOVI_BRAND_H
#define PLANOVI_BRAND_H
/* RGB888 Brand & Status Colors (for WS2812 / Neopixel PWM or Web JSON telemetry) */
#define PLANOVI_COLOR_BRAND_GREEN 0x32CA42u /* R:50, G:202, B:66 - Online & mTLS OK */
#define PLANOVI_COLOR_SYNC_CYAN 0x38BDF8u /* R:56, G:189, B:248 - Cloud Sync / OTA */
#define PLANOVI_COLOR_WARN_AMBER 0xF59E0Bu /* R:245, G:158, B:11 - RS-485 CRC / Retry */
#define PLANOVI_COLOR_ERR_RED 0xEF4444u /* R:239, G:68, B:68 - Fault / mTLS Fail */
/* Recommended LED Blink Patterns:
* - ONLINE + mTLS AUTHENTICATED : Solid Green (0x32CA42, 25% duty brightness)
* - MODBUS RTU TX/RX ACTIVITY : Brief 40ms pulse on RS-485 LED
* - SYNCING / PROVISIONING : Smooth 1 Hz pulse Cyan (0x38BDF8)
* - RS-485 TIMEOUT / DEGRADED : Double blink Amber (0xF59E0B) every 2s
* - mTLS CERT / NETWORK FAULT : Fast 4 Hz blink Red (0xEF4444)
*/
/* ANSI TrueColor UART / USB CDC Serial Boot Banner (115200 8N1) */
#define PLANOVI_ANSI_GREEN "\x1b[38;2;50;202;66m"
#define PLANOVI_ANSI_MUTED "\x1b[38;2;161;161;170m"
#define PLANOVI_ANSI_RESET "\x1b[0m"
#define PLANOVI_UART_BANNER \
"\r\n" \
" \x1b[1;37mplanov\x1b[0m" PLANOVI_ANSI_GREEN "\x1b[1mi\x1b[0m " \
PLANOVI_ANSI_MUTED "RS-485 Modbus RTU Telemetry Gateway (RP2350)\r\n" \
" --------------------------------------------------------" PLANOVI_ANSI_RESET "\r\n"
#endif /* PLANOVI_BRAND_H */

3. DIN-Rail Enclosure Marking (mechanical/enclosure_din.scad)

  • For silk-screen / UV printing on dark grey/black ABS/PC DIN housings (RAL 9005 / RAL 7021): use /brand/planovi-logo-white.svg (white letters + #32CA42 / Pantone 7481 C / RAL 6038 dot).
  • For 1-bit fiber laser engraving: import /brand/planovi-logo-black.svg as a single unified DXF/SVG outline (both wordmark and dot filled solid) with minimum wordmark width 22 mm (height >= 6.4 mm) so the 45° bevels on p, l, and i remain sharp.

5.4 Official PDF / DOCX Documents & Co-Branding (planovi-backend & planovi-flutter-app)

Applies to Energy Invoices, Prosumer/Cooperative Balancing Reports (Tauron/OSD), Commercial Offers, Building Agreements, Board Resolutions, and Meeting Invitations (pdf package in Dart, HTML-to-PDF in Deno, and docx templates).

A4 Layout & Typography Specification

  1. Always Light Surface for Print: A4 pages use pure white #FFFFFF background (never dark mode — saves toner and complies with accounting archive regulations).
  2. Margins: 18 mm top/bottom, 16 mm left/right (safe printable area 178 mm × 261 mm).
  3. Co-Branding Hierarchy (Tenant Primary + Planovi Platform Stamp):
    • Cooperative / Client Documents (Invoices issued by the Cooperative, Board Resolutions, Member Declarations, Building Agreements):
      • Top-Left Header: Client/Cooperative Logo (max 42 mm × 16 mm) + Cooperative legal details (NIP, KRS, REGON).
      • Accent Bar / Table Header Tint: Uses the client’s safeDocumentAccent (auto-darkened if luminance > 0.45 so white text or dark borders stay legible), falling back to Planovi Print Green #22A830.
      • Bottom-Right Footer Stamp: "Wygenerowano w systemie" + /brand/logo-black.png (height 4.5 mm / 13pt) + document SHA-256 / timestamp + page counter Strona X z Y.
    • Direct Planovi Documents (SaaS Subscription Invoices, Commercial Offers from Planovi):
      • Top-Left Header: Official /brand/planovi-logo-black.svg (or logo-black.png, width 36 mm) + #32CA42 2pt top accent rule.
  4. Energy & Financial Tables (kWh / PLN / VAT):
    • Header row: #F4F4F5 background, #09090B 8.5pt SemiBold uppercase labels, bottom border 1pt solid #22A830 (or safeDocumentAccent).
    • Zebra striping: alternating #FFFFFF and #FAFAFA rows with 0.5pt solid #E4E4E7 horizontal dividers (no vertical grid clutter).
    • Numeric columns (Zużycie [kWh], Autokonsumpcja [kWh], Współczynnik 0.8/0.6, Kwota netto, VAT, Brutto [PLN]): right-aligned with tabular-nums and non-breaking spaces (1 240,50 kWh).
    • Summary / Total Box: #F4F4F5 card with 2pt left border in #32CA42 (or safeDocumentAccent) and 12pt Bold total payable amount in #09090B.
  5. Electronic Signature / Seal Block:
    • Dedicated 75 mm × 32 mm dashed box (1pt dashed #A1A1AA, #FAFAFA fill, 6pt radius) at the bottom of Agreements & Resolutions with label Miejsce na kwalifikowany podpis elektroniczny / pieczęć in #52525B (8pt).

5.5 Transactional & Supabase Auth Emails (GoTrue & Resend)

[!NOTE] Template Locations & Public Asset Hosting (DEV vs PROD):

  • Supabase GoTrue Auth Templates (confirm-signup.html, magic-link.html, reset-password.html, invite-user.html, etc.) live in planovi-microservices/dealflow/email-templates/ (served internally via vps-proxy:8080/email-templates/).
  • Resend Transactional Emails (send-onboarding-invitation, reminder-scheduler, etc.) live in planovi-backend/supabase/functions/.
  • Because docs.planovi.app is behind an Nginx IP Whitelist, external mail proxies (e.g., Gmail’s googleusercontent.com) cannot fetch images from Docs. Always host email PNG logos on the public marketing vhost: use https://dev-webpage.planovi.app/assets/logo-white.png while testing on develop before planovi-webpage is merged to main, and switch to https://planovi.app/assets/logo-white.png once planovi-webpage is live on PROD (both DEV and PROD emails can safely share the planovi.app logo URL afterward).

Email clients (Outlook Desktop on Windows, Gmail Web/Mobile, Apple Mail) strip <svg>, external stylesheets, CSS variables, and data:image/... base64 URIs. Always use:

  • Hosted raster PNG logo: https://planovi.app/assets/logo-black.png (or https://dev-webpage.planovi.app/assets/logo-black.png prior to PROD webpage release) on a clean #FFFFFF card header, OR logo-white.png inside a #09090B dark header bar.
  • Table-compatible inline styles with #32CA42 CTA button and #09090B bold button text:
<!DOCTYPE html>
<html lang="pl">
<body style="margin:0;padding:0;background-color:#F4F4F5;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;color:#09090B;">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="background-color:#F4F4F5;padding:32px 16px;">
<tr>
<td align="center">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="max-width:560px;background-color:#FFFFFF;border:1px solid #E4E4E7;border-radius:16px;overflow:hidden;">
<!-- Brand Header -->
<tr>
<td style="background-color:#09090B;padding:24px 32px;border-bottom:3px solid #32CA42;">
<img src="https://planovi.app/assets/logo-white.png" alt="Planovi" width="128" style="display:block;border:0;height:auto;">
</td>
</tr>
<!-- Body Content -->
<tr>
<td style="padding:32px;font-size:15px;line-height:1.65;color:#09090B;">
<h1 style="margin:0 0 16px;font-size:20px;font-weight:700;color:#09090B;">{{ .Heading }}</h1>
<p style="margin:0 0 24px;color:#52525B;">{{ .BodyText }}</p>
<!-- Primary CTA (#32CA42 bg + #09090B text = 9.4:1 AAA contrast) -->
<table role="presentation" cellpadding="0" cellspacing="0" style="margin:0 0 24px;">
<tr>
<td style="border-radius:12px;background-color:#32CA42;">
<a href="{{ .ConfirmationURL }}" target="_blank" style="display:inline-block;padding:14px 28px;font-size:15px;font-weight:700;color:#09090B;text-decoration:none;border-radius:12px;">
{{ .ButtonLabel }}
</a>
</td>
</tr>
</table>
<p style="margin:0;font-size:13px;color:#71717A;">Jeśli przycisk nie działa, skopiuj adres:<br>
<a href="{{ .ConfirmationURL }}" style="color:#22A830;word-break:break-all;">{{ .ConfirmationURL }}</a>
</p>
</td>
</tr>
<!-- Footer -->
<tr>
<td style="padding:20px 32px;background-color:#FAFAFA;border-top:1px solid #E4E4E7;font-size:12px;color:#71717A;">
&copy; PLANOVI &bull; Smart Energy Management System &bull; <a href="https://planovi.app" style="color:#22A830;text-decoration:none;">planovi.app</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

5.6 Python, Bash & Node.js CLI Standard (Zero-Dependency)

All PLANOVI CLI tools across VPS operations (planovi-vps), IoT hardware provisioning (planovi-converter), and documentation automation (planovi-docs) use the canonical zero-dependency UI modules from brand-kit/cli/ (synced via ./scripts/sync-brand.sh assets/brand --cli <dest>):

  • Python 3.10+: planovi_cli_ui.py (stdlib only + automatic Windows Virtual Terminal enablement)
  • Bash 3.2+ / 5.x: planovi_cli_ui.sh (set -euo pipefail and cron-log safe)
  • Node.js 20+ ESM: planovi_cli_ui.mjs
PrefixTrueColor ANSIStreamSemantic Role
planov + i#FFFFFF bold + #32CA42 boldstdout (stderr in --json)Official tool banner + optional [DEV] / [PROD] badge
[+]#32CA42 (50,202,66)stdoutSuccess / verification passed
[*]#38BDF8 (56,189,248)stdoutStep in progress / info / sync
[!]#F59E0B (245,158,11)stdoutWarning / --dry-run / retry
[-]#EF4444 (239,68,68)stderrFatal error (always exit non-zero)

Mandatory CLI rules:

  1. Color safety: Respect NO_COLOR, TERM=dumb, and isatty() automatically (handled by planovi_cli_ui.*) so cron logs and piped commands never contain raw ANSI escapes.
  2. Standard env & flags: Support PLANOVI_CLI_LANG=pl|en (--lang), PLANOVI_ENV=dev|prod, --dry-run for mutating actions, and --json (pure JSON on stdout, human banner/logs on stderr).
  3. Zero heavy dependencies: Do not require rich or chalk in VPS or zero-git Windows technician bundles (rich is optional for complex local tables only).
  4. VPS sudo NOPASSWD boundary: Scripts granted NOPASSWD root execution (e.g. /usr/local/bin/planovi-dev-docker) must remain minimal and never source untrusted paths.
from planovi_cli_ui import PlanoviUI
ui = PlanoviUI("Device Provisioning CLI", subtitle="RP2350 USB Provisioner", env="DEV")
ui.banner()
ui.info("Checking connected RP2350 board in BOOTSEL mode...")
ui.ok("mTLS identity verified.")
ui.kv("Hardware Serial", "PLV-2026-0042")

For FastAPI Swagger UI (FastAPI(swagger_ui_parameters=...)), set favicon_url="/static/brand/favicon.svg" so internal API portals match cloud.planovi.app. See CLI Reference & Standards for the full ecosystem CLI inventory.


6. Developer Quick-Wins per Repository & Migration Checklist

[!NOTE] No Blocking Color Linters in CI: Do NOT add pre-commit hooks or CI checks that reject commits containing specific hex codes — customers and template galleries (template_styles.dart) legitimately use arbitrary palettes in Zone 2. Use the grep command below purely as a local developer search helper to spot remaining legacy Planovi defaults in Zone 1 (Platform UI):

Terminal window
grep -rnEi "(#14B8A6|#2DD4BF|#0D9488|#2563EB|#0B1120|#0F172A|logo-dot)" \
--exclude-dir=.git --exclude-dir=node_modules --exclude-dir=vendor --exclude-dir=build --exclude-dir=.dart_tool --exclude-dir=migrations --exclude-dir=data \
--exclude="BRANDING_GUIDE.md" --exclude="brand-guidelines.md" --exclude="AGENTS.md" --exclude="CLAUDE.md" --exclude="template_styles.dart" --exclude="*.sql" --exclude="*.lock" .

Quick-Wins per Repository

  1. planovi-flutter-app:
    • Update lib/core/theme/app_colors.dart & app_theme.dart first. Keep existing field names (navy900, teal400, royal600) as @Deprecated aliases pointing to the new graphite/green tokens so 80% of the app updates immediately without merge conflicts.
    • In konfiguracjebranding_screen.dart and create_dealflow_screen.dart: style the left editor shell with Planovi graphite, update only the initial default hex values (32CA42 / 22A830 / 09090B) for new widgets, and compute preview button text color via primaryColor.computeLuminance() > 0.42 ? Color(0xFF09090B) : Colors.white.
    • In template_styles.dart: keep all customer style presets (modern_blue, minimal_white, etc.) and prepend a new default planovi_modern preset (#09090B + #32CA42).
  2. planovi-microservices:
    • Create a shared includes/tenant-theme.php helper (and Blade <x-widget-theme /> in laravel-app) that reads tenant JSON colors with #32CA42 / #09090B as fallback, computes --tenant-on-primary via WCAG luminance, and replaces hardcoded --accent-blue: #14B8A6 and color: #FFFFFF !important in scheduler/index.php, dealflow/offer.php, dealflow/inquiry.php, and agreements/sign.php.
    • Update the 9 GoTrue auth email templates in dealflow/email-templates/*.html.
  3. planovi-backend:
    • Update supabase/functions/_shared/email.ts (emailShell() + ctaButton()) — updating this single file rebrands over a dozen Resend Edge Functions at once.
    • Update fallback BRANDING in supabase/functions/_shared/form_link.ts from #2DD4BF / #0F172A to #32CA42 / #09090B (while passing through cooperative branding when configured).
  4. planovi-converter:
    • 100% Zone 1 (Platform UI): update :root variables and inline planovi-logo-embedded.svg in src/ux/index.html -> rebuild src/ux/ux_page.h, update admin/lib/theme.dart (38 lines), and update email-templates/base_template.html.

Ready-to-Paste Prompt for AI Coding Agents

Przeprowadź aktualizację brandingu w tym repozytorium zgodnie z plikiem BRANDING_GUIDE.md (z zachowaniem podziału na Strefę 1: Platform UI oraz Strefę 2: Tenant White-Label Widgets):
1. W Strefie 1 (powłoka aplikacji Planovi, logowanie, panele admina, maile systemowe, domyślne fallbacki) zastąp stare logo tekstowe oficjalnymi assetami z assets/brand/ oraz zmigruj kolory ze starego granatu/turkusu/błękitu na neutralny grafit (#09090B/#121215 dark, #FAFAFA/#FFFFFF light) i zieleń #32CA42 (z ciemnym tekstem #09090B na przyciskach #32CA42 oraz #22A830 dla zielonych linków na jasnym tle).
2. W Strefie 2 (widgety klientów Dealflow/Scheduler/Agreements, podglądy kreatorów, galerie stylów ofert template_styles.dart, dokumenty PDF klientów) NIE narzucaj sztywno kolorów Planovi — podepnij wszystkie akcenty, hovery i aktywne sloty pod dynamiczny kolor klienta (--tenant-primary / primaryColor z Planovi wyłącznie jako fallback) i wyliczaj kolor tekstu na przyciskach (#09090B vs #FFFFFF) automatycznie z luminancji koloru klienta.
3. Sprawdź sekcję 6 ("Quick Wins per Repo") w BRANDING_GUIDE.md, aby zacząć od centralnych plików współdzielonych.