feat: update theme and UI styles across components
- Refactored CSS variables for consistent theming, replacing hardcoded colors with CSS variables for better maintainability. - Updated various components including `AgentAvatar`, `AgentSelector`, and `AgentShareSettings` to utilize new theme variables for colors, backgrounds, and shadows. - Enhanced SVG icons to use `currentColor` for better adaptability to theme changes. - Improved overall UI consistency by aligning styles with the new theming approach, enhancing user experience across the application. These changes significantly improve the visual coherence and maintainability of the UI, ensuring a more seamless user experience.
This commit is contained in:
@@ -11,10 +11,10 @@
|
||||
justify-content: center;
|
||||
min-width: auto;
|
||||
width: auto;
|
||||
border: 1px solid #e0e0e0;
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
border-radius: 6px;
|
||||
background: #ffffff;
|
||||
color: #666;
|
||||
background: var(--td-bg-color-container);
|
||||
color: var(--td-text-color-secondary);
|
||||
transition: all 0.2s ease;
|
||||
|
||||
.t-button__content {
|
||||
@@ -41,7 +41,7 @@
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
flex-shrink: 0;
|
||||
color: #666;
|
||||
color: var(--td-text-color-secondary);
|
||||
}
|
||||
|
||||
.t-icon svg {
|
||||
@@ -57,10 +57,10 @@
|
||||
&:hover:not(:disabled) {
|
||||
background: rgba(7, 192, 95, 0.08);
|
||||
border-color: rgba(7, 192, 95, 0.3);
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
|
||||
.t-icon {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
.mermaid {
|
||||
margin: 16px 0;
|
||||
padding: 16px;
|
||||
background: #f8f9fa;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 8px;
|
||||
overflow-x: auto;
|
||||
text-align: center;
|
||||
@@ -29,7 +29,7 @@
|
||||
h6 {
|
||||
margin-top: 5px;
|
||||
font-weight: bold;
|
||||
color: #00000099;
|
||||
color: var(--td-text-color-placeholder);
|
||||
font-family: "PingFang SC", "Cascadia Code";
|
||||
transition: all 0.2s ease-out;
|
||||
font-size: 20px;
|
||||
@@ -80,7 +80,7 @@
|
||||
|
||||
h2 a,
|
||||
h3 a {
|
||||
color: #34495e;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
p,
|
||||
@@ -116,7 +116,7 @@
|
||||
hr {
|
||||
padding: 0;
|
||||
margin: 32px 0;
|
||||
border-top: 0.5rem dotted #0590ff57;
|
||||
border-top: 0.5rem dotted var(--td-brand-color-focus);
|
||||
overflow: hidden;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
@@ -195,8 +195,8 @@
|
||||
padding: 0.8em 1.4rem;
|
||||
margin: 1em 0;
|
||||
font-weight: 400;
|
||||
border-left: 4px solid #2196f3;
|
||||
background-color: #2196f321;
|
||||
border-left: 4px solid var(--td-brand-color);
|
||||
background-color: var(--td-brand-color)21;
|
||||
border-radius: 0px 8px 8px 0px;
|
||||
box-shadow: rgb(149 149 149 / 13%) 0px 5px 10px;
|
||||
}
|
||||
@@ -211,19 +211,19 @@
|
||||
}
|
||||
|
||||
table tr {
|
||||
border-top: 1px solid #2196f31f;
|
||||
border-top: 1px solid var(--td-brand-color-focus);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
table tr:nth-child(2n),
|
||||
thead {
|
||||
background-color: #fafafa;
|
||||
background-color: var(--td-bg-color-secondarycontainer);
|
||||
}
|
||||
|
||||
table tr th {
|
||||
font-weight: bold;
|
||||
border: 1px solid #9b9b9b3b;
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
border-bottom: 0;
|
||||
text-align: left;
|
||||
margin: 0;
|
||||
@@ -231,7 +231,7 @@
|
||||
}
|
||||
|
||||
table tr td {
|
||||
border: 1px solid #9b9b9b3b;
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
text-align: left;
|
||||
margin: 0;
|
||||
padding: 6px 13px;
|
||||
@@ -256,7 +256,7 @@
|
||||
border-radius: 8px;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
background: #fff;
|
||||
background: var(--td-bg-color-container);
|
||||
}
|
||||
|
||||
|
||||
@@ -281,7 +281,7 @@
|
||||
}
|
||||
|
||||
.md-fences {
|
||||
background-color: #f8f8f8;
|
||||
background-color: var(--td-bg-color-secondarycontainer);
|
||||
}
|
||||
|
||||
.md-diagram-panel {
|
||||
@@ -350,27 +350,27 @@
|
||||
}
|
||||
|
||||
.md-lang {
|
||||
color: #b4654d;
|
||||
color: var(--td-warning-color);
|
||||
}
|
||||
|
||||
.html-for-mac .context-menu {
|
||||
--item-hover-bg-color: #e6f0fe;
|
||||
--item-hover-bg-color: var(--td-brand-color-light);
|
||||
}
|
||||
|
||||
.pin-outline #outline-content .outline-active strong,
|
||||
.pin-outline .outline-active {
|
||||
color: #2196f3;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
.code-tooltip {
|
||||
border-radius: 4px;
|
||||
border: 1px solid #ededed;
|
||||
background-color: #f8f8f8;
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
background-color: var(--td-bg-color-secondarycontainer);
|
||||
}
|
||||
|
||||
.cm-s-inner .cm-comment,
|
||||
.cm-s-inner.cm-comment {
|
||||
color: #57a64a;
|
||||
color: var(--td-success-color);
|
||||
font-style: italic;
|
||||
/* font-family: 'PingFang'; */
|
||||
}
|
||||
@@ -381,7 +381,7 @@
|
||||
h4.md-end-block.md-heading:after,
|
||||
h5.md-end-block.md-heading:after,
|
||||
h6.md-end-block.md-heading:after {
|
||||
color: #bfbfbf !important;
|
||||
color: var(--td-text-color-disabled) !important;
|
||||
border: 1px solid;
|
||||
border-radius: 4px;
|
||||
position: absolute;
|
||||
|
||||
Reference in New Issue
Block a user