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

Add dt props to all components and directives #5506

Closed
mertsincan opened this issue Apr 2, 2024 · 1 comment
Closed

Add dt props to all components and directives #5506

mertsincan opened this issue Apr 2, 2024 · 1 comment
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@mertsincan
Copy link
Member

It generates scoped CSS variables using design tokens for the component. Related to; #5501

Exp;

<Panel
    :dt="{
        colorScheme: {
            light: {
                headerIcon: {
                    color: '{surface.500}',
                    hoverColor: '{surface.600}',
                    hoverBackground: '{surface.100}'
                }
            },
            dark: {
                headerIcon: {
                    color: '{surface.400}',
                    hoverColor: '{surface.300}',
                    hoverBackground: '{surface.800}'
                }
            }
        }
    }"
>
    ...
</Panel>

@mertsincan mertsincan added the Type: New Feature Issue contains a new feature or new component request label Apr 2, 2024
@mertsincan mertsincan added this to the 4.0.0-beta.1 milestone Apr 2, 2024
@mertsincan mertsincan self-assigned this Apr 2, 2024
@mahir2757
Copy link

i want to know how to use dt props in any componets is there any example.
dt?: DesignToken;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests

2 participants