Module

Transit.Render.Theme

Package
purescript-transit
Repository
m-bock/purescript-transit

Color themes and harmonies for visualization generators.

This module provides color themes and color harmonies for use in visualization generators (e.g., Graphviz). Themes define overall color schemes, while color harmonies define coordinated colors for nodes and edges in graphs.

#ColorHarmony Source

type ColorHarmony = { edgeColor :: Color, edgeFont :: Color, nodeBg :: Color, nodeBorder :: Color, nodeFont :: Color }

A set of coordinated colors for nodes and edges in a graph.

#Theme Source

type Theme = { bgColor :: Color, colorHarmonies :: NonEmptyArray ColorHarmony, titleColor :: Color, undirectedEdgeColor :: Color, undirectedEdgeFontColor :: Color }

A complete color theme for graph visualization.

#getColorHarmony Source

getColorHarmony :: Theme -> Int -> ColorHarmony

Gets a color harmony from a theme by index (cycles through available harmonies).

#themeHarmonyDark Source

themeHarmonyDark :: Theme

Dark theme with colorful harmonies.

#themeHarmonyLight Source

themeHarmonyLight :: Theme

Light theme with colorful harmonies.

#themeContrastDark Source

themeContrastDark :: Theme

Dark theme with high contrast (white and black).

#themeContrastLight Source

themeContrastLight :: Theme

Light theme with high contrast (black and white).

#themeGradientDark Source

themeGradientDark :: Theme

Dark theme with gradient-style colors.

#themeGradientLight Source

themeGradientLight :: Theme

Light theme with gradient-style colors.