in Primeflex docs, variable $lg (Breakpoint of screens such as notebook monitors) has a default value of 992px. How can I change that? For example, I want to set a default value of 1100px. Please assist I'm using Primeflex 3.0.1
Primeflex variables $lg
2.2k Views Asked by Branka At
3
There are 3 best solutions below
3

You might not want to modify anything because if it gets updated your modifications will be gone. Use an override to accomplish this. Add the following to your .scss
$lg:992px !important;
0

these steps solved my problem, thank you :)
- Clone project from https://github.com/primefaces/primeflex
- Change the values of variables on path _sass/lib/src/_variables.scss
- Install sass globally with command npm install -g sass
- Open the project
- Run npm install to install packages
- Run npm run build-lib which will create new dist folder
- Copy dist folder into the ongoing project
- Remove "primeflex": "3.0.1" from package.json file
- Add path for using imported primeflex.css in angular.json file ("styles": [ "/primeflex/primeflex.min.css" ])
This is explained in https://www.primefaces.org/primeflex/setup
What is not super clear from that section is where to find the variables. You'll need to modify this file:
https://github.com/primefaces/primeflex/blob/master/_sass/lib/src/_variables.scss