-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(brand): Support additional bootstrap layers in defaults #11378
Conversation
Is this equivalent to providing this using a It feels this is a way to express all layers of the single SCSS file logic quarto introduced as a YAML syntax. I am just curious to see if I understand correctly - or just missing something. maybe the layering order won't be the same. Also maybe Shiny (bslib) is not supporting single SCSS theme file but is support this new brand.yml ? |
Yeah, you could think of this as if it creates a |
Thanks, I like this. One question: should we also support a string for |
Yeah I asked myself the same thing when I was working on this as well. I was on the fence, but I decided against the string alternative for two reasons:
This isn't a super strong position; I'd say these reasons nudged me just over the line into choosing not to include a bare string for |
Both of your arguments are true, but I don't think they are related to the reason I'd like to support a string there, namely that I expect someone to try to do it and they'll be surprised when it doesn't. I wouldn't replace the mapping support: I would allow both and resolve them accordingly. |
Sounds good, I added support for a string or an object in b65f9ac. |
This needed some conflict fixing after #11440. I'll merge when tests pass. |
For posit-dev/brand-yml#32
Currently
brand.defaults.bootstrap
accepts mapping of Sass variables to their values (thedefaults
layer). In Shiny, however, we found that it was useful to be able to include other layers, likefunctions
,mixins
andrules
.This PR updates the Bootstrap bundle created from
brand
to include these other pieces.defaults
is still a nested mapping of Sass variables to default values and the other fields expect scalar strings (this is intended to be a broad initial choice that could be revisited in the future if we need different behavior).Before
After