We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello guys, first, thank you for this great work.
I have a simple question, how to make the Intelisense of configured props of themes on Vscode?
Heres my component.
import styled from 'styled-components/native'; import { color, space, SpaceProps, ColorProps } from "styled-system"; export type BoxProps = SpaceProps & ColorProps; export const Box = styled.View<BoxProps>` ${color} ${space} `
My small theme
import * as tokens from '../tokens'; export const theme = { colors: { red: tokens.primary, green: tokens.secondary } } as const;
Even with this, this color props not appear when i use my component to complete. I want to make my job easier.
What i'm doing wrong?
The text was updated successfully, but these errors were encountered:
I believe you can accomplish this by doing the following:
type ThemeType = typeof theme export type BoxProps = SpaceProps<ThemeType> & ColorProps<ThemeType>; export const Box = styled.View<BoxProps>` ${color} ${space} `
Sorry, something went wrong.
No branches or pull requests
Hello guys, first, thank you for this great work.
I have a simple question, how to make the Intelisense of configured props of themes on Vscode?
Heres my component.
My small theme
Even with this, this color props not appear when i use my component to complete. I want to make my job easier.
What i'm doing wrong?
The text was updated successfully, but these errors were encountered: