MS XAML configuration files for Salesforce Lightning Design System Tokens.
Current release: Spring ’17
Available on Nuget: https://www.nuget.org/packages/SalesforceDesignSystem/
Install-Package SalesforceDesignSystem
Add SLDS library to App.xaml:
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<designSystem:Tokens />
<designSystem:Brushes />
<designSystem:Fonts />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
See Demo App
<Grid Background="{StaticResource SLDS_COLOR_BACKGROUND_BRUSH}"/>
<Style x:Key="DefaultTextStyle" TargetType="TextBlock">
<Setter Property="FontFamily"
Value="{StaticResource SalesforceDefaultFontFamily}" />
<Setter Property="Foreground"
Value="{ThemeResource SLDS_COLOR_TEXT_DEFAULT_BRUSH}" />
</Style>
var tb = new TextBlock()
{
FontFamily = (FontFamily) Application.Current.Resources["SalesforceDesignSystemIcons"],
Text = IconConstants.IconAction.ActionAddContact
};
var tb = new TextBlock()
{
FontFamily = (FontFamily) Application.Current.Resources["SalesforceDesignSystemIcons"],
Text = IconConstants.IconCustom.Custom1
};
var tb = new TextBlock()
{
FontFamily = (FontFamily) Application.Current.Resources["SalesforceDesignSystemIcons"],
Text = IconConstants.IconStandard.StandardAccount
};
var tb = new TextBlock()
{
FontFamily = (FontFamily) Application.Current.Resources["SalesforceDesignSystemIcons"],
Text = IconConstants.IconUtility.UtilitySort
};
$ npm install
$ gulp
- Source code is licensed under BSD 3-Clause
- All icons and images are licensed under Creative Commons Attribution-NoDerivatives 4.0
- The Salesforce Sans font is licensed under our font license