Add TailwindCSS

Following https://tailwindcss.com/docs/installation
This commit is contained in:
Tobias 2021-01-17 21:01:44 +01:00
parent 946572a31c
commit f07e595830
5 changed files with 1255 additions and 3 deletions

View file

@ -1,3 +1,7 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--subtle-detail-color: #e5f5ff;
--subtle-detail-color-contrast: black;

1230
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -29,9 +29,11 @@
"author": "pietervdvn",
"license": "GPL",
"dependencies": {
"@tailwindcss/postcss7-compat": "^2.0.2",
"@types/leaflet-markercluster": "^1.0.3",
"@types/leaflet-providers": "^1.2.0",
"@types/leaflet.markercluster": "^1.4.3",
"autoprefixer": "^9.8.6",
"country-language": "^0.1.7",
"email-validator": "^2.0.4",
"escape-html": "^1.0.3",
@ -49,6 +51,8 @@
"osm-auth": "^1.0.2",
"osmtogeojson": "^3.0.0-beta.4",
"parcel": "^1.12.4",
"postcss": "^7.0.35",
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.0.2",
"turf": "^3.0.14"
},
"devDependencies": {

6
postcss.config.js Normal file
View file

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

14
tailwind.config.js Normal file
View file

@ -0,0 +1,14 @@
module.exports = {
purge: [
// './**/*.html',
// './**/*.js',
],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
}