1
1
import { html } from 'lit-html' ;
2
2
3
3
export default {
4
- title : 'Design/Guidelines ' ,
4
+ title : 'Design/Style Guide ' ,
5
5
} ;
6
6
7
- export const LayoutSystem = ( ) => html `
7
+ export const Layout = ( ) => html `
8
8
< article class ="uui-root uui-text " style ="max-width:580px; ">
9
9
< div
10
10
style ="display:block; border-bottom: 1px solid var(--uui-color-cocoa-black); padding-top: var(--uui-size-layout-5); margin-bottom:var(--uui-size-layout-3); padding-bottom:var(--uui-size-layout-1); ">
11
- < h1 > Layout System </ h1 >
11
+ < h1 > Layout Style Guide </ h1 >
12
12
< p class ="uui-lead ">
13
13
Following predictable rhythms, will form harmonious arrangements< br />
14
14
— ensuring a calm & friendly visual experience.
@@ -24,33 +24,38 @@ export const LayoutSystem = () => html`
24
24
25
25
< h2 > Baseline grid & base unit</ h2 >
26
26
< p >
27
- Baseline grids is a classic layout method, ensuring everything aligns
28
- vertically on line with a certain rhythm. This rhythm will be of same size
29
- as our base-unit, which almost everything in our design will be based
30
- upon.
27
+ Baseline grids is a classic layout method, the goal of it is to ensuring
28
+ everything aligns vertically to a certain rhythm. This rhythm will be of
29
+ same size as our base-unit, which almost everything in our design will be
30
+ based upon.
31
31
</ p >
32
32
< p >
33
- We have no creat way of ensuring this in web applications, but we should
34
- try to follow this concept when we design out layouts.
33
+ We have no technical ways to ensuring this in a web application, but we
34
+ should try to follow this concept when we setup the layout of an
35
+ application.
35
36
</ p >
36
37
< blockquote >
37
38
You can view the baseline grid at anytime by pressing CTRL + G on your
38
39
keyboard.
39
40
</ blockquote >
40
41
< p >
41
- Our base -unit is 6px, providing sizing options of 6, 12, 18, 24, 30, 36,
42
- 42, ... This provides a wide variety of sizes kept in a certain system .
42
+ Base -unit is 6px, providing sizing options of 6, 12, 18, 24, 30, 36, 42 ,
43
+ ... This provides a wide variety of sizes with noticeable difference .
43
44
</ p >
44
45
45
46
< h2 > Spacing</ h2 >
46
47
< p >
47
48
The general rule of spacing is that the space between elements declares
48
- the relation of those. The more related elements are they should stay
49
- closer than ones that are less related. It's not a absolute rule as we can
50
- use other visual elements to indicate separation, like lines and
51
- background color . When using pure space for separation we need to ensure
49
+ the relation of those. The more related elements should stay closer than
50
+ ones that are less related. It's not a absolute rule as we can use other
51
+ visual elements to indicate separation (ex.: a line or different
52
+ background colors) . When using pure space for separation we need to ensure
52
53
the space divided is distinguishable for the eye.
53
54
</ p >
55
+ < blockquote >
56
+ The space between elements matters more than getting the size of the
57
+ elements right.
58
+ </ blockquote >
54
59
< p >
55
60
The layout custom properties provides layout spacing options for most
56
61
cases. using this system will ensure layout spacing will be coherent
@@ -68,53 +73,40 @@ export const LayoutSystem = () => html`
68
73
</ article >
69
74
` ;
70
75
71
- export const TypographyGuideline = ( ) => html `
76
+ export const Typography = ( ) => html `
72
77
< article class ="uui-root uui-text " style ="max-width:580px; ">
73
78
< div
74
79
style ="display:block; border-bottom: 1px solid var(--uui-color-cocoa-black); padding-top: var(--uui-size-layout-5); margin-bottom:var(--uui-size-layout-3); padding-bottom:var(--uui-size-layout-1); ">
75
- < h1 > Typography Guide</ h1 >
80
+ < h1 > Typography Style Guide</ h1 >
76
81
< p class ="uui-lead ">
77
- Typography should differentiated enough visually to establish hierarchy.
78
- This hierarchy should provide a visual overview of the textual content .
82
+ Typography should differentiate enough to establish a visual hierarchy,
83
+ providing orientation points for a calm reading experience .
79
84
</ p >
80
85
< p >
81
86
The following guide will take you through the concepts of the Umbraco
82
- Textual Styles. This establishes a common textual reading experience
83
- across sections and implementations.
87
+ Typography Styles. This establishes a common textual layouts across
88
+ parts and implementations.
84
89
</ p >
85
90
</ div >
86
91
87
- < h2 > Font & Weights </ h2 >
92
+ < h2 > Setup </ h2 >
88
93
< p >
89
- The Umbraco font-face is the Google Font: Lato, we have it available in 3
90
- different thicknesses 300 400 and 700.
94
+ The Umbraco Typography can be used on a full web application or on a
95
+ dedicated spot. To set the font use the < b > uui-root</ b > class on the root
96
+ element or a element of interest. Additionally the < b > uui-text</ b > class
97
+ must be set to expose the Umbraco Typography Styles. See the UUI-CSS
98
+ package for more.
91
99
</ p >
92
100
93
- < br />
94
-
95
- < h2 > Headlines</ h2 >
96
- < p > There is five headline sizings to pick from:</ p >
97
- < h5 > Headline H5</ h5 >
98
- < h4 > Headline H4</ h4 >
99
- < h3 > Headline H3</ h3 >
100
- < h2 > Headline H2</ h2 >
101
- < h1 > Headline H1</ h1 >
102
-
103
- < br />
104
-
105
101
< h2 > Paragraphs & other elements</ h2 >
106
- < p >
107
- The default font-size is 15px, for a nice reading experience this conforms
108
- well with a line-height of 24px, which is our base-unit times 4.
102
+ < p class ="uui-lead ">
103
+ A lead paragraph can summarize the following text. Lead paragraphs does
104
+ not have a corresponding native element, this is solved by applying the
105
+ class 'uui-lead' to a <p> element.
109
106
</ p >
110
107
< p >
111
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
112
- tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
113
- veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
114
- commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
115
- velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
116
- cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
117
- est laborum.
108
+ The default font-size is 15px, for a nice reading experience this conforms
109
+ well with a line-height of 24px, (base-unit * 4).
118
110
</ p >
119
111
120
112
< blockquote >
@@ -123,14 +115,33 @@ export const TypographyGuideline = () => html`
123
115
</ blockquote >
124
116
125
117
< p >
126
- Each paragraph is nicely separated, in this way its easier to identify and
127
- relocated after a distraction.
118
+ Each <p> tag is nicely separated, in this way its easier to
119
+ identify and relocated after a distraction.
128
120
</ p >
129
121
130
122
< small >
131
- The small tag can be used for descriptions that cannot take too much
132
- space. The small descriptions use 12px, for a nice reading experience this
133
- conforms well with a line-height of 18px, which is our base-unit times 3 .
123
+ The < small> tag can be used for descriptions that cannot use too
124
+ much space. The small descriptions use 12px, for a nice reading experience
125
+ this conforms well with a line-height of 18px, ( base-unit * 3) .
134
126
</ small >
127
+
128
+ < h2 > Headlines</ h2 >
129
+ < p >
130
+ The headlines can be used via the dedicated native tag or by one of the
131
+ equivalent classes. This means that < b > Headline 1</ b > can be used used via
132
+ < b > <h1></ b > or the class < b > uui-h1</ b > .
133
+ </ p >
134
+ < h5 > Headline H5</ h5 >
135
+ < h4 > Headline H4</ h4 >
136
+ < h3 > Headline H3</ h3 >
137
+ < h2 > Headline H2</ h2 >
138
+ < h1 > Headline H1</ h1 >
139
+ < ul >
140
+ < li > <h5> — .uui-h5</ li >
141
+ < li > <h4> — .uui-h4</ li >
142
+ < li > <h3> — .uui-h3</ li >
143
+ < li > <h2> — .uui-h2</ li >
144
+ < li > <h1> — .uui-h1</ li >
145
+ </ ul >
135
146
</ article >
136
147
` ;
0 commit comments