Skip to content
New issue

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

Is there any way to remove color preset in colors property? #417

Open
creatrip-seungwoo opened this issue Jan 31, 2024 · 0 comments
Open

Comments

@creatrip-seungwoo
Copy link

I am making Box Component using @xstyled/system and styled-component like this.

export type BoxProps = SystemProps<typeof theme>;

const Box = styled.div<BoxProps>(system);

export default Box;

and i want to see only the colors i defined in theme object.

export interface Colors {
  primary: string;
  ...
}

export const theme = {
  colors: {
    primary: '#efefef',
    ...
  }
}

but when i try to input color prop in Box Components, there are suggestions including color preset.

image

is there any way to show only the colors i defined in theme objects?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant