Skip to content

Commit

Permalink
feat: extract fonts from js
Browse files Browse the repository at this point in the history
  • Loading branch information
teimurjan committed Oct 17, 2024
1 parent 4fcaa96 commit ac9f104
Show file tree
Hide file tree
Showing 21 changed files with 770 additions and 3,176 deletions.
8 changes: 8 additions & 0 deletions .changeset/seven-roses-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@roll-network/design-system': major
---

Changed font family setup

- Removed injectFonts & injectFontsV2 functions to exclude fonts from the JS bundle.
- Added separate fonts folder in the dist from where web & native projects will be able to import the fonts.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,115 +2,119 @@
"migIndex": 1,
"data": [
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/Manrope-Bold.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/Manrope-Bold.ttf",
"sha1": "fd4744b003e034fdf9ff433985088600ed4c6b19"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/Manrope-Medium.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/Manrope-Medium.ttf",
"sha1": "fcafcd59b8a4a2fd66b28434307e2bb0d8f0f1c9"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/Manrope-Regular.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/Manrope-Regular.ttf",
"sha1": "7e862264836329a059f38d0fc66b22a4936402e8"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/Manrope-SemiBold.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/Manrope-SemiBold.ttf",
"sha1": "96b5b6af6b63a1f74978e1e10ff3471304a7de46"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/OpenSans-Bold.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/OpenSans-Bold.ttf",
"sha1": "0ad533c702f9ac1de717063040426858662cfbcc"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/OpenSans-BoldItalic.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/OpenSans-BoldItalic.ttf",
"sha1": "2a24a4e2c75799ece2453068a536be001ae3f786"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/OpenSans-ExtraBold.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/OpenSans-ExtraBold.ttf",
"sha1": "9fd34e983ea20a25495a74be5f88dc22b5055649"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/OpenSans-ExtraBoldItalic.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/OpenSans-ExtraBoldItalic.ttf",
"sha1": "f3ad930518728edac2c1ef8894a8acdedda38afa"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/OpenSans-Italic.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/OpenSans-Italic.ttf",
"sha1": "936492dbbb85515e3e860ed5a6a182ebbb7bdb36"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/OpenSans-Light.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/OpenSans-Light.ttf",
"sha1": "23a44778d51bf3f2d7d56eecc233659814e3f875"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/OpenSans-LightItalic.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/OpenSans-LightItalic.ttf",
"sha1": "a71910c6cda89d17919e67eab8d4335e0cabaea6"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/OpenSans-Regular.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/OpenSans-Regular.ttf",
"sha1": "dc9c07303a2392f9ee02fdb636814970753ac94a"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/OpenSans-SemiBold.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/OpenSans-SemiBold.ttf",
"sha1": "7b92a6fcde1c17e8f3dc20ec4c2c768551a1660c"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/OpenSans-SemiBoldItalic.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/OpenSans-SemiBoldItalic.ttf",
"sha1": "32ba163e576bc49ecc7f712f0ac2dac3b31001e5"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/SourceCodePro-Black.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/RobotoMono-Medium.ttf",
"sha1": "ba4ac211bbcd66da7712aa059b214155f4f7a93a"
},
{
"path": "node_modules/@roll-network/design-system/dist/fonts/SourceCodePro-Black.ttf",
"sha1": "b9be51f46a4dbd71db20dea5f61939944f5f41a4"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/SourceCodePro-BlackItalic.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/SourceCodePro-BlackItalic.ttf",
"sha1": "6d5721c82c037f97fbc2d9052fd7444b8c8fa5a7"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/SourceCodePro-Bold.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/SourceCodePro-Bold.ttf",
"sha1": "ce300cf7e485e7433d9b45669308449fa0b06621"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/SourceCodePro-BoldItalic.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/SourceCodePro-BoldItalic.ttf",
"sha1": "bda91b7f99ff1d90bc72b2533f1f14215909034a"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/SourceCodePro-ExtraLight.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/SourceCodePro-ExtraLight.ttf",
"sha1": "23c84c86949a68a27ce9a56c88598942efb66724"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/SourceCodePro-ExtraLightItalic.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/SourceCodePro-ExtraLightItalic.ttf",
"sha1": "c7776638fce38e128a379017c26271b4f644a764"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/SourceCodePro-Light.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/SourceCodePro-Light.ttf",
"sha1": "71d131420fe91d755e5a6e43f8caf3f31eb8b3c4"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/SourceCodePro-LightItalic.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/SourceCodePro-LightItalic.ttf",
"sha1": "3dbc633296d5efaecdbc7ad6c1b084c803ad2d64"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/SourceCodePro-Medium.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/SourceCodePro-Medium.ttf",
"sha1": "2369ca00286b2afd7f011d80fb0ccdb5e71dadd4"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/SourceCodePro-MediumItalic.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/SourceCodePro-MediumItalic.ttf",
"sha1": "e24a1c83354b217819dd8d1309b07a6fd04643b9"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/SourceCodePro-Regular.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/SourceCodePro-Regular.ttf",
"sha1": "4a5c00901673a5adecd1747552949388722fd29e"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/SourceCodePro-RegularItalic.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/SourceCodePro-RegularItalic.ttf",
"sha1": "9b857c0d2c9ad54b09041067e13b70cc8c040a07"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/SourceCodePro-SemiBold.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/SourceCodePro-SemiBold.ttf",
"sha1": "80d915040f60552599353ef8b3f4df3722ce959d"
},
{
"path": "node_modules/@roll-network/design-system/src/assets/fonts/SourceCodePro-SemiBoldItalic.ttf",
"path": "node_modules/@roll-network/design-system/dist/fonts/SourceCodePro-SemiBoldItalic.ttf",
"sha1": "f4e7c795dd9367467a34b645680f5ec83e85ea69"
}
]
Expand Down
Loading

0 comments on commit ac9f104

Please sign in to comment.