-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Inter fonts #506
feat: Inter fonts #506
Conversation
site/docs/pages/App.tsx
Outdated
@@ -32,7 +32,9 @@ export default function App({ children }: { children: ReactNode }) { | |||
return ( | |||
<WagmiProvider config={wagmiConfig}> | |||
<QueryClientProvider client={queryClient}> | |||
<div style={{ display: 'flex', flexDirection: 'column' }}>{children}</div> | |||
<div style={{ display: 'flex', flexDirection: 'column' }} className="ock-docsite-content"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want all our demo to shocase Inter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great question. Let's check in with design tomorrow
@kyhyco I don't think the font applied is Inter? Here's Inter: https://fonts.google.com/specimen/Inter ![]() |
072e47e
to
86498b2
Compare
86498b2
to
4ef3dc3
Compare
4ef3dc3
to
8b55fa0
Compare
src/text/TextBody.tsx
Outdated
@@ -0,0 +1,9 @@ | |||
import { ReactNode } from 'react'; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why src/text
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see, you are trying to create an internal Design System to use for building all those pieces.
got it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also do something like src/internal/text
8b55fa0
to
c207985
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
love this !
bf25c43
to
1ba906f
Compare
What changed? Why?
Inter
font to doc siteExample
Notes to reviewers
Tried out several approaches:
importing
@fontsource/inter
: messes up the css import path and will require creating a separate package just to handle fonts if we go this routeincluding Inter font files in OnchainKit: this could be an alternative if we don't want to directly hit google fonts
using
@tailwind/components
to create custom font components: much better to create a react componentUse case for tailwind and non-tailwind users is supported in this PR
How has it been tested?
locally