🛠️ Add tailwindcss.

This commit is contained in:
pheralb 2023-03-15 11:28:22 +00:00
parent 8a3d4b6cf9
commit 89506de0e9
3 changed files with 36 additions and 0 deletions

6
postcss.config.cjs Normal file
View File

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

11
src/app.css Normal file
View File

@ -0,0 +1,11 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@font-face {
font-family: 'General-Sans';
src: url('/fonts/GeneralSans-Variable.woff2') format('woff2');
font-weight: 200 700;
font-display: swap;
font-style: normal;
}

19
tailwind.config.cjs Normal file
View File

@ -0,0 +1,19 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'class',
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {
colors: {
dark: '#161616'
},
fontFamily: {
sans: ['General-Sans', 'sans-serif']
},
fontSize: {
mini: '14px'
}
}
},
plugins: []
};