Top Banner
25

义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

May 28, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit
Page 2: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

自定义现代SharePoint站点陆虎 <[email protected]> 陆添超 <[email protected]>

Page 3: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Branding

Page 4: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Core elements ofbranding in SharePoint

Logos

Site designs

& extensibility

Navigation

Content Structure Theming

Page 5: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Navigation

Page 6: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Overview of navigation options

Site navigation:Team site = left navComm site = top nav

Hub navigation:Connects associated sites

Styling options for both:

Cascading

Page 7: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Recently released megamenu navigation styling

Provides more navigation density

Grouping for better organization and hierarchy

Currently available in horizontal communication site nav and hub nav

Page 8: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Theming

Page 9: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Theme consists of main and

accent colors used accessibly

across a site

Out-of-the box SharePoint

themes include 6 light and 2

dark themes

Can be customized from

those starting points

Overview of theming capabilities

Page 10: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Custom theming: your organization's colors on display

Create great-looking

accessible custom themes

that reflect your organization

Incorporate your themes into

the Change the Look so site

owners can use

Admin can remove the out-

of-the-box themes from the

“Change the Look” panel in

favor of custom themes

Themes can also be applied

via a site design so the right

theme is there when site is

provisioned

Page 11: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Microsoft UI Fabric

theme designer

Create your own custom

themes

Enter your organization’s

color values to generate the

custom theme

Accessibility checker will

highlight issues and values

to be changed

Create your own accessible custom themes

T I P

Page 12: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Content structure with section background

Page 13: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Section backgrounddo’s and don’ts

Use to break up a long page or

highlight content; keep to 1

viewport tall

Use theming for changing entire

page background color; not

section background colors

Use Microsoft UI Fabric front-

end framework for applying

theming to your custom web

parts so they work against

section backgrounds

B E S T P R A C T I C E S

Page 14: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

The new default teal theme

C O M I N G S O O N

Page 15: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Fluent: team site before & after

C O M I N G S O O N

Page 16: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

• Rounded corners

• Text weight and size updates

• Command bar alignment

Fluent: team site before & after

C O M I N G S O O N

Page 17: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Site Scripts and Site Designs

Page 18: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Site Scripts and Site Designs

Site ScriptsA script defining a set of actions to take on a site, such as:

"create list"

"create site column"

Site DesignsA site design can be applied to a site, and can contain one or more site scripts

When to useTo apply consistent site configuration or business logic to sites:

During site creation

As part of hub association

On existing sites

Page 19: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Site Scripts – Where all the Action isactions: [...{

"verb": "createSPList","listName": “Sales Campaign","templateType": 100,"subactions": [

{"verb": "SetDescription","description": "Custom list to illustrate SharePoint site

scripting capabilities"},{

"verb": "addContentType","name": "Contoso Projects"

},{

"verb": "addSPFieldXml","schemaXml": "<Field Type=\"Choice\"

DisplayName=\"Project Status\" Required=\"FALSE\" Format=\"Dropdown\" StaticName=\"ProjectStatus\" Name=\"ProjectStatus\"><Default>In progress</Default><CHOICES><CHOICE>In progress</CHOICE><CHOICE>In review</CHOICE><CHOICE>Hasissues</CHOICE><CHOICE>Done</CHOICE></CHOICES></Field>"

},{

"verb": "addNavLink","url": "Lists/Sales Campaign/All Campaigns.aspx","displayName": "Sales Campaigns","isWebRelative": true

},...

Site Script: JSON file of

actions to be applied to the

site post-creation

Actions can be concatenated in

single file or multiple files can be

used (and reused)

Include Parent and subactions

Field Xml supported

Page 20: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Site design infrastructure

Site Scripts• Title

• ID

• Script actions

(Create List, Apply

Theme, Add to

Nav, Trigger

Flow…)

Site Designs• Title & Desc

• Preview Image

• Web Template

• Site Script Array

• Scope | isDefault

Page 21: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Site scripts – auto-generation

Get-SPOSiteScriptFromList

–ListUrl [listurl]

Get-SPOSiteScriptFromWeb

–WebURL

–IncludeTheming

–IncludeBranding

–IncludeSiteExternalSharingCapability

–IncludeRegionalSettings

–IncludeLists “listurl”

Page 22: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Site script actions

Branding &

Other Site

Settings

Apps & Solutions

SharePoint

Components

JSON Schema: https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-json-schema

SharePoint Components• createSPList

• addSPField

• deleteSPField

• addSPFieldXml

• createSiteColumn

• createSiteColumnXml

• Global Taxonomy

• addSiteColumn

• addContentType

• createContentType

• removeContentType

• addSPView

• removeSPView

• setSPFieldCustomFormatter

Register Solutions:

• installSolution

• SPFx Extension support • associateExtension

• associateListViewCommandSet

• associateFieldCustomizer

Settings• addPrincipalToSPGroup

• addNavLink (QL, Hub, footer)

• removeNavLink (QL, Hub, footer)

• applyTheme

• setSiteLogo

• setSiteBranding

• Header layout

• Header Background

• Navigation Style

• Footer Visibility

• setRegionalSettings

• setSiteExternalSharingCapability

• triggerFlow

• joinHubSite

• activateSPFeature

Page 23: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Branding

SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator

Designing for accessibility: : aka.ms/fabric-toolkit and aka.ms/fabric-sketch-toolkit

Modern SharePoint PnP starter kit: github.com/SharePoint/sp-starter-kit

Site scripts & site designs

Site design and site script overview: http://aka.ms/spsitedesigns

Site script GitHub repo: http://aka.ms/spsitescriptsamples

Additional Resources

Page 24: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit
Page 25: 义现代SharePoint站点 - Microsoft...Branding SharePoint theming documentation: aka.ms/spsitetheming & aka.ms/spthemegenerator Designing for accessibility: : aka.ms/fabric-toolkit

Demo: Site Scripts and Site Designs

https://aka.ms/spdevdays19