Skip to content

Commit

Permalink
Added support to choose which components to import when generating Bo…
Browse files Browse the repository at this point in the history
…otstrap css
  • Loading branch information
antonio-goncalves-unp committed Apr 17, 2024
1 parent e96d051 commit 16f8837
Show file tree
Hide file tree
Showing 5 changed files with 596 additions and 12,676 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
- Added support to choose which components to import when generating Bootstrap css

## [0.4.2] - 2024-04-17
- Added missing import when generating CSS

## [0.4.1] - 2024-04-17
- Fixed bug on method getHashFromTheme

Expand Down
19 changes: 16 additions & 3 deletions dev/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import fs from "node:fs";
import { BootstrapTheme } from "../src";

const Bootstrap5Generator = require("../").Bootstrap5Generator

Expand Down Expand Up @@ -26,14 +27,26 @@ const variables = {
"$color-2": "lighten($color-1,20% )"
}

const theme = {
variables,
const theme: BootstrapTheme = {
variables: {

"$body-bg": "#ffff00",
"$info": "#99b6c3",
"$badge-pill-border-radius": "20rem",
"$border-radius": "1.5rem",
"$border-radius-lg": "1.5rem",
"$border-radius-sm": "1.5rem",
"$toast-border-radius": "2rem"
},
components: [

],
colors: {
primary: "#FFaaCC",
secondary: "#ccdbe1",
warning: "#ee8140",
danger: "#CC3105",
// success: "#B6E186",
success: "#B6E186",
highlight: "#FF00FF"
}
}
Expand Down
Loading

0 comments on commit 16f8837

Please sign in to comment.