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
  • Issues
  • #25147
Closed
Open
Issue created Dec 31, 2017 by Administrator@rootContributor

Update "Theming" documentation to include info on using CSS vars

Created by: willthemoor

Loving BS4. Needed to make a few tweaks to the default colors so I installed the SCSS via NPM, created my own _variables.scss doc, updated links, blah blah blah. All the while I'm thinking, "shouldn't BS4 use CSS vars for this?". Lo! I inspected an element for some other reason and saw a beautiful set of --vars on the :root element! 😃 🏕

I'm already invested in the custom SCSS route (and need to adjust a few other variables not accounted for in _root.scss) but I'm very glad to learn of this feature. If https://getbootstrap.com/docs/4.0/getting-started/theming/ had info on a) their availability and b) how to use them, I might have just sorted it all out with --vars and saved a bunch of time.

This is a really fantastic feature update to Bootstrap; this issue is me hoping it gets the documentation attention I reckon it deserves. TBH, my CSS Variables fu is weak (been hooked on pre-processors for so long) or I'd offer up a starter PR. Still, down to help get it going if someone wants to point my inner Energizer Bunny in the right direction.

Assignee
Assign to
Time tracking