Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

@import statements fail to build with Filament v3.3.34 and Vite 7 - PostCSS cannot resolve vendor paths #1

Description

@emmanpbarrameda

The Filament Flat Theme package cannot be installed/used with Filament v3.3.34 when using modern build tools (Vite 7, Tailwind CSS v3, PostCSS). The @import statement recommended in the documentation causes PostCSS build failures.

Environment:

  • Filament Version: v3.3.34
  • Flat Theme Package: spykapp/filament-flat-theme (latest)
  • Laravel Version: 12
  • PHP Version: 8.2+
  • Vite Version: 7.2.2
  • Tailwind CSS Version: 3.4.18
  • PostCSS Version: 8.x
  • Node Version: Latest LTS

Expected Behavior:
Theme should compile successfully and apply flat design styles to Filament panel.

Actual Behavior:
Build fails with PostCSS error:
[vite:css] [postcss] postcss-import: C:...\node_modules\tailwindcss\lib\index.js:1:1: Unknown word "use strict"

The error occurs because:
PostCSS processes the @import statement
Follows the import chain through theme.css → Filament's theme.css → Tailwind references
PostCSS tries to read Tailwind's JavaScript file instead of CSS
Fails when encountering JavaScript syntax

Attempted Fixes (all failed):

✗ Using relative paths: @import '../../../../vendor/spykapp/...'
✗ Using absolute paths: @import '/vendor/spykapp/...'
✗ Different import orders (before/after @tailwind directives)
✗ Downgrading Vite to v5
✗ Installing postcss-nesting
✗ Various postcss.config.js configurations
✗ Copying vendor file to resources folder

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions