-
Notifications
You must be signed in to change notification settings - Fork 15
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
Improve LESS and CSS, test branding branch #132
Comments
not a prio for next R6-CE, will resume next week |
Check #139 (comment) |
superset.less <<-- entrypoint
@imports index.less
@imports vars.less
index.less
@imports vars.less
@imports override.less
vars.less
@brandColor: red
override.less
@brandColor: blue
body {
color: @brandColor
} When what would be equivalent to: superset.less
@brandColor: red
@brandColor: blue
body {
color: @brandColor
}
@brandColor: red so since vars are defined twice (the second one at the end), that one wins, so no override is done: superset.css
body {
color: red
} |
Here is my diagnostic considering our goal of applying our branding over Apache Superset. I also added some recommendations that I'd like to address in order to enhance the developer experience when rebranding Apache Superset. note: all routes are relative to In Apache Superset there are many ways to define the APP styles; they can be summarized in two:
current limitations:
variables definitionAbout how dimensions, colors, and typographies are defined, we have four situations, that are detailed in each collapsible section below. TL;DR As it can be seen from the list below, to obtain style consistency, it may be needed either overriding many rules defined by stylesheets that are not using shared variables at all, either modifying those stylesheets to use shared variables. Using variablesThere are two (independent) files defining variables and are used sometimes in some stylesheets stylesheets/less/cosmo/variables.less defines most of the variables used in GLOBAL, and is also used by some COMPONENTS styles. [see inventory]
src/dashboard/stylesheets/variables.less defines most of the variables used in dashboard and toast messages; it does not use the variables from the other variables stylesheets even sharing some variable names. [see inventory]
Not using shared variablesBut there are many stylesheets that do not use variables at all: many stylesheets use harcoded values instead of using shared variables from above: [see inventory]
some stylesheets do not use shared variables, but —at least currently—, they do not define visual properties: [see inventory]
|
Recommendations
The ones above can be done easily by us; the next ones could be done gradually (and are ordered from costless to very hardcore):
|
#226 was merged we could now continue considering the recommendations above |
@dpordomingo what's the status of this? is this waiting for product's approval? is this done and we can open a separate issue for next steps? |
I'd consider this as an umbrella taking into account my analysis and my recommendations. I'm also aware that @ricardobaeta has a pending investigation about how could we integrate into Alternatives that I see:
|
I'd prefer to close this one and if you could create a new one with a more specific scope according to your recommendations. 👍 If you do, please close this one. |
I'd say this should be considered an epic, taking my message describing the current status as an input, and my recommendations as one proposed strategy to solve the problem in an iterative way. Would you prefer if I copy-paste both into a new issue and close this? |
Maybe the best thing would be to create a new issue as a story in |
Since But if you prefer, I can still do it. |
Oh right, sorry, I forgot that it's private. I just thought about it because it's the place where we now put stories. Well, this is something that actually affects all the projects. I'm pretty sure that @rpau already answered me, and that I forgot, but @rpau was there a specific reason for keeping it private? |
I agree with moving there, things that are not open source related, like the ones affecting company products, business, strategic decisions... But I'd say this is not the case. |
Well, originally it was supposed also to be a collector of issues for external users AFAIR. Let's keep it in sourced-ui then for now 👍 |
This issue is to improve LESS code to make use of variables.
@ricardobaeta please add any other things that need to be reviewed, or that you need assistance with.
The text was updated successfully, but these errors were encountered: