https://github.com/primefaces/primereact-sass-theme
PrimeReact Theming with SASS
https://github.com/primefaces/primereact-sass-theme
Last synced: 5 months ago
JSON representation
PrimeReact Theming with SASS
- Host: GitHub
- URL: https://github.com/primefaces/primereact-sass-theme
- Owner: primefaces
- License: mit
- Created: 2023-03-13T19:08:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-28T12:20:32.000Z (over 1 year ago)
- Last Synced: 2025-02-25T08:36:32.080Z (over 1 year ago)
- Language: SCSS
- Size: 4.28 MB
- Stars: 38
- Watchers: 6
- Forks: 44
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://opensource.org/licenses/MIT)
# PrimeReact Theming with SASS
Visit the [official documentation](https://primereact.org/theming/#customtheme) for more information.

## Usage
To compile the CSS once:
```shell
npm install
npm run sass
```
To watch the SASS files for changes and re-compile:
```shell
npm install
npm run sass-watch
```
## Compile and copy CSS files to the PrimeReact repository
Usually you want to update the CSS files in the PrimeReact repository, located in the
`/primereact/public/themes` folder. To do so you can use the following scripts.
These scripts asume that the PrimeReact repository is located next to this repository, so at `../primereact`.
They will compile the CSS files and copy the resulting CSS files to the correct resources folders.
### Unix
```shell
./build.sh
```
### Windows
```shell
build.bat
```