2022-08-18 19:51:53 +02:00
|
|
|
@use "sass:map";
|
|
|
|
|
2022-01-05 01:41:10 +01:00
|
|
|
$fa-font-path: 'fonts/fontawesome';
|
2020-07-24 18:26:45 +02:00
|
|
|
|
2021-04-28 21:53:59 +02:00
|
|
|
@import '../../../node_modules/@fortawesome/fontawesome-free/scss/fontawesome';
|
2021-12-01 23:45:55 +01:00
|
|
|
@import '../../../node_modules/@fortawesome/fontawesome-free/scss/brands';
|
2021-04-28 21:53:59 +02:00
|
|
|
@import '../../../node_modules/@fortawesome/fontawesome-free/scss/solid';
|
|
|
|
@import '../../../node_modules/@fortawesome/fontawesome-free/scss/regular';
|
2020-07-24 18:26:45 +02:00
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: 'Roboto';
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: 100;
|
2022-01-05 01:41:10 +01:00
|
|
|
src: local('Roboto Thin'), local('Roboto-Thin'), url('fonts/Roboto/Roboto-Thin.ttf') format('truetype');
|
2020-07-24 18:26:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: 'Roboto';
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: 300;
|
2022-01-05 01:41:10 +01:00
|
|
|
src: local('Roboto Light'), local('Roboto-Light'), url('fonts/Roboto/Roboto-Light.ttf') format('truetype');
|
2020-07-24 18:26:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: 'Roboto';
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: 400;
|
2022-01-05 01:41:10 +01:00
|
|
|
src: local('Roboto'), local('Roboto-Regular'), url('fonts/Roboto/Roboto-Regular.ttf') format('truetype');
|
2020-07-24 18:26:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: 'Roboto';
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: 500;
|
2022-01-05 01:41:10 +01:00
|
|
|
src: local('Roboto Medium'), local('Roboto-Medium'), url('fonts/Roboto/Roboto-Medium.ttf') format('truetype');
|
2020-07-24 18:26:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: 'Roboto';
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: 700;
|
2022-01-05 01:41:10 +01:00
|
|
|
src: local('Roboto Bold'), local('Roboto-Bold'), url('fonts/Roboto/Roboto-Bold.ttf') format('truetype');
|
2020-07-24 18:26:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: 'Roboto';
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: 900;
|
2022-01-05 01:41:10 +01:00
|
|
|
src: local('Roboto Black'), local('Roboto-Black'), url('fonts/Roboto/Roboto-Black.ttf') format('truetype');
|
2020-07-24 18:26:45 +02:00
|
|
|
}
|
|
|
|
|
2020-07-28 00:15:44 +02:00
|
|
|
@font-face {
|
2022-08-18 19:51:53 +02:00
|
|
|
font-family: 'Euclid Circular B';
|
2020-07-28 00:15:44 +02:00
|
|
|
font-style: normal;
|
|
|
|
font-weight: 400;
|
2022-01-05 01:41:10 +01:00
|
|
|
src: url('fonts/Euclid/EuclidCircularB-Regular-WebXL.ttf') format('truetype');
|
2020-07-28 00:15:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
2022-08-18 19:51:53 +02:00
|
|
|
font-family: 'Euclid Circular B';
|
2020-07-28 00:15:44 +02:00
|
|
|
font-style: italic;
|
|
|
|
font-weight: 400;
|
2022-01-05 01:41:10 +01:00
|
|
|
src: url('fonts/Euclid/EuclidCircularB-RegularItalic-WebXL.ttf') format('truetype');
|
2020-07-28 00:15:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
2022-08-18 19:51:53 +02:00
|
|
|
font-family: 'Euclid Circular B';
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: 500;
|
|
|
|
src: url('fonts/Euclid/EuclidCircularB-Medium.ttf') format('truetype');
|
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: 'Euclid Circular B';
|
2020-07-28 00:15:44 +02:00
|
|
|
font-style: normal;
|
|
|
|
font-weight: 700;
|
2022-01-05 01:41:10 +01:00
|
|
|
src: url('fonts/Euclid/EuclidCircularB-Bold-WebXL.ttf') format('truetype');
|
2020-07-28 00:15:44 +02:00
|
|
|
}
|
|
|
|
|
2022-08-18 19:51:53 +02:00
|
|
|
$font-family: 'Euclid Circular B', Roboto, Helvetica, Arial, sans-serif;
|
2020-07-24 18:26:45 +02:00
|
|
|
|
2021-01-19 17:30:29 +01:00
|
|
|
$typography-variants: (
|
|
|
|
'h1': 2.5rem,
|
|
|
|
'h2': 2rem,
|
|
|
|
'h3': 1.5rem,
|
|
|
|
'h4': 1.125rem,
|
|
|
|
'h5': 1rem,
|
|
|
|
'h6': 0.875rem,
|
|
|
|
'paragraph': 1rem,
|
|
|
|
'h7': 0.75rem,
|
|
|
|
'h8': 0.625rem,
|
|
|
|
'h9': 0.5rem,
|
|
|
|
);
|
|
|
|
|
|
|
|
$font-size-h1: map-get($typography-variants, 'h1');
|
|
|
|
$font-size-h2: map-get($typography-variants, 'h2');
|
|
|
|
$font-size-h3: map-get($typography-variants, 'h3');
|
|
|
|
$font-size-h4: map-get($typography-variants, 'h4');
|
|
|
|
$font-size-h5: map-get($typography-variants, 'h5');
|
|
|
|
$font-size-h6: map-get($typography-variants, 'h6');
|
|
|
|
$font-size-paragraph: map-get($typography-variants, 'paragraph');
|
|
|
|
$font-size-h7: map-get($typography-variants, 'h7');
|
|
|
|
$font-size-h8: map-get($typography-variants, 'h8');
|
|
|
|
$font-size-h9: map-get($typography-variants, 'h9');
|
|
|
|
|
|
|
|
@mixin typography($variant) {
|
|
|
|
font-size: map-get($typography-variants, $variant);
|
2020-07-24 18:26:45 +02:00
|
|
|
font-family: $font-family;
|
|
|
|
line-height: 140%;
|
2021-01-19 17:30:29 +01:00
|
|
|
font-style: normal;
|
|
|
|
font-weight: normal;
|
2020-07-24 18:26:45 +02:00
|
|
|
}
|
|
|
|
|
2023-08-18 18:54:12 +02:00
|
|
|
/**
|
|
|
|
* @deprecated The typography mixins `@include H1` - `@include H9` have been deprecated in favor of the `<Text>` component from the component-library.
|
|
|
|
* Please update your code to use the `<Text>` component instead, which can be found in ui/components/component-library/text/text.tsx.
|
|
|
|
* You can find documentation for the new `<Text>` component in the MetaMask Storybook:
|
|
|
|
* {@link https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-text--docs}
|
|
|
|
* If you would like to help with the replacement of the old mixins `@include H1` - `@include H9`, please submit a pull request against this GitHub issue:
|
|
|
|
* {@link https://github.com/MetaMask/metamask-extension/issues/19533}
|
|
|
|
*/
|
|
|
|
|
2021-01-19 17:30:29 +01:00
|
|
|
// Typography
|
|
|
|
@mixin H1 {
|
|
|
|
@include typography('h1');
|
|
|
|
}
|
2020-07-29 17:35:53 +02:00
|
|
|
|
|
|
|
@mixin H2 {
|
2021-01-19 17:30:29 +01:00
|
|
|
@include typography('h2');
|
2020-07-24 18:26:45 +02:00
|
|
|
}
|
|
|
|
|
2020-07-29 17:35:53 +02:00
|
|
|
@mixin H3 {
|
2021-01-19 17:30:29 +01:00
|
|
|
@include typography('h3');
|
2020-07-24 18:26:45 +02:00
|
|
|
}
|
|
|
|
|
2020-07-29 17:35:53 +02:00
|
|
|
@mixin H4 {
|
2021-01-19 17:30:29 +01:00
|
|
|
@include typography('h4');
|
2020-07-24 18:26:45 +02:00
|
|
|
}
|
|
|
|
|
2020-07-29 17:35:53 +02:00
|
|
|
@mixin H5 {
|
2021-01-19 17:30:29 +01:00
|
|
|
@include typography('h5');
|
2020-07-24 18:26:45 +02:00
|
|
|
}
|
|
|
|
|
2020-07-29 17:35:53 +02:00
|
|
|
@mixin H6 {
|
2021-01-19 17:30:29 +01:00
|
|
|
@include typography('h6');
|
2020-07-24 18:26:45 +02:00
|
|
|
}
|
|
|
|
|
2020-07-29 17:35:53 +02:00
|
|
|
@mixin Paragraph {
|
2021-01-19 17:30:29 +01:00
|
|
|
@include typography('paragraph');
|
2020-07-24 18:26:45 +02:00
|
|
|
}
|
|
|
|
|
2020-07-29 17:35:53 +02:00
|
|
|
@mixin H7 {
|
2021-01-19 17:30:29 +01:00
|
|
|
@include typography('h7');
|
2020-07-24 18:26:45 +02:00
|
|
|
}
|
|
|
|
|
2020-07-29 17:35:53 +02:00
|
|
|
@mixin H8 {
|
2021-01-19 17:30:29 +01:00
|
|
|
@include typography('h8');
|
2020-07-24 18:26:45 +02:00
|
|
|
}
|
|
|
|
|
2020-07-29 17:35:53 +02:00
|
|
|
@mixin H9 {
|
2021-01-19 17:30:29 +01:00
|
|
|
@include typography('h9');
|
2020-07-24 18:26:45 +02:00
|
|
|
}
|