not paginating
authorThomas Walker Lynch <eknp9n@reasoningtechnology.com>
Sun, 28 Jun 2026 14:31:54 +0000 (14:31 +0000)
committerThomas Walker Lynch <eknp9n@reasoningtechnology.com>
Sun, 28 Jun 2026 14:31:54 +0000 (14:31 +0000)
developer/authored/Manuscript.copy/Core/theme_make.js
developer/authored/Manuscript.copy/Document/manual.html
developer/authored/Manuscript.copy/Element/code.js

index 04b2280..af67ac0 100644 (file)
@@ -14,6 +14,7 @@ window.RT.theme = (function() {
     state: { success: "", warning: "", error: "", info: "" },
     syntax: { keyword: "", string: "", func: "", comment: "" },
     page: { width: "", min_height: "", padding: "", margin: "", bg_color: "", border_color: "", text_color: "", shadow: "" },
+    custom_css: ""
   };
 
   function resolve_path(path_array) {
@@ -94,6 +95,17 @@ window.RT.theme = (function() {
       }
 
       apply_and_validate_theme(window.RT.theme_library[theme_name], fallback);
+      
+      // --- CSS Fallback for Pseudo-Elements and External Libraries ---
+      let style_el = document.getElementById('rt-theme-custom-css');
+      if (!style_el) {
+        style_el = document.createElement('style');
+        style_el.id = 'rt-theme-custom-css';
+        document.head.appendChild(style_el);
+      }
+      // Write the string if it exists, otherwise clear the block
+      style_el.textContent = dictionary.custom_css || '';
+      
       return true;
     }
 
index a2d9afe..c81adc2 100644 (file)
@@ -5,7 +5,7 @@
     <title>RT Style System: Reference Manual</title>
     <script src="RT-Style_locator.js"></script>
     <script>
-      window.RT.theme_preference('golden_wheat');
+      window.RT.theme_preference('inverse_wheat');
       window.RT.load('Layout/article_tech_ref');
     </script>
   </head>
index 2eeca8b..eef99a3 100644 (file)
@@ -15,12 +15,12 @@ function code() {
   
   document.querySelectorAll('rt·code').forEach((el) => {
     el.style.fontFamily = 'monospace';
-    
+
     const computed = window.getComputedStyle(el);
-    const accent = computed.getPropertyValue('--RT·accent').trim() || 'gold';
+    const accent = window.RT.theme('read', 'brand', 'secondary') || 'gold';
     
     const is_block = U.Dom.is_block_content(el);
-    const parentColor = computed.color;
+    const parentColor = window.RT.theme('read', 'content', 'main');
     const is_text_light = U.Color.is_light(parentColor);
     
     const alpha = is_block ? 0.08 : 0.15;