- {title &&
{title}
}
- {subtitle &&
{subtitle}
}
+ {title &&
{title as any}
}
+ {subtitle &&
{subtitle as any}
}
{backgroundImage && (
@@ -198,7 +198,7 @@ const HeroView = (props) => {
);
};
-export default withBlockExtensions(HeroView);
+export default HeroView;
```
### Step 3: Create Edit Component
@@ -252,7 +252,7 @@ Update `src/config/blocks.ts`:
import type { ConfigType } from '@plone/registry';
import HeroView from '../components/blocks/myHero/View';
import HeroEdit from '../components/blocks/myHero/Edit';
-import { heroBlockSchema } from '../components/blocks/myHero/schema.js';
+import { heroBlockSchema } from '../components/blocks/myHero/schema';
import heroSVG from '@plone/volto/icons/hero.svg';
export default function install(config: ConfigType) {
@@ -309,14 +309,12 @@ Create `src/theme/blocks/_hero.scss`:
.hero-title {
font-size: 5rem;
- font-weight: var(--font-bold);
- margin-bottom: var(--space-3);
+ margin-bottom: $spacing-small;
line-height: 1;
}
.hero-subtitle {
font-size: 3rem;
- margin-bottom: var(--space-6);
opacity: 0.95;
line-height: 1;
}
@@ -443,7 +441,7 @@ import HeroEdit from '../components/blocks/myHero/Edit';
import {
heroBlockSchema,
heroSchemaEnhancer,
-} from '../components/blocks/myHero/schema.js';
+} from '../components/blocks/myHero/schema';
import { composeSchema } from '@plone/volto/helpers/Extensions';
import { defaultStylingSchema } from '@kitconcept/volto-light-theme/components/Blocks/schema';
import heroSVG from '@plone/volto/icons/hero.svg';
@@ -509,14 +507,12 @@ Update `src/theme/blocks/_hero.scss` to use the CSS custom properties set by the
.hero-title {
font-size: 5rem;
- font-weight: var(--font-bold);
- margin-bottom: var(--space-3);
+ margin-bottom: $spacing-small;
line-height: 1;
}
.hero-subtitle {
font-size: 3rem;
- margin-bottom: var(--space-6);
opacity: 0.95;
line-height: 1;
}
@@ -525,12 +521,14 @@ Update `src/theme/blocks/_hero.scss` to use the CSS custom properties set by the
}
```
-## 3.3 Integrating Third-Party Blocks
+## Integrating Third-Party Blocks
Let's learn how to integrate the `@plone-collective/volto-relateditems-block` into VLT.
### Install the Block
+To install the related items block, make sure you are in the `frontend/packages/volto-my-project` folder, and use the following command:
+
```bash
pnpm install @plone-collective/volto-relateditems-block@latest
```
@@ -553,52 +551,15 @@ Add it to your `package.json` addons (before VLT):
### Enhance the Block Schema
-To add the Block Width widget to the Related Items block, create a schema enhancer file.
-
-Create `src/components/blocks/relatedItems/schemaEnhancer.js`:
-
-```javascript
-import { defineMessages } from 'react-intl';
-
-const messages = defineMessages({
- blockWidth: {
- id: 'Block Width',
- defaultMessage: 'Block Width',
- },
-});
-
-const relatedItemsSchemaEnhancer = ({ formData, schema, intl }) => {
- schema.properties.styles.schema.fieldsets[0].fields = [
- 'blockWidth:noprefix',
- ...schema.properties.styles.schema.fieldsets[0].fields,
- ];
-
- schema.properties.styles.schema.properties['blockWidth:noprefix'] = {
- widget: 'blockWidth',
- title: intl.formatMessage(messages.blockWidth),
- default: 'default',
- filterActions: ['narrow', 'default'],
- };
-
- return schema;
-};
-
-export default relatedItemsSchemaEnhancer;
-```
-
-Then update `src/config/blocks.ts` to register the enhancer:
+To add the theme feature to the Related Items block, update `src/config/blocks.ts` to register the `defaultStylingSchema` enhancer:
```typescript
-import { composeSchema } from '@plone/volto/helpers/Extensions';
-import { defaultStylingSchema } from '@kitconcept/volto-light-theme/components/Blocks/schema';
-import relatedItemsSchemaEnhancer from '../components/blocks/relatedItems/schemaEnhancer';
-
export default function install(config: ConfigType) {
// ... previous configuration ...
config.blocks.blocksConfig.relatedItems = {
...config.blocks.blocksConfig.relatedItems,
- schemaEnhancer: composeSchema(defaultStylingSchema, relatedItemsSchemaEnhancer),
+ schemaEnhancer: defaultStylingSchema,
};
return config;
@@ -611,13 +572,10 @@ Create `src/theme/blocks/_relatedItems.scss`:
```scss
.block.relatedItems {
- max-width: var(--block-width);
- margin-right: auto;
- margin-left: auto;
-
.inner-container {
background: var(--theme-high-contrast-color);
padding: 3rem;
+ width: var(--narrow-container-width);
h2.headline {
color: var(--theme-foreground-color);
@@ -630,8 +588,6 @@ Create `src/theme/blocks/_relatedItems.scss`:
}
}
}
-
-
}
```
diff --git a/docs/customizing-volto-light-theme/concepts.md b/docs/customizing-volto-light-theme/concepts.md
index 70ef7e4cd..f324158d9 100644
--- a/docs/customizing-volto-light-theme/concepts.md
+++ b/docs/customizing-volto-light-theme/concepts.md
@@ -6,9 +6,9 @@ myst:
"property=og:title": "Foundation, Concepts & Project Setup"
"keywords": "Plone, Volto, Training, Volto Light Theme"
---
-# 1. Foundation, Concepts & Project Setup
+# Foundation, Concepts & Project Setup
-## 1.1 Volto Light Theme Core Concepts
+## Volto Light Theme Core Concepts
Volto Light Theme (VLT) is a customizable theme built for the Volto frontend of the Plone CMS. It provides a foundation that aims to solve many common design challenges, while remaining flexible enough for customization. It's particularly valuable because it is based on real-world experience, while simultaneously embodying the Volto vision for the future. This module will help you understand the core concepts in VLT and create a mental map of its parts.
@@ -139,11 +139,11 @@ The `BlockAlignmentWidget` takes advantage of the StyleWrapper by setting the `-
--align-right: end;
```
-## 1.2 Create a New Project with Cookieplone
+## Create a New Project with Cookieplone
We recommend creating your Plone project with **Cookieplone**. Our comprehensive documentation provides step-by-step guidance to help you get started. For detailed installation instructions, visit our [Cookieplone guide](https://6.docs.plone.org/install/create-project-cookieplone.html).
-## 1.3 Installing Volto Light Theme
+## Installing Volto Light Theme
### Step 1: Install VLT and Recommended Block Add-ons
@@ -252,7 +252,7 @@ To enable site customization through the UI:
Now your project should have the VLT Site configurations available.
-## 1.4 File Structure Setup
+## File Structure Setup
Let's set up the recommended file structure. In your project add-on's `src` folder, create the following structure:
diff --git a/docs/customizing-volto-light-theme/design-system-implementation.md b/docs/customizing-volto-light-theme/design-system-implementation.md
index 71cabcf3e..eaadd9aa3 100644
--- a/docs/customizing-volto-light-theme/design-system-implementation.md
+++ b/docs/customizing-volto-light-theme/design-system-implementation.md
@@ -7,9 +7,9 @@ myst:
"keywords": "Plone, Volto, Training, Theme, Footer"
---
-# 2. Design System Implementation & Theming
+# Design System Implementation & Theming
-## 2.1 Extracting Design Tokens
+## Extracting Design Tokens
When working with a given design, systematically extract design decisions. Identify:
@@ -38,13 +38,26 @@ Look for:
- Font weights
-## 2.2 Implementing Your Design System
+## Implementing Your Design System
VLT has migrated to use standardized color definitions. These use CSS properties that are injected at runtime in the right places, so your CSS can adapt to use them generically. The resulting CSS is simpler, and there's no need to define class names for each color definition.
-### Step 1: Create _site.scss
+### Step 1: Add Font Files
-In `src/theme/_site.scss`, define your color variables and custom properties:
+If you're using custom fonts, add the font files to your theme directory. Create a `fonts` folder in your theme directory and place your font files there:
+
+```
+src/theme/fonts/Chakra_Petch/
+ ├── ChakraPetch-Regular.ttf
+ ├── ChakraPetch-Bold.ttf
+ └── ... (other font weights/styles)
+```
+
+This ensures the font files are bundled with your theme and can be referenced in your SCSS files.
+
+### Step 2: Create _site.scss
+
+In `src/theme/_site.scss`, define your color variables, custom properties and block-specific styles:
```scss
@font-face {
@@ -181,7 +194,7 @@ In `src/theme/_site.scss`, define your color variables and custom properties:
}
```
-### Step 2: Configure Block Themes
+### Step 3: Configure Block Themes
In `src/config/blocks.ts`, define block themes:
@@ -203,133 +216,14 @@ export default function install(config: ConfigType) {
},
{
style: {
- '--theme-color': `/* White edge bleed for continuity */
- linear-gradient(180deg,
- rgba(255, 255, 255, 0.9) 0%,
- rgba(255, 255, 255, 0.6) 8%,
- rgba(255, 255, 255, 0.3) 12%,
- transparent 18%,
- transparent 82%,
- rgba(255, 255, 255, 0.3) 88%,
- rgba(255, 255, 255, 0.6) 92%,
- rgba(255, 255, 255, 0.9) 100%),
-
- /* Top white highlights - asymmetric cluster */
- radial-gradient(ellipse 900px 650px at 12% 8%,
- rgba(255, 255, 255, 0.38) 0%,
- rgba(243, 251, 251, 0.26) 28%,
- rgba(228, 244, 244, 0.14) 52%,
- transparent 72%),
-
- radial-gradient(ellipse 750px 850px at 6% 22%,
- rgba(255, 255, 255, 0.34) 0%,
- rgba(238, 249, 249, 0.2) 32%,
- rgba(220, 240, 240, 0.1) 58%,
- transparent 78%),
-
- radial-gradient(ellipse 820px 580px at 88% 12%,
- rgba(255, 255, 255, 0.42) 0%,
- rgba(246, 252, 252, 0.28) 30%,
- rgba(232, 246, 246, 0.15) 54%,
- transparent 74%),
-
- /* Bottom white highlights - dispersed asymmetrically */
- radial-gradient(ellipse 980px 620px at 82% 88%,
- rgba(255, 255, 255, 0.4) 0%,
- rgba(244, 251, 251, 0.27) 26%,
- rgba(230, 245, 245, 0.13) 50%,
- transparent 73%),
-
- radial-gradient(ellipse 680px 780px at 18% 90%,
- rgba(255, 255, 255, 0.35) 0%,
- rgba(240, 250, 250, 0.22) 34%,
- rgba(225, 242, 242, 0.11) 60%,
- transparent 80%),
-
- radial-gradient(ellipse 720px 520px at 68% 94%,
- rgba(255, 255, 255, 0.3) 0%,
- rgba(235, 247, 247, 0.17) 38%,
- transparent 68%),
-
- /* Color hotspot 1 - upper right quadrant */
- radial-gradient(ellipse 850px 750px at 70% 35%,
- rgba(175, 202, 200, 0.5) 0%,
- rgba(180, 206, 204, 0.38) 25%,
- rgba(190, 212, 210, 0.24) 45%,
- rgba(200, 220, 218, 0.12) 65%,
- transparent 85%),
-
- /* Color hotspot 2 - lower left quadrant */
- radial-gradient(ellipse 920px 800px at 25% 65%,
- rgba(165, 195, 193, 0.45) 0%,
- rgba(175, 202, 200, 0.34) 28%,
- rgba(185, 210, 208, 0.22) 50%,
- rgba(195, 215, 213, 0.11) 70%,
- transparent 87%),
-
- /* Color hotspot 3 - center right */
- radial-gradient(circle 700px at 78% 52%,
- rgba(170, 198, 196, 0.42) 0%,
- rgba(180, 205, 203, 0.3) 30%,
- rgba(192, 214, 212, 0.18) 55%,
- rgba(205, 222, 220, 0.09) 75%,
- transparent 90%),
-
- /* Organic flow connecting hotspots */
- radial-gradient(ellipse 1100px 900px at 45% 48%,
- rgba(175, 202, 200, 0.28) 0%,
- rgba(185, 210, 208, 0.18) 35%,
- rgba(195, 216, 214, 0.1) 60%,
- rgba(205, 222, 220, 0.05) 78%,
- transparent 90%),
-
- /* Additional scattered color pockets */
- radial-gradient(circle 550px at 15% 40%,
- rgba(172, 198, 196, 0.32) 0%,
- rgba(182, 207, 205, 0.2) 38%,
- rgba(195, 216, 214, 0.1) 68%,
- transparent 85%),
-
- radial-gradient(ellipse 680px 580px at 88% 68%,
- rgba(178, 203, 201, 0.35) 0%,
- rgba(188, 210, 208, 0.22) 35%,
- rgba(200, 218, 216, 0.11) 65%,
- transparent 82%),
-
- radial-gradient(ellipse 620px 720px at 52% 28%,
- rgba(168, 196, 194, 0.3) 0%,
- rgba(180, 205, 203, 0.18) 40%,
- rgba(195, 215, 213, 0.08) 70%,
- transparent 88%),
-
- radial-gradient(circle 480px at 35% 78%,
- rgba(175, 200, 198, 0.28) 0%,
- rgba(188, 210, 208, 0.15) 42%,
- transparent 75%),
-
- /* Asymmetrical accent flows */
- conic-gradient(from 125deg at 28% 44%,
- transparent 0deg,
- rgba(178, 203, 201, 0.18) 48deg,
- rgba(185, 210, 208, 0.14) 95deg,
- transparent 145deg,
- rgba(172, 198, 196, 0.12) 235deg,
- transparent 285deg),
-
- /* Base gradient foundation - subtle */
- linear-gradient(182deg,
- #ffffff 0%,
- #f9fcfc 10%,
- #ebf4f3 22%,
- #d8e6e5 35%,
- #c5d8d6 45%,
- #b8cece 52%,
- #c5d8d6 59%,
- #d8e6e5 69%,
- #ebf4f3 82%,
- #f9fcfc 92%,
- #ffffff 100%)`,
- '--theme-high-contrast-color': 'rgba(255, 255, 255, 0.1)',
+ '--theme-color': `linear-gradient(180deg, oklab(1 0 0 / 0.9) 0%, transparent 15%, transparent 85%, oklab(1 0 0 / 0.9) 100%),
+ radial-gradient(ellipse 850px 700px at 12% 15%, oklab(1 0 0 / 0.4) 0%, transparent 70%),
+ radial-gradient(ellipse 900px 650px at 85% 85%, oklab(1 0 0 / 0.4) 0%, transparent 70%),
+ radial-gradient(ellipse 850px 750px at 70% 35%, oklab(0.805 -0.030 -0.003 / 0.5) 0%, oklab(0.835 -0.025 -0.002 / 0.2) 50%, transparent 85%),
+ radial-gradient(ellipse 920px 800px at 25% 65%, oklab(0.780 -0.032 -0.004 / 0.45) 0%, oklab(0.825 -0.027 -0.003 / 0.2) 50%, transparent 87%),
+ radial-gradient(ellipse 1100px 900px at 50% 50%, oklab(0.805 -0.030 -0.003 / 0.25) 0%, oklab(0.850 -0.025 -0.002 / 0.1) 60%, transparent 90%),
+ linear-gradient(182deg, oklab(1 0 0) 0%, oklab(0.988 -0.006 0) 10%, oklab(0.958 -0.016 -0.001) 22%, oklab(0.910 -0.025 -0.003) 35%, oklab(0.860 -0.030 -0.003) 45%, oklab(0.820 -0.032 -0.004) 52%, oklab(0.860 -0.030 -0.003) 59%, oklab(0.910 -0.025 -0.003) 69%, oklab(0.958 -0.016 -0.001) 82%, oklab(0.988 -0.006 0) 92%, oklab(1 0 0) 100%)`,
+ '--theme-high-contrast-color': 'oklab(1 0 0 / 0.1)',
'--theme-foreground-color': 'black',
'--theme-low-contrast-foreground-color': '#555555',
},
@@ -342,26 +236,6 @@ export default function install(config: ConfigType) {
}
```
-### Step 3: Configure Settings
-
-In `src/config/settings.ts`:
-
-```typescript
-import type { ConfigType } from '@plone/registry';
-import installBlocks from './blocks';
-
-export default function install(config: ConfigType) {
- // Language settings
- config.settings.isMultilingual = false;
- config.settings.supportedLanguages = ['en'];
- config.settings.defaultLanguage = 'en';
-
- installBlocks(config);
-
- return config;
-}
-```
-
### Step 4: Main Index Configuration
In `src/index.ts`:
@@ -369,9 +243,11 @@ In `src/index.ts`:
```typescript
import type { ConfigType } from '@plone/registry';
import installSettings from './config/settings';
+import installBlocks from './config/blocks';
function applyConfig(config: ConfigType) {
installSettings(config);
+ installBlocks(config);
return config;
}
@@ -386,68 +262,4 @@ In `src/theme/_main.scss`:
@import './site';
```
-## 2.3 Customizing Block Styles
-
-Let's add custom styles for specific blocks. In your `_site.scss`, add block-specific styles:
-
-```scss
-:root {
- // ... previous variables ...
-
- #page-document {
- .block {
- &.__button {
- .button {
- button {
- padding: 1rem;
- }
- }
- }
-
- &.__button {
- .ui.button:hover {
- --theme-color: white;
- }
- }
-
- &.slider {
- .teaser-item-title {
- background: rgba(255, 255, 255, 0.1);
- color: var(--theme-foreground-color) !important;
- backdrop-filter: blur(20px) saturate(110%);
- -webkit-backdrop-filter: blur(20px) saturate(180%);
- box-shadow:
- 0 8px 32px 0 rgba(31, 135, 125, 0.1),
- inset 0 0 0 1px rgba(255, 255, 255, 0.1);
- }
- }
-
- &.gridBlock {
- .four {
- .slate {
- padding: 2.5rem;
- padding-top: 4rem !important;
- backdrop-filter: blur(20px) saturate(110%);
- -webkit-backdrop-filter: blur(20px) saturate(180%);
- box-shadow:
- 0 8px 32px 0 rgba(31, 135, 125, 0.1),
- inset 0 0 0 1px rgba(255, 255, 255, 0.1);
- }
- }
- }
-
- &.teaser {
- .card {
- .card-inner {
- .card-summary {
- padding: $spacing-large;
- }
- }
- }
- }
- }
- }
-}
-```
-
---
\ No newline at end of file
From 451922af406cb04c0eec97218d6b8269c0dda358 Mon Sep 17 00:00:00 2001
From: iRohitSingh
Date: Sun, 12 Oct 2025 21:33:00 +0300
Subject: [PATCH 3/5] Fix code and css
---
.../block-development-widgets.md | 124 +++++++++++-------
.../customizing-volto-light-theme/concepts.md | 2 +-
2 files changed, 79 insertions(+), 47 deletions(-)
diff --git a/docs/customizing-volto-light-theme/block-development-widgets.md b/docs/customizing-volto-light-theme/block-development-widgets.md
index d1f010bd5..30b21f7c3 100644
--- a/docs/customizing-volto-light-theme/block-development-widgets.md
+++ b/docs/customizing-volto-light-theme/block-development-widgets.md
@@ -144,36 +144,35 @@ import type { BlockViewProps } from '@plone/types';
const HeroView = (props: BlockViewProps) => {
const { className, style } = props;
- const { title, subtitle, backgroundImage, image_scales, url } = props?.data;
+ const { title, subtitle, backgroundImage, url } = props?.data || {};
+
+ const hasImage = backgroundImage?.[0]?.['@id'];
let renderedImage = null;
- if (backgroundImage) {
- let Image = config.getComponent('Image').component;
+ if (hasImage) {
+ const Image = config.getComponent('Image').component;
+ const imageItem = backgroundImage[0];
+
if (Image) {
renderedImage = (
);
} else {
renderedImage = (
{
}
return (
-
+
+ {hasImage &&
{renderedImage}
}
+
- {title &&
{title as any}
}
- {subtitle &&
{subtitle as any}
}
+ {title &&
{title}
}
+ {subtitle &&
{subtitle}
}
-
- {backgroundImage && (
-
{renderedImage}
- )}
);
@@ -285,40 +285,72 @@ Create `src/theme/blocks/_hero.scss`:
.block.hero {
position: relative;
display: flex;
+ width: var(--default-container-width);
+ max-width: var(--block-width) !important;
align-items: center;
justify-content: center;
- background-size: cover;
- background-position: center;
+ background-color: var(--theme-color);
+ color: var(--theme-foreground-color);
+ margin-inline: auto;
+ // default text view
.hero-content {
- .hero-image-wrapper {
- img {
- aspect-ratio: var(--image-aspect-ratio, 16/9);
- opacity: 0.8;
- }
+ position: relative;
+ z-index: 1;
+ width: 100%;
+ }
+
+ .hero-text {
+ display: flex;
+ width: 100%;
+ height: 100%;
+ flex-direction: column;
+ align-items: var(--align--block-alignment);
+ gap: 1rem;
+ text-align: var(--align--block-alignment);
+
+ .hero-title {
+ margin-bottom: $spacing-small;
+ font-size: 5rem;
+ line-height: 1.1;
}
- .hero-text {
+ .hero-subtitle {
+ margin-bottom: $spacing-small;
+ font-size: 2rem;
+ line-height: 1.3;
+ opacity: 0.9;
+ }
+ }
+
+ // has-image version
+ &.has-image {
+ color: #fff;
+
+ .hero-image-wrapper {
position: absolute;
- display: flex;
- flex-direction: column;
- width: 100%;
- height: 100%;
- padding: 4rem;
- z-index: 2;
+ z-index: 0;
+ inset: 0;
- .hero-title {
- font-size: 5rem;
- margin-bottom: $spacing-small;
- line-height: 1;
+ img {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ opacity: 0.7;
}
- .hero-subtitle {
- font-size: 3rem;
- opacity: 0.95;
- line-height: 1;
+ &::after {
+ position: absolute;
+ background: rgba(0, 0, 0, 0.4);
+ content: '';
+ inset: 0;
}
}
+
+ .hero-content {
+ position: relative;
+ z-index: 1;
+ }
}
}
```
@@ -334,7 +366,7 @@ Import in `src/theme/_main.scss`:
Now let's add VLT's powerful widgets to control block width and alignment. Update the schema file to add the schema enhancer.
-Update `src/components/blocks/myHero/schema.js`:
+Update `src/components/blocks/myHero/schema.ts`:
```javascript
import { defineMessages } from 'react-intl';
diff --git a/docs/customizing-volto-light-theme/concepts.md b/docs/customizing-volto-light-theme/concepts.md
index f324158d9..a5d16434f 100644
--- a/docs/customizing-volto-light-theme/concepts.md
+++ b/docs/customizing-volto-light-theme/concepts.md
@@ -220,7 +220,7 @@ dependencies = [
"plone.api",
"plone.restapi",
"plone.volto",
- "kitconcept.voltolighttheme==7.3.0",
+ "kitconcept.voltolighttheme==7.3.1",
]
```
From a9f3ef7bfe3a9e029ba8680112bf7052b49d5220 Mon Sep 17 00:00:00 2001
From: iRohitSingh
Date: Mon, 13 Oct 2025 09:51:11 +0300
Subject: [PATCH 4/5] minor fix
---
docs/customizing-volto-light-theme/block-development-widgets.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/customizing-volto-light-theme/block-development-widgets.md b/docs/customizing-volto-light-theme/block-development-widgets.md
index 30b21f7c3..16209a8c4 100644
--- a/docs/customizing-volto-light-theme/block-development-widgets.md
+++ b/docs/customizing-volto-light-theme/block-development-widgets.md
@@ -285,7 +285,7 @@ Create `src/theme/blocks/_hero.scss`:
.block.hero {
position: relative;
display: flex;
- width: var(--default-container-width);
+ width: 100%;
max-width: var(--block-width) !important;
align-items: center;
justify-content: center;
From b058e481caa5c8c3c9c8056753f197e67c55e8b3 Mon Sep 17 00:00:00 2001
From: iRohitSingh
Date: Mon, 13 Oct 2025 22:18:24 +0300
Subject: [PATCH 5/5] fix the highlighting issue for sass and less and other
build issue
---
docs/conf.py | 2 ++
.../advanced-components-bm3.md | 4 +---
.../block-development-widgets.md | 6 +-----
docs/customizing-volto-light-theme/concepts.md | 5 +----
.../design-system-implementation.md | 4 +---
docs/mastering-plone/events.md | 2 +-
6 files changed, 7 insertions(+), 16 deletions(-)
diff --git a/docs/conf.py b/docs/conf.py
index b97b86106..741c82bd6 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -6,6 +6,8 @@
from datetime import datetime
+suppress_warnings = ["misc.highlighting_failure"]
+
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
diff --git a/docs/customizing-volto-light-theme/advanced-components-bm3.md b/docs/customizing-volto-light-theme/advanced-components-bm3.md
index 221f8f915..c463e6936 100644
--- a/docs/customizing-volto-light-theme/advanced-components-bm3.md
+++ b/docs/customizing-volto-light-theme/advanced-components-bm3.md
@@ -826,6 +826,4 @@ Vertical spacing between blocks is provided by the **upper block**:
```
-Notice how the actual block content remains identical in both modes, while the framework containers handle all the differences in layout and editing functionality.
-
----
+Notice how the actual block content remains identical in both modes, while the framework containers handle all the differences in layout and editing functionality.
\ No newline at end of file
diff --git a/docs/customizing-volto-light-theme/block-development-widgets.md b/docs/customizing-volto-light-theme/block-development-widgets.md
index 16209a8c4..cc5016326 100644
--- a/docs/customizing-volto-light-theme/block-development-widgets.md
+++ b/docs/customizing-volto-light-theme/block-development-widgets.md
@@ -293,7 +293,6 @@ Create `src/theme/blocks/_hero.scss`:
color: var(--theme-foreground-color);
margin-inline: auto;
- // default text view
.hero-content {
position: relative;
z-index: 1;
@@ -323,7 +322,6 @@ Create `src/theme/blocks/_hero.scss`:
}
}
- // has-image version
&.has-image {
color: #fff;
@@ -630,6 +628,4 @@ Import it in `_main.scss`:
@import './blocks/hero';
@import './blocks/relatedItems';
@import './site';
-```
-
----
+```
\ No newline at end of file
diff --git a/docs/customizing-volto-light-theme/concepts.md b/docs/customizing-volto-light-theme/concepts.md
index a5d16434f..993331413 100644
--- a/docs/customizing-volto-light-theme/concepts.md
+++ b/docs/customizing-volto-light-theme/concepts.md
@@ -280,7 +280,4 @@ touch index.ts
touch theme/_main.scss theme/_site.scss
```
-Remember that if you add new files to your project, it will be necessary to restart your Plone frontend.
-
-
----
\ No newline at end of file
+Remember that if you add new files to your project, it will be necessary to restart your Plone frontend.
\ No newline at end of file
diff --git a/docs/customizing-volto-light-theme/design-system-implementation.md b/docs/customizing-volto-light-theme/design-system-implementation.md
index eaadd9aa3..ff014bf02 100644
--- a/docs/customizing-volto-light-theme/design-system-implementation.md
+++ b/docs/customizing-volto-light-theme/design-system-implementation.md
@@ -260,6 +260,4 @@ In `src/theme/_main.scss`:
```scss
@import './site';
-```
-
----
\ No newline at end of file
+```
\ No newline at end of file
diff --git a/docs/mastering-plone/events.md b/docs/mastering-plone/events.md
index bcc7e0ddc..fd6b1b707 100644
--- a/docs/mastering-plone/events.md
+++ b/docs/mastering-plone/events.md
@@ -267,7 +267,7 @@ This trick does not yet work in Volto because some css-classes are still missing
Modify {file}`frontend/theme/extras/custom.overrides` and add:
-```less
+```css
/* Hide date fields from contributors */
body.userrole-contributor {
#default-start.field,