Skip to content

Commit c858014

Browse files
committed
feat: add advance settings for colors in themer page
1 parent a0fa232 commit c858014

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2254
-447
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@gravity-ui/navigation": "^3.10.1",
1818
"@gravity-ui/page-constructor": "^6.0.0-beta.6",
1919
"@gravity-ui/uikit": "^7.26.2",
20-
"@gravity-ui/uikit-themer": "^1.4.1",
20+
"@gravity-ui/uikit-themer": "^1.6.1",
2121
"@mdx-js/mdx": "^2.3.0",
2222
"@mdx-js/react": "^2.3.0",
2323
"@monaco-editor/react": "^4.6.0",

public/locales/en/themes.json

Lines changed: 169 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,33 @@
1919
"palette_colors_description": "Support Colors for various cases and <br /> states",
2020
"dark_theme": "Dark theme",
2121
"light_theme": "Light theme",
22+
"theme_name_light": "Light",
23+
"theme_name_dark": "Dark",
24+
"title_advance-settings-table_title-variable": "Variable",
25+
"title_advance-settings-table_title-color": "Color",
26+
"title_advance-settings-table_title-light": "Light theme value",
27+
"title_advance-settings-table_title-dark": "Dark theme value",
28+
"title_advance-color-settings-group-base": "Base",
29+
"title_advance-color-settings-group-basic": "Base",
30+
"title_advance-color-settings-group-semantic": "Semantic",
31+
"title_advance-color-settings-group-brand": "Brand",
32+
"title_advance-color-settings-group-extra-color": "Extra color",
33+
"title_advance-color-settings-group-always-dark": "Always Dark",
34+
"title_advance-color-settings-group-always-light": "Always Light",
35+
"title_advance-color-settings-group-main-inversion": "Main Inversion",
36+
"title_advance-color-settings-group-light-semantic": "Light Semantic",
37+
"title_advance-color-settings-group-medium-semantic": "Medium Semantic",
38+
"title_advance-color-settings-group-heavy-semantic": "Heavy Semantic",
39+
"title_advance-color-settings-group-floats": "Floats",
40+
"title_advance-color-settings-group-general": "General",
41+
"title_advance-color-settings-group-other": "Other",
42+
"title_advance-color-settings-group-scroll": "Scroll",
43+
"title_advance-color-settings-group-axes": "Axes",
44+
"title_advance-color-settings-group-tooltips": "Tooltips",
45+
"title_advance-color-settings-group-base-color": "Base Color",
46+
"title_advance-color-settings-group-brand-palette": "Brand Palette",
47+
"title_advance-color-settings-group-advanced-brand-palette": "Advanced Brand Palette",
48+
"title_advance-color-settings-group-additional-colors": "Additional Colors",
2249
"advanced_brand_palette": "Advanced Brand Palette",
2350
"additional_colors": "Additional Colors",
2451
"component_preview": "Component preview",
@@ -41,6 +68,8 @@
4168
"button": "Button",
4269
"title_brand-colors": "Brand colors",
4370
"action_edit-theme": "Edit theme",
71+
"action_learn-more": "Learn More",
72+
"action_add-extra-color": "Add Extra Color",
4473
"title_brand-palette-foundations": "Brand Palette Foundations",
4574
"label_text-on-brand": "Text on Brand",
4675
"label_colors-to-generate-palette": "The colors to generate the palette",
@@ -80,5 +109,143 @@
80109
"action_hide-advanced-settings": "Hide Advanced Settings",
81110
"action_open-advanced-settings": "Advanced Settings",
82111
"label_link-to-font": "Link to font",
83-
"title_typography-styles": "Typography Styles"
84-
}
112+
"title_typography-styles": "Typography Styles",
113+
"title_advance-color-settings-basic-palette": "Basic Palette",
114+
"title_advance-color-settings-brand-summary": "Brand summary",
115+
"title_advance-color-settings-texts": "Texts",
116+
"title_advance-color-settings-backgrounds": "Backgrounds",
117+
"title_advance-color-settings-lines": "Lines",
118+
"title_advance-color-settings-effects": "Effects",
119+
"title_advance-color-settings-misc": "Misc",
120+
"text_utility-color_text-primary_description": "Primary text on the page. It is default for headers, paragraphs, buttons.",
121+
"text_utility-color_text-complementary_description": "Complementary text on the page. Controls, notes, etc.",
122+
"text_utility-color_text-secondary_description": "Secondary text on the page. Captions, definitions, nonessential information.",
123+
"text_utility-color_text-hint_description": "Control hint.",
124+
"text_utility-color_text-info_description": "Info text.",
125+
"text_utility-color_text-info-heavy_description": "Info text with underlay.",
126+
"text_utility-color_text-positive_description": "Positive text.",
127+
"text_utility-color_text-positive-heavy_description": "Positive text with underlay.",
128+
"text_utility-color_text-warning_description": "Warning text.",
129+
"text_utility-color_text-warning-heavy_description": "Warning text with underlay.",
130+
"text_utility-color_text-danger_description": "Danger text.",
131+
"text_utility-color_text-danger-heavy_description": "Danger text with underlay.",
132+
"text_utility-color_text-utility_description": "For emphasizing, without semantic.",
133+
"text_utility-color_text-utility-heavy_description": "Utility text with underlay.",
134+
"text_utility-color_text-misc_description": "For emphasizing, without semantic.",
135+
"text_utility-color_text-misc-heavy_description": "Misc text with underlay.",
136+
"text_utility-color_text-brand_description": "Brand text.",
137+
"text_utility-color_text-brand-heavy_description": "Brand text with underlay.",
138+
"text_utility-color_text-brand-contrast_description": "Brand text with high contrast.",
139+
"text_utility-color_text-link_description": "Links.",
140+
"text_utility-color_text-link-hover_description": "Hover for Link.",
141+
"text_utility-color_text-link-visited_description": "Visited Link.",
142+
"text_utility-color_text-link-visited-hover_description": "Hover for Visited Link.",
143+
"text_utility-color_text-dark-primary_description": "Primary text over light background.",
144+
"text_utility-color_text-dark-complementary_description": "Complementary text over light background.",
145+
"text_utility-color_text-dark-secondary_description": "Secondary text over light background.",
146+
"text_utility-color_text-dark-hint_description": "Minimal contrast.",
147+
"text_utility-color_text-light-primary_description": "Primary text over dark background.",
148+
"text_utility-color_text-light-complementary_description": "Complementary text over dark background.",
149+
"text_utility-color_text-light-secondary_description": "Secondary text over dark background.",
150+
"text_utility-color_text-light-hint_description": "Minimal contrast.",
151+
"text_utility-color_text-inverted-primary_description": "Primary text.",
152+
"text_utility-color_text-inverted-complementary_description": "Complementary text.",
153+
"text_utility-color_text-inverted-secondary_description": "Secondary text.",
154+
"text_utility-color_text-inverted-hint_description": "Minimal contrast.",
155+
"text_utility-color_base-background_description": "Page's background.",
156+
"text_utility-color_base-generic_description": "Generic gray base, buttons and other objects.",
157+
"text_utility-color_base-generic-hover_description": "Hover for Generic.",
158+
"text_utility-color_base-generic-medium_description": "Neutral blocks with medium contrast.",
159+
"text_utility-color_base-generic-medium-hover_description": "Hover for Generic Medium.",
160+
"text_utility-color_base-generic-accent_description": "Background for controls (checkbox, radio, etc.).",
161+
"text_utility-color_base-generic-accent-disabled_description": "Disabled background for controls.",
162+
"text_utility-color_base-generic-ultralight_description": "Background with minimal contrast. Not recommended to use.",
163+
"text_utility-color_base-simple-hover_description": "Hover for transparent objects (works over light backgrounds).",
164+
"text_utility-color_base-simple-hover-solid_description": "Hover for transparent objects (works over light backgrounds).",
165+
"text_utility-color_base-brand_description": "Background for accented object.",
166+
"text_utility-color_base-brand-hover_description": "Hover for Brand.",
167+
"text_utility-color_base-selection_description": "Highlight selected objects in menus, calendars, etc.",
168+
"text_utility-color_base-selection-hover_description": "Hover for Selection.",
169+
"text_utility-color_base-info-light_description": "Info semantic background.",
170+
"text_utility-color_base-info-light-hover_description": "Hover for Info.",
171+
"text_utility-color_base-positive-light_description": "Positive semantic background.",
172+
"text_utility-color_base-positive-light-hover_description": "Hover for Positive.",
173+
"text_utility-color_base-warning-light_description": "Warning semantic background.",
174+
"text_utility-color_base-warning-light-hover_description": "Hover for Warning.",
175+
"text_utility-color_base-danger-light_description": "Negative semantic background.",
176+
"text_utility-color_base-danger-light-hover_description": "Hover for Danger.",
177+
"text_utility-color_base-utility-light_description": "Utility semantic background.",
178+
"text_utility-color_base-utility-light-hover_description": "Hover for Utility.",
179+
"text_utility-color_base-misc-light_description": "Uncategorized semantic background.",
180+
"text_utility-color_base-misc-light-hover_description": "Hover for Misc.",
181+
"text_utility-color_base-neutral-light_description": "Neutral semantic background.",
182+
"text_utility-color_base-neutral-light-hover_description": "Hover for Neutral.",
183+
"text_utility-color_base-info-medium_description": "Info semantic background, medium accent.",
184+
"text_utility-color_base-info-medium-hover_description": "Hover for Info Medium.",
185+
"text_utility-color_base-positive-medium_description": "Positive semantic background, medium accent.",
186+
"text_utility-color_base-positive-medium-hover_description": "Hover for Positive Medium.",
187+
"text_utility-color_base-warning-medium_description": "Warning semantic background, medium accent.",
188+
"text_utility-color_base-warning-medium-hover_description": "Hover for Warning Medium.",
189+
"text_utility-color_base-danger-medium_description": "Danger semantic background, medium accent.",
190+
"text_utility-color_base-danger-medium-hover_description": "Hover for Danger Medium.",
191+
"text_utility-color_base-utility-medium_description": "Utility semantic background, medium accent.",
192+
"text_utility-color_base-utility-medium-hover_description": "Hover for Utility Medium.",
193+
"text_utility-color_base-misc-medium_description": "Uncategorized semantic background, medium accent.",
194+
"text_utility-color_base-misc-medium-hover_description": "Hover for Misc Medium.",
195+
"text_utility-color_base-neutral-medium_description": "Neutral semantic background, medium accent.",
196+
"text_utility-color_base-neutral-medium-hover_description": "Hover for Neutral Medium.",
197+
"text_utility-color_base-info-heavy_description": "Info semantic background, strong accent.",
198+
"text_utility-color_base-info-heavy-hover_description": "Hover for Info Heavy.",
199+
"text_utility-color_base-positive-heavy_description": "Positive semantic background, strong accent.",
200+
"text_utility-color_base-positive-heavy-hover_description": "Hover for Positive Heavy.",
201+
"text_utility-color_base-warning-heavy_description": "Warning semantic background, strong accent.",
202+
"text_utility-color_base-warning-heavy-hover_description": "Hover for Warning Heavy.",
203+
"text_utility-color_base-danger-heavy_description": "Negative semantic background, strong accent.",
204+
"text_utility-color_base-danger-heavy-hover_description": "Hover for Danger Heavy",
205+
"text_utility-color_base-utility-heavy_description": "Utility semantic background, strong accent.",
206+
"text_utility-color_base-utility-heavy-hover_description": "Hover for Utility Heavy.",
207+
"text_utility-color_base-misc-heavy_description": "Uncategorized semantic background, strong accent.",
208+
"text_utility-color_base-misc-heavy-hover_description": "Hover for Misc Heavy.",
209+
"text_utility-color_base-neutral-heavy_description": "Neutral semantic background, strong accent.",
210+
"text_utility-color_base-neutral-heavy-hover_description": "Hover for Neutral Heavy.",
211+
"text_utility-color_base-light_description": "Background on top of another darker background.",
212+
"text_utility-color_base-light-hover_description": "Hover for Light.",
213+
"text_utility-color_base-light-simple-hover_description": "Hover for transparent objects (works over dark backgrounds).",
214+
"text_utility-color_base-light-disabled_description": "Disabled controls.",
215+
"text_utility-color_base-light-accent-disabled_description": "Disabled active controls.",
216+
"text_utility-color_base-float_description": "Raised layers background.",
217+
"text_utility-color_base-float-hover_description": "Hover for Float.",
218+
"text_utility-color_base-float-medium_description": "Float for medium contrast.",
219+
"text_utility-color_base-float-heavy_description": "Float for strong contrast.",
220+
"text_utility-color_base-float-accent_description": "Raised controls.",
221+
"text_utility-color_base-float-accent-hover_description": "Hover for Float Accent.",
222+
"text_utility-color_base-float-announcement_description": "Float background for announcements.",
223+
"text_utility-color_base-modal_description": "Floating components with a veil.",
224+
"text_utility-color_line-generic_description": "Button borders, dividers, basic block borders. Almost all lines.",
225+
"text_utility-color_line-generic-hover_description": "Hover for Generic.",
226+
"text_utility-color_line-generic-active_description": "Active state for Generic.",
227+
"text_utility-color_line-generic-accent_description": "Control borders.",
228+
"text_utility-color_line-generic-accent-hover_description": "Hover for Generic Accent.",
229+
"text_utility-color_line-generic-solid_description": "Generic without transparency (to avoid collision artefacts).",
230+
"text_utility-color_line-brand_description": "Brand blocks",
231+
"text_utility-color_line-focus_description": "Focused blocks",
232+
"text_utility-color_line-info_description": "Info blocks.",
233+
"text_utility-color_line-positive_description": "Positive blocks.",
234+
"text_utility-color_line-warning_description": "Warning blocks.",
235+
"text_utility-color_line-danger_description": "Danger blocks. Blocks with negative context.",
236+
"text_utility-color_line-utility_description": "Utility blocks.",
237+
"text_utility-color_line-misc_description": "Uncategorized blocks.",
238+
"text_utility-color_line-light_description": "Dividers and borders over dark background.",
239+
"text_utility-color_sfx-veil_description": "Popup backdrop.",
240+
"text_utility-color_sfx-shadow_description": "Shadow for everything that might have it.",
241+
"text_utility-color_sfx-shadow-light_description": "Lighter version of shadow.",
242+
"text_utility-color_sfx-shadow-heavy_description": "Heavy shadows. DEPRECATED.",
243+
"text_utility-color_sfx-fade_description": "Enlighten while loading.",
244+
"text_utility-color_scroll-track_description": "Scroll background.",
245+
"text_utility-color_scroll-handle_description": "The handle to move the scroll.",
246+
"text_utility-color_scroll-handle-hover_description": "Hover state for scroll handle.",
247+
"text_utility-color_scroll-corner_description": "A corner where horizontal and vertical scrolls meet.",
248+
"text_utility-color_infographics-axis_description": "Graph axis",
249+
"text_utility-color_infographics-tooltip-bg_description": "Main background for tooltips.",
250+
"text_utility-color_disabled_description": "Disabled: recursive color reference detected"
251+
}

0 commit comments

Comments
 (0)