Add tailwindcss

This commit is contained in:
sct
2020-08-16 04:40:38 +00:00
parent a1eb9c0048
commit 2519ac86f7
9 changed files with 1094 additions and 23 deletions

2
next-env.d.ts vendored Normal file
View File

@@ -0,0 +1,2 @@
/// <reference types="next" />
/// <reference types="next/types/global" />

View File

@@ -10,6 +10,14 @@
"dependencies": { "dependencies": {
"next": "9.5.2", "next": "9.5.2",
"react": "16.13.1", "react": "16.13.1",
"react-dom": "16.13.1" "react-dom": "16.13.1",
"typeorm": "^0.2.25"
},
"devDependencies": {
"@types/node": "^14.0.27",
"@types/react": "^16.9.46",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^1.6.2",
"typescript": "^3.9.7"
} }
} }

3
postcss.config.js Normal file
View File

@@ -0,0 +1,3 @@
module.exports = {
plugins: ["tailwindcss", "postcss-preset-env"],
};

18
stylelint.config.js Normal file
View File

@@ -0,0 +1,18 @@
module.exports = {
rules: {
"at-rule-no-unknown": [
true,
{
ignoreAtRules: [
"tailwind",
"apply",
"variants",
"responsive",
"screen",
],
},
],
"declaration-block-trailing-semicolon": null,
"no-descending-specificity": null,
},
};

View File

@@ -1,3 +1,7 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
html, html,
body { body {
padding: 0; padding: 0;

8
tailwind.config.js Normal file
View File

@@ -0,0 +1,8 @@
module.exports = {
purge: [],
theme: {
extend: {},
},
variants: {},
plugins: [],
}

29
tsconfig.json Normal file
View File

@@ -0,0 +1,29 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}

1043
yarn.lock

File diff suppressed because it is too large Load Diff