בנושא מותאם אישית, איך בוחרים את לוחות הצבעים הבהירים והכהים הרצויים?

סיכום מבוסס בינה מלאכותית

The discussion centers around implementing custom light and dark color palettes within a Discourse theme. Initially, the system only allowed selecting one palette, causing confusion for Raymond_Camden who couldn’t determine how to apply different palettes for light and dark modes.

The current workaround, detailed by Moin, involves creating two palettes – one for light mode (assigned to the theme) and one for dark mode (set as the site-wide default for dark mode) and disabling user selection of color palettes. This offers a fixed light/dark scheme without user customization.

However, the developers ([hugh](/t/-/369055/4, /t/-/369055/8), mcwumbly) are actively developing native light and dark mode support for color palettes, which will allow palettes to inherently contain both light and dark variations. This update will make the process more intuitive and provide better user preference control, although it is not yet implemented (Andrew_Rowe).

SubStrider also inquired about adding more variables to a color palette, but this seemed to be a separate, potentially related issue. NateDhaliwal notes to check color palettes at /admin/customize/colors.

אני קצת מבולבל לגבי האופן שבו ערכות נושא מותאמות אישית תומכות בפלטות צבעים למצב בהיר וחשוך. כשאני עורך ערכת נושא חדשה ובוחר פלטה, אני יכול לבחור רק אחת. כשצפיתי בתצוגה מקדימה, ואני משתמש במצב כהה, לא ראיתי את פלטת הצבעים. כששיניתי את ההגדרות שלי (הגדרות מערכת ההפעלה) למצב בהיר, יכולתי לראות את הפלטה המותאמת אישית. אז אני מניח שהשאלה היא - אם ערכת נושא יכולה לבחור רק פלטה אחת, איך אני ‘קושר’ את ערכת הנושא החדשה לפלטת צבעים מותאמת אישית X למצב בהיר ופלטת צבעים מותאמת אישית Y למצב כהה?

ייתכן שבהעדפות המשתמש שלך הגדרת ערכת צבעים של מצב כהה שונה מזו המוגדרת כברירת מחדל.

אתה יכול לראות את כל פלטות הצבעים ב-/admin/customize/colors, אני מאמין.

נכון לעכשיו, אתרים צריכים ערכת צבעים שנבחרה כערכת הצבעים של מצב כהה - היא לא מובנית במערכת לוחות הצבעים כדי שיהיו שני מצבים.

עם זאת, אנו שקועים בעבודה שתהפוך את זה להרבה יותר אינטואיטיבי ותכלול מצבים מובנים של בהיר וכהה עבור כל ערכות הנושא, כאשר העדפת המשתמשים תקבע מה הם יראו. עדיין אין לנו הערכת זמן להגעת העדכונים האלה, אבל אנחנו מתקדמים מאוד עם זה ומקווים להוציא בקרוב מצבים של בהיר וכהה עבור לוחות צבעים (יחד עם שיפורים קשורים אחרים).

“עם זאת, אנו שקועים בעבודה שתהפוך את זה להרבה יותר אינטואיטיבי ותכלול מצבי תאורה בהירים וכהים מקוריים עבור כל הנושאים, כאשר העדפת המשתמש קובעת אילו מהם הם יראו.”

אבל כדי להיות ברור, אם אני לא רוצה להציע אפשרויות למשתמש, פשוט שיהיה ערכת צבעים בהירה/כהה לאתר, זה יהיה אפשרי, נכון?

אני עדיין קצת מבולבל. האם אתה אומר שעיצוב ישתמש בסכמת צבעים מותאמת אישית עבור מצב LIGHT, ועבור DARK הוא עושה… משהו אחר? אם אוכל לערוך את מצב DARK ברירת המחדל, זה יעבוד מכיוון שאני לא צריך N ערכות נושא שמשתמשים יכולים לבחור מהן. אם זה עובד, איך אני יודע איזו סכימה לערוך?

Yes, it is.

You create two color palettes (or customize existing ones). I created my ‘Pink’ color palette based on the WCAG light palette and my ‘Dark Pink’ color palette by customizing the WCAG dark palette. I assume you don’t want your users to select the dark color palette also for light mode; then I would ensure that color palette can be selected by users is disabled. If that’s disabled on all palettes, the dropdown in the users’ interface preferences disappears.

Then your users will only see


Instead of the color selector you see in your preferences here at Meta.

You set your dark palette as the site-wide default color palette for dark mode in the default dark mode color scheme ID site setting.

And you put the light palette into the color palette setting of your theme.

The current limitation is that I cannot easily create two more palettes e.g., a light and a dark blue one and let the users choose between pink and blue. While the light color palette which is connected to the theme works fine, I cannot have a different default dark palette for that theme. But as long as you want only one light and one dark color palette, the current options are enough for you.

תודה, אנסה את זה!

Yes, with the upcoming light and dark palette support, this will be easy to do. As @Moin points out, this kind of thing is already possible, but it’s not the most intuitive way of doing it.

With the upcoming changes, all palettes will have a light and a dark mode as part of the palette. That includes colour palettes that come with themes, as well as those you can create and edit in the admin. You will be able to choose defaults as needed.

מצפה בקוצר רוח. הייתי צריך לחפור בהרבה נושאים כדי למצוא את המידע הזה. בינתיים אלך עם ההצעה שניתנה בנושא זה.

has this been implemented yet?

עדיין לא, אבל אנחנו מתקדמים. זו העדיפות העליונה שלנו, אז צפו לראות דברים מתחילים להתממש בשבועות הקרובים.