Skip to content

Commit

Permalink
assets
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjustesen committed Oct 1, 2023
1 parent a80f2fd commit 95c341d
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 2 deletions.
1 change: 1 addition & 0 deletions public/build/assets/app-d8cd240f.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions public/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"resources/css/app.css": {
"file": "assets/app-d8cd240f.css",
"isEntry": true,
"src": "resources/css/app.css"
},
"resources/css/filament/admin/theme.css": {
"file": "assets/theme-182befaf.css",
"isEntry": true,
Expand Down
9 changes: 9 additions & 0 deletions resources/css/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
[x-cloak] {
display: none !important;
}
}
29 changes: 29 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import defaultTheme from 'tailwindcss/defaultTheme';
import forms from '@tailwindcss/forms';
import presets from './vendor/filament/support/tailwind.config.preset';
import typography from '@tailwindcss/typography';

/** @type {import('tailwindcss').Config} */
export default {
presets: [presets],

content: [
'./resources/views/**/*.blade.php',
'./storage/framework/views/*.php',
],

darkMode: 'class',

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

plugins: [
forms,
typography,
],
}
13 changes: 11 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import laravel, { refreshPaths } from 'laravel-vite-plugin';

export default defineConfig({
plugins: [
laravel({
input: [
'resources/css/app.css',
'resources/css/filament/admin/theme.css',
],
refresh: true,
refresh: [
...refreshPaths,
'app/Livewire/**',
],
}),
],
server: {
hmr: {
host: 'localhost',
},
},
});

0 comments on commit 95c341d

Please sign in to comment.