Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

How to add our custom font with material ui libarary ? #341

Open
Sid-Busa opened this issue Apr 26, 2021 · 0 comments
Open

How to add our custom font with material ui libarary ? #341

Sid-Busa opened this issue Apr 26, 2021 · 0 comments

Comments

@Sid-Busa
Copy link

Sid-Busa commented Apr 26, 2021

import React from 'react'
import './font.module.css'
import styles from './styles.module.css'
import {makeStyles} from '@material-ui/core/styles'
import { Button } from '@material-ui/core'

const useStyles = makeStyles((theme) => ({
root: {
color: 'red',
fontFamily: '"Gotham"',
}
}))

export const CustomButton = ({ children }) => {
const classes = useStyles()
return (
{children}
)
}

when i try to add custom font with material ui then it not reflect my another project where i reuse this CustomButton component

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant