Created
April 8, 2023 12:56
-
-
Save nikspyratos/874fb0c683199f1ca55c15927575f1e2 to your computer and use it in GitHub Desktop.
Filament theme issues
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//vite.config.js | |
import { defineConfig } from 'vite'; | |
import laravel from 'laravel-vite-plugin'; | |
export default defineConfig({ | |
plugins: [ | |
laravel({ | |
input: [ | |
'resources/js/app.js', | |
'resources/css/filament.css', | |
], | |
refresh: true, | |
}), | |
], | |
}); | |
//tailwind.config.js | |
const defaultTheme = require('tailwindcss/defaultTheme'); | |
const colors = require('tailwindcss/colors') | |
/** @type {import('tailwindcss').Config} */ | |
module.exports = { | |
content: [ | |
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php', | |
'./storage/framework/views/*.php', | |
'./resources/views/**/*.blade.php', | |
'./vendor/filament/**/*.blade.php', | |
], | |
darkMode: 'class', | |
theme: { | |
extend: { | |
fontFamily: { | |
sans: ['Nunito', ...defaultTheme.fontFamily.sans], | |
}, | |
colors: { | |
danger: colors.rose, | |
primary: colors.emerald, | |
success: colors.emerald, | |
warning: colors.amber, | |
}, | |
}, | |
}, | |
plugins: [ | |
require('@tailwindcss/forms'), | |
require('@tailwindcss/typography'), | |
], | |
}; | |
//filament.css | |
@import '../../vendor/filament/filament/resources/css/app.css'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment