Tailwind added

This commit is contained in:
endigo9740
2022-02-23 10:34:07 -06:00
parent 6c5a3a9066
commit cc307b0656
7 changed files with 2485 additions and 31 deletions

2413
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -25,7 +25,11 @@
"svelte-check": "^2.2.6", "svelte-check": "^2.2.6",
"svelte-preprocess": "^4.10.1", "svelte-preprocess": "^4.10.1",
"tslib": "^2.3.1", "tslib": "^2.3.1",
"typescript": "~4.5.4" "typescript": "~4.5.4",
"postcss": "^8.4.5",
"postcss-load-config": "^3.1.1",
"autoprefixer": "^10.4.2",
"tailwindcss": "^3.0.12"
}, },
"type": "module" "type": "module"
} }

13
postcss.config.cjs Normal file
View File

@@ -0,0 +1,13 @@
const tailwindcss = require('tailwindcss');
const autoprefixer = require('autoprefixer');
const config = {
plugins: [
//Some plugins, like tailwindcss/nesting, need to run before Tailwind,
tailwindcss(),
//But others, like autoprefixer, need to run after,
autoprefixer
]
};
module.exports = config;

4
src/app.css Normal file
View File

@@ -0,0 +1,4 @@
/* Write your global styles here, in PostCSS syntax */
@tailwind base;
@tailwind components;
@tailwind utilities;

View File

@@ -0,0 +1,5 @@
<script>
import '../app.css';
</script>
<slot />

View File

@@ -5,7 +5,11 @@ import preprocess from 'svelte-preprocess';
const config = { const config = {
// Consult https://github.com/sveltejs/svelte-preprocess // Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors // for more information about preprocessors
preprocess: preprocess(), preprocess: [
preprocess({
postcss: true
})
],
kit: { kit: {
adapter: adapter() adapter: adapter()

11
tailwind.config.cjs Normal file
View File

@@ -0,0 +1,11 @@
const config = {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {}
},
plugins: []
};
module.exports = config;