Add Tailwind CSS

This commit is contained in:
2022-07-14 14:22:21 -07:00
parent 073dc8ab8c
commit 5002ca093e
6 changed files with 1223 additions and 0 deletions

1
.gitignore vendored
View File

@@ -2,6 +2,7 @@
assets/dist/* assets/dist/*
config/* config/*
docs/_build/* docs/_build/*
static/*
!config/dev.example.py !config/dev.example.py
!config/test.py !config/test.py

View File

@@ -9,6 +9,9 @@ coverage coverage-html coverage-report test test-wip test-x : export FLASK_ENV :
shell-psql serve-psql export : export FLASK_ENV := development shell-psql serve-psql export : export FLASK_ENV := development
shell-psql serve-psql export : export SIGL_CONFIG := ../config/dev-docker.py shell-psql serve-psql export : export SIGL_CONFIG := ../config/dev-docker.py
css :
npx tailwindcss -i ./src/css/tailwind.css -o static/sigl.dist.css
db-init : db-init :
poetry run flask db init poetry run flask db init

1198
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

8
package.json Normal file
View File

@@ -0,0 +1,8 @@
{
"name": "sigl",
"version": "0.1.0",
"description": "Simple Grocery List",
"dependencies": {
"tailwindcss": "^3.1.6"
}
}

3
src/css/tailwind.css Normal file
View File

@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

10
tailwind.config.js Normal file
View File

@@ -0,0 +1,10 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./sigl/templates/**/*.html.j2',
],
theme: {
extend: {},
},
plugins: [],
}