Skip to content

Commit

Permalink
Revert "Rename and update text highlight color (#100)" (#104)
Browse files Browse the repository at this point in the history
This reverts commit 03de20a.
  • Loading branch information
fourdim authored Nov 10, 2023
1 parent 1e823f9 commit 69febbf
Showing 1 changed file with 17 additions and 33 deletions.
50 changes: 17 additions & 33 deletions packages/theme/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const lightTheme = {
backgroundTertiaryColor: 'rgb(238, 238, 238)',
backgroundCodeBlock: 'rgba(247, 246, 250, 1)',
backgroundModalColor: 'rgba(0, 0, 0, 0.75)',
textPrimaryColor: 'rgb(18, 18, 18)',
textPrimaryColor: 'rgb(66, 65, 73)',
textSecondaryColor: 'rgb(142, 141, 145)',
textDisableColor: 'rgb(169, 169, 173)',
textEmphasisColor: '#1E96EB',
Expand Down Expand Up @@ -226,22 +226,14 @@ export const lightTheme = {
cardBackgroundGreen: 'linear-gradient(180deg, #F3F9FD 0%, #FCFCFD 100%)',
cardBackgroundGrey: 'linear-gradient(180deg, #F1F1F1 0%, #FCFCFD 100%)',
windowsCloseButton: '#C42B1C',
textHighlightRed: 'rgba(198, 34, 34, 1)',
textHighlightOrange: 'rgba(211, 79, 11, 1)',
textHighlightYellow: 'rgba(182, 124, 4, 1)',
textHighlightGreen: 'rgba(20, 147, 67, 1)',
textHighlightTeal: 'rgba(7, 130, 160, 1)',
textHighlightBlue: 'rgba(33, 89, 211, 1)',
textHighlightPurple: 'rgba(132, 46, 211, 1)',
textHighlightGrey: 'rgba(68, 77, 89, 1)',
textHighlightBackgroundRed: 'rgba(254, 213, 213, 1)',
textHighlightBackgroundOrange: 'rgba(254, 223, 187, 1)',
textHighlightBackgroundYellow: 'rgba(254, 243, 161, 1)',
textHighlightBackgroundGreen: 'rgba(225, 250, 177, 1)',
textHighlightBackgroundTeal: 'rgba(173, 248, 233, 1)',
textHighlightBackgroundBlue: 'rgba(204, 226, 254, 1)',
textHighlightBackgroundPurple: 'rgba(237, 221, 255, 1)',
textHighlightBackgroundGrey: 'rgba(234, 236, 239, 1)',
textHighlightPink: 'rgba(255, 206, 206, 1)',
textHighlightOrange: 'rgba(255, 203, 166, 1)',
textHighlightYellow: 'rgba(255, 245, 171, 1)',
textHighlightGreen: 'rgba(197, 251, 224, 1)',
textHighlightTeal: 'rgba(198, 241, 243, 1)',
textHighlightBlue: 'rgba(195, 219, 255, 1)',
textHighlightPurple: 'rgba(227, 222, 255, 1)',
textHighlightGrey: 'rgba(236, 241, 251, 1)',
};

export const darkTheme = {
Expand Down Expand Up @@ -351,22 +343,14 @@ export const darkTheme = {
cardBackgroundGreen: 'linear-gradient(180deg, #192023 0%, #202020 100%)',
cardBackgroundGrey: 'linear-gradient(180deg, #313131 0%, #202020 100%)',
windowsCloseButton: '#C42B1C',
textHighlightRed: 'rgba(249, 141, 141, 1)',
textHighlightOrange: 'rgba(252, 168, 99, 1)',
textHighlightYellow: 'rgba(251, 214, 68, 1)',
textHighlightGreen: 'rgba(110, 229, 153, 1)',
textHighlightTeal: 'rgba(87, 221, 204, 1)',
textHighlightBlue: 'rgba(128, 183, 251, 1)',
textHighlightPurple: 'rgba(205, 157, 253, 1)',
textHighlightGrey: 'rgba(176, 181, 191, 1)',
textHighlightBackgroundRed: 'rgba(108, 39, 39, 1)',
textHighlightBackgroundOrange: 'rgba(112, 58, 21, 1)',
textHighlightBackgroundYellow: 'rgba(106, 84, 15, 1)',
textHighlightBackgroundGreen: 'rgba(26, 91, 50, 1)',
textHighlightBackgroundTeal: 'rgba(14, 85, 97, 1)',
textHighlightBackgroundBlue: 'rgba(56, 75, 122, 1)',
textHighlightBackgroundPurple: 'rgba(80, 46, 111, 1)',
textHighlightBackgroundGrey: 'rgba(64, 67, 74, 1)',
textHighlightPink: 'rgba(127, 93, 93, 1)',
textHighlightOrange: 'rgba(127, 102, 84, 1)',
textHighlightYellow: 'rgba(137, 133, 90, 1)',
textHighlightGreen: 'rgba(90, 127, 109, 1)',
textHighlightTeal: 'rgba(76, 125, 127, 1)',
textHighlightBlue: 'rgba(72, 95, 127, 1)',
textHighlightPurple: 'rgba(97, 90, 127, 1)',
textHighlightGrey: 'rgba(111, 112, 117, 1)',
} satisfies Omit<AffineTheme, 'editorMode'>;

export const lightCssVariables = Object.entries(lightTheme).reduce(
Expand Down

0 comments on commit 69febbf

Please sign in to comment.