title: $:/core/functions/themes tags: $:/tags/Global \function is.pixel.value(value) [removesuffix[px]] \function is.percentage.value(value) [removesuffix[%]] \function is.cm.value(value) [removesuffix[cm]] \function is.mm.value(value) [removesuffix[mm]] \function is.Q.value(value) [removesuffix[Q]] \function is.in.value(value) [removesuffix[in]] \function is.pc.value(value) [removesuffix[pc]] \function is.pt.value(value) [removesuffix[pt]] \function is.em.value(value) [removesuffix[em]] \function convert.to.cm(value) [divide[37.8]] \function convert.to.mm(value) [convert.to.cmmultiply[10]] \function convert.to.Q(value) [convert.to.cmmultiply[40]] \function convert.to.in(value) [divide[96]] \function convert.to.pc(value) [convert.to.inmultiply[6]] \function convert.to.pt(value) [convert.to.inmultiply[72]] \function convert.to.em(value) [divide{$:/themes/tiddlywiki/vanilla/metrics/fontsize}] \function convert.to.pixels(value,metric) [match[cm]thenmultiply[37.8]] [match[mm]thenmultiply[37.8]divide[10]] [match[Q]thenmultiply[37.8]divide[40]] [match[in]thenmultiply[96]] [match[pc]thenmultiply[96]divide[6]] [match[pt]thenmultiply[96]divide[72]] [match[em]thenmultiply{$:/themes/tiddlywiki/vanilla/metrics/fontsize}] \function subtract.one.from.sidebarbreakpoint(value) [is.pixel.valuesubtract[1]addsuffix[px]] :else[is.cm.valuefunction[convert.to.pixels],,[cm]subtract[1]divide[37.8]addsuffix[cm]] :else[is.mm.valuefunction[convert.to.pixels],,[mm]subtract[1]divide[37.8]multiply[10]addsuffix[mm]] :else[is.Q.valuefunction[convert.to.pixels],,[Q]subtract[1]divide[37.8]multiply[40]addsuffix[Q]] :else[is.in.valuefunction[convert.to.pixels],,[in]subtract[1]divide[96]addsuffix[in]] :else[is.pc.valuefunction[convert.to.pixels],,[pc]subtract[1]divide[96]multiply[6]addsuffix[pc]] :else[is.pt.valuefunction[convert.to.pixels],,[pt]subtract[1]divide[96]multiply[72]addsuffix[pt]] :else[is.em.valuefunction[convert.to.pixels],,[em]subtract[1]divide{$:/themes/tiddlywiki/vanilla/metrics/fontsize}addsuffix[em]] \function sidebarbreakpoint() [{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}] \function sidebarbreakpoint-minus-one() [function[subtract.one.from.sidebarbreakpoint],] :else[] \function get.base.theme.metric.recursive(theme,metric) [get[dependents]enlist-input[]] :map[function[get.base.theme.metric],,] \function get.base.theme.metric(theme,metric) [addsuffix[/metrics/]addsuffix!is[missing]] :else[addsuffix[/metrics/]addsuffixis[shadow]] :else[function[get.base.theme.metric.recursive],,] \function get.base.theme(theme,metric) [function[get.base.theme.metric],,first[]removesuffixremovesuffix[/metrics/]] \function get.theme.metric(metric) [function[get.base.theme.metric],{$:/theme},first[]get[text]] \function get.base.theme.option.recursive(theme,option) [get[dependents]enlist-input[]] :map[function[get.base.theme.option],,