---
title: "Comment by Christopher Fenos on \"Scalable Theming With Styled-Components and TypeScript in React (Next.js)\" | Hashnode"
description: "Great article, but my question is where is the defaultTheme variable defined in the app.tsx… is it from the global typescript module you made?"
url: "https://hashnode.com/posts/scalable-theming-with-styled-components-and-typescript-in-react-nextjs/638717280ea96fa74d111b66/comment/63ac795b9d66ff1e4d9ee19d"
---

[Discussion](https://hashnode.com/posts/scalable-theming-with-styled-components-and-typescript-in-react-nextjs/638717280ea96fa74d111b66)

Comment [Scalable Theming With Styled-Components and TypeScript in React (Next.js)](https://hashnode.com/posts/scalable-theming-with-styled-components-and-typescript-in-react-nextjs/638717280ea96fa74d111b66)

[Christopher Fenos](https://hashnode.com/@Cristobalovo)

[Dec 28, 2022](https://hashnode.com/posts/scalable-theming-with-styled-components-and-typescript-in-react-nextjs/638717280ea96fa74d111b66/comment/63ac795b9d66ff1e4d9ee19d)

Great article, but my question is where is the defaultTheme variable defined in the app.tsx… is it from the global typescript module you made?

[John O. Emmanuel](https://hashnode.com/@john_pels)

[Dec 28, 2022](https://hashnode.com/posts/scalable-theming-with-styled-components-and-typescript-in-react-nextjs/638717280ea96fa74d111b66/comment/63ac795b9d66ff1e4d9ee19d#reply-63ac91009d66ff1e4d9ee4fa)

Hi Christopher, defaultTheme is defined in @types/styled.d.ts and yeah it's a global typescript module.

[Christopher Fenos](https://hashnode.com/@Cristobalovo)

[Dec 29, 2022](https://hashnode.com/posts/scalable-theming-with-styled-components-and-typescript-in-react-nextjs/638717280ea96fa74d111b66/comment/63ac795b9d66ff1e4d9ee19d#reply-63ad11155783d419f05cd6ff)

[John O. Ajeigbe](https://hashnode.com/@john_pels) thanks John
