Skip to content

Trivial. Dark mode Tuning #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tksui-components",
"version": "0.7.12",
"version": "0.7.14",
"private": false,
"type": "module",
"module": "lib/esm/index.js",
Expand Down
20 changes: 10 additions & 10 deletions src/components/icon/TIconOriginal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import themeToken from '~style/designToken/ThemeToken.module.scss';


/* eslint-disable max-len */
const TOriginalImage = {
Expand All @@ -14,31 +16,29 @@ const TOriginalImage = {
),
t_checkbox_read_only_on: (
<svg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>
<g>
<rect x='0.5' y='0.5' width='15' height='15' rx='3.5' fill='#F4F4F4' stroke='#B8BABC'/>
<path d='M6.58327 11.25L3.7666 8.41667L4.59993 7.58333L6.58327 9.55L11.3999 4.75L12.2333 5.6L6.58327 11.25Z' fill='#71747A'
stroke='none'/>
</g>
<rect x='0.5' y='0.5' width='15' height='15' rx='3.5' fill={themeToken.tGrayColor1} stroke={themeToken.tGrayColor3} />
<path d='M6.58327 11.25L3.7666 8.41667L4.59993 7.58333L6.58327 9.55L11.3999 4.75L12.2333 5.6L6.58327 11.25Z' fill={themeToken.tGrayColor5}
stroke='none'/>
</svg>
),
t_checkbox_read_only_off: (
<svg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>
<g>
<rect x='0.5' y='0.5' width='15' height='15' rx='3.5' fill='#F4F4F4' stroke='#B8BABC'/>
<rect x='0.5' y='0.5' width='15' height='15' rx='3.5' fill={themeToken.tGrayColor1} stroke={themeToken.tGrayColor3} />
</g>
</svg>
),
t_checkbox_disabled_on: (
<svg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>
<rect x='0.5' y='0.5' width='15' height='15' rx='3.5' fill='#F4F4F4' stroke='#B8BABC' />
<path d='M6.58327 11.25L3.7666 8.41667L4.59993 7.58333L6.58327 9.55L11.3999 4.75L12.2333 5.6L6.58327 11.25Z' fill='#B8BABC'
<rect x='0.5' y='0.5' width='15' height='15' rx='3.5' fill={themeToken.tGrayColor1} stroke={themeToken.tGrayColor3} />
<path d='M6.58327 11.25L3.7666 8.41667L4.59993 7.58333L6.58327 9.55L11.3999 4.75L12.2333 5.6L6.58327 11.25Z' fill={themeToken.tGrayColor3}
stroke='none'/>
</svg>
),
t_checkbox_disabled_off: (
<svg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>
<g>
<rect x='0.5' y='0.5' width='15' height='15' rx='3.5' fill='#F4F4F4' stroke='#B8BABC'/>
<rect x='0.5' y='0.5' width='15' height='15' rx='3.5' fill={themeToken.tGrayColor1} stroke={themeToken.tGrayColor3} />
</g>
</svg>
),
Expand Down Expand Up @@ -68,7 +68,7 @@ const TOriginalImage = {

),
t_radio_disabled_off: (
<svg width='16' height='16' viewBox='0 0 16 16' fill='#F4F4F4' stroke='#B8BABC' xmlns='http://www.w3.org/2000/svg'>
<svg width='16' height='16' viewBox='0 0 16 16' fill={themeToken.tGrayColor1} stroke={themeToken.tGrayColor3} xmlns='http://www.w3.org/2000/svg'>
<g>
<circle id='Ellipse 3258' cx='8' cy='8' r='7.5' />
</g>
Expand Down
6 changes: 3 additions & 3 deletions src/styles/component/data-container/data-grid/TDataGrid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@

--ag-checkbox-checked-color: #{$t-primary-color};
--ag-checkbox-indeterminate-color: #{$t-primary-color};
--ag-checkbox-unchecked-color: #{$t-border-color--default};
--ag-checkbox-unchecked-color: #{$t-gray-color-3};
--ag-checkbox-border-radius: 50%;
--ag-checkbox-background-color: transparent;

--ag-input-focus-box-shadow: none;

--ag-cell-horizontal-padding: 32px;
--ag-row-border-color: #{$t-grid-border-color--02};
--ag-row-border-color: #{$t-blue-gray-color-2};

--ag-header-cell-hover-background-color: #{$t-blue-gray-color-3};
--ag-header-background-color: #{$t-white-color};
Expand Down Expand Up @@ -115,7 +115,7 @@
}

.ag-overlay-no-rows-wrapper {
border-bottom: 1px solid $t-grid-border-color--01;
border-bottom: 1px solid $t-blue-gray-color-2;
}

.ag-layout-print .ag-center-cols-clipper,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@
&.t-drop-holder__items__item--divider {
border-top: 1px solid $t-blue-gray-color-3;
}
&.t-drop-holder__items__item--selected {
background: $t-background-color--hover;
color: $t-font-color--selected;
font-weight: $t-font-weight--selected;
}
&.t-drop-holder__items__item--disabled {
pointer-events: none;
cursor: default;
Expand All @@ -61,8 +56,8 @@

.t-drop-holder__items__item__checkbox .t-checkbox__container:focus .t-checkbox__icon { outline: none; }

&.t-drop-holder__items__item--focused { background: $t-background-color--hover; }
&:hover { background: $t-background-color--hover; }
&.t-drop-holder__items__item--focused { background: $t-blue-gray-color-2; }
&:hover { background: $t-blue-gray-color-2; }
}

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


mark {
background: $t-primary-color--tint-7;
background: $t-secondary-color-blue;
}


Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
@include icon-color($t-gray-color-4);

&:hover { cursor: pointer; @include icon-color($t-primary-color);}
&:active { @include icon-color($t-primary-color--shade-2)}

&.t-pagination__nav-button-container__button--disabled {
@include icon-color($t-gray-color-2);
Expand Down Expand Up @@ -82,7 +81,7 @@

&.t-number-field--failure {
.t-number-field__container {
border-color: $t-status-color--error;
border-color: $t-status-color-error;
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/styles/component/guide/badge/TBadge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
display: inline-flex;

.t-badge-content {
background: $t-status-color--error;
background: $t-status-color-error;

position: absolute;
border-radius: 50px;
Expand Down Expand Up @@ -35,4 +35,4 @@
}

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
}

&.t-input-validation-hint__rules__item--valid {
color: $t-status-color--success;
color: $t-status-color-success;
}
&.t-input-validation-hint__rules__item--invalid {
color: $t-status-color--error;
color: $t-status-color-error;
}
}
}
}
}
16 changes: 8 additions & 8 deletions src/styles/component/guide/toast/TToast.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
.tks-toast {

--toastify-color-light: #{$t-white-color};

--toastify-text-color-info: #{$t-black-color};
--toastify-text-color-success: #{$t-black-color};
--toastify-text-color-warning: #{$t-black-color};
--toastify-text-color-error: #{$t-black-color};
--toastify-text-color-light: #{$t-gray-color-4};

--toastify-color-progress-light: #{$t-primary-color};
--toastify-color-progress-info: #{$t-primary-color};
Expand Down Expand Up @@ -54,9 +50,13 @@
}
}

