Cloudogu EcoSystem Docs
Software version

Archive

Whitelabeling archive

A whitelabeling archive must be hosted at URL accessible by the whitelabeling Dogu.
For example, it can be hosted in a raw repository via the Sonartype Nexus Dogu.

Augmentation of the whitelabeling archive

The whitelabeling archive consists of a zip archive that has a main.css in the root of the archive. Optionally, images / logos can be stored in an image folder.

whitelabeling.zip
├─ main.css (needed)
└─ image/ (optional)
   └─ your-custom-logo.png (optional, any file name possible)

Structure of main.css

The file main.css contains variables to adjust the colors and images.
It also contains dogu-specific variables (e.g. for the CAS-Dogu)

A complete main.css with all variables can be found here.

Colors
colorvariable namedescription
brand--ces-color-brandColor is used for accents (e.g. buttons, dividing lines)
success--ces-color-success
Danger--ces-color-dangerColor for warnings and potentially dangerous operations
Warning--ces-color-warningColor for error messages
Neutral--ces-color-neutral
Background--ces-color-default-backgroundNormal background color
--ces-color-default-focus-inner
focus--ces-color-default-focus-outerOutline color of focused elements, e.g. links, buttons
text--ces-color-default-textColor of normal text
--ces-color-inverted-text
Images
Variable nameDescription
--ces-logo-defaultThe standard logo in CES. Used on the CAS login page, among others.
--ces-logo-default-ratioThe aspect ratio of the default logo.
CAS specific variables
Variable nameDescription
--cas-config-logo-backgroundThe background color of the logo in CAS.
Selector

When creating your own main.css, make sure to use the selector :root.ces-whitelabel, so that your own styles have a higher specificity than the default styles.

Example for the selector in main.css:

:root.ces-whitelabel {
    --ces-color-brand-stronger: #003250;
    --ces-color-brand-strong: #00426B;
    --ces-color-brand: #00629E;
    --ces-color-brand-weak: #9EDAFF;
    --ces-color-brand-weaker: #D4EDFC;

    /*...*/
} 
Example main.css
:root.ces-whitelabel {

    /*  Colors  */
    --ces-color-brand-stronger: #003250;
    --ces-color-brand-strong: #00426B;
    --ces-color-brand: #00629E;
    --ces-color-brand-weak: #9EDAFF;
    --ces-color-brand-weaker: #D4EDFC;

    --ces-color-success-stronger: #0A2913;
    --ces-color-success-strong: #145226;
    --ces-color-success: #1F7A38;
    --ces-color-success-weak: #85E09E;
    --ces-color-success-weaker: #EBFAEF;

    --ces-color-danger-stronger: #521414;
    --ces-color-danger-strong: #7A1F1F;
    --ces-color-danger: #CC3333;
    --ces-color-danger-weak: #EBADAD;
    --ces-color-danger-weaker: #F8EDED;

    --ces-color-warning-stronger: #3D3700;
    --ces-color-warning-strong: #574E00;
    --ces-color-warning: #707600;
    --ces-color-warning-weak: #FFE500;
    --ces-color-warning-weaker: #FFFACC;

    --ces-color-neutral-stronger: #333333;
    --ces-color-neutral-strong: #4D4D4D;
    --ces-color-neutral: #666666;
    --ces-color-neutral-weak: #CCCCCC;
    --ces-color-neutral-weaker: #F5F5F5;

    --ces-color-default-background: #FFFFFF;
    --ces-color-default-focus-inner: #FFFFFF;
    --ces-color-default-focus-outer: #CC14CC;
    --ces-color-default-text: #0D1C26;
    --ces-color-inverted-text: #FCFCFD;

    /*  Images  */

    /* The base64 encoded default logo */
    --ces-logo-default: url('data:image/svg+xml;base64,PHN2ZyBpZD0iZ2VzY2hsb3NzZW5lc19FbGVtZW50IiBkYXRhLW5hbWU9Imdlc2NobG9zc2VuZXMgRWxlbWVudCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgODM4LjY3IDUxMy43NyI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiMyNGEyZGN9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNzIxLjMxIDMyOS4zNmE2MC42NiA2MC42NiAwIDAgMS0xMTcuMSAyMi4yNGwuNTMgMi41MS0xMTguMSAyMy4zN2E2Ny43MyA2Ny43MyAwIDAgMS0xMzUuNC4xN2wtMTE5LTIzLjU0YTYwLjY4IDYwLjY4IDAgMSAxIDUuMjctMjQuNzVsMTE3LjMgMjQuMTRhNjcuODMgNjcuODMgMCAwIDEgNTEuNjQtNDQuNjRoLS4wNnYtNzAuMjVhNjAuNjggNjAuNjggMCAxIDEgMjQuMjUuMTV2NzBhNjguMjEgNjgu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uODEtMS4yMy0yLjEyLTIzLjE2LTM0LjMyLTI2LjcxLTg5LjgyIDkuMjQtMTMxLjg0QzM3NS41MiA2MS4yIDQ0Mi42OCA1Ni45MyA0OTAgOTUuNjZjMzEuODggMjYuMDggNTIuMTkgNzkuNTYgMjcuNjMgMTMxLjhsLS4wNy4xcy04LjU0IDE3LjkzLTIxLjc4IDMwYzE5Ljc5IDExIDMyLjg2IDE4LjM1IDUzLjMyIDM5LjkyLjcuNzQgNC44OCA1LjczIDQuOTMgNS43N2ExMTUuMyAxMTUuMyAwIDAgMSA2LjE3LTE4LjE2YzI1LjkyLTU2LjUyIDkzLTgxLjU0IDE0Ny45NS01NC42N3M4MC4yMyA5My42NiA0OC4zOSAxNTIuMzJ6Ii8+PC9zdmc+');

    /*
     * The ratio of ces-logo-default image (width/height). This variable is important to scale the image correctly in e.g. cas.
     * Whenever the image is change, the ration variable has to be set as well
     */
    --ces-logo-default-ratio: 1.63;

    /*  CAS specific variables  */
    --cas-config-logo-background: transparent;
}

Last updated on 8/16/2024