mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-28 05:58:38 +02:00
refactor: control base styling of code blocks via CSS vars (#7172)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
fe064a87a6
commit
ad1526aade
9 changed files with 45 additions and 17 deletions
|
@ -5,6 +5,7 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import defaultPrismTheme from 'prism-react-renderer/themes/palenight';
|
||||
import {Joi, URISchema} from '@docusaurus/utils-validation';
|
||||
import type {
|
||||
ThemeConfig,
|
||||
|
@ -32,6 +33,7 @@ export const DEFAULT_CONFIG = {
|
|||
metadata: [],
|
||||
prism: {
|
||||
additionalLanguages: [],
|
||||
theme: defaultPrismTheme,
|
||||
},
|
||||
navbar: {
|
||||
hideOnScroll: false,
|
||||
|
@ -335,7 +337,7 @@ export const ThemeConfigSchema = Joi.object({
|
|||
theme: Joi.object({
|
||||
plain: Joi.alternatives().try(Joi.array(), Joi.object()).required(),
|
||||
styles: Joi.alternatives().try(Joi.array(), Joi.object()).required(),
|
||||
}),
|
||||
}).default(DEFAULT_CONFIG.prism.theme),
|
||||
darkTheme: Joi.object({
|
||||
plain: Joi.alternatives().try(Joi.array(), Joi.object()).required(),
|
||||
styles: Joi.alternatives().try(Joi.array(), Joi.object()).required(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue