Skip to content

Commit 95a9cda

Browse files
authored
Update sharepoint-add-ins-ux-design-guidelines.md
1 parent 55c3ae9 commit 95a9cda

File tree

1 file changed

+60
-67
lines changed

1 file changed

+60
-67
lines changed

docs/sp-add-ins/sharepoint-add-ins-ux-design-guidelines.md

Lines changed: 60 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
---
2-
title: SharePoint Add-ins UX design guidelines
3-
ms.prod: SHAREPOINT
4-
ms.assetid: a4a8f53c-27d7-43dc-b6db-aa7b1f1c7d45
5-
---
6-
7-
81
# SharePoint Add-ins UX design guidelines
92
Learn about general user experience (UX) design guidelines for add-ins in SharePoint 2013, including choosing the chrome, using CSS, managing user licenses, and other design tasks.
103

@@ -46,7 +39,7 @@ The add-in template can be used only for SharePoint-hosted ASPX pages. The templ
4639

4740

4841

49-
![A SharePoint-hosted page using the app template](images/AppUXGuidelines_AppTemplate.png)
42+
![A SharePoint-hosted page using the app template](../../images/AppUXGuidelines_AppTemplate.png)
5043

5144
The add-in template is the default in Visual Studio when you create an add-in web and pages within that web.
5245

@@ -66,7 +59,7 @@ If you're not building SharePoint-hosted ASPX pages, but you still want your add
6659

6760

6861

69-
![Chrome control in a webpage](images/AppUXGuidelines_ChromeControl.png)
62+
![Chrome control in a webpage](../../images/AppUXGuidelines_ChromeControl.png)
7063

7164

7265

@@ -78,7 +71,7 @@ If you're not building SharePoint-hosted ASPX pages, but you still want your add
7871

7972

8073

81-
![Videos](images/mod_icon_video.png)
74+
![Videos](../../images/mod_icon_video.png)
8275

8376

8477

@@ -192,97 +185,97 @@ The first thing to do when you are styling your add-in is to use semantic HTML a
192185
193186
|**Example**|**Used for**|**Style**|
194187
|:-----|:-----|:-----|
195-
|![ms-textXLarge](images/AppUXGuidelines_ms-textxlarge.png)|Extra large body text|.ms-textXLarge|
196-
|![ms-textlarge](images/AppUXGuidelines_ms-textlarge.png)|Large body text|.ms-textLarge|
197-
|![body](images/AppUXGuidelines_body.png)|Normal body text|Inherited automatically|
198-
|![ms-textsmall](images/AppUXGuidelines_ms-textsmall.png)|Small body text|.ms-textSmall|
199-
|![ms-metadata](images/AppUXGuidelines_ms-metadata.png)|Metadata text|.ms-metadata|
188+
|![ms-textXLarge](../../images/AppUXGuidelines_ms-textxlarge.png)|Extra large body text|.ms-textXLarge|
189+
|![ms-textlarge](../../images/AppUXGuidelines_ms-textlarge.png)|Large body text|.ms-textLarge|
190+
|![body](../../images/AppUXGuidelines_body.png)|Normal body text|Inherited automatically|
191+
|![ms-textsmall](../../images/AppUXGuidelines_ms-textsmall.png)|Small body text|.ms-textSmall|
192+
|![ms-metadata](../../images/AppUXGuidelines_ms-metadata.png)|Metadata text|.ms-metadata|
200193
201194
**Table 2. Title and header styles**
202195
203196
204197
|**Example**|**Used for**|**Style**|
205198
|:-----|:-----|:-----|
206-
|![ms-core-pagetitle](images/AppUXGuidelines_ms-core-pagetitle.png)|Main title on the page|.ms-core-pageTitle|
207-
|![h1](images/AppUXGuidelines_h1.png)|Title for dialog boxes, forms, blogs, and discussion posts. It's an alternative "primary" title for special content types or add-ins that take up the entire pagethat you want to be different from a regular wiki or Web Parts page.|H1|
208-
|![h2](images/AppUXGuidelines_h2.png)|Secondary heading in relation to H1. For example, Communities uses H1 Accent for the title of a post, and H2 Accent for the best "response" to the post.|H2|
209-
|![h3](images/AppUXGuidelines_h3.png)|Generally a subheading under H2.|H3|
210-
|![h4](images/AppUXGuidelines_h4.png)|Subheadings under H3.|H4|
211-
|![ms-webpart-titletext](images/AppUXGuidelines_ms-webpart-titletext.png)|Title of the main/primary Web Part on a page, or for main section headers.|.ms-webpart-titleText|
212-
|![ms-dlg-heading](images/AppUXGuidelines_ms-dlg-heading.png)|Title for headings within dialog boxes or callouts.|.ms-dlg-heading|
199+
|![ms-core-pagetitle](../../images/AppUXGuidelines_ms-core-pagetitle.png)|Main title on the page|.ms-core-pageTitle|
200+
|![h1](../../images/AppUXGuidelines_h1.png)|Title for dialog boxes, forms, blogs, and discussion posts. It's an alternative "primary" title for special content types or add-ins that take up the entire pagethat you want to be different from a regular wiki or Web Parts page.|H1|
201+
|![h2](../../images/AppUXGuidelines_h2.png)|Secondary heading in relation to H1. For example, Communities uses H1 Accent for the title of a post, and H2 Accent for the best "response" to the post.|H2|
202+
|![h3](../../images/AppUXGuidelines_h3.png)|Generally a subheading under H2.|H3|
203+
|![h4](../../images/AppUXGuidelines_h4.png)|Subheadings under H3.|H4|
204+
|![ms-webpart-titletext](../../images/AppUXGuidelines_ms-webpart-titletext.png)|Title of the main/primary Web Part on a page, or for main section headers.|.ms-webpart-titleText|
205+
|![ms-dlg-heading](../../images/AppUXGuidelines_ms-dlg-heading.png)|Title for headings within dialog boxes or callouts.|.ms-dlg-heading|
213206
214207
**Table 3. Navigation styles**
215208
216209
217210
|**Example**|**Used for**|**Style**|
218211
|:-----|:-----|:-----|
219-
|![QuickLaunchHeading](images/AppUXGuidelines_QuickLaunchHeading.png)|Heading of the left navigation bar.|.ms-core-listMenu-verticalBox > .ms-core-listMenu-root > li > .ms-core-listMenu-item|
220-
|![QuickLaunchLink](images/AppUXGuidelines_QuickLaunchLink.png)|Link in the left navigation bar.|.ms-core-listMenu-verticalBox|
221-
|![QuickLaunchSelected](images/AppUXGuidelines_QuickLaunchSelected.png)|Selected item in the left navigation bar.|.ms-core-listMenu-verticalBox + .ms-accentText|
222-
|![TopNav](images/AppUXGuidelines_TopNav.png)|Item in the top navigation bar.||
223-
|![TopNavSelected](images/AppUXGuidelines_TopNavSelected.png)|Selected item in the top navigation bar.||
212+
|![QuickLaunchHeading](../../images/AppUXGuidelines_QuickLaunchHeading.png)|Heading of the left navigation bar.|.ms-core-listMenu-verticalBox > .ms-core-listMenu-root > li > .ms-core-listMenu-item|
213+
|![QuickLaunchLink](../../images/AppUXGuidelines_QuickLaunchLink.png)|Link in the left navigation bar.|.ms-core-listMenu-verticalBox|
214+
|![QuickLaunchSelected](../../images/AppUXGuidelines_QuickLaunchSelected.png)|Selected item in the left navigation bar.|.ms-core-listMenu-verticalBox + .ms-accentText|
215+
|![TopNav](../../images/AppUXGuidelines_TopNav.png)|Item in the top navigation bar.||
216+
|![TopNavSelected](../../images/AppUXGuidelines_TopNavSelected.png)|Selected item in the top navigation bar.||
224217
225218
**Table 4. Command styles**
226219
227220
228221
|**Example**|**Used for**|**Style**|
229222
|:-----|:-----|:-----|
230-
|![ms-commandlink](images/AppUXGuidelines_ms-commandlink.png)|Primary action links you expect the user to take within a given container or page. For example, this would be used to style the commands underneath a callout. This will always be the same color for visited and non-visited commands.|.ms-commandLink|
231-
|![ms-secondarycommandlink](images/AppUXGuidelines_ms-secondarycommandlink.png)|Also used to style action links, but for actions that are secondary to the content. This style is used for these secondary actions, so they don't compete with content for attention.|.ms-secondaryCommandLink|
232-
|![ms-calloutlink](images/AppUXGuidelines_ms-calloutlink.png)|Links in the callout.|.ms-calloutLink|
223+
|![ms-commandlink](../../images/AppUXGuidelines_ms-commandlink.png)|Primary action links you expect the user to take within a given container or page. For example, this would be used to style the commands underneath a callout. This will always be the same color for visited and non-visited commands.|.ms-commandLink|
224+
|![ms-secondarycommandlink](../../images/AppUXGuidelines_ms-secondarycommandlink.png)|Also used to style action links, but for actions that are secondary to the content. This style is used for these secondary actions, so they don't compete with content for attention.|.ms-secondaryCommandLink|
225+
|![ms-calloutlink](../../images/AppUXGuidelines_ms-calloutlink.png)|Links in the callout.|.ms-calloutLink|
233226
234227
**Table 5. Modifier styles**
235228
236229
237230
|**Example**|**Used for**|**Style**|
238231
|:-----|:-----|:-----|
239-
|![ms-accenttext](images/AppUXGuidelines_ms-accenttext.png)|Helper class that will provide the accent color from the current theme for text.|.ms-accentText|
240-
|![hyperlink](images/AppUXGuidelines_hyperlink.png)|Links in the content should inherit from default hyperlink styling and behavior. Hyperlink styling applies a color and a hover effect to indicate that it's a link instead of normal text.|Inherited from using <a>.|
241-
|![ms-error](images/AppUXGuidelines_ms-error.png)|Error messages that occur in forms.|.ms-error|
242-
|![ms-soften](images/AppUXGuidelines_ms-soften.png)|Helper class that provides a softened gray for text that should be less emphasized than normal body text.|.ms-soften|
243-
|![ms-disabled](images/AppUXGuidelines_ms-disabled.png)|Helper class that applies the "disabled" color to text, which is used for denoting disabled states.|.ms-disabled|
244-
|![ms-uppercase](images/AppUXGuidelines_ms-uppercase.png)|Helper class that transforms the text to all caps.|.ms-uppercase|
245-
|![ms-helper](images/AppUXGuidelines_ms-helper.png)|Helper class to style text like forms.|.ms-helper|
246-
|![hr](images/AppUXGuidelines_hr.png)|Dashed line divider that is used to divide sections in the Quick Launch and in menus.|HR|
232+
|![ms-accenttext](../../images/AppUXGuidelines_ms-accenttext.png)|Helper class that will provide the accent color from the current theme for text.|.ms-accentText|
233+
|![hyperlink](../../images/AppUXGuidelines_hyperlink.png)|Links in the content should inherit from default hyperlink styling and behavior. Hyperlink styling applies a color and a hover effect to indicate that it's a link instead of normal text.|Inherited from using <a>.|
234+
|![ms-error](../../images/AppUXGuidelines_ms-error.png)|Error messages that occur in forms.|.ms-error|
235+
|![ms-soften](../../images/AppUXGuidelines_ms-soften.png)|Helper class that provides a softened gray for text that should be less emphasized than normal body text.|.ms-soften|
236+
|![ms-disabled](../../images/AppUXGuidelines_ms-disabled.png)|Helper class that applies the "disabled" color to text, which is used for denoting disabled states.|.ms-disabled|
237+
|![ms-uppercase](../../images/AppUXGuidelines_ms-uppercase.png)|Helper class that transforms the text to all caps.|.ms-uppercase|
238+
|![ms-helper](../../images/AppUXGuidelines_ms-helper.png)|Helper class to style text like forms.|.ms-helper|
239+
|![hr](../../images/AppUXGuidelines_hr.png)|Dashed line divider that is used to divide sections in the Quick Launch and in menus.|HR|
247240
248241
**Table 6. Part user interface styles**
249242
250243
251244
|**Example**|**Used for**|**Style**|
252245
|:-----|:-----|:-----|
253-
|![drag files](images/AppUXGuidelines_dragfiles.png)|Main inline text at the top of a part.|.ms-textXLarge + .ms-soften|
254-
|![ms-herocommandlink](images/AppUXGuidelines_ms-herocommandlink.png)|Commands in the top line of a part; at most there should be only one or two of these per part.|.ms-heroCommandLink|
255-
|![ms-attractmode](images/AppUXGuidelines_ms-attractmode.png)|Text shown to entice the user to interact with the part when it doesn't contain data.|.ms-attractMode|
256-
|![ms-emptymode](images/AppUXGuidelines_ms-emptymode.png)|Text shown to the user when there is no data available.|.ms-emptyMode|
257-
|![mspivotlink](images/AppUXGuidelines_mspivotlink.png)|View controls, such as a pivot.|.ms-pivot-link|
258-
|![ms-listlink](images/AppUXGuidelines_ms-listlink.png)|List items that are also links.|.ms-listLink|
246+
|![drag files](../../images/AppUXGuidelines_dragfiles.png)|Main inline text at the top of a part.|.ms-textXLarge + .ms-soften|
247+
|![ms-herocommandlink](../../images/AppUXGuidelines_ms-herocommandlink.png)|Commands in the top line of a part; at most there should be only one or two of these per part.|.ms-heroCommandLink|
248+
|![ms-attractmode](../../images/AppUXGuidelines_ms-attractmode.png)|Text shown to entice the user to interact with the part when it doesn't contain data.|.ms-attractMode|
249+
|![ms-emptymode](../../images/AppUXGuidelines_ms-emptymode.png)|Text shown to the user when there is no data available.|.ms-emptyMode|
250+
|![mspivotlink](../../images/AppUXGuidelines_mspivotlink.png)|View controls, such as a pivot.|.ms-pivot-link|
251+
|![ms-listlink](../../images/AppUXGuidelines_ms-listlink.png)|List items that are also links.|.ms-listLink|
259252
260253
**Table 7. Background and border styles**
261254
262255
263256
|**Example**|**Used for**|**Style**|
264257
|:-----|:-----|:-----|
265-
|![ms-emphasis](images/AppUXGuidelines_ms-emphasis.png)|To style a rectangle that should be heavily emphasized on the page.|.ms-emphasis|
266-
|![ms-emphasisborder](images/AppUXGuidelines_ms-emphasisborder.png)|Border of an emphasized element.|.ms-emphasisBorder|
267-
|![ms-subtleemphasis](images/AppUXGuidelines_ms-subtleemphasis.png)|A more subtle emphasis of an element.|.ms-subtleEmphasis|
268-
|![ms-subtleemphasiscommand](images/AppUXGuidelines_ms-subtleemphasiscommand.png)|Commands in an element styled with ms-subtleEmphasis.|.ms-subtleEmphasisCommand|
269-
|![ms-subtleemphasiscommand-disabled](images/AppUXGuidelines_ms-subtleemphasiscommand-disabled.png)|Disabled command in an element styled with ms-subtleEmphasis.|.ms-subtleEmphasisCommand-disabled|
270-
|![ms-sidenav](images/AppUXGuidelines_ms-sidenav.png)|Side navigation elements.|.ms-sideNav|
271-
|![ms-sidenav-selected](images/AppUXGuidelines_ms-sidenav-selected.png)|To style the selected side navigation element.|.ms-sideNav-selected|
272-
|![ms-lines](images/AppUXGuidelines_ms-lines.png)|To emphasize an element using a border.|.ms-lines|
273-
|![ms-subtlelines](images/AppUXGuidelines_ms-subtlelines.png)|To emphasize an element using a subtle border.|.ms-subtleLines|
274-
|![ms-stronglines](images/AppUXGuidelines_ms-stronglines.png)|To emphasize an element using a strong or colored border.|.ms-strongLines|
275-
|![ms-disabledlines](images/AppUXGuidelines_ms-disabledlines.png)|To emphasize a disabled element using a border.|.ms-disabledLines|
276-
|![ms-accentlines](images/AppUXGuidelines_ms-accentlines.png)|To emphasize an element using an accent border.|.ms-accentLines|
277-
|![ms-popupborder](images/AppUXGuidelines_ms-popupborder.png)|To contain pop-up windows.|.ms-popupBorder|
278-
|![ms-bgoverlay](images/AppUXGuidelines_ms-bgoverlay.png)|To apply an overlay on the background element.|.ms-bgOverlay|
279-
|![bgdisabled](images/AppUXGuidelines_bgdisabled.png)|To make the background of an element appear disabled.|.ms-bgDisabled|
280-
|![ms-bgheader](images/AppUXGuidelines_ms-bgheader.png)|To apply the header background color.|.ms-bgHeader|
281-
|![ms-bgfooter](images/AppUXGuidelines_ms-bgfooter.png)|To apply the footer background color.|.ms-bgFooter|
282-
|![md-bghoverable normal](images/AppUXGuidelines_md-bghoverable-normal.png)|Elements that should have a highlighted color on hover. The example shows the element when the mouse is not hovering over it.|.ms-bgHoverable|
283-
|![ms-bghoverable-onhover](images/AppUXGuidelines_ms-bghoverable-onhover.png)|Elements that should have a highlighted color on hover. The example shows the element when the mouse is hovering over it.|.ms-bgHoverable|
284-
|![ms-bgselected](images/AppUXGuidelines_ms-bgselected.png)|To show selection on an element.|.ms-bgSelected|
285-
|![ms-topbar](images/AppUXGuidelines_ms-topbar.png)|Elements in the top bar of the page.|.ms-topBar|
258+
|![ms-emphasis](../../images/AppUXGuidelines_ms-emphasis.png)|To style a rectangle that should be heavily emphasized on the page.|.ms-emphasis|
259+
|![ms-emphasisborder](../../images/AppUXGuidelines_ms-emphasisborder.png)|Border of an emphasized element.|.ms-emphasisBorder|
260+
|![ms-subtleemphasis](../../images/AppUXGuidelines_ms-subtleemphasis.png)|A more subtle emphasis of an element.|.ms-subtleEmphasis|
261+
|![ms-subtleemphasiscommand](../../images/AppUXGuidelines_ms-subtleemphasiscommand.png)|Commands in an element styled with ms-subtleEmphasis.|.ms-subtleEmphasisCommand|
262+
|![ms-subtleemphasiscommand-disabled](../../images/AppUXGuidelines_ms-subtleemphasiscommand-disabled.png)|Disabled command in an element styled with ms-subtleEmphasis.|.ms-subtleEmphasisCommand-disabled|
263+
|![ms-sidenav](../../images/AppUXGuidelines_ms-sidenav.png)|Side navigation elements.|.ms-sideNav|
264+
|![ms-sidenav-selected](../../images/AppUXGuidelines_ms-sidenav-selected.png)|To style the selected side navigation element.|.ms-sideNav-selected|
265+
|![ms-lines](../../images/AppUXGuidelines_ms-lines.png)|To emphasize an element using a border.|.ms-lines|
266+
|![ms-subtlelines](../../images/AppUXGuidelines_ms-subtlelines.png)|To emphasize an element using a subtle border.|.ms-subtleLines|
267+
|![ms-stronglines](../../images/AppUXGuidelines_ms-stronglines.png)|To emphasize an element using a strong or colored border.|.ms-strongLines|
268+
|![ms-disabledlines](../../images/AppUXGuidelines_ms-disabledlines.png)|To emphasize a disabled element using a border.|.ms-disabledLines|
269+
|![ms-accentlines](../../images/AppUXGuidelines_ms-accentlines.png)|To emphasize an element using an accent border.|.ms-accentLines|
270+
|![ms-popupborder](../../images/AppUXGuidelines_ms-popupborder.png)|To contain pop-up windows.|.ms-popupBorder|
271+
|![ms-bgoverlay](../../images/AppUXGuidelines_ms-bgoverlay.png)|To apply an overlay on the background element.|.ms-bgOverlay|
272+
|![bgdisabled](../../images/AppUXGuidelines_bgdisabled.png)|To make the background of an element appear disabled.|.ms-bgDisabled|
273+
|![ms-bgheader](../../images/AppUXGuidelines_ms-bgheader.png)|To apply the header background color.|.ms-bgHeader|
274+
|![ms-bgfooter](../../images/AppUXGuidelines_ms-bgfooter.png)|To apply the footer background color.|.ms-bgFooter|
275+
|![md-bghoverable normal](../../images/AppUXGuidelines_md-bghoverable-normal.png)|Elements that should have a highlighted color on hover. The example shows the element when the mouse is not hovering over it.|.ms-bgHoverable|
276+
|![ms-bghoverable-onhover](../../images/AppUXGuidelines_ms-bghoverable-onhover.png)|Elements that should have a highlighted color on hover. The example shows the element when the mouse is hovering over it.|.ms-bgHoverable|
277+
|![ms-bgselected](../../images/AppUXGuidelines_ms-bgselected.png)|To show selection on an element.|.ms-bgSelected|
278+
|![ms-topbar](../../images/AppUXGuidelines_ms-topbar.png)|Elements in the top bar of the page.|.ms-topBar|
286279
For more information, see [Use a SharePoint website's style sheet in SharePoint Add-ins](use-a-sharepoint-website-s-style-sheet-in-sharepoint-add-ins.md).
287280
288281
@@ -453,7 +446,7 @@ Parts are a way for your add-in to surface some information or a small interacti
453446
454447
455448
456-
![Tag cloud part](images/AppUXGuidelines_part.png)
449+
![Tag cloud part](../../images/AppUXGuidelines_part.png)
457450
458451
In Figure 3, the **Tag Cloud from UX Design add-in** is the title of the part. The tag cloud itself is served from the add-in content, and it is hosted in an **iframe** element and fully isolated from the hosting page. Because the add-in content is using the host web's CSS file, it fits in seamlessly with the host page.
459452
@@ -625,7 +618,7 @@ If you have functionality that would make sense to surface in the context of lis
625618
626619
627620
628-
![A custom action in the contextual menu](images/AppUXGuidelines_ECBcustomaction.png)
621+
![A custom action in the contextual menu](../../images/AppUXGuidelines_ECBcustomaction.png)
629622
630623
The code for custom actions that are surfaced in the host web is the same as in previous versions of SharePoint, with the following restrictions:
631624

0 commit comments

Comments
 (0)