[BREAKGLASS] BTCPay Server Design System https://design.btcpayserver.org/
Go to file
Dennis Reimann 7ab2b71794
Some checks failed
Build / build (16) (push) Has been cancelled
Add payment type icons
Context: #6180
2025-03-20 10:58:23 +01:00
.github/workflows Update build 2022-02-01 15:50:00 +01:00
pages Format using prettier 2023-04-24 16:43:36 +02:00
src Add payment type icons 2025-03-20 10:58:23 +01:00
tasks Update icon clip ids 2025-03-20 10:58:10 +01:00
.browserslistrc Autoprefix bootstrap css 2021-05-27 18:11:41 +02:00
.editorconfig 🎉 Initial setup 2020-04-10 13:36:14 +02:00
.gitignore 🛠 Move generated files 2021-04-03 20:26:46 +02:00
.prettierignore Format using prettier 2023-04-24 16:43:36 +02:00
package-lock.json Upgrade dependencies 2025-03-20 10:54:27 +01:00
package.json Upgrade dependencies 2025-03-20 10:54:27 +01:00
postcss.config.js Format using prettier 2023-04-24 16:43:36 +02:00
README.md Merge branch 'master' into bootstrap-v5 2021-04-21 12:18:13 +02:00
uiengine.config.js Format using prettier 2023-04-24 16:43:36 +02:00

BTCPay Server Design System

Developers on brink of new UI for BTCPay Server

Node CI

🛠 Development

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.

🛼 Bootstrap Customizations

To generate a custom version of Bootstrap v5 that supports our light/dark themeing, we take a three step approach:

  1. 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.
  2. 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.
  3. 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.