Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Styling Pages that Use Standard Controllers
Any page associated with a standard controller automatically inherits the style that is used for standard Salesforce pages associated with the specified object. That is, the tab for the specified object appears selected, and the associated color of the tab is used to style all page elements.
You can override the styling of a page that uses a standard controller with the tabStyle attribute on the <apex:page> tag. For example, the following page uses the Account standard controller, but renders a page that highlights the Opportunities tab and uses the Opportunity tab's yellow coloring:
1<apex:page standardController="Account" tabStyle="Opportunity">
2</apex:page>1<apex:page standardController="Account" tabStyle="MyCustomObject__c">
2</apex:page>1<apex:page standardController="Account" tabStyle="Source__tab">
2</apex:page>Alternatively, you can override standard controller page styles with your own custom stylesheets and inline styles.