diff options
Diffstat (limited to 'addons/web_editor/static/src/scss/web_editor.variables.scss')
| -rw-r--r-- | addons/web_editor/static/src/scss/web_editor.variables.scss | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/addons/web_editor/static/src/scss/web_editor.variables.scss b/addons/web_editor/static/src/scss/web_editor.variables.scss index 5abbc9ac284..97951f635cd 100644 --- a/addons/web_editor/static/src/scss/web_editor.variables.scss +++ b/addons/web_editor/static/src/scss/web_editor.variables.scss @@ -281,15 +281,26 @@ $o-we-toolbar-height: 32px; // Edition colors +// Note: the "base" palettes contain all possible keys a palette should or +// must contain, with a default value which should work in use cases where it +// will be used. Any palette defined by an app will be merged with the base +// palette once selected to ensure it works. + // Colors +$o-base-color-palette: () !default; $o-color-palettes: ( - ( - - ), + (), ) !default; -$o-color-palette-number: 1; +$o-color-palette-number: 1 !default; // Theme colors +$o-base-theme-color-palette: ( + 'alpha': white, + 'beta': white, + 'gamma': white, + 'delta': white, + 'epsilon': white, +) !default; $o-theme-color-palettes: ( ( 'alpha': $o-enterprise-primary-color, @@ -299,9 +310,13 @@ $o-theme-color-palettes: ( 'epsilon': #E46F78, ), ) !default; -$o-theme-color-palette-number: 1; +$o-theme-color-palette-number: 1 !default; // Greyscale transparent colours +$o-base-gray-color-palette: ( + 'white': #FFFFFF, // Those two will enforce the creation of bg-white + 'black': #000000, // and bg-black classes. +) !default; $o-transparent-grays: ( 'black-15': rgba(black, 0.15), 'black-25': rgba(black, 0.25), @@ -313,12 +328,9 @@ $o-transparent-grays: ( 'white-85': rgba(white, 0.85), ) !default; $o-gray-color-palettes: ( - ( - 'white': #FFFFFF, // Those two will enforce the creation of bg-white - 'black': #000000, // and bg-black classes. - ), + (), ) !default; -$o-gray-color-palette-number: 1; +$o-gray-color-palette-number: 1 !default; // Translations $o-we-content-to-translate-color: rgb(255, 255, 90) !default; |
