You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: apps/design-land/src/app/typography/typography.component.html
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ <h1>Typography</h1>
2
2
<p>We use typography to establish hierarchy, organize information, and guide our users through a product or experience.</p>
3
3
4
4
<h2>Type scale</h2>
5
-
<p>The Design Land typopgrahic scale is designed with visual distinctions to help our users better understand content and UI. Text sizes, styles, and layouts were selected to maintain logical hierarchies and drive consistency throughout an application.</p>
5
+
<p>The typopgrahic scale is designed with visual distinctions to help our users better understand content and UI. Text sizes, styles, and layouts were selected to maintain logical hierarchies and drive consistency throughout an application.</p>
6
6
7
7
<h3>8px system</h3>
8
8
<p>Our type scale is based on an 8px system, where the type is largely divisible by 8. For smaller sizes, the system allows for the scale to be divisble by 4.</p>
Copy file name to clipboardexpand all lines: libs/design/scss/typography/README.md
+19-11
Original file line number
Diff line number
Diff line change
@@ -1,31 +1,39 @@
1
1
# Typography
2
-
Daffodil uses typography to establish hierarchy and create clear visual patterns to guide users through a product or experience.
2
+
Daffodil uses typography to establish hierarchy, organize information, and guide our users through a product or experience.
3
3
4
4
## Usage
5
-
To include typography in your project, you can add the following in your Sass file:
5
+
To include typography in your project, you can include the following in your Sass file:
6
6
7
7
```scss
8
-
@use'@daffodil/design/scss/utilities';
8
+
@use'@daffodil/design/scss/typography';
9
9
```
10
10
11
11
## Type Scale
12
-
`@daffodil/design`'s typographic scale is designed with visual distinctions to help users better understand content and UI. Text sizes, styles, and layouts have been chosen to maintain logical hierarchies and drive consistency throughout an application.
12
+
The typographic scale is designed with visual distinctions to help users better understand content and UI. Text sizes, styles, and layouts have been chosen to maintain logical hierarchies and drive consistency throughout an application.
13
13
14
14
### 8px System
15
15
Our type scale is based on an 8px system, where the type is largely divisible by 8. For smaller sizes, the system allows for the scale to be divisible by 4. Font sizes are typically smaller on mobile and scaled up at the `tablet` breakpoint to be larger on desktop.
16
16
17
-
## Font Stack
18
-
Daffodil uses a system font stack to maximize on performance, legibility, and accessibility. System fonts play into the improvement of today's rich displays Additionally, system fonts provides a seamless experience for users because the application feel more like it blends in with their device's OS.
17
+
## Default Font Stack
18
+
By default, Daffodil uses a system font stack to maximize on performance, legibility, and accessibility. System fonts play into the improvement of today's rich displays Additionally, system fonts provides a seamless experience for users because the application feel more like it blends in with their device's OS.
*`-apple-system` and `BlinkMacSystemFont` targets default fonts in Safari, Firefox, and Chrome on macOS and iOS.
25
25
*`Segoe UI` is the system font for Windows.
26
26
*`Helvetica` and `Arial` are added as fallbacks.
27
27
*`Apple Color Emoji`, `Segoe UI Emoji`, and `Segoe UI Symbol` are included so that emojis are rendered correctly in macOS and Windows.
28
28
29
+
To customize your project's font stack, you can pass the `$font-family-base` variable to the typography module in your `style.scss` file:
30
+
31
+
```scss
32
+
@use'@daffodil/design/scss/typography'with (
33
+
$font-family-base: 'Arial',
34
+
);
35
+
```
36
+
29
37
## Typography Mixins
30
38
Typography mixins are used to keep typography consistent with logical hierarchies. Utilizing the mixin ensures that content within the UI are clear and easily recognizable. Mixins are available for headlines, body, subheading, and caption. They are used within the `@daffodil/design` components and can also be used within custom CSS.
31
39
@@ -46,10 +54,10 @@ The headline mixins are responsive and will adjust at the `tablet` breakpoint.
46
54
47
55
**Example:**
48
56
```scss
49
-
@use'@daffodil/design/scss/utilities';
57
+
@use'@daffodil/design/scss/typography';
50
58
51
59
.title {
52
-
@includeutilities.headline-xl;
60
+
@includetypography.headline-xl();
53
61
}
54
62
```
55
63
@@ -67,13 +75,13 @@ The headline mixins are responsive and will adjust at the `tablet` breakpoint.
67
75
You can include the typography utility classes in your project by writing the following in your Sass file:
68
76
69
77
```scss
70
-
@use'@daffodil/design/scss/typography/classes';
78
+
@use'@daffodil/design/scss/typography';
71
79
```
72
80
73
81
Otherwise, you can use the mixins in your project by using the following module in your Sass file:
0 commit comments