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
  • !32319

Add maps for all colors, document how to extend color utilities

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Mark Otto requested to merge extend-colors into main Dec 03, 2020
  • Overview 2
  • Commits 5
  • Pipelines 0
  • Changes 3

The goal of this PR is to give folks the tools they need to extend our full color palette into any number of utilities, from color to background-color and beyond. I've added the maps to the _variables.scss file as our existing color variables all live there right now. I've also added some docs guidance for how to put it to use to the Customize > Color page. This also includes adding a new map-merge-multiple() function for combining several Sass maps, since otherwise we'd need to do nested maps for each merge.

/cc @twbs/css-review


Closes #32236 (closed), closes #33412 (closed).

Preview: https://deploy-preview-32319--twbs-bootstrap.netlify.app/docs/5.0/customize/color/#generating-utilities

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: extend-colors