Skip to content

Commit 5e36cfd

Browse files
author
Kubit
committed
Add font to use on Password components
1 parent 4629fc3 commit 5e36cfd

File tree

5 files changed

+28
-0
lines changed

5 files changed

+28
-0
lines changed
Binary file not shown.
Binary file not shown.

src/designSystem/kubit/foundations/typography.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { DeviceBreakpointsType } from '@/types';
22

33
export const FONT_FAMILY = {
4+
font_family_digit_password_small_square: '"DigitPasswordSmallSquare", sans-serif',
5+
font_family_digit_password_large_square: '"DigitPasswordLargeSquare", sans-serif',
46
font_family_gt_america_expanded: '"GT-America-Expanded Font", sans-serif',
57
font_family_gt_america_extended: '"GT-America-Extended Font", sans-serif',
68
font_family_roboto_condensed: '"Roboto-Mono Font", sans-serif',

src/designSystem/kubit/globalStyles/font.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
@font-face {
2+
font-family: 'DigitPasswordSmallSquare';
3+
font-weight: 400;
4+
src: url('../assets/fonts/DigitPasswordSmallSquare.ttf') format('truetype');
5+
}
6+
7+
@font-face {
8+
font-family: 'DigitPasswordLargeSquare';
9+
font-weight: 400;
10+
src: url('../assets/fonts/DigitPasswordLargeSquare.ttf') format('truetype');
11+
}
12+
113
@font-face {
214
font-family: 'GT-America-Expanded Font';
315
font-weight: 700;

src/designSystem/kubit/globalStyles/fonts.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { css } from 'styled-components';
22

3+
import DigitPasswordLargeSquare from '../fonts/Digit_Password_Large_Square.ttf';
4+
import DigitPasswordSmallSquare from '../fonts/Digit_Password_Small_Square.ttf';
35
import GTAmericaExpandedBold from '../fonts/GT-America-Expanded-Medium.otf';
46
import GTAmericaExpandedRegular from '../fonts/GT-America-Expanded-Regular.otf';
57
import GTAmericaExpandedLight from '../fonts/GT-America-ExpandedLight.otf';
@@ -15,6 +17,18 @@ import NunitoRegular from '../fonts/NunitoSans_10pt-Regular.ttf';
1517
import NunitoSemiBold from '../fonts/NunitoSans_10pt-SemiBold.ttf';
1618

1719
export const FONTS_KUBIT_GLOBAL_STYLES = css`
20+
@font-face {
21+
font-family: 'DigitPasswordSmallSquare';
22+
font-weight: 400;
23+
src: url(${DigitPasswordSmallSquare}) format('truetype');
24+
}
25+
26+
@font-face {
27+
font-family: 'DigitPasswordLargeSquare';
28+
font-weight: 400;
29+
src: url(${DigitPasswordLargeSquare}) format('truetype');
30+
}
31+
1832
@font-face {
1933
font-family: 'GT-America-Expanded Font';
2034
font-weight: 700;

0 commit comments

Comments
 (0)