-
Notifications
You must be signed in to change notification settings - Fork 576
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
Overwrite css classes of slots #2936
Comments
Does this work with |
@benjamincanac yeah xl is overwriting the sm shadow looks like shadows I defined in my @theme wont overwrite existing shadow classes @theme { |
Yes this is because we need to customize the I just made #2938 to support this, would you mind trying it out by installing It will allow you to add this to your export default defineAppConfig({
ui: {
tv: {
twMergeConfig: {
classGroups: {
shadow: [{ shadow: ['card'] }]
}
}
},
colors: {
primary: 'green',
neutral: 'slate'
}
}
}) For reference here are the docs about this: |
Thanks for the detailed explanation. I tested it and it works perfect. Hope this will make it to alpha.11. Im a bit careful for now and will continue to use alpha.10 Great work! |
Description
Hello, I just wanted to overwrite shadow-sm with another shadow in the card root slot.
But I failed to do so. I tried the :ui way and the app.config.ts way but in both cases the new class "shadow-card" ended up BEHIND "shadow-sm".
So shadow-card always gets overwritten by shadow-sm cause the code always ends up like this:
so how can I overwrite shadow-sm here?
The text was updated successfully, but these errors were encountered: