Customization
Customize Bullframe CSS by overriding CSS variables or rebuilding the framework.
Overriding CSS Variables
The easiest way to customize Bullframe CSS is to override CSS variables:
css
:root {
/* Override primary color */
--bf-blue: rgb(100 200 255);
/* Override spacing */
--bf-spacing-lg: 1.5rem;
/* Override typography */
--bf-body-font-size-rem: 1.8rem;
}Scoped Customization
You can also scope variables to specific components:
css
.my-component {
--bf-blue: rgb(255 0 0);
/* This component will use red instead of blue */
}Rebuilding from Source
For more advanced customization, you can rebuild Bullframe CSS from source:
- Clone the repository:
bash
git clone https://github.com/marcop135/bullframe.css.git
cd bullframe.css- Install dependencies:
bash
npm installModify variables in
src/css/variables.cssBuild:
bash
npm run buildThe built files will be in the dist/css/ directory.
Custom Builds
You can create custom builds by:
- Modifying
src/css/variables.css - Adding custom CSS files
- Importing them in
src/css/bullframe.css - Running
npm run build