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
  • #27338
Closed
Open
Issue created Sep 29, 2018 by Administrator@rootContributor

It is not possible to properly set $link-color variable in user-land config.

Created by: dilame

In your _variables.scss

$link-color:                theme-color("primary") !default;

Your docs (https://getbootstrap.com/docs/4.1/getting-started/theming/#variable-defaults) says

However, when overriding across Sass files, your overrides must come before you import Bootstrap’s Sass files.

But it is impossible to just change $key for theme-color() function, before import _variables.scss, because theme-color expects $theme-colors that declared in _variables.scss. It turns out a vicious circle. I know i can just use a variable instead of function call, but it is a bit confusing. Why you use theme-color("primary") instead of just $primary?

Assignee
Assign to
Time tracking