I have Codey Canyon
theme enabled (the orange one), but a Lightning App
which is being used in a Visualforce page
is still showing the standard blue theme.
Visualforce page
<apex:page showHeader="false" sidebar="false" applyBodyTag="false" applyHtmlTag="true" standardStylesheets="false">
<body>
<apex:includeLightning/>
<div id="main" />
<script>
$Lightning.use("c:CustomLightningApp", function () {
$Lightning.createComponent("CustomLightningComponent",
null,
"main",
function (cmp) {
console.log("created");
}
);
});
</script>
</body>
</apex:page>
Lightning Application: CustomLightningApp
<aura:application access="GLOBAL" extends="ltng:outApp">
<aura:dependency resource="c:CustomLightningComponent" />
</aura:application>
Lightning Component: CustomLightningComponent
<aura:component>
<!-- contents not showing custom theme -->
</aura:component>
How do I get the app to use a custom theme?
variant="brand"
attribute?uses standard lightning components
yes, usingvariant="brand"
sometimes...