Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have checked the colors we have in css/src/base/variables.css
In several files we are using those colors, but not in their variable format. This complicates using the theme in the future with different colors https://www.drupal.org/project/olivero/issues/3086514
Comment | File | Size | Author |
---|---|---|---|
#32 | 3151405-32.patch | 88.97 KB | hansa11 |
#28 | 3151405-28.patch | 89.89 KB | hansa11 |
#27 | grey.png | 40.74 KB | rahulrasgon |
#27 | black.png | 43.4 KB | rahulrasgon |
#26 | 3151405-26.patch | 19.38 KB | sd9121 |
Comments
Comment #2
trebormcComment #3
pradeepjha CreditAttribution: pradeepjha at Srijan | A Material+ Company for Drupal India Association commentedComment #4
IndrajithKB CreditAttribution: IndrajithKB at Srijan | A Material+ Company for Drupal India Association commentedHi @trebormc thanks for the work, but could not applied the patch please check the path of the patch.
Please add both SRC and DIST files.
Comment #5
IndrajithKB CreditAttribution: IndrajithKB at Srijan | A Material+ Company for Drupal India Association commentedComment #6
pradeepjha CreditAttribution: pradeepjha at Srijan | A Material+ Company for Drupal India Association commentedI'll be working on this to correct changes.
Comment #7
pradeepjha CreditAttribution: pradeepjha at Srijan | A Material+ Company for Drupal India Association commentedComment #8
IndrajithKB CreditAttribution: IndrajithKB at Srijan | A Material+ Company for Drupal India Association commentedThanks @pradeepjha for your updated patch.
I think you are refering this document but both
/css/src
and/css/dist
should be included. (wheresrc
is where changes were made, anddist
is the compiled result from yarn)Olivero project doesn't have an automatic to compile files when people enable the theme in their website. (#copied: Refer the link )
Comment #9
hansa11 CreditAttribution: hansa11 as a volunteer and at QED42 commentedComment #10
hansa11 CreditAttribution: hansa11 as a volunteer and at QED42 commentedThis one contains all the required files.
Comment #11
hansa11 CreditAttribution: hansa11 as a volunteer and at QED42 commentedComment #12
IndrajithKB CreditAttribution: IndrajithKB at Srijan | A Material+ Company for Drupal India Association commentedHi @hansa11 thanks for the re-rolling of patch, But we can see a small difference on components/header-site-branding.css (it's from #2 patch)
From design it's showing correct one is #0d7ab8. So just need to think about which one is right.
Right now there is no variable for #0d7ab8 this color. May be that was the reason @trebormc used different variable.
@mherchel : Please have a look on this.
Comment #13
hansa11 CreditAttribution: hansa11 as a volunteer and at QED42 commentedThank you @Indrajith KB for the review :)
I noticed it too, but both the colors are very close so I didn't create a new variable and kept it the same way as @trebormc, but we still can.
@mherchel, could you please suggest if we should add a new variable or not. :)
Comment #14
trebormcI love to see that the development of this theme is active.
Sorry for uploading the patch with the wrong paths.
And sorry for not answering earlier. I haven't had much time these days.
Yes, what #12 says is correct. I didn't find it to be variable. It is a color that is only used in one place (I say it from memory, but I think that in the box at the bottom of the logo).
And to unify and simplify I put the color that I think looks the same. Keep in mind that it is only used in a linear-gradient, I do not think it will affect much that the color is not exactly the same as before.
If this is a lot of trouble we create a variable and leave the color from before.
Patch #10 doesn't apply to me, I suppose because I'm on alpha2 and not dev. When I can I make the change and confirm that patch 10 works.
Comment #15
trebormcComment #16
trebormcPatch #10 is applied correctly in 8.x-1.x-dev, but with the DEV version there are new files that were not in alpha2 and that use color white without the variable.
I have created a patch for the DEV version that includes those files in #10 patch.
Now it only remains to clarify if we can replace the blue color #0d7ab8 with #0d77b5. I think there should be no problem.
Comment #17
steinmb CreditAttribution: steinmb as a volunteer commentedWe now have a dev.
Comment #18
IndrajithKB CreditAttribution: IndrajithKB at Srijan | A Material+ Company for Drupal India Association commentedComment #19
IndrajithKB CreditAttribution: IndrajithKB at Srijan | A Material+ Company for Drupal India Association commentedHi @trebormc thanks for the patch. But need minor update
still the path is wrong, it's still not in from Olivero root path.
Right now your path is :
+++ css/src/components/nav-primary.css
it should be like:
+++ b/css/src/components/nav-primary.css
so please update the patch with proper path.
Comment #20
sd9121 CreditAttribution: sd9121 as a volunteer and at QED42 commentedComment #21
sd9121 CreditAttribution: sd9121 as a volunteer and at QED42 commentedPlease review the patch.
Thanks!
Comment #22
steinmb CreditAttribution: steinmb as a volunteer commentedIf I grep through css I only found on still lingering.
Patch apply cleanly.
Comment #23
rahulrasgon CreditAttribution: rahulrasgon at QED42 commentedPlease review the patch.
Thanks
Comment #24
IndrajithKB CreditAttribution: IndrajithKB at Srijan | A Material+ Company for Drupal India Association commentedHi @rahulrasgon thanks for the #23 patch, it's replaced the white color with variable.
Right now we are using 'black' directly, so can we change the black with variable ?
Right now we don't have any variable for black (#000).
So need confirmation from @mherchel to use the variable for black.
Comment #25
sd9121 CreditAttribution: sd9121 as a volunteer and at QED42 commentedComment #26
sd9121 CreditAttribution: sd9121 as a volunteer and at QED42 commentedI have seen for the black color variable already is present.
--color--gray-0: #0d1214; /* Black */
I have used this variable. Please review this patch.
Thanks!
Comment #27
rahulrasgon CreditAttribution: rahulrasgon at QED42 commented@sagar I can see the differences between the black color.
I think we should create a variable for black color. @mherchel can you confirm here ?
Comment #28
hansa11 CreditAttribution: hansa11 as a volunteer and commented1. Created a new variable for black color.
2. Replaced all the hex-values with their color variables.
Please review.
Thanks!
Comment #29
hansa11 CreditAttribution: hansa11 as a volunteer and at Axelerant commentedComment #30
mherchelThanks for all the work on this. There are a couple of instances where the colors in the variables are not exactly the same as the hex values they replace. Let's leave the original hex values and add
@todo
's.These variable don't match up with the colors. Instead of trying to fit it in, please add a
@todo
saying that this color isn't currently a variable.Once again, this color doesn't not match with the variable. Let's keep the hex here and add a @todo
Same as above. Colors don't match with variables.
Comment #31
hansa11 CreditAttribution: hansa11 as a volunteer and at Axelerant commentedComment #32
hansa11 CreditAttribution: hansa11 as a volunteer and at Axelerant commented@mherchel: Thank you for the review, I have added the @todos for the colors that doesn't have variable at the moment, please review.
Thanks!
Comment #33
hansa11 CreditAttribution: hansa11 as a volunteer and at Axelerant commentedComment #34
mherchelLooks good!
Comment #36
mherchelCommitted. Thanks everyone!