Skip to content

Commit

Permalink
Accent Color, wow
Browse files Browse the repository at this point in the history
  • Loading branch information
YamiOdymel committed Feb 27, 2023
1 parent d6caccc commit e56c86b
Show file tree
Hide file tree
Showing 40 changed files with 558 additions and 164 deletions.
237 changes: 213 additions & 24 deletions languages/zh-tw/components/colors.yml

Large diffs are not rendered by default.

16 changes: 13 additions & 3 deletions src/app-navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Variables
========================================================================== */

.ts-app-navbar {
--accent-color: initial;
--accent-foreground-color: initial;
}

/* ==========================================================================
Base
========================================================================== */
Expand Down Expand Up @@ -73,7 +78,12 @@
*/

.ts-app-navbar .item.is-active {
color: var(--ts-gray-800);
color: var(--accent-color, var(--ts-gray-800));
}

.ts-app-navbar .item.is-active .ts-icon {
--accent-color: inherit;
--accent-foreground-color: inherit;
}

/**
Expand Down Expand Up @@ -126,8 +136,8 @@
}

.ts-app-navbar.is-indicated .item.is-active .ts-icon {
background: var(--ts-gray-800);
color: var(--ts-gray-50);
background: var(--accent-color, var(--ts-gray-800));
color: var(--accent-foreground-color, var(--ts-gray-50));
}

/**
Expand Down
9 changes: 7 additions & 2 deletions src/app-sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Variables
========================================================================== */

.ts-app-sidebar {
--accent-color: initial;
--accent-foreground-color: initial;
}

/* ==========================================================================
Base
========================================================================== */
Expand Down Expand Up @@ -47,8 +52,8 @@
*/

.ts-app-sidebar .item.is-active {
background: var(--ts-gray-800);
color: var(--ts-gray-50);
background: var(--accent-color, var(--ts-gray-800));
color: var(--accent-foreground-color, var(--ts-gray-50));
border-radius: 0px 100rem 100rem 0;
}

Expand Down
8 changes: 4 additions & 4 deletions src/app-topbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
========================================================================== */

.ts-app-topbar {
--ts-app-topbar-background-color: var(--ts-static-gray-900);
--ts-app-topbar-foreground-color: var(--ts-white);
--accent-color: initial;
--accent-foreground-color: initial;
}

/* ==========================================================================
Expand All @@ -16,8 +16,8 @@
grid-template-columns: 1fr auto 1fr;
padding: 0.5rem 1rem;
line-height: 1;
background: var(--ts-app-topbar-background-color);
color: var(--ts-app-topbar-foreground-color);
background: var(--accent-color, var(--ts-static-gray-900));
color: var(--accent-foreground-color, var(--ts-white));
min-height: 50px;
align-items: center;
gap: 0.5rem;
Expand Down
9 changes: 7 additions & 2 deletions src/avatar.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Variables
========================================================================== */

.ts-avatar {
--accent-color: initial;
--accent-foreground-color: initial;
}

/* ==========================================================================
Base
========================================================================== */
Expand Down Expand Up @@ -46,11 +51,11 @@
*/

.ts-avatar.is-text {
background: var(--ts-gray-200);
background: var(--accent-color, var(--ts-gray-200));
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--ts-gray-600);
color: var(--accent-foreground-color, var(--ts-gray-600));
font-weight: 500;
font-size: 1.1rem;
}
Expand Down
13 changes: 9 additions & 4 deletions src/badge.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Variables
========================================================================== */

.ts-badge {
--accent-color: initial;
--accent-foreground-color: initial;
}

/* ==========================================================================
Base
========================================================================== */
Expand All @@ -12,8 +17,8 @@
padding: 0.225rem 0.5rem;
line-height: 1;
border: 1px solid transparent;
background: var(--ts-gray-800);
color: var(--ts-gray-50);
background: var(--accent-color, var(--ts-gray-800));
color: var(--accent-foreground-color, var(--ts-gray-50));
font-weight: 400;
display: inline-block;
white-space: nowrap;
Expand All @@ -32,7 +37,7 @@

.ts-badge.is-secondary {
background: var(--ts-gray-200);
color: var(--ts-gray-800);
color: var(--accent-color, var(--ts-gray-800));
}

/**
Expand All @@ -42,7 +47,7 @@
.ts-badge.is-outlined {
background: transparent;
border-color: var(--ts-gray-300);
color: var(--ts-gray-800);
color: var(--accent-color, var(--ts-gray-800));
}

/**
Expand Down
8 changes: 6 additions & 2 deletions src/box.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Variables
========================================================================== */

.ts-box {
--accent-color: initial;
--accent-foreground-color: initial;
--ts-indicator-color: var(--accent-color, var(--ts-gray-900));
}

/* ==========================================================================
Base
========================================================================== */
Expand All @@ -14,8 +20,6 @@
border-radius: 0.4rem;
overflow: hidden;
background: var(--ts-gray-50);

--ts-indicator-color: var(--ts-gray-900);
}

