-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
161 additions
and
408 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,3 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
targets: { | ||
node: 'current', | ||
}, | ||
}, | ||
], | ||
[ | ||
'@babel/preset-react', | ||
{ | ||
runtime: 'automatic', | ||
}, | ||
], | ||
'@babel/preset-typescript', | ||
], | ||
plugins: ['@babel/plugin-transform-react-pure-annotations'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,93 +1,4 @@ | ||
import React from 'react'; | ||
import { IdProvider } from '@radix-ui/react-id'; | ||
import { globalCss } from '../stitches.config'; | ||
|
||
import RubikLightWoff2 from '../assets/fonts/rubik/Rubik-Light.woff2'; | ||
import RubikWoff2 from '../assets/fonts/rubik/Rubik-Regular.woff2'; | ||
import RubikMediumWoff2 from '../assets/fonts/rubik/Rubik-Medium.woff2'; | ||
import RubikSemiBoldWoff2 from '../assets/fonts/rubik/Rubik-SemiBold.woff2'; | ||
import RubikBoldWoff2 from '../assets/fonts/rubik/Rubik-Bold.woff2'; | ||
|
||
import RubikLightItalicWoff2 from '../assets/fonts/rubik/Rubik-LightItalic.woff2'; | ||
import RubikItalicWoff2 from '../assets/fonts/rubik/Rubik-Italic.woff2'; | ||
import RubikMediumItalicWoff2 from '../assets/fonts/rubik/Rubik-MediumItalic.woff2'; | ||
import RubikSemiBoldItalicWoff2 from '../assets/fonts/rubik/Rubik-SemiBoldItalic.woff2'; | ||
import RubikBoldItalicWoff2 from '../assets/fonts/rubik/Rubik-BoldItalic.woff2'; | ||
|
||
const globalStyles = globalCss({ | ||
'@font-face': [ | ||
{ | ||
fontFamily: 'Rubik', | ||
fontWeight: 300, | ||
fontDisplay: 'swap', | ||
src: `local('Rubik-Light'), url(${RubikLightWoff2} format('woff2'))`, | ||
}, | ||
{ | ||
fontFamily: 'Rubik', | ||
fontStyle: 'normal', | ||
fontWeight: 400, | ||
fontDisplay: 'swap', | ||
src: `local('Rubik-Regular'), url(${RubikWoff2}) format('woff2')`, | ||
}, | ||
{ | ||
fontFamily: 'Rubik', | ||
fontWeight: 500, | ||
fontDisplay: 'swap', | ||
src: `local('Rubik-Medium'), url(${RubikMediumWoff2}) format('woff2')`, | ||
}, | ||
{ | ||
fontFamily: 'Rubik', | ||
fontWeight: 600, | ||
fontDisplay: 'swap', | ||
src: `local('Rubik-SemiBold'), url(${RubikSemiBoldWoff2}) format('woff2')`, | ||
}, | ||
{ | ||
fontFamily: 'Rubik', | ||
fontWeight: 700, | ||
fontDisplay: 'swap', | ||
src: `local('Rubik-Bold'), url(${RubikBoldWoff2}) format('woff2')`, | ||
}, | ||
//italic | ||
{ | ||
fontFamily: 'Rubik', | ||
fontStyle: 'italic', | ||
fontWeight: 300, | ||
fontDisplay: 'swap', | ||
src: `local('Rubik-Light'), url(${RubikLightItalicWoff2} format('woff2'))`, | ||
}, | ||
{ | ||
fontFamily: 'Rubik', | ||
fontStyle: 'italic', | ||
fontWeight: 400, | ||
fontDisplay: 'swap', | ||
src: `local('Rubik-Regular'), url(${RubikItalicWoff2}) format('woff2')`, | ||
}, | ||
{ | ||
fontFamily: 'Rubik', | ||
fontStyle: 'italic', | ||
fontWeight: 500, | ||
fontDisplay: 'swap', | ||
src: `local('Rubik-Medium'), url(${RubikMediumItalicWoff2}) format('woff2')`, | ||
}, | ||
{ | ||
fontFamily: 'Rubik', | ||
fontStyle: 'italic', | ||
fontWeight: 600, | ||
fontDisplay: 'swap', | ||
src: `local('Rubik-SemiBold'), url(${RubikSemiBoldItalicWoff2}) format('woff2')`, | ||
}, | ||
{ | ||
fontFamily: 'Rubik', | ||
fontStyle: 'italic', | ||
fontWeight: 700, | ||
fontDisplay: 'swap', | ||
src: `local('Rubik-Bold'), url(${RubikBoldItalicWoff2}) format('woff2')`, | ||
}, | ||
], | ||
}); | ||
|
||
export const FaencyProvider: React.FC = ({ children }) => { | ||
globalStyles(); | ||
|
||
return <IdProvider>{children}</IdProvider>; | ||
}; | ||
export const FaencyProvider: React.FC = ({ children }) => <IdProvider>{children}</IdProvider>; |
Oops, something went wrong.