Customize colors
Did you know that you can type Alt + D to launch the search widget for administration pages?
- Go to CSS Injectors (/admin/config/development/asset-injector/css)
- Spot OpCulturas Next CSS overrides, use the drop button to duplicate it, give it an individual name, ideally using your site name
- Enable and edit your duplicated (now custom) CSS injector
Yes, there are a lot of options. Focus on finding the following because these two variables contribute a lot to your individual look:
--oc-color-link
--oc-color-interaction
Enter colors from your brand design and please make sure to pick colors with enough contrast on light backgrounds. This keeps up the good accessibility rating that comes with using OpenCulturas.
The primary color in line 32 is used sparsely, mainly to colorize the map markers. Enter your main brand color here. The secondary color is a variable for your convenience. You may or may not enter a value for re-use; for the time being it is not in use with the base design.
The accent colors (--oc-color-accent-*) are used in color gradients that reveal when you pick a “Vivid” background. There are two optional gradients both using these accent colors. You can modify the gradients around line 85. In line 95 you may change the Vivid style to use --oc-color-gradient-smooth instead of --oc-color-gradient-blocks.
Dark mode: colors + logo
In your CSS injector near line 170 starts the dark mode colors section. Focus on the colors you have already changed and change them here accordingly, with enough contrast to dark backgrounds.
For the dark mode logo, you'll find a step-by-step instruction around line 219. Edit and uncomment this part (by removing /* before and */ after the respective steps). Otherwise your site will show an OpenCulturas logo when the color scheme is changed to dark by your visitors.