.Toastify__close-button > svg {
width: 20px;
height: 20px;
.Toastify__close-button {
color: $t-black-color;

& > svg {
width: 20px;
height: 20px;
}
}

.Toastify__progress-bar {
Expand Down
1 change: 0 additions & 1 deletion src/styles/component/guide/tooltip/TTooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
&.react-tooltip {
border: 1px solid $t-gray-color-5;
padding: $t-spacing-16 $t-spacing-16;
line-height: $t-line-height-body;

.t-tooltip__title{
color: $t-gray-color-1;
Expand Down
4 changes: 2 additions & 2 deletions src/styles/component/input/checkbox-group/TCheckboxGroup.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@

&.t-checkbox-group--failure {
@include animation-shake();
.t-checkbox-group__message {color: $t-status-color--error;}
.t-checkbox-group__message {color: $t-status-color-error;}
}
&.t-checkbox-group--success {
.t-checkbox-group__message {color: $t-status-color--success;}
.t-checkbox-group__message {color: $t-status-color-success;}
}
}

8 changes: 4 additions & 4 deletions src/styles/component/input/checkbox/TCheckbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@

@include animation-shake();

.t-text-field__container {border-color: $t-status-color--error;}
.t-checkbox__message {color: $t-status-color--error;}
.t-text-field__container {border-color: $t-status-color-error;}
.t-checkbox__message {color: $t-status-color-error;}
}
&.t-checkbox--success {
.t-text-field__container {border-color: $t-status-color--success;}
.t-checkbox__message {color: $t-status-color--success;}
.t-text-field__container {border-color: $t-status-color-success;}
.t-checkbox__message {color: $t-status-color-success;}
}
}
12 changes: 6 additions & 6 deletions src/styles/component/input/dropdown/TDropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
&.t-dropdown__items__item--selected {
background: $t-blue-gray-color-1;
color: $t-font-color--selected;
font-weight: $t-font-weight--selected;
@include typo-body-2;
}

.t-dropdown__items__item__checkbox .t-checkbox__container:focus .t-checkbox__icon { outline: none; }
Expand All @@ -157,7 +157,7 @@
}
}

&.t-dropdown__items__item--focused { background: $t-background-color--hover; }
&.t-dropdown__items__item--focused { background: $t-blue-gray-color-2; }
&:focus-within { background: $t-blue-gray-color-1; }
&:hover {
background: $t-blue-gray-color-1;
Expand All @@ -184,13 +184,13 @@

&.t-dropdown--failure {
@include animation-shake();
.t-dropdown__control {border-color: $t-status-color--error;color: $t-status-color--error;}
.t-dropdown__details {color: $t-status-color--error;}
.t-dropdown__control {border-color: $t-status-color-error;color: $t-status-color-error;}
.t-dropdown__details {color: $t-status-color-error;}
}

&.t-dropdown--success {
.t-dropdown__control {border-color: $t-status-color--success; color: $t-status-color--success;}
.t-dropdown__details {color: $t-status-color--success;}
.t-dropdown__control {border-color: $t-status-color-success; color: $t-status-color-success;}
.t-dropdown__details {color: $t-status-color-success;}
}

&.t-dropdown--underline .t-dropdown__control {
Expand Down
8 changes: 4 additions & 4 deletions src/styles/component/input/number-field/TNumberField.scss
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@

@include animation-shake();

.t-number-field__container {border-color: $t-status-color--error;}
.t-number-field__details {color: $t-status-color--error;}
.t-number-field__container {border-color: $t-status-color-error;}
.t-number-field__details {color: $t-status-color-error;}
}
&.t-number-field--success {
.t-number-field__container {border-color: $t-status-color--success;}
.t-number-field__details {color: $t-status-color--success;}
.t-number-field__container {border-color: $t-status-color-success;}
.t-number-field__details {color: $t-status-color-success;}
}

}
4 changes: 2 additions & 2 deletions src/styles/component/input/radio-group/TRadioGroup.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@

&.t-radio-group--failure {
@include animation-shake();
.t-radio-group__message {color: $t-status-color--error;}
.t-radio-group__message {color: $t-status-color-error;}
}
&.t-radio-group--success {
.t-radio-group__message {color: $t-status-color--success;}
.t-radio-group__message {color: $t-status-color-success;}
}
}

3 changes: 1 addition & 2 deletions src/styles/component/input/radio/TRadio.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.t-radio {
line-height: $t-line-height-header;

.t-radio__container {
display: flex;
Expand All @@ -9,7 +8,7 @@
outline: none;

.t-radio__icon { border-radius: 2px; }
.t-radio__label { @include typo-body-3; }
.t-radio__label { @include typo-body-3; color: $t-black-color; }

&:is(:focus-within, :hover) .t-radio__icon.t-radio__icon--deselected svg { fill: $t-white-color; stroke: $t-primary-color; }
}
Expand Down
1 change: 0 additions & 1 deletion src/styles/component/input/switch/TSwitch.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.t-switch {
line-height: $t-line-height-header;
display: flex;
align-items: center;

Expand Down
9 changes: 4 additions & 5 deletions src/styles/component/input/text-area/TTextArea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
position: relative;
display: inline-block;
width: 100%;
line-height: $t-line-height-default;


.t-text-area__label {
Expand Down Expand Up @@ -100,12 +99,12 @@

@include animation-shake();

.t-text-area__container {border-color: $t-status-color--error;}
.t-text-area__details {color: $t-status-color--error;}
.t-text-area__container {border-color: $t-status-color-error;}
.t-text-area__details {color: $t-status-color-error;}
}
&.t-text-area--success {
.t-text-area__container {border-color: $t-status-color--success;}
.t-text-area__details {color: $t-status-color--success;}
.t-text-area__container {border-color: $t-status-color-success;}
.t-text-area__details {color: $t-status-color-success;}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@

&.t-text-array-field--failure {
@include animation-shake();
border-color: $t-status-color--error;
border-color: $t-status-color-error;

.t-text-array-field__message {
color: $t-status-color--error;
color: $t-status-color-error;
}
}

Expand Down
12 changes: 6 additions & 6 deletions src/styles/component/input/text-field/TTextField.scss
Original file line number Diff line number Diff line change
Expand Up @@ -158,17 +158,17 @@

@include animation-shake();
.t-text-field__container {
border-color: $t-status-color--error;
.t-text-field__container__counter__counted {color: $t-status-color--error;}
border-color: $t-status-color-error;
.t-text-field__container__counter__counted {color: $t-status-color-error;}
}
.t-text-field__details {color: $t-status-color--error;}
.t-text-field__details {color: $t-status-color-error;}
}
&.t-text-field--success {
.t-text-field__container {
border-color: $t-status-color--success !important;
.t-text-field__container__counter__counted {color: $t-status-color--success;}
border-color: $t-status-color-success !important;
.t-text-field__container__counter__counted {color: $t-status-color-success;}
}
.t-text-field__details {color: $t-status-color--success;}
.t-text-field__details {color: $t-status-color-success;}
}

}
Loading
Loading