Skip to content

Commit 7dd2efc

Browse files
bramvonkjounicaalador
authored
Document ColorScheme usage for dark and light scheme selection (#4985)
* Document ColorScheme usage for theme selection See vaadin/flow#22988 (comment) * Add missing @ * Apply suggestion from @caalador Co-authored-by: caalador <[email protected]> --------- Co-authored-by: Jouni Koivuviita <[email protected]> Co-authored-by: caalador <[email protected]>
1 parent 161ae05 commit 7dd2efc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

articles/upgrading/index.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ The `themeFor` parameter of the [classname]`@CssImport` annotation (for shadow-D
260260

261261
The special [filename]`document.css` file (for loading styles into the document root in embedded components) is removed as no longer necessary.
262262

263+
You can use [classname]`@ColorScheme` for choosing between light or dark color scheme.
264+
See <<{articles}/styling/themes#color-schemes, Color Schemes>> for more details on using color schemes.
265+
263266
=== Spring Security and StyleSheet
264267

265268
By default, Vaadin Spring Security denies access to URLs that are not explicitly allowed in the <<{articles}/upgrading#security-configuration-changes, security configuration>>. To allow access to custom resources such as `@import 'css/foo.css'`, you need to configure permission for the relevant path in your security settings:

0 commit comments

Comments
 (0)