hhnk
hhnk
FFilament
Created by hhnk on 1/4/2024 in #❓┊help
Tailwind classes not found outside of filament
I will try this, thanks!!!
33 replies
FFilament
Created by hhnk on 1/4/2024 in #❓┊help
Tailwind classes not found outside of filament
No description
33 replies
FFilament
Created by hhnk on 1/4/2024 in #❓┊help
Tailwind classes not found outside of filament
yup
33 replies
FFilament
Created by hhnk on 1/4/2024 in #❓┊help
Tailwind classes not found outside of filament
The blade file is under resources/views/livewire/pages
33 replies
FFilament
Created by hhnk on 1/4/2024 in #❓┊help
Tailwind classes not found outside of filament
@filamentStyles
@vite(['resources/css/app.css', 'resources/js/app.js'])
@livewireStyles
@filamentStyles
@vite(['resources/css/app.css', 'resources/js/app.js'])
@livewireStyles
33 replies
FFilament
Created by hhnk on 1/4/2024 in #❓┊help
Tailwind classes not found outside of filament
I build, then dev
33 replies
FFilament
Created by hhnk on 1/4/2024 in #❓┊help
Tailwind classes not found outside of filament
So bizarre!
33 replies
FFilament
Created by hhnk on 1/4/2024 in #❓┊help
Tailwind classes not found outside of filament
yup
33 replies
FFilament
Created by hhnk on 1/4/2024 in #❓┊help
Tailwind classes not found outside of filament
It's a full page component with just one line of text ina div
33 replies
FFilament
Created by hhnk on 1/4/2024 in #❓┊help
Tailwind classes not found outside of filament
weird huh?
33 replies
FFilament
Created by hhnk on 1/4/2024 in #❓┊help
Tailwind classes not found outside of filament
No description
33 replies
FFilament
Created by hhnk on 1/4/2024 in #❓┊help
Tailwind classes not found outside of filament
Nope
33 replies
FFilament
Created by hhnk on 1/4/2024 in #❓┊help
Tailwind classes not found outside of filament
Just to clarify, the TW classes aren't being applied in standalone Livewire components which do not contain Filament forms or tables
33 replies
FFilament
Created by hhnk on 1/4/2024 in #❓┊help
Tailwind classes not found outside of filament
I'll check it out! Haven't seen that thread yet 👍🏻 thanks for the response
33 replies
FFilament
Created by hhnk on 1/4/2024 in #❓┊help
Tailwind classes not found outside of filament
postcss.config.js

export default {
plugins: {
'tailwindcss/nesting': 'postcss-nesting',
tailwindcss: {},
autoprefixer: {},
},
};
postcss.config.js

export default {
plugins: {
'tailwindcss/nesting': 'postcss-nesting',
tailwindcss: {},
autoprefixer: {},
},
};
33 replies
FFilament
Created by hhnk on 1/4/2024 in #❓┊help
Tailwind classes not found outside of filament
tailwind.config.js

import defaultTheme from 'tailwindcss/defaultTheme';
import forms from '@tailwindcss/forms';
import typography from '@tailwindcss/typography';
import preset from './vendor/filament/support/tailwind.config.preset'


/** @type {import('tailwindcss').Config} */
export default {
presets: [preset],
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./vendor/laravel/jetstream/**/*.blade.php',
'./storage/framework/views/*.php',
'./resources/views/**/*.blade.php',
'./app/Filament/**/*.php',
'./resources/views/filament/**/*.blade.php',
'./vendor/filament/**/*.blade.php',
'./resources/views/livewire/**/*.blade.php',
],

theme: {
extend: {
fontFamily: {
sans: ['Figtree', ...defaultTheme.fontFamily.sans],
},
},
},

plugins: [forms, typography],

};
tailwind.config.js

import defaultTheme from 'tailwindcss/defaultTheme';
import forms from '@tailwindcss/forms';
import typography from '@tailwindcss/typography';
import preset from './vendor/filament/support/tailwind.config.preset'


/** @type {import('tailwindcss').Config} */
export default {
presets: [preset],
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./vendor/laravel/jetstream/**/*.blade.php',
'./storage/framework/views/*.php',
'./resources/views/**/*.blade.php',
'./app/Filament/**/*.php',
'./resources/views/filament/**/*.blade.php',
'./vendor/filament/**/*.blade.php',
'./resources/views/livewire/**/*.blade.php',
],

theme: {
extend: {
fontFamily: {
sans: ['Figtree', ...defaultTheme.fontFamily.sans],
},
},
},

plugins: [forms, typography],

};
33 replies
FFilament
Created by hhnk on 1/4/2024 in #❓┊help
Tailwind classes not found outside of filament
vite.config.js

import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import tailwindcss from 'tailwindcss';

export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.js',`resources/css/filament/admin/theme.css`],
refresh: [
'app/Livewire/**',
],
}),
],
server: {
host: '0.0.0.0',
port: '5173',
hmr: {
host: 'vite.local',
clientPort: '5173',
}
},
});
vite.config.js

import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import tailwindcss from 'tailwindcss';

export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.js',`resources/css/filament/admin/theme.css`],
refresh: [
'app/Livewire/**',
],
}),
],
server: {
host: '0.0.0.0',
port: '5173',
hmr: {
host: 'vite.local',
clientPort: '5173',
}
},
});
33 replies
FFilament
Created by hhnk on 8/21/2023 in #❓┊help
How to add properties to a file?
Tempted to just to do it in livewire 🤣 would be cool to have custom properties for files out of the box. Thanks for the prompt replies 👍🏻
6 replies
FFilament
Created by hhnk on 8/21/2023 in #❓┊help
How to add properties to a file?
Thanks lol! Great suggestions but these seem like overkill as I'd just like to have a couple JSON columns to store extra data like a user id and description
6 replies