I've committed a few things to this theme, so that at least it has a layout and some colors.

However, it's extremely ugly. It would be nice if someone could make it nicer

Comments

jhodgdon created an issue. See original summary.

jhodgdon’s picture

As a note, the color scheme for the Farmer's Market scenario in the User Guide is here:

https://git.drupalcode.org/project/user_guide/-/blob/8.x-8.x/assets/colo...

kostyashupenko’s picture

Issue summary: View changes
StatusFileSize
new167.51 KB

Hello there
Honey

This is what i get under D9.1
Would be nice to summarize what exactly should be done here and how far we have to investigate markup and styles:
1. Should we override templates? (I mean is it supposed to be fully based on stable or we can use overrides?)
2. Should we use postcss?
3. Is js supposed to be written for things?
4. Accessibility things?
5. etc..

Or it is supposed to have just common styles?
What is the goal of this theme and which content is supposed to be there?

Thanks

kostyashupenko’s picture

Issue summary: View changes
finnsky’s picture

Assigned: Unassigned » finnsky
finnsky’s picture

StatusFileSize
new1.93 MB
new118.67 KB

This patch contains mix of bartik(color module) and claro(css variables + build structure).

For postcss theme uses drupal core build scripts.
So for development needs theme should be putted to /core/themes/ directory.
Run `yarn && yarn build` in /core/ dir.

Now colors works and --variables works same way as in core.

Added simple logo and screenshot. Customized fonts and some typography

Suggested color palette changed a bit because all colors should be different imo to avoid conflicts.

It was easier for me to remove all initial work and start from scratch with variables and colors.

In case of questions catch me in drupal.slack.com - finnsky

gif

screnshot

i will continue to work on it after WE i guess

finnsky’s picture

StatusFileSize
new39.6 KB
finnsky’s picture

Also this is base of second color scheme i will apply later.
https://www.color-hex.com/color-palette/19739

jhodgdon’s picture

That is great -- thank you very much!

I think the patch will need a bit of adjustment for docs, no newline at end of file, etc., but I love that it is working and nice looking, and you got it working with the Color module too. The docs on how to use the Color module in Drupal were for Drupal 7 -- we really need a page in the Drupal 8/9 theming guide on how to do that.

As far as the purpose of this theme is concerned, see the project page
https://www.drupal.org/project/honey
I'm not really expecting this theme to be used by people for real sites. We just needed a theme that we could maintain and keep available for reference in the User Guide. But we wanted it to be at least pleasant to look at and usable, and probably as a model for how to create a child theme.

jhodgdon’s picture

Status: Active » Needs review
jhodgdon’s picture

Status: Needs review » Needs work

I've taken a bit more of a look at this patch, and there are a few things that need attention and/or answers (I haven't actually installed it, just looking at the files in the patch):

a) The .css files have a note at the top referencing this change record:
https://www.drupal.org/node/2815083
However, that one is about JS using Es6. They should be referencing this change record about PostCSS instead:
https://www.drupal.org/node/3084859

If those files were copied directly from Drupal Core, we need to create an issue in the Drupal Core project to get that changed, because it's definitely wrong.

b) Actually rather than those comments... Since this is a separate contributed project, I don't think it's appropriate to reference a Drupal Core change record at all. What we should do instead is make a README.txt file that explains how to build the CSS and JS files from the source, and reference them.

c) Do we really want to use a font that is hosted externally? I am not sure I'm all that comfortable with that idea.

d) Are all of the other fonts that are referenced in the variables.pcss.css file available on most/all platforms and browsers?

e) I don't see any media queries in the CSS, aside from the print media. Is this theme mobile-friendly?

f) There's at least one file with

\ No newline at end of file

in the patch.

g) We should not have @todo notes from Drupal Core in our files -- typography.pcss.css

+ * @todo https://www.drupal.org/project/claro/issues/3048785 :focus selector is
+ *   active for non-interactive elements in Internet Explorer 11.

h) Typo in the variables.pcss.css file:

