Skip to content

Commit d6f1a08

Browse files
committed
Add green accent color for templates and update Ask template group to use it
1 parent 7bae0a8 commit d6f1a08

4 files changed

Lines changed: 17 additions & 3 deletions

File tree

‎apps/editor/src/views/settings/frontend/Home/sections/GeneralSection.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ export const GeneralSection = forwardRef<HTMLDivElement, Props>(
270270
key: 'templatesForAskAboutFiles',
271271
label: 'Ask',
272272
icon: 'chat-sparkle',
273-
accent_color: 'orange',
273+
accent_color: 'green',
274274
items: props.templates.templatesForAskAboutFiles || []
275275
}
276276
]}

‎packages/ui/src/components/editor/settings/Templates/Templates.module.scss‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@
4646
}
4747
}
4848

49+
&--accent-green {
50+
border-color: var(--cwc-bg-green);
51+
.group__header {
52+
background-color: var(--cwc-bg-green);
53+
.group__icon,
54+
.group__label {
55+
color: var(--cwc-text-color-green);
56+
}
57+
&:hover {
58+
background-color: var(--cwc-bg-green);
59+
}
60+
}
61+
}
62+
4963
&--accent-red {
5064
border-color: var(--cwc-bg-red);
5165
.group__header {

‎packages/ui/src/components/editor/settings/Templates/Templates.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export namespace Templates {
1515
key: string
1616
label: string
1717
icon?: string
18-
accent_color?: 'blue' | 'orange' | 'red'
18+
accent_color?: 'blue' | 'orange' | 'red' | 'green'
1919
items: Template[]
2020
}[]
2121
on_reorder: (key: string, templates: Template[]) => void

‎packages/ui/src/styles/foundation/_colors.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
);
2424
--cwc-bg-tertiary: color-mix(
2525
in srgb,
26-
var(--vscode-foreground) 8%,
26+
var(--vscode-foreground) 7%,
2727
transparent
2828
);
2929
--cwc-border-color: color-mix(

0 commit comments

Comments
 (0)