Skip to content

Commit

Permalink
chore: add iranyeken font license key and add lineHeight to typography
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohsen Davoodi authored and Mohsen Davoodi committed Aug 13, 2022
1 parent 680b214 commit 78645b9
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
18 changes: 18 additions & 0 deletions .storybook/public/fonts/FontLicense.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
IRANYekan fonts are considered a proprietary software.
To gain information about the laws regarding the use of these fonts, please visit www.fontiran.com

This set of fonts are used in this project under the license: WHGE5B

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
In case you use this set of fonts in a software product, write the license code in the specified place and place this file next to the fonts.

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
فونت های ايران‌یکان يک نرم افزار مالکيتی محسوب می شود جهت آگاهی از قوانين استفاده از اين فونت‌ها لطفاً به وبسايت
www.fontiran.com
مراجعه نماييد
اين مجموعه فونت تحت اجازه نامه
WHGE5B
در اين پروژه استفاده می شود

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
در صورت استفاده از این مجموعه فونت در یک محصول نرم افزاری‌ یا وب‌سایت کد ۶ رقمی لایسنس خود را در محل مشخص شده (.....) درج کنید و این فایل را در کنار فونت ها قرار دهید.
5 changes: 1 addition & 4 deletions .storybook/public/fonts/fontiran.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
/**
* TODO add license key
*/
/**
*
* Name: IRANYekan Font
* Version: 3.0
Expand All @@ -15,7 +12,7 @@
--------------------------------------------------------------------------------------
IRANYekan fonts are considered a proprietary software. To gain information about the laws regarding the use of these fonts, please visit www.fontiran.com
--------------------------------------------------------------------------------------
This set of fonts are used in this project under the license: (.....)
This set of fonts are used in this project under the license: WHGE5B
--------------------------------------------------------------------------------------
*
**/
Expand Down
18 changes: 9 additions & 9 deletions libs/core/src/styles/createTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,55 +59,55 @@ const defaultOptions: ThemeOptions = {
fontFamily: 'iranyekan',
fontWeight: 600,
fontSize: '2.25rem', // 32px
// lineHeight: 1.5, // FIXME
lineHeight: 1.5,
},
h2: {
fontFamily: 'iranyekan',
fontWeight: 600,
fontSize: '1.5rem', // 24px
// lineHeight: 1.5, // FIXME
lineHeight: 1.5,
},
h3: {
fontFamily: 'iranyekan',
fontWeight: 200,
fontSize: '1.5rem', // 24px
// lineHeight: 1.5, // FIXME
lineHeight: 1.5,
},
h4: {
fontFamily: 'iranyekan',
fontWeight: 600,
fontSize: '1.125rem', // 18px
// lineHeight: 1.5, // FIXME
lineHeight: 1.5,
},
h5: {
fontFamily: 'iranyekan',
fontWeight: 600,
fontSize: '1rem', // 16px
// lineHeight: 1.5, // FIXME
lineHeight: 1.5,
},
button: {
fontFamily: 'iranyekan',
fontWeight: 400,
fontSize: '1rem', // 16px
// lineHeight: 1.5, // FIXME
lineHeight: 1.5,
},
body1: {
fontFamily: 'iranyekan',
fontWeight: 200,
fontSize: '1rem', // 16px
// lineHeight: 1.5, // FIXME
lineHeight: 1.75,
},
body2: {
fontFamily: 'iranyekan',
fontWeight: 200,
fontSize: '0.875rem', // 14px
// lineHeight: 1.5, // FIXME
lineHeight: 1.75,
},
subtitle1: {
fontFamily: 'iranyekan',
fontWeight: 400,
fontSize: '0.625rem', // 10px
// lineHeight: 1.5, // FIXME
lineHeight: 1.5,
},
// Disable h6, subtitle2, caption and overline variant
h6: undefined,
Expand Down

0 comments on commit 78645b9

Please sign in to comment.