Skip to content

Commit

Permalink
some lightmode fix
Browse files Browse the repository at this point in the history
  • Loading branch information
baudelotphilippe committed Apr 9, 2024
1 parent fbec62b commit b227c95
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 26 deletions.
3 changes: 2 additions & 1 deletion izanami-frontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ header .nav-link {
}

.fieldset-form fieldset {
background-color: #535352;
background-color: var(--bg-color_level2);
color: var(--color_level2);
border-radius: 10px;
padding: 20px;
margin-bottom: 12px;
Expand Down
12 changes: 7 additions & 5 deletions izanami-frontend/src/components/ConditionInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ export function ConditionsInput() {
>
{fields.length > 0 ? "Add condition (OR)" : "Add condition"}
</button>
<Tooltip id="add-condition">
Add another activation condition.
<br />
One active condition is sufficient to activate the feature.
</Tooltip>
<label>
<Tooltip id="add-condition">
Add another activation condition.
<br />
One active condition is sufficient to activate the feature.
</Tooltip>
</label>
</div>
</>
);
Expand Down
1 change: 1 addition & 0 deletions izanami-frontend/src/components/FeatureForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,7 @@ export function V2FeatureForm(props: {
width: "170px",
borderRadius: "10px",
alignSelf: "end",
backgroundColor:"var(--bg-color_level2)"
}}
>
<button
Expand Down
8 changes: 8 additions & 0 deletions izanami-frontend/src/pages/atomicDesign.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ export function AtomicDesign() {
}}
>
--bg-color_level2 & --color_level2
<p style={{
backgroundColor: "var(--bg-color_level25)",
color: "var(--color_level3)",
padding: 10,
}}>
--bg-color_level25
</p>
<div
style={{
width: 200,
Expand All @@ -36,6 +43,7 @@ export function AtomicDesign() {
}}
>
--bg-color_level3 & --color_level3

</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion izanami-frontend/src/pages/tenantSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ function IzanamiV1ImportForm(props: {
>
<div
style={{
backgroundColor: "#373735",
backgroundColor:"var(--bg-color_level2)",
width: "185px",
height: "55px",
position: "absolute",
Expand Down
21 changes: 2 additions & 19 deletions izanami-frontend/src/styles/_variables.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,14 @@ $color-dark-5: #494948;
$color-dark-6: #373735;
$color-dark-7: #222;

// $color-dark-4-opa80: #59595980;
// $color-dark-5-opa80: #49494880;
// $color-dark-6-opa80: #37373580;

//light mode var
$color-white-1: #fff;
$color-white-2: #f3f3f4;
$color-white-3: #4f4e4e;
$color-white-4: #c7c5c5;
$color-white-5: #6f6f6f;
$color-white-6: #9b9797;

// $color-white-2-opa80: #f3f3f480;
// $color-white-3-opa80: #e8e8e880;
// $color-white-4-opa80: #e1dfdf80;
$color-white-7:#aeaeae;

:root {
// globals
Expand Down Expand Up @@ -69,11 +62,6 @@ $color-white-6: #9b9797;
--color_level3: #{$color-dark-1};
--bg-color_level25: #{$color-dark-5};

// --text: #fff;
// --raw-text: 255, 255, 255;
// --bg-color_level1_opa80: #{$color-dark-6-opa80};
// --bg-color_level2_opa80: #{$color-dark-5-opa80};
// --bg-color_level3_opa80: #{$color-dark-4-opa80};
}

[data-theme="light"] {
Expand All @@ -83,11 +71,6 @@ $color-white-6: #9b9797;
--color_level2: #{$color-white-3};
--bg-color_level3: #{$color-white-6};
--color_level3: #{$color-white-1};
--bg-color_level25: #{$color-white-5};
--bg-color_level25: #{$color-white-7};

// --text: #000;
// --raw-text: 0, 0, 0;
// --bg-color_level1_opa80: #{$color-white-2-opa80};
// --bg-color_level2_opa80: #{$color-white-3-opa80};
// --bg-color_level3_opa80: #{$color-white-4-opa80};
}
1 change: 1 addition & 0 deletions izanami-frontend/src/styles/components/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ label {

.sub_container-bglighter label, .sub_container-bglighter .btn{
color: var(--color_level3) !important;
border-color: var(--color_level2) !important;
}

.has-error .col-form-label {
Expand Down
4 changes: 4 additions & 0 deletions izanami-frontend/src/styles/reactSelect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ export const customStyles: object = {
...styles,
color: "var(--color_level3) !important",
}),
noOptionsMessage: (styles: object) => ({
...styles,
color: "var(--color_level3) !important",
}),
singleValue: (provided: object) => ({
...provided,
color: "#FFF !important",
Expand Down

0 comments on commit b227c95

Please sign in to comment.