feat: add tailwind
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
kolaente 2022-01-26 21:58:18 +01:00
parent 2fe5b49728
commit 74ed1bbbc2
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
7 changed files with 498 additions and 3264 deletions

4
.gitignore vendored
View File

@ -1,6 +1,4 @@
.idea/
node_modules/
static/styles/main.css
static/styles/main*.css
static/styles/main.css.map
static/css/*.css
dist/

View File

@ -54,9 +54,9 @@
<link rel="canonical" href="{{ .Permalink }}">
{{ $siteBaseURL := .Site.BaseURL }}
{{ $styleFolder := "./themes/vikunja/static/styles" }}
{{ $styleFolder := "./themes/vikunja/static/css" }}
{{ range readDir $styleFolder }}
<link rel="stylesheet" href="{{ $siteBaseURL }}styles/{{ .Name }}">
<link rel="stylesheet" href="{{ $siteBaseURL }}css/{{ .Name }}">
{{ end }}
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}favicon.ico">

View File

@ -1,6 +1,6 @@
{
"name": "vikunja-theme",
"version": "0.2.0",
"version": "1.0.0",
"description": "A Hugo theme that gets used within all of our websites.",
"license": "LGPL-3.0-or-later",
"author": {
@ -8,23 +8,11 @@
"email": "team@vikunja.io"
},
"scripts": {
"clean": "gulp clean",
"build": "gulp prod",
"release": "gulp release",
"watch": "gulp watch"
},
"dependencies": {
"bulma": "^0.7.1"
"prod": "tailwindcss -i src/style.css -o static/css/styles.css",
"watch": "tailwindcss -i src/style.css -o static/css/styles.css --watch"
},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-clean": "^0.3.2",
"gulp-clean-css": "^4.2.0",
"gulp-gzip": "^1.4.0",
"gulp-hash-filename": "^2.0.1",
"gulp-replace": "^1.0.0",
"gulp-sass": "^3.1.0",
"gulp-sourcemaps": "^1.9.1",
"gulp-tar-path": "^1.0.1"
"postcss": "^8.4.5",
"tailwindcss": "^3.0.17"
}
}

3
src/style.css Normal file
View File

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

0
static/css/.gitkeep Normal file
View File

10
tailwind.config.js Normal file
View File

@ -0,0 +1,10 @@
module.exports = {
content: [
'./src/*.css',
'./layouts/**/*.html'
],
theme: {
extend: {},
},
plugins: [],
}

3719
yarn.lock

File diff suppressed because it is too large Load Diff