Skip to content

Commit a560d01

Browse files
authored
Merge pull request #7 from arximughal/scss-modules
add scss support
2 parents 0d8f32a + e91baaa commit a560d01

File tree

5 files changed

+9
-38
lines changed

5 files changed

+9
-38
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"react-redux": "^8.0.5",
1717
"react-router-dom": "^6.11.1",
1818
"react-scripts": "5.0.1",
19+
"sass": "^1.62.1",
1920
"typescript": "^4.9.5",
2021
"web-vitals": "^2.1.4"
2122
},

src/App.css

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

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Provider } from "react-redux";
44
import store from "./app/store";
55
import App from "./App";
66
import reportWebVitals from "./reportWebVitals";
7+
import './theme/index.scss';
78

89
// Render the app component wrapped with Provider component to pass the redux store to all components
910
ReactDOM.render(

src/theme/colors.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$theme-link-color: #ff5733;

src/index.css renamed to src/theme/index.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import './colors.scss';
2+
13
body {
24
margin: 0;
35
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
@@ -11,3 +13,7 @@ code {
1113
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
1214
monospace;
1315
}
16+
17+
a {
18+
color: $theme-link-color;
19+
}

0 commit comments

Comments
 (0)