mirror of
https://github.com/dsoaress/link-free.git
synced 2026-11-25 20:34:48 +00:00
feat: add fonts options
This commit is contained in:
9 files changed
+38
-11
No files matched your search
@@ -0,0 +1,18 @@
|
||||
export const fonts = {
|
||||
roboto: {
|
||||
href: 'https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap',
|
||||
name: "'Roboto', sans-serif"
|
||||
},
|
||||
openSans: {
|
||||
href: 'https://fonts.googleapis.com/css2?family=Open+Sans:wght@500&display=swap',
|
||||
name: "'Open Sans', sans-serif"
|
||||
},
|
||||
poppins: {
|
||||
href: 'https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap',
|
||||
name: "'Poppins', sans-serif"
|
||||
},
|
||||
baloo: {
|
||||
href: 'https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@500&display=swap',
|
||||
name: "'Baloo Bhaijaan 2', cursive"
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,13 @@
|
||||
import { globalCss } from './stitches.config'
|
||||
import { fonts, globalCss } from './stitches.config'
|
||||
|
||||
export const globalStyles = globalCss({
|
||||
'*': {
|
||||
margin: 0,
|
||||
padding: 0,
|
||||
boxSizing: 'border-box'
|
||||
},
|
||||
'body, button, a': {
|
||||
fontFamily: fonts['baloo'].name,
|
||||
fontWeight: 500
|
||||
}
|
||||
})
|
||||
@@ -1,5 +1,7 @@
|
||||
import { createStitches, VariantProps } from '@stitches/react'
|
||||
|
||||
import { fonts } from './fonts'
|
||||
|
||||
export const { css, styled, globalCss, theme, keyframes, getCssText } = createStitches({
|
||||
theme: {
|
||||
colors: {
|
||||
@@ -251,3 +253,4 @@ export const { css, styled, globalCss, theme, keyframes, getCssText } = createSt
|
||||
type ColorsType = keyof typeof theme.colors
|
||||
|
||||
export type { ColorsType, VariantProps }
|
||||
export { fonts }
|
||||
Reference in new issue
Block a user