-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
🪟 🔧 Use CSS Custom Properties for colors #19344
Conversation
airbyte-webapp/src/components/connection/CatalogTree/StreamHeader.module.scss
Outdated
Show resolved
Hide resolved
airbyte-webapp/src/components/connection/CatalogTree/StreamHeader.module.scss
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM 👍
Also checked locally - seems like no issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rgba
functions don't work with custom CSS properties and transparency. Discussed this offline, will need to adjust that before merging.
@timroes this has been addressed now! |
rgba(255 106 77 / 80%) 30%, | ||
rgba(97 94 255 / 80%) 80%, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two colors are kind of one-off colors that are part of a gradient, so I felt better defining them inline here than in a global variable.
textColor90: rgba(colors.$dark-blue, 0.9); | ||
darkBlue90: rgba(colors.$dark-blue, 0.9); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These were unused legacy colors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM, tested around the UI can't find any recession. Have not validated the connector builder, since Lake already checked this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM, tested around the UI can't find any recession. Have not validated the connector builder, since Lake already checked this.
* use css custom properties for colors * separate tokens by hue * adjust stylelint * fix code editor color transformations * remove blue-transparent from color palette * scope opacity to bg only * rename to theme-light * avoid transparent blue, use palette color instead * bring back expanding hex values * replace tooltip colors * define overlay color in theme * fix tooltip colors * slightly darker link color * remove unused SC colors * add box shadow variables * light tooltip table variant * inline one-off colors for login * add new colors to theme-light * fix import name * fix merge conflict with box shadows * fix overlay bg color Co-authored-by: lmossman <lake@airbyte.io>
What
Converts our SASS color variables from using hex codes to using CSS custom properties
How
_customProperties.scss
_colors.scss
to use CSS Custom Properties instead of hex codescolors.$blue-transparent
in this commit to avoid SVG<linear-gradient>
choking on this syntax:rgba(--var-color-blue, .1)
Tooltip
andTooltipTable
componentsThere are a few changes in the appearance of the tooltips specifically. They are not longer slightly transparent, and are now instead fully opaque. Instead of the inline transparent values, I used colors from our theme instead. There may be very minor differences, but they should be barely noticeable:
Before:
After:
Recommended reading order
Top to bottom