Skip to content

Commit 6244898

Browse files
authored
Merge pull request plone#1515 from plone/classic-ui-color-modes
2 parents e13ad5e + 6a5c87c commit 6244898

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

docs/classic-ui/theming/color-mode.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ myst:
1212
# Color modes
1313

1414
Bootstrap 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

2626
You 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.
2929
See {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
7575
You will need to add some JavaScript functionality to the toggler.
7676
The 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.
8080
See {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

Comments
 (0)