Skip to content

Commit

Permalink
Add midnight theme
Browse files Browse the repository at this point in the history
[CORE-554]
  • Loading branch information
RoyEJohnson committed Dec 12, 2024
1 parent fc51fbe commit b2a50ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/content/components/BookBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const gradients: {[key in BookWithOSWebData['theme']]: string} = {
'gray': '#97999b',
'green': '#9cd14a',
'light-blue': '#1EE1F0',
'midnight': '#003e52',
'orange': '#FAA461',
'red': '#E34361',
'yellow': '#faea36',
Expand Down
2 changes: 1 addition & 1 deletion src/app/content/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export interface PageReference {

export interface BookWithOSWebData extends VersionedArchiveBookWithConfig {
book_state: 'coming_soon' | 'deprecated' | 'live' | 'new_edition_available' | 'retired';
theme: 'blue' | 'green' | 'gray' | 'yellow' | 'deep-green' | 'light-blue' | 'orange' | 'red';
theme: 'blue' | 'green' | 'gray' | 'yellow' | 'deep-green' | 'light-blue' | 'midnight' | 'orange' | 'red';
slug: string;
promote_image: null | {
id: number;
Expand Down
5 changes: 5 additions & 0 deletions src/app/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ const color = {
foreground: textColors.black,
foregroundHover: greyColors.light,
},
'midnight': {
base: '#003e52',
foreground: textColors.white,
foregroundHover: greyColors.darker,
},
'orange': {
base: '#d4450c',
darker: '#be3c08',
Expand Down

0 comments on commit b2a50ae

Please sign in to comment.