Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
[no message]
Browse files Browse the repository at this point in the history
  • Loading branch information
nicodinh committed Feb 19, 2020
1 parent 8dd859c commit 67102dc
Show file tree
Hide file tree
Showing 10 changed files with 2,342 additions and 63 deletions.
13 changes: 13 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "stylelint-config-recommended",
"rules": {
"at-rule-no-unknown": [ true, {
"ignoreAtRules": [
"extends",
"tailwind"
]
}],
"block-no-empty": null,
"unit-whitelist": ["em", "rem", "s"]
}
}
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# lifeinaweb
# lifeinaweb

### CSS linter
- https://stackoverflow.com/questions/47607602/how-to-add-a-tailwind-css-rule-to-css-checker/48165524#48165524
Empty file added components/index.js
Empty file.
2 changes: 2 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const withCSS = require('@zeit/next-css')
module.exports = withCSS({})
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,17 @@
"start": "NODE_ENV=production next start -p 3000"
},
"dependencies": {
"@zeit/next-css": "^1.0.1",
"easy-peasy": "^3.3.0",
"next": "latest",
"prop-types": "^15.7.2",
"react": "latest",
"react-dom": "latest"
},
"devDependencies": {

"postcss-preset-env": "^6.7.0",
"prettier-standard": "^16.1.0",
"stylelint-config-recommended": "^3.0.0",
"tailwindcss": "^1.2.0"
}
}
8 changes: 8 additions & 0 deletions pages/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import '../styles/index.css'

export default () => (
<div className="p-4 shadow rounded bg-white">
<h1 className="text-purple-500 leading-normal">lifeinaweb</h1>
<p className="text-gray-500">with Tailwind CSS</p>
</div>
)
3 changes: 3 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
plugins: [require('tailwindcss'), require('postcss-preset-env')],
}
11 changes: 11 additions & 0 deletions styles/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

/* @import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities"; */

body {
@apply bg-blue-500 p-12;
}
7 changes: 7 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
theme: {
extend: {},
},
variants: {},
plugins: [],
}
Loading

0 comments on commit 67102dc

Please sign in to comment.