?global.css and document.css. Now, in this section's description document.css is introduced as the file to place the global styles, while it seems that global.css should be here instead, since document.css is targeted for web component exporter theming.Example for referencing assets by appending themes/theme-name to the URI is missing for Java code in the following part:
A brief explanation should be added for each part of an assets block to show what each part means, especially the mapping part. A more detailed (but not too long) description with an example is needed to show what is happening by using that mapping (a brief about those assets being copied to the URI introduced) and the fontawesome/icons must be changed to something like some/local/path and then in the example, it should be fontawesome/icons to support the URL referencing example (currently contains the .../fontawesome/icons/...).
@NpmPackage to any class in case of using assets from an NPM package with an example or a link to @NpmPackage documentation. importCss.background-image. importCss block. getStyles().addClassName(“...”) on a Label) and also in html template (<i class="fab ...">).@NpmPackage to a desired class, in case of using assets from an NPM package with an example or a link to @NpmPackage documentation.src/main/resources/META-INF/resources/themes/ plus an optional Java class for adding @NpmPackage) and then the cookbook instructions of creating a (maven) project and the rest of needed steps.@Theme("...") on the App-Shell class by a "theme-name" of existing theme in the jar.vaadin.whitelisted-packages = com/example/package, org/brand/anotherpackage for package scanning optimization in application.properties file in SpringBoot applications. @Theme("...") already exists, it should be updated to the local "theme-name" not the "parent-theme-name".theme-name.generated.js iff it is still going to be placed in the theme-name/ folder. If it is going to be converted into a .ts file placed under /target/frontend, this can be ignored./frontend too.theme.json, styles.css, components, component-tag-name.css) and other files and folder which can have any names. styles.css it should be documented. Also, the fact that other CSS files (except component-specific files) should be imported directly into this file in order to be included/applied.Extracted from the summary part in the DX test document:
https://docs.google.com/document/d/1lwl5BT0lN-VQB5LwK_KvTVzrw8hX_tpNQHj5BW1moRI
Global Styles is not valid after changes for 9741
Assets should note where the assets are copied to e.g. note that they will be added under the themes/theme-name/ + have the target folder there.
importCss the imported css could just be that it always adds body color blue in which instance there would be no extra to add, so also these kinds of cases should be taken into account as not all css need added classnames etc.
Creating the theme jar should perhaps have a view of project files as the contents of a generated jar is not that interesting.
Using a reusable theme jar Spring whitelisting shouldn't probably be delved into in a theming document, but there could be a minor note and a link to the spring documentation or a recommendation to put dependency.java into the package com.vaadin.flow.component, com.vaadin.flow.theme or com.vaadin.shrinkwrap that are always scanned.
On the limitations I don't feel that they should be on the very top of the documentation.
Re the sample folder structure and the descriptions of the items:
Just as a comment on the current state:
document.css and global.css (changed to styles.css) at the moment have the descriptions:
<6> CSS that is always applied to the root of the page (for <<Theming Embedded Web Components,embedded web component>>)
<7> Styles file for the theme that can import other css files, may be applied outside page root
Right, sorry, I wasn't looking at the latest version. Document.css should probably specify the embedded use case specifically, as above, but also mention that it's really just needed for @font-face etc that must be in the doc root.