New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mgr/dashboard: Add guideline how to brand the UI and update the color scheme #25988
Conversation
src/pybind/mgr/dashboard/HACKING.rst
Outdated
$ npm run build -- --prod | ||
|
||
Unfortunately it's currently not possible to use multiple configurations when | ||
serving or buildung the ui at the same time. That means a configuration just |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/buildung/building/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upsi, thanks :)
src/pybind/mgr/dashboard/HACKING.rst
Outdated
$ npm run build -- --prod | ||
|
||
Unfortunately it's currently not possible to use multiple configurations when | ||
serving or buildung the ui at the same time. That means a configuration just |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UI
instead of ui
?
src/pybind/mgr/dashboard/HACKING.rst
Outdated
|
||
Unfortunately it's currently not possible to use multiple configurations when | ||
serving or building the UI at the same time. That means a configuration just | ||
for the branding ``fileReplacements`` it not an option, because you want to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for the branding ``fileReplacements`` it not an option, because you want to use | |
for the branding ``fileReplacements`` is not an option, because you want to use |
src/pybind/mgr/dashboard/HACKING.rst
Outdated
(https://github.com/angular/angular-cli/issues/10612). | ||
Furthermore it's also not possible to use glob expressions for | ||
``fileReplacements``. As long as the feature hasn't been implemented, the | ||
vendor has to add the file replacements manually to the angular.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vendor has to add the file replacements manually to the angular.json | |
vendor has to add the file replacements manually to the angular.json file |
src/pybind/mgr/dashboard/HACKING.rst
Outdated
vendor has to add the file replacements manually to the angular.json | ||
(https://github.com/angular/angular-cli/issues/12354). | ||
|
||
Nethertheless you should stick to the suggested naming scheme because it makes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nethertheless you should stick to the suggested naming scheme because it makes | |
Nevertheless you should stick to the suggested naming scheme because it makes |
src/pybind/mgr/dashboard/HACKING.rst
Outdated
To change the variable defaults you can overwrite them in the file | ||
``./frontend/src/vendor.variables.scss``. Just reassign the variable you want | ||
to change, for example ``$color-primary: teal;`` | ||
To overwrite or extend the default css, you can add you own styles in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To overwrite or extend the default css, you can add you own styles in | |
To overwrite or extend the default css, you can add your own styles in |
src/pybind/mgr/dashboard/HACKING.rst
Outdated
~~~~~~~~~~~~~~~~~ | ||
|
||
Every vendor can customize the 'Ceph dashboard' to his needs. No matter if | ||
Logo, HTML-Template or Typescript, every file inside the frontend folder can be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logo, HTML-Template or Typescript, every file inside the frontend folder can be | |
logo, HTML-Template or TypeScript, every file inside the frontend folder can be |
src/pybind/mgr/dashboard/HACKING.rst
Outdated
To change the variable defaults you can overwrite them in the file | ||
``./frontend/src/vendor.variables.scss``. Just reassign the variable you want | ||
to change, for example ``$color-primary: teal;`` | ||
To overwrite or extend the default css, you can add you own styles in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To overwrite or extend the default css, you can add you own styles in | |
To overwrite or extend the default CSS, you can add you own styles in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please do a little clean-up of your git history?
Agreed, can you please squash your commits, @Exotelis ? |
src/pybind/mgr/dashboard/HACKING.rst
Outdated
the production configuration anyway | ||
(https://github.com/angular/angular-cli/issues/10612). | ||
Furthermore it's also not possible to use glob expressions for | ||
``fileReplacements``. As long as the feature hasn't been implemented, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to replace "the vendor" with "you".
Explains how to brand the ui without running in merge conflicts once a source file gets updated Signed-off-by: Sebastian Krah <skrah@suse.com>
Adds a new scss variable called color-primary that the primary color only has to be changed at one point Signed-off-by: Sebastian Krah <skrah@suse.com>
Changes the primary, secondary and accent color and adds a radius to all buttons to match the branding of ceph.com Signed-off-by: Sebastian Krah <skrah@suse.com>
Adds the files vendor.overrides.scss and vendor.variables.scss. In those files the css and variable defaults can be overwritten. Signed-off-by: Sebastian Krah <skrah@suse.com>
Mark all variables as default, that they can get overwritten. Also import the file vendor.variables Signed-off-by: Sebastian Krah <skrah@suse.com>
Fixes linting error in two files Signed-off-by: Sebastian Krah <skrah@suse.com>
jenkins test make check arm64 |
Add guidelines for the vendors how to brand the frontend of the ceph dashboard.
I also updated the color scheme of the UI to match the branding of ceph.com
As you can see in the screenshot I changed the layout of the buttons as well as the hyperlink text color. The idea was to use as less different colors as possible to keep the color scheme consistent and clean. That's why I added the scss variables
$color-primary
,$color-secondary
and$color-accent
which are assigned to the most important and eye-catching elements.