-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
work for https://github.com/surveyjs/private-tasks/issues/384 Creator…
… Settings. Custom colors.
- Loading branch information
OlgaLarina
committed
Oct 23, 2024
1 parent
0c27af5
commit 801dfa3
Showing
2 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 17 additions & 10 deletions
27
packages/survey-creator-core/src/creator-theme/creator-themes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
import { assign } from "../utils/utils"; | ||
import designTabSurveyThemeJSON from "../designTabSurveyThemeJSON"; | ||
|
||
export interface ICreatorTheme { | ||
themeName?: string; | ||
cssVariables?: { [index: string]: string }; | ||
} | ||
|
||
export const PredefinedCreatorThemes: string[] = ["sc2020"]; | ||
const sc2020CssVariables = {}; | ||
assign(sc2020CssVariables, designTabSurveyThemeJSON.cssVariables, { | ||
"--sjs-special-background": "#F3F3F3FF", | ||
"--sjs-primary-background-500": "#19B394FF", | ||
"--sjs-primary-background-10": "#19B3941A", | ||
"--sjs-primary-background-400": "#14A48BFF", | ||
"--sjs-secondary-background-500": "#FF9814FF", | ||
"--sjs-secondary-background-25": "#FF981440", | ||
"--sjs-secondary-background-10": "#FF98141A", | ||
"--ctr-surface-background-color": "var(--sjs-special-background)", | ||
"--ctr-toolbox-background-color": "var(--sjs-special-background)", | ||
}); | ||
|
||
export const CreatorThemes: { [index: string]: ICreatorTheme } = { | ||
"sc2020": { | ||
themeName: "sc2020", | ||
cssVariables: { | ||
"--sjs-special-background": "#F3F3F3FF", | ||
"--sjs-primary-background-500": "#19B394FF", | ||
"--sjs-primary-background-10": "#19B3941A", | ||
"--sjs-primary-background-400": "#14A48BFF", | ||
"--sjs-secondary-background-500": "#FF9814FF", | ||
"--sjs-secondary-background-25": "#FF981440", | ||
"--sjs-secondary-background-10": "#FF98141A", | ||
"--ctr-surface-background-color": "var(--sjs-special-background)", | ||
} | ||
cssVariables: sc2020CssVariables | ||
} | ||
}; |