Frontend: Deleted tailwind dependency.

This commit is contained in:
Yohan Boujon 2023-11-12 21:39:40 +01:00
parent 7ffca953c6
commit 28fac9c157
7 changed files with 16 additions and 1015 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,5 @@
{ {
"name": "frontend", "name": "curriculum-vitae",
"version": "0.0.1", "version": "0.0.1",
"private": true, "private": true,
"scripts": { "scripts": {
@ -12,13 +12,7 @@
"@sveltejs/kit": "^1.20.4", "@sveltejs/kit": "^1.20.4",
"svelte": "^4.0.5", "svelte": "^4.0.5",
"vite": "^4.4.2", "vite": "^4.4.2",
"postcss": "8.4.31", "autoprefixer": "10.4.16"
"autoprefixer": "10.4.16",
"tailwindcss": "3.3.5",
"@skeletonlabs/skeleton": "2.5.0",
"@skeletonlabs/tw-plugin": "0.2.4",
"vite-plugin-tailwind-purgecss": "0.1.3",
"@tailwindcss/forms": "0.5.7"
}, },
"type": "module" "type": "module"
} }

View file

@ -1,6 +0,0 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

6
frontend/src/lib/cv.css Normal file
View file

@ -0,0 +1,6 @@
body, html {
height: 100%;
background: white;
margin: 0;
padding: 0;
}

View file

@ -1,5 +1,6 @@
<script> <script>
import { processData } from '$lib/processdata.js'; import { processData } from '$lib/processdata.js';
import '$lib/cv.css';
export let data; export let data;
let cv = processData(data); let cv = processData(data);
</script> </script>

View file

@ -1,25 +0,0 @@
import { join } from 'path'
import forms from '@tailwindcss/forms';
import { skeleton } from '@skeletonlabs/tw-plugin'
export default {
darkMode: 'class',
content: ['./src/**/*.{html,js,svelte,ts}', join(require.resolve('@skeletonlabs/skeleton'), '../**/*.{html,js,svelte,ts}')],
theme: {
extend: {},
},
plugins: [
forms,
skeleton({
themes: {
preset: [
{
name: 'crimson',
enhancements: true,
},
],
},
}),
],
};

View file

@ -1,7 +1,6 @@
import { purgeCss } from 'vite-plugin-tailwind-purgecss';
import { sveltekit } from '@sveltejs/kit/vite'; import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite'; import { defineConfig } from 'vite';
export default defineConfig({ export default defineConfig({
plugins: [sveltekit(), purgeCss()] plugins: [sveltekit()]
}); });