-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from christoph-jerolimov/replay-theme-1-1
feat(theme): migrate and release rhdh-theme 0.1.0 (RHDH 1.1)
- Loading branch information
Showing
5 changed files
with
266 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@red-hat-developer-hub/backstage-plugin-theme': minor | ||
--- | ||
|
||
This version contains the initial theme from RHDH 1.1 https://github.com/janus-idp/backstage-showcase/tree/v1.1.0/packages/app/src/themes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
* Copyright 2024 The Backstage Authors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
export const defaultThemePalette = (mode: string) => { | ||
if (mode === 'dark') { | ||
return { | ||
primary: { | ||
main: '#1FA7F8', // text button color, button background color | ||
containedButtonBackground: '#0066CC', // contained button background color | ||
textHover: '#73BCF7', // text button hover color | ||
contrastText: '#FFF', // contained button text color | ||
dark: '#004080', // contained button hover background color | ||
disabledBackground: '#444548', // contained button disabled background color | ||
disabled: '#AAABAC', // contained button disabled text color | ||
focusVisibleBorder: '#ADD6FF', // contained button focus color | ||
}, | ||
secondary: { | ||
main: '#B2A3FF', | ||
containedButtonBackground: '#8476D1', | ||
textHover: '#CBC1FF', | ||
contrastText: '#FFF', | ||
dark: '#6753AC', | ||
disabledBackground: '#444548', | ||
disabled: '#AAABAC', | ||
focusVisibleBorder: '#ADD6FF', | ||
}, | ||
}; | ||
} | ||
return { | ||
primary: { | ||
main: '#0066CC', | ||
containedButtonBackground: '#0066CC', | ||
mainHover: '#004080', | ||
contrastText: '#FFF', | ||
dark: '#004080', | ||
disabledBackground: '#D2D2D2', | ||
disabled: '#6A6E73', | ||
focusVisibleBorder: '#0066CC', | ||
}, | ||
secondary: { | ||
main: '#8476D1', | ||
containedButtonBackground: '#8476D1', | ||
mainHover: '#6753AC', | ||
contrastText: '#FFF', | ||
dark: '#6753AC', | ||
disabledBackground: '#D2D2D2', | ||
disabled: '#6A6E73', | ||
focusVisibleBorder: '#0066CC', | ||
}, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters