private String getCssForDarkTheme()

in plugin/src/software/aws/toolkits/eclipse/amazonq/chat/ChatTheme.java [56:106]


    private String getCssForDarkTheme() {
        Map<QChatCssVariable, String> themeMap = new HashMap<>();

        String defaultTextColor = rgb(238, 238, 238);
        String cardBackgroundColor = rgb(55, 55, 55);

        // Text
        themeMap.put(QChatCssVariable.TextColorDefault, defaultTextColor);
        themeMap.put(QChatCssVariable.TextColorStrong, rgb(255, 255, 255));
        themeMap.put(QChatCssVariable.TextColorWeak, rgba(205, 205, 205, 0.5));
        themeMap.put(QChatCssVariable.TextColorLink, rgb(102, 168, 245));
        themeMap.put(QChatCssVariable.TextColorInput, defaultTextColor);

        // Layout
        themeMap.put(QChatCssVariable.Background, rgb(47, 47, 47));
        themeMap.put(QChatCssVariable.TabActive, cardBackgroundColor);
        themeMap.put(QChatCssVariable.BorderDefault, rgb(76, 76, 76));
        themeMap.put(QChatCssVariable.ColorToggle, rgb(30, 30, 30));

        // Code Syntax
        themeMap.put(QChatCssVariable.SyntaxBackground, rgb(29, 30, 34));
        themeMap.put(QChatCssVariable.SyntaxVariable, rgb(247, 247, 80));
        themeMap.put(QChatCssVariable.SyntaxFunction, rgb(86, 178, 80));
        themeMap.put(QChatCssVariable.SyntaxOperator, rgb(217, 111, 187));
        themeMap.put(QChatCssVariable.SyntaxAttributeValue, rgb(66, 141, 190));
        themeMap.put(QChatCssVariable.SyntaxAttribute, rgb(179, 108, 50));
        themeMap.put(QChatCssVariable.SyntaxProperty, rgb(57, 171, 184));
        themeMap.put(QChatCssVariable.SyntaxComment, rgb(130, 130, 130));
        themeMap.put(QChatCssVariable.SyntaxCode, defaultTextColor);

        // Status
        themeMap.put(QChatCssVariable.StatusInfo, rgb(55, 148, 255));
        themeMap.put(QChatCssVariable.StatusSuccess, rgb(135, 217, 108));
        themeMap.put(QChatCssVariable.StatusWarning, rgb(255, 204, 102));
        themeMap.put(QChatCssVariable.StatusError, rgb(255, 102, 102));

        // Buttons
        themeMap.put(QChatCssVariable.ButtonBackground, rgb(51, 118, 205));
        themeMap.put(QChatCssVariable.ButtonForeground, rgb(255, 255, 255));

        // Alternates
        themeMap.put(QChatCssVariable.AlternateBackground, rgb(95, 106, 121));
        themeMap.put(QChatCssVariable.AlternateForeground, rgb(255, 255, 255));

        // Card
        themeMap.put(QChatCssVariable.CardBackground, cardBackgroundColor);

        themeMap.put(QChatCssVariable.LineHeight, "1.25em");

        return getCss(themeMap);
    }