Tailwind colors list: https://tailwindcss.com/docs/customizing-colors#generating-colors
Create files src/@types/styled.d.ts
and src/resources/theme.ts
with content below. Then add the theme on your project:
import { ThemeProvider } from 'styled-components'
import { theme } from 'resources/theme'
function App () {
return (
<ThemeProvider theme={theme}>
{/* Your app here */}
</ThemeProvider>
)
}
Now, inside your styled component, you will have intelisense on the theme
prop:
Don't forget to define "baseUrl": "src"
on your tsconfig.json
to make absolute imports from src
.