Cardiff Council Content and design system

www.cardiff.gov.uk

App

viewers

Pdf page viewerMarkdown viewMap Image

popups

How to: Animate a popupHow to: Create a popupSuccess popup (page removal)Message popupSuccess popup (and or go to new route)

pages

Base pageHome pageProcess pageDetails page

layout

Section headingDividerNoteMarginsError labelHeadingHighlightAlertNotifyAnimationTextStandard header iconsLinks

input

SwitchTime pickerPickerCheckboxText editorMapSearch bar with GPSSearch addressSearch barText entry

buttons

EditCancel buttonVertical transparent buttonVertical inverted buttonTag buttonCarousel buttonCallout button (Main)Vertical buttonNext / Back buttonsClose buttonInfo buttonFull button

accessibility

AutomationProperties.IsInAccessibleTreeAutomationProperties.NameAutomationProperties.HelpTextUseful docs

Margins

Margins are used to provide whitespace throughout the app to make the app clear and simple to use.

How to use this component

Horizontal Margins

Horizontal margins are the space between the screens edge and any content.

We use a margin of 20 for horizontal spacing.
 
Margin="{StaticResource FormMargins}"
 

Vertical Margins

Vertical margins are the top and bottom spacing between block elements (buttons, Paragraphs, inputs).

We use a margin of 25 for horizontal spacing to devide content into vertical groups.

If you need to divide content use the DividerMargins style.
 
Margin="{StaticResource DividerMargins}"
 

Padding

Any element that is inside a box or solid block of colour should have a minimum horizontal padding of 15 to create a balance of space.

You may also use a minimum vertical padding of 8 (top / bottom) if it looks appropriate and we need to save on vertical spacing.
 
Padding="15,15,15,15"Padding="15,8,15,8"
 
If you feel the layout needs more vertical padding then you should increase by 15 points a time until satisfied.



Deprecated: htmlentities(): Passing null to parameter #1 ($string) of type string is deprecated in /home/site/wwwroot/wp-content/themes/huntsman-child/single-mobile.php on line 96

How should this component look?