Из компонента Astro добавляется внешний скрипт, который создает некоторые HTML-элементы dom (и их стили).
Код: Выделить всё
// MyComponent.astro
Код: Выделить всё
// More code..
Я попробовал следующее, но ни один из них не работает :
Код: Выделить всё
// main.css
@layer base {
.my-ui-uicontainer {
@apply !bg-blue-500;
}
}
Код: Выделить всё
// main.css
.my-ui-uicontainer {
@apply !bg-blue-500;
}
Код: Выделить всё
// main.css
@layer base {
.my-ui-uicontainer {
background-color: theme(colors.blue.500) !important;
}
}
Код: Выделить всё
// MyComponent.astro
.my-ui-uicontainer {
@apply !bg-blue-500;
}
Подробнее здесь: [url]https://stackoverflow.com/questions/79093355/override-external-css-class-added-by-external-script-in-astro-and-tailwind[/url]