Skip to content

Commit

Permalink
feat!: use semantic colors in themes (Issue #245, #255) (#23)
Browse files Browse the repository at this point in the history
Add an ability to define custome themes with semantic colors inside

BREAKING CHANGE: now you should use new approach, because old one not supported anymore
  • Loading branch information
mikitabut authored Dec 22, 2023
1 parent 2ca8f80 commit d9d5621
Show file tree
Hide file tree
Showing 9 changed files with 101 additions and 34 deletions.
6 changes: 3 additions & 3 deletions static/Stable-Diffusion.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion static/ai21_j2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion static/anthropic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion static/awc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
114 changes: 89 additions & 25 deletions static/config.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,95 @@
{
"themes": {
"colorsPalette": {
"green": "#37BABC",
"blue-500": "#5A8CE9",
"blue-700": "#4878D2",
"violet": "#9459F1",
"gray-100": "#FCFCFC",
"gray-200": "#F3F4F6",
"gray-300": "#EAEDF0",
"gray-400": "#DDE1E6",
"gray-500": "#7F8792",
"gray-600": "#333942",
"gray-700": "#222932",
"gray-800": "#141A23",
"gray-900": "#090D13",
"black": "#000000",
"red-200": "#F3D6D8",
"red-400": "#F76464",
"red-800": "#AE2F2F",
"red-900": "#402027"
"themes": [
{
"displayName": "Light",
"id": "light",
"app-logo": "logo.svg",
"colors": {
"bg-layer-0": "#FCFCFC",
"bg-layer-1": "#EAEDF0",
"bg-layer-2": "#F3F4F6",
"bg-layer-3": "#FCFCFC",
"bg-layer-4": "#DDE1E6",
"bg-blackout": "#090D134D",
"bg-error": "#F3D6D8",
"bg-accent-primary": "#2764d9",
"bg-accent-secondary": "#009D9F",
"bg-accent-tertiary": "#843EF3",
"bg-accent-primary-alpha": "#2764d91A",
"bg-accent-secondary-alpha": "#009D9F1A",
"bg-accent-tertiary-alpha": "#843EF31A",

"text-primary": "#141A23",
"text-secondary": "#7F8792",
"text-error": "#AE2F2F",
"text-accent-primary": "#2764D9",
"text-accent-secondary": "#009D9F",
"text-accent-tertiary": "#843EF3",

"stroke-primary": "#DDE1E6",
"stroke-secondary": "#DDE1E6",
"stroke-tertiary": "#EAEDF0",
"stroke-hover": "#141A23",
"stroke-error": "#AE2F2F",
"stroke-accent-primary": "#2764D9",
"stroke-accent-secondary": "#009D9F",
"stroke-accent-tertiary": "#843EF3",

"controls-bg-accent": "#5C8DEA",
"controls-bg-accent-hover": "#4878D2",
"controls-bg-disable": "#7F8792",

"controls-text-permanent": "#FCFCFC",
"controls-text-disable": "#DDE1E6"
}
},
{
"displayName": "Dark",
"id": "dark",
"app-logo": "logo-dark.svg",
"colors": {
"bg-layer-0": "#000000",
"bg-layer-1": "#090D13",
"bg-layer-2": "#141A23",
"bg-layer-3": "#222932",
"bg-layer-4": "#333942",
"bg-blackout": "#090D13B3",
"bg-error": "#402027",
"bg-accent-primary": "#5C8DEA",
"bg-accent-secondary": "#37BABC",
"bg-accent-tertiary": "#A972FF",
"bg-accent-primary-alpha": "#5C8DEA2B",
"bg-accent-secondary-alpha": "#37BABC26",
"bg-accent-tertiary-alpha": "#A972FF2B",

"text-primary": "#F3F4F6",
"text-secondary": "#7F8792",
"text-error": "#F76464",
"text-accent-primary": "#5C8DEA",
"text-accent-secondary": "#37BABC",
"text-accent-tertiary": "#A972FF",

"stroke-primary": "#333942",
"stroke-secondary": "#222932",
"stroke-tertiary": "#090D13",
"stroke-error": "#F76464",
"stroke-hover": "#F3F4F6",
"stroke-accent-primary": "#5C8DEA",
"stroke-accent-secondary": "#37BABC",
"stroke-accent-tertiary": "#A972FF",

"controls-bg-accent": "#5C8DEA",
"controls-bg-accent-hover": "#4878D2",
"controls-bg-disable": "#7F8792",

"controls-text-permanent": "#FCFCFC",
"controls-text-disable": "#333942"
}
}
},
],
"images": {
"app-logo": "",
"app-logo-dark": "",
"default-model": "",
"default-addon": "",
"default-model": "message-square-lines-alt.svg",
"default-addon": "message-square-lines-alt.svg",
"favicon": "favicon.png"
}
}
2 changes: 1 addition & 1 deletion static/dolly.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion static/gpt3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d9d5621

Please sign in to comment.