From 6e5f56dbdecaf8c915bd0fcd6a247b1e4878fb56 Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Mon, 29 Dec 2025 22:12:56 +0530 Subject: [PATCH] feat: dark mode input revamp --- .../Auth/ApiKeyAuth/StyledWrapper.js | 3 +- .../Auth/ApiKeyAuth/index.js | 12 +- .../Auth/AwsV4Auth/StyledWrapper.js | 3 +- .../Auth/AwsV4Auth/index.js | 30 ++-- .../Auth/BasicAuth/StyledWrapper.js | 3 +- .../Auth/BasicAuth/index.js | 8 +- .../Auth/BearerAuth/StyledWrapper.js | 3 +- .../Auth/BearerAuth/index.js | 3 +- .../Auth/DigestAuth/StyledWrapper.js | 3 +- .../Auth/DigestAuth/index.js | 8 +- .../Auth/NTLMAuth/StyledWrapper.js | 3 +- .../CollectionSettings/Auth/NTLMAuth/index.js | 13 +- .../Auth/WsseAuth/StyledWrapper.js | 3 +- .../CollectionSettings/Auth/WsseAuth/index.js | 8 +- .../ClientCertSettings/StyledWrapper.js | 6 +- .../Presets/StyledWrapper.js | 6 +- .../ProxySettings/StyledWrapper.js | 6 +- .../src/components/Cookies/StyledWrapper.js | 6 +- .../src/components/Dropdown/StyledWrapper.js | 4 +- .../EnvironmentSelector/StyledWrapper.js | 2 +- .../Environments/EnvironmentSelector/index.js | 2 +- .../GlobalSearchModal/StyledWrapper.js | 131 +++++++++--------- .../InheritableSettingsInput/index.js | 12 +- .../src/components/Modal/StyledWrapper.js | 6 +- .../ProxySettings/StyledWrapper.js | 6 +- .../Auth/ApiKeyAuth/StyledWrapper.js | 3 +- .../RequestPane/Auth/ApiKeyAuth/index.js | 12 +- .../Auth/AwsV4Auth/StyledWrapper.js | 3 +- .../RequestPane/Auth/AwsV4Auth/index.js | 30 ++-- .../Auth/BasicAuth/StyledWrapper.js | 3 +- .../RequestPane/Auth/BasicAuth/index.js | 8 +- .../Auth/BearerAuth/StyledWrapper.js | 3 +- .../RequestPane/Auth/BearerAuth/index.js | 3 +- .../Auth/DigestAuth/StyledWrapper.js | 3 +- .../RequestPane/Auth/DigestAuth/index.js | 8 +- .../Auth/NTLMAuth/StyledWrapper.js | 3 +- .../RequestPane/Auth/NTLMAuth/index.js | 13 +- .../Auth/OAuth2/AdditionalParams/index.js | 1 + .../OAuth2/AuthorizationCode/StyledWrapper.js | 3 +- .../Auth/OAuth2/AuthorizationCode/index.js | 8 +- .../OAuth2/ClientCredentials/StyledWrapper.js | 3 +- .../Auth/OAuth2/ClientCredentials/index.js | 7 +- .../Auth/OAuth2/Implicit/StyledWrapper.js | 3 +- .../RequestPane/Auth/OAuth2/Implicit/index.js | 5 + .../PasswordCredentials/StyledWrapper.js | 3 +- .../Auth/OAuth2/PasswordCredentials/index.js | 7 +- .../Auth/WsseAuth/StyledWrapper.js | 3 +- .../RequestPane/Auth/WsseAuth/index.js | 8 +- .../StyledWrapper.js | 4 +- .../RunnerTimeline/StyledWrapper.js | 2 +- .../ResponsePane/Timeline/StyledWrapper.js | 2 +- .../components/RunnerResults/StyledWrapper.js | 9 +- .../src/components/SettingsInput/index.js | 4 +- .../Sidebar/NewRequest/StyledWrapper.js | 10 +- .../SingleLineEditor/StyledWrapper.js | 14 +- .../src/components/SingleLineEditor/index.js | 1 + .../src/themes/dark/catppuccin-frappe.js | 8 +- .../src/themes/dark/catppuccin-macchiato.js | 8 +- .../src/themes/dark/catppuccin-mocha.js | 8 +- .../src/themes/dark/dark-monochrome.js | 16 +-- .../bruno-app/src/themes/dark/dark-pastel.js | 8 +- packages/bruno-app/src/themes/dark/dark.js | 24 ++-- packages/bruno-app/src/themes/dark/nord.js | 10 +- packages/bruno-app/src/themes/dark/vscode.js | 6 +- 64 files changed, 327 insertions(+), 240 deletions(-) diff --git a/packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/StyledWrapper.js b/packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/StyledWrapper.js index 1c69bffe0..05d6c25d9 100644 --- a/packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/StyledWrapper.js +++ b/packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/StyledWrapper.js @@ -2,7 +2,8 @@ import styled from 'styled-components'; const Wrapper = styled.div` label { - font-size: ${(props) => props.theme.font.size.base}; + font-size: ${(props) => props.theme.font.size.sm}; + color: ${(props) => props.theme.colors.text.subtext1}; } .single-line-editor-wrapper { diff --git a/packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/index.js b/packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/index.js index b2f70923f..683ea3d79 100644 --- a/packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/index.js +++ b/packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/index.js @@ -57,29 +57,31 @@ const ApiKeyAuth = ({ collection }) => { return ( - -
+ +
handleAuthChange('key', val)} collection={collection} + isCompact />
- -
+ +
handleAuthChange('value', val)} collection={collection} + isCompact />
- +
} placement="bottom-end">
props.theme.font.size.base}; + font-size: ${(props) => props.theme.font.size.sm}; + color: ${(props) => props.theme.colors.text.subtext1}; } .single-line-editor-wrapper { diff --git a/packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js b/packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js index 6d7682414..5dcf4f116 100644 --- a/packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js +++ b/packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js @@ -123,19 +123,20 @@ const AwsV4Auth = ({ collection }) => { return ( - -
+ +
handleAccessKeyIdChange(val)} collection={collection} + isCompact />
- -
+ +
{ onChange={(val) => handleSecretAccessKeyChange(val)} collection={collection} isSecret={true} + isCompact /> {showWarning && }
- -
+ +
handleSessionTokenChange(val)} collection={collection} + isCompact />
- -
+ +
handleServiceChange(val)} collection={collection} + isCompact />
- -
+ +
handleRegionChange(val)} collection={collection} + isCompact />
- -
+ +
handleProfileNameChange(val)} collection={collection} + isCompact />
diff --git a/packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/StyledWrapper.js b/packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/StyledWrapper.js index eeaf2d45a..10524b15a 100644 --- a/packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/StyledWrapper.js +++ b/packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/StyledWrapper.js @@ -2,7 +2,8 @@ import styled from 'styled-components'; const Wrapper = styled.div` label { - font-size: ${(props) => props.theme.font.size.base}; + font-size: ${(props) => props.theme.font.size.sm}; + color: ${(props) => props.theme.colors.text.subtext1}; } .single-line-editor-wrapper { diff --git a/packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/index.js b/packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/index.js index 4464ef2ee..d214935e0 100644 --- a/packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/index.js +++ b/packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/index.js @@ -47,18 +47,19 @@ const BasicAuth = ({ collection }) => { return ( - -
+ +
handleUsernameChange(val)} collection={collection} + isCompact />
- +
{ onChange={(val) => handlePasswordChange(val)} collection={collection} isSecret={true} + isCompact /> {showWarning && }
diff --git a/packages/bruno-app/src/components/CollectionSettings/Auth/BearerAuth/StyledWrapper.js b/packages/bruno-app/src/components/CollectionSettings/Auth/BearerAuth/StyledWrapper.js index eeaf2d45a..10524b15a 100644 --- a/packages/bruno-app/src/components/CollectionSettings/Auth/BearerAuth/StyledWrapper.js +++ b/packages/bruno-app/src/components/CollectionSettings/Auth/BearerAuth/StyledWrapper.js @@ -2,7 +2,8 @@ import styled from 'styled-components'; const Wrapper = styled.div` label { - font-size: ${(props) => props.theme.font.size.base}; + font-size: ${(props) => props.theme.font.size.sm}; + color: ${(props) => props.theme.colors.text.subtext1}; } .single-line-editor-wrapper { diff --git a/packages/bruno-app/src/components/CollectionSettings/Auth/BearerAuth/index.js b/packages/bruno-app/src/components/CollectionSettings/Auth/BearerAuth/index.js index 2806f1df0..72e8c3c5e 100644 --- a/packages/bruno-app/src/components/CollectionSettings/Auth/BearerAuth/index.js +++ b/packages/bruno-app/src/components/CollectionSettings/Auth/BearerAuth/index.js @@ -33,7 +33,7 @@ const BearerAuth = ({ collection }) => { return ( - +
{ onChange={(val) => handleTokenChange(val)} collection={collection} isSecret={true} + isCompact /> {showWarning && }
diff --git a/packages/bruno-app/src/components/CollectionSettings/Auth/DigestAuth/StyledWrapper.js b/packages/bruno-app/src/components/CollectionSettings/Auth/DigestAuth/StyledWrapper.js index eeaf2d45a..10524b15a 100644 --- a/packages/bruno-app/src/components/CollectionSettings/Auth/DigestAuth/StyledWrapper.js +++ b/packages/bruno-app/src/components/CollectionSettings/Auth/DigestAuth/StyledWrapper.js @@ -2,7 +2,8 @@ import styled from 'styled-components'; const Wrapper = styled.div` label { - font-size: ${(props) => props.theme.font.size.base}; + font-size: ${(props) => props.theme.font.size.sm}; + color: ${(props) => props.theme.colors.text.subtext1}; } .single-line-editor-wrapper { diff --git a/packages/bruno-app/src/components/CollectionSettings/Auth/DigestAuth/index.js b/packages/bruno-app/src/components/CollectionSettings/Auth/DigestAuth/index.js index ed85ca436..0624aac40 100644 --- a/packages/bruno-app/src/components/CollectionSettings/Auth/DigestAuth/index.js +++ b/packages/bruno-app/src/components/CollectionSettings/Auth/DigestAuth/index.js @@ -47,18 +47,19 @@ const DigestAuth = ({ collection }) => { return ( - -
+ +
handleUsernameChange(val)} collection={collection} + isCompact />
- +
{ onChange={(val) => handlePasswordChange(val)} collection={collection} isSecret={true} + isCompact /> {showWarning && }
diff --git a/packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/StyledWrapper.js b/packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/StyledWrapper.js index c2901f80b..f4b811f37 100644 --- a/packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/StyledWrapper.js +++ b/packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/StyledWrapper.js @@ -2,7 +2,8 @@ import styled from 'styled-components'; const Wrapper = styled.div` label { - font-size: ${(props) => props.theme.font.size.base}; + font-size: ${(props) => props.theme.font.size.sm}; + color: ${(props) => props.theme.colors.text.subtext1}; } .single-line-editor-wrapper { diff --git a/packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/index.js b/packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/index.js index a967ccb48..d7e3df0cd 100644 --- a/packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/index.js +++ b/packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/index.js @@ -64,19 +64,20 @@ const NTLMAuth = ({ collection }) => { return ( - -
+ +
handleUsernameChange(val)} collection={collection} + isCompact />
- -
+ +
{ onChange={(val) => handlePasswordChange(val)} collection={collection} isSecret={true} + isCompact /> {showWarning && }
- +
{ onSave={handleSave} onChange={(val) => handleDomainChange(val)} collection={collection} + isCompact />
diff --git a/packages/bruno-app/src/components/CollectionSettings/Auth/WsseAuth/StyledWrapper.js b/packages/bruno-app/src/components/CollectionSettings/Auth/WsseAuth/StyledWrapper.js index eeaf2d45a..10524b15a 100644 --- a/packages/bruno-app/src/components/CollectionSettings/Auth/WsseAuth/StyledWrapper.js +++ b/packages/bruno-app/src/components/CollectionSettings/Auth/WsseAuth/StyledWrapper.js @@ -2,7 +2,8 @@ import styled from 'styled-components'; const Wrapper = styled.div` label { - font-size: ${(props) => props.theme.font.size.base}; + font-size: ${(props) => props.theme.font.size.sm}; + color: ${(props) => props.theme.colors.text.subtext1}; } .single-line-editor-wrapper { diff --git a/packages/bruno-app/src/components/CollectionSettings/Auth/WsseAuth/index.js b/packages/bruno-app/src/components/CollectionSettings/Auth/WsseAuth/index.js index a90923e74..9582de434 100644 --- a/packages/bruno-app/src/components/CollectionSettings/Auth/WsseAuth/index.js +++ b/packages/bruno-app/src/components/CollectionSettings/Auth/WsseAuth/index.js @@ -47,18 +47,19 @@ const WsseAuth = ({ collection }) => { return ( - -
+ +
handleUserChange(val)} collection={collection} + isCompact />
- +
{ onChange={(val) => handlePasswordChange(val)} collection={collection} isSecret={true} + isCompact /> {showWarning && }
diff --git a/packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/StyledWrapper.js b/packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/StyledWrapper.js index 34773ac0d..eea1fe5fd 100644 --- a/packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/StyledWrapper.js +++ b/packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/StyledWrapper.js @@ -30,11 +30,11 @@ const StyledWrapper = styled.div` box-shadow: none; transition: border-color ease-in-out 0.1s; border-radius: 3px; - background-color: ${(props) => props.theme.modal.input.bg}; - border: 1px solid ${(props) => props.theme.modal.input.border}; + background-color: ${(props) => props.theme.input.bg}; + border: 1px solid ${(props) => props.theme.input.border}; &:focus { - border: solid 1px ${(props) => props.theme.modal.input.focusBorder} !important; + border: solid 1px ${(props) => props.theme.input.focusBorder} !important; outline: none !important; } } diff --git a/packages/bruno-app/src/components/CollectionSettings/Presets/StyledWrapper.js b/packages/bruno-app/src/components/CollectionSettings/Presets/StyledWrapper.js index db26e863b..5c0923c09 100644 --- a/packages/bruno-app/src/components/CollectionSettings/Presets/StyledWrapper.js +++ b/packages/bruno-app/src/components/CollectionSettings/Presets/StyledWrapper.js @@ -16,11 +16,11 @@ const StyledWrapper = styled.div` box-shadow: none; transition: border-color ease-in-out 0.1s; border-radius: 3px; - background-color: ${(props) => props.theme.modal.input.bg}; - border: 1px solid ${(props) => props.theme.modal.input.border}; + background-color: ${(props) => props.theme.input.bg}; + border: 1px solid ${(props) => props.theme.input.border}; &:focus { - border: solid 1px ${(props) => props.theme.modal.input.focusBorder} !important; + border: solid 1px ${(props) => props.theme.input.focusBorder} !important; outline: none !important; } } diff --git a/packages/bruno-app/src/components/CollectionSettings/ProxySettings/StyledWrapper.js b/packages/bruno-app/src/components/CollectionSettings/ProxySettings/StyledWrapper.js index c8f1241c5..316e36c91 100644 --- a/packages/bruno-app/src/components/CollectionSettings/ProxySettings/StyledWrapper.js +++ b/packages/bruno-app/src/components/CollectionSettings/ProxySettings/StyledWrapper.js @@ -14,11 +14,11 @@ const StyledWrapper = styled.div` box-shadow: none; transition: border-color ease-in-out 0.1s; border-radius: 3px; - background-color: ${(props) => props.theme.modal.input.bg}; - border: 1px solid ${(props) => props.theme.modal.input.border}; + background-color: ${(props) => props.theme.input.bg}; + border: 1px solid ${(props) => props.theme.input.border}; &:focus { - border: solid 1px ${(props) => props.theme.modal.input.focusBorder} !important; + border: solid 1px ${(props) => props.theme.input.focusBorder} !important; outline: none !important; } } diff --git a/packages/bruno-app/src/components/Cookies/StyledWrapper.js b/packages/bruno-app/src/components/Cookies/StyledWrapper.js index 7ccc622fe..9d26fa428 100644 --- a/packages/bruno-app/src/components/Cookies/StyledWrapper.js +++ b/packages/bruno-app/src/components/Cookies/StyledWrapper.js @@ -28,11 +28,11 @@ const Wrapper = styled.div` box-shadow: none; transition: border-color ease-in-out 0.1s; border-radius: 3px; - background-color: ${(props) => props.theme.modal.input.bg}; - border: 1px solid ${(props) => props.theme.modal.input.border}; + background-color: ${(props) => props.theme.input.bg}; + border: 1px solid ${(props) => props.theme.input.border}; &:focus { - border: solid 1px ${(props) => props.theme.modal.input.focusBorder} !important; + border: solid 1px ${(props) => props.theme.input.focusBorder} !important; outline: none !important; } } diff --git a/packages/bruno-app/src/components/Dropdown/StyledWrapper.js b/packages/bruno-app/src/components/Dropdown/StyledWrapper.js index e3438c2de..b41ca2b7c 100644 --- a/packages/bruno-app/src/components/Dropdown/StyledWrapper.js +++ b/packages/bruno-app/src/components/Dropdown/StyledWrapper.js @@ -3,7 +3,7 @@ import { rgba } from 'polished'; const Wrapper = styled.div` min-width: 160px; - font-size: ${(props) => props.theme.font.size.base}; + font-size: ${(props) => props.theme.font.size.sm}; color: ${(props) => props.theme.dropdown.color}; background-color: ${(props) => props.theme.dropdown.bg}; ${(props) => @@ -53,7 +53,7 @@ const Wrapper = styled.div` cursor: pointer; border-radius: 6px; margin: 0.0625rem 0; - font-size: 0.8125rem; + font-size: ${(props) => props.theme.font.size.sm}; &.active { color: ${(props) => props.theme.colors.text.yellow} !important; diff --git a/packages/bruno-app/src/components/Environments/EnvironmentSelector/StyledWrapper.js b/packages/bruno-app/src/components/Environments/EnvironmentSelector/StyledWrapper.js index a82724469..d36b5a8ee 100644 --- a/packages/bruno-app/src/components/Environments/EnvironmentSelector/StyledWrapper.js +++ b/packages/bruno-app/src/components/Environments/EnvironmentSelector/StyledWrapper.js @@ -91,7 +91,7 @@ const Wrapper = styled.div` .tab-button { color: ${(props) => props.theme.colors.text.subtext0}; - font-size: ${(props) => props.theme.font.size.base}; + font-size: ${(props) => props.theme.font.size.sm}; .tab-content-wrapper { position: relative; diff --git a/packages/bruno-app/src/components/Environments/EnvironmentSelector/index.js b/packages/bruno-app/src/components/Environments/EnvironmentSelector/index.js index 53438c459..8b454afb5 100644 --- a/packages/bruno-app/src/components/Environments/EnvironmentSelector/index.js +++ b/packages/bruno-app/src/components/Environments/EnvironmentSelector/index.js @@ -186,7 +186,7 @@ const EnvironmentSelector = ({ collection }) => {
} placement="bottom-end"> {/* Tab Headers */} -
+
{tabs.map((tab) => (
diff --git a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/StyledWrapper.js b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/StyledWrapper.js index 5ecbd80cb..62ee6fbc9 100644 --- a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/StyledWrapper.js +++ b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/StyledWrapper.js @@ -2,7 +2,8 @@ import styled from 'styled-components'; const Wrapper = styled.div` label { - font-size: ${(props) => props.theme.font.size.base}; + font-size: ${(props) => props.theme.font.size.sm}; + color: ${(props) => props.theme.colors.text.subtext1}; } .oauth2-input-wrapper { max-width: 400px; diff --git a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/index.js b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/index.js index 99e45cf66..93dcbb677 100644 --- a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/index.js +++ b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/index.js @@ -128,6 +128,7 @@ const OAuth2Implicit = ({ save, item = {}, request, handleRun, updateAuth, colle collection={collection} item={item} placeholder={useSystemBrowser ? 'https://oauth2.usebruno.com/callback' : undefined} + isCompact />
@@ -167,6 +168,7 @@ const OAuth2Implicit = ({ save, item = {}, request, handleRun, updateAuth, colle collection={collection} item={item} isSecret={isSecret} + isCompact />
@@ -193,6 +195,7 @@ const OAuth2Implicit = ({ save, item = {}, request, handleRun, updateAuth, colle onRun={handleRun} collection={collection} item={item} + isCompact />
@@ -235,6 +238,7 @@ const OAuth2Implicit = ({ save, item = {}, request, handleRun, updateAuth, colle onRun={handleRun} collection={collection} item={item} + isCompact />
@@ -250,6 +254,7 @@ const OAuth2Implicit = ({ save, item = {}, request, handleRun, updateAuth, colle onRun={handleRun} collection={collection} item={item} + isCompact />
diff --git a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/StyledWrapper.js b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/StyledWrapper.js index a162decf9..96aa81389 100644 --- a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/StyledWrapper.js +++ b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/StyledWrapper.js @@ -2,7 +2,8 @@ import styled from 'styled-components'; const Wrapper = styled.div` label { - font-size: ${(props) => props.theme.font.size.base}; + font-size: ${(props) => props.theme.font.size.sm}; + color: ${(props) => props.theme.colors.text.subtext1}; } .single-line-editor-wrapper { max-width: 400px; diff --git a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/index.js b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/index.js index dcba8be17..78a6294fa 100644 --- a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/index.js +++ b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/index.js @@ -120,6 +120,7 @@ const OAuth2PasswordCredentials = ({ save, item = {}, request, handleRun, update collection={collection} item={item} isSecret={isSecret} + isCompact /> {isSecret && showWarning && }
@@ -170,6 +171,7 @@ const OAuth2PasswordCredentials = ({ save, item = {}, request, handleRun, update onRun={handleRun} collection={collection} item={item} + isCompact />
@@ -211,13 +213,14 @@ const OAuth2PasswordCredentials = ({ save, item = {}, request, handleRun, update onChange={(val) => handleChange('tokenHeaderPrefix', val)} onRun={handleRun} collection={collection} + isCompact />
) : (
- +
handleChange('tokenQueryKey', val)} onRun={handleRun} collection={collection} + isCompact />
@@ -250,6 +254,7 @@ const OAuth2PasswordCredentials = ({ save, item = {}, request, handleRun, update onChange={(val) => handleChange('refreshTokenUrl', val)} collection={collection} item={item} + isCompact />
diff --git a/packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/StyledWrapper.js b/packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/StyledWrapper.js index c2901f80b..f4b811f37 100644 --- a/packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/StyledWrapper.js +++ b/packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/StyledWrapper.js @@ -2,7 +2,8 @@ import styled from 'styled-components'; const Wrapper = styled.div` label { - font-size: ${(props) => props.theme.font.size.base}; + font-size: ${(props) => props.theme.font.size.sm}; + color: ${(props) => props.theme.colors.text.subtext1}; } .single-line-editor-wrapper { diff --git a/packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/index.js b/packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/index.js index 1b62fcd09..7b01b207d 100644 --- a/packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/index.js +++ b/packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/index.js @@ -53,8 +53,8 @@ const WsseAuth = ({ item, collection, updateAuth, request, save }) => { return ( - -
+ +
{ onRun={handleRun} collection={collection} item={item} + isCompact />
- +
{ collection={collection} item={item} isSecret={true} + isCompact /> {showWarning && }
diff --git a/packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleStatusInput/StyledWrapper.js b/packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleStatusInput/StyledWrapper.js index fc2574c88..5a37d9c23 100644 --- a/packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleStatusInput/StyledWrapper.js +++ b/packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleStatusInput/StyledWrapper.js @@ -6,7 +6,7 @@ const StyledWrapper = styled.div` .response-status-input { background: ${(props) => props.theme.requestTabPanel.url.bg}; - border: 1px solid ${(props) => props.theme.modal.input.border}; + border: 1px solid ${(props) => props.theme.border.border1}; border-radius: 3px; padding: 0.35rem 0.6rem; font-size: ${(props) => props.theme.font.size.base}; @@ -44,7 +44,7 @@ const StyledWrapper = styled.div` left: 0; right: 0; background: ${(props) => props.theme.dropdown.bg}; - border: 1px solid ${(props) => props.theme.modal.input.border}; + border: 1px solid ${(props) => props.theme.border.border1}; border-top: none; border-radius: 0 0 3px 3px; box-shadow: ${(props) => props.theme.dropdown.shadow}; diff --git a/packages/bruno-app/src/components/ResponsePane/RunnerTimeline/StyledWrapper.js b/packages/bruno-app/src/components/ResponsePane/RunnerTimeline/StyledWrapper.js index ed248cc11..f1cc89780 100644 --- a/packages/bruno-app/src/components/ResponsePane/RunnerTimeline/StyledWrapper.js +++ b/packages/bruno-app/src/components/ResponsePane/RunnerTimeline/StyledWrapper.js @@ -54,7 +54,7 @@ const StyledWrapper = styled.div` } .tabs-switcher { - border-bottom: 1px solid ${(props) => props.theme.modal.input.border}; + border-bottom: 1px solid ${(props) => props.theme.border.border1}; margin-bottom: 16px; button { diff --git a/packages/bruno-app/src/components/ResponsePane/Timeline/StyledWrapper.js b/packages/bruno-app/src/components/ResponsePane/Timeline/StyledWrapper.js index 1c4ed9a82..6b3d106b0 100644 --- a/packages/bruno-app/src/components/ResponsePane/Timeline/StyledWrapper.js +++ b/packages/bruno-app/src/components/ResponsePane/Timeline/StyledWrapper.js @@ -63,7 +63,7 @@ const StyledWrapper = styled.div` } .tabs-switcher { - border-bottom: 1px solid ${(props) => props.theme.modal.input.border}; + border-bottom: 1px solid ${(props) => props.theme.border.border1}; margin-bottom: 16px; button { diff --git a/packages/bruno-app/src/components/RunnerResults/StyledWrapper.js b/packages/bruno-app/src/components/RunnerResults/StyledWrapper.js index 3473126f2..5cdfa200b 100644 --- a/packages/bruno-app/src/components/RunnerResults/StyledWrapper.js +++ b/packages/bruno-app/src/components/RunnerResults/StyledWrapper.js @@ -10,8 +10,13 @@ const Wrapper = styled.div` box-shadow: none; transition: border-color ease-in-out 0.1s; border-radius: 3px; - background-color: ${(props) => props.theme.modal.input.bg}; - border: 1px solid ${(props) => props.theme.modal.input.border}; + background-color: ${(props) => props.theme.input.bg}; + border: 1px solid ${(props) => props.theme.input.border}; + + &:focus { + border: solid 1px ${(props) => props.theme.input.focusBorder} !important; + outline: none !important; + } } .item-path { diff --git a/packages/bruno-app/src/components/SettingsInput/index.js b/packages/bruno-app/src/components/SettingsInput/index.js index 70f980652..c034a49bc 100644 --- a/packages/bruno-app/src/components/SettingsInput/index.js +++ b/packages/bruno-app/src/components/SettingsInput/index.js @@ -29,8 +29,8 @@ const SettingsInput = ({ type="text" className={`block px-2 py-1 rounded-sm outline-none transition-colors duration-100 w-24 h-8 ${className}`} style={{ - backgroundColor: theme.modal.input.bg, - border: `1px solid ${theme.modal.input.border}` + backgroundColor: theme.input.bg, + border: `1px solid ${theme.input.border}` }} autoComplete="off" autoCorrect="off" diff --git a/packages/bruno-app/src/components/Sidebar/NewRequest/StyledWrapper.js b/packages/bruno-app/src/components/Sidebar/NewRequest/StyledWrapper.js index 2140df27c..85abfb21b 100644 --- a/packages/bruno-app/src/components/Sidebar/NewRequest/StyledWrapper.js +++ b/packages/bruno-app/src/components/Sidebar/NewRequest/StyledWrapper.js @@ -2,9 +2,9 @@ import styled from 'styled-components'; const StyledWrapper = styled.div` div.method-selector-container { - border: solid 1px ${(props) => props.theme.modal.input.border}; + border: solid 1px ${(props) => props.theme.input.border}; border-right: none; - background-color: ${(props) => props.theme.modal.input.bg}; + background-color: ${(props) => props.theme.input.bg}; border-top-left-radius: 3px; border-bottom-left-radius: 3px; .method-selector { @@ -13,15 +13,15 @@ const StyledWrapper = styled.div` } div.method-selector-container, div.input-container { - background-color: ${(props) => props.theme.modal.input.bg}; + background-color: ${(props) => props.theme.input.bg}; height: 2.1rem; } div.input-container { - border: solid 1px ${(props) => props.theme.modal.input.border}; + border: solid 1px ${(props) => props.theme.input.border}; border-top-right-radius: 3px; border-bottom-right-radius: 3px; input { - background-color: ${(props) => props.theme.modal.input.bg}; + background-color: ${(props) => props.theme.input.bg}; outline: none; box-shadow: none; &:focus { diff --git a/packages/bruno-app/src/components/SingleLineEditor/StyledWrapper.js b/packages/bruno-app/src/components/SingleLineEditor/StyledWrapper.js index c1dbb4686..7c4f79e19 100644 --- a/packages/bruno-app/src/components/SingleLineEditor/StyledWrapper.js +++ b/packages/bruno-app/src/components/SingleLineEditor/StyledWrapper.js @@ -1,8 +1,8 @@ -import styled from 'styled-components'; +import styled, { css } from 'styled-components'; const StyledWrapper = styled.div` width: 100%; - height: 30px; + height: ${(props) => (props.$isCompact ? '1.375rem' : '1.875rem')}; overflow-y: hidden; overflow-x: hidden; @@ -14,14 +14,14 @@ const StyledWrapper = styled.div` .CodeMirror { background: transparent; - height: 34px; + height: ${(props) => (props.$isCompact ? '1.375rem' : '2.125rem')}; font-size: ${(props) => props.theme.font.size.base}; - line-height: 30px; + line-height: ${(props) => (props.$isCompact ? '1.375rem' : '1.875rem')}; overflow: hidden; .CodeMirror-scroll { overflow: hidden !important; - padding-bottom: 50px !important; + padding-bottom: 3.125rem !important; } .CodeMirror-vscrollbar, @@ -40,8 +40,8 @@ const StyledWrapper = styled.div` } .CodeMirror-cursor { - height: 20px !important; - margin-top: 5px !important; + height: ${(props) => (props.$isCompact ? '0.875rem' : '1.25rem')} !important; + margin-top: ${(props) => (props.$isCompact ? '0.25rem' : '0.3125rem')} !important; border-left: 1px solid ${(props) => props.theme.text} !important; } diff --git a/packages/bruno-app/src/components/SingleLineEditor/index.js b/packages/bruno-app/src/components/SingleLineEditor/index.js index c24338992..05caed996 100644 --- a/packages/bruno-app/src/components/SingleLineEditor/index.js +++ b/packages/bruno-app/src/components/SingleLineEditor/index.js @@ -305,6 +305,7 @@ class SingleLineEditor extends Component {
diff --git a/packages/bruno-app/src/themes/dark/catppuccin-frappe.js b/packages/bruno-app/src/themes/dark/catppuccin-frappe.js index 80e4ec0ce..a2aeb1fef 100644 --- a/packages/bruno-app/src/themes/dark/catppuccin-frappe.js +++ b/packages/bruno-app/src/themes/dark/catppuccin-frappe.js @@ -123,8 +123,8 @@ const catppuccinFrappeTheme = { }, input: { - bg: colors.SURFACE0, - border: colors.SURFACE0, + bg: 'transparent', + border: colors.SURFACE1, focusBorder: colors.LAVENDER, placeholder: { color: colors.OVERLAY0, @@ -251,8 +251,8 @@ const catppuccinFrappeTheme = { bg: colors.BASE }, input: { - bg: colors.SURFACE0, - border: colors.SURFACE0, + bg: 'transparent', + border: colors.SURFACE1, focusBorder: colors.LAVENDER }, backdrop: { diff --git a/packages/bruno-app/src/themes/dark/catppuccin-macchiato.js b/packages/bruno-app/src/themes/dark/catppuccin-macchiato.js index 0cad2f27f..7c67738d4 100644 --- a/packages/bruno-app/src/themes/dark/catppuccin-macchiato.js +++ b/packages/bruno-app/src/themes/dark/catppuccin-macchiato.js @@ -123,8 +123,8 @@ const catppuccinMacchiatoTheme = { }, input: { - bg: colors.SURFACE0, - border: colors.SURFACE0, + bg: 'transparent', + border: colors.SURFACE1, focusBorder: colors.LAVENDER, placeholder: { color: colors.OVERLAY0, @@ -251,8 +251,8 @@ const catppuccinMacchiatoTheme = { bg: colors.BASE }, input: { - bg: colors.SURFACE0, - border: colors.SURFACE0, + bg: 'transparent', + border: colors.SURFACE1, focusBorder: colors.LAVENDER }, backdrop: { diff --git a/packages/bruno-app/src/themes/dark/catppuccin-mocha.js b/packages/bruno-app/src/themes/dark/catppuccin-mocha.js index 6a0797ca4..7b1931e11 100644 --- a/packages/bruno-app/src/themes/dark/catppuccin-mocha.js +++ b/packages/bruno-app/src/themes/dark/catppuccin-mocha.js @@ -123,8 +123,8 @@ const catppuccinMochaTheme = { }, input: { - bg: colors.SURFACE0, - border: colors.SURFACE0, + bg: 'transparent', + border: colors.SURFACE1, focusBorder: colors.LAVENDER, placeholder: { color: colors.OVERLAY0, @@ -251,8 +251,8 @@ const catppuccinMochaTheme = { bg: colors.BASE }, input: { - bg: colors.SURFACE0, - border: colors.SURFACE0, + bg: 'transparent', + border: colors.SURFACE1, focusBorder: colors.LAVENDER }, backdrop: { diff --git a/packages/bruno-app/src/themes/dark/dark-monochrome.js b/packages/bruno-app/src/themes/dark/dark-monochrome.js index 3f32c36b1..da5c54b2d 100644 --- a/packages/bruno-app/src/themes/dark/dark-monochrome.js +++ b/packages/bruno-app/src/themes/dark/dark-monochrome.js @@ -110,12 +110,12 @@ const darkMonochromeTheme = { }, input: { - bg: 'rgb(65, 65, 65)', - border: 'rgb(65, 65, 65)', - focusBorder: 'rgb(65, 65, 65)', + bg: 'transparent', + border: colors.GRAY_3, + focusBorder: colors.BRAND, placeholder: { - color: '#a2a2a2', - opacity: 0.75 + color: colors.TEXT_MUTED, + opacity: 0.6 } }, @@ -238,9 +238,9 @@ const darkMonochromeTheme = { bg: 'rgb(48, 48, 49)' }, input: { - bg: 'rgb(65, 65, 65)', - border: 'rgb(65, 65, 65)', - focusBorder: 'rgb(65, 65, 65)' + bg: 'transparent', + border: colors.GRAY_3, + focusBorder: colors.BRAND }, backdrop: { opacity: 0.2 diff --git a/packages/bruno-app/src/themes/dark/dark-pastel.js b/packages/bruno-app/src/themes/dark/dark-pastel.js index 643de0889..7243f3328 100644 --- a/packages/bruno-app/src/themes/dark/dark-pastel.js +++ b/packages/bruno-app/src/themes/dark/dark-pastel.js @@ -131,12 +131,12 @@ const darkPastelTheme = { }, input: { - bg: colors.GRAY_2, + bg: 'transparent', border: colors.GRAY_4, focusBorder: colors.BRAND, placeholder: { - color: colors.GRAY_6, - opacity: 0.8 + color: colors.TEXT_MUTED, + opacity: 0.6 } }, @@ -254,7 +254,7 @@ const darkPastelTheme = { bg: colors.GRAY_2 }, input: { - bg: colors.GRAY_3, + bg: 'transparent', border: colors.GRAY_4, focusBorder: colors.BRAND }, diff --git a/packages/bruno-app/src/themes/dark/dark.js b/packages/bruno-app/src/themes/dark/dark.js index c49ceba1c..978332d1c 100644 --- a/packages/bruno-app/src/themes/dark/dark.js +++ b/packages/bruno-app/src/themes/dark/dark.js @@ -1,6 +1,8 @@ +import { rgba } from 'polished'; + export const palette = { accents: { - PRIMARY: '#d9a342', + PRIMARY: 'hsl(39, 74%, 59%)', RED: 'hsl(0, 70%, 71%)', ROSE: 'hsl(350, 65%, 78%)', BROWN: 'hsl(41, 52%, 77%)', @@ -128,12 +130,14 @@ const darkTheme = { }, input: { - bg: 'rgb(65, 65, 65)', - border: 'rgb(65, 65, 65)', - focusBorder: 'rgb(65, 65, 65)', + bg: 'transparent', + border: palette.border.BORDER2, + // bg: palette.background.SURFACE1, + // border: palette.background.SURFACE1, + focusBorder: rgba(palette.accents.PRIMARY, 0.8), placeholder: { - color: '#a2a2a2', - opacity: 0.75 + color: palette.text.SUBTEXT1, + opacity: 0.6 } }, @@ -256,9 +260,9 @@ const darkTheme = { bg: palette.background.MANTLE }, input: { - bg: 'rgb(65, 65, 65)', - border: 'rgb(65, 65, 65)', - focusBorder: 'rgb(65, 65, 65)' + bg: 'transparent', + border: palette.border.BORDER2, + focusBorder: rgba(palette.accents.PRIMARY, 0.8) }, backdrop: { opacity: 0.2 @@ -324,7 +328,7 @@ const darkTheme = { active: { fontWeight: 400, color: '#CCCCCC', - border: '#d9a342' + border: palette.accents.PRIMARY }, secondary: { active: { diff --git a/packages/bruno-app/src/themes/dark/nord.js b/packages/bruno-app/src/themes/dark/nord.js index 4ddb4439d..e23400e71 100644 --- a/packages/bruno-app/src/themes/dark/nord.js +++ b/packages/bruno-app/src/themes/dark/nord.js @@ -130,12 +130,12 @@ const nordTheme = { }, input: { - bg: colors.NORD1, - border: colors.NORD2, + bg: 'transparent', + border: colors.NORD3, focusBorder: colors.NORD8, placeholder: { color: colors.TEXT_MUTED, - opacity: 0.75 + opacity: 0.6 } }, @@ -253,8 +253,8 @@ const nordTheme = { bg: colors.NORD1 }, input: { - bg: colors.NORD2, - border: colors.NORD2, + bg: 'transparent', + border: colors.NORD3, focusBorder: colors.NORD8 }, backdrop: { diff --git a/packages/bruno-app/src/themes/dark/vscode.js b/packages/bruno-app/src/themes/dark/vscode.js index 0ebec4064..c9592f91b 100644 --- a/packages/bruno-app/src/themes/dark/vscode.js +++ b/packages/bruno-app/src/themes/dark/vscode.js @@ -132,12 +132,12 @@ const vscodeDarkTheme = { }, input: { - bg: colors.GRAY_2, + bg: 'transparent', border: colors.BORDER, focusBorder: colors.BRAND, placeholder: { color: colors.TEXT_MUTED, - opacity: 0.75 + opacity: 0.6 } }, @@ -255,7 +255,7 @@ const vscodeDarkTheme = { bg: colors.GRAY_2 }, input: { - bg: colors.GRAY_3, + bg: 'transparent', border: colors.BORDER, focusBorder: colors.BRAND },