Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Primeflex variables $lg

Tags:

sass

primeflex

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

like image 768
Branka Avatar asked May 21 '26 15:05

Branka


2 Answers

This is explained in https://www.primefaces.org/primeflex/setup

Variables

SASS variables are available to customize and create your own primeflex build. To begin with clone the primeflex repo and then build the primeflex.scss file after your customizations. Refer to Sass documentation for more information about how to build scss files.

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

like image 84
Jasper de Vries Avatar answered May 24 '26 09:05

Jasper de Vries


these steps solved my problem, thank you :)

  1. Clone project from https://github.com/primefaces/primeflex
  2. Change the values of variables on path _sass/lib/src/_variables.scss
  3. Install sass globally with command npm install -g sass
  4. Open the project
  5. Run npm install to install packages
  6. Run npm run build-lib which will create new dist folder
  7. Copy dist folder into the ongoing project
  8. Remove "primeflex": "3.0.1" from package.json file
  9. Add path for using imported primeflex.css in angular.json file ("styles": [ "/primeflex/primeflex.min.css" ])
like image 43
Branka Avatar answered May 24 '26 09:05

Branka



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!