a.ts-box:hover {
Expand Down
7 changes: 6 additions & 1 deletion src/breadcrumb.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Variables
========================================================================== */

.ts-breadcrumb {
--accent-color: initial;
--accent-foreground-color: initial;
}

/* ==========================================================================
Base
========================================================================== */
Expand Down Expand Up @@ -72,7 +77,7 @@
*/

.ts-breadcrumb .item.is-active {
color: var(--ts-gray-800);
color: var(--accent-color, var(--ts-gray-800));
font-weight: 500;
}

Expand Down
13 changes: 8 additions & 5 deletions src/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
.ts-button {
--horizontal-padding: 1.25em;
--height: var(--ts-input-height-medium);

--accent-color: initial;
--accent-foreground-color: initial;
}

/* ==========================================================================
Expand Down Expand Up @@ -43,13 +46,13 @@
}

.ts-button {
border: 2px solid var(--ts-gray-800);
border: 2px solid var(--accent-color, var(--ts-gray-800));
min-width: 75px;
font-size: var(--ts-font-size-14px);
line-height: 1.5;
font-weight: 500;
color: var(--ts-gray-50);
background: var(--ts-gray-800);
color: var(--accent-foreground-color, var(--ts-gray-50));
background: var(--accent-color, var(--ts-gray-800));
text-decoration: none;
display: inline-flex;
vertical-align: middle;
Expand All @@ -75,7 +78,7 @@
*/

.ts-button.is-secondary {
color: var(--ts-gray-800);
color: var(--accent-color, var(--ts-gray-800));
border-color: var(--ts-gray-100);
background: var(--ts-gray-100);
}
Expand All @@ -97,7 +100,7 @@
.ts-button.is-outlined {
background: transparent;
border: 2px solid var(--ts-gray-300);
color: var(--ts-gray-800);
color: var(--accent-color, var(--ts-gray-800));
}

/**
Expand Down
11 changes: 8 additions & 3 deletions src/checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Variables
========================================================================== */

.ts-checkbox {
--accent-color: initial;
--accent-foreground-color: initial;
}

/* ==========================================================================
Base
========================================================================== */
Expand Down Expand Up @@ -53,8 +58,8 @@
}

.ts-checkbox input:checked {
background: var(--ts-primary-700);
border-color: var(--ts-primary-700);
background: var(--accent-color, var(--ts-primary-700));
border-color: var(--accent-color, var(--ts-primary-700));
}

.ts-checkbox input:focus {
Expand Down Expand Up @@ -82,7 +87,7 @@
-webkit-font-smoothing: antialiased;
backface-visibility: hidden;
font-size: 1rem;
color: var(--ts-white);
color: var(--accent-foreground-color, var(--ts-white));
}

.ts-checkbox input:checked::after {
Expand Down
27 changes: 16 additions & 11 deletions src/chip.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Variables
========================================================================== */

.ts-chip {
--accent-color: initial;
--accent-foreground-color: initial;
}

/* ==========================================================================
Base
========================================================================== */
Expand All @@ -26,7 +31,7 @@
line-height: 1.75;
min-height: 22px;
/*min-width: 55px;*/
color: var(--ts-gray-800);
color: var(--accent-color, var(--ts-gray-800));
}

.ts-chip.is-input,
Expand Down Expand Up @@ -96,31 +101,31 @@
*/

.ts-chip.is-toggle input:checked + .content {
background: var(--ts-gray-800);
border-color: var(--ts-gray-800);
color: var(--ts-gray-50);
background: var(--accent-color, var(--ts-gray-800));
border-color: var(--accent-color, var(--ts-gray-800));
color: var(--accent-foreground-color, var(--ts-gray-50));
}

.ts-chip.is-toggle.is-secondary input:checked + .content {
color: var(--ts-gray-800);
color: var(--accent-color, var(--ts-gray-800));
background: var(--ts-gray-200);
border-color: var(--ts-gray-600);
border-color: var(--accent-color, var(--ts-gray-600));
}

/**
* Input
*/

.ts-chip.is-input input:checked + .content {
background: var(--ts-primary-700);
border-color: var(--ts-primary-700);
color: var(--ts-white);
background: var(--accent-color, var(--ts-primary-700));
border-color: var(--accent-color, var(--ts-primary-700));
color: var(--accent-foreground-color, var(--ts-white));
}

.ts-chip.is-input.is-secondary input:checked + .content {
color: var(--ts-primary-600);
color: var(--accent-color, var(--ts-primary-600));
background: var(--ts-gray-100);
border-color: var(--ts-primary-600);
border-color: var(--accent-color, var(--ts-primary-600));
}

.ts-chip.is-input input:checked + .content::before {
Expand Down
9 changes: 7 additions & 2 deletions src/close.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Variables
========================================================================== */

.ts-close {
--accent-color: initial;
--accent-foreground-color: initial;
}

/* ==========================================================================
Base
========================================================================== */
Expand Down Expand Up @@ -47,8 +52,8 @@
width: 18px;
font-size: var(--ts-font-size-12px);
line-height: 1;
background: var(--ts-gray-600);
color: var(--ts-gray-100);
background: var(--accent-color, var(--ts-gray-600));
color: var(--accent-foreground-color, var(--ts-gray-100));
border-radius: 100rem;
}

Expand Down
7 changes: 2 additions & 5 deletions src/container.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@
* Fluid
*/

.ts-container.is-relaxed {
.ts-container.is-padded {
--ts-container-gap: 2rem;
}
.ts-container.is-compact {
--ts-container-gap: 0.5rem;
}
.ts-container.is-fitted {
--ts-container-gap: 0;
}
Expand All @@ -52,6 +49,6 @@
* Fluid
*/

.ts-container.is-fluid {
.ts-container.is-fluid {
max-width: 100%;
}
Loading

0 comments on commit e56c86b

Please sign in to comment.