Skip to content

Instantly share code, notes, and snippets.

@nikspyratos
Created April 8, 2023 12:56
Show Gist options
  • Save nikspyratos/874fb0c683199f1ca55c15927575f1e2 to your computer and use it in GitHub Desktop.
Save nikspyratos/874fb0c683199f1ca55c15927575f1e2 to your computer and use it in GitHub Desktop.
Filament theme issues
//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