-
Notifications
You must be signed in to change notification settings - Fork 3
Style Guide
This is an area where we are capturing decisions made for the Pilcrow interface to enable consistency of look and to save time from revisiting the same questions. It is being built as we go and is a work in progress. There may be another style guide created to act as a code repository for certain items, such as buttons.
Text in a button will not be all caps, because the screen reader will read out each letter like an abbreviation. Instead, we'll use Title Case.
- Sans-Serif: Atkinson Hyperlegible
- Serif: Georgia
- Regular text: 16px
- Large text: 20px
List items should have a thin border without any rounded corners.
Example code to generate a user list:
<user-list
ref="reference-for-jest-attributes"
data-cy="reference-for-cypress-attributes"
:users="array-of-users"
:actions="[
{
ariaLabel: 'value-for-aria-label',
icon: 'name-of-qicon',
action: 'reference-for-action',
help: 'help-text',
cyAttr: 'reference-for-list-item-cypress-attributes',
},
]"
@actionClick="reference-to-function-name"
/>
- Border color used for the user list:
rgba(0, 0, 0, 0.12)
. - User information is positioned to the right in the list item.
- When the list contains icons they are positioned to the left in the list item.
There will be a thin line outlining all rows within a table.
Any used color combinations should pass the WebAim Color Contrast Checker at AA level.
Class Name | Hex Code |
---|---|
primary | #2f5496 |
secondary | #032C73 |
med-blue | #2ea3f2 |
active | #77beed |
accent | #520bbd |
positive | #537b3d |
dark-grey | #525252 |
negative | #ad347c |
su-light-grey | #F3F4F7 |
light-grey | #ccd3e0 |
blu-highlight | #C9E5F8 |
highlight | #F8DB8B |
white | #ffffff |
black | #000000 |