Skip to content

Instantly share code, notes, and snippets.

@jotraverso
Last active September 21, 2021 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jotraverso/1571b05d80491a8ee0e07849c32d7dea to your computer and use it in GitHub Desktop.
Save jotraverso/1571b05d80491a8ee0e07849c32d7dea to your computer and use it in GitHub Desktop.
.DXPTheme * {
/**
awesome styling, I don't know so much about CSS
*/
}
<template>
<lightning-card class={theme}>
</lightning-card>
</template>
export default class UploadFilesToS3 extends NavigationMixin(LightningElement) {
@api
theme;
/**
.....
*/
}
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>51.0</apiVersion>
<isExposed>true</isExposed>
<targets>
<target>lightning__RecordPage</target>
<target>lightningCommunity__Page</target>
</targets>
<targetConfigs>
<targetConfig targets="lightning__RecordPage">
<property name="theme" type="String" default="defaultTheme" label="Theme for LWC Styling" required="true" description="Put your brain to work" />
<!-- <objects>
<object>Order</object>
</objects> -->
<supportedFormFactors>
<supportedFormFactor type="Small" />
<supportedFormFactor type="Large" />
</supportedFormFactors>
</targetConfig>
<targetConfig targets="lightningCommunity__Page">
<property name="theme" type="String" default="DXPTheme" label="Theme for the Developer Experience Site" required="true" description="Put your brain to work" />
<supportedFormFactors>
<supportedFormFactor type="Small" />
<supportedFormFactor type="Large" />
</supportedFormFactors>
</targetConfig>
</targetConfigs>
</LightningComponentBundle>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment