import parse from "pure-color/parse"; import rgb2hsl from "pure-color/convert/rgb2hsl"; import hsl2rgb from "pure-color/convert/hsl2rgb"; import rgb2hex from "pure-color/convert/rgb2hex"; import type { FSNode, FSNodeProperties } from "lib/FilesystemAPI.svelte"; type Style = { input_background: string, input_hover_background: string, input_text: string, highlight_color: string, highlight_background: string, highlight_text_color: string, link_color: string, danger_color: string, danger_text_color: string, background_color: string, background: string, background_text_color: string, background_pattern_color: string, body_color: string, body_background: string, body_text_color: string, shaded_background: string, separator: string, shadow_color: string, card_color: string, background_image: string, background_image_size: string, background_image_position: string, background_image_repeat: string, } // Generate a branding style from a file's properties map export const branding_from_path = (path: Array) => { let style =