1212# Color modes
1313
1414Bootstrap 5.3 has introduced [ color modes] ( https://getbootstrap.com/docs/5.3/customize/color-modes/ ) .
15- This chapter is a guide for how to implement color modes in Plone 6.1.
15+ This chapter is a guide for how to implement color modes in Plone 6.
1616
17- ``` {versionadded} Plone 6.1
17+ ``` {versionadded} Plone 6.0.6
1818```
1919
2020
@@ -24,8 +24,8 @@ This chapter is a guide for how to implement color modes in Plone 6.1.
2424## Preferred color modes
2525
2626You will need to add some JavaScript functionality to set the Bootstrap theme to the user's preferred color scheme.
27- Add the JavaScript file to the ` browser/static ` folder of your Plone 6.1 project.
28- Register it in the ` browser/profiles/default/registry ` of your Plone 6.1 project.
27+ Add the JavaScript file to the ` browser/static ` folder of your Plone 6 project.
28+ Register it in the ` browser/profiles/default/registry ` of your Plone 6 project.
2929See {ref}` classic-ui-static-resources-registering-label ` for more information.
3030
3131``` js
@@ -75,8 +75,8 @@ If you want to add a theme toggler to your site, you can use the following examp
7575You will need to add some JavaScript functionality to the toggler.
7676The following code snippet is based on the [ Bootstrap 5.3 documentation] ( https://getbootstrap.com/docs/5.3/customize/color-modes/#javascript ) .
7777
78- Add the JavaScript file to the ` browser/static ` folder of your Plone 6.1 project.
79- Register it in the ` browser/profiles/default/registry ` of your Plone 6.1 project.
78+ Add the JavaScript file to the ` browser/static ` folder of your Plone 6 project.
79+ Register it in the ` browser/profiles/default/registry ` of your Plone 6 project.
8080See {ref}` classic-ui-static-resources-registering-label ` for more information.
8181
8282``` js
@@ -150,7 +150,3 @@ See the following example.
150150 <button type =" submit" class =" btn btn-primary" >Submit</button >
151151</form >
152152```
153-
154- ## Using color modes in Plone 6.0
155-
156- To use color modes in Plone 6.0, manually include ` barceloneta=3.1.0 ` and ` plone.staticresources=2.1.0 ` , as described in {ref}` manage-add-an-add-on ` .
0 commit comments