From eea80c78cfce99b504b60acab8509fb49999bdc7 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Jun 2026 17:26:45 -0500 Subject: feat(theme-selector): two-column layout, contrast ratings, taller samples I restructured the page into ordered rows. The top row splits palette on the left and save / load theme on the right. The next row, "code/color assignments," puts the assignment table on the left and a single code sample on the right, picked by a language dropdown and recolored live from the assignments. The last row is the interface faces. I added a contrast column to the assignment table: each color's WCAG ratio on the current background plus an AAA / AA / FAIL rating, recomputed live and re-rated when the background changes. I also replaced the six-language scroll with the one-language picker, lengthened every sample to roughly the height of the assignment table, and renamed the title suffix to "theme." --- scripts/theme-selector/theme-selector.html | 95 +++++++++++++++++++----------- 1 file changed, 59 insertions(+), 36 deletions(-) (limited to 'scripts/theme-selector/theme-selector.html') diff --git a/scripts/theme-selector/theme-selector.html b/scripts/theme-selector/theme-selector.html index 827529c5..cda479fa 100644 --- a/scripts/theme-selector/theme-selector.html +++ b/scripts/theme-selector/theme-selector.html @@ -25,48 +25,69 @@ #export{width:100%;height:180px;margin-top:10px;background:#0d0b0a;color:#a4ac64;border:1px solid #252321;border-radius:6px;font:10pt monospace;padding:10px} .filebar{margin:6px 0 0;display:flex;gap:8px;align-items:center} #pagetitle{font-size:30px;color:#cdced1;font-weight:normal;border:none;margin:4px 0 18px;padding:0} + .cols{display:flex;gap:28px;align-items:flex-start} + .pane{min-width:0} .pane.grow{flex:1} .pane.saveload{flex:0 0 auto;margin-left:auto} + .pane h1{margin-top:0} + .filebar.end{justify-content:flex-end} .langbar{margin-bottom:10px;display:flex;gap:8px;align-items:center} + #codepre{width:100%;box-sizing:border-box} -

Untitled: color palette

-

code samples

-

Elisp

Go

Python

TypeScript

Shell

C/C++

-

color → category — chip reassigns · N/B/I sets weight & slant · click a header to sort

-
color △stylecategory △example
-

UI / interface faces — foreground & background per face

-
faceforegroundbackgroundpreview
-

palette — add / remove / rename / drag to reorder

-
-
- - - - -
-

save / load theme

-
- +

Untitled: theme

+
+
+

palette

+
+
+ + + + +
+
+
+

save / load theme

+
+ +
+
+ + + +
+ +
-
- - - +

code/color assignments

+
+
+
color △stylecategory △examplecontrast
+
+
+
+

+ 
- +

interface faces

+
faceforegroundbackgroundpreview
\ No newline at end of file -- cgit v1.2.3