Keep edits as light as possible to avoid merge conflicts. See the root README.md for more details
Search for
- @import
~@blueprintjs
except~@blueprintjs/icons
rgba(
mix(
menu-background(
svg-icon(
$pt-border-radius
withcalc(#{$pt-border-radius} - 1px)
border-shadow(
input-transition-shadow(
dark-input-transition-shadow(
pt-input-intent(
pt-dark-input-intent(
pt-tag-intent(
pt-tag-minimal-intent(
pt-tag-interactive(
pt-tag-minimal-interactive(
Copy !default
$vars to src/styles/_blueprint/components
replace color vars with // custom
color-aliases if they exist
:[^;]*;
:[^;]*(;|,)
# rgba($color-value, 0.1) => hslax(var(--color-value-hsl), 0.1)
rgba\(\$((\w|-)*),
hslax(var(--$1-hsl),
# scss hsla does not handle var(--custom-properties) correctly
hslax
hsla
# $original-variable: $whatever; => --original-variable: $whatever;
\$([^:]*):
--$1:
# $variable => var(--variable) // add a ; at the end for help
\$([\w-]*)
var(--$1)
# $identity: $whatever; => $identity: var(--identity);
\$([^:]*):.*
$$$1: var(--$1);
# comment out // property: $dark-something;
(\s)([^$][a-z][^:$]*:[^\$]*\$[^;]*dark-[^;]*;)
$1//$2
# comment out @include dark-something()
(@include.*dark-.*\(\);)
// $1
# replace emit-identity var // --pt-font-size: $pt-grid-size * 1.4; => @include emit-identity-var('pt-font-size', $pt-font-size);
// --([\w-]*):
@include emit-identity-var('$1', $$$1); // --$1:
Post bp4
- rgba( => hslax(
- update hslax to accept non- hsl colors
- revert all -hsl usages in hslax ?
- find undeclared vars with: https://chrome.google.com/webstore/detail/css-undefined-variable-ch/endbpplgeglmgihkpiapmaimegpkhhcn
- x
- update base colors
- -dark theme
Alternate bp4 upgrade?
- re-copy fresh
- update all rgba to hslax
- don't comment out dark vars?
- no dark mirror?
- comment out all bp4 'modern' in blueprint.scss - visually recreate most important changes
- https://github.com/palantir/blueprint/wiki/Blueprint-4.0
- warning foreground color - with text-color-invert
- menu-item active
- dark theme spacing
- look for updates in blueprint.scss
- alias grayscale colors too?