Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

refactor: Sweep `brand`/`filter`/`summarize` tokens to `core-*` (#75332)

Oleh K376db5fb4319
diff --git a/.claude/skills/emotion-migrate/SKILL.md b/.claude/skills/emotion-migrate/SKILL.md
index 89c7464c530..462f2da6214 100644
--- a/.claude/skills/emotion-migrate/SKILL.md
+++ b/.claude/skills/emotion-migrate/SKILL.md
@@ -20,7 +20,7 @@ For EACH styled component, go through every CSS property and ask: "Can this be a
**Properties that ARE style props** (use these, not CSS modules):
- `display` → `display` prop
-- `color` → `c` prop (`c="brand"`, `c="text-primary"`)
+- `color` → `c` prop (`c="core-brand"`, `c="text-primary"`)
- `background-color` → `bg` prop (`bg="background-primary"`)
- `font-size` → `fz` prop (`fz="md"`)
- `font-weight` → `fw` prop (`fw="bold"`)
@@ -149,19 +149,19 @@ Read the `.styled.tsx` file AND every component that imports from it. Understand
For each styled component, apply the Mantine-First Decision Gate above. Then determine the migration target:
-| Emotion Pattern | Migration Target |
-| ------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `styled.div` with only layout/spacing/color | `Box`, `Flex`, `Stack`, or `Group` with style props. **NO CSS module needed.** |
-| `styled.div` with flexbox column | `Stack` component with style props |
-| `styled.div` with flexbox row | `Flex` or `Group` component with style props |
-| `styled.span` / `styled.p` with color/weight/size | **`Text component="span"` with style props** (`c`, `fw`, `fz`). NO CSS module. |
-| `styled.div` with hover/focus/pseudo-selectors | **Hybrid**: Mantine component with style props for expressible properties + CSS module class for pseudo-selectors only |
-| `styled.div` with media queries (simple spacing/sizing) | **Responsive style props**: `p={{ base: "md", lg: "xl" }}`. NO CSS module. |
-| `styled.div` with media queries (complex/non-spacing) | CSS module for the media query parts, style props for the rest |
-| `styled.div` with animations/keyframes | CSS module for animation, style props for layout |
-| `styled(SomeComponent)` with only color/spacing/flex | **Wrap in Mantine component** with style props: `<Box c="brand" flex="0 0 auto"><Icon /></Box>`, or pass style props if the component accepts them |
-| `styled(SomeComponent)` with pseudo-selectors/complex styles | CSS module `className` on the component |
-| Dynamic props `styled.div<{ isActive: boolean }>` | Mantine style props for simple toggles (`c={active ? "brand" : "text-primary"}`), `cx()` with CSS module classes for complex state combinations involving pseudo-selectors |
+| Emotion Pattern | Migration Target |
+| ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `styled.div` with only layout/spacing/color | `Box`, `Flex`, `Stack`, or `Group` with style props. **NO CSS module needed.** |
+| `styled.div` with flexbox column | `Stack` component with style props |
+| `styled.div` with flexbox row | `Flex` or `Group` component with style props |
+| `styled.span` / `styled.p` with color/weight/size | **`Text component="span"` with style props** (`c`, `fw`, `fz`). NO CSS module. |
+| `styled.div` with hover/focus/pseudo-selectors | **Hybrid**: Mantine component with style props for expressible properties + CSS module class for pseudo-selectors only |
+| `styled.div` with media queries (simple spacing/sizing) | **Responsive style props**: `p={{ base: "md", lg: "xl" }}`. NO CSS module. |
+| `styled.div` with media queries (complex/non-spacing) | CSS module for the media query parts, style props for the rest |
+| `styled.div` with animations/keyframes | CSS module for animation, style props for layout |
+| `styled(SomeComponent)` with only color/spacing/flex | **Wrap in Mantine component** with style props: `<Box c="core-brand" flex="0 0 auto"><Icon /></Box>`, or pass style props if the component accepts them |
+| `styled(SomeComponent)` with pseudo-selectors/complex styles | CSS module `className` on the component |
+| Dynamic props `styled.div<{ isActive: boolean }>` | Mantine style props for simple toggles (`c={active ? "core-brand" : "text-primary"}`), `cx()` with CSS module classes for complex state combinations involving pseudo-selectors |
### Step 3: Create CSS Module (if needed)
@@ -177,7 +177,7 @@ Create `ComponentName.module.css` alongside the component file:
/* Conditional states as separate classes, combined with cx() */
.active {
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
color: var(--mb-color-text-primary-inverse);
}
@@ -191,7 +191,7 @@ Create `ComponentName.module.css` alongside the component file:
cursor: pointer;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-hover);
}
}
@@ -257,7 +257,7 @@ Remove the old styled file entirely. Remove all imports of it from other files.
- Text: `"text-primary"`, `"text-secondary"`, `"text-tertiary"`
- Background: `"background-primary"`, `"background-secondary"`, `"background-hover"`
-- Brand: `"brand"`, `"error"`, `"success"`, `"warning"`
+- Brand: `"core-brand"`, `"error"`, `"success"`, `"warning"`
**Typography** (`fz`, `fw`, `lh`, `ta`, `ff`):
@@ -282,7 +282,7 @@ Remove the old styled file entirely. Remove all imports of it from other files.
- `--mb-color-text-primary`, `--mb-color-text-secondary`, `--mb-color-text-tertiary`
- `--mb-color-background-primary`, `--mb-color-background-secondary`, `--mb-color-background-hover`
- `--mb-color-border`, `--mb-color-border-strong`, `--mb-color-border-subtle`
-- `--mb-color-brand`, `--mb-color-brand-hover`
+- `--mb-color-core-brand`, `--mb-color-core-brand-hover`
- `--mb-color-error`, `--mb-color-success`, `--mb-color-warning`
- `--mb-color-shadow`, `--mb-color-focus`
- `--mb-color-accent0` through `--mb-color-accent7`
@@ -400,11 +400,11 @@ export const Item = styled.div<{ isSelected: boolean; disabled: boolean }>`
color: ${(props) =>
props.disabled ? color("text-tertiary") : color("text-primary")};
background-color: ${(props) =>
- props.isSelected ? color("brand") : "transparent"};
+ props.isSelected ? color("core-brand") : "transparent"};
cursor: ${(props) => (props.disabled ? "default" : "pointer")};
&:hover {
- color: ${(props) => !props.disabled && color("brand")};
+ color: ${(props) => !props.disabled && color("core-brand")};
}
`;
```
@@ -418,12 +418,12 @@ export const Item = styled.div<{ isSelected: boolean; disabled: boolean }>`
cursor: pointer;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
.selected {
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
.disabled {
@@ -457,7 +457,7 @@ When a styled component wraps another component, first check if the styles can b
export const CardIcon = styled(Icon)`
display: block;
flex: 0 0 auto;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
`;
export const CardTitle = styled(Ellipsified)`
@@ -471,7 +471,7 @@ export const CardTitle = styled(Ellipsified)`
**After — style props on Mantine wrapper (preferred when ALL properties are expressible):**
```tsx
-<Box display="block" flex="0 0 auto" c="brand">
+<Box display="block" flex="0 0 auto" c="core-brand">
<Icon {...icon} />
</Box>
<Box c="text-primary" fz="md" fw="bold" ml="md">
@@ -483,13 +483,13 @@ export const CardTitle = styled(Ellipsified)`
```css
.icon {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
width: 1.5rem;
height: 1.5rem;
cursor: pointer;
&:hover {
- color: var(--mb-color-brand-hover);
+ color: var(--mb-color-core-brand-hover);
}
}
```
@@ -570,12 +570,12 @@ export const Spinner = styled.div`
### Pattern 6: color() Function → CSS Variables
-| Emotion (JS) | CSS Module | Mantine Style Prop |
-| ----------------------- | ------------------------------------------------------------ | --------------------------- |
-| `color("brand")` | `var(--mb-color-brand)` | `c="brand"` or `bg="brand"` |
-| `color("text-primary")` | `var(--mb-color-text-primary)` | `c="text-primary"` |
-| `color("border")` | `var(--mb-color-border)` | N/A (use CSS module) |
-| `alpha("brand", 0.2)` | `color-mix(in srgb, var(--mb-color-brand), transparent 80%)` | N/A (use CSS module) |
+| Emotion (JS) | CSS Module | Mantine Style Prop |
+| -------------------------- | ----------------------------------------------------------------- | ------------------------------------- |
+| `color("core-brand")` | `var(--mb-color-core-brand)` | `c="core-brand"` or `bg="core-brand"` |
+| `color("text-primary")` | `var(--mb-color-text-primary)` | `c="text-primary"` |
+| `color("border")` | `var(--mb-color-border)` | N/A (use CSS module) |
+| `alpha("core-brand", 0.2)` | `color-mix(in srgb, var(--mb-color-core-brand), transparent 80%)` | N/A (use CSS module) |
### Pattern 7: Responsive Spacing/Sizing → Responsive Style Props (NOT CSS Media Queries)
@@ -627,13 +627,13 @@ export const Bar = styled.div<{ width: number }>`
If existing code already uses `CS` classes and you're not migrating that specific code, leave them alone. But when migrating Emotion → Mantine, replace with the proper alternative:
-| Instead of `CS.*` | Use |
-| ------------------- | ------------------------------------------------------- |
-| `CS.overflowHidden` | CSS module: `overflow: hidden` |
-| `CS.cursorPointer` | CSS module: `cursor: pointer` |
-| `CS.flex1` | Style prop: `flex={1}` |
-| `CS.flexNoShrink` | Style prop: `flex="0 0 auto"` |
-| `CS.textBrandHover` | CSS module: `&:hover { color: var(--mb-color-brand); }` |
+| Instead of `CS.*` | Use |
+| ------------------- | ------------------------------------------------------------ |
+| `CS.overflowHidden` | CSS module: `overflow: hidden` |
+| `CS.cursorPointer` | CSS module: `cursor: pointer` |
+| `CS.flex1` | Style prop: `flex={1}` |
+| `CS.flexNoShrink` | Style prop: `flex="0 0 auto"` |
+| `CS.textBrandHover` | CSS module: `&:hover { color: var(--mb-color-core-brand); }` |
### Pattern 10: Shared Emotion Styles Across Files → Shared CSS Module + cx()
@@ -759,7 +759,7 @@ import S from "./ComponentName.module.css"; // only if CSS module is needed
- [ ] The `.styled.tsx` file is deleted
- [ ] All imports of the deleted styled file are updated
- [ ] No static inline styles — `style={{ }}` used only for truly dynamic runtime values
-- [ ] All colors use design tokens (`c="brand"`, `var(--mb-color-brand)`), not raw hex/rgb
+- [ ] All colors use design tokens (`c="core-brand"`, `var(--mb-color-core-brand)`), not raw hex/rgb
- [ ] All spacing uses design tokens (`p="md"`, `var(--mantine-spacing-md)`), not arbitrary px values — hardcoded `rem`/`px` literals snapped to the nearest token (see mapping table above)
- [ ] All border-radius values use radius tokens (`var(--mantine-radius-md)`), not hardcoded `0.5rem`
- [ ] All font sizes use font-size tokens (`fz="md"`, `var(--mantine-font-size-md)`), not hardcoded `1rem`
diff --git a/e2e/test-component/scenarios/embedding-sdk/mantine-styles-tests.cy.spec.tsx b/e2e/test-component/scenarios/embedding-sdk/mantine-styles-tests.cy.spec.tsx
index 88dc1a9e167..17cbbf7a9d2 100644
--- a/e2e/test-component/scenarios/embedding-sdk/mantine-styles-tests.cy.spec.tsx
+++ b/e2e/test-component/scenarios/embedding-sdk/mantine-styles-tests.cy.spec.tsx
@@ -30,15 +30,15 @@ describe("scenarios > embedding-sdk > mantine styles leakage", () => {
it("css variables should not leak outside of mb-wrapper", () => {
cy.mount(
<MantineProvider
- theme={{ colors: { brand: colorTuple("rgb(255, 0, 255)") } }}
+ theme={{ colors: { "core-brand": colorTuple("rgb(255, 0, 255)") } }}
>
- <Button color="brand">outside sdk provider</Button>
+ <Button color="core-brand">outside sdk provider</Button>
<MetabaseProvider
authConfig={DEFAULT_SDK_AUTH_PROVIDER_CONFIG}
theme={{ colors: { brand: "rgb(255, 0, 0)" } }}
>
- <Button color="brand">outside sdk wrapper</Button>
+ <Button color="core-brand">outside sdk wrapper</Button>
<InteractiveQuestion questionId={ORDERS_QUESTION_ID} isSaveEnabled />
</MetabaseProvider>
diff --git a/enterprise/frontend/src/custom-viz/src/templates/README.md b/enterprise/frontend/src/custom-viz/src/templates/README.md
index 5d4d399ab2a..2bbb969025b 100644
--- a/enterprise/frontend/src/custom-viz/src/templates/README.md
+++ b/enterprise/frontend/src/custom-viz/src/templates/README.md
@@ -245,7 +245,7 @@ The icon appears in the chart type picker and elsewhere in the Metabase UI.
You can also use Metabase CSS variables inside inline SVG for more control:
```svg
-<path fill="var(--mb-color-brand)" .../>
+<path fill="var(--mb-color-core-brand)" .../>
```
Keep the icon **simple and monochromatic** — avoid gradients and multiple colors.
diff --git a/enterprise/frontend/src/embedding-sdk-ee/metabot/MetabotChatInput.tsx b/enterprise/frontend/src/embedding-sdk-ee/metabot/MetabotChatInput.tsx
index 4b2034b9602..61d904cc22d 100644
--- a/enterprise/frontend/src/embedding-sdk-ee/metabot/MetabotChatInput.tsx
+++ b/enterprise/frontend/src/embedding-sdk-ee/metabot/MetabotChatInput.tsx
@@ -34,7 +34,7 @@ export function MetabotChatInput() {
{metabot.isDoingScience ? (
<Loader size="sm" />
) : (
- <Icon name="ai" c="brand" size="1rem" />
+ <Icon name="ai" c="core-brand" size="1rem" />
)}
</Flex>
diff --git a/enterprise/frontend/src/embedding/data-picker/DataSelector/DataSelector.module.css b/enterprise/frontend/src/embedding/data-picker/DataSelector/DataSelector.module.css
index aa541bec056..3157adfc72d 100644
--- a/enterprise/frontend/src/embedding/data-picker/DataSelector/DataSelector.module.css
+++ b/enterprise/frontend/src/embedding/data-picker/DataSelector/DataSelector.module.css
@@ -35,6 +35,6 @@
word-wrap: anywhere;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/enterprise/frontend/src/embedding/data-picker/saved-entity-picker/SavedEntityPicker.module.css b/enterprise/frontend/src/embedding/data-picker/saved-entity-picker/SavedEntityPicker.module.css
index f0f59fdbf7b..a715f66688e 100644
--- a/enterprise/frontend/src/embedding/data-picker/saved-entity-picker/SavedEntityPicker.module.css
+++ b/enterprise/frontend/src/embedding/data-picker/saved-entity-picker/SavedEntityPicker.module.css
@@ -34,6 +34,6 @@
padding: 1rem;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/enterprise/frontend/src/metabase-enterprise/advanced_permissions/components/ImpersonationWarning/ImpersonationWarning.tsx b/enterprise/frontend/src/metabase-enterprise/advanced_permissions/components/ImpersonationWarning/ImpersonationWarning.tsx
index e6a5cb33c4d..afbcf79a44c 100644
--- a/enterprise/frontend/src/metabase-enterprise/advanced_permissions/components/ImpersonationWarning/ImpersonationWarning.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/advanced_permissions/components/ImpersonationWarning/ImpersonationWarning.tsx
@@ -23,34 +23,34 @@ export const ImpersonationWarning = ({
// eslint-disable-next-line metabase/no-literal-metabase-strings -- Metabase settings
const redshiftWarning = jt`You’re connecting Metabase to the ${(
- <Code c="brand" key="1" fw="bold" fz={13}>
+ <Code c="core-brand" key="1" fw="bold" fz={13}>
{database.name}
</Code>
)} database using the credentials for the Redshift user ${(
- <Code c="brand" key="2" fw="bold" fz={13}>
+ <Code c="core-brand" key="2" fw="bold" fz={13}>
{String(databaseUser)}
</Code>
)}. For impersonation to work, ${(
- <Code c="brand" key="3" fw="bold" fz={13}>
+ <Code c="core-brand" key="3" fw="bold" fz={13}>
{String(databaseUser)}
</Code>
)} must be a superuser in Redshift.`;
// eslint-disable-next-line metabase/no-literal-metabase-strings -- Metabase settings
const regularWarning = jt`${(
- <Code c="brand" key="1" fw="bold" fz={13}>
+ <Code c="core-brand" key="1" fw="bold" fz={13}>
{String(databaseUser)}
</Code>
)} is the database user Metabase is using to connect to your ${(
- <Code c="brand" key="2" fw="bold" fz={13}>
+ <Code c="core-brand" key="2" fw="bold" fz={13}>
{database.name}
</Code>
)} database. Make sure that ${(
- <Code c="brand" key="3" fw="bold" fz={13}>
+ <Code c="core-brand" key="3" fw="bold" fz={13}>
{String(databaseUser)}
</Code>
)} has access to everything in ${(
- <Code c="brand" key="4" fw="bold" fz={13}>
+ <Code c="core-brand" key="4" fw="bold" fz={13}>
{database.name}
</Code>
)} that all Metabase groups may need access to, as that database user account is what Metabase uses to sync table information.`;
diff --git a/enterprise/frontend/src/metabase-enterprise/ai-controls/pages/MetabotFeatureAccessPage/components/AiFeatureAccessTable/AdvancedGroupMode/EnableAdvancedModal.tsx b/enterprise/frontend/src/metabase-enterprise/ai-controls/pages/MetabotFeatureAccessPage/components/AiFeatureAccessTable/AdvancedGroupMode/EnableAdvancedModal.tsx
index e0a479e761b..f377fc7de8d 100644
--- a/enterprise/frontend/src/metabase-enterprise/ai-controls/pages/MetabotFeatureAccessPage/components/AiFeatureAccessTable/AdvancedGroupMode/EnableAdvancedModal.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/ai-controls/pages/MetabotFeatureAccessPage/components/AiFeatureAccessTable/AdvancedGroupMode/EnableAdvancedModal.tsx
@@ -30,7 +30,7 @@ export function EnableAdvancedModal({ onClose }: Props) {
message={t`This will remove all AI feature access from the "All Users" group, so users won't have access to AI features unless they're added to a group that has access.`}
confirmButtonText={t`Switch`}
confirmButtonProps={{
- color: "brand",
+ color: "core-brand",
variant: "filled",
loading,
}}
diff --git a/enterprise/frontend/src/metabase-enterprise/ai-controls/pages/MetabotFeatureAccessPage/components/GroupCategoryTabs.tsx b/enterprise/frontend/src/metabase-enterprise/ai-controls/pages/MetabotFeatureAccessPage/components/GroupCategoryTabs.tsx
index d09f110ea82..b33f1c7057b 100644
--- a/enterprise/frontend/src/metabase-enterprise/ai-controls/pages/MetabotFeatureAccessPage/components/GroupCategoryTabs.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/ai-controls/pages/MetabotFeatureAccessPage/components/GroupCategoryTabs.tsx
@@ -27,7 +27,7 @@ export const GroupCategoryTabs = (props: GroupCategoryTabsProps) => {
<Button
bd="none"
bg={activeTab === tabItem.tab ? "background-selected" : "transparent"}
- c={activeTab === tabItem.tab ? "brand" : "text-secondary"}
+ c={activeTab === tabItem.tab ? "core-brand" : "text-secondary"}
key={tabItem.tab}
onClick={() => setActiveTab(tabItem.tab)}
radius="xl"
diff --git a/enterprise/frontend/src/metabase-enterprise/audit_app/components/AuditTableVisualization/AuditTableVisualization.module.css b/enterprise/frontend/src/metabase-enterprise/audit_app/components/AuditTableVisualization/AuditTableVisualization.module.css
index 9a744f9cac0..e72f04192bb 100644
--- a/enterprise/frontend/src/metabase-enterprise/audit_app/components/AuditTableVisualization/AuditTableVisualization.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/audit_app/components/AuditTableVisualization/AuditTableVisualization.module.css
@@ -6,12 +6,12 @@
cursor: pointer;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
.sortedByColumn {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.rightAligned {
@@ -19,6 +19,6 @@
}
.clickable {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
cursor: pointer;
}
diff --git a/enterprise/frontend/src/metabase-enterprise/audit_app/components/InsightsLink.module.css b/enterprise/frontend/src/metabase-enterprise/audit_app/components/InsightsLink.module.css
index c49cd9fbed7..dba1422618b 100644
--- a/enterprise/frontend/src/metabase-enterprise/audit_app/components/InsightsLink.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/audit_app/components/InsightsLink.module.css
@@ -1,7 +1,7 @@
.InsightsLink {
&:not([data-specificity-hack]) {
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
}
diff --git a/enterprise/frontend/src/metabase-enterprise/audit_app/metabot-analytics/components/ConversationStatsPage/ConversationStatsPage.module.css b/enterprise/frontend/src/metabase-enterprise/audit_app/metabot-analytics/components/ConversationStatsPage/ConversationStatsPage.module.css
index 65bf3dc87a3..5104e8346d5 100644
--- a/enterprise/frontend/src/metabase-enterprise/audit_app/metabot-analytics/components/ConversationStatsPage/ConversationStatsPage.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/audit_app/metabot-analytics/components/ConversationStatsPage/ConversationStatsPage.module.css
@@ -11,7 +11,7 @@
}
&[data-active="true"] {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-brand);
}
}
diff --git a/enterprise/frontend/src/metabase-enterprise/audit_app/metabot-analytics/components/ConversationsPage/ConversationsTable.module.css b/enterprise/frontend/src/metabase-enterprise/audit_app/metabot-analytics/components/ConversationsPage/ConversationsTable.module.css
index c38ffe9e6b8..2272ef019ec 100644
--- a/enterprise/frontend/src/metabase-enterprise/audit_app/metabot-analytics/components/ConversationsPage/ConversationsTable.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/audit_app/metabot-analytics/components/ConversationsPage/ConversationsTable.module.css
@@ -1,6 +1,6 @@
.table thead th,
.table thead th * {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.table td,
diff --git a/enterprise/frontend/src/metabase-enterprise/caching/components/SidebarCacheSection.module.css b/enterprise/frontend/src/metabase-enterprise/caching/components/SidebarCacheSection.module.css
index 70c52e2e769..bc7a18415f8 100644
--- a/enterprise/frontend/src/metabase-enterprise/caching/components/SidebarCacheSection.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/caching/components/SidebarCacheSection.module.css
@@ -1,4 +1,4 @@
.formLauncher:hover,
.formLauncher:focus-visible {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
diff --git a/enterprise/frontend/src/metabase-enterprise/caching/components/StrategyEditorForQuestionsAndDashboards/StrategyEditorForQuestionsAndDashboards.module.css b/enterprise/frontend/src/metabase-enterprise/caching/components/StrategyEditorForQuestionsAndDashboards/StrategyEditorForQuestionsAndDashboards.module.css
index c8106296adf..0c396dc6e5c 100644
--- a/enterprise/frontend/src/metabase-enterprise/caching/components/StrategyEditorForQuestionsAndDashboards/StrategyEditorForQuestionsAndDashboards.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/caching/components/StrategyEditorForQuestionsAndDashboards/StrategyEditorForQuestionsAndDashboards.module.css
@@ -45,13 +45,13 @@
font-size: inherit !important;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
.ItemLink,
.CollectionLink {
:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/enterprise/frontend/src/metabase-enterprise/caching/components/StrategyFormLauncher.module.css b/enterprise/frontend/src/metabase-enterprise/caching/components/StrategyFormLauncher.module.css
index 35e42f9b4aa..ec95742a54d 100644
--- a/enterprise/frontend/src/metabase-enterprise/caching/components/StrategyFormLauncher.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/caching/components/StrategyFormLauncher.module.css
@@ -30,7 +30,7 @@
.token[data-variant="filled"],
.token[data-variant="outline"] {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
.token :global(.mantine-Button-inner) {
diff --git a/enterprise/frontend/src/metabase-enterprise/clean_up/CleanupCollectionModal/CleanupCollectionTable.tsx b/enterprise/frontend/src/metabase-enterprise/clean_up/CleanupCollectionModal/CleanupCollectionTable.tsx
index 06f3d7191d3..27f3659dfad 100644
--- a/enterprise/frontend/src/metabase-enterprise/clean_up/CleanupCollectionModal/CleanupCollectionTable.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/clean_up/CleanupCollectionModal/CleanupCollectionTable.tsx
@@ -107,7 +107,7 @@ export const CleanupCollectionTable = ({
{/* Name */}
<ItemCell data-testid="clean-up-table-collection">
<Flex align="center" gap="sm">
- <FixedSizeIcon name={getIcon(item).name} c="brand" />
+ <FixedSizeIcon name={getIcon(item).name} c="core-brand" />
<Ellipsified>{item.name}</Ellipsified>
</Flex>
</ItemCell>
diff --git a/enterprise/frontend/src/metabase-enterprise/content_translation/components/ContentTranslationConfiguration/ContentTranslationConfiguration.tsx b/enterprise/frontend/src/metabase-enterprise/content_translation/components/ContentTranslationConfiguration/ContentTranslationConfiguration.tsx
index 3c9004e6bec..a8c273db23e 100644
--- a/enterprise/frontend/src/metabase-enterprise/content_translation/components/ContentTranslationConfiguration/ContentTranslationConfiguration.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/content_translation/components/ContentTranslationConfiguration/ContentTranslationConfiguration.tsx
@@ -157,7 +157,7 @@ export const ContentTranslationConfiguration = () => {
onClick={triggerDownload}
leftSection={
showDownloadingIndicator ? null : (
- <Icon name="download" c="brand" />
+ <Icon name="download" c="core-brand" />
)
}
miw="calc(50% - 0.5rem)"
@@ -337,7 +337,7 @@ const UploadForm = ({
disabled={status === "pending"}
label={
<Group gap="sm">
- <Icon name="upload" c="brand" />
+ <Icon name="upload" c="core-brand" />
<Text
c="inherit"
fw="normal"
diff --git a/enterprise/frontend/src/metabase-enterprise/content_verification/VerifiedFilter/VerifiedToggle.tsx b/enterprise/frontend/src/metabase-enterprise/content_verification/VerifiedFilter/VerifiedToggle.tsx
index dfb4d36bd66..94964de2c11 100644
--- a/enterprise/frontend/src/metabase-enterprise/content_verification/VerifiedFilter/VerifiedToggle.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/content_verification/VerifiedFilter/VerifiedToggle.tsx
@@ -21,7 +21,7 @@ export const VerifiedToggle = ({
role="switch"
variant="viewHeader"
onClick={() => handleVerifiedFilterChange(!verified)}
- c={verified ? "brand" : "text-primary"}
+ c={verified ? "core-brand" : "text-primary"}
>
<Icon name="verified" />
</ActionIcon>
diff --git a/enterprise/frontend/src/metabase-enterprise/custom_viz/components/BundleDropzone.module.css b/enterprise/frontend/src/metabase-enterprise/custom_viz/components/BundleDropzone.module.css
index b0323e43a33..61c2c6bdcbf 100644
--- a/enterprise/frontend/src/metabase-enterprise/custom_viz/components/BundleDropzone.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/custom_viz/components/BundleDropzone.module.css
@@ -19,7 +19,7 @@
.dropzone:focus-visible,
.dropzone.dropzoneActive {
background-color: var(--mb-color-background-hover);
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
.dropzone.dropzoneError {
diff --git a/enterprise/frontend/src/metabase-enterprise/custom_viz/components/BundleDropzone.tsx b/enterprise/frontend/src/metabase-enterprise/custom_viz/components/BundleDropzone.tsx
index 0b35d9b13ca..6a779733dbb 100644
--- a/enterprise/frontend/src/metabase-enterprise/custom_viz/components/BundleDropzone.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/custom_viz/components/BundleDropzone.tsx
@@ -107,7 +107,7 @@ function DropHint({ isDragActive }: { isDragActive: boolean }) {
function SelectedFile({ file }: { file: File }) {
return (
<>
- <Icon name="document" size={24} c="brand" />
+ <Icon name="document" size={24} c="core-brand" />
<Text fw={500}>{file.name}</Text>
<Text c="text-secondary" size="sm">
{(file.size / 1024).toFixed(1)} KB
diff --git a/enterprise/frontend/src/metabase-enterprise/data-studio/library/components/CreateLibraryModal/CreateLibraryModal.tsx b/enterprise/frontend/src/metabase-enterprise/data-studio/library/components/CreateLibraryModal/CreateLibraryModal.tsx
index 4dac682e635..81af01771cb 100644
--- a/enterprise/frontend/src/metabase-enterprise/data-studio/library/components/CreateLibraryModal/CreateLibraryModal.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/data-studio/library/components/CreateLibraryModal/CreateLibraryModal.tsx
@@ -55,7 +55,7 @@ type ModalTitleProps = {
function ModalTitle({ title }: ModalTitleProps) {
return (
<Group gap="sm">
- <Center w="2rem" h="2rem" c="brand" bg="background-brand" bdrs="md">
+ <Center w="2rem" h="2rem" c="core-brand" bg="background-brand" bdrs="md">
<FixedSizeIcon name="repository" />
</Center>
<Title order={3}>{title}</Title>
diff --git a/enterprise/frontend/src/metabase-enterprise/data-studio/library/components/LibraryEmptyState/LibraryEmptyState.tsx b/enterprise/frontend/src/metabase-enterprise/data-studio/library/components/LibraryEmptyState/LibraryEmptyState.tsx
index 58b2808941a..2abd54e1bc6 100644
--- a/enterprise/frontend/src/metabase-enterprise/data-studio/library/components/LibraryEmptyState/LibraryEmptyState.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/data-studio/library/components/LibraryEmptyState/LibraryEmptyState.tsx
@@ -96,7 +96,7 @@ function FeatureCard({ icon, title, description }: FeatureCardProps) {
return (
<Paper bg="background-secondary" p="md" radius="8px" shadow="none">
<Group gap="sm" align="flex-start" wrap="nowrap">
- <Icon name={icon} size={16} c="brand" style={{ flexShrink: 0 }} />
+ <Icon name={icon} size={16} c="core-brand" style={{ flexShrink: 0 }} />
<Stack gap="xs">
<Text fw="bold" lh="1rem">
{title}
diff --git a/enterprise/frontend/src/metabase-enterprise/data-studio/library/tables/pages/TableOverviewPage/TableOverview/DescriptionSection/DescriptionSection.module.css b/enterprise/frontend/src/metabase-enterprise/data-studio/library/tables/pages/TableOverviewPage/TableOverview/DescriptionSection/DescriptionSection.module.css
index 5c537b40724..17ad125c33f 100644
--- a/enterprise/frontend/src/metabase-enterprise/data-studio/library/tables/pages/TableOverviewPage/TableOverview/DescriptionSection/DescriptionSection.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/data-studio/library/tables/pages/TableOverviewPage/TableOverview/DescriptionSection/DescriptionSection.module.css
@@ -19,7 +19,7 @@
}
&[data-position="left"] {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
}
@@ -72,6 +72,6 @@
.metricLink {
:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/enterprise/frontend/src/metabase-enterprise/data-studio/library/tables/pages/TableOverviewPage/TableOverview/DescriptionSection/DescriptionSection.tsx b/enterprise/frontend/src/metabase-enterprise/data-studio/library/tables/pages/TableOverviewPage/TableOverview/DescriptionSection/DescriptionSection.tsx
index 347b3846f5d..9d6c5821892 100644
--- a/enterprise/frontend/src/metabase-enterprise/data-studio/library/tables/pages/TableOverviewPage/TableOverview/DescriptionSection/DescriptionSection.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/data-studio/library/tables/pages/TableOverviewPage/TableOverview/DescriptionSection/DescriptionSection.tsx
@@ -190,7 +190,7 @@ export function DescriptionSection({ table }: DescriptionSectionProps) {
<Card mx="lg" bg="background-secondary" shadow="none" radius="1rem">
<Card.Section withBorder p="md">
<Group gap="sm" mb={4}>
- <Icon name="pencil" c="brand" />
+ <Icon name="pencil" c="core-brand" />
<Text size="md" fw={600} lh="1rem">
<DateTime value={table.updated_at} />
</Text>
@@ -201,7 +201,7 @@ export function DescriptionSection({ table }: DescriptionSectionProps) {
</Card.Section>
<Card.Section withBorder p="md">
<Group gap="sm" mb={4}>
- <Icon name="database" c="brand" />
+ <Icon name="database" c="core-brand" />
{table.db ? (
<Link to={Urls.dataStudioData({ databaseId: table.db.id })}>
<Text size="md" fw={600} lh="1rem">
@@ -222,7 +222,7 @@ export function DescriptionSection({ table }: DescriptionSectionProps) {
<Group gap="sm" mb={4}>
<Icon
name="refresh_downstream"
- c={table.data_source ? "brand" : "icon-secondary"}
+ c={table.data_source ? "core-brand" : "icon-secondary"}
/>
<DataSourceInput
@@ -249,7 +249,7 @@ export function DescriptionSection({ table }: DescriptionSectionProps) {
<Group gap="sm" mb={4}>
<Icon
name="person"
- c={isOwnerSpecified ? "brand" : "icon-secondary"}
+ c={isOwnerSpecified ? "core-brand" : "icon-secondary"}
/>
<UserInput
diff --git a/enterprise/frontend/src/metabase-enterprise/database_replication/DatabaseReplicationForm.tsx b/enterprise/frontend/src/metabase-enterprise/database_replication/DatabaseReplicationForm.tsx
index 0f855dad8ff..c99406f78ea 100644
--- a/enterprise/frontend/src/metabase-enterprise/database_replication/DatabaseReplicationForm.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/database_replication/DatabaseReplicationForm.tsx
@@ -220,7 +220,7 @@ export const DatabaseReplicationForm = ({
variant="subtle"
size="xs"
onClick={() => setShowNoSyncTables(!showNoSyncTables)}
- c="brand"
+ c="core-brand"
fz="md"
h="auto"
mt="xs"
@@ -234,7 +234,7 @@ export const DatabaseReplicationForm = ({
justify="flex-start"
wrap="nowrap"
>
- <Text span c="brand">
+ <Text span c="core-brand">
{showNoSyncTables
? t`Hide tables (${noSyncTables.length})`
: t`Show tables (${noSyncTables.length})`}
@@ -308,7 +308,7 @@ export const DatabaseReplicationForm = ({
onClick={() =>
setShowReplicatedTables(!showReplicatedTables)
}
- c="brand"
+ c="core-brand"
fz="md"
h="auto"
mt="xs"
@@ -322,7 +322,7 @@ export const DatabaseReplicationForm = ({
justify="flex-start"
wrap="nowrap"
>
- <Text span c="brand">
+ <Text span c="core-brand">
{showReplicatedTables
? t`Hide tables (${replicatedTables.length})`
: t`Show tables (${replicatedTables.length})`}
diff --git a/enterprise/frontend/src/metabase-enterprise/database_routing/DestinationDatabasesList/DestinationDatabasesList.tsx b/enterprise/frontend/src/metabase-enterprise/database_routing/DestinationDatabasesList/DestinationDatabasesList.tsx
index 2563d404792..16bf8f1e4c6 100644
--- a/enterprise/frontend/src/metabase-enterprise/database_routing/DestinationDatabasesList/DestinationDatabasesList.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/database_routing/DestinationDatabasesList/DestinationDatabasesList.tsx
@@ -57,7 +57,7 @@ export const DestinationDatabasesList = ({
{destinationDatabases.length > previewCount && (
<Text
component={Link}
- c="brand"
+ c="core-brand"
td="underline"
to={Urls.viewDestinationDatabases(primaryDatabaseId)}
>
diff --git a/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyDiagnostics/DiagnosticsSidebar/FieldsSection/FieldsSection.tsx b/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyDiagnostics/DiagnosticsSidebar/FieldsSection/FieldsSection.tsx
index 5b208f91cac..2a278ce33d0 100644
--- a/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyDiagnostics/DiagnosticsSidebar/FieldsSection/FieldsSection.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyDiagnostics/DiagnosticsSidebar/FieldsSection/FieldsSection.tsx
@@ -32,7 +32,7 @@ export function FieldsSection({ node }: FieldsSectionProps) {
return (
<Stack role="region" aria-label={t`Fields`}>
<Group gap="sm" wrap="nowrap">
- <Badge variant="filled" bg="brand">
+ <Badge variant="filled" bg="core-brand">
{fields.length}
</Badge>
<Title order={5}>{getNodeFieldsLabel(fields.length)}</Title>
@@ -59,7 +59,7 @@ function FieldListItem({ field }: FieldListItemProps) {
return (
<Stack className={S.item} p="md" gap="xs">
<Group gap="xs" wrap="nowrap">
- <FixedSizeIcon name={fieldIcon} c="brand" />
+ <FixedSizeIcon name={fieldIcon} c="core-brand" />
<Box className={CS.textWrap} lh="1rem">
{field.display_name}
</Box>
diff --git a/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyDiagnostics/DiagnosticsSidebar/SidebarHeader/SidebarHeader.module.css b/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyDiagnostics/DiagnosticsSidebar/SidebarHeader/SidebarHeader.module.css
index 9a839f16be9..5c3ac0c12c9 100644
--- a/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyDiagnostics/DiagnosticsSidebar/SidebarHeader/SidebarHeader.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyDiagnostics/DiagnosticsSidebar/SidebarHeader/SidebarHeader.module.css
@@ -2,7 +2,7 @@
color: var(--mb-color-text-primary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
text-decoration: none;
}
}
diff --git a/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphBreadcrumbs/GraphBreadcrumbs.module.css b/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphBreadcrumbs/GraphBreadcrumbs.module.css
index f8a8ed70182..90a84023937 100644
--- a/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphBreadcrumbs/GraphBreadcrumbs.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphBreadcrumbs/GraphBreadcrumbs.module.css
@@ -2,7 +2,7 @@
color: var(--mb-color-text-secondary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
text-decoration: none;
}
}
diff --git a/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphInfoPanel/PanelHeader/PanelHeader.tsx b/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphInfoPanel/PanelHeader/PanelHeader.tsx
index 49072724e5c..3286fa17e4b 100644
--- a/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphInfoPanel/PanelHeader/PanelHeader.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphInfoPanel/PanelHeader/PanelHeader.tsx
@@ -44,7 +44,7 @@ export function PanelHeader({ node, onClose }: PanelHeaderProps) {
<>
<Group className={S.root} p="lg" gap="0.75rem" wrap="nowrap">
<Center w="2.75rem" h="2.75rem" bdrs="50%" bg="background-secondary">
- <FixedSizeIcon name={getNodeIcon(node)} c="brand" size={20} />
+ <FixedSizeIcon name={getNodeIcon(node)} c="core-brand" size={20} />
</Center>
<Stack gap="xs" flex={1}>
<Title className={CS.textWrap} order={3} lh="1.5rem">
diff --git a/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphLink/GraphLink.module.css b/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphLink/GraphLink.module.css
index 9a839f16be9..5c3ac0c12c9 100644
--- a/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphLink/GraphLink.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphLink/GraphLink.module.css
@@ -2,7 +2,7 @@
color: var(--mb-color-text-primary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
text-decoration: none;
}
}
diff --git a/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphLink/GraphLink.tsx b/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphLink/GraphLink.tsx
index ebf67e4d34b..ab8a5363f73 100644
--- a/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphLink/GraphLink.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphLink/GraphLink.tsx
@@ -17,7 +17,7 @@ export function GraphLink({ label, icon, url }: GraphLinkProps) {
return (
<Box className={cx(S.link, CS.textWrap)} component={Link} to={url}>
<Group gap="sm" align="center" wrap="nowrap">
- <FixedSizeIcon name={icon} c="brand" />
+ <FixedSizeIcon name={icon} c="core-brand" />
<Box lh="h4">{label}</Box>
</Group>
</Box>
diff --git a/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphNode/GraphNode.module.css b/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphNode/GraphNode.module.css
index 3c2bbef1fa8..9780ca3cf51 100644
--- a/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphNode/GraphNode.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/dependencies/components/DependencyGraph/GraphNode/GraphNode.module.css
@@ -4,7 +4,7 @@
&:hover,
&.selected {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
}
@@ -24,6 +24,6 @@
&:hover,
&.selected {
color: var(--mb-color-white);
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
}
diff --git a/enterprise/frontend/src/metabase-enterprise/dependencies/utils.ts b/enterprise/frontend/src/metabase-enterprise/dependencies/utils.ts
index bb2f60ea119..66f5af77b1b 100644
--- a/enterprise/frontend/src/metabase-enterprise/dependencies/utils.ts
+++ b/enterprise/frontend/src/metabase-enterprise/dependencies/utils.ts
@@ -544,17 +544,17 @@ export function getDependencyGroupTypeInfo(
case "question":
return { label: t`Question`, color: "text-secondary" };
case "model":
- return { label: t`Model`, color: "brand" };
+ return { label: t`Model`, color: "core-brand" };
case "metric":
- return { label: t`Metric`, color: "summarize" };
+ return { label: t`Metric`, color: "core-summarize" };
case "table":
- return { label: t`Table`, color: "brand" };
+ return { label: t`Table`, color: "core-brand" };
case "transform":
return { label: t`Transform`, color: "warning" };
case "snippet":
return { label: t`Snippet`, color: "text-secondary" };
case "dashboard":
- return { label: t`Dashboard`, color: "filter" };
+ return { label: t`Dashboard`, color: "core-filter" };
case "document":
return { label: t`Document`, color: "text-secondary" };
case "sandbox":
@@ -562,7 +562,7 @@ export function getDependencyGroupTypeInfo(
case "segment":
return { label: t`Segment`, color: "accent2" };
case "measure":
- return { label: t`Measure`, color: "summarize" };
+ return { label: t`Measure`, color: "core-summarize" };
}
}
diff --git a/enterprise/frontend/src/metabase-enterprise/dependencies/utils.unit.spec.ts b/enterprise/frontend/src/metabase-enterprise/dependencies/utils.unit.spec.ts
index f4652944370..7ea9a2f0833 100644
--- a/enterprise/frontend/src/metabase-enterprise/dependencies/utils.unit.spec.ts
+++ b/enterprise/frontend/src/metabase-enterprise/dependencies/utils.unit.spec.ts
@@ -240,7 +240,7 @@ describe("getNodeTypeInfo", () => {
type: "model",
}),
}),
- expectedTypeInfo: { label: "Model", color: "brand" },
+ expectedTypeInfo: { label: "Model", color: "core-brand" },
},
{
node: createMockCardDependencyNode({
@@ -248,11 +248,11 @@ describe("getNodeTypeInfo", () => {
type: "metric",
}),
}),
- expectedTypeInfo: { label: "Metric", color: "summarize" },
+ expectedTypeInfo: { label: "Metric", color: "core-summarize" },
},
{
node: createMockTableDependencyNode(),
- expectedTypeInfo: { label: "Table", color: "brand" },
+ expectedTypeInfo: { label: "Table", color: "core-brand" },
},
{
node: createMockSnippetDependencyNode(),
@@ -633,12 +633,15 @@ describe("getDependencyGroupTypeInfo", () => {
groupType: "question",
expected: { label: "Question", color: "text-secondary" },
},
- { groupType: "model", expected: { label: "Model", color: "brand" } },
- { groupType: "metric", expected: { label: "Metric", color: "summarize" } },
- { groupType: "table", expected: { label: "Table", color: "brand" } },
+ { groupType: "model", expected: { label: "Model", color: "core-brand" } },
+ {
+ groupType: "metric",
+ expected: { label: "Metric", color: "core-summarize" },
+ },
+ { groupType: "table", expected: { label: "Table", color: "core-brand" } },
{
groupType: "dashboard",
- expected: { label: "Dashboard", color: "filter" },
+ expected: { label: "Dashboard", color: "core-filter" },
},
{
groupType: "sandbox",
diff --git a/enterprise/frontend/src/metabase-enterprise/google_drive/GdriveConnectionModal.tsx b/enterprise/frontend/src/metabase-enterprise/google_drive/GdriveConnectionModal.tsx
index 8053e4e65e1..050c0106f56 100644
--- a/enterprise/frontend/src/metabase-enterprise/google_drive/GdriveConnectionModal.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/google_drive/GdriveConnectionModal.tsx
@@ -140,7 +140,7 @@ function GoogleSheetsConnectModal({
<SegmentedControl<UploadType>
fullWidth
autoContrast
- color="brand"
+ color="core-brand"
c="text-primary-inverse"
value={linkType}
onChange={setLinkType}
diff --git a/enterprise/frontend/src/metabase-enterprise/group_managers/components/UserTypeCell/UserTypeCell.tsx b/enterprise/frontend/src/metabase-enterprise/group_managers/components/UserTypeCell/UserTypeCell.tsx
index f84f0d9b1be..ee9d63e1133 100644
--- a/enterprise/frontend/src/metabase-enterprise/group_managers/components/UserTypeCell/UserTypeCell.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/group_managers/components/UserTypeCell/UserTypeCell.tsx
@@ -44,7 +44,7 @@ export const UserTypeCell = ({
<Box
component="button"
className={S.changeButton}
- c="filter"
+ c="core-filter"
px="xs"
py={0}
>
diff --git a/enterprise/frontend/src/metabase-enterprise/group_managers/components/UserTypeToggle/UserTypeToggle.tsx b/enterprise/frontend/src/metabase-enterprise/group_managers/components/UserTypeToggle/UserTypeToggle.tsx
index 01308b75b33..300777c3917 100644
--- a/enterprise/frontend/src/metabase-enterprise/group_managers/components/UserTypeToggle/UserTypeToggle.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/group_managers/components/UserTypeToggle/UserTypeToggle.tsx
@@ -28,7 +28,7 @@ export const UserTypeToggle = ({
<Box
component="button"
className={S.toggle}
- c="filter"
+ c="core-filter"
px="sm"
py={0}
aria-label={tooltipText}
diff --git a/enterprise/frontend/src/metabase-enterprise/license/components/BillingInfo/BillingInfo.module.css b/enterprise/frontend/src/metabase-enterprise/license/components/BillingInfo/BillingInfo.module.css
index 2343cc881a9..39f5805d239 100644
--- a/enterprise/frontend/src/metabase-enterprise/license/components/BillingInfo/BillingInfo.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/license/components/BillingInfo/BillingInfo.module.css
@@ -7,5 +7,5 @@
.link {
display: inline-flex;
align-items: center;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
diff --git a/enterprise/frontend/src/metabase-enterprise/moderation/constants.ts b/enterprise/frontend/src/metabase-enterprise/moderation/constants.ts
index d2cba2afcc4..d193551d201 100644
--- a/enterprise/frontend/src/metabase-enterprise/moderation/constants.ts
+++ b/enterprise/frontend/src/metabase-enterprise/moderation/constants.ts
@@ -12,12 +12,12 @@ export const MODERATION_STATUS_ICONS: Map<
MODERATION_STATUS_ICONS.set("verified", {
name: "verified",
- color: "brand",
+ color: "core-brand",
});
MODERATION_STATUS_ICONS.set("verified_filled", {
name: "verified_filled",
- color: "brand",
+ color: "core-brand",
});
MODERATION_STATUS_ICONS.set(null, {
diff --git a/enterprise/frontend/src/metabase-enterprise/moderation/service.unit.spec.ts b/enterprise/frontend/src/metabase-enterprise/moderation/service.unit.spec.ts
index 6df50f84981..c60548c9f87 100644
--- a/enterprise/frontend/src/metabase-enterprise/moderation/service.unit.spec.ts
+++ b/enterprise/frontend/src/metabase-enterprise/moderation/service.unit.spec.ts
@@ -74,7 +74,7 @@ describe("moderation/service", () => {
it("should return an icon if there is a matching status", () => {
expect(getStatusIcon("verified")).toEqual({
name: "verified",
- color: "brand",
+ color: "core-brand",
});
});
diff --git a/enterprise/frontend/src/metabase-enterprise/remote_sync/components/ChangesLists/EntityLink.module.css b/enterprise/frontend/src/metabase-enterprise/remote_sync/components/ChangesLists/EntityLink.module.css
index f820dfcaeb9..8129db33e2d 100644
--- a/enterprise/frontend/src/metabase-enterprise/remote_sync/components/ChangesLists/EntityLink.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/remote_sync/components/ChangesLists/EntityLink.module.css
@@ -1,5 +1,5 @@
.entityLink:hover .icon,
.entityLink:hover .anchor,
.entityLink:has(.anchor:hover) .icon {
- color: var(--mb-color-brand) !important;
+ color: var(--mb-color-core-brand) !important;
}
diff --git a/enterprise/frontend/src/metabase-enterprise/remote_sync/components/GitSyncSetupMenuItem/GitSyncSetupMenuItem.module.css b/enterprise/frontend/src/metabase-enterprise/remote_sync/components/GitSyncSetupMenuItem/GitSyncSetupMenuItem.module.css
index da8d36060ee..68714c79023 100644
--- a/enterprise/frontend/src/metabase-enterprise/remote_sync/components/GitSyncSetupMenuItem/GitSyncSetupMenuItem.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/remote_sync/components/GitSyncSetupMenuItem/GitSyncSetupMenuItem.module.css
@@ -11,7 +11,7 @@
&:hover {
background-color: var(--mb-color-background-hover);
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
.icon {
color: inherit;
diff --git a/enterprise/frontend/src/metabase-enterprise/remote_sync/components/PushChangesModal/PushChangesModal.tsx b/enterprise/frontend/src/metabase-enterprise/remote_sync/components/PushChangesModal/PushChangesModal.tsx
index 1e6b6d44e90..e36004a94a6 100644
--- a/enterprise/frontend/src/metabase-enterprise/remote_sync/components/PushChangesModal/PushChangesModal.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/remote_sync/components/PushChangesModal/PushChangesModal.tsx
@@ -106,7 +106,7 @@ export const PushChangesModal = ({
{t`Cancel`}
</Button>
<Button
- color="brand"
+ color="core-brand"
disabled={isPushing}
leftSection={<Icon name="upload" />}
loading={isPushing}
diff --git a/enterprise/frontend/src/metabase-enterprise/remote_sync/components/RemoteSyncAdminSettings/DevInstanceUpsell.tsx b/enterprise/frontend/src/metabase-enterprise/remote_sync/components/RemoteSyncAdminSettings/DevInstanceUpsell.tsx
index 5907f182539..0155dabd036 100644
--- a/enterprise/frontend/src/metabase-enterprise/remote_sync/components/RemoteSyncAdminSettings/DevInstanceUpsell.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/remote_sync/components/RemoteSyncAdminSettings/DevInstanceUpsell.tsx
@@ -15,7 +15,7 @@ export const DevInstanceUpsell = UpsellWrapperDismissible(
);
return (
<Alert
- color="brand"
+ color="core-brand"
withCloseButton
onClose={onDismiss}
classNames={{ closeButton: CS.alignSelfStart }}
diff --git a/enterprise/frontend/src/metabase-enterprise/remote_sync/components/SyncConflictModal/SyncConflictModal.tsx b/enterprise/frontend/src/metabase-enterprise/remote_sync/components/SyncConflictModal/SyncConflictModal.tsx
index 2baa9fabd76..bc775dccdd0 100644
--- a/enterprise/frontend/src/metabase-enterprise/remote_sync/components/SyncConflictModal/SyncConflictModal.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/remote_sync/components/SyncConflictModal/SyncConflictModal.tsx
@@ -164,7 +164,7 @@ export const SyncConflictModal = (props: UnsyncedWarningModalProps) => {
{t`Cancel`}
</Button>
<Button
- color={optionValue === "discard" ? "error" : "brand"}
+ color={optionValue === "discard" ? "error" : "core-brand"}
disabled={isButtonDisabled}
leftSection={
optionValue === "force-push" ? <Icon name="warning" /> : undefined
diff --git a/enterprise/frontend/src/metabase-enterprise/replacement/components/SourceReplacementModal/ModalSidebar/EntitySection/EntitySection.tsx b/enterprise/frontend/src/metabase-enterprise/replacement/components/SourceReplacementModal/ModalSidebar/EntitySection/EntitySection.tsx
index a0748cc76a3..255df2ca139 100644
--- a/enterprise/frontend/src/metabase-enterprise/replacement/components/SourceReplacementModal/ModalSidebar/EntitySection/EntitySection.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/replacement/components/SourceReplacementModal/ModalSidebar/EntitySection/EntitySection.tsx
@@ -13,7 +13,7 @@ export function EntitySection({ icon, error, children }: EntitySectionProps) {
<Card px="md" py="lg" withBorder shadow="none">
<Group align="start" wrap="nowrap">
<Box p="sm" bg="background-brand" bdrs="md">
- <FixedSizeIcon c="brand" name={icon} />
+ <FixedSizeIcon c="core-brand" name={icon} />
</Box>
<Stack gap="sm" miw={0}>
{children}
diff --git a/enterprise/frontend/src/metabase-enterprise/replacement/pages/MigrateModelsPage/ModelSidebar/DependentsSection/DependentsSection.tsx b/enterprise/frontend/src/metabase-enterprise/replacement/pages/MigrateModelsPage/ModelSidebar/DependentsSection/DependentsSection.tsx
index 3822bffd50d..01ef2fe6941 100644
--- a/enterprise/frontend/src/metabase-enterprise/replacement/pages/MigrateModelsPage/ModelSidebar/DependentsSection/DependentsSection.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/replacement/pages/MigrateModelsPage/ModelSidebar/DependentsSection/DependentsSection.tsx
@@ -54,7 +54,7 @@ export function DependentsSection({ cardId }: DependentsSectionProps) {
<Stack role="region" aria-label={label}>
<Group justify="space-between" wrap="nowrap">
<Group gap="sm" wrap="nowrap">
- <Badge variant="filled" bg="brand">
+ <Badge variant="filled" bg="core-brand">
{allDependents.length}
</Badge>
<Title order={5}>{label}</Title>
diff --git a/enterprise/frontend/src/metabase-enterprise/replacement/pages/MigrateModelsPage/ModelSidebar/SidebarHeader/SidebarHeader.module.css b/enterprise/frontend/src/metabase-enterprise/replacement/pages/MigrateModelsPage/ModelSidebar/SidebarHeader/SidebarHeader.module.css
index 9a839f16be9..5c3ac0c12c9 100644
--- a/enterprise/frontend/src/metabase-enterprise/replacement/pages/MigrateModelsPage/ModelSidebar/SidebarHeader/SidebarHeader.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/replacement/pages/MigrateModelsPage/ModelSidebar/SidebarHeader/SidebarHeader.module.css
@@ -2,7 +2,7 @@
color: var(--mb-color-text-primary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
text-decoration: none;
}
}
diff --git a/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/Edge/SchemaViewerEdge.tsx b/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/Edge/SchemaViewerEdge.tsx
index 62b558f296f..110715c9d44 100644
--- a/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/Edge/SchemaViewerEdge.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/Edge/SchemaViewerEdge.tsx
@@ -65,7 +65,7 @@ export const SchemaViewerEdge = memo(function SchemaViewerEdge(
const relationship = props.data?.relationship ?? "many-to-one";
const symbols = useMemo(() => getSymbolTypes(relationship), [relationship]);
const stroke = selected
- ? (palette.brand ?? "var(--mb-color-brand)")
+ ? (palette.brand ?? "var(--mb-color-core-brand)")
: (palette["border-strong"] ?? "var(--mb-color-border-strong)");
const strokeWidth = selected ? 2 : 1;
diff --git a/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/SelectedNodeInfoPanel/InfoPanelField.tsx b/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/SelectedNodeInfoPanel/InfoPanelField.tsx
index 8e7c7cc5b0e..80ece8bcb11 100644
--- a/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/SelectedNodeInfoPanel/InfoPanelField.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/SelectedNodeInfoPanel/InfoPanelField.tsx
@@ -62,7 +62,7 @@ export function InfoPanelField({
>
<UnstyledButton
className={S.fkLink}
- c="brand"
+ c="core-brand"
disabled={isExpanding}
onClick={onFetchExternal}
flex="0 1 auto"
@@ -91,7 +91,7 @@ export function InfoPanelField({
</Text>
<UnstyledButton
className={S.fkLink}
- c="brand"
+ c="core-brand"
onClick={() => onZoomToNode(targetNode.id)}
>
<Group align="end" gap={4} flex="0 0 auto" wrap="nowrap" w="100%">
diff --git a/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/SelectedNodeInfoPanel/PanelHeader/PanelHeader.module.css b/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/SelectedNodeInfoPanel/PanelHeader/PanelHeader.module.css
index d911df0e597..1137cac673f 100644
--- a/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/SelectedNodeInfoPanel/PanelHeader/PanelHeader.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/SelectedNodeInfoPanel/PanelHeader/PanelHeader.module.css
@@ -14,7 +14,7 @@
color: var(--mb-color-text-secondary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
text-decoration: none;
}
}
diff --git a/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/SelectedNodeInfoPanel/PanelHeader/PanelHeader.tsx b/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/SelectedNodeInfoPanel/PanelHeader/PanelHeader.tsx
index 329eaa04334..af41c6dcb6c 100644
--- a/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/SelectedNodeInfoPanel/PanelHeader/PanelHeader.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/SelectedNodeInfoPanel/PanelHeader/PanelHeader.tsx
@@ -52,7 +52,7 @@ export function PanelHeader({
return (
<Group className={S.root} p="lg" gap="0.75rem" wrap="nowrap">
<Center w="2.75rem" h="2.75rem" bdrs="50%" bg="background-secondary">
- <FixedSizeIcon name="table" c="brand" size={20} />
+ <FixedSizeIcon name="table" c="core-brand" size={20} />
</Center>
<Stack gap="xs" flex={1}>
{onTitleClick != null ? (
diff --git a/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/TableNode/SchemaViewerFieldRow.module.css b/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/TableNode/SchemaViewerFieldRow.module.css
index 1b9dff92432..5db0c22fd83 100644
--- a/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/TableNode/SchemaViewerFieldRow.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/TableNode/SchemaViewerFieldRow.module.css
@@ -13,7 +13,7 @@
&[data-clickable] .icon,
&[data-clickable] .clickableName {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/TableNode/SchemaViewerFieldRow.tsx b/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/TableNode/SchemaViewerFieldRow.tsx
index 333a1994a10..4a35fa075f5 100644
--- a/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/TableNode/SchemaViewerFieldRow.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/TableNode/SchemaViewerFieldRow.tsx
@@ -130,7 +130,7 @@ export function SchemaViewerFieldRow({
<FixedSizeIcon
name={icon}
size={16}
- c={isSelectedInEdge ? "brand" : undefined}
+ c={isSelectedInEdge ? "core-brand" : undefined}
className={isSelectedInEdge ? undefined : S.icon}
style={{ flexShrink: 0 }}
/>
@@ -138,7 +138,7 @@ export function SchemaViewerFieldRow({
className={cx(S.name, { [S.clickableName]: isClickable })}
fz="sm"
fw={isSelectedInEdge ? "bold" : "normal"}
- c={isSelectedInEdge ? "brand" : undefined}
+ c={isSelectedInEdge ? "core-brand" : undefined}
>
{field.name}
</Box>
diff --git a/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/TableNode/SchemaViewerTableNode.module.css b/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/TableNode/SchemaViewerTableNode.module.css
index 86bccf4f5bb..54e2be7b823 100644
--- a/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/TableNode/SchemaViewerTableNode.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/schema_viewer/components/SchemaViewer/components/TableNode/SchemaViewerTableNode.module.css
@@ -10,7 +10,7 @@
}
.card.selected {
- --node-border-color: var(--mb-color-brand);
+ --node-border-color: var(--mb-color-core-brand);
}
.header {
diff --git a/enterprise/frontend/src/metabase-enterprise/security_center/components/SecurityCenterPromoCard/SecurityCenterPromoCard.tsx b/enterprise/frontend/src/metabase-enterprise/security_center/components/SecurityCenterPromoCard/SecurityCenterPromoCard.tsx
index 76fa9674c6b..72d2b0f7add 100644
--- a/enterprise/frontend/src/metabase-enterprise/security_center/components/SecurityCenterPromoCard/SecurityCenterPromoCard.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/security_center/components/SecurityCenterPromoCard/SecurityCenterPromoCard.tsx
@@ -70,7 +70,7 @@ export function SecurityCenterPromoCard() {
name="shield_stroke"
height={24}
width={24}
- style={{ stroke: "var(--mb-color-brand)", fill: "transparent" }}
+ style={{ stroke: "var(--mb-color-core-brand)", fill: "transparent" }}
/>
}
title={t`Stay safe with security alerts`}
diff --git a/enterprise/frontend/src/metabase-enterprise/smtp-override/components/CloudSMTPConnectionCard.module.css b/enterprise/frontend/src/metabase-enterprise/smtp-override/components/CloudSMTPConnectionCard.module.css
index f348286d586..923425fd107 100644
--- a/enterprise/frontend/src/metabase-enterprise/smtp-override/components/CloudSMTPConnectionCard.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/smtp-override/components/CloudSMTPConnectionCard.module.css
@@ -10,7 +10,7 @@
padding-left: 0.75rem;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/enterprise/frontend/src/metabase-enterprise/table-editing/table-edit/EditTableDataFilterButton.module.css b/enterprise/frontend/src/metabase-enterprise/table-editing/table-edit/EditTableDataFilterButton.module.css
index d159242c011..779ccd4bdc9 100644
--- a/enterprise/frontend/src/metabase-enterprise/table-editing/table-edit/EditTableDataFilterButton.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/table-editing/table-edit/EditTableDataFilterButton.module.css
@@ -5,10 +5,10 @@
transition: background 300ms linear;
&:hover {
- color: var(--mb-color-filter);
+ color: var(--mb-color-core-filter);
background-color: color-mix(
in srgb,
- var(--mb-color-filter) 10%,
+ var(--mb-color-core-filter) 10%,
var(--mb-color-white)
);
}
@@ -23,7 +23,7 @@
&:hover {
background-color: color-mix(
in srgb,
- var(--mb-color-filter) 10%,
+ var(--mb-color-core-filter) 10%,
var(--mb-color-white)
);
}
@@ -32,7 +32,7 @@
&[data-expanded="true"] {
.FilterCountChip {
color: var(--mb-color-text-selected);
- background-color: var(--mb-color-filter);
+ background-color: var(--mb-color-core-filter);
}
}
}
@@ -46,7 +46,7 @@
color: var(--mb-color-text-primary);
background-color: color-mix(
in srgb,
- var(--mb-color-filter) 15%,
+ var(--mb-color-core-filter) 15%,
var(--mb-color-white)
);
}
diff --git a/enterprise/frontend/src/metabase-enterprise/table-editing/table-edit/EditTableDataOverlay.module.css b/enterprise/frontend/src/metabase-enterprise/table-editing/table-edit/EditTableDataOverlay.module.css
index 2bc54d7049b..b006ef980a8 100644
--- a/enterprise/frontend/src/metabase-enterprise/table-editing/table-edit/EditTableDataOverlay.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/table-editing/table-edit/EditTableDataOverlay.module.css
@@ -11,7 +11,7 @@
justify-content: center;
align-items: center;
gap: 1.5rem;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: color-mix(
in srgb,
var(--mb-color-background-primary) 75%,
@@ -25,5 +25,5 @@
.message {
font-size: 1.25rem;
font-weight: 700;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
diff --git a/enterprise/frontend/src/metabase-enterprise/table-editing/table-edit/data-grid/EditTableDataGrid.module.css b/enterprise/frontend/src/metabase-enterprise/table-editing/table-edit/data-grid/EditTableDataGrid.module.css
index a189a333f8b..a7207ce57d1 100644
--- a/enterprise/frontend/src/metabase-enterprise/table-editing/table-edit/data-grid/EditTableDataGrid.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/table-editing/table-edit/data-grid/EditTableDataGrid.module.css
@@ -32,7 +32,7 @@
background-color: var(--cell-bg-color);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
@@ -60,7 +60,7 @@
.pencilIcon {
cursor: pointer;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
visibility: hidden;
}
diff --git a/enterprise/frontend/src/metabase-enterprise/tenants/EditUserStrategyModal/EditUserStrategyModal.module.css b/enterprise/frontend/src/metabase-enterprise/tenants/EditUserStrategyModal/EditUserStrategyModal.module.css
index 3a7f76c1c97..2394e1a38c3 100644
--- a/enterprise/frontend/src/metabase-enterprise/tenants/EditUserStrategyModal/EditUserStrategyModal.module.css
+++ b/enterprise/frontend/src/metabase-enterprise/tenants/EditUserStrategyModal/EditUserStrategyModal.module.css
@@ -4,9 +4,9 @@
}
.radioCard[data-checked] {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
.radioCard[data-checked] .radioCardTitle {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
diff --git a/enterprise/frontend/src/metabase-enterprise/tenants/components/TenantsListing/TenantsListing.tsx b/enterprise/frontend/src/metabase-enterprise/tenants/components/TenantsListing/TenantsListing.tsx
index e4888a3ccde..fff9cfd0390 100644
--- a/enterprise/frontend/src/metabase-enterprise/tenants/components/TenantsListing/TenantsListing.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/tenants/components/TenantsListing/TenantsListing.tsx
@@ -103,7 +103,7 @@ export const TenantsListing = ({
user={{ first_name: tenant.name }}
bg={tenantIdToColor(tenant.id)}
/>
- <Box component="span" fw={700} c="brand">
+ <Box component="span" fw={700} c="core-brand">
{tenant.name}
</Box>
</Flex>
diff --git a/enterprise/frontend/src/metabase-enterprise/tenants/utils/colors.ts b/enterprise/frontend/src/metabase-enterprise/tenants/utils/colors.ts
index 1153a352658..025413204df 100644
--- a/enterprise/frontend/src/metabase-enterprise/tenants/utils/colors.ts
+++ b/enterprise/frontend/src/metabase-enterprise/tenants/utils/colors.ts
@@ -4,7 +4,7 @@ import type { Tenant } from "metabase-types/api";
const groupColorPalette = [
color("error"),
color("accent2"),
- color("brand"),
+ color("core-brand"),
color("accent4"),
color("accent1"),
];
diff --git a/enterprise/frontend/src/metabase-enterprise/transforms-inspector/pages/TransformInspectPage/TransformInspectPage.tsx b/enterprise/frontend/src/metabase-enterprise/transforms-inspector/pages/TransformInspectPage/TransformInspectPage.tsx
index 2d8bdbd63d4..96c5f0c78e8 100644
--- a/enterprise/frontend/src/metabase-enterprise/transforms-inspector/pages/TransformInspectPage/TransformInspectPage.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/transforms-inspector/pages/TransformInspectPage/TransformInspectPage.tsx
@@ -38,7 +38,7 @@ export const TransformInspectPage = ({
<TransformHeader transform={transform} />
{transform.last_run?.status !== "succeeded" ? (
<>
- <Alert color="brand" icon={<Icon name="info" />}>
+ <Alert color="core-brand" icon={<Icon name="info" />}>
<Text>{t`To inspect the transform you need to run it first.`}</Text>
</Alert>
<RunSection transform={transform} noTitle={true} />
diff --git a/enterprise/frontend/src/metabase-enterprise/transforms-inspector/pages/TransformInspectPage/components/CardAlerts.tsx b/enterprise/frontend/src/metabase-enterprise/transforms-inspector/pages/TransformInspectPage/components/CardAlerts.tsx
index d710284c179..62f023ba101 100644
--- a/enterprise/frontend/src/metabase-enterprise/transforms-inspector/pages/TransformInspectPage/components/CardAlerts.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/transforms-inspector/pages/TransformInspectPage/components/CardAlerts.tsx
@@ -29,7 +29,7 @@ export const CardAlerts = ({ alerts, fullWidth }: CardAlertsProps) => {
color={match(alert.severity)
.with("error", () => "error" as const)
.with("warning", () => "warning" as const)
- .otherwise(() => "brand" as const)}
+ .otherwise(() => "core-brand" as const)}
variant="light"
>
{alert.message}
diff --git a/enterprise/frontend/src/metabase-enterprise/transforms-inspector/pages/TransformInspectPage/components/DrillButton.tsx b/enterprise/frontend/src/metabase-enterprise/transforms-inspector/pages/TransformInspectPage/components/DrillButton.tsx
index 42f416138b7..f19605b9574 100644
--- a/enterprise/frontend/src/metabase-enterprise/transforms-inspector/pages/TransformInspectPage/components/DrillButton.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/transforms-inspector/pages/TransformInspectPage/components/DrillButton.tsx
@@ -15,8 +15,8 @@ export function DrillButton({
}}
>
<Flex gap="xs" align="center">
- <Icon name="zoom_in" c="brand" />
- <Text c="brand">{children}</Text>
+ <Icon name="zoom_in" c="core-brand" />
+ <Text c="core-brand">{children}</Text>
</Flex>
</UnstyledButton>
);
diff --git a/enterprise/frontend/src/metabase-enterprise/transforms-inspector/pages/TransformInspectPage/components/LensSections/JoinAnalysisSections/components/JoinNameCell.tsx b/enterprise/frontend/src/metabase-enterprise/transforms-inspector/pages/TransformInspectPage/components/LensSections/JoinAnalysisSections/components/JoinNameCell.tsx
index 0787eaf2e4b..6ed0b635b59 100644
--- a/enterprise/frontend/src/metabase-enterprise/transforms-inspector/pages/TransformInspectPage/components/LensSections/JoinAnalysisSections/components/JoinNameCell.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/transforms-inspector/pages/TransformInspectPage/components/LensSections/JoinAnalysisSections/components/JoinNameCell.tsx
@@ -28,7 +28,7 @@ export const JoinNameCell = ({
.with("inner-join", () => "join_inner" as const)
.with("full-join", () => "join_full_outer" as const)
.otherwise(() => "join_left_outer" as const)}
- c="brand"
+ c="core-brand"
/>
</Tooltip>
<Ellipsified>{joinAlias}</Ellipsified>
diff --git a/enterprise/frontend/src/metabase-enterprise/transforms-python/upsells/PythonTransformsUpsellModal/PythonTransformsUpsellModal.tsx b/enterprise/frontend/src/metabase-enterprise/transforms-python/upsells/PythonTransformsUpsellModal/PythonTransformsUpsellModal.tsx
index ae34e9ff4ef..10762c54d3c 100644
--- a/enterprise/frontend/src/metabase-enterprise/transforms-python/upsells/PythonTransformsUpsellModal/PythonTransformsUpsellModal.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/transforms-python/upsells/PythonTransformsUpsellModal/PythonTransformsUpsellModal.tsx
@@ -115,7 +115,7 @@ export function PythonTransformsUpsell({
{bulletPoints.map((point) => (
<Flex direction="row" gap="sm" key={point}>
<Center w={24} h={24} flex="0 0 auto">
- <Icon name="check_filled" size={16} c="brand" />
+ <Icon name="check_filled" size={16} c="core-brand" />
</Center>
<Text c="text-secondary" lh="lg">
{point}
diff --git a/enterprise/frontend/src/metabase-enterprise/transforms/upsells/components/TransformsSettingUpModal.tsx b/enterprise/frontend/src/metabase-enterprise/transforms/upsells/components/TransformsSettingUpModal.tsx
index cba7c3d43f1..cc4d9ed8cba 100644
--- a/enterprise/frontend/src/metabase-enterprise/transforms/upsells/components/TransformsSettingUpModal.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/transforms/upsells/components/TransformsSettingUpModal.tsx
@@ -52,7 +52,7 @@ export const TransformsSettingUpModal = ({
bg="background-secondary"
style={{ borderRadius: "50%" }}
>
- <Icon name="table2" size={48} c="brand" />
+ <Icon name="table2" size={48} c="core-brand" />
</Flex>
{isSettingUp && (
diff --git a/enterprise/frontend/src/metabase-enterprise/user_provisioning/components/UserProvisioningModals.tsx b/enterprise/frontend/src/metabase-enterprise/user_provisioning/components/UserProvisioningModals.tsx
index 748eff1fa38..83311e7370f 100644
--- a/enterprise/frontend/src/metabase-enterprise/user_provisioning/components/UserProvisioningModals.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/user_provisioning/components/UserProvisioningModals.tsx
@@ -99,7 +99,7 @@ export const UserProvisioningRegenerateTokenModal = ({
// eslint-disable-next-line metabase/no-literal-metabase-strings -- admin settings
message={t`This will delete the existing token. You'll need to update your identity provider with the new token, otherwise people won't be able to log in to your Metabase.`}
confirmButtonText={t`Regenerate now`}
- confirmButtonProps={{ variant: "filled", color: "brand" }}
+ confirmButtonProps={{ variant: "filled", color: "core-brand" }}
onConfirm={handleConfirmRegenerate}
/>
);
diff --git a/enterprise/frontend/src/metabase-enterprise/whitelabel/components/ColorSettings/ColorSettings.unit.spec.tsx b/enterprise/frontend/src/metabase-enterprise/whitelabel/components/ColorSettings/ColorSettings.unit.spec.tsx
index b26c6322a86..f1db2a8f59c 100644
--- a/enterprise/frontend/src/metabase-enterprise/whitelabel/components/ColorSettings/ColorSettings.unit.spec.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/whitelabel/components/ColorSettings/ColorSettings.unit.spec.tsx
@@ -14,7 +14,7 @@ describe("ColorSettings", () => {
const textLightHex = Color(color("text-tertiary", staticVizOverrides)).hex();
const initialColors = {
- brand: color("filter"),
+ brand: color("core-filter"),
accent1: textMediumHex,
};
@@ -29,12 +29,14 @@ describe("ColorSettings", () => {
/>,
);
- const input = screen.getByPlaceholderText(Color(color("summarize")).hex());
+ const input = screen.getByPlaceholderText(
+ Color(color("core-summarize")).hex(),
+ );
await userEvent.clear(input);
await userEvent.type(input, color("error"));
expect(onChange).toHaveBeenLastCalledWith({
- brand: color("filter"),
+ brand: color("core-filter"),
/* Needs to convert this to hex because the input is transform to hex,
* but we want to use hsla for our new colors, this is to allow better text search. */
summarize: Color(color("error")).hex(),
@@ -58,7 +60,7 @@ describe("ColorSettings", () => {
await userEvent.type(input, textLightHex);
expect(onChange).toHaveBeenLastCalledWith({
- brand: color("filter"),
+ brand: color("core-filter"),
accent1: textLightHex,
});
});
@@ -78,7 +80,7 @@ describe("ColorSettings", () => {
await userEvent.click(screen.getByText("Reset"));
expect(onChange).toHaveBeenLastCalledWith({
- brand: color("filter"),
+ brand: color("core-filter"),
});
});
@@ -96,7 +98,7 @@ describe("ColorSettings", () => {
await userEvent.click(screen.getByText("Generate chart colors"));
expect(onChange).toHaveBeenLastCalledWith({
- brand: color("filter"),
+ brand: color("core-filter"),
accent0: expect.any(String),
accent1: textMediumHex,
accent2: expect.any(String),
diff --git a/enterprise/frontend/src/metabase-enterprise/workspaces/pages/WorkspaceListPage/WorkspaceEmptyState/WorkspaceEmptyState.tsx b/enterprise/frontend/src/metabase-enterprise/workspaces/pages/WorkspaceListPage/WorkspaceEmptyState/WorkspaceEmptyState.tsx
index ce1ad1f58e4..f8bea083445 100644
--- a/enterprise/frontend/src/metabase-enterprise/workspaces/pages/WorkspaceListPage/WorkspaceEmptyState/WorkspaceEmptyState.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/workspaces/pages/WorkspaceListPage/WorkspaceEmptyState/WorkspaceEmptyState.tsx
@@ -112,7 +112,7 @@ function DocsLink({ title, description, link }: DocsLinkProps) {
miw="16rem"
>
<Group gap="sm" wrap="nowrap" align="flex-start">
- <FixedSizeIcon c="brand" name="reference" />
+ <FixedSizeIcon c="core-brand" name="reference" />
<Stack gap="xs">
<Title order={5}>{title}</Title>
<Box c="text-secondary">{description}</Box>
diff --git a/frontend/src/embedding-sdk-bundle/components/private/SdkInternalNavigation/SdkInternalNavigationBackButton.module.css b/frontend/src/embedding-sdk-bundle/components/private/SdkInternalNavigation/SdkInternalNavigationBackButton.module.css
index 523507eadd1..603e7b56c3e 100644
--- a/frontend/src/embedding-sdk-bundle/components/private/SdkInternalNavigation/SdkInternalNavigationBackButton.module.css
+++ b/frontend/src/embedding-sdk-bundle/components/private/SdkInternalNavigation/SdkInternalNavigationBackButton.module.css
@@ -1,5 +1,5 @@
.backButton:not([data-css-specificity-hack]) {
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/embedding-sdk-bundle/components/private/SdkQuestion/components/util/BadgeList/BadgeListItem/BadgeListItem.module.css b/frontend/src/embedding-sdk-bundle/components/private/SdkQuestion/components/util/BadgeList/BadgeListItem/BadgeListItem.module.css
index 28f4e8cec20..f7c4d86da76 100644
--- a/frontend/src/embedding-sdk-bundle/components/private/SdkQuestion/components/util/BadgeList/BadgeListItem/BadgeListItem.module.css
+++ b/frontend/src/embedding-sdk-bundle/components/private/SdkQuestion/components/util/BadgeList/BadgeListItem/BadgeListItem.module.css
@@ -1,5 +1,5 @@
.BadgeListItem:not([data-css-specificity-hack]) {
- background: color-mix(in srgb, var(--mb-color-brand) 20%, transparent);
+ background: color-mix(in srgb, var(--mb-color-core-brand) 20%, transparent);
.BadgeListRemoveButton:hover {
background: transparent;
diff --git a/frontend/src/embedding-sdk-bundle/components/private/SdkQuestion/components/util/SdkActionIcon/SdkActionIcon.module.css b/frontend/src/embedding-sdk-bundle/components/private/SdkQuestion/components/util/SdkActionIcon/SdkActionIcon.module.css
index b42df695be4..4880435a661 100644
--- a/frontend/src/embedding-sdk-bundle/components/private/SdkQuestion/components/util/SdkActionIcon/SdkActionIcon.module.css
+++ b/frontend/src/embedding-sdk-bundle/components/private/SdkQuestion/components/util/SdkActionIcon/SdkActionIcon.module.css
@@ -9,11 +9,15 @@
&[data-active="true"] {
color: var(--mb-color-text-primary-inverse);
- background: var(--mb-color-brand);
- border-color: var(--mb-color-brand);
+ background: var(--mb-color-core-brand);
+ border-color: var(--mb-color-core-brand);
&:hover {
- background: color-mix(in srgb, var(--mb-color-brand), transparent 20%);
+ background: color-mix(
+ in srgb,
+ var(--mb-color-core-brand),
+ transparent 20%
+ );
}
}
}
diff --git a/frontend/src/embedding-sdk-bundle/components/private/SdkQuestionDefaultView/SdkQuestionDefaultView.tsx b/frontend/src/embedding-sdk-bundle/components/private/SdkQuestionDefaultView/SdkQuestionDefaultView.tsx
index e0000347402..afce1ff8148 100644
--- a/frontend/src/embedding-sdk-bundle/components/private/SdkQuestionDefaultView/SdkQuestionDefaultView.tsx
+++ b/frontend/src/embedding-sdk-bundle/components/private/SdkQuestionDefaultView/SdkQuestionDefaultView.tsx
@@ -216,7 +216,7 @@ export const SdkQuestionDefaultView = ({
{isEditorOpen ? (
<PopoverBackButton
onClick={toggleEditor}
- c="brand"
+ c="core-brand"
fz="md"
ml="sm"
>
diff --git a/frontend/src/embedding-sdk-bundle/components/public/dashboard/SdkDashboard.tsx b/frontend/src/embedding-sdk-bundle/components/public/dashboard/SdkDashboard.tsx
index 05ad3d90124..4456cec75f1 100644
--- a/frontend/src/embedding-sdk-bundle/components/public/dashboard/SdkDashboard.tsx
+++ b/frontend/src/embedding-sdk-bundle/components/public/dashboard/SdkDashboard.tsx
@@ -544,7 +544,7 @@ const SdkDashboardInner = ({
dispatch(setEditingDashboard(dashboard));
},
confirmButtonProps: {
- color: "brand",
+ color: "core-brand",
},
});
} else {
diff --git a/frontend/src/embedding-sdk-bundle/lib/theme/get-embedding-theme.ts b/frontend/src/embedding-sdk-bundle/lib/theme/get-embedding-theme.ts
index ff674e57ce8..81d013948de 100644
--- a/frontend/src/embedding-sdk-bundle/lib/theme/get-embedding-theme.ts
+++ b/frontend/src/embedding-sdk-bundle/lib/theme/get-embedding-theme.ts
@@ -77,6 +77,23 @@ export function getEmbeddingThemeOverride(
);
}
+ // Whitelabel keys flow in here directly (admin form + DB still use the
+ // legacy `brand`/`filter`/`summarize` names), bypassing
+ // SDK_TO_MAIN_APP_COLORS_MAPPING. Mirror them to the `core-*` counterparts
+ // so consumers reading `var(--mb-color-core-brand)` see the whitelabel value.
+ // Temporary compatibility layer for the colors migration (GDGT-2517).
+ if (override.colors) {
+ if (override.colors.brand) {
+ override.colors["core-brand"] = override.colors.brand;
+ }
+ if (override.colors.filter) {
+ override.colors["core-filter"] = override.colors.filter;
+ }
+ if (override.colors.summarize) {
+ override.colors["core-summarize"] = override.colors.summarize;
+ }
+ }
+
if (theme.colors) {
if (!override.colors) {
override.colors = {};
diff --git a/frontend/src/embedding-sdk-bundle/lib/theme/get-embedding-theme.unit.spec.ts b/frontend/src/embedding-sdk-bundle/lib/theme/get-embedding-theme.unit.spec.ts
index 8d36b9b9437..beb71a86d9f 100644
--- a/frontend/src/embedding-sdk-bundle/lib/theme/get-embedding-theme.unit.spec.ts
+++ b/frontend/src/embedding-sdk-bundle/lib/theme/get-embedding-theme.unit.spec.ts
@@ -38,6 +38,7 @@ describe("Transform Embedding Theme Override", () => {
fontFamily: "Roboto",
colors: {
brand: expect.arrayContaining(["hotpink"]),
+ "core-brand": expect.arrayContaining(["hotpink"]),
"text-primary": expect.arrayContaining(["yellow"]),
"text-tertiary": expect.arrayContaining(["green"]),
"background-primary": expect.arrayContaining(["orange"]),
diff --git a/frontend/src/metabase/account/login-history/components/LoginHistory/LoginHistory.tsx b/frontend/src/metabase/account/login-history/components/LoginHistory/LoginHistory.tsx
index 14ca7aa3fed..8b4269a6c6a 100644
--- a/frontend/src/metabase/account/login-history/components/LoginHistory/LoginHistory.tsx
+++ b/frontend/src/metabase/account/login-history/components/LoginHistory/LoginHistory.tsx
@@ -28,7 +28,7 @@ const LoginHistoryItem = ({ item }: { item: FormattedLoginItem }) => (
</div>
<Flex ml="auto">
{item.active && (
- <Label c="summarize" className={CS.pr2}>{t`Active`}</Label>
+ <Label c="core-summarize" className={CS.pr2}>{t`Active`}</Label>
)}
<Label>{item.time}</Label>
</Flex>
diff --git a/frontend/src/metabase/actions/containers/ActionCreator/FormCreator/EmptyFormPlaceholder/EmptyFormPlaceholder.styled.tsx b/frontend/src/metabase/actions/containers/ActionCreator/FormCreator/EmptyFormPlaceholder/EmptyFormPlaceholder.styled.tsx
index 48abf292b16..ae10acc3d3e 100644
--- a/frontend/src/metabase/actions/containers/ActionCreator/FormCreator/EmptyFormPlaceholder/EmptyFormPlaceholder.styled.tsx
+++ b/frontend/src/metabase/actions/containers/ActionCreator/FormCreator/EmptyFormPlaceholder/EmptyFormPlaceholder.styled.tsx
@@ -39,10 +39,10 @@ export const ExplainerList = styled.ul`
export const ExplainerLink = styled(ExternalLink)`
font-weight: 700;
margin-top: var(--mantine-spacing-md);
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
&:hover {
- color: ${() => lighten("brand", 0.1)};
+ color: ${() => lighten("core-brand", 0.1)};
}
`;
@@ -50,7 +50,7 @@ export const IconContainer = styled.div`
display: inline-block;
padding: 1.25rem;
position: relative;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
align-self: center;
`;
diff --git a/frontend/src/metabase/actions/containers/ActionCreator/FormCreator/FieldSettingsPopover.styled.tsx b/frontend/src/metabase/actions/containers/ActionCreator/FormCreator/FieldSettingsPopover.styled.tsx
index 5f2374e6773..ac952fa9c43 100644
--- a/frontend/src/metabase/actions/containers/ActionCreator/FormCreator/FieldSettingsPopover.styled.tsx
+++ b/frontend/src/metabase/actions/containers/ActionCreator/FormCreator/FieldSettingsPopover.styled.tsx
@@ -27,6 +27,6 @@ export const SettingsTriggerIcon = styled(Icon)`
color: var(--mb-color-text-primary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
`;
diff --git a/frontend/src/metabase/actions/containers/ActionPicker/ActionPicker.styled.tsx b/frontend/src/metabase/actions/containers/ActionPicker/ActionPicker.styled.tsx
index 47347906175..e662b64c6c5 100644
--- a/frontend/src/metabase/actions/containers/ActionPicker/ActionPicker.styled.tsx
+++ b/frontend/src/metabase/actions/containers/ActionPicker/ActionPicker.styled.tsx
@@ -19,7 +19,7 @@ export const ActionsList = styled.ul`
export const ActionItem = styled.li<{ isSelected?: boolean }>`
display: flex;
font-weight: bold;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
justify-content: space-between;
padding: 0.5rem 0.75rem;
margin-bottom: 1px;
diff --git a/frontend/src/metabase/admin/ai/MetabotSettingsPanel.tsx b/frontend/src/metabase/admin/ai/MetabotSettingsPanel.tsx
index d4fe720d36e..811e8da36db 100755
--- a/frontend/src/metabase/admin/ai/MetabotSettingsPanel.tsx
+++ b/frontend/src/metabase/admin/ai/MetabotSettingsPanel.tsx
@@ -260,7 +260,7 @@ const CollectionDisplay = ({
const icon = getIcon({ model: "collection", ...collection });
return (
<Flex align="center" gap="sm">
- <Icon {...icon} c={icon.color ?? "brand"} />
+ <Icon {...icon} c={icon.color ?? "core-brand"} />
<Text c="text-secondary" fw="bold">
{collection.name}
</Text>
diff --git a/frontend/src/metabase/admin/ai/MetabotSlackSetup.module.css b/frontend/src/metabase/admin/ai/MetabotSlackSetup.module.css
index e1f7a3050c7..f5002bbd22b 100644
--- a/frontend/src/metabase/admin/ai/MetabotSlackSetup.module.css
+++ b/frontend/src/metabase/admin/ai/MetabotSlackSetup.module.css
@@ -1,6 +1,6 @@
.copyButton {
display: inline-flex;
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
color: var(--mb-color-text-primary-inverse);
align-items: center;
font-weight: bold;
diff --git a/frontend/src/metabase/admin/ai/MetabotSlackSetupAlerts.tsx b/frontend/src/metabase/admin/ai/MetabotSlackSetupAlerts.tsx
index 794da1eaa73..f388dea26d8 100644
--- a/frontend/src/metabase/admin/ai/MetabotSlackSetupAlerts.tsx
+++ b/frontend/src/metabase/admin/ai/MetabotSlackSetupAlerts.tsx
@@ -26,7 +26,7 @@ export function MissingScopesAlert({
return (
<Alert
- color="brand"
+ color="core-brand"
title={t`Metabot needs more Slack permissions`}
styles={{ label: { fontSize: "var(--mantine-font-size-md)" } }}
>
@@ -57,7 +57,7 @@ export function MissingScopesAlert({
export function MetabotSetupRequiredAlert() {
return (
<Alert
- color="brand"
+ color="core-brand"
title={t`This feature requires an AI model`}
styles={{ label: { fontSize: "var(--mantine-font-size-md)" } }}
>
@@ -80,7 +80,7 @@ export function EncryptionRequiredAlert({
}: EncryptionRequiredAlertProps) {
return (
<Alert
- color="brand"
+ color="core-brand"
title={t`You must enable encryption for your instance in order to use this feature`}
styles={{ label: { fontSize: "var(--mantine-font-size-md)" } }}
>
diff --git a/frontend/src/metabase/admin/components/RelatedSettingsSection/RelatedSettingsSection.tsx b/frontend/src/metabase/admin/components/RelatedSettingsSection/RelatedSettingsSection.tsx
index 106c1c5dd1f..a4ea4eb0e1d 100644
--- a/frontend/src/metabase/admin/components/RelatedSettingsSection/RelatedSettingsSection.tsx
+++ b/frontend/src/metabase/admin/components/RelatedSettingsSection/RelatedSettingsSection.tsx
@@ -54,7 +54,7 @@ export const RelatedSettingCard = ({
className={S.relatedSettingCard}
>
<Group gap="sm" align="center" h="100%">
- <Icon name={icon} c="brand" />
+ <Icon name={icon} c="core-brand" />
<Text fw={500} ta="center">
{name}
diff --git a/frontend/src/metabase/admin/databases/components/DatabaseList/DatabaseList.tsx b/frontend/src/metabase/admin/databases/components/DatabaseList/DatabaseList.tsx
index 31c3ff5ca4d..127b0227732 100644
--- a/frontend/src/metabase/admin/databases/components/DatabaseList/DatabaseList.tsx
+++ b/frontend/src/metabase/admin/databases/components/DatabaseList/DatabaseList.tsx
@@ -123,7 +123,7 @@ export const DatabaseList = ({
</span>
) : (
<UnstyledButton
- c="brand"
+ c="core-brand"
onClick={() => addSampleDatabase(query)}
>
{t`Bring the sample database back`}
diff --git a/frontend/src/metabase/admin/databases/components/DeleteDatabaseModel/DeleteDatabaseModal.tsx b/frontend/src/metabase/admin/databases/components/DeleteDatabaseModel/DeleteDatabaseModal.tsx
index 3f2b6b00209..a3f5603b498 100644
--- a/frontend/src/metabase/admin/databases/components/DeleteDatabaseModel/DeleteDatabaseModal.tsx
+++ b/frontend/src/metabase/admin/databases/components/DeleteDatabaseModel/DeleteDatabaseModal.tsx
@@ -139,7 +139,7 @@ export const DeleteDatabaseModal = ({
<UnstyledButton
key="button"
onClick={handleEditConnectionDetailsClick}
- c="brand"
+ c="core-brand"
fw="bold"
>{t`edit your connection details.`}</UnstyledButton>
)}`}
diff --git a/frontend/src/metabase/admin/embedding/components/ThemeEditor/EditorPanel.tsx b/frontend/src/metabase/admin/embedding/components/ThemeEditor/EditorPanel.tsx
index 7d2b94586bc..511c4db3531 100644
--- a/frontend/src/metabase/admin/embedding/components/ThemeEditor/EditorPanel.tsx
+++ b/frontend/src/metabase/admin/embedding/components/ThemeEditor/EditorPanel.tsx
@@ -133,7 +133,7 @@ export function EditorPanel({
<Flex mt="md" h="26" align="center" justify="space-between">
<UnstyledButton onClick={() => setMoreColorsOpen((v) => !v)}>
<Flex align="center" gap="xs">
- <Text c="brand" fz="sm" fw={600}>
+ <Text c="core-brand" fz="sm" fw={600}>
{moreColorsOpen
? t`Show fewer colors`
: t`Show more colors`}
@@ -141,7 +141,7 @@ export function EditorPanel({
<Icon
name={moreColorsOpen ? "chevronup" : "chevronright"}
size={12}
- c="brand"
+ c="core-brand"
/>
</Flex>
</UnstyledButton>
diff --git a/frontend/src/metabase/admin/embedding/components/ThemeListing/NewThemeCard.module.css b/frontend/src/metabase/admin/embedding/components/ThemeListing/NewThemeCard.module.css
index b0260c2e90f..3469f88e49c 100644
--- a/frontend/src/metabase/admin/embedding/components/ThemeListing/NewThemeCard.module.css
+++ b/frontend/src/metabase/admin/embedding/components/ThemeListing/NewThemeCard.module.css
@@ -9,7 +9,7 @@
}
.card:hover {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-hover);
}
diff --git a/frontend/src/metabase/admin/embedding/components/ThemeListing/NewThemeCard.tsx b/frontend/src/metabase/admin/embedding/components/ThemeListing/NewThemeCard.tsx
index 15ab2ff7efc..d4fa8df017f 100644
--- a/frontend/src/metabase/admin/embedding/components/ThemeListing/NewThemeCard.tsx
+++ b/frontend/src/metabase/admin/embedding/components/ThemeListing/NewThemeCard.tsx
@@ -20,8 +20,8 @@ export function NewThemeCard({ onClick }: NewThemeCardProps) {
h={301}
>
<Stack className={S.overlay} align="center" justify="center" gap="xs">
- <Icon name="add" c="brand" size={24} />
- <Text c="brand" fw={500}>{t`New theme`}</Text>
+ <Icon name="add" c="core-brand" size={24} />
+ <Text c="core-brand" fw={500}>{t`New theme`}</Text>
</Stack>
</Card>
);
diff --git a/frontend/src/metabase/admin/people/colors.ts b/frontend/src/metabase/admin/people/colors.ts
index a11b12163a8..a0072991b9d 100644
--- a/frontend/src/metabase/admin/people/colors.ts
+++ b/frontend/src/metabase/admin/people/colors.ts
@@ -2,13 +2,13 @@ import { color } from "metabase/ui/colors";
import type { GroupId, User } from "metabase-types/api";
export const userToColor = (user: User) => {
- return user.is_superuser ? color("accent2") : color("brand");
+ return user.is_superuser ? color("accent2") : color("core-brand");
};
const groupColorPalette = [
color("error"),
color("accent2"),
- color("brand"),
+ color("core-brand"),
color("accent4"),
color("accent1"),
];
diff --git a/frontend/src/metabase/admin/people/components/AddRow.tsx b/frontend/src/metabase/admin/people/components/AddRow.tsx
index 0f7ba1d1719..55e59185947 100644
--- a/frontend/src/metabase/admin/people/components/AddRow.tsx
+++ b/frontend/src/metabase/admin/people/components/AddRow.tsx
@@ -31,7 +31,7 @@ export const AddRow = ({
p="0.5rem"
display="relative"
align="center"
- bd="1px solid var(--mb-color-brand)"
+ bd="1px solid var(--mb-color-core-brand)"
style={{ borderRadius: "0.5rem" }}
>
{children}
diff --git a/frontend/src/metabase/admin/people/components/GroupSummary.tsx b/frontend/src/metabase/admin/people/components/GroupSummary.tsx
index d9687371456..8aa45a0ad6f 100644
--- a/frontend/src/metabase/admin/people/components/GroupSummary.tsx
+++ b/frontend/src/metabase/admin/people/components/GroupSummary.tsx
@@ -23,12 +23,12 @@ export const GroupSummary = ({
if (adminGroup && selectedGroupIds.includes(adminGroup.id)) {
return (
<Box component="span" {...props}>
- <Box component="span" c="filter">
+ <Box component="span" c="core-filter">
{t`Admin`}
</Box>
{otherGroups.length > 0 && " " + t`and` + " "}
{otherGroups.length > 0 && (
- <Box component="span" c="brand">
+ <Box component="span" c="core-brand">
{((n) => ngettext(msgid`${n} other group`, `${n} other groups`, n))(
otherGroups.length,
)}
@@ -38,13 +38,13 @@ export const GroupSummary = ({
);
} else if (otherGroups.length === 1) {
return (
- <Box component="span" c="brand" {...props}>
+ <Box component="span" c="core-brand" {...props}>
{otherGroups[0].name}
</Box>
);
} else if (otherGroups.length > 1) {
return (
- <Box component="span" c="brand" {...props}>
+ <Box component="span" c="core-brand" {...props}>
{((n) => ngettext(msgid`${n} other group`, `${n} other groups`, n))(
otherGroups.length,
)}
diff --git a/frontend/src/metabase/admin/people/components/GroupsListing.tsx b/frontend/src/metabase/admin/people/components/GroupsListing.tsx
index 147711705c8..7dd832f8b9e 100644
--- a/frontend/src/metabase/admin/people/components/GroupsListing.tsx
+++ b/frontend/src/metabase/admin/people/components/GroupsListing.tsx
@@ -187,7 +187,7 @@ function EditingGroupRow({
const textIsValid = group.name && group.name.length;
return (
- <Box component="tr" bd="1px solid var(--mb-color-brand)">
+ <Box component="tr" bd="1px solid var(--mb-color-core-brand)">
<td>
<Input
fz="lg"
@@ -271,7 +271,7 @@ function GroupRow({
user={{ name: getGroupNameLocalized(group) }}
bg={backgroundColor}
/>
- <Box component="span" fw={700} c="brand">
+ <Box component="span" fw={700} c="core-brand">
{getGroupNameLocalized(group)}
</Box>
</Flex>
@@ -548,7 +548,7 @@ export const GroupsListing = (props: GroupsListingProps) => {
closeButtonText={null}
withCloseButton={false}
confirmButtonText={t`Ok`}
- confirmButtonProps={{ color: "brand" }}
+ confirmButtonProps={{ color: "core-brand" }}
data-testid="alert-modal"
/>
</AdminPaneLayout>
diff --git a/frontend/src/metabase/admin/people/components/MembershipSelect/MembershipSelect.module.css b/frontend/src/metabase/admin/people/components/MembershipSelect/MembershipSelect.module.css
index 356b70c7a7d..d4fb22374fe 100644
--- a/frontend/src/metabase/admin/people/components/MembershipSelect/MembershipSelect.module.css
+++ b/frontend/src/metabase/admin/people/components/MembershipSelect/MembershipSelect.module.css
@@ -9,7 +9,7 @@
&:hover {
color: var(--mb-color-text-primary-inverse);
- background-color: var(--mb-color-filter);
+ background-color: var(--mb-color-core-filter);
:global(.Icon) {
color: var(--mb-color-text-primary-inverse) !important;
diff --git a/frontend/src/metabase/admin/people/components/ReactivateUserButton.module.css b/frontend/src/metabase/admin/people/components/ReactivateUserButton.module.css
index 5138cfa1719..b0046fd8d3f 100644
--- a/frontend/src/metabase/admin/people/components/ReactivateUserButton.module.css
+++ b/frontend/src/metabase/admin/people/components/ReactivateUserButton.module.css
@@ -4,7 +4,7 @@
padding: 0.5rem;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
&.disabled:hover {
diff --git a/frontend/src/metabase/admin/people/containers/UserPasswordResetModal.tsx b/frontend/src/metabase/admin/people/containers/UserPasswordResetModal.tsx
index a77ad6eb4db..6726d619c85 100644
--- a/frontend/src/metabase/admin/people/containers/UserPasswordResetModal.tsx
+++ b/frontend/src/metabase/admin/people/containers/UserPasswordResetModal.tsx
@@ -78,7 +78,7 @@ const UserPasswordResetModalInner = ({
opened
title={t`Password reset link for ${user.common_name}`}
onConfirm={onClose}
- confirmButtonProps={{ color: "brand", variant: "filled" }}
+ confirmButtonProps={{ color: "core-brand", variant: "filled" }}
confirmButtonText={t`Done`}
closeButtonText={null}
onClose={onClose}
@@ -103,7 +103,7 @@ const UserPasswordResetModalInner = ({
opened
title={t`${user.common_name}'s password has been reset`}
onConfirm={onClose}
- confirmButtonProps={{ color: "brand", variant: "filled" }}
+ confirmButtonProps={{ color: "core-brand", variant: "filled" }}
confirmButtonText={t`Done`}
closeButtonText={null}
onClose={onClose}
@@ -130,7 +130,7 @@ const UserPasswordResetModalInner = ({
<Button onClick={onClose}>{t`Cancel`}</Button>
<Button
variant="filled"
- color="brand"
+ color="core-brand"
onClick={handleGetResetLink}
>{t`Get reset link`}</Button>
<Button
diff --git a/frontend/src/metabase/admin/people/containers/UserSuccessModal.tsx b/frontend/src/metabase/admin/people/containers/UserSuccessModal.tsx
index 08efa12d607..f0ba50975d4 100644
--- a/frontend/src/metabase/admin/people/containers/UserSuccessModal.tsx
+++ b/frontend/src/metabase/admin/people/containers/UserSuccessModal.tsx
@@ -69,7 +69,7 @@ export function UserSuccessModal({ params }: UserSuccessModalProps) {
onClose={handleClose}
onConfirm={handleClose}
closeButtonText={null}
- confirmButtonProps={{ color: "brand" }}
+ confirmButtonProps={{ color: "core-brand" }}
confirmButtonText={t`Done`}
message={
temporaryPassword ? (
diff --git a/frontend/src/metabase/admin/performance/components/PerformanceApp.module.css b/frontend/src/metabase/admin/performance/components/PerformanceApp.module.css
index b2364ff362c..6692a9d8e6a 100644
--- a/frontend/src/metabase/admin/performance/components/PerformanceApp.module.css
+++ b/frontend/src/metabase/admin/performance/components/PerformanceApp.module.css
@@ -14,7 +14,7 @@
margin-inline-end: 1.25rem;
:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: inherit;
border-color: transparent;
}
diff --git a/frontend/src/metabase/admin/performance/components/StrategyForm.tsx b/frontend/src/metabase/admin/performance/components/StrategyForm.tsx
index fb9237c11a4..83f40fab903 100644
--- a/frontend/src/metabase/admin/performance/components/StrategyForm.tsx
+++ b/frontend/src/metabase/admin/performance/components/StrategyForm.tsx
@@ -614,7 +614,7 @@ const MultiplierFieldSubtitle = () => (
label={t`If a query takes on average 120 seconds (2 minutes) to run, and you input 10 for your multiplier, its cache entry will persist for 1,200 seconds (20 minutes).`}
maw="20rem"
>
- <Text tabIndex={0} fz="md" lh="1.25rem" display="inline" c="brand">
+ <Text tabIndex={0} fz="md" lh="1.25rem" display="inline" c="core-brand">
{t`Example`}
</Text>
</Tooltip>
diff --git a/frontend/src/metabase/admin/permissions/components/DataPermissionsHelp/DataPermissionsHelp.tsx b/frontend/src/metabase/admin/permissions/components/DataPermissionsHelp/DataPermissionsHelp.tsx
index 7cf6a171e08..c217af72c5b 100644
--- a/frontend/src/metabase/admin/permissions/components/DataPermissionsHelp/DataPermissionsHelp.tsx
+++ b/frontend/src/metabase/admin/permissions/components/DataPermissionsHelp/DataPermissionsHelp.tsx
@@ -111,7 +111,7 @@ export const DataPermissionsHelp = () => {
)}
<PermissionHelpDescription
icon="permissions_limited"
- iconColor="brand"
+ iconColor="core-brand"
name={t`Row and column security (Pro)`}
description={t`Lets you specify row and column-level permissions. Can be set up via user attributes and SSO.`}
/>
diff --git a/frontend/src/metabase/admin/permissions/components/FilterableTree/FilterableTree.tsx b/frontend/src/metabase/admin/permissions/components/FilterableTree/FilterableTree.tsx
index 5369ca22d85..5195ea9fce7 100644
--- a/frontend/src/metabase/admin/permissions/components/FilterableTree/FilterableTree.tsx
+++ b/frontend/src/metabase/admin/permissions/components/FilterableTree/FilterableTree.tsx
@@ -62,7 +62,7 @@ export const FilterableTree = ({
placeholder={placeholder}
value={filter}
leftIcon="search"
- colorScheme="filter"
+ colorScheme="core-filter"
onChange={handleFilterChange}
onResetClick={() => setFilter("")}
/>
diff --git a/frontend/src/metabase/admin/permissions/components/LegacyPermissionsModal/LegacyPermissionsModal.tsx b/frontend/src/metabase/admin/permissions/components/LegacyPermissionsModal/LegacyPermissionsModal.tsx
index d250199ca29..2fee39b6689 100644
--- a/frontend/src/metabase/admin/permissions/components/LegacyPermissionsModal/LegacyPermissionsModal.tsx
+++ b/frontend/src/metabase/admin/permissions/components/LegacyPermissionsModal/LegacyPermissionsModal.tsx
@@ -39,14 +39,14 @@ export const LegacyPermissionsModal = ({
<Text
key="view-data"
component="span"
- c="brand"
+ c="core-brand"
fw="bold"
>{t`View data`}</Text>
)} and ${(
<Text
key="create-queries"
component="span"
- c="brand"
+ c="core-brand"
fw="bold"
>{t`Create queries`}</Text>
)}. Having separate settings for what people can view and what they can query makes data permissions more expressive and easier to reason about.`}
diff --git a/frontend/src/metabase/admin/permissions/components/PermissionsEditor/PermissionsEditorBreadcrumbs.styled.tsx b/frontend/src/metabase/admin/permissions/components/PermissionsEditor/PermissionsEditorBreadcrumbs.styled.tsx
index 6901554d60b..c0dc4a5383c 100644
--- a/frontend/src/metabase/admin/permissions/components/PermissionsEditor/PermissionsEditorBreadcrumbs.styled.tsx
+++ b/frontend/src/metabase/admin/permissions/components/PermissionsEditor/PermissionsEditorBreadcrumbs.styled.tsx
@@ -13,7 +13,7 @@ export const BreadcrumbsSeparator = styled.div`
export const BreadcrumbsLink = styled.a`
cursor: pointer;
- color: var(--mb-color-filter);
+ color: var(--mb-color-core-filter);
transition: color 200ms;
&:hover {
diff --git a/frontend/src/metabase/admin/permissions/components/PermissionsEditor/PermissionsEditorContent.tsx b/frontend/src/metabase/admin/permissions/components/PermissionsEditor/PermissionsEditorContent.tsx
index 72429521659..41ea189b4c7 100644
--- a/frontend/src/metabase/admin/permissions/components/PermissionsEditor/PermissionsEditorContent.tsx
+++ b/frontend/src/metabase/admin/permissions/components/PermissionsEditor/PermissionsEditorContent.tsx
@@ -88,7 +88,7 @@ export function PermissionsEditorContent({
<EditorFilterContainer>
<Input
- colorScheme="filter"
+ colorScheme="core-filter"
placeholder={filterPlaceholder}
onChange={handleFilterChange}
onResetClick={() => setFilter("")}
diff --git a/frontend/src/metabase/admin/permissions/components/PermissionsEditor/PermissionsEditorLegacyWarning.tsx b/frontend/src/metabase/admin/permissions/components/PermissionsEditor/PermissionsEditorLegacyWarning.tsx
index 2d2e84daf7e..40d74780e39 100644
--- a/frontend/src/metabase/admin/permissions/components/PermissionsEditor/PermissionsEditorLegacyWarning.tsx
+++ b/frontend/src/metabase/admin/permissions/components/PermissionsEditor/PermissionsEditorLegacyWarning.tsx
@@ -16,7 +16,7 @@ export const PermissionsEditorLegacyNoSelfServiceWarning = () => {
{" "}
<Text
fw="bold"
- c="brand"
+ c="core-brand"
onClick={toggle}
component="span"
style={{ cursor: "pointer" }}
diff --git a/frontend/src/metabase/admin/permissions/components/PermissionsEditor/PermissionsEditorSplitPermsMessage.tsx b/frontend/src/metabase/admin/permissions/components/PermissionsEditor/PermissionsEditorSplitPermsMessage.tsx
index e0188f58287..d43b2f5412a 100644
--- a/frontend/src/metabase/admin/permissions/components/PermissionsEditor/PermissionsEditorSplitPermsMessage.tsx
+++ b/frontend/src/metabase/admin/permissions/components/PermissionsEditor/PermissionsEditorSplitPermsMessage.tsx
@@ -31,7 +31,7 @@ export const PermissionsEditorSplitPermsMessage = () => {
>
<Alert
icon={<Icon name="info" size={16} />}
- color="brand"
+ color="core-brand"
withCloseButton
onClose={handleDismiss}
>
diff --git a/frontend/src/metabase/admin/permissions/components/PermissionsSelect/PermissionsSelect.styled.tsx b/frontend/src/metabase/admin/permissions/components/PermissionsSelect/PermissionsSelect.styled.tsx
index 0a3af295acd..00e1867ef8e 100644
--- a/frontend/src/metabase/admin/permissions/components/PermissionsSelect/PermissionsSelect.styled.tsx
+++ b/frontend/src/metabase/admin/permissions/components/PermissionsSelect/PermissionsSelect.styled.tsx
@@ -19,7 +19,7 @@ export const SelectedOption = styled(PermissionsSelectOption)`
transition: color 200ms;
&:hover {
- color: var(--mb-color-filter);
+ color: var(--mb-color-core-filter);
}
`;
diff --git a/frontend/src/metabase/admin/permissions/components/PermissionsSelect/PermissionsSelect.unit.spec.tsx b/frontend/src/metabase/admin/permissions/components/PermissionsSelect/PermissionsSelect.unit.spec.tsx
index 83ae4330001..12300f7dccf 100644
--- a/frontend/src/metabase/admin/permissions/components/PermissionsSelect/PermissionsSelect.unit.spec.tsx
+++ b/frontend/src/metabase/admin/permissions/components/PermissionsSelect/PermissionsSelect.unit.spec.tsx
@@ -22,7 +22,7 @@ const options: PermissionOption[] = [
label: "Limited",
value: DataPermissionValue.CONTROLLED,
icon: "permissions_limited",
- iconColor: "brand",
+ iconColor: "core-brand",
},
{
label: "No access",
diff --git a/frontend/src/metabase/admin/permissions/components/PermissionsSidebar/PermissionsSidebar.styled.tsx b/frontend/src/metabase/admin/permissions/components/PermissionsSidebar/PermissionsSidebar.styled.tsx
index f48a22ba7cf..e6cdbd01763 100644
--- a/frontend/src/metabase/admin/permissions/components/PermissionsSidebar/PermissionsSidebar.styled.tsx
+++ b/frontend/src/metabase/admin/permissions/components/PermissionsSidebar/PermissionsSidebar.styled.tsx
@@ -35,6 +35,6 @@ export const BackButton = styled.button`
text-align: left;
&:hover {
- color: var(--mb-color-filter);
+ color: var(--mb-color-core-filter);
}
`;
diff --git a/frontend/src/metabase/admin/permissions/components/ToolbarButton/ToolbarButton.styled.tsx b/frontend/src/metabase/admin/permissions/components/ToolbarButton/ToolbarButton.styled.tsx
index 4ecb72dac02..f4db2dfbe7a 100644
--- a/frontend/src/metabase/admin/permissions/components/ToolbarButton/ToolbarButton.styled.tsx
+++ b/frontend/src/metabase/admin/permissions/components/ToolbarButton/ToolbarButton.styled.tsx
@@ -13,7 +13,7 @@ export const ToolbarButtonRoot = styled.button`
transition: color 200ms;
&:hover {
- color: var(--mb-color-filter);
+ color: var(--mb-color-core-filter);
}
`;
diff --git a/frontend/src/metabase/admin/settings/auth/components/AuthCard/AuthCard.styled.tsx b/frontend/src/metabase/admin/settings/auth/components/AuthCard/AuthCard.styled.tsx
index 171ec069971..4f02228bff5 100644
--- a/frontend/src/metabase/admin/settings/auth/components/AuthCard/AuthCard.styled.tsx
+++ b/frontend/src/metabase/admin/settings/auth/components/AuthCard/AuthCard.styled.tsx
@@ -35,7 +35,8 @@ interface CardBadgeProps {
}
export const CardBadge = styled.div<CardBadgeProps>`
- color: ${(props) => (props.isEnabled ? color("brand") : color("danger"))};
+ color: ${(props) =>
+ props.isEnabled ? color("core-brand") : color("danger")};
background-color: ${(props) =>
props.isEnabled
? "var(--mb-color-background-brand)"
diff --git a/frontend/src/metabase/admin/settings/components/CloudPanel/MigrationInProgress.tsx b/frontend/src/metabase/admin/settings/components/CloudPanel/MigrationInProgress.tsx
index 0cf523fbc93..3c1d3e1f4ce 100644
--- a/frontend/src/metabase/admin/settings/components/CloudPanel/MigrationInProgress.tsx
+++ b/frontend/src/metabase/admin/settings/components/CloudPanel/MigrationInProgress.tsx
@@ -74,7 +74,7 @@ export const MigrationInProgress = ({
justify="center"
align="center"
>
- <Icon name="cloud_filled" size="2.375rem" c="brand" />
+ <Icon name="cloud_filled" size="2.375rem" c="core-brand" />
</Flex>
<Box style={{ flex: "1 0 0" }}>
<Text fw="bold">{t`Migrating to Metabase Cloud…`}</Text>
diff --git a/frontend/src/metabase/admin/settings/components/CloudPanel/MigrationStart.tsx b/frontend/src/metabase/admin/settings/components/CloudPanel/MigrationStart.tsx
index ebe4b6247cb..ebdd1bb9aed 100644
--- a/frontend/src/metabase/admin/settings/components/CloudPanel/MigrationStart.tsx
+++ b/frontend/src/metabase/admin/settings/components/CloudPanel/MigrationStart.tsx
@@ -35,7 +35,7 @@ export const MigrationStart = ({
}}
>
<Box mt="md" pb="4rem" px="6rem" ta="center">
- <Icon name="cloud_filled" size="3rem" c="brand" />
+ <Icon name="cloud_filled" size="3rem" c="core-brand" />
<Modal.Title mt="1.5rem">{t`Get started with Metabase Cloud`}</Modal.Title>
<Text mt="1.5rem">
diff --git a/frontend/src/metabase/admin/settings/components/Email/SelfHostedSMTPConnectionCard.tsx b/frontend/src/metabase/admin/settings/components/Email/SelfHostedSMTPConnectionCard.tsx
index 7353e241cc4..56449881de5 100644
--- a/frontend/src/metabase/admin/settings/components/Email/SelfHostedSMTPConnectionCard.tsx
+++ b/frontend/src/metabase/admin/settings/components/Email/SelfHostedSMTPConnectionCard.tsx
@@ -22,7 +22,7 @@ export const SelfHostedSMTPConnectionCard = () => {
{isEmailConfigured && (
<Paper
fw="bold"
- c={"brand"}
+ c={"core-brand"}
bg="background-brand"
p={"0.25rem 0.375rem"}
radius="xs"
diff --git a/frontend/src/metabase/admin/settings/components/SettingsPages/CustomVisualizationsSettingsPage.tsx b/frontend/src/metabase/admin/settings/components/SettingsPages/CustomVisualizationsSettingsPage.tsx
index 1a076062105..bda0580efa9 100644
--- a/frontend/src/metabase/admin/settings/components/SettingsPages/CustomVisualizationsSettingsPage.tsx
+++ b/frontend/src/metabase/admin/settings/components/SettingsPages/CustomVisualizationsSettingsPage.tsx
@@ -180,7 +180,7 @@ function FeatureCard({ icon, title, description }: FeatureCardProps) {
return (
<Paper bg="background-secondary" p="md" radius="md" shadow="none">
<Group gap="sm" align="flex-start" wrap="nowrap">
- <Icon name={icon} size={16} c="brand" style={{ flexShrink: 0 }} />
+ <Icon name={icon} size={16} c="core-brand" style={{ flexShrink: 0 }} />
<Stack gap="xs">
<Text fw="bold" lh="1rem">
{title}
diff --git a/frontend/src/metabase/admin/settings/components/widgets/GroupMappingsWidget/GroupSelect/GroupSelect.tsx b/frontend/src/metabase/admin/settings/components/widgets/GroupMappingsWidget/GroupSelect/GroupSelect.tsx
index 674d11bd274..d8019734696 100644
--- a/frontend/src/metabase/admin/settings/components/widgets/GroupMappingsWidget/GroupSelect/GroupSelect.tsx
+++ b/frontend/src/metabase/admin/settings/components/widgets/GroupMappingsWidget/GroupSelect/GroupSelect.tsx
@@ -18,11 +18,11 @@ import type { GroupInfo } from "metabase-types/api";
function getGroupColor(group: Pick<GroupInfo, "magic_group_type">) {
if (isAdminGroup(group)) {
- return color("filter");
+ return color("core-filter");
} else if (isDefaultGroup(group)) {
return color("text-secondary");
} else {
- return color("brand");
+ return color("core-brand");
}
}
diff --git a/frontend/src/metabase/admin/settings/components/widgets/VersionUpdateNotice/VersionUpdateNotice.module.css b/frontend/src/metabase/admin/settings/components/widgets/VersionUpdateNotice/VersionUpdateNotice.module.css
index 790d246e70f..d15cc0b16f8 100644
--- a/frontend/src/metabase/admin/settings/components/widgets/VersionUpdateNotice/VersionUpdateNotice.module.css
+++ b/frontend/src/metabase/admin/settings/components/widgets/VersionUpdateNotice/VersionUpdateNotice.module.css
@@ -1,14 +1,14 @@
.container {
- background-color: var(--mb-color-summarize);
+ background-color: var(--mb-color-core-summarize);
}
.message {
padding: 1rem;
color: var(--mb-color-text-primary-inverse);
font-weight: bold;
- border: 1px solid var(--mb-color-brand);
+ border: 1px solid var(--mb-color-core-brand);
border-radius: 0.5rem;
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
.iframe {
diff --git a/frontend/src/metabase/admin/tools/components/Help/help.module.css b/frontend/src/metabase/admin/tools/components/Help/help.module.css
index c4bbf731bac..a14ab0546bd 100644
--- a/frontend/src/metabase/admin/tools/components/Help/help.module.css
+++ b/frontend/src/metabase/admin/tools/components/Help/help.module.css
@@ -6,7 +6,7 @@
cursor: pointer;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
@@ -20,6 +20,6 @@
background-color: var(--mb-color-background-primary);
&:hover {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/admin/tools/notifications/NotificationDetailSidebar/ChannelAvatarStack.tsx b/frontend/src/metabase/admin/tools/notifications/NotificationDetailSidebar/ChannelAvatarStack.tsx
index fa6a0de3849..d82bf78f5d2 100644
--- a/frontend/src/metabase/admin/tools/notifications/NotificationDetailSidebar/ChannelAvatarStack.tsx
+++ b/frontend/src/metabase/admin/tools/notifications/NotificationDetailSidebar/ChannelAvatarStack.tsx
@@ -46,7 +46,7 @@ const ChannelAvatar = ({ channel, bordered }: ChannelAvatarProps) => {
}))
.otherwise(() => ({
backgroundColor: "var(--mb-color-background-brand)",
- iconColor: "brand" as const,
+ iconColor: "core-brand" as const,
}));
return (
diff --git a/frontend/src/metabase/admin/tools/notifications/NotificationDetailSidebar/NotificationRunSummaryLog.tsx b/frontend/src/metabase/admin/tools/notifications/NotificationDetailSidebar/NotificationRunSummaryLog.tsx
index 905405ffd9c..7cd80637f3b 100644
--- a/frontend/src/metabase/admin/tools/notifications/NotificationDetailSidebar/NotificationRunSummaryLog.tsx
+++ b/frontend/src/metabase/admin/tools/notifications/NotificationDetailSidebar/NotificationRunSummaryLog.tsx
@@ -88,7 +88,7 @@ export const NotificationRunSummaryLog = ({
<Anchor
component={Link}
to={viewAllUrl}
- c="brand"
+ c="core-brand"
fz="md"
lh="1rem"
fw="bold"
diff --git a/frontend/src/metabase/admin/tools/notifications/NotificationsTabs/NotificationsTabs.module.css b/frontend/src/metabase/admin/tools/notifications/NotificationsTabs/NotificationsTabs.module.css
index 675839ba7fd..42bd75f5b5b 100644
--- a/frontend/src/metabase/admin/tools/notifications/NotificationsTabs/NotificationsTabs.module.css
+++ b/frontend/src/metabase/admin/tools/notifications/NotificationsTabs/NotificationsTabs.module.css
@@ -15,7 +15,7 @@
&[data-active="true"] {
background-color: var(--mb-color-background-selected);
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/admin/upsells/UpsellSdkLink.tsx b/frontend/src/metabase/admin/upsells/UpsellSdkLink.tsx
index 55ffdf46cdb..bfc4830b77a 100644
--- a/frontend/src/metabase/admin/upsells/UpsellSdkLink.tsx
+++ b/frontend/src/metabase/admin/upsells/UpsellSdkLink.tsx
@@ -27,7 +27,7 @@ export function UpsellSdkLink() {
return (
<UnstyledButton
onClick={triggerUpsellFlow}
- c="brand"
+ c="core-brand"
className={linkStyles.link}
key="upgrade-button"
fw="bold"
diff --git a/frontend/src/metabase/auth/components/AuthButton/AuthButton.styled.tsx b/frontend/src/metabase/auth/components/AuthButton/AuthButton.styled.tsx
index 260ba90442b..ceff24a8931 100644
--- a/frontend/src/metabase/auth/components/AuthButton/AuthButton.styled.tsx
+++ b/frontend/src/metabase/auth/components/AuthButton/AuthButton.styled.tsx
@@ -8,7 +8,7 @@ export const TextLink = styled(Link)`
color: var(--mb-color-text-primary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
`;
diff --git a/frontend/src/metabase/auth/components/ForgotPassword/ForgotPassword.styled.tsx b/frontend/src/metabase/auth/components/ForgotPassword/ForgotPassword.styled.tsx
index fb05b6d4b2a..630991d0117 100644
--- a/frontend/src/metabase/auth/components/ForgotPassword/ForgotPassword.styled.tsx
+++ b/frontend/src/metabase/auth/components/ForgotPassword/ForgotPassword.styled.tsx
@@ -12,7 +12,7 @@ export const InfoBody = styled.div`
export const InfoIcon = styled(Icon)`
display: block;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
width: 1.5rem;
height: 1.5rem;
`;
@@ -35,6 +35,6 @@ export const InfoLink = styled(Link)`
margin-top: 2.5rem;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
`;
diff --git a/frontend/src/metabase/auth/components/ForgotPasswordForm/ForgotPasswordForm.styled.tsx b/frontend/src/metabase/auth/components/ForgotPasswordForm/ForgotPasswordForm.styled.tsx
index 232464baab4..504f2c3b0c4 100644
--- a/frontend/src/metabase/auth/components/ForgotPasswordForm/ForgotPasswordForm.styled.tsx
+++ b/frontend/src/metabase/auth/components/ForgotPasswordForm/ForgotPasswordForm.styled.tsx
@@ -23,6 +23,6 @@ export const PasswordFormLink = styled(Link)`
color: var(--mb-color-text-primary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
`;
diff --git a/frontend/src/metabase/auth/components/GoogleButton/GoogleButton.module.css b/frontend/src/metabase/auth/components/GoogleButton/GoogleButton.module.css
index 53c7e3b726d..32a11b491fd 100644
--- a/frontend/src/metabase/auth/components/GoogleButton/GoogleButton.module.css
+++ b/frontend/src/metabase/auth/components/GoogleButton/GoogleButton.module.css
@@ -3,6 +3,6 @@
color: var(--mb-color-text-primary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/browse/components/BrowseCard.tsx b/frontend/src/metabase/browse/components/BrowseCard.tsx
index d44a256edcc..001f1f9f7d5 100644
--- a/frontend/src/metabase/browse/components/BrowseCard.tsx
+++ b/frontend/src/metabase/browse/components/BrowseCard.tsx
@@ -33,7 +33,7 @@ const sizeOptions = {
export const BrowseCard = ({
icon,
to,
- iconColor = "brand",
+ iconColor = "core-brand",
title,
size = "md",
children,
diff --git a/frontend/src/metabase/browse/components/BrowseDataHeader.tsx b/frontend/src/metabase/browse/components/BrowseDataHeader.tsx
index f0d3ce5638e..c84be6067d0 100644
--- a/frontend/src/metabase/browse/components/BrowseDataHeader.tsx
+++ b/frontend/src/metabase/browse/components/BrowseDataHeader.tsx
@@ -21,7 +21,7 @@ export const BrowseDataHeader = () => {
>
<Title order={2} c="text-primary">
<Group gap="sm">
- <Icon size={24} c="brand" name="database" />
+ <Icon size={24} c="core-brand" name="database" />
{t`Databases`}
</Group>
</Title>
diff --git a/frontend/src/metabase/browse/components/BrowseHeader.module.css b/frontend/src/metabase/browse/components/BrowseHeader.module.css
index 2af39335b09..4d2ac5055ea 100644
--- a/frontend/src/metabase/browse/components/BrowseHeader.module.css
+++ b/frontend/src/metabase/browse/components/BrowseHeader.module.css
@@ -4,6 +4,6 @@
color: var(--mb-color-text-secondary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/browse/databases/BrowseDatabases.module.css b/frontend/src/metabase/browse/databases/BrowseDatabases.module.css
index 1c018193f22..36bc33aa768 100644
--- a/frontend/src/metabase/browse/databases/BrowseDatabases.module.css
+++ b/frontend/src/metabase/browse/databases/BrowseDatabases.module.css
@@ -2,7 +2,7 @@
background-color: var(--mb-color-background-primary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
@@ -10,7 +10,7 @@
background-color: var(--mb-color-background-tertiary);
&:hover {
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
color: var(--mb-color-text-primary-inverse);
}
}
diff --git a/frontend/src/metabase/collections/components/CollectionHeader/CollectionCaption.tsx b/frontend/src/metabase/collections/components/CollectionHeader/CollectionCaption.tsx
index 8c7133a5262..d0d2de9396d 100644
--- a/frontend/src/metabase/collections/components/CollectionHeader/CollectionCaption.tsx
+++ b/frontend/src/metabase/collections/components/CollectionHeader/CollectionCaption.tsx
@@ -92,7 +92,7 @@ const CollectionCaptionIcon = ({ collection }: { collection: Collection }) => {
return (
<PLUGIN_COLLECTION_COMPONENTS.CollectionInstanceAnalyticsIcon
size={24}
- c="brand"
+ c="core-brand"
collection={collection}
entity="collection"
/>
@@ -101,7 +101,7 @@ const CollectionCaptionIcon = ({ collection }: { collection: Collection }) => {
if (PLUGIN_COLLECTIONS.isSyncedCollection(collection) && !isTenantUser) {
// external users should see the normal icon, they should not know about what synced collections are
- return <Icon name="synced_collection" size={24} c="brand" />;
+ return <Icon name="synced_collection" size={24} c="core-brand" />;
}
if (isRootTrashCollection(collection)) {
diff --git a/frontend/src/metabase/collections/components/CollectionHeader/CollectionHeader.styled.tsx b/frontend/src/metabase/collections/components/CollectionHeader/CollectionHeader.styled.tsx
index a480d72dbdf..1c0a6074ce5 100644
--- a/frontend/src/metabase/collections/components/CollectionHeader/CollectionHeader.styled.tsx
+++ b/frontend/src/metabase/collections/components/CollectionHeader/CollectionHeader.styled.tsx
@@ -43,7 +43,7 @@ export const CollectionHeaderButton = styled(
width: 2rem;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-tertiary);
}
diff --git a/frontend/src/metabase/collections/components/CollectionHeader/CollectionUpload.styled.tsx b/frontend/src/metabase/collections/components/CollectionHeader/CollectionUpload.styled.tsx
index b7a7fee7e7b..37f8c6c72c3 100644
--- a/frontend/src/metabase/collections/components/CollectionHeader/CollectionUpload.styled.tsx
+++ b/frontend/src/metabase/collections/components/CollectionHeader/CollectionUpload.styled.tsx
@@ -14,7 +14,7 @@ export const NewBadge = styled.div`
padding: 5px 10px;
font-size: 0.875rem;
font-weight: 700;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-brand);
margin: 0 auto;
border-radius: 6px;
diff --git a/frontend/src/metabase/collections/components/PinDropZone/PinDropZone.styled.tsx b/frontend/src/metabase/collections/components/PinDropZone/PinDropZone.styled.tsx
index bd729a6900d..bd77d6e10f9 100644
--- a/frontend/src/metabase/collections/components/PinDropZone/PinDropZone.styled.tsx
+++ b/frontend/src/metabase/collections/components/PinDropZone/PinDropZone.styled.tsx
@@ -40,7 +40,7 @@ export const PinDropTargetIndicator = styled.div<PinDropTargetRenderArgs>`
border-left: ${(props) =>
`4px solid ${
props.hovered
- ? "var(--mb-color-brand)"
+ ? "var(--mb-color-core-brand)"
: "var(--mb-color-background-tertiary)"
}`};
display: ${(props) => !(props.hovered || props.highlighted) && "none"};
diff --git a/frontend/src/metabase/collections/components/PinnedItemCard/PinnedItemCard.styled.tsx b/frontend/src/metabase/collections/components/PinnedItemCard/PinnedItemCard.styled.tsx
index 18a31579ed7..b5061132846 100644
--- a/frontend/src/metabase/collections/components/PinnedItemCard/PinnedItemCard.styled.tsx
+++ b/frontend/src/metabase/collections/components/PinnedItemCard/PinnedItemCard.styled.tsx
@@ -51,7 +51,7 @@ export const Body = styled.div`
&:hover {
${Title} {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
${ActionsContainer} {
diff --git a/frontend/src/metabase/collections/components/PinnedItemCard/PinnedItemCard.tsx b/frontend/src/metabase/collections/components/PinnedItemCard/PinnedItemCard.tsx
index 2e46ec6dcbc..904cfaa5fd0 100644
--- a/frontend/src/metabase/collections/components/PinnedItemCard/PinnedItemCard.tsx
+++ b/frontend/src/metabase/collections/components/PinnedItemCard/PinnedItemCard.tsx
@@ -127,7 +127,7 @@ function PinnedItemCard({
<Card p={0} radius="md" shadow="none" withBorder>
<Body>
<Header>
- <EntityIcon {...iconData} size="1.5rem" color="brand" />
+ <EntityIcon {...iconData} size="1.5rem" color="core-brand" />
<ActionsContainer h={item ? undefined : "2rem"}>
{hasActions && (
// This component is used within a `<Link>` component,
diff --git a/frontend/src/metabase/collections/components/PinnedItemOverview/PinnedItemOverview.tsx b/frontend/src/metabase/collections/components/PinnedItemOverview/PinnedItemOverview.tsx
index d5942d3b612..39d6c03db34 100644
--- a/frontend/src/metabase/collections/components/PinnedItemOverview/PinnedItemOverview.tsx
+++ b/frontend/src/metabase/collections/components/PinnedItemOverview/PinnedItemOverview.tsx
@@ -286,7 +286,7 @@ function SectionTitle({ title, description, icon }: SectionTitleProps) {
return (
<Stack gap="sm" pb="md">
<Group gap="sm">
- {icon && <Icon name={icon} c="brand" />}
+ {icon && <Icon name={icon} c="core-brand" />}
<h3>{title}</h3>
</Group>
{description && <Box c="text-secondary">{description}</Box>}
diff --git a/frontend/src/metabase/collections/components/PinnedItemSortDropTarget/PinnedItemSortDropTarget.styled.tsx b/frontend/src/metabase/collections/components/PinnedItemSortDropTarget/PinnedItemSortDropTarget.styled.tsx
index cbddb2305db..f3edcd3ef17 100644
--- a/frontend/src/metabase/collections/components/PinnedItemSortDropTarget/PinnedItemSortDropTarget.styled.tsx
+++ b/frontend/src/metabase/collections/components/PinnedItemSortDropTarget/PinnedItemSortDropTarget.styled.tsx
@@ -44,12 +44,16 @@ export const PinDropTargetIndicator = styled.div<PinDropTargetRenderArgs>`
border-left: ${(props) =>
props.isFrontTarget &&
`4px solid ${
- props.hovered ? color("brand") : "var(--mb-color-background-tertiary)"
+ props.hovered
+ ? color("core-brand")
+ : "var(--mb-color-background-tertiary)"
}`};
border-right: ${(props) =>
props.isBackTarget &&
`4px solid ${
- props.hovered ? color("brand") : "var(--mb-color-background-tertiary)"
+ props.hovered
+ ? color("core-brand")
+ : "var(--mb-color-background-tertiary)"
}`};
display: ${(props) => !(props.hovered || props.highlighted) && "none"};
`;
diff --git a/frontend/src/metabase/collections/components/PinnedQuestionCard/PinnedQuestionCard.styled.tsx b/frontend/src/metabase/collections/components/PinnedQuestionCard/PinnedQuestionCard.styled.tsx
index 37b264b4bea..b9ef21441df 100644
--- a/frontend/src/metabase/collections/components/PinnedQuestionCard/PinnedQuestionCard.styled.tsx
+++ b/frontend/src/metabase/collections/components/PinnedQuestionCard/PinnedQuestionCard.styled.tsx
@@ -47,11 +47,11 @@ export const CardRoot = styled(
}
${LegendLabel} {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
${ChartSkeleton.Title} {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
${ChartSkeleton.Description} {
diff --git a/frontend/src/metabase/collections/components/UploadOverlay/UploadOverlay.styled.tsx b/frontend/src/metabase/collections/components/UploadOverlay/UploadOverlay.styled.tsx
index da0cf9533cb..41cf8b8e041 100644
--- a/frontend/src/metabase/collections/components/UploadOverlay/UploadOverlay.styled.tsx
+++ b/frontend/src/metabase/collections/components/UploadOverlay/UploadOverlay.styled.tsx
@@ -16,11 +16,11 @@ export const DragOverlay = styled.div<{ isDragActive: boolean }>`
background-color: var(--mb-color-background-brand);
opacity: ${(props) => (props.isDragActive ? 0.9 : 0)};
transition: opacity 0.2s;
- border: 1px dashed var(--mb-color-brand);
+ border: 1px dashed var(--mb-color-core-brand);
border-radius: 0.5rem;
margin: 0.5rem 4%;
padding: 4rem;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-size: 1.125rem;
font-weight: bold;
pointer-events: none;
diff --git a/frontend/src/metabase/collections/containers/FormCollectionAndDashboardPicker/FormCollectionAndDashboardPicker.tsx b/frontend/src/metabase/collections/containers/FormCollectionAndDashboardPicker/FormCollectionAndDashboardPicker.tsx
index 550cbf578d4..9644d7e1bb9 100644
--- a/frontend/src/metabase/collections/containers/FormCollectionAndDashboardPicker/FormCollectionAndDashboardPicker.tsx
+++ b/frontend/src/metabase/collections/containers/FormCollectionAndDashboardPicker/FormCollectionAndDashboardPicker.tsx
@@ -52,7 +52,7 @@ function ItemName({
if (dashboardId) {
return (
<Flex align="center" gap="sm">
- <Icon name="dashboard" c="brand" />
+ <Icon name="dashboard" c="core-brand" />
<DashboardName id={dashboardId} />
</Flex>
);
@@ -64,7 +64,7 @@ function ItemName({
return (
<Flex align="center" gap="sm">
- <Icon name={collectionIcon.name} c="brand" />
+ <Icon name={collectionIcon.name} c="core-brand" />
{type === "snippet-collections" ? (
<SnippetCollectionName id={collectionId} />
) : (
diff --git a/frontend/src/metabase/comments/components/CommentEditor/CommentEditor.module.css b/frontend/src/metabase/comments/components/CommentEditor/CommentEditor.module.css
index 9dc9b50c759..7f503058111 100644
--- a/frontend/src/metabase/comments/components/CommentEditor/CommentEditor.module.css
+++ b/frontend/src/metabase/comments/components/CommentEditor/CommentEditor.module.css
@@ -199,7 +199,7 @@
&.canSubmit,
&.canSubmit:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/comments/components/Discussion/Discussion.module.css b/frontend/src/metabase/comments/components/Discussion/Discussion.module.css
index a32517e6c65..88e59db1849 100644
--- a/frontend/src/metabase/comments/components/Discussion/Discussion.module.css
+++ b/frontend/src/metabase/comments/components/Discussion/Discussion.module.css
@@ -19,7 +19,7 @@
width: calc(100% + var(--padding-h) + 12.5px);
height: calc(100% + var(--padding-v) + 4px);
background-color: var(--mb-color-background-highlight);
- border: 1px solid var(--mb-color-brand) !important;
+ border: 1px solid var(--mb-color-core-brand) !important;
border-radius: 8px;
pointer-events: none;
}
@@ -70,7 +70,7 @@
.currentUserReaction {
background-color: var(--mb-color-background-selected);
- border: 1px solid var(--mb-color-brand);
+ border: 1px solid var(--mb-color-core-brand);
&:hover {
background-color: var(--mb-color-background-hover);
diff --git a/frontend/src/metabase/common/components/AccordionList/AccordionListCell.tsx b/frontend/src/metabase/common/components/AccordionList/AccordionListCell.tsx
index 10186ede00b..c6cbb609145 100644
--- a/frontend/src/metabase/common/components/AccordionList/AccordionListCell.tsx
+++ b/frontend/src/metabase/common/components/AccordionList/AccordionListCell.tsx
@@ -78,7 +78,7 @@ export const AccordionListCell = forwardRef(function AccordionListCell<
{
alwaysExpanded,
canToggleSections,
- color: colorProp = "brand",
+ color: colorProp = "core-brand",
getItemClassName = (item: TItem) => {
if (
typeof item === "object" &&
diff --git a/frontend/src/metabase/common/components/AggregationPicker/AggregationPicker.tsx b/frontend/src/metabase/common/components/AggregationPicker/AggregationPicker.tsx
index dcbc2bf73bf..4c9d96e3525 100644
--- a/frontend/src/metabase/common/components/AggregationPicker/AggregationPicker.tsx
+++ b/frontend/src/metabase/common/components/AggregationPicker/AggregationPicker.tsx
@@ -422,7 +422,7 @@ export function AggregationPicker({
className={className}
mih="18.75rem"
data-testid="aggregation-column-picker"
- c="summarize"
+ c="core-summarize"
>
<ColumnPickerHeader onClick={handleResetOperator}>
{operatorInfo.displayName}
@@ -432,7 +432,7 @@ export function AggregationPicker({
stageIndex={stageIndex}
columnGroups={columnGroups}
hasTemporalBucketing
- color="summarize"
+ color="core-summarize"
checkIsColumnSelected={checkIsColumnSelected}
onSelect={handleColumnSelect}
onClose={onClose}
@@ -444,7 +444,7 @@ export function AggregationPicker({
return (
<AccordionList<Item, Section>
data-testid="aggregation-picker"
- style={{ color: "var(--mb-color-summarize)" }}
+ style={{ color: "var(--mb-color-core-summarize)" }}
sections={sections}
onChange={handleChange}
onChangeSection={handleSectionChange}
diff --git a/frontend/src/metabase/common/components/BookmarkToggle/BookmarkToggle.module.css b/frontend/src/metabase/common/components/BookmarkToggle/BookmarkToggle.module.css
index ed4c6acd511..3d7af36b50b 100644
--- a/frontend/src/metabase/common/components/BookmarkToggle/BookmarkToggle.module.css
+++ b/frontend/src/metabase/common/components/BookmarkToggle/BookmarkToggle.module.css
@@ -11,7 +11,7 @@
}
.actionIconBookmarked {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.icon {
diff --git a/frontend/src/metabase/common/components/Breadcrumbs/Breadcrumbs.module.css b/frontend/src/metabase/common/components/Breadcrumbs/Breadcrumbs.module.css
index bf2698efee0..782ba13214c 100644
--- a/frontend/src/metabase/common/components/Breadcrumbs/Breadcrumbs.module.css
+++ b/frontend/src/metabase/common/components/Breadcrumbs/Breadcrumbs.module.css
@@ -66,11 +66,11 @@
}
.sidebarBreadcrumb.breadcrumbPath:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
transition: color 0.3s linear;
}
/* the breadcrumb page (current page) should be a different contrasting color */
.sidebarBreadcrumb.breadcrumbPage {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
diff --git a/frontend/src/metabase/common/components/BrowserCrumbs/BrowserCrumbs.module.css b/frontend/src/metabase/common/components/BrowserCrumbs/BrowserCrumbs.module.css
index 7b1a6e35fbf..998e5df7b92 100644
--- a/frontend/src/metabase/common/components/BrowserCrumbs/BrowserCrumbs.module.css
+++ b/frontend/src/metabase/common/components/BrowserCrumbs/BrowserCrumbs.module.css
@@ -12,7 +12,7 @@
cursor: pointer;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/common/components/BucketPickerPopover/BucketPickerPopover.module.css b/frontend/src/metabase/common/components/BucketPickerPopover/BucketPickerPopover.module.css
index 313d3bcf226..d0b0bffceae 100644
--- a/frontend/src/metabase/common/components/BucketPickerPopover/BucketPickerPopover.module.css
+++ b/frontend/src/metabase/common/components/BucketPickerPopover/BucketPickerPopover.module.css
@@ -17,11 +17,11 @@
@media (hover: none) and (pointer: coarse) {
.triggerButton {
visibility: visible;
- color: var(--select-list-item-text-color, var(--mb-color-brand));
+ color: var(--select-list-item-text-color, var(--mb-color-core-brand));
}
.chevronIcon {
- color: var(--select-list-item-text-color, var(--mb-color-brand));
+ color: var(--select-list-item-text-color, var(--mb-color-core-brand));
}
}
@@ -50,7 +50,10 @@
.selectListItem.selectListItem[aria-selected="true"],
.selectListItem.selectListItem:hover {
- background-color: var(--bucket-picker-active-color, var(--mb-color-brand));
+ background-color: var(
+ --bucket-picker-active-color,
+ var(--mb-color-core-brand)
+ );
}
.moreButton {
diff --git a/frontend/src/metabase/common/components/BucketPickerPopover/BucketPickerPopover.tsx b/frontend/src/metabase/common/components/BucketPickerPopover/BucketPickerPopover.tsx
index 128e4284e6b..3c6d78bc661 100644
--- a/frontend/src/metabase/common/components/BucketPickerPopover/BucketPickerPopover.tsx
+++ b/frontend/src/metabase/common/components/BucketPickerPopover/BucketPickerPopover.tsx
@@ -40,7 +40,7 @@ export function BucketPickerPopover({
items,
onSelect,
initiallyVisibleItemsCount,
- color: colorProp = "brand",
+ color: colorProp = "core-brand",
hasChevronDown,
className,
classNames = {},
@@ -150,7 +150,7 @@ export function BucketPickerPopover({
className={S.moreButton}
onClick={handleExpand}
variant="subtle"
- color="brand"
+ color="core-brand"
fullWidth
px="md"
py="sm"
diff --git a/frontend/src/metabase/common/components/Button/Button.styled.tsx b/frontend/src/metabase/common/components/Button/Button.styled.tsx
index b9f6fd8ff10..31c196478b4 100644
--- a/frontend/src/metabase/common/components/Button/Button.styled.tsx
+++ b/frontend/src/metabase/common/components/Button/Button.styled.tsx
@@ -24,7 +24,7 @@ export const ButtonRoot = styled.button<ButtonRootProps>`
css`
border: none;
padding: 0;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
&:hover {
background-color: unset;
@@ -38,7 +38,7 @@ export const ButtonRoot = styled.button<ButtonRootProps>`
height: fit-content;
line-height: 1.5rem;
padding: 0.5rem;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
&:hover {
background-color: var(--mb-color-background-secondary);
diff --git a/frontend/src/metabase/common/components/CollectionListView/CollectionListView.module.css b/frontend/src/metabase/common/components/CollectionListView/CollectionListView.module.css
index fbe701928c9..ff4f30ba177 100644
--- a/frontend/src/metabase/common/components/CollectionListView/CollectionListView.module.css
+++ b/frontend/src/metabase/common/components/CollectionListView/CollectionListView.module.css
@@ -8,5 +8,5 @@
}
.card:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
diff --git a/frontend/src/metabase/common/components/ColorPicker/ColorPicker.stories.tsx b/frontend/src/metabase/common/components/ColorPicker/ColorPicker.stories.tsx
index 89af70187ca..465f953749b 100644
--- a/frontend/src/metabase/common/components/ColorPicker/ColorPicker.stories.tsx
+++ b/frontend/src/metabase/common/components/ColorPicker/ColorPicker.stories.tsx
@@ -24,7 +24,7 @@ export const Default = {
render: Template,
args: {
- value: color("brand"),
- placeholder: color("brand"),
+ value: color("core-brand"),
+ placeholder: color("core-brand"),
},
};
diff --git a/frontend/src/metabase/common/components/ColorPill/ColorPill.stories.tsx b/frontend/src/metabase/common/components/ColorPill/ColorPill.stories.tsx
index ecc77fc0cb0..5e8cde551ba 100644
--- a/frontend/src/metabase/common/components/ColorPill/ColorPill.stories.tsx
+++ b/frontend/src/metabase/common/components/ColorPill/ColorPill.stories.tsx
@@ -17,7 +17,7 @@ export const Default = {
render: Template,
args: {
- color: color("brand"),
+ color: color("core-brand"),
},
};
@@ -25,7 +25,7 @@ export const Auto = {
render: Template,
args: {
- color: color("brand"),
+ color: color("core-brand"),
isAuto: true,
},
};
diff --git a/frontend/src/metabase/common/components/ColorRange/ColorRange.stories.tsx b/frontend/src/metabase/common/components/ColorRange/ColorRange.stories.tsx
index 6bd194857ec..7e3ee14ab88 100644
--- a/frontend/src/metabase/common/components/ColorRange/ColorRange.stories.tsx
+++ b/frontend/src/metabase/common/components/ColorRange/ColorRange.stories.tsx
@@ -17,7 +17,7 @@ export const Default = {
render: Template,
args: {
- colors: [color("white"), color("brand")],
+ colors: [color("white"), color("core-brand")],
},
};
@@ -25,7 +25,7 @@ export const Inverted = {
render: Template,
args: {
- colors: [color("brand"), color("white")],
+ colors: [color("core-brand"), color("white")],
},
};
diff --git a/frontend/src/metabase/common/components/ColorRangeSelector/ColorRangeSelector.stories.tsx b/frontend/src/metabase/common/components/ColorRangeSelector/ColorRangeSelector.stories.tsx
index 7e3edccec4f..29137817186 100644
--- a/frontend/src/metabase/common/components/ColorRangeSelector/ColorRangeSelector.stories.tsx
+++ b/frontend/src/metabase/common/components/ColorRangeSelector/ColorRangeSelector.stories.tsx
@@ -27,8 +27,12 @@ export const Default = {
render: Template,
args: {
- value: [color("white"), color("brand")],
- colors: [color("brand"), color("summarize"), color("filter")],
+ value: [color("white"), color("core-brand")],
+ colors: [
+ color("core-brand"),
+ color("core-summarize"),
+ color("core-filter"),
+ ],
},
};
@@ -36,8 +40,12 @@ export const WithColorRanges = {
render: Template,
args: {
- value: [color("white"), color("brand")],
- colors: [color("brand"), color("summarize"), color("filter")],
+ value: [color("white"), color("core-brand")],
+ colors: [
+ color("core-brand"),
+ color("core-summarize"),
+ color("core-filter"),
+ ],
colorRanges: [
[color("error"), color("white"), color("success")],
[color("error"), color("warning"), color("success")],
@@ -49,16 +57,28 @@ export const WithColorMapping = {
render: Template,
args: {
- value: [color("white"), color("brand")],
- colors: [color("brand"), color("summarize"), color("filter")],
+ value: [color("white"), color("core-brand")],
+ colors: [
+ color("core-brand"),
+ color("core-summarize"),
+ color("core-filter"),
+ ],
colorMapping: {
- [color("brand")]: [color("brand"), color("white"), color("brand")],
- [color("summarize")]: [
- color("summarize"),
+ [color("core-brand")]: [
+ color("core-brand"),
+ color("white"),
+ color("core-brand"),
+ ],
+ [color("core-summarize")]: [
+ color("core-summarize"),
color("white"),
color("error"),
],
- [color("filter")]: [color("filter"), color("white"), color("filter")],
+ [color("core-filter")]: [
+ color("core-filter"),
+ color("white"),
+ color("core-filter"),
+ ],
},
},
};
diff --git a/frontend/src/metabase/common/components/ColorRangeSelector/ColorRangeSelector.unit.spec.tsx b/frontend/src/metabase/common/components/ColorRangeSelector/ColorRangeSelector.unit.spec.tsx
index 79a5fcf6ef9..923ca7a4998 100644
--- a/frontend/src/metabase/common/components/ColorRangeSelector/ColorRangeSelector.unit.spec.tsx
+++ b/frontend/src/metabase/common/components/ColorRangeSelector/ColorRangeSelector.unit.spec.tsx
@@ -9,8 +9,12 @@ import { getColorRangeLabel } from "./ColorRangeToggle";
// Color components only speak hex, so we need to convert the values we use for testing to hex
const color = (name: string) => Color(libColors(name)).hex();
-const DEFAULT_VALUE = [color("white"), color("brand")];
-const DEFAULT_COLORS = [color("brand"), color("summarize"), color("filter")];
+const DEFAULT_VALUE = [color("white"), color("core-brand")];
+const DEFAULT_COLORS = [
+ color("core-brand"),
+ color("core-summarize"),
+ color("core-filter"),
+];
const WHITE_COLOR_RANGE = [color("error"), color("white"), color("success")];
const WARNING_COLOR_RANGE = [
@@ -40,10 +44,10 @@ describe("ColorRangeSelector", () => {
screen.getByRole("button").click();
expect(await screen.findByRole("dialog")).toBeInTheDocument();
- (await screen.findByLabelText(color("summarize"))).click();
+ (await screen.findByLabelText(color("core-summarize"))).click();
expect(onChange).toHaveBeenCalled();
- screen.getByLabelText(color("filter")).click();
+ screen.getByLabelText(color("core-filter")).click();
expect(onChange).toHaveBeenCalled();
});
diff --git a/frontend/src/metabase/common/components/ColorSelector/ColorSelector.stories.tsx b/frontend/src/metabase/common/components/ColorSelector/ColorSelector.stories.tsx
index 45b25c484fd..a7b38a5ce1b 100644
--- a/frontend/src/metabase/common/components/ColorSelector/ColorSelector.stories.tsx
+++ b/frontend/src/metabase/common/components/ColorSelector/ColorSelector.stories.tsx
@@ -24,7 +24,11 @@ export const Default = {
render: Template,
args: {
- value: color("brand"),
- colors: [color("brand"), color("summarize"), color("filter")],
+ value: color("core-brand"),
+ colors: [
+ color("core-brand"),
+ color("core-summarize"),
+ color("core-filter"),
+ ],
},
};
diff --git a/frontend/src/metabase/common/components/CronExpressioInput/CronExpressionInput.module.css b/frontend/src/metabase/common/components/CronExpressioInput/CronExpressionInput.module.css
index 859367b6f21..c5b67278d9e 100644
--- a/frontend/src/metabase/common/components/CronExpressioInput/CronExpressionInput.module.css
+++ b/frontend/src/metabase/common/components/CronExpressioInput/CronExpressionInput.module.css
@@ -1,3 +1,3 @@
.infoIcon:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
diff --git a/frontend/src/metabase/common/components/DatabaseMultiSelect/DatabaseMultiSelect.module.css b/frontend/src/metabase/common/components/DatabaseMultiSelect/DatabaseMultiSelect.module.css
index a7a673a0b1d..c1952ed7409 100644
--- a/frontend/src/metabase/common/components/DatabaseMultiSelect/DatabaseMultiSelect.module.css
+++ b/frontend/src/metabase/common/components/DatabaseMultiSelect/DatabaseMultiSelect.module.css
@@ -3,7 +3,7 @@
}
.input:focus-within {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
.option {
diff --git a/frontend/src/metabase/common/components/DimensionPill/DimensionPill.module.css b/frontend/src/metabase/common/components/DimensionPill/DimensionPill.module.css
index e7269770cd9..afd398061ca 100644
--- a/frontend/src/metabase/common/components/DimensionPill/DimensionPill.module.css
+++ b/frontend/src/metabase/common/components/DimensionPill/DimensionPill.module.css
@@ -19,5 +19,5 @@
}
.dimensionList {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
diff --git a/frontend/src/metabase/common/components/EditBar/EditBar.styled.tsx b/frontend/src/metabase/common/components/EditBar/EditBar.styled.tsx
index 370e44ef8c5..74a3a03e088 100644
--- a/frontend/src/metabase/common/components/EditBar/EditBar.styled.tsx
+++ b/frontend/src/metabase/common/components/EditBar/EditBar.styled.tsx
@@ -18,7 +18,7 @@ export const Root = styled(FullWidthContainer, {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
background-color: ${(props) =>
- alpha(props.admin ? "accent7" : "brand", 0.85)};
+ alpha(props.admin ? "accent7" : "core-brand", 0.85)};
.${ButtonsS.Button} {
color: var(--mb-color-text-primary-inverse);
@@ -29,13 +29,14 @@ export const Root = styled(FullWidthContainer, {
}
.${ButtonsS.ButtonPrimary} {
- color: ${(props) => color(props.admin ? "text-primary" : "brand")};
+ color: ${(props) => color(props.admin ? "text-primary" : "core-brand")};
background-color: var(--mb-color-background-primary);
}
.${ButtonsS.Button}:hover {
color: var(--mb-color-text-primary-inverse);
- background-color: ${(props) => color(props.admin ? "accent7" : "brand")};
+ background-color: ${(props) =>
+ color(props.admin ? "accent7" : "core-brand")};
}
`;
diff --git a/frontend/src/metabase/common/components/EntityIdCard/EntityIdCard.module.css b/frontend/src/metabase/common/components/EntityIdCard/EntityIdCard.module.css
index 07c7f381eb8..c6a6bf2746a 100644
--- a/frontend/src/metabase/common/components/EntityIdCard/EntityIdCard.module.css
+++ b/frontend/src/metabase/common/components/EntityIdCard/EntityIdCard.module.css
@@ -4,7 +4,7 @@
color: var(--mb-color-text-tertiary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
@@ -13,7 +13,7 @@
&:hover {
background-color: var(--mb-color-background-hover);
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
border-radius: 100%;
diff --git a/frontend/src/metabase/common/components/EntityIdCard/EntityIdCard.tsx b/frontend/src/metabase/common/components/EntityIdCard/EntityIdCard.tsx
index ce411bbc19f..8700df4da96 100644
--- a/frontend/src/metabase/common/components/EntityIdCard/EntityIdCard.tsx
+++ b/frontend/src/metabase/common/components/EntityIdCard/EntityIdCard.tsx
@@ -56,7 +56,7 @@ export const EntityInfoIcon = () => {
<Link
target="_new"
to={docsLink}
- style={{ color: "var(--mb-color-brand)" }}
+ style={{ color: "var(--mb-color-core-brand)" }}
>
{t`Learn more`}
</Link>
diff --git a/frontend/src/metabase/common/components/EntityItem/EntityItem.styled.tsx b/frontend/src/metabase/common/components/EntityItem/EntityItem.styled.tsx
index 2dbd643a6e8..6e379fccf05 100644
--- a/frontend/src/metabase/common/components/EntityItem/EntityItem.styled.tsx
+++ b/frontend/src/metabase/common/components/EntityItem/EntityItem.styled.tsx
@@ -15,7 +15,7 @@ function getForeground(model: string, disabled: boolean) {
? darken("border", 0.38)
: model === "dataset"
? color("accent2")
- : color("brand");
+ : color("core-brand");
}
const getItemPadding = (variant?: string) => {
@@ -56,7 +56,7 @@ export const EntityItemWrapper = styled.div<{
&:hover {
color: ${(props) =>
- props.disabled ? color("text-secondary") : color("brand")};
+ props.disabled ? color("text-secondary") : color("core-brand")};
}
`;
@@ -64,7 +64,7 @@ export const EntityItemSpinner = styled(LoadingSpinner)`
display: flex;
flex-direction: column;
justify-content: center;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
`;
export const EntityMenuContainer = styled.div`
diff --git a/frontend/src/metabase/common/components/EntityMenuItem/EntityMenuItem.styled.tsx b/frontend/src/metabase/common/components/EntityMenuItem/EntityMenuItem.styled.tsx
index 8affa2fcb38..53923e4acb1 100644
--- a/frontend/src/metabase/common/components/EntityMenuItem/EntityMenuItem.styled.tsx
+++ b/frontend/src/metabase/common/components/EntityMenuItem/EntityMenuItem.styled.tsx
@@ -26,7 +26,7 @@ export const MenuItemContent = styled.div<MenuItemProps>`
:hover {
color: ${(props) =>
- color((!props.disabled && props.hoverColor) || "brand")};
+ color((!props.disabled && props.hoverColor) || "core-brand")};
background-color: ${(props) =>
!props.disabled && props.hoverBgColor
? color(props.hoverBgColor)
@@ -41,7 +41,7 @@ export const MenuItemContent = styled.div<MenuItemProps>`
:hover > .Icon {
color: ${(props) =>
- color((!props.disabled && props.hoverColor) || "brand")};
+ color((!props.disabled && props.hoverColor) || "core-brand")};
}
`;
diff --git a/frontend/src/metabase/common/components/ErrorPages/DownloadDiagnosticModal.tsx b/frontend/src/metabase/common/components/ErrorPages/DownloadDiagnosticModal.tsx
index d12520947bb..cfff2639fc7 100644
--- a/frontend/src/metabase/common/components/ErrorPages/DownloadDiagnosticModal.tsx
+++ b/frontend/src/metabase/common/components/ErrorPages/DownloadDiagnosticModal.tsx
@@ -67,7 +67,7 @@ export const DownloadDiagnosticModal = ({
<FormSubmitButton
variant="filled"
label={c("This is a verb, not a noun").t`Download`}
- color="brand"
+ color="core-brand"
mt="lg"
mb="sm"
px="lg"
diff --git a/frontend/src/metabase/common/components/ExternalLink/ExternalLink.module.css b/frontend/src/metabase/common/components/ExternalLink/ExternalLink.module.css
index ceaa6f7a7ab..391b16a28a8 100644
--- a/frontend/src/metabase/common/components/ExternalLink/ExternalLink.module.css
+++ b/frontend/src/metabase/common/components/ExternalLink/ExternalLink.module.css
@@ -1,6 +1,6 @@
.ButtonLink {
display: inline-flex;
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
color: var(--mb-color-text-primary-inverse);
align-items: center;
font-weight: bold;
@@ -19,5 +19,5 @@
}
.LinkRoot:focus-visible {
- outline: 2px solid var(--mb-color-brand);
+ outline: 2px solid var(--mb-color-core-brand);
}
diff --git a/frontend/src/metabase/common/components/FormField/FormField.styled.tsx b/frontend/src/metabase/common/components/FormField/FormField.styled.tsx
index d899b8fc6f2..de8cfb0ae14 100644
--- a/frontend/src/metabase/common/components/FormField/FormField.styled.tsx
+++ b/frontend/src/metabase/common/components/FormField/FormField.styled.tsx
@@ -72,7 +72,7 @@ export const FieldInfoIcon = styled(Icon)`
height: 0.75rem;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
`;
diff --git a/frontend/src/metabase/common/components/HelpCard/HelpCard.styled.tsx b/frontend/src/metabase/common/components/HelpCard/HelpCard.styled.tsx
index cf6344227e0..3bb5859b296 100644
--- a/frontend/src/metabase/common/components/HelpCard/HelpCard.styled.tsx
+++ b/frontend/src/metabase/common/components/HelpCard/HelpCard.styled.tsx
@@ -45,14 +45,14 @@ export const CardHeaderLink = styled(ExternalLink)`
export const CardTitle = styled.span`
display: block;
flex: 1 1 auto;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-weight: bold;
margin: 0 0.5rem;
`;
export const CardIcon = styled(Icon)`
flex: 0 0 auto;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
`;
export const CardMessage = styled.div`
@@ -69,7 +69,7 @@ export const CardMessage = styled.div`
}
a {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
cursor: pointer;
font-weight: bold;
}
diff --git a/frontend/src/metabase/common/components/InfoText/InfoTextEditedInfo.styled.tsx b/frontend/src/metabase/common/components/InfoText/InfoTextEditedInfo.styled.tsx
index b101d036de5..d343f232634 100644
--- a/frontend/src/metabase/common/components/InfoText/InfoTextEditedInfo.styled.tsx
+++ b/frontend/src/metabase/common/components/InfoText/InfoTextEditedInfo.styled.tsx
@@ -16,7 +16,7 @@ export const LastEditedInfoText = styled(LastEditInfoLabel)`
cursor: pointer;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
`;
}}
diff --git a/frontend/src/metabase/common/components/Input/Input.tsx b/frontend/src/metabase/common/components/Input/Input.tsx
index 6c794486afe..b745b73e7f9 100644
--- a/frontend/src/metabase/common/components/Input/Input.tsx
+++ b/frontend/src/metabase/common/components/Input/Input.tsx
@@ -16,7 +16,7 @@ import {
InputSubtitle,
} from "./Input.styled";
-export type InputColorScheme = "brand" | "filter";
+export type InputColorScheme = "core-brand" | "core-filter";
export type InputAttributes = Omit<
InputHTMLAttributes<HTMLInputElement>,
@@ -52,7 +52,7 @@ const BaseInput = forwardRef(function Input(
rightIcon,
rightIconTooltip,
subtitle,
- colorScheme = "brand",
+ colorScheme = "core-brand",
value,
onLeftIconClick,
onRightIconClick,
diff --git a/frontend/src/metabase/common/components/ItemsTable/BaseItemsTable.styled.tsx b/frontend/src/metabase/common/components/ItemsTable/BaseItemsTable.styled.tsx
index b639209d687..cb57a4f9f5f 100644
--- a/frontend/src/metabase/common/components/ItemsTable/BaseItemsTable.styled.tsx
+++ b/frontend/src/metabase/common/components/ItemsTable/BaseItemsTable.styled.tsx
@@ -102,7 +102,7 @@ const itemLinkStyle = css`
align-items: center;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
`;
@@ -123,7 +123,7 @@ export const ItemNameCell = styled.td`
&:hover {
${ItemLink}, ${MaybeItemLink}, ${ItemButton} {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
cursor: pointer;
diff --git a/frontend/src/metabase/common/components/LighthouseIllustration/Lighthouse.module.css b/frontend/src/metabase/common/components/LighthouseIllustration/Lighthouse.module.css
index 3769ba8960d..b55866c5712 100644
--- a/frontend/src/metabase/common/components/LighthouseIllustration/Lighthouse.module.css
+++ b/frontend/src/metabase/common/components/LighthouseIllustration/Lighthouse.module.css
@@ -8,7 +8,7 @@
}
.LighthouseColors {
- --illustration-primary: var(--mb-color-brand);
+ --illustration-primary: var(--mb-color-core-brand);
--illustration-secondary: var(--mb-color-illustration-brand-secondary);
--illustration-background: var(--mb-color-background-primary);
}
diff --git a/frontend/src/metabase/common/components/Link/Link.styled.tsx b/frontend/src/metabase/common/components/Link/Link.styled.tsx
index f1b93ae9d34..93761d1e7f3 100644
--- a/frontend/src/metabase/common/components/Link/Link.styled.tsx
+++ b/frontend/src/metabase/common/components/Link/Link.styled.tsx
@@ -17,7 +17,7 @@ export const LinkRoot = styled(
pointer-events: ${(props) => (props.disabled ? "none" : "")};
transition: opacity 0.3s linear;
- ${focusOutlineStyle("brand")};
+ ${focusOutlineStyle("core-brand")};
${(props) => variants[props.variant ?? "default"] ?? ""}
` as unknown as React.FC<LinkProps & LinkVariantProp>;
@@ -25,14 +25,14 @@ export const LinkRoot = styled(
const variants = {
default: "",
brand: css`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
&:hover {
text-decoration: underline;
}
`,
brandBold: css`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-weight: bold;
&:hover {
diff --git a/frontend/src/metabase/common/components/List/List.module.css b/frontend/src/metabase/common/components/List/List.module.css
index c4375c23031..1ab8d3d583a 100644
--- a/frontend/src/metabase/common/components/List/List.module.css
+++ b/frontend/src/metabase/common/components/List/List.module.css
@@ -29,7 +29,7 @@
display: flex;
align-items: center;
height: 100%;
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
.headerButton {
@@ -65,7 +65,7 @@
font-size: 1rem;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/common/components/ListItem/ListItem.styled.tsx b/frontend/src/metabase/common/components/ListItem/ListItem.styled.tsx
index e2ab1315f0c..9f1ec00cb42 100644
--- a/frontend/src/metabase/common/components/ListItem/ListItem.styled.tsx
+++ b/frontend/src/metabase/common/components/ListItem/ListItem.styled.tsx
@@ -20,6 +20,6 @@ export const Root = styled.li<Props>`
export const ListItemLink = styled(Link)`
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
`;
diff --git a/frontend/src/metabase/common/components/Markdown/Markdown.styled.tsx b/frontend/src/metabase/common/components/Markdown/Markdown.styled.tsx
index 03cbf976f4d..88adb0c6e41 100644
--- a/frontend/src/metabase/common/components/Markdown/Markdown.styled.tsx
+++ b/frontend/src/metabase/common/components/Markdown/Markdown.styled.tsx
@@ -35,7 +35,7 @@ export const MarkdownRoot = styled(getComponent(ReactMarkdown))<MarkdownProps>`
cursor: pointer;
text-decoration: none;
color: ${(props) =>
- props.unstyleLinks ? color("text-primary-inverse") : color("brand")};
+ props.unstyleLinks ? color("text-primary-inverse") : color("core-brand")};
}
a:hover {
diff --git a/frontend/src/metabase/common/components/MetabotLogo/MetabotLogo.module.css b/frontend/src/metabase/common/components/MetabotLogo/MetabotLogo.module.css
index ee0d8e767ed..04598e97f2b 100644
--- a/frontend/src/metabase/common/components/MetabotLogo/MetabotLogo.module.css
+++ b/frontend/src/metabase/common/components/MetabotLogo/MetabotLogo.module.css
@@ -1,14 +1,14 @@
.MetabotLogo {
- --metabot-face: var(--mb-color-brand);
+ --metabot-face: var(--mb-color-core-brand);
--metabot-face-bg: var(--mb-color-illustration-brand-tertiary);
--metabot-buttons-bg: var(--mb-color-illustration-brand-secondary);
- --metabot-outline: var(--mb-color-brand);
+ --metabot-outline: var(--mb-color-core-brand);
--metabot-body: var(--mb-color-illustration-brand-secondary);
--metabot-frames: var(--metabot-face);
[data-mantine-color-scheme="dark"] & {
--metabot-face: var(--mb-color-background-secondary);
- --metabot-face-bg: var(--mb-color-brand);
+ --metabot-face-bg: var(--mb-color-core-brand);
--metabot-buttons-bg: var(--mb-color-illustration-brand-secondary);
--metabot-frames: var(--mb-color-background-primary);
}
diff --git a/frontend/src/metabase/common/components/MetadataInfo/ColumnFingerprintInfo/GlobalFingerprint.styled.tsx b/frontend/src/metabase/common/components/MetadataInfo/ColumnFingerprintInfo/GlobalFingerprint.styled.tsx
index 67ebd7951f5..42083292388 100644
--- a/frontend/src/metabase/common/components/MetadataInfo/ColumnFingerprintInfo/GlobalFingerprint.styled.tsx
+++ b/frontend/src/metabase/common/components/MetadataInfo/ColumnFingerprintInfo/GlobalFingerprint.styled.tsx
@@ -35,7 +35,7 @@ export const LoadingSpinner = styled((props: LoadingSpinnerProps) => (
flex-grow: 1;
align-self: center;
justify-content: center;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
`;
export const RelativeContainer = styled.div<{ height?: string }>`
diff --git a/frontend/src/metabase/common/components/MetadataInfo/MetadataInfo.styled.tsx b/frontend/src/metabase/common/components/MetadataInfo/MetadataInfo.styled.tsx
index 5a750e4b033..806db874bee 100644
--- a/frontend/src/metabase/common/components/MetadataInfo/MetadataInfo.styled.tsx
+++ b/frontend/src/metabase/common/components/MetadataInfo/MetadataInfo.styled.tsx
@@ -38,7 +38,7 @@ export const LabelContainer = styled.div<{ color?: ColorName }>`
column-gap: 0.3em;
font-size: 1em;
font-weight: normal;
- color: ${({ color: _color = "brand" }) => color(_color)};
+ color: ${({ color: _color = "core-brand" }) => color(_color)};
margin-bottom: 0.5rem;
`;
@@ -71,7 +71,7 @@ export const LoadingSpinner = styled(LoadingSpinnerBase)`
flex-grow: 1;
align-self: center;
justify-content: center;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
`;
export const Table = styled.table`
diff --git a/frontend/src/metabase/common/components/MetadataInfo/TableInfo/ConnectedTables.styled.tsx b/frontend/src/metabase/common/components/MetadataInfo/TableInfo/ConnectedTables.styled.tsx
index cad4b2a5480..c61b54bd2ec 100644
--- a/frontend/src/metabase/common/components/MetadataInfo/TableInfo/ConnectedTables.styled.tsx
+++ b/frontend/src/metabase/common/components/MetadataInfo/TableInfo/ConnectedTables.styled.tsx
@@ -16,7 +16,7 @@ export const LabelButton = styled.button`
&:hover,
&:focus {
${InteractiveTableLabel} {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
`;
@@ -25,7 +25,7 @@ export const LabelLink = styled(Link)`
&:hover,
&:focus {
${InteractiveTableLabel} {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
`;
diff --git a/frontend/src/metabase/common/components/ModalContent/ModalContent.styled.ts b/frontend/src/metabase/common/components/ModalContent/ModalContent.styled.ts
index 19d6b008cca..46480647adf 100644
--- a/frontend/src/metabase/common/components/ModalContent/ModalContent.styled.ts
+++ b/frontend/src/metabase/common/components/ModalContent/ModalContent.styled.ts
@@ -22,6 +22,6 @@ export const ModalHeaderBackIcon = styled(ModalContentActionIcon)`
flex-shrink: 0;
:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
`;
diff --git a/frontend/src/metabase/common/components/ModalContent/ModalHeader.module.css b/frontend/src/metabase/common/components/ModalContent/ModalHeader.module.css
index f3cd600a1ab..ce0ea118c7e 100644
--- a/frontend/src/metabase/common/components/ModalContent/ModalHeader.module.css
+++ b/frontend/src/metabase/common/components/ModalContent/ModalHeader.module.css
@@ -20,7 +20,7 @@
overflow: hidden;
&.clickable:hover > * {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
cursor: pointer;
}
}
diff --git a/frontend/src/metabase/common/components/MoveQuestionsIntoDashboardsModal/ConfirmMoveDashboardQuestionCandidatesModal.tsx b/frontend/src/metabase/common/components/MoveQuestionsIntoDashboardsModal/ConfirmMoveDashboardQuestionCandidatesModal.tsx
index 7d49d373a74..e117e7451aa 100644
--- a/frontend/src/metabase/common/components/MoveQuestionsIntoDashboardsModal/ConfirmMoveDashboardQuestionCandidatesModal.tsx
+++ b/frontend/src/metabase/common/components/MoveQuestionsIntoDashboardsModal/ConfirmMoveDashboardQuestionCandidatesModal.tsx
@@ -80,13 +80,13 @@ export const ConfirmMoveDashboardQuestionCandidatesModal = ({
<div className={S.tableRow}>
<div className={S.column}>
<Flex gap="sm" align="center">
- <Icon name="folder" c="brand" />
+ <Icon name="folder" c="core-brand" />
{t`Question`}
</Flex>
</div>
<div className={S.column}>
<Flex gap="sm" align="center">
- <Icon name="dashboard" c="brand" />
+ <Icon name="dashboard" c="core-brand" />
{t`Dashboard it'll be moved to`}
</Flex>
</div>
@@ -150,7 +150,7 @@ export const ConfirmMoveDashboardQuestionCandidatesModal = ({
variant="filled"
onClick={onConfirm}
disabled={ctaDisabled}
- color={mutationError ? "error" : "brand"}
+ color={mutationError ? "error" : "core-brand"}
>
{t`Move these questions`}
</Button>
diff --git a/frontend/src/metabase/common/components/MoveQuestionsIntoDashboardsModal/MoveQuestionsIntoDashboardsInfoModal.tsx b/frontend/src/metabase/common/components/MoveQuestionsIntoDashboardsModal/MoveQuestionsIntoDashboardsInfoModal.tsx
index 4235d1cb311..dd30b6866ac 100644
--- a/frontend/src/metabase/common/components/MoveQuestionsIntoDashboardsModal/MoveQuestionsIntoDashboardsInfoModal.tsx
+++ b/frontend/src/metabase/common/components/MoveQuestionsIntoDashboardsModal/MoveQuestionsIntoDashboardsInfoModal.tsx
@@ -21,12 +21,15 @@ export const MoveQuestionsIntoDashboardsInfoModal = ({
>
<List spacing="md" mt="1.25rem">
<List.Item
- icon={<Icon name="collection" c="brand" mb="-2px" />}
+ icon={<Icon name="collection" c="core-brand" mb="-2px" />}
lh="1.5rem"
>
{t`If a question only appears in a single dashboard in this collection, it'll be moved into that dashboard to declutter the collection.`}
</List.Item>
- <List.Item icon={<Icon name="group" c="brand" mb="-2px" />} lh="1.5rem">
+ <List.Item
+ icon={<Icon name="group" c="core-brand" mb="-2px" />}
+ lh="1.5rem"
+ >
{t`Permissions won’t change.`}
</List.Item>
</List>
diff --git a/frontend/src/metabase/common/components/OnboardingIllustration/Onboarding.module.css b/frontend/src/metabase/common/components/OnboardingIllustration/Onboarding.module.css
index 31991c05a10..b39d333cb0c 100644
--- a/frontend/src/metabase/common/components/OnboardingIllustration/Onboarding.module.css
+++ b/frontend/src/metabase/common/components/OnboardingIllustration/Onboarding.module.css
@@ -12,7 +12,7 @@
}
.Colors {
- --illustration-primary: var(--mb-color-brand);
+ --illustration-primary: var(--mb-color-core-brand);
}
.Image {
diff --git a/frontend/src/metabase/common/components/OnboardingStepper/OnboardingStepper.module.css b/frontend/src/metabase/common/components/OnboardingStepper/OnboardingStepper.module.css
index ad5ff2eb879..c2774187c9d 100644
--- a/frontend/src/metabase/common/components/OnboardingStepper/OnboardingStepper.module.css
+++ b/frontend/src/metabase/common/components/OnboardingStepper/OnboardingStepper.module.css
@@ -91,7 +91,7 @@
}
.StepNumberText {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-weight: 700;
line-height: 1;
}
diff --git a/frontend/src/metabase/common/components/PasswordReveal/PasswordReveal.styled.tsx b/frontend/src/metabase/common/components/PasswordReveal/PasswordReveal.styled.tsx
index 2f0dc0cb495..dc28bfaf885 100644
--- a/frontend/src/metabase/common/components/PasswordReveal/PasswordReveal.styled.tsx
+++ b/frontend/src/metabase/common/components/PasswordReveal/PasswordReveal.styled.tsx
@@ -7,6 +7,6 @@ export const PasswordCopyButton = styled(CopyButton)`
cursor: pointer;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
`;
diff --git a/frontend/src/metabase/common/components/Pickers/EntityPicker/utils.ts b/frontend/src/metabase/common/components/Pickers/EntityPicker/utils.ts
index 34b64a279b8..7e8fd9c378c 100644
--- a/frontend/src/metabase/common/components/Pickers/EntityPicker/utils.ts
+++ b/frontend/src/metabase/common/components/Pickers/EntityPicker/utils.ts
@@ -52,7 +52,7 @@ export const useGetEntityPickerIcon = () => {
icon.name = "clock";
}
- return { ...icon, color: undefined, c: icon.color ?? "brand" };
+ return { ...icon, color: undefined, c: icon.color ?? "core-brand" };
},
[getIcon],
);
diff --git a/frontend/src/metabase/common/components/QueryColumnPicker/QueryColumnPicker.tsx b/frontend/src/metabase/common/components/QueryColumnPicker/QueryColumnPicker.tsx
index 716b3417633..ca0b45942e7 100644
--- a/frontend/src/metabase/common/components/QueryColumnPicker/QueryColumnPicker.tsx
+++ b/frontend/src/metabase/common/components/QueryColumnPicker/QueryColumnPicker.tsx
@@ -91,7 +91,7 @@ export function QueryColumnPicker({
hasTemporalBucketing = false,
withDefaultBucketing = true,
withInfoIcons = false,
- color: colorProp = "brand",
+ color: colorProp = "core-brand",
checkIsColumnSelected,
onSelect,
onSelectSection,
diff --git a/frontend/src/metabase/common/components/QuestionDownloadWidget/QuestionDownloadWidget.tsx b/frontend/src/metabase/common/components/QuestionDownloadWidget/QuestionDownloadWidget.tsx
index 0dff56a52ca..920d2bc5b3c 100644
--- a/frontend/src/metabase/common/components/QuestionDownloadWidget/QuestionDownloadWidget.tsx
+++ b/frontend/src/metabase/common/components/QuestionDownloadWidget/QuestionDownloadWidget.tsx
@@ -184,7 +184,7 @@ export const QuestionDownloadWidget = ({
<Link
target="_new"
to={pivotExcelExportsDocsLink}
- style={{ color: "var(--mb-color-brand)" }}
+ style={{ color: "var(--mb-color-core-brand)" }}
>
{t`Read the docs`}
</Link>
diff --git a/frontend/src/metabase/common/components/Radio/Radio.styled.tsx b/frontend/src/metabase/common/components/Radio/Radio.styled.tsx
index e52432af53c..f6e22c85f69 100644
--- a/frontend/src/metabase/common/components/Radio/Radio.styled.tsx
+++ b/frontend/src/metabase/common/components/Radio/Radio.styled.tsx
@@ -148,9 +148,9 @@ export const RadioLabelText = styled.span`
const getSchemeColor = (colorScheme: RadioColorScheme): string => {
switch (colorScheme) {
case "default":
- return color("brand");
+ return color("core-brand");
case "accent7":
- return color("filter");
+ return color("core-filter");
}
};
diff --git a/frontend/src/metabase/common/components/RevisionHistoryTimeline/RevisionHistoryTimeline.stories.tsx b/frontend/src/metabase/common/components/RevisionHistoryTimeline/RevisionHistoryTimeline.stories.tsx
index 5b60fcf5622..3dff1ad5903 100644
--- a/frontend/src/metabase/common/components/RevisionHistoryTimeline/RevisionHistoryTimeline.stories.tsx
+++ b/frontend/src/metabase/common/components/RevisionHistoryTimeline/RevisionHistoryTimeline.stories.tsx
@@ -69,7 +69,7 @@ const cardRevisionLatest = createMockRevision({
const cardModerationVerified: RevisionOrModerationEvent = {
title: "Alice Smith verified this.",
timestamp: "2026-03-15T08:00:00.000Z",
- icon: { name: "verified", color: "brand" },
+ icon: { name: "verified", color: "core-brand" },
};
const cardModerationRemoved: RevisionOrModerationEvent = {
@@ -176,7 +176,7 @@ const dashboardRevisionLatest = createMockRevision({
const dashboardModerationVerified: RevisionOrModerationEvent = {
title: "Carol Williams verified this.",
timestamp: "2026-03-14T11:00:00.000Z",
- icon: { name: "verified", color: "brand" },
+ icon: { name: "verified", color: "core-brand" },
};
const dashboardEvents: RevisionOrModerationEvent[] = [
diff --git a/frontend/src/metabase/common/components/RevisionHistoryTimeline/RevisionHistoryTimeline.tsx b/frontend/src/metabase/common/components/RevisionHistoryTimeline/RevisionHistoryTimeline.tsx
index 3e959b500d0..645e1ca3b0c 100644
--- a/frontend/src/metabase/common/components/RevisionHistoryTimeline/RevisionHistoryTimeline.tsx
+++ b/frontend/src/metabase/common/components/RevisionHistoryTimeline/RevisionHistoryTimeline.tsx
@@ -140,7 +140,7 @@ function EventIconCircle({ icon }: EventIconCircleProps) {
}
return (
- <Center w={24} h={24} className={S.iconCircle} bg="brand">
+ <Center w={24} h={24} className={S.iconCircle} bg="core-brand">
<Icon name={icon.name} c="white" size={12} />
</Center>
);
diff --git a/frontend/src/metabase/common/components/SaveQuestionForm/SaveQuestionForm.module.css b/frontend/src/metabase/common/components/SaveQuestionForm/SaveQuestionForm.module.css
index f568de08431..5ef748e2635 100644
--- a/frontend/src/metabase/common/components/SaveQuestionForm/SaveQuestionForm.module.css
+++ b/frontend/src/metabase/common/components/SaveQuestionForm/SaveQuestionForm.module.css
@@ -7,6 +7,6 @@
text-overflow: ellipsis;
&.labelActive {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/common/components/SearchResult/SearchResult.styled.tsx b/frontend/src/metabase/common/components/SearchResult/SearchResult.styled.tsx
index 0151c8a654b..5a5e65b362e 100644
--- a/frontend/src/metabase/common/components/SearchResult/SearchResult.styled.tsx
+++ b/frontend/src/metabase/common/components/SearchResult/SearchResult.styled.tsx
@@ -34,7 +34,7 @@ export const ResultTitle = styled(Anchor)<
&:focus-visible,
&:focus {
text-decoration: none;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
outline: 0;
}
`;
@@ -61,11 +61,11 @@ export const SearchResultContainer = styled(Box, {
isActive &&
css`
border-radius: ${theme.radius.md};
- color: ${isSelected && "var(--mb-color-brand)"};
+ color: ${isSelected && "var(--mb-color-core-brand)"};
background-color: ${isSelected && "var(--mb-color-background-hover)"};
${ResultTitle} {
- color: ${isSelected && "var(--mb-color-brand)"};
+ color: ${isSelected && "var(--mb-color-core-brand)"};
}
&:hover {
@@ -73,7 +73,7 @@ export const SearchResultContainer = styled(Box, {
cursor: pointer;
${ResultTitle} {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/common/components/SearchResult/components/Context.tsx b/frontend/src/metabase/common/components/SearchResult/components/Context.tsx
index 4ed7afb8373..4ad07c88b0f 100644
--- a/frontend/src/metabase/common/components/SearchResult/components/Context.tsx
+++ b/frontend/src/metabase/common/components/SearchResult/components/Context.tsx
@@ -18,7 +18,7 @@ export function Context({ context }: { context: any[] }) {
}
return (
- <strong key={i} style={{ color: color("brand") }}>
+ <strong key={i} style={{ color: color("core-brand") }}>
{" "}
{text}
</strong>
diff --git a/frontend/src/metabase/common/components/SearchResult/components/ItemIcon.styled.tsx b/frontend/src/metabase/common/components/SearchResult/components/ItemIcon.styled.tsx
index 1cbfcc5f1a5..ffbdb680df3 100644
--- a/frontend/src/metabase/common/components/SearchResult/components/ItemIcon.styled.tsx
+++ b/frontend/src/metabase/common/components/SearchResult/components/ItemIcon.styled.tsx
@@ -14,9 +14,9 @@ function getColorForIconWrapper(
return color("text-secondary");
}
if (type === "collection") {
- return lighten("brand", 0.35);
+ return lighten("core-brand", 0.35);
}
- return color("brand");
+ return color("core-brand");
}
export const IconWrapper = styled.div<{
diff --git a/frontend/src/metabase/common/components/SearchResultLink/SearchResultLink.styled.tsx b/frontend/src/metabase/common/components/SearchResultLink/SearchResultLink.styled.tsx
index 59dd5b6072b..da2ebf2c75e 100644
--- a/frontend/src/metabase/common/components/SearchResultLink/SearchResultLink.styled.tsx
+++ b/frontend/src/metabase/common/components/SearchResultLink/SearchResultLink.styled.tsx
@@ -17,7 +17,7 @@ export const ResultLink = styled.a<ResultLinkProps>`
&:hover,
&:focus,
&:focus-within {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
outline: 0;
}
`
diff --git a/frontend/src/metabase/common/components/SegmentedControl/SegmentedControl.tsx b/frontend/src/metabase/common/components/SegmentedControl/SegmentedControl.tsx
index 012f67ac62f..f119db3da79 100644
--- a/frontend/src/metabase/common/components/SegmentedControl/SegmentedControl.tsx
+++ b/frontend/src/metabase/common/components/SegmentedControl/SegmentedControl.tsx
@@ -59,7 +59,7 @@ export function SegmentedControl<Value extends SegmentedControlValue = number>({
const id = `${name}-${option.value}`;
const labelId = `${name}-${option.value}`;
const iconOnly = !option.name;
- const selectedColor = option.selectedColor || "brand";
+ const selectedColor = option.selectedColor || "core-brand";
return (
<SegmentedItem
key={option.value}
diff --git a/frontend/src/metabase/common/components/Select/Select.tsx b/frontend/src/metabase/common/components/Select/Select.tsx
index c14abbb16d1..2b7fe05ea07 100644
--- a/frontend/src/metabase/common/components/Select/Select.tsx
+++ b/frontend/src/metabase/common/components/Select/Select.tsx
@@ -352,7 +352,7 @@ class BaseSelect<
globalSearch={this.props.globalSearch}
data-testid={testId ? `${testId}-list` : null}
style={{
- color: "var(--mb-color-brand)",
+ color: "var(--mb-color-core-brand)",
outline: "none",
}}
/>
diff --git a/frontend/src/metabase/common/components/SelectButton/SelectButton.styled.tsx b/frontend/src/metabase/common/components/SelectButton/SelectButton.styled.tsx
index b5e75624b83..8eb493e7ff8 100644
--- a/frontend/src/metabase/common/components/SelectButton/SelectButton.styled.tsx
+++ b/frontend/src/metabase/common/components/SelectButton/SelectButton.styled.tsx
@@ -27,20 +27,22 @@ export const SelectButtonRoot = styled.button<SelectButtonRootProps>`
align-items: center;
border: 1px solid
${({ hasValue, highlighted }) =>
- hasValue && highlighted ? color("brand") : color("border")};
+ hasValue && highlighted ? color("core-brand") : color("border")};
background-color: ${({ hasValue, highlighted }) =>
- hasValue && highlighted ? color("brand") : color("background-primary")};
+ hasValue && highlighted
+ ? color("core-brand")
+ : color("background-primary")};
border-radius: var(--mantine-spacing-sm);
font-weight: 700;
min-width: 104px;
color: ${getColor};
&:hover {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
&:focus {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
outline: 2px solid var(--mb-color-focus);
}
diff --git a/frontend/src/metabase/common/components/SelectList/SelectList.unit.spec.tsx b/frontend/src/metabase/common/components/SelectList/SelectList.unit.spec.tsx
index 8beeedb2bcf..f1c813b7a9b 100644
--- a/frontend/src/metabase/common/components/SelectList/SelectList.unit.spec.tsx
+++ b/frontend/src/metabase/common/components/SelectList/SelectList.unit.spec.tsx
@@ -8,7 +8,7 @@ import { SelectList } from "./index";
describe("Components > SelectList", () => {
it("renders a list of items", () => {
render(
- <SelectList color="brand">
+ <SelectList color="core-brand">
<SelectList.Item id="1" name="Item 1" icon="check" onSelect={_.noop} />
<SelectList.Item id="2" name="Item 2" icon="check" onSelect={_.noop} />
</SelectList>,
@@ -42,7 +42,7 @@ describe("Components > SelectList", () => {
const selectSpy = jest.fn();
render(
- <SelectList color="brand">
+ <SelectList color="core-brand">
<SelectList.Item id="1" name="Item 1" icon="check" onSelect={_.noop} />
<SelectList.Item
id="2"
diff --git a/frontend/src/metabase/common/components/SelectList/SelectListItem.styled.tsx b/frontend/src/metabase/common/components/SelectList/SelectListItem.styled.tsx
index 01f125d49c0..8286341dc49 100644
--- a/frontend/src/metabase/common/components/SelectList/SelectListItem.styled.tsx
+++ b/frontend/src/metabase/common/components/SelectList/SelectListItem.styled.tsx
@@ -14,11 +14,11 @@ export const ItemTitle = styled(Text)<TextProps>`
export const ItemIcon = styled(EntityIcon)`
justify-self: end;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
`;
const activeItemCss = css`
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
${ItemIcon},
${ItemTitle} {
diff --git a/frontend/src/metabase/common/components/Sidebar.module.css b/frontend/src/metabase/common/components/Sidebar.module.css
index 74261c14dd3..55947e3ae27 100644
--- a/frontend/src/metabase/common/components/Sidebar.module.css
+++ b/frontend/src/metabase/common/components/Sidebar.module.css
@@ -25,12 +25,12 @@
.item:hover {
background-color: var(--mb-color-background-tertiary);
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.item.selected,
.item.selected .icon {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.item.selected {
@@ -47,7 +47,7 @@
.item:hover .name,
.item.selected .name {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.icon {
diff --git a/frontend/src/metabase/common/components/SidebarHeader/SidebarHeader.module.css b/frontend/src/metabase/common/components/SidebarHeader/SidebarHeader.module.css
index bbbd68f9922..13890aac419 100644
--- a/frontend/src/metabase/common/components/SidebarHeader/SidebarHeader.module.css
+++ b/frontend/src/metabase/common/components/SidebarHeader/SidebarHeader.module.css
@@ -3,7 +3,7 @@
text-decoration: none;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
@@ -17,7 +17,7 @@
cursor: pointer;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
@@ -29,7 +29,7 @@
letter-spacing: 0.06em;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/common/components/Sidesheet/sidesheet.module.css b/frontend/src/metabase/common/components/Sidesheet/sidesheet.module.css
index 1d9f93ee72b..ced651fe68a 100644
--- a/frontend/src/metabase/common/components/Sidesheet/sidesheet.module.css
+++ b/frontend/src/metabase/common/components/Sidesheet/sidesheet.module.css
@@ -40,7 +40,7 @@
line-height: 1rem;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
&:not([data-specificity-hack]) {
diff --git a/frontend/src/metabase/common/components/Tab/Tab.styled.tsx b/frontend/src/metabase/common/components/Tab/Tab.styled.tsx
index d62a137d35c..a83b3ad7276 100644
--- a/frontend/src/metabase/common/components/Tab/Tab.styled.tsx
+++ b/frontend/src/metabase/common/components/Tab/Tab.styled.tsx
@@ -17,9 +17,9 @@ export const TabRoot = styled.button<TabProps>`
flex: 1;
text-align: left;
color: ${(props) =>
- props.isSelected ? color("brand") : color("text-primary")};
+ props.isSelected ? color("core-brand") : color("text-primary")};
background-color: ${(props) =>
- props.isSelected ? alpha("brand", 0.1) : "transparent"};
+ props.isSelected ? alpha("core-brand", 0.1) : "transparent"};
cursor: pointer;
margin-bottom: 0.75rem;
padding: 0.75rem 1rem;
@@ -27,10 +27,10 @@ export const TabRoot = styled.button<TabProps>`
border-radius: var(--mantine-spacing-xs);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
- ${focusOutlineStyle("brand")};
+ ${focusOutlineStyle("core-brand")};
`;
export const TabIcon = styled(Icon)`
diff --git a/frontend/src/metabase/common/components/TabButton/TabButton.styled.tsx b/frontend/src/metabase/common/components/TabButton/TabButton.styled.tsx
index a9bec70e528..069f147e7f5 100644
--- a/frontend/src/metabase/common/components/TabButton/TabButton.styled.tsx
+++ b/frontend/src/metabase/common/components/TabButton/TabButton.styled.tsx
@@ -54,7 +54,7 @@ export const TabButtonRoot = styled.div<TabButtonProps>`
padding: calc(0.6875rem - 0.25rem - 1px) calc(0.5rem - 0.25rem - 2px); /* tab .list padding - input padding - borders/margins */
color: ${(props) =>
props.isSelected && !props.disabled
- ? "var(--mb-color-brand)"
+ ? "var(--mb-color-core-brand)"
: "var(--mb-color-text-primary)"};
opacity: ${(props) => (props.disabled ? 0.3 : 1)};
font-size: var(--mantine-font-size-md);
@@ -66,7 +66,7 @@ export const TabButtonRoot = styled.div<TabButtonProps>`
${(props) =>
!props.disabled &&
css`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
`}
}
@@ -84,7 +84,7 @@ export const TabButtonRoot = styled.div<TabButtonProps>`
!props.disabled &&
css`
:after {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
`}
`;
@@ -100,7 +100,7 @@ export const MenuButton = styled(Button)<TabButtonProps & { isOpen: boolean }>`
props.isOpen &&
!props.disabled &&
css`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-tertiary);
`}
&:hover,:focus {
@@ -110,7 +110,7 @@ export const MenuButton = styled(Button)<TabButtonProps & { isOpen: boolean }>`
color: var(--mb-color-text-primary);
`
: css`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-tertiary);
`}
}
@@ -132,7 +132,7 @@ export const MenuItem = styled.li`
&:focus,
:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-secondary);
}
`;
diff --git a/frontend/src/metabase/common/components/TabButton/TabButton.tsx b/frontend/src/metabase/common/components/TabButton/TabButton.tsx
index c59b7627e58..11d2af9f6dd 100644
--- a/frontend/src/metabase/common/components/TabButton/TabButton.tsx
+++ b/frontend/src/metabase/common/components/TabButton/TabButton.tsx
@@ -197,7 +197,7 @@ export interface RenameableTabButtonProps extends Omit<
// These styles need to be here instead of .styled to avoid circular dependency
const getBorderStyle = () => css`
- box-shadow: 0px 0px 2px 1px var(--mb-color-brand);
+ box-shadow: 0px 0px 2px 1px var(--mb-color-core-brand);
`;
export const RenameableTabButtonStyled = styled(_TabButton)<{
isRenaming: boolean;
diff --git a/frontend/src/metabase/common/components/TabRow/TabRow.stories.tsx b/frontend/src/metabase/common/components/TabRow/TabRow.stories.tsx
index fc8d4ac1e15..a15b47786d8 100644
--- a/frontend/src/metabase/common/components/TabRow/TabRow.stories.tsx
+++ b/frontend/src/metabase/common/components/TabRow/TabRow.stories.tsx
@@ -116,7 +116,7 @@ const DraggableTemplate: StoryFn<typeof TabRow> = (args) => {
href="https://docs.dndkit.com/presets/sortable"
target="_blank"
rel="noreferrer"
- style={{ color: color("brand") }}
+ style={{ color: color("core-brand") }}
>
dnd-kit.
</a>
diff --git a/frontend/src/metabase/common/components/TabRow/TabRow.styled.tsx b/frontend/src/metabase/common/components/TabRow/TabRow.styled.tsx
index 2d5bbc9ae44..26762a701a5 100644
--- a/frontend/src/metabase/common/components/TabRow/TabRow.styled.tsx
+++ b/frontend/src/metabase/common/components/TabRow/TabRow.styled.tsx
@@ -35,7 +35,7 @@ export const ScrollButton = styled.button<ScrollButtonProps>`
color: var(--mb-color-text-tertiary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
${(props) => props.direction}: 0;
diff --git a/frontend/src/metabase/common/components/TextArea/TextArea.styled.tsx b/frontend/src/metabase/common/components/TextArea/TextArea.styled.tsx
index ca987adb377..c46bdac0d42 100644
--- a/frontend/src/metabase/common/components/TextArea/TextArea.styled.tsx
+++ b/frontend/src/metabase/common/components/TextArea/TextArea.styled.tsx
@@ -28,11 +28,11 @@ export const TextAreaRoot = styled.textarea<TextAreaRootProps>`
&:focus,
&:hover {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
transition: border 300ms ease-in-out;
}
- ${focusOutlineStyle("brand")};
+ ${focusOutlineStyle("core-brand")};
&:disabled {
pointer-events: none;
diff --git a/frontend/src/metabase/common/components/Toggle/Toggle.styled.tsx b/frontend/src/metabase/common/components/Toggle/Toggle.styled.tsx
index 12d00da45d7..c4e7a24aeea 100644
--- a/frontend/src/metabase/common/components/Toggle/Toggle.styled.tsx
+++ b/frontend/src/metabase/common/components/Toggle/Toggle.styled.tsx
@@ -25,7 +25,7 @@ const getBackgroundColor = ({
currentColor,
}: ToggleRootProps): string => {
if (checked) {
- return currentColor ?? color("brand");
+ return currentColor ?? color("core-brand");
} else {
return "var(--mb-color-background-tertiary)";
}
@@ -35,7 +35,7 @@ export const ToggleRoot = styled.input<ToggleRootProps>`
appearance: none;
position: relative;
display: inline-block;
- color: ${(props) => props.currentColor ?? color("brand")};
+ color: ${(props) => props.currentColor ?? color("core-brand")};
cursor: pointer;
width: ${(props) => (props.small ? "28px" : "48px")};
height: ${(props) => (props.small ? "17px" : "24px")};
@@ -64,5 +64,5 @@ export const ToggleRoot = styled.input<ToggleRootProps>`
box-shadow: 2px 2px 6px var(--mb-color-shadow);
}
- ${focusOutlineStyle("brand")};
+ ${focusOutlineStyle("core-brand")};
`;
diff --git a/frontend/src/metabase/common/components/TokenField/TokenField.tsx b/frontend/src/metabase/common/components/TokenField/TokenField.tsx
index 51fece32995..143610e1561 100644
--- a/frontend/src/metabase/common/components/TokenField/TokenField.tsx
+++ b/frontend/src/metabase/common/components/TokenField/TokenField.tsx
@@ -50,7 +50,7 @@ export type TokenFieldProps = {
optionRenderer?: (option: any) => React.ReactNode;
valueRenderer?: (value: any) => React.ReactNode;
layoutRenderer?: (args: LayoutRendererArgs) => React.ReactNode;
- color?: "brand";
+ color?: "core-brand";
style?: React.CSSProperties;
className?: string;
valueStyle?: React.CSSProperties;
@@ -490,7 +490,7 @@ class _TokenField extends Component<TokenFieldProps, TokenFieldState> {
<DefaultTokenFieldLayout {...props} />
),
- color = "brand",
+ color = "core-brand",
style = {},
className,
diff --git a/frontend/src/metabase/common/components/TokenFieldItem/TokenFieldItem.styled.ts b/frontend/src/metabase/common/components/TokenFieldItem/TokenFieldItem.styled.ts
index b19d2c597a4..d5dc7f618d9 100644
--- a/frontend/src/metabase/common/components/TokenFieldItem/TokenFieldItem.styled.ts
+++ b/frontend/src/metabase/common/components/TokenFieldItem/TokenFieldItem.styled.ts
@@ -13,7 +13,7 @@ export const TokenFieldItem = styled.li<{
color: ${({ isValid }) =>
isValid ? `var(--mb-color-text-primary-inverse)` : `var(--mb-color-error)`};
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
`;
export const TokenFieldAddon = styled.a<{
diff --git a/frontend/src/metabase/common/components/ToolbarButton/ToolbarButton.tsx b/frontend/src/metabase/common/components/ToolbarButton/ToolbarButton.tsx
index dd9c6343f7d..fe33b5954aa 100644
--- a/frontend/src/metabase/common/components/ToolbarButton/ToolbarButton.tsx
+++ b/frontend/src/metabase/common/components/ToolbarButton/ToolbarButton.tsx
@@ -68,7 +68,7 @@ export const ToolbarButton = forwardRef(function ToolbarButton(
disabled={disabled}
{...actionIconProps}
>
- {children ?? <Icon name={icon} c={isActive ? "brand" : undefined} />}
+ {children ?? <Icon name={icon} c={isActive ? "core-brand" : undefined} />}
</ActionIcon>
);
diff --git a/frontend/src/metabase/common/components/UndoListing.tsx b/frontend/src/metabase/common/components/UndoListing.tsx
index 8a982186962..73114dc8ed0 100644
--- a/frontend/src/metabase/common/components/UndoListing.tsx
+++ b/frontend/src/metabase/common/components/UndoListing.tsx
@@ -116,7 +116,7 @@ function UndoToast({
{undo.showProgress && (
<Progress
size="sm"
- color={undo.pausedAt ? "background-tertiary-inverse" : "brand"}
+ color={undo.pausedAt ? "background-tertiary-inverse" : "core-brand"}
/* we intentionally break a11y - css animation is smoother */
value={100}
pos="absolute"
diff --git a/frontend/src/metabase/common/components/Unsubscribe.styled.tsx b/frontend/src/metabase/common/components/Unsubscribe.styled.tsx
index f3270ad9296..4e4d87b0e1e 100644
--- a/frontend/src/metabase/common/components/Unsubscribe.styled.tsx
+++ b/frontend/src/metabase/common/components/Unsubscribe.styled.tsx
@@ -60,6 +60,6 @@ export const LayoutCard = styled.div`
export const CheckmarkIcon = styled(Icon)`
border-radius: 100%;
padding: 1rem;
- color: var(--mb-color-brand);
- background: ${() => alpha("brand", 0.3)};
+ color: var(--mb-color-core-brand);
+ background: ${() => alpha("core-brand", 0.3)};
`;
diff --git a/frontend/src/metabase/common/components/UserAvatar/UserAvatar.styled.tsx b/frontend/src/metabase/common/components/UserAvatar/UserAvatar.styled.tsx
index dc6e2bf1b8b..4fcfbb49398 100644
--- a/frontend/src/metabase/common/components/UserAvatar/UserAvatar.styled.tsx
+++ b/frontend/src/metabase/common/components/UserAvatar/UserAvatar.styled.tsx
@@ -21,6 +21,6 @@ export const Avatar = styled.div<AvatarProps>`
border-radius: 999px;
font-weight: 900;
line-height: 1;
- background-color: ${({ bg = color("brand") }) => bg};
+ background-color: ${({ bg = color("core-brand") }) => bg};
flex-shrink: 0;
`;
diff --git a/frontend/src/metabase/common/components/ViewButton/ViewButton.tsx b/frontend/src/metabase/common/components/ViewButton/ViewButton.tsx
index 5371634b80f..4adcf091248 100644
--- a/frontend/src/metabase/common/components/ViewButton/ViewButton.tsx
+++ b/frontend/src/metabase/common/components/ViewButton/ViewButton.tsx
@@ -19,7 +19,7 @@ export const ViewButton = ({ className, active, color, ...props }: Props) => {
}}
style={
{
- "--view-button-color": color ?? "var(--mb-color-brand)",
+ "--view-button-color": color ?? "var(--mb-color-core-brand)",
} as CSSProperties
}
{...props}
diff --git a/frontend/src/metabase/common/components/icons/CountdownIcon.module.css b/frontend/src/metabase/common/components/icons/CountdownIcon.module.css
index f1272419ce6..33b46ea71f2 100644
--- a/frontend/src/metabase/common/components/icons/CountdownIcon.module.css
+++ b/frontend/src/metabase/common/components/icons/CountdownIcon.module.css
@@ -1,3 +1,3 @@
.IconRoot {
- color: var(--mb-color-summarize);
+ color: var(--mb-color-core-summarize);
}
diff --git a/frontend/src/metabase/common/components/tree/TreeNode.styled.tsx b/frontend/src/metabase/common/components/tree/TreeNode.styled.tsx
index b2586f1b53f..ab1c6e3b585 100644
--- a/frontend/src/metabase/common/components/tree/TreeNode.styled.tsx
+++ b/frontend/src/metabase/common/components/tree/TreeNode.styled.tsx
@@ -17,8 +17,9 @@ export const TreeNodeRoot = styled.li<TreeNodeRootProps>`
display: flex;
align-items: center;
color: ${(props) =>
- props.isSelected ? color("text-primary-inverse") : color("brand")};
- background-color: ${(props) => (props.isSelected ? color("brand") : "unset")};
+ props.isSelected ? color("text-primary-inverse") : color("core-brand")};
+ background-color: ${(props) =>
+ props.isSelected ? color("core-brand") : "unset"};
padding-left: ${(props) => props.depth + 0.5}rem;
padding-right: 0.5rem;
cursor: pointer;
@@ -26,7 +27,7 @@ export const TreeNodeRoot = styled.li<TreeNodeRootProps>`
&:hover {
background-color: ${(props) =>
- props.isSelected ? color("brand") : lighten("brand", 0.6)};
+ props.isSelected ? color("core-brand") : lighten("core-brand", 0.6)};
}
`;
diff --git a/frontend/src/metabase/common/components/upsells/components/DottedBackground/DottedBackground.tsx b/frontend/src/metabase/common/components/upsells/components/DottedBackground/DottedBackground.tsx
index 7901e31eeff..679e7abe2f1 100644
--- a/frontend/src/metabase/common/components/upsells/components/DottedBackground/DottedBackground.tsx
+++ b/frontend/src/metabase/common/components/upsells/components/DottedBackground/DottedBackground.tsx
@@ -32,7 +32,7 @@ export interface DottedBackgroundProps extends Omit<
* ```
*/
export function DottedBackground({
- dotColor = "var(--mb-color-brand)",
+ dotColor = "var(--mb-color-core-brand)",
dotOpacity = 0.2,
dotSpacing = "1rem",
dotSize = "1px",
diff --git a/frontend/src/metabase/common/components/upsells/components/LineDecorator/LineDecorator.module.css b/frontend/src/metabase/common/components/upsells/components/LineDecorator/LineDecorator.module.css
index eab6087a68e..4d7fa78d0b6 100644
--- a/frontend/src/metabase/common/components/upsells/components/LineDecorator/LineDecorator.module.css
+++ b/frontend/src/metabase/common/components/upsells/components/LineDecorator/LineDecorator.module.css
@@ -1,7 +1,7 @@
.root {
--mb-color-upsell-pattern: color-mix(
in srgb,
- var(--mb-color-brand),
+ var(--mb-color-core-brand),
transparent 80%
);
diff --git a/frontend/src/metabase/common/components/upsells/components/UpgradeModal/UpgradeModalError.tsx b/frontend/src/metabase/common/components/upsells/components/UpgradeModal/UpgradeModalError.tsx
index de382ef5151..2f3ec8cfae5 100644
--- a/frontend/src/metabase/common/components/upsells/components/UpgradeModal/UpgradeModalError.tsx
+++ b/frontend/src/metabase/common/components/upsells/components/UpgradeModal/UpgradeModalError.tsx
@@ -30,7 +30,7 @@ export function UpgradeModalError({ onClose }: UpgradeModalErrorProps) {
</Stack>
<Flex justify="center" w="100%">
- <Button variant="filled" color="brand" onClick={onClose}>
+ <Button variant="filled" color="core-brand" onClick={onClose}>
{t`Close`}
</Button>
</Flex>
diff --git a/frontend/src/metabase/common/components/upsells/components/UpgradeModal/UpgradeModalInitial.tsx b/frontend/src/metabase/common/components/upsells/components/UpgradeModal/UpgradeModalInitial.tsx
index 2539fccb920..f3ca2aa9fb4 100644
--- a/frontend/src/metabase/common/components/upsells/components/UpgradeModal/UpgradeModalInitial.tsx
+++ b/frontend/src/metabase/common/components/upsells/components/UpgradeModal/UpgradeModalInitial.tsx
@@ -132,7 +132,7 @@ export function UpgradeModalInitial({
<Button variant="subtle" onClick={onCancel}>
{t`Cancel`}
</Button>
- <Button variant="filled" color="brand" onClick={onConfirm}>
+ <Button variant="filled" color="core-brand" onClick={onConfirm}>
{buttonText}
</Button>
</Flex>
diff --git a/frontend/src/metabase/common/components/upsells/components/UpgradeModal/UpgradeModalLoading.tsx b/frontend/src/metabase/common/components/upsells/components/UpgradeModal/UpgradeModalLoading.tsx
index 64beb9c3523..ba9ea73f082 100644
--- a/frontend/src/metabase/common/components/upsells/components/UpgradeModal/UpgradeModalLoading.tsx
+++ b/frontend/src/metabase/common/components/upsells/components/UpgradeModal/UpgradeModalLoading.tsx
@@ -44,7 +44,7 @@ export function UpgradeModalLoading({
</Stack>
<Flex justify="center" w="100%">
- <Button variant="filled" color="brand" disabled>
+ <Button variant="filled" color="core-brand" disabled>
{t`Done`}
</Button>
</Flex>
@@ -83,7 +83,7 @@ export function UpgradeModalLoading({
<Flex justify="center" w="100%">
<Button
variant="filled"
- color="brand"
+ color="core-brand"
onClick={() => {
onDone();
window.location.reload();
diff --git a/frontend/src/metabase/common/components/upsells/components/UpsellCardContent.module.css b/frontend/src/metabase/common/components/upsells/components/UpsellCardContent.module.css
index 67e7a40d952..6ce98eeb48c 100644
--- a/frontend/src/metabase/common/components/upsells/components/UpsellCardContent.module.css
+++ b/frontend/src/metabase/common/components/upsells/components/UpsellCardContent.module.css
@@ -1,7 +1,7 @@
.ImageCard {
--mb-color-upsell-pattern-light: color-mix(
in srgb,
- var(--mb-color-brand),
+ var(--mb-color-core-brand),
transparent 95%
);
@@ -22,7 +22,7 @@
border: none;
border-radius: 4px;
padding: 10px 20px;
- background: var(--mb-color-brand);
+ background: var(--mb-color-core-brand);
color: var(--mb-color-text-primary-inverse);
transition:
background 150ms,
@@ -37,6 +37,10 @@
.UpsellCta:hover,
.UpsellCta:focus {
color: var(--mb-color-text-primary-inverse);
- border-color: color-mix(in srgb, var(--mb-color-brand), transparent 12%);
- background-color: color-mix(in srgb, var(--mb-color-brand), transparent 12%);
+ border-color: color-mix(in srgb, var(--mb-color-core-brand), transparent 12%);
+ background-color: color-mix(
+ in srgb,
+ var(--mb-color-core-brand),
+ transparent 12%
+ );
}
diff --git a/frontend/src/metabase/common/components/upsells/components/UpsellGem.module.css b/frontend/src/metabase/common/components/upsells/components/UpsellGem.module.css
index 6321dd8fcb3..d7f4e3f7aff 100644
--- a/frontend/src/metabase/common/components/upsells/components/UpsellGem.module.css
+++ b/frontend/src/metabase/common/components/upsells/components/UpsellGem.module.css
@@ -4,6 +4,6 @@
}
.UpsellGemNew {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
flex-shrink: 0;
}
diff --git a/frontend/src/metabase/css/admin.module.css b/frontend/src/metabase/css/admin.module.css
index 8dc79419b5b..30591cf65b5 100644
--- a/frontend/src/metabase/css/admin.module.css
+++ b/frontend/src/metabase/css/admin.module.css
@@ -87,7 +87,7 @@
}
.AdminListItem.selected {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.AdminListItem.selected,
@@ -119,7 +119,7 @@
}
.AdminInput:focus {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
box-shadow: none;
outline: 0;
}
diff --git a/frontend/src/metabase/css/components/buttons.module.css b/frontend/src/metabase/css/components/buttons.module.css
index 2c0e033682e..a9122bc3742 100644
--- a/frontend/src/metabase/css/components/buttons.module.css
+++ b/frontend/src/metabase/css/components/buttons.module.css
@@ -26,7 +26,7 @@
.Button:focus-visible {
border-color: var(--mb-color-background-primary);
- outline: 1px solid var(--mb-color-brand);
+ outline: 1px solid var(--mb-color-core-brand);
}
@media screen and (--breakpoint-min-lg) {
@@ -59,19 +59,19 @@
.ButtonPrimary {
color: var(--mb-color-text-primary-inverse);
- background: var(--mb-color-brand);
- border-color: var(--mb-color-brand);
+ background: var(--mb-color-core-brand);
+ border-color: var(--mb-color-core-brand);
}
.ButtonPrimary:hover {
color: var(--mb-color-text-primary-inverse);
- border-color: var(--mb-color-brand);
- background-color: var(--mb-color-brand-hover);
+ border-color: var(--mb-color-core-brand);
+ background-color: var(--mb-color-core-brand-hover);
}
.ButtonPrimary:focus-visible {
border-color: var(--mb-color-background-primary);
- outline-color: var(--mb-color-brand);
+ outline-color: var(--mb-color-core-brand);
}
.ButtonWarning {
@@ -114,7 +114,7 @@
.ButtonBorderless:focus-visible {
border-color: var(--mb-color-background-primary);
- outline-color: var(--mb-color-brand);
+ outline-color: var(--mb-color-core-brand);
}
.ButtonOnlyIcon {
@@ -126,7 +126,7 @@
.ButtonOnlyIcon:focus-visible {
border: none;
- outline-color: var(--mb-color-brand);
+ outline-color: var(--mb-color-core-brand);
}
.ButtonGroup {
@@ -162,12 +162,12 @@
.ButtonGroupBrand .Button {
border-color: white;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-tertiary);
}
.ButtonGroupBrand .ButtonActive {
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
color: white;
}
diff --git a/frontend/src/metabase/css/components/form.module.css b/frontend/src/metabase/css/components/form.module.css
index 2317231063b..acc1f69f749 100644
--- a/frontend/src/metabase/css/components/form.module.css
+++ b/frontend/src/metabase/css/components/form.module.css
@@ -49,6 +49,6 @@
.FormInput:focus:not(.noFocus),
.FormField:hover .FormInput:not(.noFocus) {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
transition: border 300ms ease-in-out;
}
diff --git a/frontend/src/metabase/css/core/bordered.module.css b/frontend/src/metabase/css/core/bordered.module.css
index c7bef934778..2b9b164a72b 100644
--- a/frontend/src/metabase/css/core/bordered.module.css
+++ b/frontend/src/metabase/css/core/bordered.module.css
@@ -48,7 +48,7 @@
}
.borderBrand {
- border-color: var(--mb-color-brand) !important;
+ border-color: var(--mb-color-core-brand) !important;
}
.borderTransparent {
diff --git a/frontend/src/metabase/css/core/colors.module.css b/frontend/src/metabase/css/core/colors.module.css
index cfbd2abdd96..610cd0e85dc 100644
--- a/frontend/src/metabase/css/core/colors.module.css
+++ b/frontend/src/metabase/css/core/colors.module.css
@@ -26,7 +26,7 @@
.textBrand,
.textBrandHover:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
/** Non-whitelabeled Metabase brand color */
diff --git a/frontend/src/metabase/css/core/inputs.module.css b/frontend/src/metabase/css/core/inputs.module.css
index c5e087fe17f..c6d0063e034 100644
--- a/frontend/src/metabase/css/core/inputs.module.css
+++ b/frontend/src/metabase/css/core/inputs.module.css
@@ -22,7 +22,7 @@
.input:focus {
outline: none;
- border: 1px solid var(--mb-color-brand);
+ border: 1px solid var(--mb-color-core-brand);
transition: border 0.3s linear;
color: var(--mb-color-text-primary);
}
diff --git a/frontend/src/metabase/css/core/link.module.css b/frontend/src/metabase/css/core/link.module.css
index aafbe12ce20..acf3e6e7cbf 100644
--- a/frontend/src/metabase/css/core/link.module.css
+++ b/frontend/src/metabase/css/core/link.module.css
@@ -5,7 +5,7 @@
.link {
cursor: pointer;
text-decoration: none;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.link:hover {
diff --git a/frontend/src/metabase/css/dashboard.module.css b/frontend/src/metabase/css/dashboard.module.css
index 0c70e5ac7d6..afc5c5ee1de 100644
--- a/frontend/src/metabase/css/dashboard.module.css
+++ b/frontend/src/metabase/css/dashboard.module.css
@@ -50,7 +50,7 @@
}
.BrandColorResizeHandle :global(.react-resizable-handle::after) {
- border-color: var(--mb-color-brand) !important;
+ border-color: var(--mb-color-core-brand) !important;
}
.DashEditing .DashCard:global(.react-draggable-dragging),
@@ -61,7 +61,7 @@
.DashEditing .DashCard:global(.react-draggable-dragging) .Card,
.DashEditing .DashCard:global(.react-resizable-resizing) .Card {
background-color: var(--mb-color-background-tertiary) !important;
- border: 1px solid var(--mb-color-brand);
+ border: 1px solid var(--mb-color-core-brand);
}
.DashEditing .DashCard .VisualizationSlowSpinner {
diff --git a/frontend/src/metabase/css/query_builder.module.css b/frontend/src/metabase/css/query_builder.module.css
index 1de4b9b9ca9..c0df0e88954 100644
--- a/frontend/src/metabase/css/query_builder.module.css
+++ b/frontend/src/metabase/css/query_builder.module.css
@@ -339,7 +339,7 @@
&:hover {
background-color: color-mix(
in srgb,
- var(--mb-color-brand) 3%,
+ var(--mb-color-core-brand) 3%,
color-mix(in srgb, var(--mb-color-background-primary) 75%, transparent)
);
}
diff --git a/frontend/src/metabase/dashboard/components/ActionViz/ExplainerText/ExplainerText.styled.tsx b/frontend/src/metabase/dashboard/components/ActionViz/ExplainerText/ExplainerText.styled.tsx
index 285ab6770bc..e8a1e9a37c2 100644
--- a/frontend/src/metabase/dashboard/components/ActionViz/ExplainerText/ExplainerText.styled.tsx
+++ b/frontend/src/metabase/dashboard/components/ActionViz/ExplainerText/ExplainerText.styled.tsx
@@ -11,5 +11,5 @@ export const ExplainerTextContainer = styled.p`
export const BrandLinkWithLeftMargin = styled(ExternalLink)`
margin-left: var(--mantine-spacing-sm);
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
`;
diff --git a/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/ClickBehaviorSidebarHeader/ClickBehaviorSidebarHeader.module.css b/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/ClickBehaviorSidebarHeader/ClickBehaviorSidebarHeader.module.css
index 13bb3bd4f61..9dbb948af98 100644
--- a/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/ClickBehaviorSidebarHeader/ClickBehaviorSidebarHeader.module.css
+++ b/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/ClickBehaviorSidebarHeader/ClickBehaviorSidebarHeader.module.css
@@ -1,5 +1,5 @@
.ItemName {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.ColumnClickBehaviorHeader {
@@ -8,7 +8,7 @@
cursor: pointer;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/LinkOptions/LinkOption.tsx b/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/LinkOptions/LinkOption.tsx
index 28a1f368ec6..705e201200a 100644
--- a/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/LinkOptions/LinkOption.tsx
+++ b/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/LinkOptions/LinkOption.tsx
@@ -12,7 +12,7 @@ export const LinkOption = ({
onClick: () => void;
}) => (
<SidebarItem onClick={onClick}>
- <SidebarItem.Icon name={icon} c="brand" />
+ <SidebarItem.Icon name={icon} c="core-brand" />
<div>
<SidebarItem.Name>{option}</SidebarItem.Name>
</div>
diff --git a/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/LinkOptions/ValuesYouCanReference.module.css b/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/LinkOptions/ValuesYouCanReference.module.css
index a83e44eb07c..b8b1fbb2bb6 100644
--- a/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/LinkOptions/ValuesYouCanReference.module.css
+++ b/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/LinkOptions/ValuesYouCanReference.module.css
@@ -3,6 +3,6 @@
color: var(--mb-color-text-secondary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/SidebarItem/SidebarItem.module.css b/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/SidebarItem/SidebarItem.module.css
index 98cb55ed1bc..bf893ae7084 100644
--- a/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/SidebarItem/SidebarItem.module.css
+++ b/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/SidebarItem/SidebarItem.module.css
@@ -1,7 +1,8 @@
.CloseIconContainer {
display: flex;
align-items: center;
- border-left: 1px solid color-mix(in srgb, var(--mb-color-brand) 80%, black);
+ border-left: 1px solid
+ color-mix(in srgb, var(--mb-color-core-brand) 80%, black);
}
.IconContainer {
@@ -26,7 +27,7 @@
}
&:hover {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
}
@@ -35,7 +36,7 @@
color: inherit;
&.isSelected {
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
color: var(--mb-color-text-primary-inverse);
}
}
diff --git a/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/TableClickBehaviorView/Column.tsx b/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/TableClickBehaviorView/Column.tsx
index f99dec341e6..4ecb87f5cd9 100644
--- a/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/TableClickBehaviorView/Column.tsx
+++ b/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/TableClickBehaviorView/Column.tsx
@@ -86,7 +86,7 @@ export const Column = ({ column, clickBehavior, onClick }: ColumnProps) => (
<SidebarItem onClick={onClick}>
<SidebarItem.Icon
name={getIconForField(column) as unknown as IconName}
- c="brand"
+ c="core-brand"
size={18}
/>
<div>
diff --git a/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/TypeSelector/TypeSelector.tsx b/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/TypeSelector/TypeSelector.tsx
index 06221e82b60..ff0937abd3f 100644
--- a/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/TypeSelector/TypeSelector.tsx
+++ b/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/TypeSelector/TypeSelector.tsx
@@ -48,7 +48,7 @@ export const BehaviorOption = ({
[S.isSelected]: selected,
})}
name={selected ? "check" : icon}
- c={selected ? "text-primary-inverse" : "brand"}
+ c={selected ? "text-primary-inverse" : "core-brand"}
/>
<SidebarItem.Content>
<SidebarItem.Name>{behaviorOptionName}</SidebarItem.Name>
diff --git a/frontend/src/metabase/dashboard/components/ClickMappings/ClickMappings.module.css b/frontend/src/metabase/dashboard/components/ClickMappings/ClickMappings.module.css
index 3213be4c5cb..ae6bc37027f 100644
--- a/frontend/src/metabase/dashboard/components/ClickMappings/ClickMappings.module.css
+++ b/frontend/src/metabase/dashboard/components/ClickMappings/ClickMappings.module.css
@@ -2,7 +2,7 @@
border-radius: 0.5rem;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-secondary);
}
}
diff --git a/frontend/src/metabase/dashboard/components/DashCard/ClickBehaviorSidebarOverlay/ClickBehaviorSidebarOverlay.module.css b/frontend/src/metabase/dashboard/components/DashCard/ClickBehaviorSidebarOverlay/ClickBehaviorSidebarOverlay.module.css
index afc0eb27630..83fa4e2830e 100644
--- a/frontend/src/metabase/dashboard/components/DashCard/ClickBehaviorSidebarOverlay/ClickBehaviorSidebarOverlay.module.css
+++ b/frontend/src/metabase/dashboard/components/DashCard/ClickBehaviorSidebarOverlay/ClickBehaviorSidebarOverlay.module.css
@@ -1,6 +1,6 @@
.ClickBehaviorDescription {
display: block;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
&.isActive {
color: unset;
@@ -22,7 +22,7 @@
color: var(--mb-color-text-secondary);
&.isActive {
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
color: var(--mb-color-text-primary-inverse);
}
}
diff --git a/frontend/src/metabase/dashboard/components/DashCard/DashCardParameterMapper/DashCardParameterMapper.module.css b/frontend/src/metabase/dashboard/components/DashCard/DashCardParameterMapper/DashCardParameterMapper.module.css
index dc9103cbacf..7425123529f 100644
--- a/frontend/src/metabase/dashboard/components/DashCard/DashCardParameterMapper/DashCardParameterMapper.module.css
+++ b/frontend/src/metabase/dashboard/components/DashCard/DashCardParameterMapper/DashCardParameterMapper.module.css
@@ -27,7 +27,7 @@
.TargetButton {
background-color: var(--mb-color-background-primary);
cursor: pointer;
- border: 2px solid var(--mb-color-brand);
+ border: 2px solid var(--mb-color-core-brand);
border-radius: 8px;
min-height: 30px;
color: var(--mb-color-text-secondary);
@@ -38,8 +38,8 @@
}
&.mapped {
- border-color: var(--mb-color-brand);
- background-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
+ background-color: var(--mb-color-core-brand);
color: var(--mb-color-text-primary-inverse);
}
diff --git a/frontend/src/metabase/dashboard/components/DashCard/DashCardParameterMapper/DisabledNativeCardHelpText/DisabledNativeCardHelpText.module.css b/frontend/src/metabase/dashboard/components/DashCard/DashCardParameterMapper/DisabledNativeCardHelpText/DisabledNativeCardHelpText.module.css
index a6d32569700..e55d4338fef 100644
--- a/frontend/src/metabase/dashboard/components/DashCard/DashCardParameterMapper/DisabledNativeCardHelpText/DisabledNativeCardHelpText.module.css
+++ b/frontend/src/metabase/dashboard/components/DashCard/DashCardParameterMapper/DisabledNativeCardHelpText/DisabledNativeCardHelpText.module.css
@@ -8,7 +8,7 @@
}
.NativeCardLink {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-weight: bold;
margin-top: 0.5rem;
}
diff --git a/frontend/src/metabase/dashboard/components/DashboardHeader/DashboardHeaderView.tsx b/frontend/src/metabase/dashboard/components/DashboardHeader/DashboardHeaderView.tsx
index d8ce6a60a01..ec2f7712608 100644
--- a/frontend/src/metabase/dashboard/components/DashboardHeader/DashboardHeaderView.tsx
+++ b/frontend/src/metabase/dashboard/components/DashboardHeader/DashboardHeaderView.tsx
@@ -155,7 +155,7 @@ export function DashboardHeaderView({
/>
{!!collection && (
<PLUGIN_COLLECTION_COMPONENTS.CollectionInstanceAnalyticsIcon
- c="brand"
+ c="core-brand"
collection={collection}
entity="dashboard"
/>
diff --git a/frontend/src/metabase/dashboard/components/DashboardHeader/buttons/AddSectionButton/AddSectionButton.module.css b/frontend/src/metabase/dashboard/components/DashboardHeader/buttons/AddSectionButton/AddSectionButton.module.css
index 6050cd2e954..381d8a2c91e 100644
--- a/frontend/src/metabase/dashboard/components/DashboardHeader/buttons/AddSectionButton/AddSectionButton.module.css
+++ b/frontend/src/metabase/dashboard/components/DashboardHeader/buttons/AddSectionButton/AddSectionButton.module.css
@@ -1,4 +1,4 @@
/* We have to explicitly hit the data-hovered tag to override its styles on the default Mantine menu item */
.AddSectionButton > button[data-hovered="true"] {
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
diff --git a/frontend/src/metabase/dashboard/components/DashboardInfoSidebar/DashboardDetails.tsx b/frontend/src/metabase/dashboard/components/DashboardInfoSidebar/DashboardDetails.tsx
index f83c97fd6ae..65f6fe835b0 100644
--- a/frontend/src/metabase/dashboard/components/DashboardInfoSidebar/DashboardDetails.tsx
+++ b/frontend/src/metabase/dashboard/components/DashboardInfoSidebar/DashboardDetails.tsx
@@ -65,7 +65,7 @@ export const DashboardDetails = ({ dashboard }: { dashboard: Dashboard }) => {
<FixedSizeIcon
name="folder"
className={SidebarStyles.IconMargin}
- c="brand"
+ c="core-brand"
/>
<div>
<Text>
@@ -95,7 +95,7 @@ function SharingDisplay({ dashboard }: { dashboard: Dashboard }) {
<SidesheetCardSection title={t`Visibility`}>
{publicUUID && (
<Flex gap="sm" align="center">
- <FixedSizeIcon name="globe" c="brand" />
+ <FixedSizeIcon name="globe" c="core-brand" />
<Text>{t`Shared publicly`}</Text>
<DashboardPublicLinkPopover
diff --git a/frontend/src/metabase/dashboard/components/DashboardInfoSidebar/DashboardEntityIdCard/DashboardEntityIdCard.module.css b/frontend/src/metabase/dashboard/components/DashboardInfoSidebar/DashboardEntityIdCard/DashboardEntityIdCard.module.css
index d074ebd59db..5d0b5ff2c2b 100644
--- a/frontend/src/metabase/dashboard/components/DashboardInfoSidebar/DashboardEntityIdCard/DashboardEntityIdCard.module.css
+++ b/frontend/src/metabase/dashboard/components/DashboardInfoSidebar/DashboardEntityIdCard/DashboardEntityIdCard.module.css
@@ -2,6 +2,6 @@
cursor: pointer;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/dashboard/components/DashboardInfoSidebar/DashboardInfoSidebar.module.css b/frontend/src/metabase/dashboard/components/DashboardInfoSidebar/DashboardInfoSidebar.module.css
index 58b8ee51786..7359048e2ca 100644
--- a/frontend/src/metabase/dashboard/components/DashboardInfoSidebar/DashboardInfoSidebar.module.css
+++ b/frontend/src/metabase/dashboard/components/DashboardInfoSidebar/DashboardInfoSidebar.module.css
@@ -1,5 +1,5 @@
.BrandCircle {
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
color: var(--mb-color-text-primary-inverse);
border-radius: 50%;
height: 1rem;
diff --git a/frontend/src/metabase/dashboard/components/DashboardMoveModal.module.css b/frontend/src/metabase/dashboard/components/DashboardMoveModal.module.css
index 69819af3f07..9c9f82d9a03 100644
--- a/frontend/src/metabase/dashboard/components/DashboardMoveModal.module.css
+++ b/frontend/src/metabase/dashboard/components/DashboardMoveModal.module.css
@@ -1,3 +1,3 @@
.CollectionLink {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
diff --git a/frontend/src/metabase/dashboard/components/DashboardMoveModal.tsx b/frontend/src/metabase/dashboard/components/DashboardMoveModal.tsx
index db10bb62eec..27dca80394f 100644
--- a/frontend/src/metabase/dashboard/components/DashboardMoveModal.tsx
+++ b/frontend/src/metabase/dashboard/components/DashboardMoveModal.tsx
@@ -80,7 +80,7 @@ const DashboardMoveToast = ({
className={S.CollectionLink}
to={Urls.collection(collection)}
style={{ marginInlineStart: ".25em" }}
- color={color("brand")}
+ color={color("core-brand")}
>
{collection.name}
</Link>
diff --git a/frontend/src/metabase/dashboard/components/ParameterLinkedFilters/ParameterLinkedFilters.tsx b/frontend/src/metabase/dashboard/components/ParameterLinkedFilters/ParameterLinkedFilters.tsx
index 8e865c2d712..25b3449a870 100644
--- a/frontend/src/metabase/dashboard/components/ParameterLinkedFilters/ParameterLinkedFilters.tsx
+++ b/frontend/src/metabase/dashboard/components/ParameterLinkedFilters/ParameterLinkedFilters.tsx
@@ -128,7 +128,7 @@ function NoUsableParameters() {
className={S.buttonLink}
key="link"
component="span"
- c="brand"
+ c="core-brand"
role="button"
onClick={onShowAddParameterPopover}
>
@@ -338,8 +338,8 @@ type FieldListProps = {
const FieldList = ({ filteredIds, filteringIds }: FieldListProps) => {
return (
<SimpleGrid cols={2} px="md" pb="md" spacing="sm" fz="sm">
- <Box c="brand">{t`Filtering column`}</Box>
- <Box c="brand">{t`Filtered column`}</Box>
+ <Box c="core-brand">{t`Filtering column`}</Box>
+ <Box c="core-brand">{t`Filtered column`}</Box>
{filteringIds.map((filteringId) => (
<Fragment key={filteringId}>
{filteredIds.map((filteredId) => (
diff --git a/frontend/src/metabase/dashboard/components/QuestionPicker/QuestionList.module.css b/frontend/src/metabase/dashboard/components/QuestionPicker/QuestionList.module.css
index c362921bd26..94581acf1f4 100644
--- a/frontend/src/metabase/dashboard/components/QuestionPicker/QuestionList.module.css
+++ b/frontend/src/metabase/dashboard/components/QuestionPicker/QuestionList.module.css
@@ -14,7 +14,7 @@
}
.QuestionListItemIcon {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.QuestionListItemIcon:last-child {
@@ -23,13 +23,13 @@
.VisualizerButton {
visibility: hidden;
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
color: var(--mb-color-text-primary-inverse);
cursor: pointer;
&:hover {
color: var(--mb-color-text-primary-inverse);
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/dashboard/components/RefreshWidget/RefreshOption/RefreshOption.module.css b/frontend/src/metabase/dashboard/components/RefreshWidget/RefreshOption/RefreshOption.module.css
index b239f2f90a1..801409f8911 100644
--- a/frontend/src/metabase/dashboard/components/RefreshWidget/RefreshOption/RefreshOption.module.css
+++ b/frontend/src/metabase/dashboard/components/RefreshWidget/RefreshOption/RefreshOption.module.css
@@ -13,7 +13,7 @@
}
.RefreshOptionItem.Enabled.Selected {
- color: var(--mb-color-summarize);
+ color: var(--mb-color-core-summarize);
}
.RefreshOptionItem .RefreshOptionIcon {
@@ -25,7 +25,7 @@
}
.RefreshOptionItem:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.RefreshOptionItem:hover .RefreshOptionIcon {
diff --git a/frontend/src/metabase/dashboard/containers/AutomaticDashboardApp/AutomaticDashboardApp.module.css b/frontend/src/metabase/dashboard/containers/AutomaticDashboardApp/AutomaticDashboardApp.module.css
index 8a3754a9e7f..bf5ff3bec3e 100644
--- a/frontend/src/metabase/dashboard/containers/AutomaticDashboardApp/AutomaticDashboardApp.module.css
+++ b/frontend/src/metabase/dashboard/containers/AutomaticDashboardApp/AutomaticDashboardApp.module.css
@@ -3,7 +3,7 @@
display: block;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/dashboard/visualizations/Heading/Heading.styled.tsx b/frontend/src/metabase/dashboard/visualizations/Heading/Heading.styled.tsx
index 8b290553e3c..65a98865804 100644
--- a/frontend/src/metabase/dashboard/visualizations/Heading/Heading.styled.tsx
+++ b/frontend/src/metabase/dashboard/visualizations/Heading/Heading.styled.tsx
@@ -30,11 +30,11 @@ export const InputContainer = styled.div<InputContainerProps>`
.${DashboardS.DashCard}:hover &,
.${DashboardS.DashCard}:focus-within & {
- border: 1px solid var(--mb-color-brand);
+ border: 1px solid var(--mb-color-core-brand);
}
.${DashboardS.DashCard}.resizing & {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
${({ isPreviewing, isEmpty }) =>
@@ -45,7 +45,7 @@ export const InputContainer = styled.div<InputContainerProps>`
${({ isEmpty }) =>
isEmpty &&
css`
- border: 1px solid var(--mb-color-brand);
+ border: 1px solid var(--mb-color-core-brand);
color: var(--mb-color-text-tertiary);
`}
`;
diff --git a/frontend/src/metabase/dashboard/visualizations/LinkViz/EntityDisplay.tsx b/frontend/src/metabase/dashboard/visualizations/LinkViz/EntityDisplay.tsx
index 2ffe0f14764..c4fbc608f08 100644
--- a/frontend/src/metabase/dashboard/visualizations/LinkViz/EntityDisplay.tsx
+++ b/frontend/src/metabase/dashboard/visualizations/LinkViz/EntityDisplay.tsx
@@ -34,7 +34,7 @@ export const EntityDisplay = ({
return (
<EntityDisplayContainer>
<LeftContainer>
- <EntityIcon color="brand" {...getSearchIcon(entity)} />
+ <EntityIcon color="core-brand" {...getSearchIcon(entity)} />
<EllipsifiedEntityContainer>{entity?.name}</EllipsifiedEntityContainer>
</LeftContainer>
{showDescription && entity?.description && (
@@ -68,7 +68,7 @@ export const UrlLinkDisplay = ({ url }: { url?: string }) => {
return (
<EntityDisplayContainer>
<LeftContainer>
- <Icon c={"brand"} name={urlIcon} />
+ <Icon c={"core-brand"} name={urlIcon} />
<EllipsifiedEntityContainer>
{!isEmpty(url) ? url : t`Choose a link`}
</EllipsifiedEntityContainer>
diff --git a/frontend/src/metabase/dashboard/visualizations/LinkViz/LinkViz.styled.tsx b/frontend/src/metabase/dashboard/visualizations/LinkViz/LinkViz.styled.tsx
index 8a926f5e869..528b9e5124a 100644
--- a/frontend/src/metabase/dashboard/visualizations/LinkViz/LinkViz.styled.tsx
+++ b/frontend/src/metabase/dashboard/visualizations/LinkViz/LinkViz.styled.tsx
@@ -34,7 +34,7 @@ export const CardLink = styled(Link)`
font-weight: bold;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
`;
@@ -49,7 +49,7 @@ export const ExternalLink = styled(BaseExternalLink)`
font-weight: bold;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
`;
diff --git a/frontend/src/metabase/dashboard/visualizations/Text/Text.styled.tsx b/frontend/src/metabase/dashboard/visualizations/Text/Text.styled.tsx
index d0f2810fd24..cd31cbb1edb 100644
--- a/frontend/src/metabase/dashboard/visualizations/Text/Text.styled.tsx
+++ b/frontend/src/metabase/dashboard/visualizations/Text/Text.styled.tsx
@@ -70,17 +70,17 @@ export const EditModeContainer = styled(TextCardWrapper)<EditModeProps>`
.${DashboardS.DashCard}:hover &,
.${DashboardS.DashCard}:focus-within & {
- border: 1px solid var(--mb-color-brand);
+ border: 1px solid var(--mb-color-core-brand);
}
.${DashboardS.DashCard}.resizing & {
- border: 1px solid var(--mb-color-brand);
+ border: 1px solid var(--mb-color-core-brand);
}
${({ isEmpty }) =>
isEmpty &&
css`
- border: 1px solid var(--mb-color-brand);
+ border: 1px solid var(--mb-color-core-brand);
color: var(--mb-color-text-tertiary);
`}
@@ -247,7 +247,7 @@ export const ReactMarkdownStyleWrapper = styled.div`
font-weight: bold;
cursor: pointer;
text-decoration: none;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.text-card-markdown a:hover {
diff --git a/frontend/src/metabase/data-grid/components/BaseCell/BaseCell.tsx b/frontend/src/metabase/data-grid/components/BaseCell/BaseCell.tsx
index 501e6ff14b1..ef6fc453ecc 100644
--- a/frontend/src/metabase/data-grid/components/BaseCell/BaseCell.tsx
+++ b/frontend/src/metabase/data-grid/components/BaseCell/BaseCell.tsx
@@ -28,16 +28,16 @@ export const BaseCell = memo(function BaseCell({
const cellStyle = useMemo(() => {
if (isSelected) {
return {
- "--cell-bg-color": `color-mix(in srgb, var(--mb-color-brand), transparent 80%)`,
+ "--cell-bg-color": `color-mix(in srgb, var(--mb-color-core-brand), transparent 80%)`,
"--cell-hover-bg-color": hasHover
- ? `color-mix(in srgb, var(--mb-color-brand), transparent 80%)`
+ ? `color-mix(in srgb, var(--mb-color-core-brand), transparent 80%)`
: undefined,
} as React.CSSProperties;
}
if (!backgroundColor) {
return {
"--cell-hover-bg-color": hasHover
- ? `color-mix(in srgb, var(--mb-color-brand), transparent 90%)`
+ ? `color-mix(in srgb, var(--mb-color-core-brand), transparent 90%)`
: undefined,
} as React.CSSProperties;
}
diff --git a/frontend/src/metabase/data-grid/components/BodyCell/BodyCell.tsx b/frontend/src/metabase/data-grid/components/BodyCell/BodyCell.tsx
index 48ff4872c10..82eec38e064 100644
--- a/frontend/src/metabase/data-grid/components/BodyCell/BodyCell.tsx
+++ b/frontend/src/metabase/data-grid/components/BodyCell/BodyCell.tsx
@@ -49,7 +49,7 @@ export const BodyCell = memo(function BodyCell<TValue>({
const contentStyle = useMemo(() => {
if (variant === "pill") {
- const color = "var(--mb-color-brand)";
+ const color = "var(--mb-color-core-brand)";
const backgroundColor = `color-mix(in srgb, ${color}, transparent 92%)`;
const border = `1px solid color-mix(in srgb, ${color}, transparent 86%)`;
return {
diff --git a/frontend/src/metabase/data-grid/components/DataGrid/DataGrid.module.css b/frontend/src/metabase/data-grid/components/DataGrid/DataGrid.module.css
index 01c87562b97..bb26b2b6679 100644
--- a/frontend/src/metabase/data-grid/components/DataGrid/DataGrid.module.css
+++ b/frontend/src/metabase/data-grid/components/DataGrid/DataGrid.module.css
@@ -88,7 +88,7 @@
&.active {
background-color: color-mix(
in srgb,
- var(--mb-color-brand),
+ var(--mb-color-core-brand),
transparent 90%
);
}
@@ -137,12 +137,12 @@
.resizer:hover {
opacity: 1;
- background: var(--mb-color-brand);
+ background: var(--mb-color-core-brand);
}
.resizer:active {
opacity: 1;
- background: var(--mb-color-brand);
+ background: var(--mb-color-core-brand);
}
.headerWrapper {
diff --git a/frontend/src/metabase/data-grid/components/ExpandButton/ExpandButton.module.css b/frontend/src/metabase/data-grid/components/ExpandButton/ExpandButton.module.css
index e5dfa3f59ca..072d6dde9b7 100644
--- a/frontend/src/metabase/data-grid/components/ExpandButton/ExpandButton.module.css
+++ b/frontend/src/metabase/data-grid/components/ExpandButton/ExpandButton.module.css
@@ -7,10 +7,10 @@
}
.button {
- border: 1px solid color-mix(in srgb, var(--mb-color-brand) 30%, white);
+ border: 1px solid color-mix(in srgb, var(--mb-color-core-brand) 30%, white);
padding: 0.125rem 0.25rem;
border-radius: 0.25rem;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: transparent;
cursor: pointer;
transition: all 0.2s;
@@ -22,5 +22,5 @@
.button:hover {
color: var(--mb-color-text-primary-inverse);
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
diff --git a/frontend/src/metabase/data-grid/components/SortableHeader/SortableHeader.module.css b/frontend/src/metabase/data-grid/components/SortableHeader/SortableHeader.module.css
index 86358f040f6..2cbc98c0e4e 100644
--- a/frontend/src/metabase/data-grid/components/SortableHeader/SortableHeader.module.css
+++ b/frontend/src/metabase/data-grid/components/SortableHeader/SortableHeader.module.css
@@ -27,7 +27,7 @@
touch-action: none;
opacity: 0;
transition: opacity 0.2s;
- background: var(--mb-color-brand);
+ background: var(--mb-color-core-brand);
}
.resizeHandle:hover,
diff --git a/frontend/src/metabase/data-studio/app/pages/DataStudioLayout/DataStudioLayout.module.css b/frontend/src/metabase/data-studio/app/pages/DataStudioLayout/DataStudioLayout.module.css
index fe4c5e6e5b1..160bd0bac32 100644
--- a/frontend/src/metabase/data-studio/app/pages/DataStudioLayout/DataStudioLayout.module.css
+++ b/frontend/src/metabase/data-studio/app/pages/DataStudioLayout/DataStudioLayout.module.css
@@ -41,7 +41,7 @@
&:hover,
&.selected {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
.icon {
color: inherit;
diff --git a/frontend/src/metabase/data-studio/common/components/Breadcrumbs/Breadcrumbs.module.css b/frontend/src/metabase/data-studio/common/components/Breadcrumbs/Breadcrumbs.module.css
index 1d1c1f8f816..dc98720b729 100644
--- a/frontend/src/metabase/data-studio/common/components/Breadcrumbs/Breadcrumbs.module.css
+++ b/frontend/src/metabase/data-studio/common/components/Breadcrumbs/Breadcrumbs.module.css
@@ -4,5 +4,5 @@
}
.link:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
diff --git a/frontend/src/metabase/data-studio/common/components/DataStudioBreadcrumbs/DataStudioBreadcrumbs.module.css b/frontend/src/metabase/data-studio/common/components/DataStudioBreadcrumbs/DataStudioBreadcrumbs.module.css
index faab8d14e62..e20eeceb07b 100644
--- a/frontend/src/metabase/data-studio/common/components/DataStudioBreadcrumbs/DataStudioBreadcrumbs.module.css
+++ b/frontend/src/metabase/data-studio/common/components/DataStudioBreadcrumbs/DataStudioBreadcrumbs.module.css
@@ -1,5 +1,5 @@
.breadcrumbs {
a:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/data-studio/common/components/EntityList/EntityListItem.tsx b/frontend/src/metabase/data-studio/common/components/EntityList/EntityListItem.tsx
index 5cae9dd5e29..39e25a70716 100644
--- a/frontend/src/metabase/data-studio/common/components/EntityList/EntityListItem.tsx
+++ b/frontend/src/metabase/data-studio/common/components/EntityList/EntityListItem.tsx
@@ -18,7 +18,7 @@ export function EntityListItem({
name,
description,
icon,
- iconColor = "brand",
+ iconColor = "core-brand",
href,
}: EntityListItemProps) {
return (
diff --git a/frontend/src/metabase/data-studio/common/components/PaneHeader/PaneHeader.tsx b/frontend/src/metabase/data-studio/common/components/PaneHeader/PaneHeader.tsx
index 8087edb2ed9..5cda8ce6f49 100644
--- a/frontend/src/metabase/data-studio/common/components/PaneHeader/PaneHeader.tsx
+++ b/frontend/src/metabase/data-studio/common/components/PaneHeader/PaneHeader.tsx
@@ -66,7 +66,7 @@ export const PaneHeader = ({
<Stack gap="md">
{title && (
<Group align="center" gap="sm" wrap="nowrap">
- {icon && <FixedSizeIcon name={icon} c="brand" size={20} />}
+ {icon && <FixedSizeIcon name={icon} c="core-brand" size={20} />}
{title}
{menu}
</Group>
@@ -157,7 +157,7 @@ export function PaneHeaderTabs({ tabs, withBackground }: PaneHeaderTabsProps) {
to={to}
size="sm"
radius="xl"
- c={selected ? "brand" : undefined}
+ c={selected ? "core-brand" : undefined}
bg={selected ? "background-selected" : backgroundColor}
bd="none"
leftSection={icon != null ? <FixedSizeIcon name={icon} /> : null}
diff --git a/frontend/src/metabase/data-studio/components/RevisionHistory/ClausePill.module.css b/frontend/src/metabase/data-studio/components/RevisionHistory/ClausePill.module.css
index 2b45a37d9cf..5758d133493 100644
--- a/frontend/src/metabase/data-studio/components/RevisionHistory/ClausePill.module.css
+++ b/frontend/src/metabase/data-studio/components/RevisionHistory/ClausePill.module.css
@@ -1,13 +1,17 @@
.filter {
- color: var(--mb-color-filter);
- background-color: color-mix(in srgb, var(--mb-color-filter) 14%, transparent);
+ color: var(--mb-color-core-filter);
+ background-color: color-mix(
+ in srgb,
+ var(--mb-color-core-filter) 14%,
+ transparent
+ );
border-radius: 1rem;
overflow-wrap: anywhere;
}
.aggregation {
color: var(--mb-color-text-primary-inverse);
- background-color: var(--mb-color-summarize);
+ background-color: var(--mb-color-core-summarize);
border-radius: 1rem;
overflow-wrap: anywhere;
}
diff --git a/frontend/src/metabase/data-studio/data-model/components/TablePicker/components/TablePicker.tsx b/frontend/src/metabase/data-studio/data-model/components/TablePicker/components/TablePicker.tsx
index 37b6129f972..a47132c34fd 100644
--- a/frontend/src/metabase/data-studio/data-model/components/TablePicker/components/TablePicker.tsx
+++ b/frontend/src/metabase/data-studio/data-model/components/TablePicker/components/TablePicker.tsx
@@ -115,7 +115,7 @@ export function TablePicker({
{filtersCount > 0 && (
<Badge
- bg="brand"
+ bg="core-brand"
circle
size="8"
pos="absolute"
diff --git a/frontend/src/metabase/data-studio/data-model/components/TableSection/components/MeasureItem.tsx b/frontend/src/metabase/data-studio/data-model/components/TableSection/components/MeasureItem.tsx
index c77176f4309..18a121a8fb4 100644
--- a/frontend/src/metabase/data-studio/data-model/components/TableSection/components/MeasureItem.tsx
+++ b/frontend/src/metabase/data-studio/data-model/components/TableSection/components/MeasureItem.tsx
@@ -24,7 +24,7 @@ export function MeasureItem({ measure, href }: MeasureItemProps) {
>
<Stack gap="xs">
<Flex align="center" gap="sm">
- <Icon name="ruler" c="brand" />
+ <Icon name="ruler" c="core-brand" />
<Ellipsified lines={1} tooltip={measure.name}>
<Text fw="bold">{measure.name}</Text>
</Ellipsified>
diff --git a/frontend/src/metabase/data-studio/data-model/components/TableSection/components/SegmentItem.tsx b/frontend/src/metabase/data-studio/data-model/components/TableSection/components/SegmentItem.tsx
index 809d7c9ccca..de17d15fa24 100644
--- a/frontend/src/metabase/data-studio/data-model/components/TableSection/components/SegmentItem.tsx
+++ b/frontend/src/metabase/data-studio/data-model/components/TableSection/components/SegmentItem.tsx
@@ -24,7 +24,7 @@ export function SegmentItem({ segment, href }: SegmentItemProps) {
>
<Stack gap="xs">
<Flex align="center" gap="sm">
- <Icon name="segment" c="brand" />
+ <Icon name="segment" c="core-brand" />
<Ellipsified lines={1} tooltip={segment.name}>
<Text fw="bold">{segment.name}</Text>
</Ellipsified>
diff --git a/frontend/src/metabase/data-studio/data-model/components/TableSection/components/TableAttributesEditSingle.tsx b/frontend/src/metabase/data-studio/data-model/components/TableSection/components/TableAttributesEditSingle.tsx
index ed89d29dadb..8a8327421e1 100644
--- a/frontend/src/metabase/data-studio/data-model/components/TableSection/components/TableAttributesEditSingle.tsx
+++ b/frontend/src/metabase/data-studio/data-model/components/TableSection/components/TableAttributesEditSingle.tsx
@@ -233,13 +233,13 @@ function TransformLink({ table }: { table: Table }) {
textDecoration: "none",
}}
bg="background-brand"
- c="brand"
+ c="core-brand"
>
<Icon name="insight" size={12} />
<Text
size="sm"
fw="bold"
- c="brand"
+ c="core-brand"
style={{
fontSize: 12,
lineHeight: "16px",
diff --git a/frontend/src/metabase/data-studio/data-model/components/TableSection/components/TableCollection.module.css b/frontend/src/metabase/data-studio/data-model/components/TableSection/components/TableCollection.module.css
index 35d5ac3e5d7..6b3c4d45592 100644
--- a/frontend/src/metabase/data-studio/data-model/components/TableSection/components/TableCollection.module.css
+++ b/frontend/src/metabase/data-studio/data-model/components/TableSection/components/TableCollection.module.css
@@ -1,5 +1,5 @@
.link {
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/databases/components/DatabaseEngineList/DatabaseEngineList.tsx b/frontend/src/metabase/databases/components/DatabaseEngineList/DatabaseEngineList.tsx
index 57f4816cb18..361be1e4c04 100644
--- a/frontend/src/metabase/databases/components/DatabaseEngineList/DatabaseEngineList.tsx
+++ b/frontend/src/metabase/databases/components/DatabaseEngineList/DatabaseEngineList.tsx
@@ -155,7 +155,7 @@ const DatabaseLogo = ({ db }: { db: string }) => {
{logo ? (
<img src={logo} width="100%" />
) : (
- <Icon name="database" c="brand" />
+ <Icon name="database" c="core-brand" />
)}
</Center>
);
diff --git a/frontend/src/metabase/detail-view/components/DetailsGroup/Value/Value.module.css b/frontend/src/metabase/detail-view/components/DetailsGroup/Value/Value.module.css
index 42c3c540f0a..dbc440b7e55 100644
--- a/frontend/src/metabase/detail-view/components/DetailsGroup/Value/Value.module.css
+++ b/frontend/src/metabase/detail-view/components/DetailsGroup/Value/Value.module.css
@@ -7,7 +7,7 @@
text-decoration: underline solid var(--mb-color-border) 1px;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
}
@@ -17,7 +17,7 @@
border: 1px solid var(--mb-color-border);
&:hover {
- color: var(--mb-color-brand) !important;
+ color: var(--mb-color-core-brand) !important;
}
}
diff --git a/frontend/src/metabase/detail-view/components/Header/Header.tsx b/frontend/src/metabase/detail-view/components/Header/Header.tsx
index d6380cb27bd..960e0609208 100644
--- a/frontend/src/metabase/detail-view/components/Header/Header.tsx
+++ b/frontend/src/metabase/detail-view/components/Header/Header.tsx
@@ -53,7 +53,7 @@ export const Header = ({ columns, icon, row }: Props) => {
{!avatar && icon && (
<Group h={IMAGE_SIZE} justify="center" w={IMAGE_SIZE}>
- <Icon c="brand" name={icon} size={24} />
+ <Icon c="core-brand" name={icon} size={24} />
</Group>
)}
</Box>
diff --git a/frontend/src/metabase/detail-view/components/Nav/Breadcrumb/Breadcrumb.module.css b/frontend/src/metabase/detail-view/components/Nav/Breadcrumb/Breadcrumb.module.css
index 9e69e83e7ba..749d3464b2f 100644
--- a/frontend/src/metabase/detail-view/components/Nav/Breadcrumb/Breadcrumb.module.css
+++ b/frontend/src/metabase/detail-view/components/Nav/Breadcrumb/Breadcrumb.module.css
@@ -4,6 +4,6 @@
.link {
&:hover {
- color: var(--mb-color-brand) !important;
+ color: var(--mb-color-core-brand) !important;
}
}
diff --git a/frontend/src/metabase/detail-view/components/Relationships/Relationship/Relationship.module.css b/frontend/src/metabase/detail-view/components/Relationships/Relationship/Relationship.module.css
index 473afa5ba8c..a9e5dc06ecb 100644
--- a/frontend/src/metabase/detail-view/components/Relationships/Relationship/Relationship.module.css
+++ b/frontend/src/metabase/detail-view/components/Relationships/Relationship/Relationship.module.css
@@ -3,7 +3,7 @@
&:hover {
.text {
- color: var(--mb-color-brand) !important;
+ color: var(--mb-color-core-brand) !important;
}
}
}
diff --git a/frontend/src/metabase/documents/components/DocumentPage.tsx b/frontend/src/metabase/documents/components/DocumentPage.tsx
index 39e7516bf41..6ec9755e538 100644
--- a/frontend/src/metabase/documents/components/DocumentPage.tsx
+++ b/frontend/src/metabase/documents/components/DocumentPage.tsx
@@ -650,7 +650,7 @@ export const DocumentPage = ({
// only applies when trying to duplicate a document that has unsaved changes
opened={duplicateModalMode === "leave"}
confirmButtonText={t`Save changes`}
- confirmButtonProps={{ color: "brand" }}
+ confirmButtonProps={{ color: "core-brand" }}
data-testid="save-confirmation"
message={t`You need to save before you can duplicate this document.`}
title={t`Save your changes first`}
diff --git a/frontend/src/metabase/documents/components/Editor/Editor.module.css b/frontend/src/metabase/documents/components/Editor/Editor.module.css
index 5259a969715..2956504c7f2 100644
--- a/frontend/src/metabase/documents/components/Editor/Editor.module.css
+++ b/frontend/src/metabase/documents/components/Editor/Editor.module.css
@@ -207,7 +207,7 @@
margin: 1rem auto;
&:global(.ProseMirror-selectednode) {
- box-shadow: 0 0 0 1px var(--mb-color-brand);
+ box-shadow: 0 0 0 1px var(--mb-color-core-brand);
border-radius: var(--mantine-radius-xs);
}
}
diff --git a/frontend/src/metabase/documents/components/Editor/shared/MenuItems.module.css b/frontend/src/metabase/documents/components/Editor/shared/MenuItems.module.css
index 45de637f21d..f3095f535a8 100644
--- a/frontend/src/metabase/documents/components/Editor/shared/MenuItems.module.css
+++ b/frontend/src/metabase/documents/components/Editor/shared/MenuItems.module.css
@@ -13,7 +13,7 @@
}
.menuItem[aria-selected="true"] {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-hover);
}
@@ -34,7 +34,7 @@
.menuItemWithBorder:hover,
.menuItemWithBorder[aria-selected="true"] {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-hover);
}
diff --git a/frontend/src/metabase/embedding-sdk/theme/default-component-theme.ts b/frontend/src/metabase/embedding-sdk/theme/default-component-theme.ts
index f93062d23c2..aba51b18a1e 100644
--- a/frontend/src/metabase/embedding-sdk/theme/default-component-theme.ts
+++ b/frontend/src/metabase/embedding-sdk/theme/default-component-theme.ts
@@ -37,7 +37,7 @@ export const DEFAULT_METABASE_COMPONENT_THEME: MetabaseComponentTheme = {
textColor: "var(--mb-color-text-secondary)",
backgroundColor: "var(--mb-color-background-secondary)",
hoverTextColor: "var(--mb-color-text-primary-inverse)",
- hoverBackgroundColor: "var(--mb-color-brand)",
+ hoverBackgroundColor: "var(--mb-color-core-brand)",
},
},
emptyContent: {
@@ -69,7 +69,7 @@ export const DEFAULT_METABASE_COMPONENT_THEME: MetabaseComponentTheme = {
textColor: "var(--mb-color-text-primary)",
},
idColumn: {
- textColor: "var(--mb-color-brand)",
+ textColor: "var(--mb-color-core-brand)",
},
},
pivotTable: {
@@ -127,7 +127,7 @@ export const DEFAULT_EMBEDDED_COMPONENT_THEME: MetabaseComponentTheme = merge<
expandButton: {
backgroundColor: "transparent",
hoverTextColor: "var(--mb-color-text-primary-inverse)",
- hoverBackgroundColor: "var(--mb-color-brand)",
+ hoverBackgroundColor: "var(--mb-color-core-brand)",
},
},
},
diff --git a/frontend/src/metabase/embedding-sdk/theme/embedding-color-palette.ts b/frontend/src/metabase/embedding-sdk/theme/embedding-color-palette.ts
index b947ca020d8..c598c270964 100644
--- a/frontend/src/metabase/embedding-sdk/theme/embedding-color-palette.ts
+++ b/frontend/src/metabase/embedding-sdk/theme/embedding-color-palette.ts
@@ -26,12 +26,12 @@ export const SDK_TO_MAIN_APP_COLORS_MAPPING: Record<
MappableSdkColor,
ColorName[]
> = {
- brand: ["brand"],
+ brand: ["brand", "core-brand"],
"brand-hover": ["background-hover"],
"brand-hover-light": ["background-hover"],
border: ["border"],
- filter: ["filter"],
- summarize: ["summarize"],
+ filter: ["filter", "core-filter"],
+ summarize: ["summarize", "core-summarize"],
"text-primary": ["text-primary"],
"text-secondary": ["text-secondary"],
"text-tertiary": ["text-tertiary"],
@@ -103,12 +103,14 @@ export function getEmbeddingColorPalette(
const chartColors =
sdkColors.charts && mapChartColorsToAccents(sdkColors.charts);
- return {
+ const merged: ColorPalette = {
...originalColors,
...appPalette,
...mappedSdkColors,
...chartColors,
};
+
+ return merged;
}
/**
diff --git a/frontend/src/metabase/embedding/components/EmbedModal/StaticEmbedSetupPane/CodeSample.styled.tsx b/frontend/src/metabase/embedding/components/EmbedModal/StaticEmbedSetupPane/CodeSample.styled.tsx
index b22d64a747d..7395ed69971 100644
--- a/frontend/src/metabase/embedding/components/EmbedModal/StaticEmbedSetupPane/CodeSample.styled.tsx
+++ b/frontend/src/metabase/embedding/components/EmbedModal/StaticEmbedSetupPane/CodeSample.styled.tsx
@@ -9,6 +9,6 @@ export const CopyButtonContainer = styled.div`
z-index: 2;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
`;
diff --git a/frontend/src/metabase/embedding/components/PublicLinkPopover/PublicLinkCopyPanel.module.css b/frontend/src/metabase/embedding/components/PublicLinkPopover/PublicLinkCopyPanel.module.css
index 5d58dce8e97..7dd7ae89968 100644
--- a/frontend/src/metabase/embedding/components/PublicLinkPopover/PublicLinkCopyPanel.module.css
+++ b/frontend/src/metabase/embedding/components/PublicLinkPopover/PublicLinkCopyPanel.module.css
@@ -4,7 +4,7 @@
cursor: pointer;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/embedding/components/PublicLinkPopover/PublicLinkCopyPanel.tsx b/frontend/src/metabase/embedding/components/PublicLinkPopover/PublicLinkCopyPanel.tsx
index a8f643c669e..27a2ebdd8bb 100644
--- a/frontend/src/metabase/embedding/components/PublicLinkPopover/PublicLinkCopyPanel.tsx
+++ b/frontend/src/metabase/embedding/components/PublicLinkPopover/PublicLinkCopyPanel.tsx
@@ -88,7 +88,11 @@ export const PublicLinkCopyPanel = ({
data-testid="extension-option"
key={extension}
tt="uppercase"
- c={extension === selectedExtension ? "brand" : "text-tertiary"}
+ c={
+ extension === selectedExtension
+ ? "core-brand"
+ : "text-tertiary"
+ }
fw={700}
onClick={() =>
onChangeExtension?.(
diff --git a/frontend/src/metabase/embedding/embedding-hub/components/SetupPermissionsAndTenantsPage/DataSegregationStrategyPicker.module.css b/frontend/src/metabase/embedding/embedding-hub/components/SetupPermissionsAndTenantsPage/DataSegregationStrategyPicker.module.css
index 9638c636c1c..4d962d20416 100644
--- a/frontend/src/metabase/embedding/embedding-hub/components/SetupPermissionsAndTenantsPage/DataSegregationStrategyPicker.module.css
+++ b/frontend/src/metabase/embedding/embedding-hub/components/SetupPermissionsAndTenantsPage/DataSegregationStrategyPicker.module.css
@@ -4,15 +4,15 @@
}
.radioCard[data-checked] {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
background: var(--mb-color-background-hover);
}
.radioCard[data-checked] .radioCardTitle {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.cardIcon {
flex-shrink: 0;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
diff --git a/frontend/src/metabase/embedding/embedding-hub/components/SetupPermissionsAndTenantsPage/RlsDataSelector/RlsDataSelector.module.css b/frontend/src/metabase/embedding/embedding-hub/components/SetupPermissionsAndTenantsPage/RlsDataSelector/RlsDataSelector.module.css
index 90d368f7246..76995f87e76 100644
--- a/frontend/src/metabase/embedding/embedding-hub/components/SetupPermissionsAndTenantsPage/RlsDataSelector/RlsDataSelector.module.css
+++ b/frontend/src/metabase/embedding/embedding-hub/components/SetupPermissionsAndTenantsPage/RlsDataSelector/RlsDataSelector.module.css
@@ -31,9 +31,9 @@
}
.PickerTrigger:hover {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
.AddTableButton {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
diff --git a/frontend/src/metabase/embedding/embedding-hub/components/StepperWithCards/StepperWithCards.tsx b/frontend/src/metabase/embedding/embedding-hub/components/StepperWithCards/StepperWithCards.tsx
index 2d8829a2f05..557c030566c 100644
--- a/frontend/src/metabase/embedding/embedding-hub/components/StepperWithCards/StepperWithCards.tsx
+++ b/frontend/src/metabase/embedding/embedding-hub/components/StepperWithCards/StepperWithCards.tsx
@@ -236,7 +236,7 @@ const StepAlert = ({
<Alert
icon={<Icon size={14} name={type === "success" ? "check" : "info"} />}
mt="xl"
- color={type === "info" ? "brand" : type}
+ color={type === "info" ? "core-brand" : type}
lh="lg"
classNames={{
wrapper: S.infoAlertWrapper,
diff --git a/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/Appearance/ThemeCard.module.css b/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/Appearance/ThemeCard.module.css
index ab05d8d6726..b6b78efd9d3 100644
--- a/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/Appearance/ThemeCard.module.css
+++ b/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/Appearance/ThemeCard.module.css
@@ -6,7 +6,7 @@
}
.cardSelected {
- border: 2px solid var(--mb-color-brand);
+ border: 2px solid var(--mb-color-core-brand);
padding: 7px;
}
diff --git a/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/Appearance/ThemeCard.tsx b/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/Appearance/ThemeCard.tsx
index 11285d46589..b9c504a60b1 100644
--- a/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/Appearance/ThemeCard.tsx
+++ b/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/Appearance/ThemeCard.tsx
@@ -8,7 +8,7 @@ import S from "./ThemeCard.module.css";
export function getThemeColors(colors?: Partial<MetabaseColors>): string[] {
return [
- colors?.brand ?? "var(--mb-color-brand)",
+ colors?.brand ?? "var(--mb-color-core-brand)",
colors?.["text-primary"] ?? "var(--mb-color-text-primary)",
colors?.background ?? "var(--mb-color-background)",
];
diff --git a/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/Appearance/ThemeSelectorSection.tsx b/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/Appearance/ThemeSelectorSection.tsx
index 1c728080a90..445769001ec 100644
--- a/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/Appearance/ThemeSelectorSection.tsx
+++ b/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/Appearance/ThemeSelectorSection.tsx
@@ -105,7 +105,7 @@ export const ThemeSelectorSection = ({
<Icon
name="revert"
size={12}
- c="brand"
+ c="core-brand"
onClick={handleResetColors}
aria-label={t`Reset colors`}
style={{ cursor: "pointer" }}
diff --git a/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/steps/AppearanceStep/AppearanceCard.tsx b/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/steps/AppearanceStep/AppearanceCard.tsx
index b6705d511ff..f246cd0de16 100644
--- a/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/steps/AppearanceStep/AppearanceCard.tsx
+++ b/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/steps/AppearanceStep/AppearanceCard.tsx
@@ -104,7 +104,7 @@ export const AppearanceCard = () => {
<Icon
name="revert"
size={16}
- c="brand"
+ c="core-brand"
onClick={resetTheme}
aria-label={t`Reset colors`}
style={{ cursor: "pointer" }}
diff --git a/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/steps/AppearanceStep/BehaviorCard.tsx b/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/steps/AppearanceStep/BehaviorCard.tsx
index 83fa9209599..ae8d83ec7dd 100644
--- a/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/steps/AppearanceStep/BehaviorCard.tsx
+++ b/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/steps/AppearanceStep/BehaviorCard.tsx
@@ -271,7 +271,7 @@ export const BehaviorCard = () => {
href={behaviorDocsUrl}
target="_blank"
rel="noreferrer"
- c="brand"
+ c="core-brand"
lh={1}
>
<Icon
diff --git a/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/steps/SelectEmbedExperienceStep/ResourceCard.tsx b/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/steps/SelectEmbedExperienceStep/ResourceCard.tsx
index 7fd934a7679..a33284ee98c 100644
--- a/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/steps/SelectEmbedExperienceStep/ResourceCard.tsx
+++ b/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/components/steps/SelectEmbedExperienceStep/ResourceCard.tsx
@@ -191,7 +191,7 @@ export const ResourceCard = () => {
<Button
variant="default"
- leftSection={<Icon name={icon} c="brand" size={16} />}
+ leftSection={<Icon name={icon} c="core-brand" size={16} />}
rightSection={<Icon name="chevrondown" size={12} />}
onClick={openPicker}
data-testid="embed-browse-entity-button"
diff --git a/frontend/src/metabase/embedding/mcp/ChartTypePicker/ChartTypePicker.tsx b/frontend/src/metabase/embedding/mcp/ChartTypePicker/ChartTypePicker.tsx
index eade5b1c218..67448812300 100644
--- a/frontend/src/metabase/embedding/mcp/ChartTypePicker/ChartTypePicker.tsx
+++ b/frontend/src/metabase/embedding/mcp/ChartTypePicker/ChartTypePicker.tsx
@@ -39,7 +39,10 @@ export function ChartTypePicker({
aria-label={type}
className={value === type ? S.selected : undefined}
>
- <Icon name={icon} c={value === type ? "brand" : "text-primary"} />
+ <Icon
+ name={icon}
+ c={value === type ? "core-brand" : "text-primary"}
+ />
</ActionIcon>
))}
</Flex>
diff --git a/frontend/src/metabase/embedding/mcp/McpFeedbackButtons.tsx b/frontend/src/metabase/embedding/mcp/McpFeedbackButtons.tsx
index 1da77bb235b..f264d0b593e 100644
--- a/frontend/src/metabase/embedding/mcp/McpFeedbackButtons.tsx
+++ b/frontend/src/metabase/embedding/mcp/McpFeedbackButtons.tsx
@@ -66,7 +66,7 @@ const FeedbackButton = forwardRef<HTMLButtonElement, FeedbackButtonProps>(
<Icon
name={icon}
size="1rem"
- c={hasBeenClicked ? "brand" : "currentColor"}
+ c={hasBeenClicked ? "core-brand" : "currentColor"}
/>
</ActionIcon>
);
diff --git a/frontend/src/metabase/forms/components/FormSection/FormSection.styled.tsx b/frontend/src/metabase/forms/components/FormSection/FormSection.styled.tsx
index 3d598d5c370..985eb50a76b 100644
--- a/frontend/src/metabase/forms/components/FormSection/FormSection.styled.tsx
+++ b/frontend/src/metabase/forms/components/FormSection/FormSection.styled.tsx
@@ -8,6 +8,6 @@ export const CollapsibleSectionContent = styled.div`
margin-bottom: 1rem;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
`;
diff --git a/frontend/src/metabase/forms/components/FormTextInput/FormTextInput.styled.tsx b/frontend/src/metabase/forms/components/FormTextInput/FormTextInput.styled.tsx
index 2d27ea578a1..2cc9cc1fe60 100644
--- a/frontend/src/metabase/forms/components/FormTextInput/FormTextInput.styled.tsx
+++ b/frontend/src/metabase/forms/components/FormTextInput/FormTextInput.styled.tsx
@@ -14,11 +14,11 @@ export const CopyWidgetButton = styled(CopyButton)`
border-left: 1px solid var(--mb-color-border);
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
outline: none;
&:hover {
color: var(--mb-color-text-primary-inverse);
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
`;
diff --git a/frontend/src/metabase/home/components/EmbedHomepage/HeaderWithDismiss.tsx b/frontend/src/metabase/home/components/EmbedHomepage/HeaderWithDismiss.tsx
index b95a3ed9dd3..61bec95a850 100644
--- a/frontend/src/metabase/home/components/EmbedHomepage/HeaderWithDismiss.tsx
+++ b/frontend/src/metabase/home/components/EmbedHomepage/HeaderWithDismiss.tsx
@@ -19,7 +19,7 @@ export const HeaderWithDismiss = ({ onDismiss }: HeaderWithDismissProps) => {
<Menu.Target>
<Text
fw="bold"
- c="brand"
+ c="core-brand"
className={CS.cursorDefault}
>{t`Hide these`}</Text>
</Menu.Target>
diff --git a/frontend/src/metabase/home/components/HomeModelCard/HomeModelCard.tsx b/frontend/src/metabase/home/components/HomeModelCard/HomeModelCard.tsx
index 8ea05e2d593..1f4e6ca8b0c 100644
--- a/frontend/src/metabase/home/components/HomeModelCard/HomeModelCard.tsx
+++ b/frontend/src/metabase/home/components/HomeModelCard/HomeModelCard.tsx
@@ -20,7 +20,7 @@ export const HomeModelCard = ({
<HomeCard url={url}>
<EntityIcon
{...icon}
- color="brand"
+ color="core-brand"
style={{ display: "block", flex: "0 0 auto" }}
/>
<CardTitle>{title}</CardTitle>
diff --git a/frontend/src/metabase/home/components/HomeXraySection/HomeXraySection.styled.tsx b/frontend/src/metabase/home/components/HomeXraySection/HomeXraySection.styled.tsx
index 1630bb6eb6c..bc19c7595ef 100644
--- a/frontend/src/metabase/home/components/HomeXraySection/HomeXraySection.styled.tsx
+++ b/frontend/src/metabase/home/components/HomeXraySection/HomeXraySection.styled.tsx
@@ -24,7 +24,7 @@ export const DatabaseLinkIcon = styled(Icon)`
`;
export const DatabaseLinkText = styled.span`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-weight: bold;
`;
@@ -36,13 +36,13 @@ export const SchemaTrigger = styled.span`
`;
export const SchemaTriggerIcon = styled(Icon)`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
width: 0.625rem;
height: 0.625rem;
margin-left: 0.25rem;
`;
export const SchemaTriggerText = styled.span`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-weight: bold;
`;
diff --git a/frontend/src/metabase/home/components/Onboarding/Onboarding.module.css b/frontend/src/metabase/home/components/Onboarding/Onboarding.module.css
index f46c2302744..64cdfff233d 100644
--- a/frontend/src/metabase/home/components/Onboarding/Onboarding.module.css
+++ b/frontend/src/metabase/home/components/Onboarding/Onboarding.module.css
@@ -35,31 +35,31 @@
&:hover {
background-color: var(--mb-color-background-hover);
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
.label,
.chevron {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
[data-active="true"] & {
background: linear-gradient(
to right,
- var(--mb-color-brand) 3rem,
+ var(--mb-color-core-brand) 3rem,
transparent 3rem
);
&:hover {
background: linear-gradient(
to right,
- var(--mb-color-brand) 3rem,
+ var(--mb-color-core-brand) 3rem,
var(--mb-color-background-hover) 3rem
);
.label,
.chevron svg {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
}
@@ -78,7 +78,7 @@
}
.icon:not([data-css-specificity-hack="🪗"]) {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
height: 3rem;
margin-right: 1rem;
width: 3rem;
diff --git a/frontend/src/metabase/metabot/components/AIMarkdown/AIMarkdown.module.css b/frontend/src/metabase/metabot/components/AIMarkdown/AIMarkdown.module.css
index 0aa53e66c0d..6c583eadcf8 100644
--- a/frontend/src/metabase/metabot/components/AIMarkdown/AIMarkdown.module.css
+++ b/frontend/src/metabase/metabot/components/AIMarkdown/AIMarkdown.module.css
@@ -147,7 +147,7 @@
}
.smartLink {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-weight: 700;
padding: 0.125rem;
border-radius: var(--mantine-radius-sm);
diff --git a/frontend/src/metabase/metabot/components/AIProviderConfigurationNotice.tsx b/frontend/src/metabase/metabot/components/AIProviderConfigurationNotice.tsx
index bdc02516d26..a3cffa39e81 100644
--- a/frontend/src/metabase/metabot/components/AIProviderConfigurationNotice.tsx
+++ b/frontend/src/metabase/metabot/components/AIProviderConfigurationNotice.tsx
@@ -85,7 +85,7 @@ export const getMetabotNotConfiguredToastProps = ({
id: METABOT_NOT_CONFIGURED_TOAST_ID,
dark: false,
icon: "metabot" as const,
- iconColor: "brand" as const,
+ iconColor: "core-brand" as const,
toastColor: "error",
dismissIconColor: "text-secondary" as const,
timeout: 0,
diff --git a/frontend/src/metabase/metabot/components/MetabotAsk/MetabotAsk.module.css b/frontend/src/metabase/metabot/components/MetabotAsk/MetabotAsk.module.css
index 7f96e10dc62..2623459a260 100644
--- a/frontend/src/metabase/metabot/components/MetabotAsk/MetabotAsk.module.css
+++ b/frontend/src/metabase/metabot/components/MetabotAsk/MetabotAsk.module.css
@@ -81,9 +81,9 @@
&:disabled,
&:disabled:hover {
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
color: var(--mb-color-text-primary-inverse);
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
opacity: 0.35;
}
}
diff --git a/frontend/src/metabase/metabot/components/MetabotChat/MetabotAgentDataPartMessage.module.css b/frontend/src/metabase/metabot/components/MetabotChat/MetabotAgentDataPartMessage.module.css
index a2f73b6dd47..9477ad2d5ab 100644
--- a/frontend/src/metabase/metabot/components/MetabotChat/MetabotAgentDataPartMessage.module.css
+++ b/frontend/src/metabase/metabot/components/MetabotChat/MetabotAgentDataPartMessage.module.css
@@ -28,11 +28,11 @@
}
.sourceFeedbackButton[data-active="true"] {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.sourceItemLink:hover .sourceItemTitleText {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.sourceItemLink:focus-visible {
diff --git a/frontend/src/metabase/metabot/components/MetabotChat/MetabotAgentTodoMessage.module.css b/frontend/src/metabase/metabot/components/MetabotChat/MetabotAgentTodoMessage.module.css
index 9f520353b95..11a996b6be6 100644
--- a/frontend/src/metabase/metabot/components/MetabotChat/MetabotAgentTodoMessage.module.css
+++ b/frontend/src/metabase/metabot/components/MetabotChat/MetabotAgentTodoMessage.module.css
@@ -1,5 +1,5 @@
.todoContainer {
- border: 1px solid var(--mb-color-brand);
+ border: 1px solid var(--mb-color-core-brand);
background-color: var(--mb-color-background-highlight);
}
@@ -22,11 +22,11 @@
border-radius: 50%;
flex-shrink: 0;
margin-top: 2px;
- background: var(--mb-color-brand);
+ background: var(--mb-color-core-brand);
}
.pendingIndicator {
- border: 1.5px solid var(--mb-color-brand);
+ border: 1.5px solid var(--mb-color-core-brand);
margin-top: 1px;
background: none;
}
diff --git a/frontend/src/metabase/metabot/components/MetabotChat/MetabotAgentTodoMessage.tsx b/frontend/src/metabase/metabot/components/MetabotChat/MetabotAgentTodoMessage.tsx
index 76cc91cdbcc..39fb1dd19c9 100644
--- a/frontend/src/metabase/metabot/components/MetabotChat/MetabotAgentTodoMessage.tsx
+++ b/frontend/src/metabase/metabot/components/MetabotChat/MetabotAgentTodoMessage.tsx
@@ -40,14 +40,14 @@ export const AgentTodoListMessage = ({
data-testid="todo-list-header"
>
<Flex align="center" justify="center">
- <Icon name="list" size=".75rem" mr="xs" c="brand" />
- <Text size="sm" fw="bold" c="brand">{t`Todo List`}</Text>
+ <Icon name="list" size=".75rem" mr="xs" c="core-brand" />
+ <Text size="sm" fw="bold" c="core-brand">{t`Todo List`}</Text>
</Flex>
<Flex align="center" justify="center" h="md">
<Icon
name={opened ? "chevrondown" : "chevronup"}
size=".75rem"
- c="brand"
+ c="core-brand"
/>
</Flex>
</Group>
@@ -96,7 +96,7 @@ export const AgentTodoListMessage = ({
.with("cancelled", () => (
<Flex
className={S.statusIndicator}
- bg="brand"
+ bg="core-brand"
align="center"
justify="center"
mr="sm"
diff --git a/frontend/src/metabase/metabot/components/MetabotChat/MetabotChat.module.css b/frontend/src/metabase/metabot/components/MetabotChat/MetabotChat.module.css
index a08291a1778..29b4d1bf9b7 100644
--- a/frontend/src/metabase/metabot/components/MetabotChat/MetabotChat.module.css
+++ b/frontend/src/metabase/metabot/components/MetabotChat/MetabotChat.module.css
@@ -26,7 +26,7 @@
border: 1px solid var(--mb-color-border);
&:focus-within {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/metabot/components/MetabotChat/MetabotChatEditor/MetabotChatEditor.module.css b/frontend/src/metabase/metabot/components/MetabotChat/MetabotChatEditor/MetabotChatEditor.module.css
index a126d9c3426..48b91bd1de6 100644
--- a/frontend/src/metabase/metabot/components/MetabotChat/MetabotChatEditor/MetabotChatEditor.module.css
+++ b/frontend/src/metabase/metabot/components/MetabotChat/MetabotChatEditor/MetabotChatEditor.module.css
@@ -16,7 +16,7 @@
.button {
margin-bottom: 0.625rem;
margin-right: -0.125rem;
- background: var(--mb-color-brand);
+ background: var(--mb-color-core-brand);
border-radius: 50%;
align-self: flex-end;
margin-left: 2px;
@@ -53,7 +53,7 @@
}
.buttonResponding {
- border: 1px solid var(--mb-color-brand);
+ border: 1px solid var(--mb-color-core-brand);
background: transparent;
}
@@ -64,7 +64,7 @@
}
.stopIcon {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
width: 0.5rem;
height: 0.5rem;
transition: color 150ms ease;
diff --git a/frontend/src/metabase/metabot/components/MetabotChat/MetabotChatEditor/MetabotChatEditor.tsx b/frontend/src/metabase/metabot/components/MetabotChat/MetabotChatEditor/MetabotChatEditor.tsx
index c7388a0f231..211bc8d8c4f 100644
--- a/frontend/src/metabase/metabot/components/MetabotChat/MetabotChatEditor/MetabotChatEditor.tsx
+++ b/frontend/src/metabase/metabot/components/MetabotChat/MetabotChatEditor/MetabotChatEditor.tsx
@@ -29,7 +29,7 @@ export const MetabotChatEditor = forwardRef<
return (
<Box className={S.editorContainer}>
<Box className={S.iconContainer}>
- <MetabotIcon c="brand" />
+ <MetabotIcon c="core-brand" />
</Box>
<Box className={S.contentWrapper}>
<MetabotPromptInput
diff --git a/frontend/src/metabase/metabot/components/MetabotChat/MetabotChatMessage.tsx b/frontend/src/metabase/metabot/components/MetabotChat/MetabotChatMessage.tsx
index 2f7f9d4a16c..84cfb973555 100644
--- a/frontend/src/metabase/metabot/components/MetabotChat/MetabotChatMessage.tsx
+++ b/frontend/src/metabase/metabot/components/MetabotChat/MetabotChatMessage.tsx
@@ -158,7 +158,7 @@ const FeedbackButton = forwardRef<HTMLButtonElement, FeedbackButtonProps>(
<Icon
name={icon}
size="1rem"
- c={hasBeenClicked ? "brand" : "currentColor"}
+ c={hasBeenClicked ? "core-brand" : "currentColor"}
/>
</ActionIcon>
);
diff --git a/frontend/src/metabase/metabot/components/MetabotChat/MetabotResetLongChatButton.tsx b/frontend/src/metabase/metabot/components/MetabotChat/MetabotResetLongChatButton.tsx
index e7463ad5db4..6004b577a88 100644
--- a/frontend/src/metabase/metabot/components/MetabotChat/MetabotResetLongChatButton.tsx
+++ b/frontend/src/metabase/metabot/components/MetabotChat/MetabotResetLongChatButton.tsx
@@ -15,7 +15,7 @@ export const MetabotResetLongChatButton = ({
key="reset"
data-testid="metabot-reset-long-chat"
display="inline"
- c="brand"
+ c="core-brand"
td="underline"
onClick={onResetConversation}
>{c("'it' refers to a chat with an AI agent")
diff --git a/frontend/src/metabase/metabot/components/MetabotChat/MetabotThinking.tsx b/frontend/src/metabase/metabot/components/MetabotChat/MetabotThinking.tsx
index b7d4d0cd4f6..65c9bed3628 100644
--- a/frontend/src/metabase/metabot/components/MetabotChat/MetabotThinking.tsx
+++ b/frontend/src/metabase/metabot/components/MetabotChat/MetabotThinking.tsx
@@ -60,7 +60,7 @@ export const MetabotThinking = ({
<Stack gap="xs" mt="md">
<ThoughtProcess toolCalls={toolCallsWithMsgs} />
<Loader
- color="brand"
+ color="core-brand"
type="dots"
size="lg"
data-testid="metabot-response-loader"
diff --git a/frontend/src/metabase/metabot/components/MetabotPromptInput/MetabotPromptInput.module.css b/frontend/src/metabase/metabot/components/MetabotPromptInput/MetabotPromptInput.module.css
index 336a03435fd..e08d5709d70 100644
--- a/frontend/src/metabase/metabot/components/MetabotPromptInput/MetabotPromptInput.module.css
+++ b/frontend/src/metabase/metabot/components/MetabotPromptInput/MetabotPromptInput.module.css
@@ -65,7 +65,7 @@
padding: 0 0.25rem;
background: var(--mb-color-background-hover);
border-radius: 0.25rem;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
text-decoration: none;
font-weight: 500;
vertical-align: baseline;
diff --git a/frontend/src/metabase/metadata/components/FieldList/FieldItem/FieldItem.module.css b/frontend/src/metabase/metadata/components/FieldList/FieldItem/FieldItem.module.css
index 7845f8dd812..bf84b1db5d3 100644
--- a/frontend/src/metabase/metadata/components/FieldList/FieldItem/FieldItem.module.css
+++ b/frontend/src/metabase/metadata/components/FieldList/FieldItem/FieldItem.module.css
@@ -10,7 +10,7 @@
}
.active {
- border-color: var(--mb-color-brand) !important;
+ border-color: var(--mb-color-core-brand) !important;
}
.link {
@@ -18,7 +18,7 @@
}
.icon {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.input {
@@ -26,7 +26,7 @@
line-height: var(--mantine-line-height) !important;
&:focus-within {
- border-color: var(--mb-color-brand) !important;
+ border-color: var(--mb-color-core-brand) !important;
}
textarea {
diff --git a/frontend/src/metabase/metadata/components/NameDescriptionInput/NameDescriptionInput.tsx b/frontend/src/metabase/metadata/components/NameDescriptionInput/NameDescriptionInput.tsx
index f332905737d..16208acf31f 100644
--- a/frontend/src/metabase/metadata/components/NameDescriptionInput/NameDescriptionInput.tsx
+++ b/frontend/src/metabase/metadata/components/NameDescriptionInput/NameDescriptionInput.tsx
@@ -77,7 +77,7 @@ export const NameDescriptionInput = ({
ref={sectionRef}
wrap="nowrap"
>
- <Icon flex="0 0 auto" name={nameIcon} size={20} c="brand" />
+ <Icon flex="0 0 auto" name={nameIcon} size={20} c="core-brand" />
{namePrefix && (
<Ellipsified
diff --git a/frontend/src/metabase/metadata/components/SortableFieldItem/SortableFieldItem.module.css b/frontend/src/metabase/metadata/components/SortableFieldItem/SortableFieldItem.module.css
index e3824bbe730..d118e231e93 100644
--- a/frontend/src/metabase/metadata/components/SortableFieldItem/SortableFieldItem.module.css
+++ b/frontend/src/metabase/metadata/components/SortableFieldItem/SortableFieldItem.module.css
@@ -4,7 +4,7 @@
}
.active {
- border-color: var(--mb-color-brand) !important;
+ border-color: var(--mb-color-core-brand) !important;
}
.card {
@@ -20,13 +20,13 @@
}
.grabber {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
}
.icon {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.label {
diff --git a/frontend/src/metabase/metadata/pages/DataModelV1/components/SegmentsLink/SegmentsLink.module.css b/frontend/src/metabase/metadata/pages/DataModelV1/components/SegmentsLink/SegmentsLink.module.css
index 5c2056bfc64..81cdea1b0d2 100644
--- a/frontend/src/metabase/metadata/pages/DataModelV1/components/SegmentsLink/SegmentsLink.module.css
+++ b/frontend/src/metabase/metadata/pages/DataModelV1/components/SegmentsLink/SegmentsLink.module.css
@@ -5,7 +5,7 @@
&:hover,
&.active {
background-color: var(--mb-color-background-hover);
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
.segmentsIcon {
opacity: 1;
diff --git a/frontend/src/metabase/metrics-viewer/components/BreakoutDimensionPicker/BreakoutDimensionPicker.module.css b/frontend/src/metabase/metrics-viewer/components/BreakoutDimensionPicker/BreakoutDimensionPicker.module.css
index dd079fe4142..d01ebcf2a7b 100644
--- a/frontend/src/metabase/metrics-viewer/components/BreakoutDimensionPicker/BreakoutDimensionPicker.module.css
+++ b/frontend/src/metabase/metrics-viewer/components/BreakoutDimensionPicker/BreakoutDimensionPicker.module.css
@@ -3,7 +3,7 @@
}
.dimensionList {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.itemWrapper:hover [data-bucket-trigger] {
diff --git a/frontend/src/metabase/metrics-viewer/components/FilterPopover/FilterPopover.module.css b/frontend/src/metabase/metrics-viewer/components/FilterPopover/FilterPopover.module.css
index 13ddd0f65a9..4f6e784d6aa 100644
--- a/frontend/src/metabase/metrics-viewer/components/FilterPopover/FilterPopover.module.css
+++ b/frontend/src/metabase/metrics-viewer/components/FilterPopover/FilterPopover.module.css
@@ -18,7 +18,7 @@
.dimensionList {
max-width: 100%;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.accordionItem {
diff --git a/frontend/src/metabase/metrics-viewer/components/MetricControls/ChartLayoutPicker/ChartLayoutPicker.tsx b/frontend/src/metabase/metrics-viewer/components/MetricControls/ChartLayoutPicker/ChartLayoutPicker.tsx
index 55708eed54a..3d5851534f6 100644
--- a/frontend/src/metabase/metrics-viewer/components/MetricControls/ChartLayoutPicker/ChartLayoutPicker.tsx
+++ b/frontend/src/metabase/metrics-viewer/components/MetricControls/ChartLayoutPicker/ChartLayoutPicker.tsx
@@ -35,7 +35,7 @@ export function ChartLayoutPicker({
>
<Icon
name="chart_layout_default"
- c={!isStacked ? "brand" : "text-primary"}
+ c={!isStacked ? "core-brand" : "text-primary"}
/>
</ActionIcon>
</Tooltip>
@@ -54,7 +54,7 @@ export function ChartLayoutPicker({
>
<Icon
name="chart_layout_stack"
- c={isStacked ? "brand" : "text-primary"}
+ c={isStacked ? "core-brand" : "text-primary"}
/>
</ActionIcon>
</Tooltip>
diff --git a/frontend/src/metabase/metrics-viewer/components/MetricControls/ChartTypePicker/ChartTypePicker.tsx b/frontend/src/metabase/metrics-viewer/components/MetricControls/ChartTypePicker/ChartTypePicker.tsx
index 248a1522e48..b28bd929644 100644
--- a/frontend/src/metabase/metrics-viewer/components/MetricControls/ChartTypePicker/ChartTypePicker.tsx
+++ b/frontend/src/metabase/metrics-viewer/components/MetricControls/ChartTypePicker/ChartTypePicker.tsx
@@ -35,7 +35,10 @@ export function ChartTypePicker({
aria-label={type}
className={value === type ? S.selected : undefined}
>
- <Icon name={icon} c={value === type ? "brand" : "text-primary"} />
+ <Icon
+ name={icon}
+ c={value === type ? "core-brand" : "text-primary"}
+ />
</ActionIcon>
))}
</Flex>
diff --git a/frontend/src/metabase/metrics-viewer/components/MetricSearch/MetricSearchInput/MetricSearchInput.tsx b/frontend/src/metabase/metrics-viewer/components/MetricSearch/MetricSearchInput/MetricSearchInput.tsx
index 42ffab959aa..eb35a0405e9 100644
--- a/frontend/src/metabase/metrics-viewer/components/MetricSearch/MetricSearchInput/MetricSearchInput.tsx
+++ b/frontend/src/metabase/metrics-viewer/components/MetricSearch/MetricSearchInput/MetricSearchInput.tsx
@@ -272,7 +272,7 @@ export function MetricSearchInput({
{isFocused && !pendingFocusRef.current && isExpressionDirty && (
<Button
variant="light"
- color="brand"
+ color="core-brand"
size="xs"
py="sm"
px="sm"
diff --git a/frontend/src/metabase/metrics-viewer/components/MetricSearchPanel/MetricSearchPanel.tsx b/frontend/src/metabase/metrics-viewer/components/MetricSearchPanel/MetricSearchPanel.tsx
index 4326f7ebf6e..117eef8e71c 100644
--- a/frontend/src/metabase/metrics-viewer/components/MetricSearchPanel/MetricSearchPanel.tsx
+++ b/frontend/src/metabase/metrics-viewer/components/MetricSearchPanel/MetricSearchPanel.tsx
@@ -97,7 +97,7 @@ export function MetricSearchPanel() {
<Button.Group>
<Button
variant="light"
- color="filter"
+ color="core-filter"
size="xs"
p="sm"
leftSection={
@@ -114,7 +114,7 @@ export function MetricSearchPanel() {
<Tooltip label={toggleLabel}>
<Button
variant="light"
- color="filter"
+ color="core-filter"
size="xs"
py="sm"
px="md"
diff --git a/frontend/src/metabase/metrics-viewer/components/MetricsFilterPills/MetricsFilterPillPopover.tsx b/frontend/src/metabase/metrics-viewer/components/MetricsFilterPills/MetricsFilterPillPopover.tsx
index de41cb996dc..23356205730 100644
--- a/frontend/src/metabase/metrics-viewer/components/MetricsFilterPills/MetricsFilterPillPopover.tsx
+++ b/frontend/src/metabase/metrics-viewer/components/MetricsFilterPills/MetricsFilterPillPopover.tsx
@@ -75,7 +75,7 @@ export function MetricsFilterPillPopover({
{(metricCount ?? 0) > 1 && (
<Badge
circle
- color="filter"
+ color="core-filter"
// override background from Badge.config.tsx
styles={{ root: { background: "var(--badge-bg)" } }}
ml="xs"
diff --git a/frontend/src/metabase/metrics-viewer/components/MetricsFilterPills/MetricsSegmentFilterPillPopover.tsx b/frontend/src/metabase/metrics-viewer/components/MetricsFilterPills/MetricsSegmentFilterPillPopover.tsx
index a9929eb7906..efbcc194e1f 100644
--- a/frontend/src/metabase/metrics-viewer/components/MetricsFilterPills/MetricsSegmentFilterPillPopover.tsx
+++ b/frontend/src/metabase/metrics-viewer/components/MetricsFilterPills/MetricsSegmentFilterPillPopover.tsx
@@ -91,7 +91,7 @@ export function MetricsSegmentFilterPillPopover({
{(metricCount ?? 0) > 1 && (
<Badge
circle
- color="filter"
+ color="core-filter"
// override background from Badge.config.tsx
styles={{ root: { background: "var(--badge-bg)" } }}
ml="xs"
diff --git a/frontend/src/metabase/metrics/components/FilterPanel/MetricSection/MetricSection.tsx b/frontend/src/metabase/metrics/components/FilterPanel/MetricSection/MetricSection.tsx
index b444aac28ec..f0edda24eb2 100644
--- a/frontend/src/metabase/metrics/components/FilterPanel/MetricSection/MetricSection.tsx
+++ b/frontend/src/metabase/metrics/components/FilterPanel/MetricSection/MetricSection.tsx
@@ -25,7 +25,7 @@ export function MetricSection({ definition, onRemove }: MetricSectionProps) {
return (
<Stack gap="md">
<Group>
- <FixedSizeIcon c="brand" name={icon} />
+ <FixedSizeIcon c="core-brand" name={icon} />
{label}
</Group>
<Stack gap="sm">
diff --git a/frontend/src/metabase/metrics/pages/MetricAboutPage/MetricAbout/DescriptionSection/MetadataCard.module.css b/frontend/src/metabase/metrics/pages/MetricAboutPage/MetricAbout/DescriptionSection/MetadataCard.module.css
index 3ac54af72e9..e6343e395b7 100644
--- a/frontend/src/metabase/metrics/pages/MetricAboutPage/MetricAbout/DescriptionSection/MetadataCard.module.css
+++ b/frontend/src/metabase/metrics/pages/MetricAboutPage/MetricAbout/DescriptionSection/MetadataCard.module.css
@@ -39,7 +39,7 @@
}
.text {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.link:hover .text {
diff --git a/frontend/src/metabase/models/components/ModelActions/ModelActionDetails/ModelActionListItem.styled.tsx b/frontend/src/metabase/models/components/ModelActions/ModelActionDetails/ModelActionListItem.styled.tsx
index f2541dc11e4..2239fe25e4c 100644
--- a/frontend/src/metabase/models/components/ModelActions/ModelActionDetails/ModelActionListItem.styled.tsx
+++ b/frontend/src/metabase/models/components/ModelActions/ModelActionDetails/ModelActionListItem.styled.tsx
@@ -21,7 +21,7 @@ export const ActionTitle = styled(Link)`
cursor: ${(props) => (props.to ? "pointer" : "unset")};
&:hover {
- color: ${(props) => props.to && color("brand")};
+ color: ${(props) => props.to && color("core-brand")};
}
`;
@@ -47,7 +47,7 @@ export const MenuIcon = styled(Icon)`
cursor: pointer;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
`;
diff --git a/frontend/src/metabase/models/containers/NewModelOptions/NewModelOptions.module.css b/frontend/src/metabase/models/containers/NewModelOptions/NewModelOptions.module.css
index 5cbdab4fd7f..bb959362773 100644
--- a/frontend/src/metabase/models/containers/NewModelOptions/NewModelOptions.module.css
+++ b/frontend/src/metabase/models/containers/NewModelOptions/NewModelOptions.module.css
@@ -14,12 +14,12 @@
padding: 1em;
border-radius: var(--mantine-radius-md);
background-color: var(--mb-color-background-tertiary);
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-weight: bold;
transition: all 0.3s;
&:hover {
color: var(--mb-color-text-primary-inverse);
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/nav/components/AboutModal/AboutModal.tsx b/frontend/src/metabase/nav/components/AboutModal/AboutModal.tsx
index ee4d8bde3e2..2b1c73a3792 100644
--- a/frontend/src/metabase/nav/components/AboutModal/AboutModal.tsx
+++ b/frontend/src/metabase/nav/components/AboutModal/AboutModal.tsx
@@ -35,7 +35,7 @@ export const AboutModal = ({
return (
<Modal opened={opened} onClose={onClose} withCloseButton={false} size={475}>
<Flex direction="column" align="center" pb="lg">
- <Box c="brand" pb="md">
+ <Box c="core-brand" pb="md">
<LogoIcon height={48} />
</Box>
<Stack gap={14} align="center">
diff --git a/frontend/src/metabase/nav/components/AppBar/AppBarToggle.styled.tsx b/frontend/src/metabase/nav/components/AppBar/AppBarToggle.styled.tsx
index 9bbba80d605..d457e7f812c 100644
--- a/frontend/src/metabase/nav/components/AppBar/AppBarToggle.styled.tsx
+++ b/frontend/src/metabase/nav/components/AppBar/AppBarToggle.styled.tsx
@@ -27,7 +27,7 @@ interface SidebarIconProps {
export const SidebarIcon = styled(Icon, {
shouldForwardProp: (propName) => propName !== "isLogoVisible",
})<SidebarIconProps>`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
display: block;
${(props) =>
@@ -36,7 +36,7 @@ export const SidebarIcon = styled(Icon, {
color: var(--mb-color-text-secondary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
`}
`;
diff --git a/frontend/src/metabase/nav/components/AppSwitcher/AppSwitcher.tsx b/frontend/src/metabase/nav/components/AppSwitcher/AppSwitcher.tsx
index cb1a572f38a..fc5619aac8b 100644
--- a/frontend/src/metabase/nav/components/AppSwitcher/AppSwitcher.tsx
+++ b/frontend/src/metabase/nav/components/AppSwitcher/AppSwitcher.tsx
@@ -43,7 +43,7 @@ import { useHelpLink } from "./useHelpLink";
const CURRENT_APP_ICON_OVERRIDES: {
name: IconName;
c: ColorName;
-} = { name: "check_filled", c: "brand" };
+} = { name: "check_filled", c: "core-brand" };
export const AppSwitcher = ({ className }: { className?: string }) => {
const [modalOpen, setModalOpen] = useState<string | null>(null);
@@ -190,7 +190,7 @@ export const AppSwitcher = ({ className }: { className?: string }) => {
data-testid="mode-switcher-profile-link"
>
<Group wrap="nowrap">
- <Avatar color="brand" radius="lg" size={32}>
+ <Avatar color="core-brand" radius="lg" size={32}>
{user ? userInitials(user) : "?"}
</Avatar>
<Stack gap="xs">
diff --git a/frontend/src/metabase/nav/components/NavbarPromoCard/NavbarPromoCard.module.css b/frontend/src/metabase/nav/components/NavbarPromoCard/NavbarPromoCard.module.css
index 412f5e01225..15fba30d591 100644
--- a/frontend/src/metabase/nav/components/NavbarPromoCard/NavbarPromoCard.module.css
+++ b/frontend/src/metabase/nav/components/NavbarPromoCard/NavbarPromoCard.module.css
@@ -3,7 +3,7 @@
align-items: center;
justify-content: center;
flex-shrink: 0;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.DismissIconButtonWrapper {
diff --git a/frontend/src/metabase/nav/components/search/SearchResultsDropdown/SearchResultsDropdown.styled.tsx b/frontend/src/metabase/nav/components/search/SearchResultsDropdown/SearchResultsDropdown.styled.tsx
index b79456a24fe..5a075456df2 100644
--- a/frontend/src/metabase/nav/components/search/SearchResultsDropdown/SearchResultsDropdown.styled.tsx
+++ b/frontend/src/metabase/nav/components/search/SearchResultsDropdown/SearchResultsDropdown.styled.tsx
@@ -25,7 +25,7 @@ export const SearchResultsContainer = styled(Paper)<PaperProps>`
` as unknown as typeof Paper;
const selectedStyles = css`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-hover);
cursor: pointer;
transition: all 0.2s ease-in-out;
diff --git a/frontend/src/metabase/nav/containers/MainNavbar/MainNavbar.styled.tsx b/frontend/src/metabase/nav/containers/MainNavbar/MainNavbar.styled.tsx
index b1e005dfc61..308b126406c 100644
--- a/frontend/src/metabase/nav/containers/MainNavbar/MainNavbar.styled.tsx
+++ b/frontend/src/metabase/nav/containers/MainNavbar/MainNavbar.styled.tsx
@@ -98,7 +98,7 @@ export const LoadingAndErrorContent = styled.div`
display: flex;
flex-direction: column;
align-items: center;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
text-align: center;
`;
diff --git a/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/AddDataModal/AddDataModal.module.css b/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/AddDataModal/AddDataModal.module.css
index abb89f6a30c..bbb4e5e056b 100644
--- a/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/AddDataModal/AddDataModal.module.css
+++ b/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/AddDataModal/AddDataModal.module.css
@@ -3,7 +3,7 @@
border-radius: var(--mantine-radius-md);
&[data-active="true"] {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-selected);
}
}
diff --git a/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/AddDataModal/Panels/AddDataModalEmptyStates.tsx b/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/AddDataModal/Panels/AddDataModalEmptyStates.tsx
index 8480a15c0c0..174cb90e940 100644
--- a/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/AddDataModal/Panels/AddDataModalEmptyStates.tsx
+++ b/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/AddDataModal/Panels/AddDataModalEmptyStates.tsx
@@ -201,7 +201,7 @@ export const CSVPanelEmptyState = ({
<AddDataEmptyState
title={t`Upload CSV files`}
subtitle={subtitle}
- illustration={<Box component={IconCSV} c="brand" h={66} />}
+ illustration={<Box component={IconCSV} c="core-brand" h={66} />}
contactAdminReason={contactAdminReason}
ctaLink={ctaLink}
upsell={upsell}
diff --git a/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/AddDataModal/Panels/CSVUpload.tsx b/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/AddDataModal/Panels/CSVUpload.tsx
index 1e6695e3244..5d95005a8b1 100644
--- a/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/AddDataModal/Panels/CSVUpload.tsx
+++ b/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/AddDataModal/Panels/CSVUpload.tsx
@@ -218,7 +218,7 @@ export const CSVUpload = ({
<Box component={IconCSVWarning} h={50} />
) : (
<Box
- c={uploadState.file ? "brand" : "text-secondary-inverse"}
+ c={uploadState.file ? "core-brand" : "text-secondary-inverse"}
component={IconCSV}
h={50}
/>
diff --git a/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/AddDataModal/Panels/PanelsHeader.tsx b/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/AddDataModal/Panels/PanelsHeader.tsx
index 4da0ebb3e62..5eb04507226 100644
--- a/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/AddDataModal/Panels/PanelsHeader.tsx
+++ b/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/AddDataModal/Panels/PanelsHeader.tsx
@@ -19,7 +19,7 @@ export const PanelsHeader = ({
onAddDataModalClose,
}: HeaderProps) => {
const HeaderLink = ({ to, text }: { to: string; text: string }) => (
- <Box component={Link} to={to} fw="bold" c="brand">
+ <Box component={Link} to={to} fw="bold" c="core-brand">
{text}
</Box>
);
diff --git a/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/BookmarkList/BookmarkList.styled.tsx b/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/BookmarkList/BookmarkList.styled.tsx
index d9cfa095d5e..d5a85c1b124 100644
--- a/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/BookmarkList/BookmarkList.styled.tsx
+++ b/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/BookmarkList/BookmarkList.styled.tsx
@@ -13,7 +13,7 @@ export const SidebarBookmarkItem = styled(DraggableSidebarLink)`
&:focus-within,
:focus & {
button {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
opacity: 0.5;
> svg:focus {
@@ -25,7 +25,7 @@ export const SidebarBookmarkItem = styled(DraggableSidebarLink)`
button {
opacity: 0;
color: ${(props) =>
- props.isSelected ? color("text-primary-inverse") : color("brand")};
+ props.isSelected ? color("text-primary-inverse") : color("core-brand")};
cursor: pointer;
margin-top: 3px;
diff --git a/frontend/src/metabase/nav/containers/MainNavbar/SidebarItems/SidebarItems.styled.tsx b/frontend/src/metabase/nav/containers/MainNavbar/SidebarItems/SidebarItems.styled.tsx
index 98c27d43560..31f53b2f408 100644
--- a/frontend/src/metabase/nav/containers/MainNavbar/SidebarItems/SidebarItems.styled.tsx
+++ b/frontend/src/metabase/nav/containers/MainNavbar/SidebarItems/SidebarItems.styled.tsx
@@ -27,21 +27,21 @@ export const SidebarIcon = styled(
${(props) =>
!props.color &&
css`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
`}
`;
export const ExpandToggleButton = styled(TreeNode.ExpandToggleButton)`
padding: 4px 0 4px 2px;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
`;
const activeColorCSS = css`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
`;
function getTextColor(isSelected: boolean) {
- return isSelected ? color("brand") : color("text-primary");
+ return isSelected ? color("core-brand") : color("text-primary");
}
type NodeRootProps = ComponentProps<typeof TreeNode.Root> & {
@@ -51,7 +51,7 @@ type NodeRootProps = ComponentProps<typeof TreeNode.Root> & {
export const NodeRoot = styled(TreeNode.Root)<NodeRootProps>`
color: ${(props) => getTextColor(props.isSelected)};
background-color: ${(props) =>
- props.isSelected ? alpha("brand", 0.2) : "unset"};
+ props.isSelected ? alpha("core-brand", 0.2) : "unset"};
padding-left: ${(props) => props.depth}rem;
border-radius: 4px;
@@ -65,11 +65,11 @@ export const NodeRoot = styled(TreeNode.Root)<NodeRootProps>`
}
&:hover {
- background-color: ${() => alpha("brand", 0.35)};
- color: var(--mb-color-brand);
+ background-color: ${() => alpha("core-brand", 0.35)};
+ color: var(--mb-color-core-brand);
${ExpandToggleButton} {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
@@ -85,7 +85,7 @@ export const NodeRoot = styled(TreeNode.Root)<NodeRootProps>`
const collectionDragAndDropHoverStyle = css`
color: var(--mb-color-text-primary-inverse);
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
`;
export const CollectionNodeRoot = styled(NodeRoot)<{ hovered?: boolean }>`
@@ -105,11 +105,11 @@ export const FullWidthButton = styled.button<{ isSelected: boolean }>`
${itemContentStyle}
${TreeNode.NameContainer} {
font-weight: 700;
- color: ${(props) => (props.isSelected ? color("brand") : "inherit")};
+ color: ${(props) => (props.isSelected ? color("core-brand") : "inherit")};
text-align: start;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/nav/containers/MainNavbar/SidebarItems/SidebarLink.tsx b/frontend/src/metabase/nav/containers/MainNavbar/SidebarItems/SidebarLink.tsx
index 4ef4bcbfd77..2e108c4a584 100644
--- a/frontend/src/metabase/nav/containers/MainNavbar/SidebarItems/SidebarLink.tsx
+++ b/frontend/src/metabase/nav/containers/MainNavbar/SidebarItems/SidebarLink.tsx
@@ -76,7 +76,7 @@ function SidebarLink({
name={iconProps.name}
iconUrl={iconProps.iconUrl}
size="1rem"
- color="brand"
+ color="core-brand"
/>
) : (
<SidebarIcon {...iconProps} isSelected={isSelected} />
diff --git a/frontend/src/metabase/notifications/modals/CreateOrEditQuestionAlertModal/AlertTriggerIcon.tsx b/frontend/src/metabase/notifications/modals/CreateOrEditQuestionAlertModal/AlertTriggerIcon.tsx
index 0e4ef74e248..1c533f933d2 100644
--- a/frontend/src/metabase/notifications/modals/CreateOrEditQuestionAlertModal/AlertTriggerIcon.tsx
+++ b/frontend/src/metabase/notifications/modals/CreateOrEditQuestionAlertModal/AlertTriggerIcon.tsx
@@ -4,7 +4,7 @@ export const AlertTriggerIcon = () => {
return (
<Center
p="0.625rem"
- bg="brand"
+ bg="core-brand"
w="2.5rem"
h="2.5rem"
style={{
diff --git a/frontend/src/metabase/notifications/modals/CreateOrEditQuestionAlertModal/CreateOrEditQuestionAlertModal.tsx b/frontend/src/metabase/notifications/modals/CreateOrEditQuestionAlertModal/CreateOrEditQuestionAlertModal.tsx
index edbdd644817..a94f80ff4af 100644
--- a/frontend/src/metabase/notifications/modals/CreateOrEditQuestionAlertModal/CreateOrEditQuestionAlertModal.tsx
+++ b/frontend/src/metabase/notifications/modals/CreateOrEditQuestionAlertModal/CreateOrEditQuestionAlertModal.tsx
@@ -433,7 +433,7 @@ export const CreateOrEditQuestionAlertModal = ({
>
<Button
variant="outline"
- color="brand"
+ color="core-brand"
loading={isLoading}
onClick={onSendNow}
>
@@ -443,7 +443,7 @@ export const CreateOrEditQuestionAlertModal = ({
<Button onClick={onClose}>{t`Cancel`}</Button>
<Button
variant="filled"
- bg={hasError ? "error" : "brand"}
+ bg={hasError ? "error" : "core-brand"}
disabled={!isValid || isCreating || isUpdating}
loading={isCreating || isUpdating}
onClick={onCreateOrEditAlert}
diff --git a/frontend/src/metabase/notifications/modals/QuestionAlertListModal/AlertListItem.module.css b/frontend/src/metabase/notifications/modals/QuestionAlertListModal/AlertListItem.module.css
index 500afced009..ffcc19bb463 100644
--- a/frontend/src/metabase/notifications/modals/QuestionAlertListModal/AlertListItem.module.css
+++ b/frontend/src/metabase/notifications/modals/QuestionAlertListModal/AlertListItem.module.css
@@ -16,7 +16,7 @@
border-color: transparent;
.itemTitle {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.handlersContainer {
diff --git a/frontend/src/metabase/notifications/modals/QuestionAlertListModal/AlertListItemActionButton.tsx b/frontend/src/metabase/notifications/modals/QuestionAlertListModal/AlertListItemActionButton.tsx
index 516bc6828de..473179bb508 100644
--- a/frontend/src/metabase/notifications/modals/QuestionAlertListModal/AlertListItemActionButton.tsx
+++ b/frontend/src/metabase/notifications/modals/QuestionAlertListModal/AlertListItemActionButton.tsx
@@ -15,7 +15,7 @@ export const AlertListItemActionButton = ({
}: Props): JSX.Element => (
<Tooltip label={label}>
<Button
- color="brand"
+ color="core-brand"
aria-label={label}
leftSection={<Icon name={iconName} />}
size="xs"
diff --git a/frontend/src/metabase/notifications/pulse/components/ChannelCard.tsx b/frontend/src/metabase/notifications/pulse/components/ChannelCard.tsx
index e7b5b751474..647d9a93577 100644
--- a/frontend/src/metabase/notifications/pulse/components/ChannelCard.tsx
+++ b/frontend/src/metabase/notifications/pulse/components/ChannelCard.tsx
@@ -24,7 +24,7 @@ export const ChannelCard = ({
className={cx(CS.cursorPointer, CS.bgLightHover, CS.textBrandHover)}
>
<Flex align="center" gap="sm">
- <Icon name={iconName} c="brand" />
+ <Icon name={iconName} c="core-brand" />
<Text fw={700} c="inherit">
{title}
</Text>
diff --git a/frontend/src/metabase/palette/components/PaletteResultItem.tsx b/frontend/src/metabase/palette/components/PaletteResultItem.tsx
index 637d52db838..d8e5621603c 100644
--- a/frontend/src/metabase/palette/components/PaletteResultItem.tsx
+++ b/frontend/src/metabase/palette/components/PaletteResultItem.tsx
@@ -61,7 +61,7 @@ export const PaletteResultItem = ({ item, active }: PaletteResultItemProps) => {
status={item.extra.moderatedStatus}
filled
size={14}
- color="brand"
+ color="core-brand"
style={{
verticalAlign: "text-bottom",
}}
diff --git a/frontend/src/metabase/palette/components/PaletteResults.tsx b/frontend/src/metabase/palette/components/PaletteResults.tsx
index ea6070b33ef..67851b3c074 100644
--- a/frontend/src/metabase/palette/components/PaletteResults.tsx
+++ b/frontend/src/metabase/palette/components/PaletteResults.tsx
@@ -51,7 +51,7 @@ const FullSearchCTA = ({
return (
<Text
- c="brand"
+ c="core-brand"
component={Link}
fw={700}
id="search-results-metadata"
diff --git a/frontend/src/metabase/palette/utils.ts b/frontend/src/metabase/palette/utils.ts
index 69c7e144fff..ebce3751d7f 100644
--- a/frontend/src/metabase/palette/utils.ts
+++ b/frontend/src/metabase/palette/utils.ts
@@ -115,7 +115,7 @@ export const getCommandPaletteIcon = (
): { name: IconName; c: ColorName } => {
const icon = {
name: item.icon as IconName,
- c: item.extra?.iconColor || "brand",
+ c: item.extra?.iconColor || "core-brand",
};
return icon;
diff --git a/frontend/src/metabase/parameters/components/ParameterValueWidget.module.css b/frontend/src/metabase/parameters/components/ParameterValueWidget.module.css
index 53c73550f59..c5a3c730d44 100644
--- a/frontend/src/metabase/parameters/components/ParameterValueWidget.module.css
+++ b/frontend/src/metabase/parameters/components/ParameterValueWidget.module.css
@@ -14,7 +14,7 @@
&.selected {
font-weight: bold;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.Prefix {
@@ -23,7 +23,7 @@
}
&:hover {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
color: var(--mb-color-text-hover);
.Prefix,
@@ -67,7 +67,7 @@
.parameter.noPopover.selected input {
font-weight: bold;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.parameter.noPopover input:focus {
@@ -110,6 +110,6 @@
&:hover,
&.hasValue {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/parameters/components/ParameterWidget/ParameterWidget.module.css b/frontend/src/metabase/parameters/components/ParameterWidget/ParameterWidget.module.css
index e7c803a74dc..7a6844f51ce 100644
--- a/frontend/src/metabase/parameters/components/ParameterWidget/ParameterWidget.module.css
+++ b/frontend/src/metabase/parameters/components/ParameterWidget/ParameterWidget.module.css
@@ -8,13 +8,13 @@
margin: 0 0.5rem 0 0;
&:hover:not(.isEditingParameter) {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
color: var(--mb-color-text-hover);
}
&.isEditingParameter {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
color: var(--mb-color-text-primary-inverse);
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/parameters/components/widgets/ParameterFieldWidget/FieldValuesWidget/FieldValuesWidget.tsx b/frontend/src/metabase/parameters/components/widgets/ParameterFieldWidget/FieldValuesWidget/FieldValuesWidget.tsx
index 713fbc9526f..d61ce0d3069 100644
--- a/frontend/src/metabase/parameters/components/widgets/ParameterFieldWidget/FieldValuesWidget/FieldValuesWidget.tsx
+++ b/frontend/src/metabase/parameters/components/widgets/ParameterFieldWidget/FieldValuesWidget/FieldValuesWidget.tsx
@@ -92,7 +92,7 @@ function mapStateToProps(state: State, { fields = [] }: { fields: Field[] }) {
}
export interface IFieldValuesWidgetProps {
- color?: "brand";
+ color?: "core-brand";
maxResults?: number;
style?: StyleHTMLAttributes<HTMLDivElement>;
formatOptions?: Record<string, any>;
diff --git a/frontend/src/metabase/parameters/components/widgets/ParameterFieldWidget/FieldValuesWidget/SingleSelectListField/SingleSelectListField.tsx b/frontend/src/metabase/parameters/components/widgets/ParameterFieldWidget/FieldValuesWidget/SingleSelectListField/SingleSelectListField.tsx
index 400013e79bd..1e5e0040718 100644
--- a/frontend/src/metabase/parameters/components/widgets/ParameterFieldWidget/FieldValuesWidget/SingleSelectListField/SingleSelectListField.tsx
+++ b/frontend/src/metabase/parameters/components/widgets/ParameterFieldWidget/FieldValuesWidget/SingleSelectListField/SingleSelectListField.tsx
@@ -198,7 +198,7 @@ const SingleSelectListField = ({
selectedColor={
(checkedColor ?? isDashboardFilter)
? "var(--mb-color-background-selected)"
- : "var(--mb-color-filter)"
+ : "var(--mb-color-core-filter)"
}
selected={selectedValue === option[0]}
onClick={() => onClickOption(option[0])}
diff --git a/frontend/src/metabase/parameters/components/widgets/ParameterFieldWidget/ParameterFieldWidget.tsx b/frontend/src/metabase/parameters/components/widgets/ParameterFieldWidget/ParameterFieldWidget.tsx
index fe65153c420..dc737c4b5b8 100644
--- a/frontend/src/metabase/parameters/components/widgets/ParameterFieldWidget/ParameterFieldWidget.tsx
+++ b/frontend/src/metabase/parameters/components/widgets/ParameterFieldWidget/ParameterFieldWidget.tsx
@@ -114,7 +114,7 @@ export function ParameterFieldWidget({
getFilterArgumentFormatOptions(operator, index)),
...fields?.[0]?.settings,
}}
- color="brand"
+ color="core-brand"
minWidth={300}
maxWidth={400}
/>
diff --git a/frontend/src/metabase/public/containers/PublicDocument/PublicDocument.module.css b/frontend/src/metabase/public/containers/PublicDocument/PublicDocument.module.css
index 64917704e1f..ca07d14d6c2 100644
--- a/frontend/src/metabase/public/containers/PublicDocument/PublicDocument.module.css
+++ b/frontend/src/metabase/public/containers/PublicDocument/PublicDocument.module.css
@@ -179,7 +179,7 @@
margin: 1rem auto;
&:global(.ProseMirror-selectednode) {
- box-shadow: 0 0 0 1px var(--mb-color-brand);
+ box-shadow: 0 0 0 1px var(--mb-color-core-brand);
border-radius: var(--mantine-radius-xs);
}
}
diff --git a/frontend/src/metabase/query_builder/components/DatasetEditor/DatasetEditor.module.css b/frontend/src/metabase/query_builder/components/DatasetEditor/DatasetEditor.module.css
index b346936abd2..b1d2ce0c517 100644
--- a/frontend/src/metabase/query_builder/components/DatasetEditor/DatasetEditor.module.css
+++ b/frontend/src/metabase/query_builder/components/DatasetEditor/DatasetEditor.module.css
@@ -24,7 +24,7 @@
}
.FieldTypeIcon {
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
color: var(--mb-color-text-primary-inverse);
border-radius: 0.3em;
padding: 0.2em;
@@ -34,7 +34,7 @@
&.isSelected {
background-color: var(--mb-color-background-primary);
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
@@ -57,7 +57,7 @@
}
.DatasetEditBar {
- background-color: var(--mb-color-brand) !important;
+ background-color: var(--mb-color-core-brand) !important;
}
.TableHeaderColumnName {
@@ -70,26 +70,26 @@
white-space: nowrap;
text-overflow: ellipsis;
overflow-x: hidden;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: transparent;
font-weight: bold;
cursor: pointer;
- border: 1px solid var(--mb-color-brand);
+ border: 1px solid var(--mb-color-core-brand);
border-radius: 8px;
transition: all 0.25s;
&.isSelected {
color: var(--mb-color-text-primary-inverse);
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
&:hover {
color: var(--mb-color-text-primary-inverse);
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
.FieldTypeIcon {
background-color: var(--mb-color-background-primary);
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
}
diff --git a/frontend/src/metabase/query_builder/components/DatasetEditor/DatasetFieldMetadataSidebar/DatasetFieldMetadataSidebar.module.css b/frontend/src/metabase/query_builder/components/DatasetEditor/DatasetFieldMetadataSidebar/DatasetFieldMetadataSidebar.module.css
index 375728f11c0..4634bbbc392 100644
--- a/frontend/src/metabase/query_builder/components/DatasetEditor/DatasetFieldMetadataSidebar/DatasetFieldMetadataSidebar.module.css
+++ b/frontend/src/metabase/query_builder/components/DatasetEditor/DatasetFieldMetadataSidebar/DatasetFieldMetadataSidebar.module.css
@@ -13,7 +13,7 @@
outline: none;
&:focus {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
}
}
diff --git a/frontend/src/metabase/query_builder/components/DatasetEditor/DatasetFieldMetadataSidebar/MappedFieldPicker/MappedFieldPicker.module.css b/frontend/src/metabase/query_builder/components/DatasetEditor/DatasetFieldMetadataSidebar/MappedFieldPicker/MappedFieldPicker.module.css
index bf5c0a03be2..a9a8d8a3710 100644
--- a/frontend/src/metabase/query_builder/components/DatasetEditor/DatasetFieldMetadataSidebar/MappedFieldPicker/MappedFieldPicker.module.css
+++ b/frontend/src/metabase/query_builder/components/DatasetEditor/DatasetFieldMetadataSidebar/MappedFieldPicker/MappedFieldPicker.module.css
@@ -1,7 +1,7 @@
.StyledSelectButton {
&.hasValue {
- background-color: var(--mb-color-brand);
- border-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
+ border-color: var(--mb-color-core-brand);
.StyledSelectIcon {
color: var(--mb-color-text-primary-inverse);
diff --git a/frontend/src/metabase/query_builder/components/SavedQuestionHeaderButton/CollectionIcon.tsx b/frontend/src/metabase/query_builder/components/SavedQuestionHeaderButton/CollectionIcon.tsx
index 42338bfae3d..e3dd7d75d36 100644
--- a/frontend/src/metabase/query_builder/components/SavedQuestionHeaderButton/CollectionIcon.tsx
+++ b/frontend/src/metabase/query_builder/components/SavedQuestionHeaderButton/CollectionIcon.tsx
@@ -24,7 +24,7 @@ export const CollectionIcon = ({
return (
<PLUGIN_COLLECTION_COMPONENTS.CollectionInstanceAnalyticsIcon
- c="brand"
+ c="core-brand"
collection={collection}
entity={question.type()}
/>
diff --git a/frontend/src/metabase/query_builder/components/chart-type-selector/ChartTypeOption/ChartTypeOption.tsx b/frontend/src/metabase/query_builder/components/chart-type-selector/ChartTypeOption/ChartTypeOption.tsx
index 412083b6399..5c652ee1d7a 100644
--- a/frontend/src/metabase/query_builder/components/chart-type-selector/ChartTypeOption/ChartTypeOption.tsx
+++ b/frontend/src/metabase/query_builder/components/chart-type-selector/ChartTypeOption/ChartTypeOption.tsx
@@ -56,7 +56,7 @@ export const ChartTypeOption = ({
onSelectVisualization(visualizationType);
}
}}
- color="brand"
+ color="core-brand"
data-is-selected={isSelected}
variant={isSelected ? "filled" : "outline"}
className={cx(
@@ -69,7 +69,7 @@ export const ChartTypeOption = ({
name={iconName ?? "unknown"}
iconUrl={visualization?.iconUrl}
alt={displayName}
- color={isSelected ? "white" : "brand"}
+ color={isSelected ? "white" : "core-brand"}
size={20}
style={
hasCustomIcon && isSelected
@@ -103,7 +103,7 @@ export const ChartTypeOption = ({
ta="center"
fw="bold"
fz="sm"
- color={isSelected ? "brand" : "text-secondary"}
+ color={isSelected ? "core-brand" : "text-secondary"}
data-testid="chart-type-option-label"
>
{displayName}
diff --git a/frontend/src/metabase/query_builder/components/chart-type-selector/ChartTypeSettings/ChartTypeSettings.module.css b/frontend/src/metabase/query_builder/components/chart-type-selector/ChartTypeSettings/ChartTypeSettings.module.css
index 7d75446efd2..283bddf8ceb 100644
--- a/frontend/src/metabase/query_builder/components/chart-type-selector/ChartTypeSettings/ChartTypeSettings.module.css
+++ b/frontend/src/metabase/query_builder/components/chart-type-selector/ChartTypeSettings/ChartTypeSettings.module.css
@@ -5,7 +5,7 @@
color: var(--mb-color-text-secondary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-hover);
}
}
diff --git a/frontend/src/metabase/query_builder/components/view/QuestionDisplayToggle/QuestionDisplayToggle.module.css b/frontend/src/metabase/query_builder/components/view/QuestionDisplayToggle/QuestionDisplayToggle.module.css
index 6380046b16c..e45e94d1e00 100644
--- a/frontend/src/metabase/query_builder/components/view/QuestionDisplayToggle/QuestionDisplayToggle.module.css
+++ b/frontend/src/metabase/query_builder/components/view/QuestionDisplayToggle/QuestionDisplayToggle.module.css
@@ -30,7 +30,7 @@
cursor: pointer;
&.active {
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/query_builder/components/view/QuestionRowCount/QuestionRowCount.module.css b/frontend/src/metabase/query_builder/components/view/QuestionRowCount/QuestionRowCount.module.css
index 657136cff9f..03267e860cc 100644
--- a/frontend/src/metabase/query_builder/components/view/QuestionRowCount/QuestionRowCount.module.css
+++ b/frontend/src/metabase/query_builder/components/view/QuestionRowCount/QuestionRowCount.module.css
@@ -4,11 +4,11 @@
color: var(--mb-color-text-secondary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
&.isHighlighted {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/query_builder/components/view/View/NotebookContainer/NotebookNativePreview.tsx b/frontend/src/metabase/query_builder/components/view/View/NotebookContainer/NotebookNativePreview.tsx
index abc1a8769c1..ddbba6fa56c 100644
--- a/frontend/src/metabase/query_builder/components/view/View/NotebookContainer/NotebookNativePreview.tsx
+++ b/frontend/src/metabase/query_builder/components/view/View/NotebookContainer/NotebookNativePreview.tsx
@@ -75,7 +75,7 @@ export const NotebookNativePreview = () => {
title={t`Converting this question to SQL will break any dashboard filters connected to its columns`}
message={t`This question is part of an embedded dashboard. Converting the query to SQL will break any dashboard filters that map to its columns, since the conversion won't include SQL variables for the filters to connect to. You can, however, manually add those variables to the converted SQL, then connect the dashboard filters to those variables.`}
confirmButtonText={t`Convert to SQL`}
- confirmButtonProps={{ color: "brand", variant: "filled" }}
+ confirmButtonProps={{ color: "core-brand", variant: "filled" }}
onConfirm={handleConfirm}
onClose={handleClose}
/>
diff --git a/frontend/src/metabase/query_builder/components/view/ViewHeader/ViewTitleHeader.module.css b/frontend/src/metabase/query_builder/components/view/ViewHeader/ViewTitleHeader.module.css
index 454058ccdf0..462258a5aa5 100644
--- a/frontend/src/metabase/query_builder/components/view/ViewHeader/ViewTitleHeader.module.css
+++ b/frontend/src/metabase/query_builder/components/view/ViewHeader/ViewTitleHeader.module.css
@@ -5,15 +5,15 @@
border 300ms linear;
&:hover {
- color: var(--mb-color-filter);
+ color: var(--mb-color-core-filter);
background-color: color-mix(
in srgb,
- var(--mb-color-filter) 10%,
+ var(--mb-color-core-filter) 10%,
var(--mb-color-white)
);
border-color: color-mix(
in srgb,
- var(--mb-color-filter) 40%,
+ var(--mb-color-core-filter) 40%,
var(--mb-color-white)
);
}
@@ -50,12 +50,12 @@
&:hover {
background-color: color-mix(
in srgb,
- var(--mb-color-filter) 10%,
+ var(--mb-color-core-filter) 10%,
var(--mb-color-white)
);
border-color: color-mix(
in srgb,
- var(--mb-color-filter) 40%,
+ var(--mb-color-core-filter) 40%,
var(--mb-color-white)
);
}
@@ -64,7 +64,7 @@
&[data-expanded="true"] {
.FilterCountChip {
color: var(--mb-color-text-primary-inverse);
- background-color: var(--mb-color-filter);
+ background-color: var(--mb-color-core-filter);
}
}
}
@@ -78,7 +78,7 @@
color: var(--mb-color-text-primary);
background-color: color-mix(
in srgb,
- var(--mb-color-filter) 15%,
+ var(--mb-color-core-filter) 15%,
var(--mb-color-white)
);
}
@@ -89,15 +89,15 @@
border 300ms linear;
&:hover:not([data-active="true"]) {
- color: var(--mb-color-summarize);
+ color: var(--mb-color-core-summarize);
border-color: color-mix(
in srgb,
- var(--mb-color-summarize) 40%,
+ var(--mb-color-core-summarize) 40%,
var(--mb-color-white)
);
background-color: color-mix(
in srgb,
- var(--mb-color-summarize) 15%,
+ var(--mb-color-core-summarize) 15%,
var(--mb-color-white)
);
}
@@ -109,22 +109,22 @@
border 300ms linear;
&:hover:not([data-active="true"]) {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
border-color: color-mix(
in srgb,
- var(--mb-color-brand) 40%,
+ var(--mb-color-core-brand) 40%,
var(--mb-color-white)
);
background-color: color-mix(
in srgb,
- var(--mb-color-brand) 15%,
+ var(--mb-color-core-brand) 15%,
var(--mb-color-white)
);
}
}
.BackButton {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
padding: 0.75rem;
}
@@ -191,7 +191,7 @@
color: var(--mb-color-text-primary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
&.isDirty {
color: var(--mb-color-text-primary-inverse);
@@ -233,7 +233,7 @@
width: 2rem;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-tertiary);
}
}
diff --git a/frontend/src/metabase/query_builder/components/view/ViewHeader/components/QueryBuilderBackButton/QueryBuilderBackButton.tsx b/frontend/src/metabase/query_builder/components/view/ViewHeader/components/QueryBuilderBackButton/QueryBuilderBackButton.tsx
index 25564778597..475c867ed47 100644
--- a/frontend/src/metabase/query_builder/components/view/ViewHeader/components/QueryBuilderBackButton/QueryBuilderBackButton.tsx
+++ b/frontend/src/metabase/query_builder/components/view/ViewHeader/components/QueryBuilderBackButton/QueryBuilderBackButton.tsx
@@ -66,7 +66,7 @@ export function QueryBuilderBackButton({
to={url}
{...actionIconProps}
>
- <Icon c="brand" name="arrow_left" />
+ <Icon c="core-brand" name="arrow_left" />
</ActionIcon>
</Tooltip>
);
diff --git a/frontend/src/metabase/query_builder/components/view/ViewHeader/components/QuestionActions/QuestionActions.tsx b/frontend/src/metabase/query_builder/components/view/ViewHeader/components/QuestionActions/QuestionActions.tsx
index 346e815c400..d93eec3365c 100644
--- a/frontend/src/metabase/query_builder/components/view/ViewHeader/components/QuestionActions/QuestionActions.tsx
+++ b/frontend/src/metabase/query_builder/components/view/ViewHeader/components/QuestionActions/QuestionActions.tsx
@@ -61,7 +61,9 @@ export const QuestionActions = ({
[isShowingQuestionInfoSidebar, isBookmarked],
);
- const infoButtonColor = isShowingQuestionInfoSidebar ? "brand" : undefined;
+ const infoButtonColor = isShowingQuestionInfoSidebar
+ ? "core-brand"
+ : undefined;
const hasCollectionPermissions = question.canWrite();
const canAppend =
diff --git a/frontend/src/metabase/query_builder/components/view/ViewHeader/components/QuestionSummarizeWidget.tsx b/frontend/src/metabase/query_builder/components/view/ViewHeader/components/QuestionSummarizeWidget.tsx
index 70e60697a12..ba0dfedd91d 100644
--- a/frontend/src/metabase/query_builder/components/view/ViewHeader/components/QuestionSummarizeWidget.tsx
+++ b/frontend/src/metabase/query_builder/components/view/ViewHeader/components/QuestionSummarizeWidget.tsx
@@ -39,7 +39,7 @@ export function QuestionSummarizeWidget({
return (
<Button
- color="summarize"
+ color="core-summarize"
variant={isShowingSummarySidebar ? "filled" : "default"}
leftSection={<Icon name="sum" />}
onClick={handleClick}
diff --git a/frontend/src/metabase/query_builder/components/view/sidebars/QuestionInfoSidebar/QuestionDetails.tsx b/frontend/src/metabase/query_builder/components/view/sidebars/QuestionInfoSidebar/QuestionDetails.tsx
index 08cd46a7395..6cfc6a7ab87 100644
--- a/frontend/src/metabase/query_builder/components/view/sidebars/QuestionInfoSidebar/QuestionDetails.tsx
+++ b/frontend/src/metabase/query_builder/components/view/sidebars/QuestionInfoSidebar/QuestionDetails.tsx
@@ -61,10 +61,10 @@ export const QuestionDetails = ({ question }: { question: Question }) => {
)}
</SidesheetCardSection>
<SidesheetCardSection title={t`Saved in`}>
- <Flex gap="sm" align="top" c="brand">
+ <Flex gap="sm" align="top" c="core-brand">
<Icon
name={isDashboardQuestion ? "dashboard" : "folder"}
- c="brand"
+ c="core-brand"
className={SidebarStyles.IconMargin}
/>
<Text>
@@ -109,7 +109,7 @@ function SharingDisplay({ question }: { question: Question }) {
<SidesheetCardSection title={t`Visibility`}>
{publicUUID && (
<Flex gap="sm" align="center">
- <Icon name="globe" c="brand" />
+ <Icon name="globe" c="core-brand" />
<Text>{t`Shared publicly`}</Text>
<QuestionPublicLinkPopover
diff --git a/frontend/src/metabase/query_builder/components/view/sidebars/QuestionInfoSidebar/QuestionInfoSidebar.module.css b/frontend/src/metabase/query_builder/components/view/sidebars/QuestionInfoSidebar/QuestionInfoSidebar.module.css
index 58b8ee51786..7359048e2ca 100644
--- a/frontend/src/metabase/query_builder/components/view/sidebars/QuestionInfoSidebar/QuestionInfoSidebar.module.css
+++ b/frontend/src/metabase/query_builder/components/view/sidebars/QuestionInfoSidebar/QuestionInfoSidebar.module.css
@@ -1,5 +1,5 @@
.BrandCircle {
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
color: var(--mb-color-text-primary-inverse);
border-radius: 50%;
height: 1rem;
diff --git a/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/AddAggregationButton/AddAggregationButton.module.css b/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/AddAggregationButton/AddAggregationButton.module.css
index 57e6320a5a2..a0fd39f135f 100644
--- a/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/AddAggregationButton/AddAggregationButton.module.css
+++ b/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/AddAggregationButton/AddAggregationButton.module.css
@@ -1,11 +1,11 @@
.AddAggregationButtonRoot {
&[data-variant="subtle"] {
padding: 0.625rem;
- color: var(--mb-color-summarize);
+ color: var(--mb-color-core-summarize);
background-color: var(--mb-color-background-secondary);
&:hover {
- color: var(--mb-color-summarize);
+ color: var(--mb-color-core-summarize);
background-color: var(--mb-color-background-tertiary);
}
}
diff --git a/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/AggregationItem/AggregationItem.module.css b/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/AggregationItem/AggregationItem.module.css
index 29326d3541f..03c83a58a9e 100644
--- a/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/AggregationItem/AggregationItem.module.css
+++ b/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/AggregationItem/AggregationItem.module.css
@@ -5,7 +5,7 @@
font-weight: bold;
border-radius: 6px;
color: var(--mb-color-text-primary-inverse);
- background-color: var(--mb-color-summarize);
+ background-color: var(--mb-color-core-summarize);
transition:
background 300ms linear,
border 300ms linear;
@@ -16,12 +16,12 @@
&:hover {
background-color: color-mix(
in srgb,
- var(--mb-color-summarize),
+ var(--mb-color-core-summarize),
transparent 20%
);
border-color: color-mix(
in srgb,
- var(--mb-color-summarize),
+ var(--mb-color-core-summarize),
transparent 20%
);
}
diff --git a/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/BreakoutColumnList/BreakoutColumnList.module.css b/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/BreakoutColumnList/BreakoutColumnList.module.css
index 8f1303b29be..8ac4fb440fd 100644
--- a/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/BreakoutColumnList/BreakoutColumnList.module.css
+++ b/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/BreakoutColumnList/BreakoutColumnList.module.css
@@ -4,5 +4,5 @@
font-weight: 700;
font-size: 0.75rem;
padding: 0 0.5rem;
- color: var(--mb-color-summarize);
+ color: var(--mb-color-core-summarize);
}
diff --git a/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/BreakoutColumnList/BreakoutColumnListItem/BreakoutColumnListItem.module.css b/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/BreakoutColumnList/BreakoutColumnListItem/BreakoutColumnListItem.module.css
index cc3423264d6..a56d6f69579 100644
--- a/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/BreakoutColumnList/BreakoutColumnListItem/BreakoutColumnListItem.module.css
+++ b/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/BreakoutColumnList/BreakoutColumnListItem/BreakoutColumnListItem.module.css
@@ -57,7 +57,7 @@
&.isSelected {
.Content,
.ColumnTypeIcon {
- background-color: var(--mb-color-summarize);
+ background-color: var(--mb-color-core-summarize);
color: var(--mb-color-text-primary-inverse);
}
@@ -86,7 +86,7 @@
.AddButton,
.Content,
.ColumnTypeIcon {
- color: var(--mb-color-summarize);
+ color: var(--mb-color-core-summarize);
background-color: var(--mb-color-background-secondary);
}
diff --git a/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/BreakoutColumnList/BreakoutColumnListItem/BreakoutColumnListItem.tsx b/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/BreakoutColumnList/BreakoutColumnListItem/BreakoutColumnListItem.tsx
index a8f938975cf..8e11ef309e9 100644
--- a/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/BreakoutColumnList/BreakoutColumnListItem/BreakoutColumnListItem.tsx
+++ b/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/BreakoutColumnList/BreakoutColumnListItem/BreakoutColumnListItem.tsx
@@ -122,7 +122,7 @@ export function BreakoutColumnListItem({
query={query}
stageIndex={stageIndex}
column={item.column}
- color="summarize"
+ color="core-summarize"
isEditing={isSelected}
hasChevronDown
hasBinning
diff --git a/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/SummarizeSidebar.tsx b/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/SummarizeSidebar.tsx
index 92b3b02c58e..8654a4a6d45 100644
--- a/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/SummarizeSidebar.tsx
+++ b/frontend/src/metabase/query_builder/components/view/sidebars/SummarizeSidebar/SummarizeSidebar.tsx
@@ -46,7 +46,7 @@ export function SummarizeSidebar({
<SidebarContent
className={cx(SummarizeSidebarS.SidebarView, className)}
title={t`Summarize by`}
- color={color("summarize")}
+ color={color("core-summarize")}
onDone={handleDoneClick}
>
<SummarizeAggregationItemList
diff --git a/frontend/src/metabase/querying/common/components/DataSelector/DataSelector.module.css b/frontend/src/metabase/querying/common/components/DataSelector/DataSelector.module.css
index aa541bec056..3157adfc72d 100644
--- a/frontend/src/metabase/querying/common/components/DataSelector/DataSelector.module.css
+++ b/frontend/src/metabase/querying/common/components/DataSelector/DataSelector.module.css
@@ -35,6 +35,6 @@
word-wrap: anywhere;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/querying/common/components/DataSelector/saved-entity-picker/SavedEntityPicker.module.css b/frontend/src/metabase/querying/common/components/DataSelector/saved-entity-picker/SavedEntityPicker.module.css
index f0f59fdbf7b..a715f66688e 100644
--- a/frontend/src/metabase/querying/common/components/DataSelector/saved-entity-picker/SavedEntityPicker.module.css
+++ b/frontend/src/metabase/querying/common/components/DataSelector/saved-entity-picker/SavedEntityPicker.module.css
@@ -34,6 +34,6 @@
padding: 1rem;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/querying/common/components/DatePicker/DateShortcutPicker/DateShortcutPicker.module.css b/frontend/src/metabase/querying/common/components/DatePicker/DateShortcutPicker/DateShortcutPicker.module.css
index 4ba603a3190..74a6fec5c33 100644
--- a/frontend/src/metabase/querying/common/components/DatePicker/DateShortcutPicker/DateShortcutPicker.module.css
+++ b/frontend/src/metabase/querying/common/components/DatePicker/DateShortcutPicker/DateShortcutPicker.module.css
@@ -2,7 +2,7 @@
color: var(--mb-color-text-primary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: transparent;
}
}
diff --git a/frontend/src/metabase/querying/common/components/TemporalUnitPicker/TemporalUnitPicker.tsx b/frontend/src/metabase/querying/common/components/TemporalUnitPicker/TemporalUnitPicker.tsx
index 5b009004957..e864bfe1500 100644
--- a/frontend/src/metabase/querying/common/components/TemporalUnitPicker/TemporalUnitPicker.tsx
+++ b/frontend/src/metabase/querying/common/components/TemporalUnitPicker/TemporalUnitPicker.tsx
@@ -52,7 +52,7 @@ export function TemporalUnitPicker({
{!isExpanded && (
<DefaultSelectItem
value={t`More…`}
- c="brand"
+ c="core-brand"
onClick={() => setIsExpanded(true)}
role="option"
/>
diff --git a/frontend/src/metabase/querying/components/CodeMirrorEditor/CodeMirrorEditor.module.css b/frontend/src/metabase/querying/components/CodeMirrorEditor/CodeMirrorEditor.module.css
index b5063b8a416..1a896441760 100644
--- a/frontend/src/metabase/querying/components/CodeMirrorEditor/CodeMirrorEditor.module.css
+++ b/frontend/src/metabase/querying/components/CodeMirrorEditor/CodeMirrorEditor.module.css
@@ -56,7 +56,7 @@
}
.tag {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
& * {
color: inherit;
diff --git a/frontend/src/metabase/querying/components/DataReference/NodeList.module.css b/frontend/src/metabase/querying/components/DataReference/NodeList.module.css
index 0e5b9896b7e..ddd01b4a174 100644
--- a/frontend/src/metabase/querying/components/DataReference/NodeList.module.css
+++ b/frontend/src/metabase/querying/components/DataReference/NodeList.module.css
@@ -15,7 +15,7 @@
.NodeListItemLink {
border-radius: 8px;
align-items: center;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-weight: 700;
overflow-wrap: anywhere;
word-break: break-word;
diff --git a/frontend/src/metabase/querying/components/DataReference/QuestionPane/QuestionPane.module.css b/frontend/src/metabase/querying/components/DataReference/QuestionPane/QuestionPane.module.css
index c608868f5b5..61d268c334a 100644
--- a/frontend/src/metabase/querying/components/DataReference/QuestionPane/QuestionPane.module.css
+++ b/frontend/src/metabase/querying/components/DataReference/QuestionPane/QuestionPane.module.css
@@ -1,7 +1,7 @@
.QuestionPaneDetailLink {
display: flex;
align-items: center;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.QuestionPaneIcon {
diff --git a/frontend/src/metabase/querying/components/DataReference/ResourceTreeNode.module.css b/frontend/src/metabase/querying/components/DataReference/ResourceTreeNode.module.css
index 306f5de4f67..8227cda5134 100644
--- a/frontend/src/metabase/querying/components/DataReference/ResourceTreeNode.module.css
+++ b/frontend/src/metabase/querying/components/DataReference/ResourceTreeNode.module.css
@@ -7,7 +7,7 @@
}
& svg[data-role="chevron"] {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
@@ -18,7 +18,7 @@
}
& svg {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
& svg[data-role="chevron"] {
diff --git a/frontend/src/metabase/querying/components/NativeQueryEditor/DataReferenceButton/DataReferenceButton.module.css b/frontend/src/metabase/querying/components/NativeQueryEditor/DataReferenceButton/DataReferenceButton.module.css
index 19849be248d..ecd4ce70a7d 100644
--- a/frontend/src/metabase/querying/components/NativeQueryEditor/DataReferenceButton/DataReferenceButton.module.css
+++ b/frontend/src/metabase/querying/components/NativeQueryEditor/DataReferenceButton/DataReferenceButton.module.css
@@ -2,10 +2,10 @@
transition: color 0.3s linear;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
&.isSelected {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/querying/components/NativeQueryEditor/NativeQueryEditorActionButtons/NativeQueryEditorActionButtons.module.css b/frontend/src/metabase/querying/components/NativeQueryEditor/NativeQueryEditorActionButtons/NativeQueryEditorActionButtons.module.css
index 55f6bb4e099..6bfe281daf9 100644
--- a/frontend/src/metabase/querying/components/NativeQueryEditor/NativeQueryEditorActionButtons/NativeQueryEditorActionButtons.module.css
+++ b/frontend/src/metabase/querying/components/NativeQueryEditor/NativeQueryEditorActionButtons/NativeQueryEditorActionButtons.module.css
@@ -5,6 +5,6 @@
height: fit-content;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/querying/components/NativeQueryEditor/NativeVariablesButton/NativeVariablesButton.module.css b/frontend/src/metabase/querying/components/NativeQueryEditor/NativeVariablesButton/NativeVariablesButton.module.css
index 19849be248d..ecd4ce70a7d 100644
--- a/frontend/src/metabase/querying/components/NativeQueryEditor/NativeVariablesButton/NativeVariablesButton.module.css
+++ b/frontend/src/metabase/querying/components/NativeQueryEditor/NativeVariablesButton/NativeVariablesButton.module.css
@@ -2,10 +2,10 @@
transition: color 0.3s linear;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
&.isSelected {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/querying/components/NativeQueryEditor/PreviewQueryButton/PreviewQueryButton.module.css b/frontend/src/metabase/querying/components/NativeQueryEditor/PreviewQueryButton/PreviewQueryButton.module.css
index e4a2d396b2e..05df0c07544 100644
--- a/frontend/src/metabase/querying/components/NativeQueryEditor/PreviewQueryButton/PreviewQueryButton.module.css
+++ b/frontend/src/metabase/querying/components/NativeQueryEditor/PreviewQueryButton/PreviewQueryButton.module.css
@@ -2,7 +2,7 @@
color: var(--mb-color-text-primary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/querying/components/NativeQueryEditor/SnippetSidebarButton/SnippetSidebarButton.module.css b/frontend/src/metabase/querying/components/NativeQueryEditor/SnippetSidebarButton/SnippetSidebarButton.module.css
index 19849be248d..ecd4ce70a7d 100644
--- a/frontend/src/metabase/querying/components/NativeQueryEditor/SnippetSidebarButton/SnippetSidebarButton.module.css
+++ b/frontend/src/metabase/querying/components/NativeQueryEditor/SnippetSidebarButton/SnippetSidebarButton.module.css
@@ -2,10 +2,10 @@
transition: color 0.3s linear;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
&.isSelected {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/querying/components/NativeQueryEditor/VisibilityToggler/VisibilityToggler.module.css b/frontend/src/metabase/querying/components/NativeQueryEditor/VisibilityToggler/VisibilityToggler.module.css
index ed7f0f8f47c..859ad992331 100644
--- a/frontend/src/metabase/querying/components/NativeQueryEditor/VisibilityToggler/VisibilityToggler.module.css
+++ b/frontend/src/metabase/querying/components/NativeQueryEditor/VisibilityToggler/VisibilityToggler.module.css
@@ -12,6 +12,6 @@
}
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/querying/components/QueryVisualization/VisualizationError/VisualizationError.module.css b/frontend/src/metabase/querying/components/QueryVisualization/VisualizationError/VisualizationError.module.css
index 34afe6997e8..882f259ce79 100644
--- a/frontend/src/metabase/querying/components/QueryVisualization/VisualizationError/VisualizationError.module.css
+++ b/frontend/src/metabase/querying/components/QueryVisualization/VisualizationError/VisualizationError.module.css
@@ -21,14 +21,14 @@
font-family: Monaco, monospace;
font-size: 0.75rem;
line-height: 1.125rem;
- border: 1px solid var(--mb-color-brand);
+ border: 1px solid var(--mb-color-core-brand);
border-radius: 0.5rem;
background-color: var(--mb-color-background-secondary);
overflow-wrap: break-word;
}
.QueryErrorLink {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-size: 0.75rem;
line-height: 1rem;
font-weight: bold;
diff --git a/frontend/src/metabase/querying/components/ResponsiveParametersList.module.css b/frontend/src/metabase/querying/components/ResponsiveParametersList.module.css
index 593180ddb1c..062923c7e0a 100644
--- a/frontend/src/metabase/querying/components/ResponsiveParametersList.module.css
+++ b/frontend/src/metabase/querying/components/ResponsiveParametersList.module.css
@@ -1,5 +1,5 @@
.filterButton {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
margin: 0.5rem;
}
diff --git a/frontend/src/metabase/querying/components/SnippetSidebar/SnippetRow/SnippetRow.module.css b/frontend/src/metabase/querying/components/SnippetSidebar/SnippetRow/SnippetRow.module.css
index 2d78a97e186..f68afbc02fd 100644
--- a/frontend/src/metabase/querying/components/SnippetSidebar/SnippetRow/SnippetRow.module.css
+++ b/frontend/src/metabase/querying/components/SnippetSidebar/SnippetRow/SnippetRow.module.css
@@ -1,17 +1,17 @@
.SnippetButton {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-secondary);
margin-top: 0.5rem;
&:hover {
color: var(--mb-color-text-primary-inverse);
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
}
.SnippetContent {
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/querying/components/SnippetSidebar/SnippetSidebar.module.css b/frontend/src/metabase/querying/components/SnippetSidebar/SnippetSidebar.module.css
index da1165dde9c..3230b0ce322 100644
--- a/frontend/src/metabase/querying/components/SnippetSidebar/SnippetSidebar.module.css
+++ b/frontend/src/metabase/querying/components/SnippetSidebar/SnippetSidebar.module.css
@@ -4,7 +4,7 @@
color: var(--mb-color-text-secondary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/querying/components/expressions/CombineColumns/ColumnAndSeparatorRow/ColumnInput.module.css b/frontend/src/metabase/querying/components/expressions/CombineColumns/ColumnAndSeparatorRow/ColumnInput.module.css
index ed1e1ec8975..13b6879e8e8 100644
--- a/frontend/src/metabase/querying/components/expressions/CombineColumns/ColumnAndSeparatorRow/ColumnInput.module.css
+++ b/frontend/src/metabase/querying/components/expressions/CombineColumns/ColumnAndSeparatorRow/ColumnInput.module.css
@@ -14,7 +14,7 @@ button.root {
&.open,
&:focus-visible {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
outline: none;
}
}
diff --git a/frontend/src/metabase/querying/components/expressions/Editor/CloseModal/CloseModal.tsx b/frontend/src/metabase/querying/components/expressions/Editor/CloseModal/CloseModal.tsx
index bbfe3e35644..fac47185a0d 100644
--- a/frontend/src/metabase/querying/components/expressions/Editor/CloseModal/CloseModal.tsx
+++ b/frontend/src/metabase/querying/components/expressions/Editor/CloseModal/CloseModal.tsx
@@ -20,7 +20,7 @@ export function CloseModal({
onConfirm={onDiscardChanges}
onClose={onKeepEditing || _.noop}
confirmButtonText={t`Discard changes`}
- confirmButtonProps={{ color: "brand", variant: "filled" }}
+ confirmButtonProps={{ color: "core-brand", variant: "filled" }}
closeButtonText={t`Keep editing`}
/>
);
diff --git a/frontend/src/metabase/querying/components/expressions/Editor/HelpText/HelpText.module.css b/frontend/src/metabase/querying/components/expressions/Editor/HelpText/HelpText.module.css
index dbcdd4d2887..51c24c4c153 100644
--- a/frontend/src/metabase/querying/components/expressions/Editor/HelpText/HelpText.module.css
+++ b/frontend/src/metabase/querying/components/expressions/Editor/HelpText/HelpText.module.css
@@ -74,6 +74,6 @@
display: inline-flex;
align-items: center;
margin-top: 1rem;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-weight: 700;
}
diff --git a/frontend/src/metabase/querying/components/expressions/ExpressionWidget/ExpressionWidgetHeader.module.css b/frontend/src/metabase/querying/components/expressions/ExpressionWidget/ExpressionWidgetHeader.module.css
index 8a29bd2c561..7f070d2fd91 100644
--- a/frontend/src/metabase/querying/components/expressions/ExpressionWidget/ExpressionWidgetHeader.module.css
+++ b/frontend/src/metabase/querying/components/expressions/ExpressionWidget/ExpressionWidgetHeader.module.css
@@ -10,7 +10,7 @@
color: var(--mb-color-text-tertiary);
&:not(:disabled):hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
&:disabled {
diff --git a/frontend/src/metabase/querying/components/expressions/ExtractColumn/ExtractColumn.module.css b/frontend/src/metabase/querying/components/expressions/ExtractColumn/ExtractColumn.module.css
index 44facc1f3c7..2b64be4b14b 100644
--- a/frontend/src/metabase/querying/components/expressions/ExtractColumn/ExtractColumn.module.css
+++ b/frontend/src/metabase/querying/components/expressions/ExtractColumn/ExtractColumn.module.css
@@ -15,7 +15,7 @@
}
&:hover {
- background: var(--mb-color-brand);
+ background: var(--mb-color-core-brand);
.content,
.example {
diff --git a/frontend/src/metabase/querying/components/template_tags/TagEditorParam.module.css b/frontend/src/metabase/querying/components/template_tags/TagEditorParam.module.css
index c3ed87c4df5..77de7c8c658 100644
--- a/frontend/src/metabase/querying/components/template_tags/TagEditorParam.module.css
+++ b/frontend/src/metabase/querying/components/template_tags/TagEditorParam.module.css
@@ -8,7 +8,7 @@
font-weight: 900;
margin-bottom: 2rem;
align-self: flex-end;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.Parameter {
diff --git a/frontend/src/metabase/querying/filters/components/FilterPanel/FilterPill/FilterPill.module.css b/frontend/src/metabase/querying/filters/components/FilterPanel/FilterPill/FilterPill.module.css
index f76b9f7bc53..b60a241c29b 100644
--- a/frontend/src/metabase/querying/filters/components/FilterPanel/FilterPill/FilterPill.module.css
+++ b/frontend/src/metabase/querying/filters/components/FilterPanel/FilterPill/FilterPill.module.css
@@ -1,8 +1,12 @@
.root {
display: flex;
cursor: pointer;
- color: var(--mb-color-filter);
- background-color: color-mix(in srgb, var(--mb-color-filter) 20%, transparent);
+ color: var(--mb-color-core-filter);
+ background-color: color-mix(
+ in srgb,
+ var(--mb-color-core-filter) 20%,
+ transparent
+ );
border-radius: 0.75rem;
overflow-wrap: anywhere;
diff --git a/frontend/src/metabase/querying/filters/components/FilterPicker/FilterColumnPicker/FilterColumnPicker.module.css b/frontend/src/metabase/querying/filters/components/FilterPicker/FilterColumnPicker/FilterColumnPicker.module.css
index 0f89e2a5e3f..7e1eec50a76 100644
--- a/frontend/src/metabase/querying/filters/components/FilterPicker/FilterColumnPicker/FilterColumnPicker.module.css
+++ b/frontend/src/metabase/querying/filters/components/FilterPicker/FilterColumnPicker/FilterColumnPicker.module.css
@@ -1,3 +1,3 @@
.StyledAccordionList {
- color: var(--mb-color-filter);
+ color: var(--mb-color-core-filter);
}
diff --git a/frontend/src/metabase/querying/measures/components/MeasureAggregationPicker/MeasureAggregationPicker.tsx b/frontend/src/metabase/querying/measures/components/MeasureAggregationPicker/MeasureAggregationPicker.tsx
index f4a0bebe302..a488069909a 100644
--- a/frontend/src/metabase/querying/measures/components/MeasureAggregationPicker/MeasureAggregationPicker.tsx
+++ b/frontend/src/metabase/querying/measures/components/MeasureAggregationPicker/MeasureAggregationPicker.tsx
@@ -78,7 +78,7 @@ export function MeasureAggregationPicker({
items={aggregations}
initialAddText={t`Pick an aggregation function`}
readOnly={readOnly}
- color="summarize"
+ color="core-summarize"
isLastOpened={false}
hasAddButton={hasAddButton}
hasRemoveButton={hasRemoveButton}
diff --git a/frontend/src/metabase/querying/metrics/components/MetricEditor/MetricEditorHeader/MetricEditorHeader.module.css b/frontend/src/metabase/querying/metrics/components/MetricEditor/MetricEditorHeader/MetricEditorHeader.module.css
index de6f19b1052..f094267f23e 100644
--- a/frontend/src/metabase/querying/metrics/components/MetricEditor/MetricEditorHeader/MetricEditorHeader.module.css
+++ b/frontend/src/metabase/querying/metrics/components/MetricEditor/MetricEditorHeader/MetricEditorHeader.module.css
@@ -1,4 +1,4 @@
.root {
/* emotion specificity hack */
- background-color: var(--mb-color-brand) !important;
+ background-color: var(--mb-color-core-brand) !important;
}
diff --git a/frontend/src/metabase/querying/notebook/components/AggregateStep/AggregateStep.unit.spec.tsx b/frontend/src/metabase/querying/notebook/components/AggregateStep/AggregateStep.unit.spec.tsx
index ce277a660c3..8eb08cbabcc 100644
--- a/frontend/src/metabase/querying/notebook/components/AggregateStep/AggregateStep.unit.spec.tsx
+++ b/frontend/src/metabase/querying/notebook/components/AggregateStep/AggregateStep.unit.spec.tsx
@@ -52,7 +52,7 @@ function setup({ step = createMockNotebookStep() }: SetupOpts = {}) {
step={step}
stageIndex={step.stageIndex}
query={step.query}
- color="summarize"
+ color="core-summarize"
isLastOpened={false}
reportTimezone="UTC"
updateQuery={updateQuery}
diff --git a/frontend/src/metabase/querying/notebook/components/BreakoutStep/BreakoutStep.tsx b/frontend/src/metabase/querying/notebook/components/BreakoutStep/BreakoutStep.tsx
index 411eb178939..03ac9bda396 100644
--- a/frontend/src/metabase/querying/notebook/components/BreakoutStep/BreakoutStep.tsx
+++ b/frontend/src/metabase/querying/notebook/components/BreakoutStep/BreakoutStep.tsx
@@ -167,7 +167,7 @@ export const BreakoutPopover = ({
hasBinning
hasTemporalBucketing
withInfoIcons
- color="summarize"
+ color="core-summarize"
checkIsColumnSelected={(item) => checkColumnSelected(item, breakoutIndex)}
onSelect={(column: Lib.ColumnMetadata) => {
const isUpdate = breakout != null;
diff --git a/frontend/src/metabase/querying/notebook/components/BreakoutStep/BreakoutStep.unit.spec.tsx b/frontend/src/metabase/querying/notebook/components/BreakoutStep/BreakoutStep.unit.spec.tsx
index ca4526befd9..4e50f026a1f 100644
--- a/frontend/src/metabase/querying/notebook/components/BreakoutStep/BreakoutStep.unit.spec.tsx
+++ b/frontend/src/metabase/querying/notebook/components/BreakoutStep/BreakoutStep.unit.spec.tsx
@@ -149,7 +149,7 @@ function setup({ step = createMockNotebookStep(), readOnly }: SetupOpts = {}) {
step={step}
stageIndex={step.stageIndex}
query={step.query}
- color="summarize"
+ color="core-summarize"
readOnly={readOnly}
isLastOpened={false}
reportTimezone="UTC"
diff --git a/frontend/src/metabase/querying/notebook/components/DataStep/tests/setup.tsx b/frontend/src/metabase/querying/notebook/components/DataStep/tests/setup.tsx
index e1c79084f84..5ed65125cdb 100644
--- a/frontend/src/metabase/querying/notebook/components/DataStep/tests/setup.tsx
+++ b/frontend/src/metabase/querying/notebook/components/DataStep/tests/setup.tsx
@@ -65,7 +65,7 @@ export const setup = async ({
query={step.query}
stageIndex={step.stageIndex}
readOnly={readOnly}
- color="brand"
+ color="core-brand"
isLastOpened={false}
reportTimezone="UTC"
updateQuery={updateQuery}
diff --git a/frontend/src/metabase/querying/notebook/components/FilterStep/FilterStep.unit.spec.tsx b/frontend/src/metabase/querying/notebook/components/FilterStep/FilterStep.unit.spec.tsx
index 99812569da6..ce31dc8c94c 100644
--- a/frontend/src/metabase/querying/notebook/components/FilterStep/FilterStep.unit.spec.tsx
+++ b/frontend/src/metabase/querying/notebook/components/FilterStep/FilterStep.unit.spec.tsx
@@ -38,7 +38,7 @@ function setup(step = createMockNotebookStep()) {
step={step}
stageIndex={step.stageIndex}
query={step.query}
- color="filter"
+ color="core-filter"
isLastOpened={false}
reportTimezone="UTC"
updateQuery={updateQuery}
diff --git a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinComplete/JoinComplete.tsx b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinComplete/JoinComplete.tsx
index bb5f3bdf145..4fdad42b8e1 100644
--- a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinComplete/JoinComplete.tsx
+++ b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinComplete/JoinComplete.tsx
@@ -136,7 +136,7 @@ export function JoinComplete({
</Flex>
</NotebookCell>
<Flex className={S.JoinConditionOn}>
- <Text c="brand" fw="bold">{t`on`}</Text>
+ <Text c="core-brand" fw="bold">{t`on`}</Text>
</Flex>
<NotebookCell
className={S.JoinConditionCell}
diff --git a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinCondition/JoinCondition.module.css b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinCondition/JoinCondition.module.css
index a00726ff8b6..c61f5ce952e 100644
--- a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinCondition/JoinCondition.module.css
+++ b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinCondition/JoinCondition.module.css
@@ -1,4 +1,4 @@
.JoinConditionRoot {
border-radius: 0.5rem;
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
diff --git a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionColumnPicker/JoinColumnButton/JoinColumnButton.module.css b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionColumnPicker/JoinColumnButton/JoinColumnButton.module.css
index 6ae58dc1360..dca76425275 100644
--- a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionColumnPicker/JoinColumnButton/JoinColumnButton.module.css
+++ b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionColumnPicker/JoinColumnButton/JoinColumnButton.module.css
@@ -17,22 +17,30 @@
min-height: 39px;
padding: 8px 10px 6px 10px;
border-radius: 6px;
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
&.isOpen {
- background-color: color-mix(in srgb, var(--mb-color-brand), white 10%);
+ background-color: color-mix(
+ in srgb,
+ var(--mb-color-core-brand),
+ white 10%
+ );
}
&:hover,
&:focus {
- background-color: color-mix(in srgb, var(--mb-color-brand), white 10%);
+ background-color: color-mix(
+ in srgb,
+ var(--mb-color-core-brand),
+ white 10%
+ );
}
}
&.noColumnStyle {
--no-column-style-alpha-color: color-mix(
in srgb,
- var(--mb-color-brand),
+ var(--mb-color-core-brand),
white 45%
);
@@ -43,12 +51,12 @@
border-radius: 4px;
&.isOpen {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
&:hover,
&:focus {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
}
}
diff --git a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionColumnPicker/JoinColumnButton/JoinColumnButton.tsx b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionColumnPicker/JoinColumnButton/JoinColumnButton.tsx
index a5743eefcd6..5f30ca7f9cf 100644
--- a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionColumnPicker/JoinColumnButton/JoinColumnButton.tsx
+++ b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionColumnPicker/JoinColumnButton/JoinColumnButton.tsx
@@ -84,7 +84,7 @@ export const JoinColumnButton = forwardRef(function JoinColumnTarget(
display="block"
fz={11}
lh={1}
- c={isEmpty ? "brand" : "text-primary-inverse"}
+ c={isEmpty ? "core-brand" : "text-primary-inverse"}
ta="left"
fw={400}
>
@@ -94,7 +94,7 @@ export const JoinColumnButton = forwardRef(function JoinColumnTarget(
<Text
className={S.joinCellContent}
display="block"
- c={isEmpty ? "brand" : "text-primary-inverse"}
+ c={isEmpty ? "core-brand" : "text-primary-inverse"}
ta="left"
fw={700}
lh={1}
diff --git a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionColumnPicker/JoinColumnDropdown/JoinColumnDropdown.module.css b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionColumnPicker/JoinColumnDropdown/JoinColumnDropdown.module.css
index 904b4ee914f..de54bbde43b 100644
--- a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionColumnPicker/JoinColumnDropdown/JoinColumnDropdown.module.css
+++ b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionColumnPicker/JoinColumnDropdown/JoinColumnDropdown.module.css
@@ -1,4 +1,4 @@
.joinColumnPicker {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
overflow: visible;
}
diff --git a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionDraft/JoinConditionDraft.module.css b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionDraft/JoinConditionDraft.module.css
index 578c7c731e2..803f4444ff0 100644
--- a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionDraft/JoinConditionDraft.module.css
+++ b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionDraft/JoinConditionDraft.module.css
@@ -1,5 +1,9 @@
.JoinConditionRoot {
border-radius: 0.5rem;
transition: background-color 300ms linear;
- background-color: color-mix(in srgb, var(--mb-color-brand), transparent 85%);
+ background-color: color-mix(
+ in srgb,
+ var(--mb-color-core-brand),
+ transparent 85%
+ );
}
diff --git a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionOperatorPicker/JoinConditionOperatorPicker.module.css b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionOperatorPicker/JoinConditionOperatorPicker.module.css
index 49e117133e0..396e43b686c 100644
--- a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionOperatorPicker/JoinConditionOperatorPicker.module.css
+++ b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionOperatorPicker/JoinConditionOperatorPicker.module.css
@@ -26,26 +26,34 @@
background-color: transparent;
&.isOpened {
- background-color: color-mix(in srgb, var(--mb-color-brand), white 10%);
+ background-color: color-mix(
+ in srgb,
+ var(--mb-color-core-brand),
+ white 10%
+ );
}
&:hover,
&:focus {
- background-color: color-mix(in srgb, var(--mb-color-brand), white 10%);
+ background-color: color-mix(
+ in srgb,
+ var(--mb-color-core-brand),
+ white 10%
+ );
}
}
&.incompleteCondition {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
border: 2px solid transparent;
&.isOpened {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
&:hover,
&:focus {
- border: 2px solid var(--mb-color-brand);
+ border: 2px solid var(--mb-color-core-brand);
}
}
}
diff --git a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionRemoveButton/JoinConditionRemoveButton.module.css b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionRemoveButton/JoinConditionRemoveButton.module.css
index f221b9f66d4..2a2055e732d 100644
--- a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionRemoveButton/JoinConditionRemoveButton.module.css
+++ b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinConditionRemoveButton/JoinConditionRemoveButton.module.css
@@ -14,7 +14,11 @@
&:hover,
&:focus {
- background-color: color-mix(in srgb, var(--mb-color-brand), white 10%);
+ background-color: color-mix(
+ in srgb,
+ var(--mb-color-core-brand),
+ white 10%
+ );
}
}
@@ -22,7 +26,7 @@
&:focus {
background-color: color-mix(
in srgb,
- var(--mb-color-brand),
+ var(--mb-color-core-brand),
transparent 20%
);
}
diff --git a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinDraft/JoinDraft.tsx b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinDraft/JoinDraft.tsx
index b82eaff8fae..4b10f6352be 100644
--- a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinDraft/JoinDraft.tsx
+++ b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinDraft/JoinDraft.tsx
@@ -143,7 +143,7 @@ export function JoinDraft({
{rhsTable && (
<>
<Flex className={S.JoinConditionOn}>
- <Text c="brand" fw="bold">{t`on`}</Text>
+ <Text c="core-brand" fw="bold">{t`on`}</Text>
</Flex>
<NotebookCell
className={S.JoinConditionCell}
diff --git a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinStep.unit.spec.tsx b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinStep.unit.spec.tsx
index 27b6cbb3c9a..7c4d9a9ce3a 100644
--- a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinStep.unit.spec.tsx
+++ b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinStep.unit.spec.tsx
@@ -220,7 +220,7 @@ function setup({
step={step}
stageIndex={step.stageIndex}
query={query}
- color="brand"
+ color="core-brand"
isLastOpened={false}
readOnly={readOnly}
reportTimezone="UTC"
diff --git a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinStrategyPicker/JoinStrategyPicker.module.css b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinStrategyPicker/JoinStrategyPicker.module.css
index cc287923444..0ccccc57b60 100644
--- a/frontend/src/metabase/querying/notebook/components/JoinStep/JoinStrategyPicker/JoinStrategyPicker.module.css
+++ b/frontend/src/metabase/querying/notebook/components/JoinStep/JoinStrategyPicker/JoinStrategyPicker.module.css
@@ -1,5 +1,5 @@
.JoinStrategyIcon {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.JoinStrategyList {
diff --git a/frontend/src/metabase/querying/notebook/components/LimitStep/LimitStep.unit.spec.tsx b/frontend/src/metabase/querying/notebook/components/LimitStep/LimitStep.unit.spec.tsx
index 1e3e631c831..071dca52fc6 100644
--- a/frontend/src/metabase/querying/notebook/components/LimitStep/LimitStep.unit.spec.tsx
+++ b/frontend/src/metabase/querying/notebook/components/LimitStep/LimitStep.unit.spec.tsx
@@ -19,7 +19,7 @@ function setup(step = createMockNotebookStep()) {
<LimitStep
step={step}
query={step.query}
- color="brand"
+ color="core-brand"
stageIndex={step.stageIndex}
isLastOpened={false}
reportTimezone="UTC"
diff --git a/frontend/src/metabase/querying/notebook/components/NativeQueryPreview/NativeQueryPreview.module.css b/frontend/src/metabase/querying/notebook/components/NativeQueryPreview/NativeQueryPreview.module.css
index 931b74c426b..932c0537896 100644
--- a/frontend/src/metabase/querying/notebook/components/NativeQueryPreview/NativeQueryPreview.module.css
+++ b/frontend/src/metabase/querying/notebook/components/NativeQueryPreview/NativeQueryPreview.module.css
@@ -1,5 +1,5 @@
.ModalExternalLink {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-size: 0.75rem;
line-height: 1rem;
font-weight: bold;
diff --git a/frontend/src/metabase/querying/notebook/components/NativeQueryPreview/NativeQueryPreview.tsx b/frontend/src/metabase/querying/notebook/components/NativeQueryPreview/NativeQueryPreview.tsx
index 0a86ce8dfe2..058a643ab8a 100644
--- a/frontend/src/metabase/querying/notebook/components/NativeQueryPreview/NativeQueryPreview.tsx
+++ b/frontend/src/metabase/querying/notebook/components/NativeQueryPreview/NativeQueryPreview.tsx
@@ -50,7 +50,7 @@ export function NativeQueryPreview({
{isFetching ? (
<Flex direction="column" justify="center" align="center">
- <Loader c="brand" />
+ <Loader c="core-brand" />
</Flex>
) : (
<Flex direction="column" mih={0}>
diff --git a/frontend/src/metabase/querying/notebook/components/NotebookDataPicker/NotebookDataPicker.tsx b/frontend/src/metabase/querying/notebook/components/NotebookDataPicker/NotebookDataPicker.tsx
index 79cfdbddb0a..8d621c06fd7 100644
--- a/frontend/src/metabase/querying/notebook/components/NotebookDataPicker/NotebookDataPicker.tsx
+++ b/frontend/src/metabase/querying/notebook/components/NotebookDataPicker/NotebookDataPicker.tsx
@@ -101,7 +101,7 @@ export function NotebookDataPicker({
const canSelectTableColumns = table && isRaw && !isDisabled;
return (
<NotebookCellItem
- color="brand"
+ color="core-brand"
inactive={!table}
right={canSelectTableColumns && columnPicker}
containerStyle={{ padding: 0 }}
diff --git a/frontend/src/metabase/querying/notebook/components/NotebookStep/NotebookStep.module.css b/frontend/src/metabase/querying/notebook/components/NotebookStep/NotebookStep.module.css
index 7a919693d74..b6e4d7a923d 100644
--- a/frontend/src/metabase/querying/notebook/components/NotebookStep/NotebookStep.module.css
+++ b/frontend/src/metabase/querying/notebook/components/NotebookStep/NotebookStep.module.css
@@ -8,7 +8,7 @@
}
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/querying/notebook/components/NotebookStep/utils.ts b/frontend/src/metabase/querying/notebook/components/NotebookStep/utils.ts
index 36ff187fa8b..8f2b4779a57 100644
--- a/frontend/src/metabase/querying/notebook/components/NotebookStep/utils.ts
+++ b/frontend/src/metabase/querying/notebook/components/NotebookStep/utils.ts
@@ -38,7 +38,7 @@ const STEPS: Record<NotebookStepType, StepUIItem> = {
get title() {
return t`Data`;
},
- color: () => "brand",
+ color: () => "core-brand",
Step: DataStep,
StepHeader: NotebookStepHeader,
},
@@ -49,7 +49,7 @@ const STEPS: Record<NotebookStepType, StepUIItem> = {
icon: "join_left_outer",
priority: 1,
compact: true,
- color: () => "brand",
+ color: () => "core-brand",
Step: JoinStep,
StepHeader: NotebookStepHeader,
},
@@ -70,7 +70,7 @@ const STEPS: Record<NotebookStepType, StepUIItem> = {
},
icon: "filter",
priority: 10,
- color: () => "filter",
+ color: () => "core-filter",
Step: FilterStep,
StepHeader: NotebookStepHeader,
},
@@ -80,7 +80,7 @@ const STEPS: Record<NotebookStepType, StepUIItem> = {
},
icon: "sum",
priority: 5,
- color: () => "summarize",
+ color: () => "core-summarize",
Step: SummarizeStep,
StepHeader: SummarizeStepHeader,
},
@@ -90,7 +90,7 @@ const STEPS: Record<NotebookStepType, StepUIItem> = {
},
icon: "sum",
priority: 5,
- color: () => "summarize",
+ color: () => "core-summarize",
Step: AggregateStep,
StepHeader: NotebookStepHeader,
},
diff --git a/frontend/src/metabase/querying/notebook/components/SortStep/SortStep.unit.spec.tsx b/frontend/src/metabase/querying/notebook/components/SortStep/SortStep.unit.spec.tsx
index b5d3df9d66f..320f1b5f56b 100644
--- a/frontend/src/metabase/querying/notebook/components/SortStep/SortStep.unit.spec.tsx
+++ b/frontend/src/metabase/querying/notebook/components/SortStep/SortStep.unit.spec.tsx
@@ -44,7 +44,7 @@ function setup(step = createMockNotebookStep()) {
step={step}
stageIndex={step.stageIndex}
query={step.query}
- color="brand"
+ color="core-brand"
isLastOpened={false}
reportTimezone="UTC"
updateQuery={updateQuery}
diff --git a/frontend/src/metabase/querying/segments/components/SegmentFilterEditor/SegmentFilterEditor.tsx b/frontend/src/metabase/querying/segments/components/SegmentFilterEditor/SegmentFilterEditor.tsx
index 91a37790394..6469120df9d 100644
--- a/frontend/src/metabase/querying/segments/components/SegmentFilterEditor/SegmentFilterEditor.tsx
+++ b/frontend/src/metabase/querying/segments/components/SegmentFilterEditor/SegmentFilterEditor.tsx
@@ -72,7 +72,7 @@ export function SegmentFilterEditor({
items={filters}
initialAddText={t`Add filters to narrow your answer`}
readOnly={readOnly}
- color="filter"
+ color="core-filter"
isLastOpened={false}
renderName={renderFilterName}
renderPopover={({ item: filter, index, onClose }) =>
diff --git a/frontend/src/metabase/querying/segments/components/revisions/RevisionDiff.styled.tsx b/frontend/src/metabase/querying/segments/components/revisions/RevisionDiff.styled.tsx
index 78621ad4531..261d4ffba31 100644
--- a/frontend/src/metabase/querying/segments/components/revisions/RevisionDiff.styled.tsx
+++ b/frontend/src/metabase/querying/segments/components/revisions/RevisionDiff.styled.tsx
@@ -4,7 +4,7 @@ import styled from "@emotion/styled";
import { Icon } from "metabase/ui";
export const EditIcon = styled(Icon)`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
`;
export const ErrorIcon = styled(Icon)`
@@ -12,5 +12,5 @@ export const ErrorIcon = styled(Icon)`
`;
export const SuccessIcon = styled(Icon)`
- color: var(--mb-color-summarize);
+ color: var(--mb-color-core-summarize);
`;
diff --git a/frontend/src/metabase/questions/components/MoveCardModal/MoveCardModal.tsx b/frontend/src/metabase/questions/components/MoveCardModal/MoveCardModal.tsx
index 04374a1efdf..5d5838008b0 100644
--- a/frontend/src/metabase/questions/components/MoveCardModal/MoveCardModal.tsx
+++ b/frontend/src/metabase/questions/components/MoveCardModal/MoveCardModal.tsx
@@ -195,7 +195,7 @@ export const MoveCardModal = ({ card, onClose }: MoveCardModalProps) => {
</Radio.Group>
</>
}
- confirmButtonProps={{ color: "brand", variant: "filled" }}
+ confirmButtonProps={{ color: "core-brand", variant: "filled" }}
confirmButtonText={t`Done`}
/>
);
@@ -226,7 +226,7 @@ export const MoveCardModal = ({ card, onClose }: MoveCardModalProps) => {
}
message={t`You can move it to a collection if you want to use it in both dashboards.`}
confirmButtonText={t`Okay`}
- confirmButtonProps={{ color: "brand", variant: "filled" }}
+ confirmButtonProps={{ color: "core-brand", variant: "filled" }}
/>
);
}
diff --git a/frontend/src/metabase/reference/components/EditHeader.module.css b/frontend/src/metabase/reference/components/EditHeader.module.css
index 71feaa85e50..65fa0ed7ed8 100644
--- a/frontend/src/metabase/reference/components/EditHeader.module.css
+++ b/frontend/src/metabase/reference/components/EditHeader.module.css
@@ -18,7 +18,7 @@
}
.editHeaderButton {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.saveButton {
diff --git a/frontend/src/metabase/reference/components/UsefulQuestions.module.css b/frontend/src/metabase/reference/components/UsefulQuestions.module.css
index 906b968a180..2496e40edd9 100644
--- a/frontend/src/metabase/reference/components/UsefulQuestions.module.css
+++ b/frontend/src/metabase/reference/components/UsefulQuestions.module.css
@@ -1,5 +1,5 @@
.usefulQuestions {
composes: mt1 from "style";
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-size: 16px;
}
diff --git a/frontend/src/metabase/rich_text_editing/tiptap/components/FormatButton/FormatButton.tsx b/frontend/src/metabase/rich_text_editing/tiptap/components/FormatButton/FormatButton.tsx
index b42080d4c48..9babd906b00 100644
--- a/frontend/src/metabase/rich_text_editing/tiptap/components/FormatButton/FormatButton.tsx
+++ b/frontend/src/metabase/rich_text_editing/tiptap/components/FormatButton/FormatButton.tsx
@@ -26,7 +26,7 @@ export const FormatButton: React.FC<FormatButtonProps> = ({
w="32px"
h="32px"
display="flex"
- c={isActive ? "brand" : "text-primary"}
+ c={isActive ? "core-brand" : "text-primary"}
bg={isActive ? "background-secondary" : "transparent"}
fz={14}
fw="bold"
diff --git a/frontend/src/metabase/rich_text_editing/tiptap/extensions/CardEmbed/CardEmbedNode.module.css b/frontend/src/metabase/rich_text_editing/tiptap/extensions/CardEmbed/CardEmbedNode.module.css
index 75c22f1e0d8..49446f677a9 100644
--- a/frontend/src/metabase/rich_text_editing/tiptap/extensions/CardEmbed/CardEmbedNode.module.css
+++ b/frontend/src/metabase/rich_text_editing/tiptap/extensions/CardEmbed/CardEmbedNode.module.css
@@ -22,7 +22,7 @@
}
.cardEmbed.selected {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
outline: none;
}
diff --git a/frontend/src/metabase/rich_text_editing/tiptap/extensions/Command/CommandSuggestion.module.css b/frontend/src/metabase/rich_text_editing/tiptap/extensions/Command/CommandSuggestion.module.css
index e23b351e372..28ad51cce34 100644
--- a/frontend/src/metabase/rich_text_editing/tiptap/extensions/Command/CommandSuggestion.module.css
+++ b/frontend/src/metabase/rich_text_editing/tiptap/extensions/Command/CommandSuggestion.module.css
@@ -24,6 +24,6 @@
.commandButton:hover,
.commandButton[aria-selected="true"] {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-hover);
}
diff --git a/frontend/src/metabase/rich_text_editing/tiptap/extensions/FlexContainer/FlexContainer.module.css b/frontend/src/metabase/rich_text_editing/tiptap/extensions/FlexContainer/FlexContainer.module.css
index b5550e6185c..638c00408de 100644
--- a/frontend/src/metabase/rich_text_editing/tiptap/extensions/FlexContainer/FlexContainer.module.css
+++ b/frontend/src/metabase/rich_text_editing/tiptap/extensions/FlexContainer/FlexContainer.module.css
@@ -10,7 +10,7 @@
}
.flexContainer.selected {
- outline: 2px solid var(--mb-color-brand);
+ outline: 2px solid var(--mb-color-core-brand);
outline-offset: 2px;
}
diff --git a/frontend/src/metabase/rich_text_editing/tiptap/extensions/SmartLink/SmartLinkNode.module.css b/frontend/src/metabase/rich_text_editing/tiptap/extensions/SmartLink/SmartLinkNode.module.css
index abbe83bde03..d696a9032ff 100644
--- a/frontend/src/metabase/rich_text_editing/tiptap/extensions/SmartLink/SmartLinkNode.module.css
+++ b/frontend/src/metabase/rich_text_editing/tiptap/extensions/SmartLink/SmartLinkNode.module.css
@@ -1,6 +1,6 @@
.smartLink,
.userMention {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-weight: 700;
padding: 0.125rem;
border-radius: var(--mantine-radius-sm);
diff --git a/frontend/src/metabase/rich_text_editing/tiptap/extensions/SupportingText/SupportingText.module.css b/frontend/src/metabase/rich_text_editing/tiptap/extensions/SupportingText/SupportingText.module.css
index acb91aefbb8..1e9697d56bb 100644
--- a/frontend/src/metabase/rich_text_editing/tiptap/extensions/SupportingText/SupportingText.module.css
+++ b/frontend/src/metabase/rich_text_editing/tiptap/extensions/SupportingText/SupportingText.module.css
@@ -28,7 +28,7 @@
}
&.selected {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/rich_text_editing/tiptap/extensions/shared/constants.ts b/frontend/src/metabase/rich_text_editing/tiptap/extensions/shared/constants.ts
index b46bd22f2ff..367c733319a 100644
--- a/frontend/src/metabase/rich_text_editing/tiptap/extensions/shared/constants.ts
+++ b/frontend/src/metabase/rich_text_editing/tiptap/extensions/shared/constants.ts
@@ -17,4 +17,4 @@ export const LINK_SEARCH_LIMIT = 5;
export const USER_SEARCH_LIMIT = LINK_SEARCH_LIMIT;
-export const DROP_ZONE_COLOR = "var(--mb-color-brand)";
+export const DROP_ZONE_COLOR = "var(--mb-color-core-brand)";
diff --git a/frontend/src/metabase/search/components/DropdownSidebarFilter/DropdownSidebarFilter.styled.tsx b/frontend/src/metabase/search/components/DropdownSidebarFilter/DropdownSidebarFilter.styled.tsx
index 2504d84d9c0..6b4c952d061 100644
--- a/frontend/src/metabase/search/components/DropdownSidebarFilter/DropdownSidebarFilter.styled.tsx
+++ b/frontend/src/metabase/search/components/DropdownSidebarFilter/DropdownSidebarFilter.styled.tsx
@@ -13,7 +13,7 @@ export const DropdownFieldSet = styled(FieldSet)<{
border: 2px solid
${({ fieldHasValueOrFocus }) =>
fieldHasValueOrFocus
- ? "var(--mb-color-brand)"
+ ? "var(--mb-color-core-brand)"
: "var(--mb-color-border)"};
margin: 0;
padding: 0.5rem 0.75rem;
@@ -35,7 +35,7 @@ export const DropdownFieldSet = styled(FieldSet)<{
&,
legend {
color: ${({ fieldHasValueOrFocus }) =>
- fieldHasValueOrFocus && "var(--mb-color-brand)"};
+ fieldHasValueOrFocus && "var(--mb-color-core-brand)"};
}
`;
diff --git a/frontend/src/metabase/search/components/SearchUserPicker/SearchUserPicker.tsx b/frontend/src/metabase/search/components/SearchUserPicker/SearchUserPicker.tsx
index 5e6f3dda4a1..5af4ce7d9f8 100644
--- a/frontend/src/metabase/search/components/SearchUserPicker/SearchUserPicker.tsx
+++ b/frontend/src/metabase/search/components/SearchUserPicker/SearchUserPicker.tsx
@@ -87,7 +87,7 @@ export const SearchUserPicker = ({
<SelectedUserButton
data-testid="selected-user-button"
key={userId}
- c="brand"
+ c="core-brand"
px="md"
py="sm"
maw="100%"
diff --git a/frontend/src/metabase/search/components/UserListElement/UserListElement.tsx b/frontend/src/metabase/search/components/UserListElement/UserListElement.tsx
index 63813852914..bd5fa41fbe3 100644
--- a/frontend/src/metabase/search/components/UserListElement/UserListElement.tsx
+++ b/frontend/src/metabase/search/components/UserListElement/UserListElement.tsx
@@ -21,13 +21,13 @@ export const UserListElement = ({
px="sm"
py="xs"
variant="subtle"
- bg={isSelected ? "brand" : undefined}
+ bg={isSelected ? "core-brand" : undefined}
justify="start"
classNames={{
root: Styles.Root,
}}
>
- <Text fw={700} color={isSelected ? "brand" : undefined} truncate>
+ <Text fw={700} color={isSelected ? "core-brand" : undefined} truncate>
{value.common_name}
</Text>
</Button>
diff --git a/frontend/src/metabase/setup/components/ActiveStep/ActiveStep.styled.tsx b/frontend/src/metabase/setup/components/ActiveStep/ActiveStep.styled.tsx
index 66235bb9e59..b51b4afe46c 100644
--- a/frontend/src/metabase/setup/components/ActiveStep/ActiveStep.styled.tsx
+++ b/frontend/src/metabase/setup/components/ActiveStep/ActiveStep.styled.tsx
@@ -17,7 +17,7 @@ export const StepRoot = styled.section`
`;
export const StepTitle = styled.div`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-size: 1.3125rem;
font-weight: 700;
margin-bottom: 0.5rem;
@@ -39,7 +39,7 @@ export const StepLabel = styled.div`
`;
export const StepLabelText = styled.span`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-weight: 700;
line-height: 1;
`;
diff --git a/frontend/src/metabase/setup/components/InactiveStep/InactiveStep.styled.tsx b/frontend/src/metabase/setup/components/InactiveStep/InactiveStep.styled.tsx
index 077d82ebeae..d15b64bd925 100644
--- a/frontend/src/metabase/setup/components/InactiveStep/InactiveStep.styled.tsx
+++ b/frontend/src/metabase/setup/components/InactiveStep/InactiveStep.styled.tsx
@@ -18,7 +18,8 @@ export const StepRoot = styled.section<Props>`
`;
export const StepTitle = styled.div<Props>`
- color: ${(props) => (props.isCompleted ? color("success") : color("brand"))};
+ color: ${(props) =>
+ props.isCompleted ? color("success") : color("core-brand")};
font-size: 1rem;
font-weight: 700;
margin: 0.5rem 0;
@@ -42,7 +43,7 @@ export const StepLabel = styled.div<Props>`
`;
export const StepLabelText = styled.span`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-weight: 700;
line-height: 1;
`;
diff --git a/frontend/src/metabase/setup/components/LanguageStep/LanguageStep.styled.tsx b/frontend/src/metabase/setup/components/LanguageStep/LanguageStep.styled.tsx
index 0ba67d86aeb..408e55c98b7 100644
--- a/frontend/src/metabase/setup/components/LanguageStep/LanguageStep.styled.tsx
+++ b/frontend/src/metabase/setup/components/LanguageStep/LanguageStep.styled.tsx
@@ -39,17 +39,17 @@ export const LocaleButton = styled.span<LocaleContainerProps>`
color(props.checked ? "text-primary-inverse" : "text-primary")};
border-radius: 0.25rem;
background-color: ${(props) =>
- props.checked ? color("brand") : color("background-primary")};
+ props.checked ? color("core-brand") : color("background-primary")};
font-weight: 700;
border: 2px solid var(--mb-color-white);
&:hover {
color: var(--mb-color-text-primary-inverse);
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
${LocaleInput}:focus + & {
- outline: 2px solid var(--mb-color-brand);
+ outline: 2px solid var(--mb-color-core-brand);
}
${LocaleInput}:focus:not(:focus-visible) + & {
diff --git a/frontend/src/metabase/setup/components/LicenseTokenStep/LicenseTokenForm.tsx b/frontend/src/metabase/setup/components/LicenseTokenStep/LicenseTokenForm.tsx
index c2633a5f2f8..3d87318f79d 100644
--- a/frontend/src/metabase/setup/components/LicenseTokenStep/LicenseTokenForm.tsx
+++ b/frontend/src/metabase/setup/components/LicenseTokenStep/LicenseTokenForm.tsx
@@ -73,7 +73,7 @@ export const LicenseTokenForm = ({
size="1rem"
name="info"
aria-label={t`Token details information`}
- c="brand"
+ c="core-brand"
/>
</HoverCard.Target>
<HoverCard.Dropdown>
diff --git a/frontend/src/metabase/setup/components/SetupSection/SetupSection.styled.tsx b/frontend/src/metabase/setup/components/SetupSection/SetupSection.styled.tsx
index acc9ce054bf..854b256b884 100644
--- a/frontend/src/metabase/setup/components/SetupSection/SetupSection.styled.tsx
+++ b/frontend/src/metabase/setup/components/SetupSection/SetupSection.styled.tsx
@@ -31,7 +31,7 @@ export const SectionDescription = styled.div`
`;
export const SectionButton = styled(Button)`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
width: 2.5rem;
height: 2.5rem;
`;
diff --git a/frontend/src/metabase/setup/components/WelcomePage/WelcomePage.styled.tsx b/frontend/src/metabase/setup/components/WelcomePage/WelcomePage.styled.tsx
index e2be5d8db6c..854bc73641e 100644
--- a/frontend/src/metabase/setup/components/WelcomePage/WelcomePage.styled.tsx
+++ b/frontend/src/metabase/setup/components/WelcomePage/WelcomePage.styled.tsx
@@ -21,7 +21,7 @@ export const PageMain = styled.div`
`;
export const PageTitle = styled.h1`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-size: 2.2rem;
margin-top: 1.5rem;
`;
diff --git a/frontend/src/metabase/status/components/StatusLarge/StatusLarge.styled.tsx b/frontend/src/metabase/status/components/StatusLarge/StatusLarge.styled.tsx
index 08e0c2d2fb7..8b0986390bc 100644
--- a/frontend/src/metabase/status/components/StatusLarge/StatusLarge.styled.tsx
+++ b/frontend/src/metabase/status/components/StatusLarge/StatusLarge.styled.tsx
@@ -19,7 +19,7 @@ export const StatusHeader = styled.div`
display: flex;
align-items: center;
padding: 0.625rem 1rem;
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
`;
export const StatusTitle = styled.div`
@@ -60,7 +60,7 @@ export const StatusCardIcon = styled.div`
width: 2rem;
height: 2rem;
border-radius: 1rem;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-brand);
`;
@@ -84,7 +84,7 @@ export const StatusCardSpinner = styled(LoadingSpinner)`
display: flex;
align-items: center;
justify-content: center;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
`;
interface StatusCardIconContainerProps {
diff --git a/frontend/src/metabase/status/components/StatusSmall/StatusSmall.module.css b/frontend/src/metabase/status/components/StatusSmall/StatusSmall.module.css
index bdba02692e3..f023281f902 100644
--- a/frontend/src/metabase/status/components/StatusSmall/StatusSmall.module.css
+++ b/frontend/src/metabase/status/components/StatusSmall/StatusSmall.module.css
@@ -5,11 +5,11 @@
--border-color: var(--mb-color-border-brand);
--background-color: transparent;
- --icon-color: var(--mb-color-brand);
+ --icon-color: var(--mb-color-core-brand);
}
.Root[data-status="complete"] {
- --border-color: var(--mb-color-brand);
+ --border-color: var(--mb-color-core-brand);
--background-color: var(--mb-color-success);
--icon-color: var(--mb-color-text-primary-inverse);
}
diff --git a/frontend/src/metabase/timelines/collections/components/EventCard/EventCard.styled.tsx b/frontend/src/metabase/timelines/collections/components/EventCard/EventCard.styled.tsx
index 9acbf126f42..c9a481d4428 100644
--- a/frontend/src/metabase/timelines/collections/components/EventCard/EventCard.styled.tsx
+++ b/frontend/src/metabase/timelines/collections/components/EventCard/EventCard.styled.tsx
@@ -20,7 +20,7 @@ export const CardThread = styled.div`
`;
export const CardThreadIcon = styled(Icon)`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
width: 1rem;
height: 1rem;
`;
@@ -52,7 +52,7 @@ interface CardTitleProps {
const cardTitleHoverStyles = css`
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
`;
@@ -72,7 +72,7 @@ export const CardDescription = styled(Markdown)`
`;
export const CardDateInfo = styled.div`
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-size: 0.75rem;
line-height: 1.5rem;
font-weight: bold;
diff --git a/frontend/src/metabase/timelines/collections/components/TimelineCard/TimelineCard.styled.tsx b/frontend/src/metabase/timelines/collections/components/TimelineCard/TimelineCard.styled.tsx
index 4f8ea736d3d..fc2154e859c 100644
--- a/frontend/src/metabase/timelines/collections/components/TimelineCard/TimelineCard.styled.tsx
+++ b/frontend/src/metabase/timelines/collections/components/TimelineCard/TimelineCard.styled.tsx
@@ -52,14 +52,14 @@ export const CardMenu = styled.span`
const cardRootHoverStyles = css`
&:hover {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
${CardIcon} {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
${CardTitle} {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
`;
diff --git a/frontend/src/metabase/timelines/common/components/ModalHeader/ModalHeader.styled.tsx b/frontend/src/metabase/timelines/common/components/ModalHeader/ModalHeader.styled.tsx
index 0a390166f48..4feee8b0a79 100644
--- a/frontend/src/metabase/timelines/common/components/ModalHeader/ModalHeader.styled.tsx
+++ b/frontend/src/metabase/timelines/common/components/ModalHeader/ModalHeader.styled.tsx
@@ -14,7 +14,7 @@ export const HeaderLink = styled.div`
cursor: ${(props) => props.onClick && "pointer"};
&:hover {
- color: ${(props) => props.onClick && color("brand")};
+ color: ${(props) => props.onClick && color("core-brand")};
}
`;
diff --git a/frontend/src/metabase/timelines/common/components/TimelinePicker/TimelinePicker.styled.tsx b/frontend/src/metabase/timelines/common/components/TimelinePicker/TimelinePicker.styled.tsx
index 0e88b78dfd4..1bb259b77f1 100644
--- a/frontend/src/metabase/timelines/common/components/TimelinePicker/TimelinePicker.styled.tsx
+++ b/frontend/src/metabase/timelines/common/components/TimelinePicker/TimelinePicker.styled.tsx
@@ -57,14 +57,14 @@ interface CardProps {
}
const selectedStyles = css`
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
${CardTitle}, ${CardDescription}, ${CardAside} {
color: var(--mb-color-text-primary-inverse);
}
${CardIcon} {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
${CardIconContainer} {
diff --git a/frontend/src/metabase/timelines/questions/components/EventCard/EventCard.styled.tsx b/frontend/src/metabase/timelines/questions/components/EventCard/EventCard.styled.tsx
index a474957a2ff..9cc3bfb8df5 100644
--- a/frontend/src/metabase/timelines/questions/components/EventCard/EventCard.styled.tsx
+++ b/frontend/src/metabase/timelines/questions/components/EventCard/EventCard.styled.tsx
@@ -13,13 +13,14 @@ export const CardRoot = styled.div<CardRootProps>`
display: flex;
padding: 0.25rem 0.75rem;
border-left: 0.25rem solid
- ${(props) => (props.isSelected ? "var(--mb-color-brand)" : "transparent")};
+ ${(props) =>
+ props.isSelected ? "var(--mb-color-core-brand)" : "transparent"};
background-color: ${(props) =>
- props.isSelected ? alpha("brand", 0.03) : "transparent"};
+ props.isSelected ? alpha("core-brand", 0.03) : "transparent"};
cursor: pointer;
&:hover {
- background-color: ${() => alpha("brand", 0.03)};
+ background-color: ${() => alpha("core-brand", 0.03)};
}
`;
diff --git a/frontend/src/metabase/transforms/pages/EnableTransformsPage/EnableTransformsCard.tsx b/frontend/src/metabase/transforms/pages/EnableTransformsPage/EnableTransformsCard.tsx
index 76eac757fb6..b0c91c248cb 100644
--- a/frontend/src/metabase/transforms/pages/EnableTransformsPage/EnableTransformsCard.tsx
+++ b/frontend/src/metabase/transforms/pages/EnableTransformsPage/EnableTransformsCard.tsx
@@ -130,7 +130,7 @@ const SimpleCard = ({
}) => (
<Card bg="background-secondary" shadow="none">
<Group wrap="nowrap" align="start" gap="sm">
- <Icon name={icon} c="brand" size={16} flex="0 0 1rem" />
+ <Icon name={icon} c="core-brand" size={16} flex="0 0 1rem" />
<Stack gap="xs">
<Text fw="bold" lh="1rem">
{title}
diff --git a/frontend/src/metabase/transforms/pages/RunListPage/RunFilterBar/FilterFieldSet/FilterFieldSet.module.css b/frontend/src/metabase/transforms/pages/RunListPage/RunFilterBar/FilterFieldSet/FilterFieldSet.module.css
index 8c440d24ce2..5207745f58d 100644
--- a/frontend/src/metabase/transforms/pages/RunListPage/RunFilterBar/FilterFieldSet/FilterFieldSet.module.css
+++ b/frontend/src/metabase/transforms/pages/RunListPage/RunFilterBar/FilterFieldSet/FilterFieldSet.module.css
@@ -5,6 +5,6 @@
transition: border 0.2s ease-in-out;
&:hover {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/transforms/pages/RunListPage/RunSidebar/SidebarHeader/SidebarHeader.module.css b/frontend/src/metabase/transforms/pages/RunListPage/RunSidebar/SidebarHeader/SidebarHeader.module.css
index 9a839f16be9..5c3ac0c12c9 100644
--- a/frontend/src/metabase/transforms/pages/RunListPage/RunSidebar/SidebarHeader/SidebarHeader.module.css
+++ b/frontend/src/metabase/transforms/pages/RunListPage/RunSidebar/SidebarHeader/SidebarHeader.module.css
@@ -2,7 +2,7 @@
color: var(--mb-color-text-primary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
text-decoration: none;
}
}
diff --git a/frontend/src/metabase/transforms/pages/TransformListPage/TransformListPage.tsx b/frontend/src/metabase/transforms/pages/TransformListPage/TransformListPage.tsx
index e6b8e85884b..c00e956c543 100644
--- a/frontend/src/metabase/transforms/pages/TransformListPage/TransformListPage.tsx
+++ b/frontend/src/metabase/transforms/pages/TransformListPage/TransformListPage.tsx
@@ -80,7 +80,7 @@ const isRowDisabled = (row: Row<TreeNode>) => {
const NODE_ICON_COLORS: Record<TreeNode["nodeType"], ColorName> = {
folder: "text-secondary",
- transform: "brand",
+ transform: "core-brand",
library: "text-primary",
};
diff --git a/frontend/src/metabase/ui/colors/constants/base-colors.ts b/frontend/src/metabase/ui/colors/constants/base-colors.ts
index a0806d05d86..1cdb77094d9 100644
--- a/frontend/src/metabase/ui/colors/constants/base-colors.ts
+++ b/frontend/src/metabase/ui/colors/constants/base-colors.ts
@@ -9,33 +9,33 @@ const baseColors = {
white: "hsla(0, 0%, 100%, 1.00)",
black: "hsla(0, 0%, 0%, 1.00)",
- // Brand colors (dynamic based on --mb-color-brand). Expanded to roughly match the values in the new color palette (but these should be reworked).
+ // Brand colors (dynamic based on --mb-color-core-brand). Expanded to roughly match the values in the new color palette (but these should be reworked).
brand: {
- 100: "color-mix(in srgb, var(--mb-color-brand), black 86%)",
- 90: "color-mix(in srgb, var(--mb-color-brand), black 75%)",
- 80: "color-mix(in srgb, var(--mb-color-brand), black 62%)",
- 70: "color-mix(in srgb, var(--mb-color-brand), black 47%)",
- 60: "color-mix(in srgb, var(--mb-color-brand), black 28%)",
- 50: "color-mix(in srgb, var(--mb-color-brand), black 12%)",
- 40: "var(--mb-color-brand)", // This is the base brand color
- 30: "color-mix(in srgb, var(--mb-color-brand), white 35%)",
- 20: "color-mix(in srgb, var(--mb-color-brand), white 70%)",
- 10: "color-mix(in srgb, var(--mb-color-brand), white 91%)",
- 5: "color-mix(in srgb, var(--mb-color-brand), white 96%)",
+ 100: "color-mix(in srgb, var(--mb-color-core-brand), black 86%)",
+ 90: "color-mix(in srgb, var(--mb-color-core-brand), black 75%)",
+ 80: "color-mix(in srgb, var(--mb-color-core-brand), black 62%)",
+ 70: "color-mix(in srgb, var(--mb-color-core-brand), black 47%)",
+ 60: "color-mix(in srgb, var(--mb-color-core-brand), black 28%)",
+ 50: "color-mix(in srgb, var(--mb-color-core-brand), black 12%)",
+ 40: "var(--mb-color-core-brand)", // This is the base brand color
+ 30: "color-mix(in srgb, var(--mb-color-core-brand), white 35%)",
+ 20: "color-mix(in srgb, var(--mb-color-core-brand), white 70%)",
+ 10: "color-mix(in srgb, var(--mb-color-core-brand), white 91%)",
+ 5: "color-mix(in srgb, var(--mb-color-core-brand), white 96%)",
},
filter: {
- 100: "color-mix(in srgb, var(--mb-color-filter), black 86%)",
- 90: "color-mix(in srgb, var(--mb-color-filter), black 75%)",
- 80: "color-mix(in srgb, var(--mb-color-filter), black 62%)",
- 70: "color-mix(in srgb, var(--mb-color-filter), black 47%)",
- 60: "color-mix(in srgb, var(--mb-color-filter), black 28%)",
- 50: "color-mix(in srgb, var(--mb-color-filter), black 12%)",
- 40: "var(--mb-color-filter)", // This is the base filter color
- 30: "color-mix(in srgb, var(--mb-color-filter), white 35%)",
- 20: "color-mix(in srgb, var(--mb-color-filter), white 70%)",
- 10: "color-mix(in srgb, var(--mb-color-filter), white 91%)",
- 5: "color-mix(in srgb, var(--mb-color-filter), white 96%)",
+ 100: "color-mix(in srgb, var(--mb-color-core-filter), black 86%)",
+ 90: "color-mix(in srgb, var(--mb-color-core-filter), black 75%)",
+ 80: "color-mix(in srgb, var(--mb-color-core-filter), black 62%)",
+ 70: "color-mix(in srgb, var(--mb-color-core-filter), black 47%)",
+ 60: "color-mix(in srgb, var(--mb-color-core-filter), black 28%)",
+ 50: "color-mix(in srgb, var(--mb-color-core-filter), black 12%)",
+ 40: "var(--mb-color-core-filter)", // This is the base filter color
+ 30: "color-mix(in srgb, var(--mb-color-core-filter), white 35%)",
+ 20: "color-mix(in srgb, var(--mb-color-core-filter), white 70%)",
+ 10: "color-mix(in srgb, var(--mb-color-core-filter), white 91%)",
+ 5: "color-mix(in srgb, var(--mb-color-core-filter), white 96%)",
},
// Deprecated Blue
diff --git a/frontend/src/metabase/ui/colors/constants/themes/dark.ts b/frontend/src/metabase/ui/colors/constants/themes/dark.ts
index d196d0922c7..a0aa0fd86b3 100644
--- a/frontend/src/metabase/ui/colors/constants/themes/dark.ts
+++ b/frontend/src/metabase/ui/colors/constants/themes/dark.ts
@@ -17,11 +17,11 @@ const deprecatedColors = {
"background-disabled-inverse": baseColors.orionAlpha[10],
"background-error-secondary": baseColors.lobster[90],
"background-highlight":
- "color-mix(in srgb, var(--mb-color-brand) 7%, transparent)",
+ "color-mix(in srgb, var(--mb-color-core-brand) 7%, transparent)",
"background-hover":
- "color-mix(in srgb, var(--mb-color-brand) 7%, transparent)",
+ "color-mix(in srgb, var(--mb-color-core-brand) 7%, transparent)",
"background-selected":
- "color-mix(in srgb, var(--mb-color-brand) 21%, transparent)",
+ "color-mix(in srgb, var(--mb-color-core-brand) 21%, transparent)",
"background-primary": baseColors.orion[100],
"background-secondary": baseColors.orion[110],
"background-tertiary": baseColors.orion[80],
diff --git a/frontend/src/metabase/ui/colors/constants/themes/light.ts b/frontend/src/metabase/ui/colors/constants/themes/light.ts
index 7e776a20c95..3cf9e55d7e7 100644
--- a/frontend/src/metabase/ui/colors/constants/themes/light.ts
+++ b/frontend/src/metabase/ui/colors/constants/themes/light.ts
@@ -17,11 +17,11 @@ const deprecatedColors = {
"background-disabled-inverse": baseColors.orionAlphaInverse[10],
"background-error-secondary": baseColors.lobster[5],
"background-highlight":
- "color-mix(in srgb, var(--mb-color-brand) 7%, transparent)",
+ "color-mix(in srgb, var(--mb-color-core-brand) 7%, transparent)",
"background-hover":
- "color-mix(in srgb, var(--mb-color-brand) 7%, transparent)",
+ "color-mix(in srgb, var(--mb-color-core-brand) 7%, transparent)",
"background-selected":
- "color-mix(in srgb, var(--mb-color-brand) 21%, transparent)",
+ "color-mix(in srgb, var(--mb-color-core-brand) 21%, transparent)",
"background-primary": baseColors.white,
"background-secondary": baseColors.orion[5],
"background-tertiary": baseColors.orion[10],
diff --git a/frontend/src/metabase/ui/colors/formatting-colors.ts b/frontend/src/metabase/ui/colors/formatting-colors.ts
index 52ce4e961a1..e73542e24be 100644
--- a/frontend/src/metabase/ui/colors/formatting-colors.ts
+++ b/frontend/src/metabase/ui/colors/formatting-colors.ts
@@ -4,7 +4,7 @@ export function assignUserColors(
userIds: string[],
currentUserId: string | null,
colors = [
- color("brand"),
+ color("core-brand"),
color("accent2"),
color("error"),
color("accent1"),
diff --git a/frontend/src/metabase/ui/colors/formatting-colors.unit.spec.ts b/frontend/src/metabase/ui/colors/formatting-colors.unit.spec.ts
index fa4075bda74..df23e30735c 100644
--- a/frontend/src/metabase/ui/colors/formatting-colors.unit.spec.ts
+++ b/frontend/src/metabase/ui/colors/formatting-colors.unit.spec.ts
@@ -9,7 +9,7 @@ describe("lib/formatting/colors", () => {
const userColors = assignUserColors(userIds, currentUserId);
const expectedAssignedColors = {
- "1": color("brand"),
+ "1": color("core-brand"),
"2": color("accent2"),
"3": color("error"),
};
diff --git a/frontend/src/metabase/ui/colors/palette.ts b/frontend/src/metabase/ui/colors/palette.ts
index 94ec927a96e..57ef44c24de 100644
--- a/frontend/src/metabase/ui/colors/palette.ts
+++ b/frontend/src/metabase/ui/colors/palette.ts
@@ -8,8 +8,8 @@ export const ACCENT_COUNT = 8;
export const originalColors = getColors();
export const aliases: Record<string, (palette: ColorPalette) => string> = {
- dashboard: (palette) => color("brand", palette),
- document: (palette) => color("brand", palette),
+ dashboard: (palette) => color("core-brand", palette),
+ document: (palette) => color("core-brand", palette),
nav: (palette) => color("background-primary", palette),
content: (palette) => color("background-secondary", palette),
database: (palette) => color("accent2", palette),
@@ -19,7 +19,7 @@ export const aliases: Record<string, (palette: ColorPalette) => string> = {
"text-tertiary": (palette) => color("text-tertiary", palette),
background: (palette) => color("white", palette),
"background-disbaled": (palette) => color("accent-gray", palette),
- focus: (palette) => getFocusColor("brand", palette),
+ focus: (palette) => getFocusColor("core-brand", palette),
"accent0-light": (palette) => tint(color(`accent0`, palette)),
"accent1-light": (palette) => tint(color(`accent1`, palette)),
diff --git a/frontend/src/metabase/ui/colors/palette.unit.spec.ts b/frontend/src/metabase/ui/colors/palette.unit.spec.ts
index 811d624f45e..7a9ee3bb870 100644
--- a/frontend/src/metabase/ui/colors/palette.unit.spec.ts
+++ b/frontend/src/metabase/ui/colors/palette.unit.spec.ts
@@ -3,14 +3,14 @@ import { color } from "./palette";
describe("palette", () => {
it("should get a color from the palette", () => {
- expect(color("brand")).toBeDefined();
+ expect(color("core-brand")).toBeDefined();
});
it("should set a color in the palette", () => {
- const originalColor = color("brand");
- colors["brand"] = "blue";
- const modifiedColor = color("brand");
- colors["brand"] = originalColor;
+ const originalColor = color("core-brand");
+ colors["core-brand"] = "blue";
+ const modifiedColor = color("core-brand");
+ colors["core-brand"] = originalColor;
expect(modifiedColor).toEqual("blue");
});
diff --git a/frontend/src/metabase/ui/component-theme.ts b/frontend/src/metabase/ui/component-theme.ts
index 9abd3e290c9..10b7765dea9 100644
--- a/frontend/src/metabase/ui/component-theme.ts
+++ b/frontend/src/metabase/ui/component-theme.ts
@@ -211,7 +211,7 @@ export const DEFAULT_METABASE_COMPONENT_THEME: MetabaseComponentTheme = {
textColor: "var(--mb-color-text-secondary)",
backgroundColor: "var(--mb-color-background-secondary)",
hoverTextColor: "var(--mb-color-text-primary-inverse)",
- hoverBackgroundColor: "var(--mb-color-brand)",
+ hoverBackgroundColor: "var(--mb-color-core-brand)",
},
},
emptyContent: {
@@ -243,7 +243,7 @@ export const DEFAULT_METABASE_COMPONENT_THEME: MetabaseComponentTheme = {
textColor: "var(--mb-color-text-primary)",
},
idColumn: {
- textColor: "var(--mb-color-brand)",
+ textColor: "var(--mb-color-core-brand)",
},
},
pivotTable: {
diff --git a/frontend/src/metabase/ui/components/buttons/ActionIcon/ActionButton.stories.tsx b/frontend/src/metabase/ui/components/buttons/ActionIcon/ActionButton.stories.tsx
index 0f9535c80d1..b9a74071336 100644
--- a/frontend/src/metabase/ui/components/buttons/ActionIcon/ActionButton.stories.tsx
+++ b/frontend/src/metabase/ui/components/buttons/ActionIcon/ActionButton.stories.tsx
@@ -10,7 +10,7 @@ export default {
control: {
type: "select",
},
- options: ["brand"],
+ options: ["core-brand"],
},
disabled: {
control: {
@@ -47,7 +47,7 @@ export const Default = {
</ActionIcon>
),
args: {
- color: "brand",
+ color: "core-brand",
size: "md",
variant: "filled",
disabled: false,
diff --git a/frontend/src/metabase/ui/components/buttons/ActionIcon/ActionIcon.module.css b/frontend/src/metabase/ui/components/buttons/ActionIcon/ActionIcon.module.css
index 2ea7afa6021..6b43cc09881 100644
--- a/frontend/src/metabase/ui/components/buttons/ActionIcon/ActionIcon.module.css
+++ b/frontend/src/metabase/ui/components/buttons/ActionIcon/ActionIcon.module.css
@@ -16,7 +16,7 @@
/* To be able to seamlessly support color property across variants we need
to implement variantColorResolver. Same thing is pointed out in Button component. */
&[data-variant="info"] {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: transparent;
&:hover,
@@ -55,7 +55,7 @@
transition: all 300ms linear;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-tertiary);
border: 1px solid transparent;
}
@@ -72,7 +72,7 @@
background-color: transparent;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
&:disabled,
diff --git a/frontend/src/metabase/ui/components/buttons/Button/Button.config.tsx b/frontend/src/metabase/ui/components/buttons/Button/Button.config.tsx
index 0a7c00f478b..b8e51326050 100644
--- a/frontend/src/metabase/ui/components/buttons/Button/Button.config.tsx
+++ b/frontend/src/metabase/ui/components/buttons/Button/Button.config.tsx
@@ -5,7 +5,7 @@ import ButtonStyles from "./Button.module.css";
export const buttonOverrides = {
Button: Button.extend({
defaultProps: {
- color: "brand",
+ color: "core-brand",
variant: "default",
size: "md",
loaderProps: {
diff --git a/frontend/src/metabase/ui/components/buttons/Button/Button.module.css b/frontend/src/metabase/ui/components/buttons/Button/Button.module.css
index c7a46235c30..fd183e311dc 100644
--- a/frontend/src/metabase/ui/components/buttons/Button/Button.module.css
+++ b/frontend/src/metabase/ui/components/buttons/Button/Button.module.css
@@ -85,7 +85,7 @@
}
&[data-variant="visualizer"] {
- --button-color: var(--mb-color-brand);
+ --button-color: var(--mb-color-core-brand);
--button-color-hover: var(--mb-color-background-hover);
border-radius: 8px;
@@ -122,7 +122,7 @@
&[data-variant="inverse"] {
/* need to implement variantColorResolver to support other colors */
- --button-color: var(--mb-color-brand);
+ --button-color: var(--mb-color-core-brand);
--button-color-hover: var(--mb-color-background-hover);
display: flex;
diff --git a/frontend/src/metabase/ui/components/data-display/Accordion/Accordion.module.css b/frontend/src/metabase/ui/components/data-display/Accordion/Accordion.module.css
index dd0b767cd83..17aff642d89 100644
--- a/frontend/src/metabase/ui/components/data-display/Accordion/Accordion.module.css
+++ b/frontend/src/metabase/ui/components/data-display/Accordion/Accordion.module.css
@@ -3,7 +3,7 @@
}
.label {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-weight: 700;
padding-top: 1rem;
padding-bottom: 1rem;
diff --git a/frontend/src/metabase/ui/components/data-display/Avatar/Avatar.config.ts b/frontend/src/metabase/ui/components/data-display/Avatar/Avatar.config.ts
index 5002626f299..cac726ac5a9 100644
--- a/frontend/src/metabase/ui/components/data-display/Avatar/Avatar.config.ts
+++ b/frontend/src/metabase/ui/components/data-display/Avatar/Avatar.config.ts
@@ -3,7 +3,7 @@ import { Avatar, rem } from "@mantine/core";
import type { ColorName } from "metabase/ui/colors/types";
const avatarColors: ColorName[] = [
- "brand",
+ "core-brand",
"error",
"accent1",
"accent2",
diff --git a/frontend/src/metabase/ui/components/data-display/SortableHeaderPill/SortableHeaderPill.module.css b/frontend/src/metabase/ui/components/data-display/SortableHeaderPill/SortableHeaderPill.module.css
index b087811ddcf..25441863548 100644
--- a/frontend/src/metabase/ui/components/data-display/SortableHeaderPill/SortableHeaderPill.module.css
+++ b/frontend/src/metabase/ui/components/data-display/SortableHeaderPill/SortableHeaderPill.module.css
@@ -6,16 +6,24 @@
padding: 0.25rem 0.625em;
overflow: hidden;
font-weight: 700;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
white-space: nowrap;
border-radius: 5px;
- background-color: color-mix(in srgb, var(--mb-color-brand), transparent 92%);
+ background-color: color-mix(
+ in srgb,
+ var(--mb-color-core-brand),
+ transparent 92%
+ );
cursor: pointer;
transition: background-color 200ms ease-in-out;
}
.pill:hover {
- background-color: color-mix(in srgb, var(--mb-color-brand), transparent 82%);
+ background-color: color-mix(
+ in srgb,
+ var(--mb-color-core-brand),
+ transparent 82%
+ );
}
.alignRight {
diff --git a/frontend/src/metabase/ui/components/data-display/Timeline/Timeline.stories.tsx b/frontend/src/metabase/ui/components/data-display/Timeline/Timeline.stories.tsx
index 751dfc16cdb..a53e743e207 100644
--- a/frontend/src/metabase/ui/components/data-display/Timeline/Timeline.stories.tsx
+++ b/frontend/src/metabase/ui/components/data-display/Timeline/Timeline.stories.tsx
@@ -6,7 +6,7 @@ const args = {
align: "left",
bulletSize: 20,
lineWidth: 2,
- color: "var(--mb-color-brand)",
+ color: "var(--mb-color-core-brand)",
};
const argTypes = {
diff --git a/frontend/src/metabase/ui/components/data-display/TreeTable/EntityNameCell/EntityNameCell.tsx b/frontend/src/metabase/ui/components/data-display/TreeTable/EntityNameCell/EntityNameCell.tsx
index 45be9eabdfc..06b5207d8b2 100644
--- a/frontend/src/metabase/ui/components/data-display/TreeTable/EntityNameCell/EntityNameCell.tsx
+++ b/frontend/src/metabase/ui/components/data-display/TreeTable/EntityNameCell/EntityNameCell.tsx
@@ -19,7 +19,7 @@ interface EntityNameCellProps {
export const EntityNameCell = memo(function EntityNameCell({
icon,
name,
- iconColor = "brand",
+ iconColor = "core-brand",
wrap = false,
tooltipOpenDelay = 600,
ellipsifiedProps,
diff --git a/frontend/src/metabase/ui/components/data-display/TreeTable/ExpandButton/ExpandButton.tsx b/frontend/src/metabase/ui/components/data-display/TreeTable/ExpandButton/ExpandButton.tsx
index 788b81fbf9d..96e371332ae 100644
--- a/frontend/src/metabase/ui/components/data-display/TreeTable/ExpandButton/ExpandButton.tsx
+++ b/frontend/src/metabase/ui/components/data-display/TreeTable/ExpandButton/ExpandButton.tsx
@@ -19,7 +19,7 @@ export const ExpandButton = memo(function ExpandButton({
if (isLoading) {
return (
<Center w={16} h={16} className={S.wrapper} aria-hidden="true">
- <Loader size="xs" color="brand" aria-label={t`Loading`} />
+ <Loader size="xs" color="core-brand" aria-label={t`Loading`} />
</Center>
);
}
diff --git a/frontend/src/metabase/ui/components/feedback/Alert/Alert.config.tsx b/frontend/src/metabase/ui/components/feedback/Alert/Alert.config.tsx
index 966899c1b18..e5f1958271d 100644
--- a/frontend/src/metabase/ui/components/feedback/Alert/Alert.config.tsx
+++ b/frontend/src/metabase/ui/components/feedback/Alert/Alert.config.tsx
@@ -14,7 +14,10 @@ export const alertOverrides: MantineThemeOverride["components"] = {
title: AlertStyles.title,
},
vars: (_theme, props) => {
- const bgColor = `background-${props.color}`;
+ const bgColor =
+ props.color === "core-brand"
+ ? "background-brand"
+ : `background-${props.color}`;
if (isColorName(props.color) && isColorName(bgColor)) {
return {
root: {
diff --git a/frontend/src/metabase/ui/components/feedback/Alert/Alert.stories.tsx b/frontend/src/metabase/ui/components/feedback/Alert/Alert.stories.tsx
index a72de327d40..f4098c9f346 100644
--- a/frontend/src/metabase/ui/components/feedback/Alert/Alert.stories.tsx
+++ b/frontend/src/metabase/ui/components/feedback/Alert/Alert.stories.tsx
@@ -74,7 +74,7 @@ const multiColor = (args: AlertProps) => {
data access for the entire database to Blocked.
</Text>
</Alert>
- <Alert {...args} color="brand">
+ <Alert {...args} color="core-brand">
<Text>
In a future release, if a group’s View data access for a database (or
any of its schemas or tables) is still set to No self-service
diff --git a/frontend/src/metabase/ui/components/feedback/Alert/index.tsx b/frontend/src/metabase/ui/components/feedback/Alert/index.tsx
index f568bd960e3..bdcb6e64c78 100644
--- a/frontend/src/metabase/ui/components/feedback/Alert/index.tsx
+++ b/frontend/src/metabase/ui/components/feedback/Alert/index.tsx
@@ -5,7 +5,7 @@ import {
export { alertOverrides } from "./Alert.config";
export type AlertProps = MantineAlertProps & {
- color?: "brand" | "warning" | "error" | "info" | "success";
+ color?: "core-brand" | "warning" | "error" | "info" | "success";
};
export const Alert = (props: AlertProps) => <MantineAlert {...props} />;
diff --git a/frontend/src/metabase/ui/components/feedback/Progress/Progress.config.tsx b/frontend/src/metabase/ui/components/feedback/Progress/Progress.config.tsx
index a7733e7d16d..712072e8d2f 100644
--- a/frontend/src/metabase/ui/components/feedback/Progress/Progress.config.tsx
+++ b/frontend/src/metabase/ui/components/feedback/Progress/Progress.config.tsx
@@ -13,7 +13,8 @@ export const progressOverrides: MantineThemeOverride["components"] = {
// @ts-expect-error - mantine sets this variable in 'section', which doesn't allow us to use it for setting a border color
vars: (theme, props) => ({
root: {
- "--progress-section-color": props.color ?? theme.colors.brand[0],
+ "--progress-section-color":
+ props.color ?? theme.colors["core-brand"][0],
},
}),
}),
diff --git a/frontend/src/metabase/ui/components/inputs/Calendar/Calendar.module.css b/frontend/src/metabase/ui/components/inputs/Calendar/Calendar.module.css
index e1ec80a5ca4..34c9434ee09 100644
--- a/frontend/src/metabase/ui/components/inputs/Calendar/Calendar.module.css
+++ b/frontend/src/metabase/ui/components/inputs/Calendar/Calendar.module.css
@@ -44,10 +44,10 @@
&[data-selected] {
color: var(--mb-color-text-primary-inverse);
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
&:hover {
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
}
}
@@ -100,7 +100,7 @@
&[data-selected] {
color: var(--mb-color-text-primary-inverse);
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
}
@@ -226,7 +226,7 @@
&[data-selected] {
color: var(--mb-color-text-primary-inverse);
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
&:hover:not([data-selected], :disabled) {
diff --git a/frontend/src/metabase/ui/components/inputs/Checkbox/Checkbox.module.css b/frontend/src/metabase/ui/components/inputs/Checkbox/Checkbox.module.css
index 9ea41b42c51..4c97e554d8f 100644
--- a/frontend/src/metabase/ui/components/inputs/Checkbox/Checkbox.module.css
+++ b/frontend/src/metabase/ui/components/inputs/Checkbox/Checkbox.module.css
@@ -50,7 +50,7 @@
}
&:checked:not([disabled]):after {
- border: 1px solid var(--mb-color-brand);
+ border: 1px solid var(--mb-color-core-brand);
}
&:disabled:after {
@@ -71,13 +71,13 @@
/* Mantine compatibility: supports old and new data-indeterminate. See: https://github.com/mantinedev/mantine/pull/8385 */
&[data-indeterminate],
&[data-indeterminate="true"] {
- border-color: var(--mb-color-brand);
- background-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
+ background-color: var(--mb-color-core-brand);
}
&:checked {
- border-color: var(--mb-color-brand);
- background-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
+ background-color: var(--mb-color-core-brand);
}
&:not(:disabled) {
diff --git a/frontend/src/metabase/ui/components/inputs/Chip/Chip.module.css b/frontend/src/metabase/ui/components/inputs/Chip/Chip.module.css
index 532086cd3f3..2f1fc70c44c 100644
--- a/frontend/src/metabase/ui/components/inputs/Chip/Chip.module.css
+++ b/frontend/src/metabase/ui/components/inputs/Chip/Chip.module.css
@@ -1,6 +1,6 @@
.ChipLabel {
background-color: var(--mb-color-background-brand);
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
padding: 0.5rem 1rem;
display: block;
height: auto;
@@ -8,7 +8,7 @@
&[data-checked="true"] {
padding-inline: 1rem;
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
color: var(--mb-color-text-primary-inverse);
}
}
diff --git a/frontend/src/metabase/ui/components/inputs/Combobox/Combobox.module.css b/frontend/src/metabase/ui/components/inputs/Combobox/Combobox.module.css
index 78fac268242..3273ac3bda1 100644
--- a/frontend/src/metabase/ui/components/inputs/Combobox/Combobox.module.css
+++ b/frontend/src/metabase/ui/components/inputs/Combobox/Combobox.module.css
@@ -8,7 +8,7 @@
&:hover,
&[data-combobox-selected="true"] {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-hover);
}
}
diff --git a/frontend/src/metabase/ui/components/inputs/Input/Input.module.css b/frontend/src/metabase/ui/components/inputs/Input/Input.module.css
index 42bf4a2b0eb..b2d25996c7a 100644
--- a/frontend/src/metabase/ui/components/inputs/Input/Input.module.css
+++ b/frontend/src/metabase/ui/components/inputs/Input/Input.module.css
@@ -35,11 +35,11 @@
border-color: var(--mb-color-border);
&:hover:not(:disabled) {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
&:focus {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
&[data-error] {
diff --git a/frontend/src/metabase/ui/components/inputs/Radio/Radio.module.css b/frontend/src/metabase/ui/components/inputs/Radio/Radio.module.css
index dadd89a0ef5..4ec1c3d209d 100644
--- a/frontend/src/metabase/ui/components/inputs/Radio/Radio.module.css
+++ b/frontend/src/metabase/ui/components/inputs/Radio/Radio.module.css
@@ -27,8 +27,8 @@
}
&:checked {
- border-color: var(--mb-color-brand);
- background-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
+ background-color: var(--mb-color-core-brand);
}
&:disabled {
diff --git a/frontend/src/metabase/ui/components/inputs/SegmentedControl/SegmentedControl.module.css b/frontend/src/metabase/ui/components/inputs/SegmentedControl/SegmentedControl.module.css
index c35b590fcb4..3bb709fca53 100644
--- a/frontend/src/metabase/ui/components/inputs/SegmentedControl/SegmentedControl.module.css
+++ b/frontend/src/metabase/ui/components/inputs/SegmentedControl/SegmentedControl.module.css
@@ -7,7 +7,7 @@
line-height: 1;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
&[data-disabled] {
diff --git a/frontend/src/metabase/ui/components/inputs/SegmentedControl/SegmentedControl.stories.tsx b/frontend/src/metabase/ui/components/inputs/SegmentedControl/SegmentedControl.stories.tsx
index 1566c284871..7a4b7630a8f 100644
--- a/frontend/src/metabase/ui/components/inputs/SegmentedControl/SegmentedControl.stories.tsx
+++ b/frontend/src/metabase/ui/components/inputs/SegmentedControl/SegmentedControl.stories.tsx
@@ -70,7 +70,7 @@ export const Color = {
value: "transparent",
},
],
- color: "brand",
+ color: "core-brand",
c: "var(--mb-color-text-primary-inverse)",
},
};
diff --git a/frontend/src/metabase/ui/components/inputs/Switch/Switch.config.ts b/frontend/src/metabase/ui/components/inputs/Switch/Switch.config.ts
index 8c61a08e014..961f16462fa 100644
--- a/frontend/src/metabase/ui/components/inputs/Switch/Switch.config.ts
+++ b/frontend/src/metabase/ui/components/inputs/Switch/Switch.config.ts
@@ -49,7 +49,7 @@ const TRACK_PADDING_TOP: Record<string, string> = {
export const switchOverrides = {
Switch: Switch.extend({
defaultProps: {
- color: "brand",
+ color: "core-brand",
size: "md",
},
classNames: {
diff --git a/frontend/src/metabase/ui/components/inputs/Switch/Switch.module.css b/frontend/src/metabase/ui/components/inputs/Switch/Switch.module.css
index 85d31953fdf..d7d5435206c 100644
--- a/frontend/src/metabase/ui/components/inputs/Switch/Switch.module.css
+++ b/frontend/src/metabase/ui/components/inputs/Switch/Switch.module.css
@@ -85,7 +85,7 @@
}
input:checked + & {
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
input:disabled + & {
diff --git a/frontend/src/metabase/ui/components/navigation/NavLink/NavLink.module.css b/frontend/src/metabase/ui/components/navigation/NavLink/NavLink.module.css
index dea637ccfba..f805a93c8b9 100644
--- a/frontend/src/metabase/ui/components/navigation/NavLink/NavLink.module.css
+++ b/frontend/src/metabase/ui/components/navigation/NavLink/NavLink.module.css
@@ -11,7 +11,7 @@
&,
&:hover {
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
.NavLinkLabel {
diff --git a/frontend/src/metabase/ui/components/navigation/Tabs/Tab.module.css b/frontend/src/metabase/ui/components/navigation/Tabs/Tab.module.css
index 0d40e3ab868..a1469c3f34c 100644
--- a/frontend/src/metabase/ui/components/navigation/Tabs/Tab.module.css
+++ b/frontend/src/metabase/ui/components/navigation/Tabs/Tab.module.css
@@ -37,7 +37,7 @@
&[data-active="true"] {
color: var(--mb-color-text-brand);
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/ui/components/typography/Anchor/Anchor.module.css b/frontend/src/metabase/ui/components/typography/Anchor/Anchor.module.css
index c43fb629b04..39a3b7fdaab 100644
--- a/frontend/src/metabase/ui/components/typography/Anchor/Anchor.module.css
+++ b/frontend/src/metabase/ui/components/typography/Anchor/Anchor.module.css
@@ -1,5 +1,5 @@
.root {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
&:active {
color: var(--mb-color-text-primary);
diff --git a/frontend/src/metabase/ui/syntax/highlight.module.css b/frontend/src/metabase/ui/syntax/highlight.module.css
index 4ae48cec2d1..a70c9d1f9b8 100644
--- a/frontend/src/metabase/ui/syntax/highlight.module.css
+++ b/frontend/src/metabase/ui/syntax/highlight.module.css
@@ -41,7 +41,7 @@
}
.squareBracket {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.callExpression {
@@ -49,7 +49,7 @@
}
.processingInstruction {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
.logicOperator {
diff --git a/frontend/src/metabase/ui/theme.ts b/frontend/src/metabase/ui/theme.ts
index 992b36139c3..9afa5c092c9 100644
--- a/frontend/src/metabase/ui/theme.ts
+++ b/frontend/src/metabase/ui/theme.ts
@@ -78,7 +78,7 @@ export const getThemeOverrides = (
focusClassName: Styles.focus,
breakpoints,
colors: getMantineThemeColors(colorScheme, whitelabelColors),
- primaryColor: "brand",
+ primaryColor: "core-brand",
primaryShade: 0,
// Store colorScheme in other property for access later
other: {
diff --git a/frontend/src/metabase/visualizations/components/ClickActions/ClickActionControl.module.css b/frontend/src/metabase/visualizations/components/ClickActions/ClickActionControl.module.css
index bb93bd14930..bdff4242b4f 100644
--- a/frontend/src/metabase/visualizations/components/ClickActions/ClickActionControl.module.css
+++ b/frontend/src/metabase/visualizations/components/ClickActions/ClickActionControl.module.css
@@ -1,7 +1,7 @@
.horizontalButton[data-variant="inverse"] {
&:hover {
color: var(--mb-color-text-primary-inverse);
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
.clickActionButtonIcon,
.clickActionButtonTextIcon {
diff --git a/frontend/src/metabase/visualizations/components/EmptyVizState/EmptyVizState.tsx b/frontend/src/metabase/visualizations/components/EmptyVizState/EmptyVizState.tsx
index a03bc4fefaa..07501d7c90d 100644
--- a/frontend/src/metabase/visualizations/components/EmptyVizState/EmptyVizState.tsx
+++ b/frontend/src/metabase/visualizations/components/EmptyVizState/EmptyVizState.tsx
@@ -80,7 +80,7 @@ export const EmptyVizState = ({
<ExternalLink href={url}>
<Group gap="xs">
<strong>{secondaryText}</strong>
- <Icon name="external" c="brand" />
+ <Icon name="external" c="core-brand" />
</Group>
</ExternalLink>
)}
diff --git a/frontend/src/metabase/visualizations/components/FunnelNormal.tsx b/frontend/src/metabase/visualizations/components/FunnelNormal.tsx
index 573578f73f6..acf1c29de57 100644
--- a/frontend/src/metabase/visualizations/components/FunnelNormal.tsx
+++ b/frontend/src/metabase/visualizations/components/FunnelNormal.tsx
@@ -315,7 +315,7 @@ const GraphSection = ({
>
<polygon
opacity={calculateStepOpacity(index, numSteps)}
- fill={Color(color("brand")).hex()}
+ fill={Color(color("core-brand")).hex()}
points={`0 ${info.graph.startBottom}, 0 ${info.graph.startTop}, 1 ${info.graph.endTop}, 1 ${info.graph.endBottom}`}
/>
</svg>
diff --git a/frontend/src/metabase/visualizations/components/LeafletChoropleth.tsx b/frontend/src/metabase/visualizations/components/LeafletChoropleth.tsx
index 157cab47a6e..ea54305dd3d 100644
--- a/frontend/src/metabase/visualizations/components/LeafletChoropleth.tsx
+++ b/frontend/src/metabase/visualizations/components/LeafletChoropleth.tsx
@@ -36,7 +36,7 @@ export const LeafletChoropleth = ({
isFeatureCollection(geoJson) ? geoJson.features : [geoJson],
)
: undefined,
- getColor = () => color("brand"),
+ getColor = () => color("core-brand"),
onHoverFeature = () => {},
onClickFeature = () => {},
onRenderError = () => {},
@@ -69,7 +69,7 @@ export const LeafletChoropleth = ({
});
const style = (feature?: Feature): L.PathOptions => ({
- fillColor: feature ? getColor(feature) : color("brand"),
+ fillColor: feature ? getColor(feature) : color("core-brand"),
weight: 1,
opacity: 1,
color: "white",
diff --git a/frontend/src/metabase/visualizations/components/PaginationFooter/PaginationFooter.styled.tsx b/frontend/src/metabase/visualizations/components/PaginationFooter/PaginationFooter.styled.tsx
index ded9d8f588f..94deee72dbb 100644
--- a/frontend/src/metabase/visualizations/components/PaginationFooter/PaginationFooter.styled.tsx
+++ b/frontend/src/metabase/visualizations/components/PaginationFooter/PaginationFooter.styled.tsx
@@ -24,7 +24,7 @@ export const PaginationButton = styled.button<{
cursor: pointer;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
${(props) =>
diff --git a/frontend/src/metabase/visualizations/components/ScalarValue/ScalarValue.module.css b/frontend/src/metabase/visualizations/components/ScalarValue/ScalarValue.module.css
index 134e70cc9bf..a890cd5dade 100644
--- a/frontend/src/metabase/visualizations/components/ScalarValue/ScalarValue.module.css
+++ b/frontend/src/metabase/visualizations/components/ScalarValue/ScalarValue.module.css
@@ -8,5 +8,5 @@
}
.hoverable:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
diff --git a/frontend/src/metabase/visualizations/components/TableInteractive/cells/MiniBarCell.tsx b/frontend/src/metabase/visualizations/components/TableInteractive/cells/MiniBarCell.tsx
index c582f039eda..ac926f8c9be 100644
--- a/frontend/src/metabase/visualizations/components/TableInteractive/cells/MiniBarCell.tsx
+++ b/frontend/src/metabase/visualizations/components/TableInteractive/cells/MiniBarCell.tsx
@@ -53,7 +53,7 @@ export const MiniBarCell = <TValue,>({
style,
barWidth = BAR_WIDTH,
barHeight = BAR_HEIGHT,
- barColor = color("brand"),
+ barColor = color("core-brand"),
}: MiniBarCellProps<TValue>) => {
const [min, max] = extent ?? [undefined, undefined];
if (
diff --git a/frontend/src/metabase/visualizations/components/Visualization/LoadingView/LoadingView.styled.tsx b/frontend/src/metabase/visualizations/components/Visualization/LoadingView/LoadingView.styled.tsx
index e94aa03260d..09be6475571 100644
--- a/frontend/src/metabase/visualizations/components/Visualization/LoadingView/LoadingView.styled.tsx
+++ b/frontend/src/metabase/visualizations/components/Visualization/LoadingView/LoadingView.styled.tsx
@@ -11,7 +11,7 @@ export const Root = styled.div`
justify-content: center;
text-align: center;
padding: 0.5rem;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
`;
export const SlowQueryMessageContainer = styled.div`
diff --git a/frontend/src/metabase/visualizations/components/legend/Legend.styled.tsx b/frontend/src/metabase/visualizations/components/legend/Legend.styled.tsx
index 8b33f3f1fe9..b07f3a8acab 100644
--- a/frontend/src/metabase/visualizations/components/legend/Legend.styled.tsx
+++ b/frontend/src/metabase/visualizations/components/legend/Legend.styled.tsx
@@ -12,11 +12,11 @@ export const LegendRoot = styled.div<{ isVertical: boolean }>`
export const LegendLink = styled.div`
cursor: pointer;
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
font-weight: bold;
&:hover {
- color: ${() => darken("brand")};
+ color: ${() => darken("core-brand")};
}
`;
diff --git a/frontend/src/metabase/visualizations/components/legend/LegendItem.styled.tsx b/frontend/src/metabase/visualizations/components/legend/LegendItem.styled.tsx
index 2534e09de4c..5b265c2bcef 100644
--- a/frontend/src/metabase/visualizations/components/legend/LegendItem.styled.tsx
+++ b/frontend/src/metabase/visualizations/components/legend/LegendItem.styled.tsx
@@ -20,7 +20,8 @@ export const LegendItemLabel = styled.div<{ isMuted: boolean }>`
transition: opacity 0.25s linear;
&:hover {
- color: ${({ onMouseEnter }) => onMouseEnter && "var(--mb-color-brand)"};
+ color: ${({ onMouseEnter }) =>
+ onMouseEnter && "var(--mb-color-core-brand)"};
}
`;
@@ -42,6 +43,6 @@ export const LegendItemTitle = styled.div<{
: "unset"};
&:hover {
- color: ${({ onClick }) => onClick && "var(--mb-color-brand)"};
+ color: ${({ onClick }) => onClick && "var(--mb-color-core-brand)"};
}
`;
diff --git a/frontend/src/metabase/visualizations/components/legend/LegendLabel.module.css b/frontend/src/metabase/visualizations/components/legend/LegendLabel.module.css
index d6abc241114..7ba60307a20 100644
--- a/frontend/src/metabase/visualizations/components/legend/LegendLabel.module.css
+++ b/frontend/src/metabase/visualizations/components/legend/LegendLabel.module.css
@@ -19,6 +19,6 @@
}
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/visualizations/components/settings/ChartNestedSettingSeries.styled.tsx b/frontend/src/metabase/visualizations/components/settings/ChartNestedSettingSeries.styled.tsx
index 766a27c48cc..df84ec8395a 100644
--- a/frontend/src/metabase/visualizations/components/settings/ChartNestedSettingSeries.styled.tsx
+++ b/frontend/src/metabase/visualizations/components/settings/ChartNestedSettingSeries.styled.tsx
@@ -9,7 +9,7 @@ export const OptionsIcon = styled(Icon)`
cursor: pointer;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
`;
diff --git a/frontend/src/metabase/visualizations/components/settings/ChartSettingFieldPicker.styled.tsx b/frontend/src/metabase/visualizations/components/settings/ChartSettingFieldPicker.styled.tsx
index a5bbcd223ce..da0f2fcfddd 100644
--- a/frontend/src/metabase/visualizations/components/settings/ChartSettingFieldPicker.styled.tsx
+++ b/frontend/src/metabase/visualizations/components/settings/ChartSettingFieldPicker.styled.tsx
@@ -18,7 +18,7 @@ export const ChartSettingFieldPickerRoot = styled(Group, {
&:hover {
${GrabberHandle} {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
`;
diff --git a/frontend/src/metabase/visualizations/components/settings/ChartSettingRadio.tsx b/frontend/src/metabase/visualizations/components/settings/ChartSettingRadio.tsx
index ccf4676c9fa..b8c80d11521 100644
--- a/frontend/src/metabase/visualizations/components/settings/ChartSettingRadio.tsx
+++ b/frontend/src/metabase/visualizations/components/settings/ChartSettingRadio.tsx
@@ -37,7 +37,10 @@ export const ChartSettingRadio = ({
<Radio
key={optionValue}
label={
- <Text fw="bold" c={optionValue === value ? "brand" : undefined}>
+ <Text
+ fw="bold"
+ c={optionValue === value ? "core-brand" : undefined}
+ >
{name}
</Text>
}
diff --git a/frontend/src/metabase/visualizations/components/settings/ColumnItem/ColumnItem.module.css b/frontend/src/metabase/visualizations/components/settings/ColumnItem/ColumnItem.module.css
index 077a3a394a3..ac8223e889c 100644
--- a/frontend/src/metabase/visualizations/components/settings/ColumnItem/ColumnItem.module.css
+++ b/frontend/src/metabase/visualizations/components/settings/ColumnItem/ColumnItem.module.css
@@ -4,5 +4,5 @@
}
.ColumnItemRoot.Draggable:hover .ColumnItemDragHandle {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
diff --git a/frontend/src/metabase/visualizations/echarts/boxplot/option/series.ts b/frontend/src/metabase/visualizations/echarts/boxplot/option/series.ts
index 08f36a6f28c..2fc5873caa6 100644
--- a/frontend/src/metabase/visualizations/echarts/boxplot/option/series.ts
+++ b/frontend/src/metabase/visualizations/echarts/boxplot/option/series.ts
@@ -60,7 +60,7 @@ export const buildEChartsBoxPlotSeries = (
.filter((seriesModel) => seriesModel.visible)
.map((seriesModel) => {
const seriesColor =
- seriesModel.color ?? renderingContext.getColor("brand");
+ seriesModel.color ?? renderingContext.getColor("core-brand");
const fillColor = Color(seriesColor).alpha(BOX_FILL_OPACITY).string();
const yAxisIndex = getSeriesYAxisIndex(chartModel, seriesModel.dataKey);
const dataKey = seriesModel.dataKey;
@@ -132,7 +132,7 @@ export const buildEChartsMeanSeries = (
.filter((seriesModel) => seriesModel.visible)
.map((seriesModel) => {
const seriesColor =
- seriesModel.color ?? renderingContext.getColor("brand");
+ seriesModel.color ?? renderingContext.getColor("core-brand");
const meanColor = Color(seriesColor)
.darken(MEAN_COLOR_DARKEN_FACTOR)
.hex();
@@ -209,7 +209,7 @@ export const buildEChartsPointsSeries = (
showValuesMode === "all" && labelFormatter != null && showSeriesValues;
const seriesColor =
- seriesModel.color ?? renderingContext.getColor("brand");
+ seriesModel.color ?? renderingContext.getColor("core-brand");
const xOffsetPixels = visibleSeriesOffsets.get(seriesModel.dataKey) ?? 0;
const yAxisIndex = getSeriesYAxisIndex(chartModel, seriesModel.dataKey);
const dataKey = seriesModel.dataKey;
diff --git a/frontend/src/metabase/visualizations/echarts/cartesian/option/index.ts b/frontend/src/metabase/visualizations/echarts/cartesian/option/index.ts
index cf5d84511f7..a19d4c45c2d 100644
--- a/frontend/src/metabase/visualizations/echarts/cartesian/option/index.ts
+++ b/frontend/src/metabase/visualizations/echarts/cartesian/option/index.ts
@@ -45,7 +45,7 @@ import { getTrendLinesOption } from "./trend-line";
import type { EChartsSeriesOption } from "./types";
export function getBrushStyle(renderingContext: RenderingContext) {
- const brandColor = Color(renderingContext.getColor("brand"));
+ const brandColor = Color(renderingContext.getColor("core-brand"));
return {
fill: brandColor.alpha(CHART_STYLE.brush.fillOpacity).string(),
borderColor: brandColor.alpha(CHART_STYLE.brush.borderOpacity).string(),
diff --git a/frontend/src/metabase/visualizations/echarts/cartesian/timeline-events/option.ts b/frontend/src/metabase/visualizations/echarts/cartesian/timeline-events/option.ts
index d320c3098b2..a5bb9f40a64 100644
--- a/frontend/src/metabase/visualizations/echarts/cartesian/timeline-events/option.ts
+++ b/frontend/src/metabase/visualizations/echarts/cartesian/timeline-events/option.ts
@@ -58,7 +58,7 @@ export const getTimelineEventsSeries = (
selectedEventsIds.includes(event.id),
);
- const color = getColor(isSelected ? "brand" : "text-tertiary");
+ const color = getColor(isSelected ? "core-brand" : "text-tertiary");
const iconName =
events.length === 1 ? (events[0].icon as IconName) : "star";
@@ -71,7 +71,7 @@ export const getTimelineEventsSeries = (
symbolOffset: [0, 12],
symbolRotate: 0,
symbol: dataUri,
- lineStyle: isSelected ? { color: getColor("brand") } : undefined,
+ lineStyle: isSelected ? { color: getColor("core-brand") } : undefined,
label: {
show: events.length > 1,
formatter: () => String(events.length),
@@ -115,13 +115,13 @@ export const getTimelineEventsSeries = (
},
emphasis: {
lineStyle: {
- color: getColor("brand"),
+ color: getColor("core-brand"),
},
label: {
- color: getColor("brand"),
+ color: getColor("core-brand"),
},
itemStyle: {
- color: getColor("brand"),
+ color: getColor("core-brand"),
},
},
symbol: "none",
diff --git a/frontend/src/metabase/visualizations/visualizations/List/components/ListView/ListView.module.css b/frontend/src/metabase/visualizations/visualizations/List/components/ListView/ListView.module.css
index 28ec80af872..c1d6dfae021 100644
--- a/frontend/src/metabase/visualizations/visualizations/List/components/ListView/ListView.module.css
+++ b/frontend/src/metabase/visualizations/visualizations/List/components/ListView/ListView.module.css
@@ -91,7 +91,7 @@
color: var(--mb-color-text-tertiary);
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
@@ -131,5 +131,5 @@
.selected {
outline-offset: 0.125rem;
- outline: 1px solid var(--mb-color-brand);
+ outline: 1px solid var(--mb-color-core-brand);
}
diff --git a/frontend/src/metabase/visualizations/visualizations/List/components/ListView/styling.ts b/frontend/src/metabase/visualizations/visualizations/List/components/ListView/styling.ts
index ced082c90a7..08c49e8c7d3 100644
--- a/frontend/src/metabase/visualizations/visualizations/List/components/ListView/styling.ts
+++ b/frontend/src/metabase/visualizations/visualizations/List/components/ListView/styling.ts
@@ -30,7 +30,7 @@ export const getEntityIcon = (entityType?: string) => {
export const ENTITY_ICON_COLORS: ColorName[] = [
"text-primary",
- "brand",
+ "core-brand",
"accent1",
"accent2",
"accent3",
diff --git a/frontend/src/metabase/visualizations/visualizations/PivotTable/PivotTable.styled.tsx b/frontend/src/metabase/visualizations/visualizations/PivotTable/PivotTable.styled.tsx
index 2674c166a84..9a5cd74698c 100644
--- a/frontend/src/metabase/visualizations/visualizations/PivotTable/PivotTable.styled.tsx
+++ b/frontend/src/metabase/visualizations/visualizations/PivotTable/PivotTable.styled.tsx
@@ -203,10 +203,10 @@ export const ResizeHandle = styled.div`
cursor: ew-resize;
&:active {
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
&:hover {
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
`;
diff --git a/frontend/src/metabase/visualizations/visualizations/Scalar/ScalarValueContainer.module.css b/frontend/src/metabase/visualizations/visualizations/Scalar/ScalarValueContainer.module.css
index bb3427a1ccb..8260eef783b 100644
--- a/frontend/src/metabase/visualizations/visualizations/Scalar/ScalarValueContainer.module.css
+++ b/frontend/src/metabase/visualizations/visualizations/Scalar/ScalarValueContainer.module.css
@@ -8,6 +8,6 @@
cursor: pointer;
&:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
diff --git a/frontend/src/metabase/visualizations/visualizations/SmartScalar/SettingsComponents/MenuItem.module.css b/frontend/src/metabase/visualizations/visualizations/SmartScalar/SettingsComponents/MenuItem.module.css
index fc8a2274110..6aebbd178b5 100644
--- a/frontend/src/metabase/visualizations/visualizations/SmartScalar/SettingsComponents/MenuItem.module.css
+++ b/frontend/src/metabase/visualizations/visualizations/SmartScalar/SettingsComponents/MenuItem.module.css
@@ -1,4 +1,4 @@
.isSelected {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-selected);
}
diff --git a/frontend/src/metabase/visualizations/visualizations/SmartScalar/SettingsComponents/SmartScalarSettingsWidgets.styled.tsx b/frontend/src/metabase/visualizations/visualizations/SmartScalar/SettingsComponents/SmartScalarSettingsWidgets.styled.tsx
index ed840caa19e..0e0f0de9590 100644
--- a/frontend/src/metabase/visualizations/visualizations/SmartScalar/SettingsComponents/SmartScalarSettingsWidgets.styled.tsx
+++ b/frontend/src/metabase/visualizations/visualizations/SmartScalar/SettingsComponents/SmartScalarSettingsWidgets.styled.tsx
@@ -38,7 +38,7 @@ export const ComparisonPickerButton = styled(Button)<ButtonProps>`
&:hover {
${ComparisonPickerSecondaryText} {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
}
}
` as unknown as typeof Button;
diff --git a/frontend/src/metabase/visualizer/components/DataImporter/ColumnsList/ColumnsListItem.tsx b/frontend/src/metabase/visualizer/components/DataImporter/ColumnsList/ColumnsListItem.tsx
index f0f0fed3858..86a01672915 100644
--- a/frontend/src/metabase/visualizer/components/DataImporter/ColumnsList/ColumnsListItem.tsx
+++ b/frontend/src/metabase/visualizer/components/DataImporter/ColumnsList/ColumnsListItem.tsx
@@ -38,7 +38,7 @@ export const ColumnsListItem = forwardRef<HTMLDivElement, ColumnsListItemProps>(
style.pointerEvents = "none";
return style;
} else if (highlightedForDrag) {
- style.border = "2px solid var(--mb-color-brand)";
+ style.border = "2px solid var(--mb-color-core-brand)";
style.boxShadow = "0px 1px 4px 1px var(--mb-color-shadow)";
style.cursor = "grab";
style.backgroundColor = "var(--mb-color-background-secondary)";
diff --git a/frontend/src/metabase/visualizer/components/DataImporter/DatasetsList/DatasetsListItem.module.css b/frontend/src/metabase/visualizer/components/DataImporter/DatasetsList/DatasetsListItem.module.css
index 0a57995529f..ae90f83cba6 100644
--- a/frontend/src/metabase/visualizer/components/DataImporter/DatasetsList/DatasetsListItem.module.css
+++ b/frontend/src/metabase/visualizer/components/DataImporter/DatasetsList/DatasetsListItem.module.css
@@ -20,7 +20,7 @@
}
.DatasetsListItem:hover {
- color: var(--mb-color-brand);
+ color: var(--mb-color-core-brand);
.InfoIcon {
display: unset;
@@ -35,14 +35,14 @@
}
.AddButton[data-variant="inverse"] {
- --button-color: var(--mb-color-brand);
+ --button-color: var(--mb-color-core-brand);
}
}
.DatasetsListItemSelected,
.DatasetsListItemSelected:hover {
color: var(--mb-color-text-primary-inverse);
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
}
.DatasetsListItemActions {
diff --git a/frontend/src/metabase/visualizer/components/VisualizationCanvas/wells/WellItem.tsx b/frontend/src/metabase/visualizer/components/VisualizationCanvas/wells/WellItem.tsx
index 340d802a059..7c599efcd90 100644
--- a/frontend/src/metabase/visualizer/components/VisualizationCanvas/wells/WellItem.tsx
+++ b/frontend/src/metabase/visualizer/components/VisualizationCanvas/wells/WellItem.tsx
@@ -32,7 +32,7 @@ export const WellItem = forwardRef<HTMLDivElement, WellItemProps>(
...(highlightedForDrag
? {
- border: "2px solid var(--mb-color-brand)",
+ border: "2px solid var(--mb-color-core-brand)",
boxShadow: "0px 1px 4px 1px var(--mb-color-shadow)",
cursor: "grab",
backgroundColor: "var(--mb-color-background-secondary)",
diff --git a/frontend/src/metabase/visualizer/components/VisualizationCanvas/wells/well.module.css b/frontend/src/metabase/visualizer/components/VisualizationCanvas/wells/well.module.css
index 012ed244034..9b785c8def0 100644
--- a/frontend/src/metabase/visualizer/components/VisualizationCanvas/wells/well.module.css
+++ b/frontend/src/metabase/visualizer/components/VisualizationCanvas/wells/well.module.css
@@ -13,7 +13,7 @@
}
.isActive {
- border-color: var(--mb-color-brand);
+ border-color: var(--mb-color-core-brand);
background-color: var(--mb-color-background-brand);
&.isOver {
diff --git a/frontend/src/metabase/visualizer/components/VisualizationPicker/VisualizationPicker.module.css b/frontend/src/metabase/visualizer/components/VisualizationPicker/VisualizationPicker.module.css
index 8f27d1442e3..74824aca4a4 100644
--- a/frontend/src/metabase/visualizer/components/VisualizationPicker/VisualizationPicker.module.css
+++ b/frontend/src/metabase/visualizer/components/VisualizationPicker/VisualizationPicker.module.css
@@ -1,5 +1,5 @@
.ListItem[aria-selected="true"] {
- background-color: var(--mb-color-brand);
+ background-color: var(--mb-color-core-brand);
color: var(--mb-color-text-primary-inverse);
.ListItemLabel {