Forumium uses Vite as a tool to build the application assets, and Tailwind CSS as the main style Framework.
You can find the application Vite configurations in the file 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.scss'
],
refresh: true,
}),
],
});You can see there are two files included in the build:
resources/js/app.js: it's the main application JavaScript file, this file include also the main styles fileresources/css/app.scss, this file is included only for the Front section of the platform (not the Administration section)resources/css/filament.scss: it's the file used to customize the Filament administration section, as mentionned it is used only in the Administration section (not the Front section)
The Tailwind CSS is the main style Framework used by Forumium platform.
You can find the Tailwind CSS configurations in the file tailwind.config.js:
/** @type {import('tailwindcss').Config} */
const colors = require('tailwindcss/colors')
module.exports = {
mode: 'jit',
content: [
'./resources/**/*.blade.php',
'./resources/**/*.js',
'./node_modules/flowbite/**/*.js',
'./vendor/filament/**/*.blade.php',
'./app/Http/Livewire/**/*.php',
'./app/Filament/Resources/**/*.php'
],
theme: {
extend: {
colors: {
danger: colors.rose,
primary: colors.blue,
success: colors.green,
warning: colors.yellow,
},
},
},
plugins: [
require('flowbite/plugin'),
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
require('tailwindcss-textshadow')
],
}As mentionned in the plugins section of this file, Forumium is using:
flowbite/plugin: is an open-source library of UI components, sections, and pages build with utility classes from Tailwind CSS and designed in Figma- Check the plugin website: https://flowbite.com
@tailwindcss/formsand@tailwindcss/typography: two official plugins of Tailwind CSS- Check
@tailwindcss/formsdocs: https://tailwindcss.com/docs/plugins#forms - Check
@tailwindcss/typographydocs: https://tailwindcss.com/docs/plugins#typography
- Check
tailwindcss-textshadow: a plugin used to inject thetext-shadowclasses into HTML attributes- Check the plugin docs: https://www.npmjs.com/package/tailwindcss-textshadow
If you want to customize the appearance of the Forumium platform, the file resources/js/app.js is where you need to add your codes!