Skip to content

Commit

Permalink
feat: ADORSYS-GIS#49 setup sass-based css design system (ADORSYS-GIS#72)
Browse files Browse the repository at this point in the history
* doc:added sass_usage file for the css design system(ADORSYS-GIS#49)

* feat:(frontend) Setup sass-based css design system(ADORSYS-GIS#49)

* fix: Remove gulpfile and its configuration (ADORSYS-GIS#72)

* Fix: Modified sass_usage.md file

* fix:(frontend) remove the file index.scss
  • Loading branch information
nancymuyeh authored and Christiantyemele committed Apr 9, 2024
1 parent 22ab79f commit fe2ef79
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 14 deletions.
25 changes: 11 additions & 14 deletions docs/sass_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Before being able to use sass, make sure to have the following installed

- [npm] (https://www.npmjs.com/): Package manager for node.js

- [gulp] (https://gulpjs.com/docs/en/getting-started/quick-start/):Javasript toolkit that helps automate the running of task.It can be useed to watch a .scss file and compile it to a .css file automatically. **note** gulp is optional here as other tools can be used for example visualsstudio code has an extention for sass. sass itself has commands that can be run on the terminal to compile from .scss to .css.

- [sass] (https://sass-lang.com/install/) :The preprocessor programming language that is either interpreted or compiled into css.

Expand All @@ -27,13 +26,11 @@ Follow the following steps to install and use sass:
```bash
nvm install node
```
3. Install gulp:
```bash
npm install gulp-sass
```
4. install sass:

3. install sass:
```bash
npm install -g sass
npm add sass -D
```

## Getting started with sass
Expand All @@ -54,15 +51,15 @@ Follow the following to use sass in the e2e-banking-app project:
npm install
```
4. Create files
a. Create .scss file(s) for the scss code.
b. Create a gulpfile.js for the the javascript code responsible for compiling scss to css.
Create .scss file(s) in the src directory for the scss code.
5. Start coding
- sass functions, varaibles and all othher sass features go to the .scss file
- visit the sass website for sass basics: https://sass-lang.com/guide/
6. run gulp to compile scss code to css
- sass functions, varaibles and all other sass features go to the .scss file
- visit the sass website for sass basics: https://sass-lang.com/guide/
6.Import the .scss file(s) in the app.tsx file,use the features defined in the scss file and the styles defined in the scss file will be automatcally applied.
7. Use the compiled css in the in your html file
115 changes: 115 additions & 0 deletions power-pay-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions power-pay-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"gh-pages": "^6.1.1",
"sass": "^1.71.1",
"typescript": "^5.2.2",
"vite": "^5.1.4"
}
Expand Down

0 comments on commit fe2ef79

Please sign in to comment.