אז, למישהו שעדיין לא מכיר את הדברים האלה, זה אומר שאני צריך להתחבר ב-SSH לשרת שלי (אם זה המונח הנכון?) ולמצוא את קובץ ה-json הזה, לבצע את השינויים האלה, ואז זה ישתקף בממשק המשתמש?
אם כן, אז אנחנו יכולים לדרוס את המשתנים ברירת המחדל, כמו גם להוסיף חדשים, נכון?
if you did it this way, I think it would probably get overwritten by the next Discourse update… so generally you want to leave the existing palettes alone
If you want to create a new palette with all the extended color overrides, and make it so users can select that palette, the simplest way is to create a theme and upload it.
All you would have to do in the theme itself is edit about.json to contain the color definitions… there’s an example here:
Once the theme is added to the site, the included color palette will be added to admin/customize/colors and you can make that user-selectable
Another way to customize our colors is to override them directly with CSS, this would require using a certain theme rather than a specific color palette… but in the theme’s common file you can do something like:
``css :root { --primary-low: red; --secondary: #ff0000; }
``
you can see all the available colors to override by opening the browser inspector, clicking the HTML element at the top, and doing some scrolling (we have a lot of variables now)