/* 1rem = 16px if font root is 100% ands browser defaults are used. */

"ands"

Also in that file, the end-of-line comments are weird, such as

--font-size-h1: 2.027rem; /* ~32px */

They all end up printing out at the top of every .css output file. ?!? Probably would be better to get rid of them, or make them all into one comment.

finnsky’s picture

a) The .css files have a note at the top referencing this change record:
https://www.drupal.org/node/2815083
However, that one is about JS using Es6. They should be referencing this change record about PostCSS instead:
https://www.drupal.org/node/3084859

If those files were copied directly from Drupal Core, we need to create an issue in the Drupal Core project to get that changed, because it's definitely wrong.

this is generated by core, i think that this issue already exists.
we may add own build tools based on core but i think it will be faster(safer) if we will use core tools as is with README of course.

b) Actually rather than those comments... Since this is a separate contributed project, I don't think it's appropriate to reference a Drupal Core change record at all. What we should do instead is make a README.txt file that explains how to build the CSS and JS files from the source, and reference them.

yes

c) Do we really want to use a font that is hosted externally? I am not sure I'm all that comfortable with that idea.

it was faster action for mvp. also it could be some system font. roboto was good secondary font. in my mind at least.
if it will be roboto or other googlefont we will copy files in theme /fonts dir

d) Are all of the other fonts that are referenced in the variables.pcss.css file available on most/all platforms and browsers?

I think yes but better to research better later

e) I don't see any media queries in the CSS, aside from the print media. Is this theme mobile-friendly?

Not yet, i prefer to add media queries based on honey.breakpoints.yml which isn't added yet

f) There's at least one file with

\ No newline at end of file
in the patch.

Same core generation herritage.

g) We should not have @todo notes from Drupal Core in our files -- typography.pcss.css
h) Typo in the variables.pcss.css file:

Evil copypaste. and it is obvious will be changed in future work.

Anyway thanks for quick review. I hope i will continue soon

jhodgdon’s picture

Thanks for the quick response! We should create a core issue to fix that bug. I totally agree about using the Core tools for building JS and CSS.

Regarding the font, we have to be careful about including files from other projects in ours, due to licensing differences. Here are the policies:
https://www.drupal.org/node/422996
https://www.drupal.org/node/2947530
https://www.drupal.org/node/1475972

I think I would rather either just use generic generally-available fonts or fonts we are able to include in our distribution of this theme, rather than referencing an external URL. This font is I think licensed under an Apache license, so we cannot include it directly. So... we can leave the external URL I guess, as long as there are fallbacks (which there are).

jhodgdon’s picture

Created the core issue about the wrong headers:
#3155159: Fix notice at top of generated CSS files from PCSS

jhodgdon’s picture

See also #3147404: Replace mentions of Mayo theme in User Guide for more about why we are creating this theme.

Also @finnsky, are you interested in possibly co-maintaining this theme?

finnsky’s picture

StatusFileSize
new273.96 KB

ok about co-maintaining.
minimal desktop for secondary colors scheme.

desktp

kostyashupenko’s picture

Hello, is slack chat created for the reference to this theme?

jhodgdon’s picture

Version: » 1.0.x-dev

For anyone following this issue, we are discussing design etc. on the #honey channel in Drupal Slack. Thanks @finnsky for creating it!

jhodgdon’s picture

StatusFileSize
new8.98 KB

I'm running the issue branch as of the latest commit, and I found a contrast problem... I have the main menu in the header area, and the links are nearly impossible to see. They seem to be
foreground: #534400
background: #712c1e

Screenshot attached.

jhodgdon’s picture

StatusFileSize
new3.42 KB

Another problem: the breadcrumbs are an OL list that is showing up numbered.

jhodgdon’s picture

Status: Needs work » Fixed

At this point, I think you've taken care of the "make this theme less ugly" issue. I'll create separate issues for other problems I notice. Thanks a bunch! I've merged this issue branch into the main branch.

jhodgdon’s picture

I'm also going to make a 1.0 release of this theme.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.