Skip to content

Commit

Permalink
Add chapter: theming a base theme
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTango committed Sep 25, 2024
1 parent 0e4f508 commit 783feef
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/theming/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ theming-engine
theming-strategy
custom-styling
using-third-party-themes
theming-a-base-theme
```
36 changes: 36 additions & 0 deletions docs/source/theming/theming-a-base-theme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
html_meta:
"description": "Customize a base theme like `Volto Light Theme` via SCSS."
"property=og:description": "Customize a base theme like `Volto Light Theme` via SCSS."
"property=og:title": "Theming a base theme like `Volto Light Theme`"
"keywords": "Volto, Plone, frontend, React, themes, Volto Light Theme"
---

# Theming a base theme like `Volto Light Theme`

In your Volto addon, create a `theme` folder with the follwing two empty files:

```
src/
├── components
├── index.js
└── theme
├── _main.scss
└── _variables.scss
```

## Variables
`_variables.scss`

This is the place to override SCSS variables of the base theme.

```
$text-color: #000;
$font-size: 18px;
$line-height: 24px;
```

## Main
`_main.scss`

All custom styles should done here. You can also include other SCSS or CSS files here.

0 comments on commit 783feef

Please sign in to comment.