bright/dark themes

This commit is contained in:
Davide Scaini
2026-03-30 09:03:53 +02:00
parent 1c49d3a769
commit 2a1493a3e5
2 changed files with 109 additions and 11 deletions
+3 -3
View File
@@ -185,7 +185,7 @@
return Plot.plot({
width: w, height: h, marginLeft: 48, marginBottom: 32,
style: { background: 'transparent', color: '#a1a1aa', fontSize: '11px' },
style: { background: 'transparent', color: 'var(--text-4, #a1a1aa)', fontSize: '11px' },
x: { label: null, tickFormat: xTickFormat, grid: false, ticks: 6 },
y: { label: yLabel, grid: true, tickCount: 4 },
marks,
@@ -216,7 +216,7 @@
return Plot.plot({
width: w, height: h, marginLeft: 48, marginBottom: 32,
style: { background: 'transparent', color: '#a1a1aa', fontSize: '11px' },
style: { background: 'transparent', color: 'var(--text-4, #a1a1aa)', fontSize: '11px' },
x: { label: yLabel, grid: false, domain: [clampedZones[0][0], clampedZones[clampedZones.length - 1][1]] },
y: { label: 'Time', grid: true, tickCount: 4, tickFormat: yTickFormat },
marks: [
@@ -274,7 +274,7 @@
return Plot.plot({
width: w, height: h, marginLeft: 48, marginBottom: 32,
style: { background: 'transparent', color: '#a1a1aa', fontSize: '11px' },
style: { background: 'transparent', color: 'var(--text-4, #a1a1aa)', fontSize: '11px' },
x: { label: yLabel, grid: false, ticks: 6, domain: [trimMin, trimMax] },
y: { label: 'Time', grid: true, tickCount: 4, tickFormat: yTickFormat },
marks,