Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion src/lib/constants/brand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,21 @@ export const BRAND = {
/** Home link target (welcome modal). */
home: import.meta.env.VITE_BRAND_HOME || 'https://pathsim.org',
/** Simulation framework name (welcome tagline). */
framework: import.meta.env.VITE_BRAND_FRAMEWORK || 'PathSim'
framework: import.meta.env.VITE_BRAND_FRAMEWORK || 'PathSim',
/**
* Supplementary plot trace colors (used after trace 0, which takes the
* accent). A re-branded build can override this so the palette doesn't clash
* with its accent (e.g. a red-accent brand drops the leading red).
*/
tracePalette: [
'#E57373', // Red
'#81C784', // Green
'#64B5F6', // Blue
'#BA68C8', // Purple
'#4DD0E1', // Cyan
'#FFB74D', // Orange
'#F06292', // Pink
'#4DB6AC', // Teal
'#90A4AE' // Grey
]
};
15 changes: 3 additions & 12 deletions src/lib/plotting/core/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/

import type { LineStyle, MarkerStyle } from './types';
import { BRAND } from '$lib/constants/brand';

// ============================================================
// RENDER QUEUE CONFIGURATION
Expand Down Expand Up @@ -46,18 +47,8 @@ export function calculateGhostOpacity(ghostIndex: number, totalGhosts: number):
// COLORS
// ============================================================

/** Supplementary trace colors (after accent) */
export const TRACE_COLORS = [
'#E57373', // Red
'#81C784', // Green
'#64B5F6', // Blue
'#BA68C8', // Purple
'#4DD0E1', // Cyan
'#FFB74D', // Orange
'#F06292', // Pink
'#4DB6AC', // Teal
'#90A4AE' // Grey
];
/** Supplementary trace colors (after accent, which is trace 0), from the brand. */
export const TRACE_COLORS = BRAND.tracePalette;

/**
* Get trace color for a signal index
Expand Down
Loading