Skip to content

Commit 1059c2e

Browse files
committed
feat(design, daffio, demo): create typography css variables and update usage in apps
1 parent 5caca23 commit 1059c2e

36 files changed

Lines changed: 89 additions & 89 deletions

File tree

apps/daffio/src/app/content/home/components/home-callout-commerce/home-callout-commerce.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
align-items: center;
2525
justify-content: center;
2626
gap: 0.75rem;
27-
font-size: daff.$font-size-sm;
27+
font-size: var(--daff-font-size-sm);
2828
border-radius: 2rem;
2929
padding: 0.5rem 1rem;
3030

apps/daffio/src/app/core/footer/docs-footer/docs-footer.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969

7070
&__link,
7171
&__copyright {
72-
font-size: daff.$font-size-sm;
72+
font-size: var(--daff-font-size-sm);
7373
line-height: 1rem;
7474
}
7575

apps/daffio/src/app/core/footer/footer/footer.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
:host {
44
display: block;
5-
font-size: daff.$font-size-sm;
5+
font-size: var(--daff-font-size-sm);
66
padding: 24px;
77

88
@include daff.breakpoint(big-tablet) {

apps/daffio/src/app/core/header/components/header/header.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
align-items: center;
2020
gap: 0.5rem;
2121
color: currentColor;
22-
font-size: daff.$font-size-base;
22+
font-size: var(--daff-font-family-base);
2323
font-weight: 500;
2424
line-height: 64px;
2525
padding: 0 1rem;

apps/daffio/src/app/docs/api/components/api-item-label/api-item-label.component.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
@use 'utilities' as daff;
2-
31
:host {
42
display: block;
53
border-radius: 0.25rem;
6-
font-family: daff.$font-family-mono;
4+
font-family: var(--daff-font-family-mono);
75
font-size: 0.625rem;
86
font-weight: 500;
97
line-height: 0.875rem;

apps/demo/src/app/cart/components/add-to-cart-notification/components/add-to-cart-notification/add-to-cart-notification.component.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919

2020
&__check-icon {
2121
margin-right: 15px;
22-
font-size: $font-size-md;
22+
font-size: var(--daff-font-size-md);
2323
}
2424

2525
&__close {
2626
position: absolute;
2727
top: 15px;
2828
right: 25px;
29-
font-size: $font-size-md;
29+
font-size: var(--daff-font-size-md);
3030
@include clickable();
3131
}
3232

@@ -45,7 +45,7 @@
4545
}
4646

4747
> * {
48-
font-size: $font-size-md;
48+
font-size: var(--daff-font-size-md);
4949
flex: 1;
5050
}
5151
}

apps/demo/src/app/cart/components/add-to-cart-notification/components/product-added/product-added.component.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@
1717

1818
&__name {
1919
@include clickable();
20-
font-size: $font-size-md;
20+
font-size: var(--daff-font-size-md);
2121
font-weight: bold;
2222
margin-bottom: 5px;
2323
}
2424

2525
&__price {
26-
font-size: $font-size-md;
26+
font-size: var(--daff-font-size-md);
2727
color: demo-theme.daff-color(demo-theme.$secondary);
2828
margin-bottom: 15px;
2929
}
3030

3131
&__info {
32-
font-size: $font-size-sm;
32+
font-size: var(--daff-font-size-sm);
3333
line-height: 1.25rem;
3434
}
3535
}

apps/demo/src/app/cart/components/cart-item-count/cart-item-count.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33

44
.demo-cart-item-count {
55
color: daff-color($daff-neutral, 80);
6-
font-size: $font-size-sm;
6+
font-size: var(--daff-font-size-sm);
77
}

apps/demo/src/app/cart/components/cart-item/cart-item.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
.demo-cart-item {
55
display: grid;
6-
font-size: $font-size-sm;
6+
font-size: var(--daff-font-size-sm);
77
grid-column-gap: 20px;
88
grid-row-gap: 15px;
99
grid-template-columns: 1fr 3fr;

apps/demo/src/app/cart/components/cart-sidebar/cart-sidebar.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
margin: 25px 0 0;
2929
justify-content: center;
3030
width: 100%;
31-
font-size: $font-size-md;
31+
font-size: var(--daff-font-size-md);
3232
}
3333

3434
&__cart-totals {

0 commit comments

Comments
 (0)