Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"watch": "concurrently -k -p \"[{name}]\" -n \"Css,Static,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"yarn watch:css\" \"yarn watch:static-assets\" \"yarn watch:node\"",
"test": "yarn run cypress open",
"build:ts": "etsc",
"build:css": "NODE_ENV=production postcss public/css/tailwind.css -o dist/public/css/styles.css",
"watch:css": "NODE_ENV=development postcss public/css/tailwind.css -o dist/public/css/styles.css -w",
"build:css": "tailwindcss -i ./public/css/tailwind.css -o ./dist/public/css/styles.css --minify",
"watch:css": "tailwindcss -i ./public/css/tailwind.css -o ./dist/public/css/styles.css --watch",
"watch:fe": "concurrently -k -p \"[{name}]\" -n \"Css,Static\" -c \"yellow.bold,cyan.bold\" \"yarn watch:css\" \"yarn watch:static-assets\"",
"lint": "tsc --noEmit && eslint \"**/*.{js,ts}\"",
"copy:static-assets": "node -r esm copyStaticAssets.js",
Expand All @@ -25,8 +25,8 @@
"watch:debug": "concurrently -k -p \"[{name}]\" -n \"Css,Static,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"yarn watch:css\" \"yarn watch:static-assets\" \"yarn serve:debug\""
},
"dependencies": {
"@tailwindcss/forms": "0.3.4",
"@tailwindcss/typography": "0.4.1",
"@tailwindcss/forms": "0.4.0",
"@tailwindcss/typography": "0.5.0",
"autoprefixer": "10.4.0",
"compression": "1.7.4",
"cookie-parser": "1.4.6",
Expand All @@ -48,11 +48,9 @@
"passport": "0.5.0",
"passport-oauth2": "1.6.1",
"pg": "8.7.1",
"postcss": "8.4.4",
"postcss-nested": "5.0.6",
"pug": "3.0.2",
"sanitize-html": "2.6.0",
"tailwindcss": "2.2.19",
"tailwindcss": "3.0.0",
"winston": "3.3.3"
},
"devDependencies": {
Expand Down Expand Up @@ -82,7 +80,6 @@
"eslint": "8.3.0",
"faker": "5.5.3",
"nodemon": "2.0.15",
"postcss-cli": "9.0.2",
"shelljs": "0.8.4",
"ts-node": "10.4.0",
"typescript": "4.5.2"
Expand Down
10 changes: 0 additions & 10 deletions postcss.config.js

This file was deleted.

45 changes: 20 additions & 25 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,28 @@
const colors = require('tailwindcss/colors')

module.exports = {
mode: 'jit',
darkMode: 'class',
purge: ['./views/**/*.pug', './public/**/*.js'],
content: ['./views/**/*.pug', './public/**/*.js'],
theme: {
extend: {
//alert animation
keyframes: {
'fade-in-down': {
'0%': {
opacity: '0',
transform: 'translateY(-30px)'
transform: 'translateY(-30px)',
},
'100%': {
opacity: '1',
transform: 'translateY(0)'
transform: 'translateY(0)',
},
}
},
},
animation: {
'fade-in-down': 'fade-in-down 0.8s ease-out'
'fade-in-down': 'fade-in-down 0.8s ease-out',
},
boxShadow: {
full:
'0px 4px 32px rgba(0, 0, 0, 0.3), 4px 0px 4px rgba(0, 0, 0, 0.1);',
full: '0px 4px 32px rgba(0, 0, 0, 0.3), 4px 0px 4px rgba(0, 0, 0, 0.1);',
},
colors: {
'indigo-1000': '#211f5b',
Expand All @@ -46,44 +44,41 @@ module.exports = {
},
h1: {
color: 'white',
'margin-top': '0'
'margin-top': '0',
},
h2: {
color: 'white',
'margin-top': '0'
'margin-top': '0',
},
h3: {
color: 'white',
'margin-top': '0'
'margin-top': '0',
},
h4: {
color: 'white',
'margin-top': '0'
'margin-top': '0',
},
p: {
color: 'white',
'margin-top': '0',
'margin-bottom': '1em'
'margin-bottom': '1em',
},
'ul > li': {
'&::before': {
'background-color': 'white',
'font-weight': 'bold'
}
'font-weight': 'bold',
},
},
'ol > li': {
'&::before': {
color: 'white',
'font-weight': 'bold'
}
}
}
}
})
'font-weight': 'bold',
},
},
},
},
}),
},
},
plugins: [
require('@tailwindcss/typography'),
require('@tailwindcss/forms'),
],
plugins: [require('@tailwindcss/typography'), require('@tailwindcss/forms')],
}
Loading