Compare commits

...

1 commit

Author SHA1 Message Date
Oliver Davies 11705f7a4c Task 1 - Add Tailwind CSS 2021-02-18 21:19:13 +00:00
7 changed files with 1142 additions and 2 deletions

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
/node_modules/
/public/build/
###> symfony/framework-bundle ### ###> symfony/framework-bundle ###
/.env.local /.env.local

3
assets/css/tailwind.pcss Normal file
View file

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

View file

@ -1,5 +1,15 @@
{ {
"private": true, "private": true,
"scripts": {}, "scripts": {
"dependencies": {} "dev": "cross-env NODE_ENV=development postcss assets/css/tailwind.pcss -o public/build/tailwind.css",
"prod": "cross-env NODE_ENV=production postcss assets/css/tailwind.pcss -o public/build/tailwind.css",
"watch": "cross-env NODE_ENV=development postcss assets/css/tailwind.pcss -o public/build/tailwind.css --watch"
},
"devDependencies": {
"autoprefixer": "^10.2.4",
"cross-env": "^7.0.3",
"postcss": "^8.2.6",
"postcss-cli": "^8.3.1",
"tailwindcss": "^2.0.3"
}
} }

6
postcss.config.js Normal file
View file

@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

11
tailwind.config.js Normal file
View file

@ -0,0 +1,11 @@
module.exports = {
purge: [],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
};

View file

@ -4,6 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>{% block title %}Tailwind CSS workshop{% endblock %}</title> <title>{% block title %}Tailwind CSS workshop{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="/build/tailwind.css"/>
{% block stylesheets %}{% endblock %} {% block stylesheets %}{% endblock %}
</head> </head>
<body class="py-20 font-sans bg-blue-600"> <body class="py-20 font-sans bg-blue-600">

1107
yarn.lock

File diff suppressed because it is too large Load diff