fix: add @reference directive for Tailwind 4 scoped styles
Some checks failed
Build Docker Image / build (push) Failing after 1m46s

Add @reference 'tailwindcss' to components using @apply in scoped styles:
- MainNavigation.vue
- SubNavigation.vue
- GlobalSearchBar.vue

Required for Tailwind CSS 4 compatibility with scoped Vue styles.
This commit is contained in:
Ruslan Bakiev
2026-01-08 07:35:56 +07:00
parent 5d1ce88927
commit 6d1dd4eac5
3 changed files with 6 additions and 0 deletions

View File

@@ -197,6 +197,8 @@ const isActiveTab = (key: string) => {
</script>
<style scoped>
@reference "tailwindcss";
.tab-item {
@apply px-4 py-2 rounded-full font-medium text-sm transition-colors;
@apply hover:bg-base-200;

View File

@@ -52,6 +52,8 @@ const isActive = (path: string) => {
</script>
<style scoped>
@reference "tailwindcss";
.subnav-item {
@apply px-4 py-2 rounded-full text-sm font-medium transition-colors whitespace-nowrap;
@apply text-base-content/70 hover:text-base-content hover:bg-base-200;

View File

@@ -209,6 +209,8 @@ onMounted(() => {
</script>
<style scoped>
@reference "tailwindcss";
.search-field {
@apply flex flex-col px-4 py-2 min-w-32;
}