From c2dbeb9225a0213d98bd4d763fa4409ec5c5cbe3 Mon Sep 17 00:00:00 2001 From: Dimitri Yatsenko Date: Thu, 20 Aug 2026 14:58:25 -0500 Subject: [PATCH] docs(read-diagrams): make the crow's-foot ER diagrams dark-mode adaptive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The four er-*.svg crow's-foot diagrams (Mermaid erDiagram exports) had baked-in light-only colors and no prefers-color-scheme block, so they stayed light on a dark page — unlike the dj.Diagram SVGs, which adapt. Inject a @media (prefers-color-scheme: dark) block into each (same mechanism as the dj.Diagram outputs), remapping panels/rows/strokes/text to a brand-family dark palette (navy-tinted panels, grey rules, light text) per dj-brand V1.0. Light mode is unchanged. --- src/images/er-many-to-many.svg | 2 +- src/images/er-one-to-many.svg | 2 +- src/images/er-one-to-one.svg | 2 +- src/images/er-reference.svg | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/images/er-many-to-many.svg b/src/images/er-many-to-many.svg index f94267bc..09e7e89b 100644 --- a/src/images/er-many-to-many.svg +++ b/src/images/er-many-to-many.svg @@ -1 +1 @@ -

enrolls

has

Student

int

student_id

PK

string

name

Enrollment

int

student_id

PK

string

course_code

PK

string

grade

Course

string

course_code

PK

string

title

\ No newline at end of file +

enrolls

has

Student

int

student_id

PK

string

name

Enrollment

int

student_id

PK

string

course_code

PK

string

grade

Course

string

course_code

PK

string

title

\ No newline at end of file diff --git a/src/images/er-one-to-many.svg b/src/images/er-one-to-many.svg index f886047c..002324a4 100644 --- a/src/images/er-one-to-many.svg +++ b/src/images/er-one-to-many.svg @@ -1 +1 @@ -

has

Customer

int

customer_id

PK

string

name

Account

int

customer_id

PK

int

account_num

PK

decimal

balance

\ No newline at end of file +

has

Customer

int

customer_id

PK

string

name

Account

int

customer_id

PK

int

account_num

PK

decimal

balance

\ No newline at end of file diff --git a/src/images/er-one-to-one.svg b/src/images/er-one-to-one.svg index 9f50665e..633b1c2b 100644 --- a/src/images/er-one-to-one.svg +++ b/src/images/er-one-to-one.svg @@ -1 +1 @@ -

has

Customer

int

customer_id

PK

string

name

CustomerPreferences

int

customer_id

PK

string

theme

boolean

notifications

\ No newline at end of file +

has

Customer

int

customer_id

PK

string

name

CustomerPreferences

int

customer_id

PK

string

theme

boolean

notifications

\ No newline at end of file diff --git a/src/images/er-reference.svg b/src/images/er-reference.svg index 9b152526..47acd30a 100644 --- a/src/images/er-reference.svg +++ b/src/images/er-reference.svg @@ -1 +1 @@ -

employs

Department

int

dept_id

PK

string

dept_name

Employee

int

employee_id

PK

int

dept_id

FK

string

employee_name

\ No newline at end of file +

employs

Department

int

dept_id

PK

string

dept_name

Employee

int

employee_id

PK

int

dept_id

FK

string

employee_name

\ No newline at end of file