Skip to content

Commit

Permalink
example: add tailwindcss without postcss config
Browse files Browse the repository at this point in the history
  • Loading branch information
nvh95 committed Aug 22, 2022
1 parent 5a65066 commit d65fc88
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@
"@types/jest": "^28.1.6",
"@types/node": "16.11.7",
"@types/testing-library__jest-dom": "^5.14.5",
"autoprefixer": "^10.4.8",
"jest": "^28.1.3",
"jest-preview": "^0.2.8",
"postcss": "^8.4.16",
"start-server-and-test": "^1.14.0",
"tailwindcss": "^3.1.8",
"typescript": "~4.7.2"
}
}
1 change: 1 addition & 0 deletions examples/angular/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const styleUrls = [
This text is styled by global configured SASS
</p>
<p class="imported-sass">This text is styled by imported SASS</p>
<p class="text-xanh">TailwindCSS Green</p>
<p>
<app-counter></app-counter>
</p>
Expand Down
4 changes: 4 additions & 0 deletions examples/angular/src/styles/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
Expand Down
11 changes: 11 additions & 0 deletions examples/angular/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{html,ts}'],
theme: {
extend: {},
colors: {
xanh: '#34eb4f',
},
},
plugins: [],
};

0 comments on commit d65fc88

Please sign in to comment.