From 1e357ef5ac85ab55ad19f832513f5ca7a7e54a52 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Sat, 21 Oct 2023 20:09:49 -0700 Subject: [PATCH] fix(style): prioritize base and custom scss over component css --- quartz/plugins/emitters/componentResources.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quartz/plugins/emitters/componentResources.ts b/quartz/plugins/emitters/componentResources.ts index 5cb34804f..116e4e3e0 100644 --- a/quartz/plugins/emitters/componentResources.ts +++ b/quartz/plugins/emitters/componentResources.ts @@ -164,7 +164,7 @@ export const ComponentResources: QuartzEmitterPlugin = (opts?: Partial< addGlobalPageResources(ctx, resources, componentResources) - const stylesheet = joinStyles(ctx.cfg.configuration.theme, styles, ...componentResources.css) + const stylesheet = joinStyles(ctx.cfg.configuration.theme, ...componentResources.css, styles) const prescript = joinScripts(componentResources.beforeDOMLoaded) const postscript = joinScripts(componentResources.afterDOMLoaded) const fps = await Promise.all([