Skip to content

Commit c7a99d7

Browse files
authored
Improving colour differentiation in ChonkUI (#94911)
Solves the following Linear Issues - https://linear.app/getsentry/issue/DE-174/improve-color-clarity-for-cron-check-in-display - https://linear.app/getsentry/issue/DE-147/colours-are-hard-to-differentiate ## Screenshots: ### Crons #### Before ![Screenshot-Light-Color-Crons-Before](https://github.com/user-attachments/assets/99c32ec9-24d5-460c-b229-7cc0a9800d3c) #### After ![Screenshot-Light-Color-Crons-After](https://github.com/user-attachments/assets/69ff450f-c598-46c0-9f83-730c08a12961) #### Before ![Screenshot-Dark-Color-Crons-Before](https://github.com/user-attachments/assets/34cf0d22-6f89-469f-ab9e-63d689f5858b) #### After ![Screenshot-Dark-Color-Crons-After](https://github.com/user-attachments/assets/c34669a0-ce78-4ca8-986e-897d2b72604c) ### Replay #### Before ![Screenshot-Light-Color-Replay-Before](https://github.com/user-attachments/assets/28df1c39-5d4d-41b9-b468-e41008f8aca6) #### After ![Screenshot-Light-Color-Replay-After](https://github.com/user-attachments/assets/8dfa9b18-5aa0-47f3-ad4c-2758903c5418) #### Before ![Screenshot-Dark-Color-Replay-Before](https://github.com/user-attachments/assets/0182ec71-9b8b-4e79-827a-bfa937ed4ac1) #### After ![Screenshot-Dark-Color-Replay-After](https://github.com/user-attachments/assets/8039f947-5b45-4153-ae2f-c7b96930a77b)
1 parent 109aeca commit c7a99d7

File tree

1 file changed

+103
-103
lines changed

1 file changed

+103
-103
lines changed

static/app/utils/theme/theme.chonk.tsx

Lines changed: 103 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -565,13 +565,13 @@ const radius = {
565565

566566
const lightColors = {
567567
black: '#181423',
568-
white: '#F6F5FA',
568+
white: '#FFFFFF',
569569

570570
surface500: '#FFFFFF', // background.primary
571-
surface400: '#F4F4FB', // background.secondary
572-
surface300: '#ECECF8', // background.tertiary
573-
surface200: '#EBE9F2', // border.muted
574-
surface100: '#DAD7E5', // border.primary
571+
surface400: '#F7F6FB', // background.secondary
572+
surface300: '#F1EEF9', // background.tertiary
573+
surface200: '#EAE7F6', // border.muted
574+
surface100: '#DFDBEF', // border.primary
575575

576576
// ⚠ Deprecated
577577
grayOpaque500: '#181423',
@@ -588,53 +588,53 @@ const lightColors = {
588588
grayTransparent100: 'rgba(24, 20, 35, 0.05)',
589589

590590
gray800: '#181423', // content.primary
591-
gray700: '#524E5E', // ⚠ link.muted.active only
592-
gray600: '#5B5866', // ⚠ link.muted.hover only
593-
gray500: '#69676F', // content.secondary, link.muted.default
594-
gray400: '#87858E', // Graphical Objects and User Interface Components
595-
gray300: 'rgba(24, 20, 35, 0.07)',
596-
gray200: 'rgba(24, 20, 35, 0.05)',
597-
gray100: 'rgba(24, 20, 35, 0.03)',
598-
599-
blue700: '#522FE0', // ⚠ link.accent.active only
600-
blue600: '#5A38E8', // ⚠ link.accent.hover only
601-
blue500: '#6341F0', // content.accent, link.accent.default
602-
blue400: '#8466FF', // Graphical Objects and User Interface Components
603-
blue300: 'rgba(117, 83, 255, 0.11)',
604-
blue200: 'rgba(117, 83, 255, 0.08)',
605-
blue100: 'rgba(117, 83, 255, 0.05)',
606-
607-
pink700: '#B81A6E', // ⚠ link.promotion.active only
608-
pink600: '#BF2175', // ⚠ link.promotion.hover only
609-
pink500: '#C8287D', // content.promotion, link.promotion.default
610-
pink400: '#F23A9C', // Graphical Objects and User Interface Components
611-
pink300: 'rgba(255, 69, 168, 0.13)',
612-
pink200: 'rgba(255, 69, 168, 0.10)',
613-
pink100: 'rgba(255, 69, 168, 0.07)',
614-
615-
red700: '#BA0032', // ⚠ link.danger.active only
616-
red600: '#C20034', // ⚠ link.danger.hover only
617-
red500: '#C90036', // ⚠ content.danger, link.danger.default
618-
red400: '#F71954', // Graphical Objects and User Interface Components
619-
red300: 'rgba(255, 0, 68, 0.09)',
620-
red200: 'rgba(255, 0, 68, 0.07)',
621-
red100: 'rgba(255, 0, 68, 0.05)',
622-
623-
yellow700: '#9C5200', // ⚠ link.warning.active only
624-
yellow600: '#A35600', // ⚠ link.warning.hover only
625-
yellow500: '#AC5803', // content.warning, link.warning.default
626-
yellow400: '#D47515', // Graphical Objects and User Interface Components
627-
yellow300: 'rgba(253, 208, 27, 0.28)',
628-
yellow200: 'rgba(253, 208, 27, 0.20)',
629-
yellow100: 'rgba(253, 208, 27, 0.12)',
630-
631-
green700: '#0F6E42', // ⚠ link.success.active only
632-
green600: '#147548', // ⚠ link.success.hover only
633-
green500: '#197D4F', // content.success, link.success.default
634-
green400: '#2F9E6C', // Graphical Objects and User Interface Components
635-
green300: 'rgba(11, 229, 99, 0.18)',
636-
green200: 'rgba(11, 229, 99, 0.13)',
637-
green100: 'rgba(11, 229, 99, 0.18)',
591+
gray700: '#3B434E', // ⚠ link.muted.active only
592+
gray600: '#48515B', // ⚠ link.muted.hover only
593+
gray500: '#57606B', // content.secondary, link.muted.default
594+
gray400: '#707C89', // graphics.muted
595+
gray300: 'rgba(112, 124, 137, 0.12)',
596+
gray200: 'rgba(112, 124, 137, 0.09)',
597+
gray100: 'rgba(112, 124, 137, 0.05)',
598+
599+
blue700: '#4E09BC', // ⚠ link.accent.active only
600+
blue600: '#5D0CDC', // ⚠ link.accent.hover only
601+
blue500: '#6C02FF', // content.accent, link.accent.default
602+
blue400: '#8466FF', // graphics.muted, border.accent
603+
blue300: 'rgba(132, 102, 255, 0.13)',
604+
blue200: 'rgba(132, 102, 255, 0.09)',
605+
blue100: 'rgba(132, 102, 255, 0.05)',
606+
607+
pink700: '#A11B6C', // ⚠ link.promotion.active only
608+
pink600: '#B60979', // ⚠ link.promotion.hover only
609+
pink500: '#D5008D', // content.promotion, link.promotion.default
610+
pink400: '#FF4EB3', // graphics.promotion, border.promotion
611+
pink300: 'rgba(255, 78, 179, 0.17)',
612+
pink200: 'rgba(255, 78, 179, 0.12)',
613+
pink100: 'rgba(255, 78, 179, 0.06)',
614+
615+
red700: '#9C0819', // ⚠ link.danger.active only
616+
red600: '#B1001B', // ⚠ link.danger.hover only
617+
red500: '#CB0020', // ⚠ content.danger, link.danger.default
618+
red400: '#FF002B', // graphics.danger, border.danger
619+
red300: 'rgba(255, 0, 43, 0.10)',
620+
red200: 'rgba(255, 0, 43, 0.08)',
621+
red100: 'rgba(255, 0, 43, 0.04)',
622+
623+
yellow700: '#AD4A0D', // ⚠ link.warning.active only
624+
yellow600: '#C55200', // ⚠ link.warning.hover only
625+
yellow500: '#E66000', // content.warning, link.warning.default
626+
yellow400: '#F3B01B', // graphics.warning, border.warning
627+
yellow300: 'rgba(243, 176, 27, 0.24)',
628+
yellow200: 'rgba(243, 176, 27, 0.17)',
629+
yellow100: 'rgba(243, 176, 27, 0.07)',
630+
631+
green700: '#01651F', // ⚠ link.success.active only
632+
green600: '#017526', // ⚠ link.success.hover only
633+
green500: '#06892F', // content.success, link.success.default
634+
green400: '#06AC3D', // graphics.success, border.success
635+
green300: 'rgba(6, 172, 61, 0.10)',
636+
green200: 'rgba(6, 172, 61, 0.07)',
637+
green100: 'rgba(6, 172, 61, 0.04)',
638638

639639
// Currently used for avatars, badges, booleans, buttons, checkboxes, radio buttons
640640
chonk: {
@@ -667,12 +667,12 @@ const lightColors = {
667667

668668
const darkColors: typeof lightColors = {
669669
black: '#181423',
670-
white: '#F6F5FA',
670+
white: '#FFFFFF',
671671

672672
surface500: '#272433', // background.primary
673-
surface400: '#23202E', // background.secondary
674-
surface300: '#1F1D29', // background.teritary
675-
surface200: '#18151F', // border.muted
673+
surface400: '#231E2F', // background.secondary
674+
surface300: '#191621', // background.teritary
675+
surface200: '#0D071A', // border.muted
676676
surface100: '#000000', // border.primary
677677

678678
// ⚠ Deprecated
@@ -690,53 +690,53 @@ const darkColors: typeof lightColors = {
690690
grayTransparent100: 'rgba(246, 245, 250, 0.10)',
691691

692692
gray800: '#F6F5FA', // content.primary
693-
gray700: '#BBB9C4', // ⚠ link.muted.active only
694-
gray600: '#AFACBD', // ⚠ link.muted.hover only
695-
gray500: '#A49FB5', // content.secondary, link.muted.default
696-
gray400: '#837D99', // Graphical Objects and User Interface Components
697-
gray300: 'rgba(246, 245, 250, 0.12)',
698-
gray200: 'rgba(246, 245, 250, 0.09)',
699-
gray100: 'rgba(246, 245, 250, 0.06)',
700-
701-
blue700: '#C0B0FF', // ⚠ link.accent.active only
702-
blue600: '#B9A8FF', // ⚠ link.accent.hover only
703-
blue500: '#B3A1FF', // content.accent, link.accent.default
704-
blue400: '#9179F2', // Graphical Objects and User Interface Components
705-
blue300: 'rgba(117, 83, 255, 0.30)',
706-
blue200: 'rgba(117, 83, 255, 0.24)',
707-
blue100: 'rgba(117, 83, 255, 0.18)',
708-
709-
pink700: '#F5ABD3', // ⚠ link.promotion.active only
710-
pink600: '#F5A4CF', // ⚠ link.promotion.hover only
711-
pink500: '#F59DCC', // content.promotion, link.promotion.default
712-
pink400: '#DB7FB0', // Graphical Objects and User Interface Components
713-
pink300: 'rgba(255, 69, 168, 0.24)',
714-
pink200: 'rgba(255, 69, 168, 0.18)',
715-
pink100: 'rgba(255, 69, 168, 0.12)',
716-
717-
red700: '#FF94A2', // ⚠ link.danger.active only
718-
red600: '#FF8C9B', // ⚠ link.danger.hover only
719-
red500: '#FF8595', // content.danger, link.danger.default
720-
red400: '#D65E6E', // Graphical Objects and User Interface Components
721-
red300: 'rgba(229, 0, 69, 0.30)',
722-
red200: 'rgba(229, 0, 69, 0.25)',
723-
red100: 'rgba(229, 0, 69, 0.20)',
724-
725-
yellow700: '#FFE375', // ⚠ link.warning.active only
726-
yellow600: '#FFE26E', // ⚠ link.warning.hover only
727-
yellow500: '#FFE166', // content.warning, link.warning.default
728-
yellow400: '#CCB141', // Graphical Objects and User Interface Components
729-
yellow300: 'rgba(253, 185, 27, 0.17)',
730-
yellow200: 'rgba(253, 185, 27, 0.14)',
731-
yellow100: 'rgba(253, 185, 27, 0.10)',
732-
733-
green700: '#60EB98', // ⚠ link.success.active only
734-
green600: '#56E38F', // ⚠ link.success.hover only
735-
green500: '#4DDB86', // content.success, link.success.default
736-
green400: '#2DAD61', // Graphical Objects and User Interface Components
737-
green300: 'rgba(11, 229, 99, 0.18)',
738-
green200: 'rgba(11, 229, 99, 0.14)',
739-
green100: 'rgba(11, 229, 99, 0.10)',
693+
gray700: '#C6C0D6', // ⚠ link.muted.active only
694+
gray600: '#B3ADC3', // ⚠ link.muted.hover only
695+
gray500: '#A39EB3', // content.secondary, link.muted.default
696+
gray400: '#6F6F78', // // graphics.muted
697+
gray300: 'rgba(110, 110, 119, 0.38)',
698+
gray200: 'rgba(110, 110, 119, 0.28)',
699+
gray100: 'rgba(110, 110, 119, 0.20)',
700+
701+
blue700: '#BBB6FC', // ⚠ link.accent.active only
702+
blue600: '#A89EFC', // ⚠ link.accent.hover only
703+
blue500: '#9B8DFF', // content.accent, link.accent.default
704+
blue400: '#8970FF', // // graphics.accent, border.accent
705+
blue300: 'rgba(137, 112, 255, 0.26)',
706+
blue200: 'rgba(137, 112, 255, 0.20)',
707+
blue100: 'rgba(137, 112, 255, 0.14)',
708+
709+
pink700: '#FFC4DF', // ⚠ link.promotion.active only
710+
pink600: '#FFA3CF', // ⚠ link.promotion.hover only
711+
pink500: '#FF8BC6', // content.promotion, link.promotion.default
712+
pink400: '#FF5CB6', // // graphics.promotion, border.promotion
713+
pink300: 'rgba(255, 92, 182, 0.20)',
714+
pink200: 'rgba(255, 92, 182, 0.15)',
715+
pink100: 'rgba(255, 92, 182, 0.11)',
716+
717+
red700: '#FFB0A8', // ⚠ link.danger.active only
718+
red600: '#FF8A82', // ⚠ link.danger.hover only
719+
red500: '#FF6B65', // content.danger, link.danger.default
720+
red400: '#FF333C', // // graphics.danger, border.danger
721+
red300: 'rgba(255, 51, 60, 0.26)',
722+
red200: 'rgba(255, 51, 60, 0.20)',
723+
red100: 'rgba(255, 51, 60, 0.16)',
724+
725+
yellow700: '#FCEBB7', // ⚠ link.warning.active only
726+
yellow600: '#F8DC86', // ⚠ link.warning.hover only
727+
yellow500: '#FDCF20', // content.warning, link.warning.default
728+
yellow400: '#F7B31C', // graphics.warning, border.warning
729+
yellow300: 'rgba(247, 179, 28, 0.17)',
730+
yellow200: 'rgba(247, 179, 28, 0.13)',
731+
yellow100: 'rgba(247, 179, 28, 0.09)',
732+
733+
green700: '#4AE969', // ⚠ link.success.active only
734+
green600: '#32D859', // ⚠ link.success.hover only
735+
green500: '#0CC848', // content.success, link.success.default
736+
green400: '#09B340', // graphics.success, border.success
737+
green300: 'rgba(9, 179, 64, 0.33)',
738+
green200: 'rgba(9, 179, 64, 0.26)',
739+
green100: 'rgba(9, 179, 64, 0.20)',
740740

741741
// Currently used for avatars, badges, booleans, buttons, checkboxes, radio buttons
742742
chonk: {

0 commit comments

Comments
 (0)