Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !34063

Update option B: Include parts of Bootstrap

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/o-alquimista/patch-1 into main May 21, 2021
  • Overview 2
  • Commits 3
  • Pipelines 0
  • Changes 1

Created by: o-alquimista

By following the current instructions I was unable to add new colors to the $theme-colors variable. To make it work, I had to import variables first.

This won't work (as in "it doesn't result in the creation of bg-<color> classes"):

@import "../node_modules/bootstrap/scss/functions";

$my-theme: (
  "blackhole": #111111,
  "onion": #59316b
);

$theme-colors: map-merge($theme-colors, $my-theme);

@import "../node_modules/bootstrap/scss/variables";
@import "../node_modules/bootstrap/scss/mixins";

This will work:

@import "../node_modules/bootstrap/scss/functions";
@import "../node_modules/bootstrap/scss/variables";

$my-theme: (
  "blackhole": #111111,
  "onion": #59316b
);

$theme-colors: map-merge($theme-colors, $my-theme);

@import "../node_modules/bootstrap/scss/mixins";

I'm not very experienced with Sass, though. Maybe I did something wrong. Please check if you can reproduce this. I'm using Dart Sass 1.33.0.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/o-alquimista/patch-1