You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
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:
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