* js source of truth for colors * use more betterer colors * keyboard shortcut for toggling dark mode * Adds colorConfig for defining a light and dark color for each color variable * Copies over dark colors from `dark-mode` branch (excluding variables that don't exist in colorConfig` * Ports other style changes from `dark-mode` branch * Revert 3301ed93693 * Ports mantine theme logic from `dark-mode` but uses SSOT colorConfig instead of SEMANTIC_COLOR_SCHEMES * Fix TS errors * Fix text color and random white bg on permissions table * Removing a bunch of usages of JS color... probably breaking things * Updates mantine color scheme when resolvedColorScheme changes * a bunch more * fix progress bars. shame on Nick * Stubs out forcing light mantine theme when isEmbedding (since it has its own dark mode) * Fix hard-to-read dark mode straggler caused by one-off bg color * add orionAlphaInverse colors * make lighthouse illustration work with CSS vars * Fixes hover states of query builder header buttons in dark mode * Updates PivotTables in dark mode to behave similarly to night mode * Fix upsell CTA hover color in dark mode * Tweaks admin nav dark mode color * some small fixes * Fixes some incorrect brand color values when white-labeling * Tweaks admin nav bar colors and uses same colors on dark mode as light mode (if it ain't broke...) * Fix gauge visualization text/input colors in dark mode * Makes things legible and more consistent in query builder in dark mode * Fixes a few filter chip stragglers in dark mode * metabot visits the dark side * Use ColorSchemeToggle for dashboard night mode button * Prevents dashboard from using night mode when theme=night is set in the hash * Update color.ts * Revert "Prevents dashboard from using night mode when theme=night is set in the hash" This reverts commit 06a504c088e31c60aca7c7550aa24a0f32edba6c. * set color scheme for scrollbars * hard to see toggle in database info * Embedding and other fixed * fix blue brand * Uses canonical dark mode for dashboard night mode and static embedding's dark mode * Fixes issue where Static Embedding preview pane doesn't show checkerboard background when "Dashboard background" is turned off * Updates find-never-defined-css-variables.ts so it looks for defined variables in colors.ts. Removes references to now-removed base colors. * Fixes some TS errors * happy-ish static viz * only resolve to color var if name is known * type corrections, removing auto color scheme * Passes storybook theme arg to ThemeProvider * add konami code shortcut for Vamsi * Fix dashboard context TS errors * Fix runtime warning * Prevents whitelabel colors from being used in colors.ts when token lacks whitelabel feature. Updates `filter` and `summarize` colors to use whitelabel value if present. * re-enable updateColors * happy types * Updates storybook renderer to work with stories that set the theme via theme: "dark" * Fix issue where DatesRangeSdk story doesn't pick up brand color * green unit tests? * Reverts unnecessary change carried over from original `dark-mode` POC which changed some loki/storybook backgrounds * Fix issue where theme switching themes in Question embed previews doesn't appear to do anything * handfull of e2e suites * Revives some `theme` infrastructure needed to support `theme=transparent` * Restores SdkError colors on dark mode (#64306) * happy unit and e2e tests? * Fix lint errors * feat(sdk-bundle): use existing tooltip configuration for dark mode (#64325) * fix card shadow crash * backdrop color fix * Refines ColorSchemeToggle. Color scheme is "auto" by default. When "auto", color scheme is automatically updated when browser/device settings is changed. Switching to the theme that's defined as the browser/device preference will set the color scheme to "auto". * Adds clarifying "(system preference)" to color scheme toggle tooltip * embedding e2e, unit tests * Fix TS error * update colorConfig for sdkThemeProvider * force e2e to run in light mode * Fix embedding-sdk:docs:generate error * Updates ThemeProvider to ignore from hash if we're outside of static embeds. This prevents old night mode dashboard urls from messing with the new dark mode. * Fix issue where dark mode shortcut isn't pulling in the latest values (not toggling right) * Replace hardcoded value with already-defined constant * fix quotes in css Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> * use firefox compatible scale Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> * fix css quotes * fix color scheme toggle * fix test * fix conflict * update test * PR Feedback * fix embedding homepage flicker * e2e adjustment * adding text-hover, fixing checkbox border * setup.cy green plz * e2e test for toggling color scheme * e2e plz * type check * e2e adjustment * Update Loki Snapshots * test colors in RGB * OS check for shortcut --------- Co-authored-by: Ryan Laurie <iethree@gmail.com> Co-authored-by: Nick Fitzpatrick <nickfitz.582@gmail.com> Co-authored-by: Brad Anderson <brad@metabase.com> Co-authored-by: AlessioLaiso <7041012+AlessioLaiso@users.noreply.github.com> Co-authored-by: Phoomparin Mano <poom@metabase.com> Co-authored-by: Ryan Laurie <30528226+iethree@users.noreply.github.com> Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> Co-authored-by: Metabase Automation <github-automation@metabase.com>
Downloading Jars
mb-download will let you download a jar to a given path or straight into $JARS.
$ ./mb-download -h
Usage: mb-download 0.42.2
Usage: mb-download 1.45.2
Usage: mb-download 1.45.2 ~/path/to/my/jars
protip: this script will read from $JARS, and use that as your jar directory.