eb9a500d4c
### Example - added declaration file types for the used theme [Create a declarations file](https://styled-components.com/docs/api#create-a-declarations-file) - added custom styled component that wraps an `<a>` tag like the next js docs as example [Next link DOCS](https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-custom-component-that-wraps-an-a-tag) - changed the ui page like the `create-next-app` examples ### Dependencies - updated deps to latest - added types for SC => @types/styled-components - removed react-is, unused in this example [Example deploy](https://stylednextexample.vercel.app/) ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm lint` - [x] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
10 lines
171 B
TypeScript
10 lines
171 B
TypeScript
import 'styled-components'
|
|
|
|
declare module 'styled-components' {
|
|
export interface DefaultTheme {
|
|
colors: {
|
|
primary: string
|
|
secondary: string
|
|
}
|
|
}
|
|
}
|