From 455636561d50d40cf5e8f574751d230054f43fe8 Mon Sep 17 00:00:00 2001 From: mohsentaba Date: Sat, 16 May 2026 09:10:42 +0330 Subject: [PATCH] light mode enabled for admin panel and also imam javad light theme updated --- config/settings/base.py | 2 +- utils/admin.py | 67 +++++++++++++++++++---------------------- 2 files changed, 32 insertions(+), 37 deletions(-) diff --git a/config/settings/base.py b/config/settings/base.py index 1b14a57..9ca210b 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -370,7 +370,7 @@ UNFOLD = { }, "SITE_SYMBOL": "speed", "SHOW_BACK_BUTTON": True, # show/hide "Back" button on changeform in header, default: False - "THEME": "dark", + "THEME": "light", "LOGIN": { "image": lambda request: static("images/dovoodi_login.png") if is_dovoodi_panel(request) else static("images/image1.jpg"), }, diff --git a/utils/admin.py b/utils/admin.py index 0f423f1..98e7552 100644 --- a/utils/admin.py +++ b/utils/admin.py @@ -167,58 +167,53 @@ class FormulaAdminSite(UnfoldAdminSite): imam_javad_colors = { "base": { - "50": "249 250 251", - "100": "243 244 246", - "200": "229 231 235", - "300": "209 213 219", - "400": "156 163 175", - "500": "107 114 128", - "600": "75 85 99", - "700": "55 65 81", - # "800": "31 41 55", - # "900": "17 24 39", - # "950": "3 7 18", - # "800": "12 19 26", # #0C131A (Cards / Sidebar) - # "900": "1 31 34", # #011F22 (Main Background) - # "950": "1 19 21", # #011315 (Deep Accents) - # "800": "2 22 24", # Cards / Sidebar (Slightly elevated dark green) - # "900": "0 12 14", # Main Background (Almost pitch black-green) - # "950": "0 5 6", # Deepest Accents (Effectively black) - "800": "10 36 38", # Cards (Lighter to float above the background) - "900": "3 21 22", # Main Background (Lighter dark-green) - "950": "0 5 6", # Sidebar (Kept exactly the same!) + # Soft Sage Grays (Neutral gray infused with 5% brand green) + # This makes the main background a very soft icy-green, letting the pure white cards pop! + "50": "246 250 248", + "100": "237 245 241", + "200": "218 232 225", + "300": "191 210 201", + "400": "150 173 162", + "500": "107 130 119", + "600": "76 97 87", + "700": "58 77 68", + "800": "38 51 45", + "900": "24 33 29", + "950": "10 15 13", }, "primary": { - "50": "234 253 243", - "100": "208 251 232", + # Your Vibrant Green + "50": "236 253 243", + "100": "209 250 229", "200": "167 247 216", "300": "110 240 189", "400": "37 213 152", - "500": "37 208 118", - "600": "29 166 94", - "700": "25 136 80", - "800": "22 108 66", - "900": "20 89 57", - "950": "10 53 34", + "500": "25 166 94", + "600": "20 136 80", + "700": "15 108 66", + "800": "12 89 57", + "900": "10 70 45", + "950": "5 35 20", }, "secondary": { + # Your Deep Teal "50": "240 253 250", "100": "204 251 241", "200": "153 246 228", "300": "94 234 212", "400": "45 212 191", - "500": "1 53 59", - "600": "1 43 48", - "700": "1 36 40", - "800": "1 30 34", - "900": "0 26 29", - "950": "0 13 15", + "500": "14 63 59", + "600": "11 49 46", + "700": "9 39 37", + "800": "7 29 27", + "900": "5 19 18", + "950": "3 10 9", }, "font": { "subtle-light": "var(--color-base-500)", "subtle-dark": "var(--color-base-400)", - "default-light": "var(--color-secondary-500)", - "default-dark": "var(--color-base-300)", + "default-light": "var(--color-base-700)", + "default-dark": "var(--color-base-200)", "important-light": "var(--color-base-900)", "important-dark": "255 255 255", },