Skip to content

Commit

Permalink
Merge pull request #24 from raccoongang/buhaienko/MON-5091
Browse files Browse the repository at this point in the history
feat: [MON-5091] superset base branding
  • Loading branch information
dkaliberda authored May 16, 2024
2 parents 6878f63 + 22ab429 commit 8851159
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const config = {
navbar: {
logo: {
alt: 'Superset Logo',
src: '/img/superset-logo-horiz.svg',
src: '/img/superset-logo-horiz.png',
srcDark: '/img/superset-logo-horiz-dark.svg',
},
items: [
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ export default function Home(): JSX.Element {
const navbar = document.body.querySelector('.navbar');
const logo = document.body.querySelector('.navbar__logo img');
navbar.classList.remove('navbar--dark');
logo.setAttribute('src', '/img/superset-logo-horiz.svg');
logo.setAttribute('src', '/img/superset-logo-horiz.png');
};

// Set up dark <-> light navbar change
Expand Down
Binary file modified superset-frontend/src/assets/images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset-frontend/src/assets/images/superset-logo-horiz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion superset-frontend/src/assets/stylesheets/antd/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/*
Theme variables here: https://github.com/ant-design/ant-design/blob/master/components/style/themes/default.less
*/
@primary-color: #e62050;
@primary-color: #2b47ff;
@info-color: #66bcfe;
@success-color: #59c189;
@processing-color: #66bcfe;
Expand Down
16 changes: 8 additions & 8 deletions superset-frontend/src/assets/stylesheets/less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@
/* component styles. This will allow us to more easily adjust theming */
/************************************************************************/

@primary-color: #e62050;
@primary-color: #2b47ff;
@indicator-color: @primary-color;

@brand-primary-dark1: #c1163f;
@brand-primary-dark2: #991132;
@brand-primary-light1: #f1839e;
@brand-primary-light2: #f7b4c4;
@brand-primary-light3: #fce7ec;
@brand-primary-light4: #fce7ec;
@brand-primary-light5: #fce7ec;
@brand-primary-dark1: darken(@primary-color, 10%);
@brand-primary-dark2: darken(@primary-color, 20%);
@brand-primary-light1: lighten(@primary-color, 5%);
@brand-primary-light2: lighten(@primary-color, 10%);
@brand-primary-light3: lighten(@primary-color, 15%);
@brand-primary-light4: #dae9ff;
@brand-primary-light5: lighten(@primary-color, 25%);

@brand-secondary: #444e7c;
@brand-secondary-dark1: #363e63;
Expand Down
2 changes: 1 addition & 1 deletion superset-frontend/src/features/home/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const StyledHeader = styled.header`
.ant-menu-item a {
&:hover {
color: ${theme.colors.grayscale.dark1};
background-color: ${theme.colors.primary.light5};
background-color: transparent;
border-bottom: none;
margin: 0;
&:after {
Expand Down
18 changes: 9 additions & 9 deletions superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def _try_json_readsha(filepath: str, length: int) -> str | None:
APP_NAME = "Superset"

# Specify the App icon
APP_ICON = "/static/assets/images/superset-logo-horiz.svg"
APP_ICON = "/static/assets/images/superset-logo-horiz.png"

# Specify where clicking the logo would take the user
# e.g. setting it to '/' would take the user to '/superset/welcome/'
Expand Down Expand Up @@ -596,14 +596,14 @@ class D3Format(TypedDict, total=False):
THEME_OVERRIDES = {
"colors": {
"primary": {
"base": "#e62050",
"dark1": "#c1163f",
"dark2": "#991132",
"light1": "#f1839e",
"light2": "#f7b4c4",
"light3": "#fce7ec",
"light4": "#fce7ec",
"light5": "#fce7ec",
"base": "#2b47ff",
"dark1": "#2141e6",
"dark2": "#1831cc",
"light1": "#3456ff",
"light2": "#406eff",
"light3": "#4b84ff",
"light4": "#dae9ff",
"light5": "#60b2ff",
}
}
}
Expand Down

0 comments on commit 8851159

Please sign in to comment.