Skip to content

Commit

Permalink
remove styled-components mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Nov 30, 2024
1 parent 8528259 commit 2d8b590
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion docs/src/layouts/docs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const Layout: NextLayout<Props> = ({ children, meta }) => {
<meta
content={
meta?.description
?? 'Design system for ENS built with React and styled-components.'
?? 'Design system for ENS built with React and vanilla-extract.'
}
key="description"
name="description"
Expand Down
9 changes: 4 additions & 5 deletions docs/src/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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**.

Expand All @@ -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>
)
Expand Down
8 changes: 0 additions & 8 deletions docs/src/types/styled-components.d.ts

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/generateComponent.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,8 @@ const COMPONENT_GROUPS = {
console.log('Creating component...')
const componentImports = dedent`
import * as React from 'react'
import styled from 'styled-components'
export type Props = {}
const Container = styled.div(() => css\`\`)
`
const componentBasic = dedent`
${componentImports}
Expand Down

0 comments on commit 2d8b590

Please sign in to comment.