Developers on brink of new UI for BTCPay Server
Dependencies are managed via npm. Once you have cloned this repo, you can setup the packages:
npm install
Create a build and rebuild on file change:
npm start
This will bring up the dev server and pattern library on localhost:3000.
To generate a custom version of Bootstrap v5 that supports our light/dark themeing, we take a three step approach:
- Where possible we customize the variables offered by Bootstrap.
The general variable definitions can be looked up in the component files in
node_modules/bootstrap/scss/
after locally installing Bootstrap as a dependency. - We then generate the bootstrap css and replace some of the generated HEX values with our color variables. This is done for the cases in which we cannot use our variables directly in step 1, because Bootstrap passes them through modifier functions (lighten/darken), which require actual color values.
- Hard CSS overrides are used for extensions and customizations of the final
bootstrap.css
. These are appended to the generated file, so that we can override things and maintain the ability to easily upgrade.