Skip to content

Commit

Permalink
feat(ThemeProvider): Change font link from google fonts to fonts bunny
Browse files Browse the repository at this point in the history
Ref: #epic/MainLibrary-0
  • Loading branch information
fermarinsanchez committed Nov 16, 2023
1 parent e75bbcf commit eae2ab7
Show file tree
Hide file tree
Showing 6 changed files with 6,795 additions and 6,992 deletions.
8 changes: 6 additions & 2 deletions merged_tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -6663,6 +6663,10 @@
},
"$themes": [],
"$metadata": {
"tokenSetOrder": ["core", "global", "component"]
"tokenSetOrder": [
"core",
"global",
"component"
]
}
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
},
"devDependencies": {
"@babel/eslint-parser": "^7.22.15",
"@babel/plugin-transform-export-namespace-from": "^7.23.3",
"better-spawn": "^1.0.4",
"chalk": "^4.1.1",
"chromatic": "^6.11.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/components/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = {
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-syntax-import-meta',
// '@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-export-namespace-from',
// '@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-proposal-export-default-from',
],
};
6 changes: 3 additions & 3 deletions packages/components/src/ThemeProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { MantineProvider } from '@mantine/core';
import { Helmet } from 'react-helmet';
import { isEmpty, isObject } from 'lodash';
import { COLORS, FONT_SIZES, SPACING, SHADOWS } from './theme.tokens';
import figmaTokens from './tokens.compiled';
import { isEmpty, isObject } from 'lodash';

export const BUBBLES_THEME = {
colorScheme: 'light',
Expand Down Expand Up @@ -67,9 +67,9 @@ const ThemeProvider = ({ children, theme }) => {
<>
<Helmet>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin />
<link
href="https://fonts.googleapis.com/css2?family=Albert+Sans:wght@100;300;400;500;600&display=swap"
href="https://fonts.bunny.net/css?family=albert-sans:100,300,400,500,600"
rel="stylesheet"
/>
</Helmet>
Expand Down
Loading

0 comments on commit eae2ab7

Please sign in to comment.