-
Notifications
You must be signed in to change notification settings - Fork 21
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
1 parent
8528259
commit 2d8b590
Showing
4 changed files
with
5 additions
and
17 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -13,12 +13,12 @@ import { Header, Link } from '~/components' | |
## Install | ||
|
||
```bash | ||
pnpm i @ensdomains/thorin [email protected] | ||
pnpm i @ensdomains/thorin | ||
``` | ||
|
||
## Set Up | ||
|
||
Wrap the root of your app in a [`ThemeProvider`](https://styled-components.com/docs/advanced) module. Import **ThorinGlobalStyles** and declare it as a child of **ThemeProvider**. Import **lightTheme** or **darkTheme** and pass it to the **ThemeProvider**. Add [Satoshi](https://www.fontshare.com/fonts/satoshi) to your font stack. | ||
Wrap the root of your app in a ThemeProvider. Import **ThorinGlobalStyles** and declare it as a child of **ThemeProvider**. Import **lightTheme** or **darkTheme** and pass it to the **ThemeProvider**. Add [Satoshi](https://www.fontshare.com/fonts/satoshi) to your font stack. | ||
|
||
In this example we are adding the **lightTheme**. | ||
|
||
|
@@ -42,13 +42,12 @@ To use the dark theme, import `darkTheme` and pass it to the `ThemeProvider`. | |
|
||
```tsx | ||
import React, { useState } from 'react' | ||
import { ThemeProvider } from 'styled-components' | ||
import { ThorinGlobalStyles, darkTheme } from '@ensdomains/thorin' | ||
import { ThemeProvider, darkTheme } from '@ensdomains/thorin' | ||
import 'thorin/dist/thorin.css' | ||
|
||
const App = () => { | ||
return ( | ||
<ThemeProvider theme={darkTheme}> | ||
<ThorinGlobalStyles /> | ||
{children} | ||
</ThemeProvider> | ||
) | ||
|
This file was deleted.
Oops, something went wrong.
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