Upgrade to Vite 8 and Tailwind CSS 4 (#595)

- Vite 6 → 8 (Rolldown bundler), laravel-vite-plugin 1 → 3, @vitejs/plugin-vue 5 → 6
- Tailwind CSS 3 → 4 with CSS-based config (@theme, @plugin, @utility)
- Add @tailwindcss/vite plugin, remove postcss/autoprefixer/sass
- Convert SCSS files to plain CSS (resources/sass → resources/css)
- Migrate tailwind.config.js to CSS @theme directives
- Rename deprecated utility classes (shadow-sm→shadow-xs, outline-none→outline-hidden,
  rounded-sm→rounded-xs, bg-gradient-to→bg-linear-to, ring→ring-3)
- Migrate opacity utilities to color modifiers (bg-opacity, text-opacity,
  border-opacity, ring-opacity → color/N syntax)
- Update primary color CSS vars to full rgb() values for TW4 color-mix()
- Fix border-l color specificity for sidebar navigation (TW4 default border
  color changed from gray-200 to currentColor)
- Fix invalid border color classes (border-grey-light, border-modal-bg, border--200)
- Add @reference directive for @apply in Vue component style blocks
- Convert Vue component <style lang="scss"> blocks to plain CSS
This commit is contained in:
Darko Gjorgjijoski
2026-04-02 15:59:15 +02:00
committed by GitHub
parent 691178857f
commit ad5a7e51b9
84 changed files with 717 additions and 1662 deletions

View File

@@ -6,7 +6,7 @@
px-4
py-2
rounded-lg
bg-opacity-40 bg-gray-300
bg-gray-300/40
whitespace-nowrap
flex-col
mt-1
@@ -33,7 +33,7 @@
h-full
inset-y-0
cursor-pointer
focus:outline-none
focus:outline-hidden
text-primary-500
"
width="37"

View File

@@ -4,14 +4,14 @@
<Popover v-slot="{ isOpen }">
<PopoverButton
v-if="userStore.hasAbilities(abilities.VIEW_NOTE)"
:class="isOpen ? '' : 'text-opacity-90'"
:class="isOpen ? '' : ''"
class="
flex
items-center
z-10
font-medium
text-primary-400
focus:outline-none focus:border-none
focus:outline-hidden focus:border-none
"
@click="fetchInitialData"
>
@@ -50,7 +50,7 @@
overflow-hidden
rounded-md
shadow-lg
ring-1 ring-black ring-opacity-5
ring-1 ring-black/5
"
>
<div class="relative grid bg-white">
@@ -117,7 +117,7 @@
py-3
bg-gray-200
border-none
outline-none
outline-hidden
"
@click="openNoteModal"
>

View File

@@ -58,7 +58,7 @@
justify-end
mt-4
pt-4
border-t border-gray-200 border-solid border-modal-bg
border-t border-gray-200 border-solid
"
>
<BaseButton :loading="isSaving" variant="primary" type="submit">

View File

@@ -143,7 +143,7 @@
<BaseContentPlaceholders v-if="loading">
<BaseContentPlaceholdersText
:lines="1"
class="w-24 h-8 border rounded-md"
class="w-24 h-8 border border-gray-200 rounded-md"
/>
</BaseContentPlaceholders>

View File

@@ -42,7 +42,7 @@
<template v-if="userStore.hasAbilities(ability)" #action>
<button
type="button"
class="flex items-center justify-center w-full px-2 py-2 bg-gray-200 border-none outline-none cursor-pointer "
class="flex items-center justify-center w-full px-2 py-2 bg-gray-200 border-none outline-hidden cursor-pointer "
@click="openTaxModal"
>
<BaseIcon name="CheckCircleIcon" class="h-5 text-primary-400" />

View File

@@ -100,7 +100,7 @@
<BaseContentPlaceholders v-if="isLoading">
<BaseContentPlaceholdersText
:lines="1"
class="w-24 h-8 border rounded-md"
class="w-24 h-8 border border-gray-200 rounded-md"
/>
</BaseContentPlaceholders>
<div v-else class="flex" style="width: 140px" role="group">

View File

@@ -11,7 +11,7 @@
<BaseIcon
v-tooltip="{ content: 'Fetch Latest Exchange rate' }"
name="ArrowPathIcon"
:class="`h-4 w-4 text-primary-500 cursor-pointer outline-none ${
:class="`h-4 w-4 text-primary-500 cursor-pointer outline-hidden ${
isFetching
? ' animate-spin rotate-180 cursor-not-allowed pointer-events-none '
: ''

View File

@@ -2,14 +2,14 @@
<div class="w-full mt-4 tax-select">
<Popover v-slot="{ isOpen }" class="relative">
<PopoverButton
:class="isOpen ? '' : 'text-opacity-90'"
:class="isOpen ? '' : ''"
class="
flex
items-center
text-sm
font-medium
text-primary-400
focus:outline-none focus:border-none
focus:outline-hidden focus:border-none
"
>
<BaseIcon
@@ -39,7 +39,7 @@
overflow-hidden
rounded-md
shadow-lg
ring-1 ring-black ring-opacity-5
ring-1 ring-black/5
"
>
<!-- Tax Search Input -->
@@ -142,7 +142,7 @@
py-3
bg-gray-200
border-none
outline-none
outline-hidden
"
@click="openTaxTypeModal"
>

View File

@@ -53,7 +53,7 @@
flex
justify-end
p-4
border-t border-gray-200 border-solid border-modal-bg
border-t border-gray-200 border-solid
"
>
<BaseButton

View File

@@ -98,7 +98,7 @@
</BaseInputGrid>
</div>
<div class="z-0 flex justify-end p-4 bg-gray-50 border-modal-bg">
<div class="z-0 flex justify-end p-4 bg-gray-50 border-t border-gray-200">
<BaseButton
class="mr-3 text-sm"
variant="primary-outline"

View File

@@ -38,7 +38,7 @@
</BaseInputGroup>
</div>
<div class="z-0 flex justify-end p-4 bg-gray-50 border-modal-bg">
<div class="z-0 flex justify-end p-4 bg-gray-50 border-t border-gray-200">
<BaseButton
class="mr-3 text-sm"
variant="primary-outline"

View File

@@ -21,7 +21,7 @@
>
<template #default="slotProps">
<div
class="z-0 flex justify-end p-4 border-t border-solid border-gray-light"
class="z-0 flex justify-end p-4 border-t border-solid border-gray-200"
>
<BaseButton
class="mr-3 text-sm"

View File

@@ -37,7 +37,7 @@
flex
justify-end
p-4
border-t border-gray-200 border-solid border-modal-bg
border-t border-gray-200 border-solid
"
>
<BaseButton

View File

@@ -75,7 +75,7 @@ _ />
justify-end
px-4
py-4
border-t border-solid border-gray-light
border-t border-solid border-gray-200
"
>
<BaseButton
@@ -280,7 +280,7 @@ function closeNoteModal() {
}
</script>
<style lang="scss">
<style>
.note-modal {
.header-editior .editor-menu-bar {
margin-left: 0.5px;

View File

@@ -122,7 +122,7 @@
flex
justify-end
p-4
border-t border-solid border--200 border-modal-bg
border-t border-solid border-gray-200
"
>
<BaseButton

View File

@@ -106,7 +106,7 @@
flex
justify-end
p-4
border-t border-solid border--200 border-modal-bg
border-t border-solid border-gray-200
"
>
<BaseButton

View File

@@ -179,7 +179,7 @@
flex
justify-end
p-4
border-t border-solid border-gray-light border-modal-bg
border-t border-solid border-gray-200
"
>
<BaseButton