-
-
Notifications
You must be signed in to change notification settings - Fork 614
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ theming-engine | |
theming-strategy | ||
custom-styling | ||
using-third-party-themes | ||
theming-a-base-theme | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |