where to place a single custom color definition

Created on 3 January 2024, 12 months ago
Updated 27 June 2024, 6 months ago

Problem/Motivation

In the themes settings one can specify constants for e.g. backgrounds like w3-green, w3-pale-yellow. I have the need to use a custom color and tried to enter its color code (e.g. #8aba18) directly in those fields in the advanced color section. Unfortunately that didn't work.
So I went ahead and added

w3-myspecialgreen {
  background-color: #8aba18 !important;
}

in a suitable place in web/themes/contrib/d8w3css/css/w3-css/w3.css
That works perfectly - until the next update to the theme is applied.

Now my question: is there a place/file, where I can add such a custom color definition in a way that it survives an update? I read about creating an own theme with a generator somewhere, but that seems a bit overkill for the need of adding just a single color definition.

Thanks a lot in advance,
Richard.

πŸ’¬ Support request
Status

Fixed

Version

2.0

Component

Miscellaneous

Created by

πŸ‡©πŸ‡ͺGermany richardmetzger

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024