diff --git a/input/includes/dmn.css b/input/includes/dmn.css deleted file mode 100644 index e39c92781c..0000000000 --- a/input/includes/dmn.css +++ /dev/null @@ -1,83 +0,0 @@ -/* WHO color palette: Light and Dark mode support */ -:root { - /* Light mode colors */ - --who-blue: #0093d0; - --who-header: #f0f9fc; - --who-table-border: #007ab7; - --who-bg-primary: #ffffff; - --who-bg-secondary: #f7fafc; - --who-bg-tertiary: #f6fafd; - --who-text-primary: #222; - --who-text-secondary: #555; - --who-input-bg: #e5f4fa; - --who-output-bg: #dff7ea; - --who-annotation-bg: #fffbe5; -} - -/* Dark mode colors */ -@media (prefers-color-scheme: dark) { - :root { - --who-blue: #4db8e8; - --who-header: #1a2332; - --who-table-border: #4db8e8; - --who-bg-primary: #0d1117; - --who-bg-secondary: #161b22; - --who-bg-tertiary: #21262d; - --who-text-primary: #e6edf3; - --who-text-secondary: #8b949e; - --who-input-bg: #0d2538; - --who-output-bg: #0f2419; - --who-annotation-bg: #2d2a1f; - } -} - -table.decision { - border-collapse: collapse; - width: 100%; - margin: 2em 0; - font-family: Arial, sans-serif; - background-color: var(--who-bg-primary); - color: var(--who-text-primary); -} - -table.decision tr.decision-header { - background: var(--who-blue); - color: white; - font-weight: bold; -} - -table.decision tr.io-row { - background: var(--who-header); - color: var(--who-text-primary); - font-weight: 600; -} - -table.decision td, table.decision th { - border: 1px solid var(--who-table-border); - padding: 0.5em 1em; -} - -.row-label { - font-weight: bold; - background: var(--who-bg-tertiary); - color: var(--who-text-secondary); -} - -.input, .inputEntry { - background: var(--who-input-bg); - color: var(--who-text-primary); -} - -.output, .outputEntry { - background: var(--who-output-bg); - color: var(--who-text-primary); -} - -.annotation, .annotationEntry { - background: var(--who-annotation-bg); - color: var(--who-text-primary); -} - -tr.rule:nth-child(even) { - background: var(--who-bg-secondary); -} \ No newline at end of file diff --git a/input/scripts/includes/dmn.css b/input/scripts/includes/dmn.css deleted file mode 100644 index e39c92781c..0000000000 --- a/input/scripts/includes/dmn.css +++ /dev/null @@ -1,83 +0,0 @@ -/* WHO color palette: Light and Dark mode support */ -:root { - /* Light mode colors */ - --who-blue: #0093d0; - --who-header: #f0f9fc; - --who-table-border: #007ab7; - --who-bg-primary: #ffffff; - --who-bg-secondary: #f7fafc; - --who-bg-tertiary: #f6fafd; - --who-text-primary: #222; - --who-text-secondary: #555; - --who-input-bg: #e5f4fa; - --who-output-bg: #dff7ea; - --who-annotation-bg: #fffbe5; -} - -/* Dark mode colors */ -@media (prefers-color-scheme: dark) { - :root { - --who-blue: #4db8e8; - --who-header: #1a2332; - --who-table-border: #4db8e8; - --who-bg-primary: #0d1117; - --who-bg-secondary: #161b22; - --who-bg-tertiary: #21262d; - --who-text-primary: #e6edf3; - --who-text-secondary: #8b949e; - --who-input-bg: #0d2538; - --who-output-bg: #0f2419; - --who-annotation-bg: #2d2a1f; - } -} - -table.decision { - border-collapse: collapse; - width: 100%; - margin: 2em 0; - font-family: Arial, sans-serif; - background-color: var(--who-bg-primary); - color: var(--who-text-primary); -} - -table.decision tr.decision-header { - background: var(--who-blue); - color: white; - font-weight: bold; -} - -table.decision tr.io-row { - background: var(--who-header); - color: var(--who-text-primary); - font-weight: 600; -} - -table.decision td, table.decision th { - border: 1px solid var(--who-table-border); - padding: 0.5em 1em; -} - -.row-label { - font-weight: bold; - background: var(--who-bg-tertiary); - color: var(--who-text-secondary); -} - -.input, .inputEntry { - background: var(--who-input-bg); - color: var(--who-text-primary); -} - -.output, .outputEntry { - background: var(--who-output-bg); - color: var(--who-text-primary); -} - -.annotation, .annotationEntry { - background: var(--who-annotation-bg); - color: var(--who-text-primary); -} - -tr.rule:nth-child(even) { - background: var(--who-bg-secondary); -} \ No newline at end of file diff --git a/local-template/DMN_STYLING.md b/local-template/DMN_STYLING.md new file mode 100644 index 0000000000..ffbed5abf3 --- /dev/null +++ b/local-template/DMN_STYLING.md @@ -0,0 +1,68 @@ +# Decision Table Enhancements for SMART Guidelines + +This local template enhancement provides **decision table specific styling** that complements the WHO FHIR IG template's dark/light mode functionality. + +## Integration with WHO Template + +The WHO FHIR IG template (smart-ig-template) now includes comprehensive dark/light mode theming with: +- Theme toggle button in the navbar +- System preference detection +- Theme persistence +- General template theming + +This enhancement focuses specifically on **DMN decision table styling** with WHO color palette integration. + +## Features + +### 🎨 WHO Color Palette for Decision Tables +- **Input columns**: Light blue (`#e5f4fa` / `#2c5282`) +- **Output columns**: Light green (`#dff7ea` / `#2f855a`) +- **Annotation columns**: Light yellow (`#fffbe5` / `#744210`) +- **Header rows**: WHO blue (`#0093d0`) +- **Border colors**: WHO blue tones + +### 🌓 Automatic Theme Integration +- Respects the WHO template's theme system +- Uses `[data-theme="dark"]` selector for consistency +- Supports system preference via `@media (prefers-color-scheme: dark)` + +### 📊 Decision Table Enhancement +- Enhanced styling for `.decision` tables +- Color-coded columns for better readability +- Proper contrast ratios in both themes +- WHO branding compliance + +## Usage + +The enhancement automatically applies to decision tables when using these CSS classes: + +```html +
| Rule | +Input 1 | +Output | +Notes | +
|---|---|---|---|
| 1 | +Condition | +Action | +Comment | +