Skip to content

Commit cdd620f

Browse files
convert to css and add tailwind
1 parent 9608db4 commit cdd620f

File tree

10 files changed

+545
-13
lines changed

10 files changed

+545
-13
lines changed

.lintstagedrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"*.ts": ["prettier --write", "eslint"],
33
"*.html": ["eslint", "prettier --write"],
4-
"*.scss": "prettier --write"
4+
"*.css": "prettier --write"
55
}

.postcssrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"plugins": {
3+
"@tailwindcss/postcss": {}
4+
}
5+
}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ The goal of this assignment is to showcase your skills and coding style while bu
88
> **State Management** - We have included all of the `@ngrx` packages but you're welcome to use any state management library you see fit or just stateful services.
99
>
1010
> **Component Library** - We have included [@angular/material](https://material.angular.io/components/categories) but you're welcome to use any component library that suites your needs. Ex: [PrimeNG](https://primeng.org/installation)
11+
>
12+
> **Styling** - We have included [tailwindcss](https://tailwindcss.com/docs/styling-with-utility-classes) but you can style using scss, or css directly if you prefer.
1113
1214
## Getting Started
1315

apps/angular-task/project.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"zone.js"
2020
],
2121
"tsConfig": "apps/angular-task/tsconfig.app.json",
22-
"inlineStyleLanguage": "scss",
22+
"inlineStyleLanguage": "css",
2323
"assets": [
2424
{
2525
"glob": "**/*",
@@ -28,7 +28,7 @@
2828
],
2929
"styles": [
3030
"@angular/material/prebuilt-themes/azure-blue.css",
31-
"apps/angular-task/src/styles.scss"
31+
"apps/angular-task/src/styles.css"
3232
],
3333
"scripts": [],
3434
"server": "apps/angular-task/src/main.server.ts",

apps/angular-task/src/app/app.component.scss

Lines changed: 0 additions & 4 deletions
This file was deleted.

apps/angular-task/src/app/app.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ import { Component } from '@angular/core';
22
import { RouterModule } from '@angular/router';
33

44
@Component({
5+
host: {
6+
class: 'block p-4'
7+
},
58
imports: [RouterModule],
69
selector: 'crx-root',
710
templateUrl: './app.component.html',
8-
styleUrl: './app.component.scss'
911
})
1012
export class AppComponent {
1113

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import "tailwindcss";
2+
13
html,
24
body {
35
height: 100%;

nx.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@
6565
"e2eTestRunner": "playwright",
6666
"prefix": "crx",
6767
"linter": "eslint",
68-
"style": "scss",
68+
"style": "css",
6969
"unitTestRunner": "jest"
7070
},
7171
"@nx/angular:library": {
7272
"linter": "eslint",
7373
"unitTestRunner": "jest"
7474
},
7575
"@nx/angular:component": {
76-
"style": "scss",
76+
"style": "css",
7777
"standalone": true
7878
}
7979
},

0 commit comments

Comments
 (0)