-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don’t cache .css files for Tailwind projects
- Loading branch information
Showing
12 changed files
with
143 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
layout: layouts/main.njk | ||
title: Tailwind | ||
--- | ||
|
||
### Learn more | ||
|
||
- [Tailwind docs on Snowpack][tailwind] | ||
|
||
[tailwind]: https://www.snowpack.dev/guides/tailwind-css/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "@snowpack/example-react-loadable-components", | ||
"version": "0.0.1", | ||
"private": true, | ||
"scripts": { | ||
"start": "snowpack dev", | ||
"build": "snowpack build" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@snowpack/plugin-postcss": "^1.3.0", | ||
"postcss": "^8.2.15", | ||
"postcss-cli": "^8.3.1", | ||
"snowpack": "^3.4.0", | ||
"tailwindcss": "^2.1.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
// other plugins can go here, such as autoprefixer | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Tailwind Example</title> | ||
<link rel="stylesheet" type="text/css" href="/global.css" /> | ||
</head> | ||
<body> | ||
<figure class="md:flebg-gray-100 rounded-xl p-8"> | ||
<img | ||
class="w-32 h-32 rounded-full mx-auto" | ||
src="https://images.unsplash.com/photo-1621415346777-188c7f9d9727?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=256&h=256&q=75" | ||
alt="" | ||
width="384" | ||
height="512" | ||
/> | ||
<div class="pt-6 space-y-4"> | ||
<blockquote> | ||
<p class="text-lg font-semibold"> | ||
“Tailwind CSS is the only framework that I've seen scale on large teams. It’s easy to | ||
customize, adapts to any design, and the build size is tiny.” | ||
</p> | ||
</blockquote> | ||
<figcaption class="font-medium"> | ||
<div class="text-blue-600">Sarah Dayan</div> | ||
<div class="text-gray-500">Staff Engineer, Algolia</div> | ||
</figcaption> | ||
</div> | ||
</figure> | ||
</body> | ||
</html> |
Oops, something went wrong.