Skip to content

Commit

Permalink
added token
Browse files Browse the repository at this point in the history
  • Loading branch information
Egorov Aleksey committed Nov 3, 2023
1 parent cde5ec6 commit f3d0820
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
58 changes: 58 additions & 0 deletions src/build/__snapshots__/snapthots.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1390,6 +1390,20 @@ exports[`shapshots calendar theme should match cssVars snapshot 1`] = `
"value": "var(--vkui--calendar_color_icon_order, #ff54aa)",
},
},
"calendarColorIconOthers": {
"active": {
"name": "--vkui--calendar_color_icon_others--active",
"value": "var(--vkui--calendar_color_icon_others--active, #0059EA)",
},
"hover": {
"name": "--vkui--calendar_color_icon_others--hover",
"value": "var(--vkui--calendar_color_icon_others--hover, #005CF1)",
},
"normal": {
"name": "--vkui--calendar_color_icon_others",
"value": "var(--vkui--calendar_color_icon_others, #005FF9)",
},
},
"calendarColorIconPrimary": {
"active": {
"name": "--vkui--calendar_color_icon_primary--active",
Expand Down Expand Up @@ -6782,6 +6796,11 @@ exports[`shapshots calendar theme should match pixelify theme snapshot 1`] = `
"hover": "#F551A6",
"normal": "#ff54aa",
},
"calendarColorIconOthers": {
"active": "#0059EA",
"hover": "#005CF1",
"normal": "#005FF9",
},
"calendarColorIconPrimary": {
"active": "#282B2F",
"hover": "#2A2C2F",
Expand Down Expand Up @@ -8758,6 +8777,11 @@ exports[`shapshots calendar theme should match pseudo theme from CssVars 1`] = `
"hover": "var(--vkui--calendar_color_icon_order--hover, #F551A6)",
"normal": "var(--vkui--calendar_color_icon_order, #ff54aa)",
},
"calendarColorIconOthers": {
"active": "var(--vkui--calendar_color_icon_others--active, #0059EA)",
"hover": "var(--vkui--calendar_color_icon_others--hover, #005CF1)",
"normal": "var(--vkui--calendar_color_icon_others, #005FF9)",
},
"calendarColorIconPrimary": {
"active": "var(--vkui--calendar_color_icon_primary--active, #282B2F)",
"hover": "var(--vkui--calendar_color_icon_primary--hover, #2A2C2F)",
Expand Down Expand Up @@ -10734,6 +10758,11 @@ exports[`shapshots calendar theme should match root theme snapshot 1`] = `
"hover": "#F551A6",
"normal": "#ff54aa",
},
"calendarColorIconOthers": {
"active": "#0059EA",
"hover": "#005CF1",
"normal": "#005FF9",
},
"calendarColorIconPrimary": {
"active": "#282B2F",
"hover": "#2A2C2F",
Expand Down Expand Up @@ -13598,6 +13627,20 @@ exports[`shapshots calendarDark theme should match cssVars snapshot 1`] = `
"value": "var(--vkui--calendar_color_icon_order, #F94CA3)",
},
},
"calendarColorIconOthers": {
"active": {
"name": "--vkui--calendar_color_icon_others--active",
"value": "var(--vkui--calendar_color_icon_others--active, #4C8CFD)",
},
"hover": {
"name": "--vkui--calendar_color_icon_others--hover",
"value": "var(--vkui--calendar_color_icon_others--hover, #4487FD)",
},
"normal": {
"name": "--vkui--calendar_color_icon_others",
"value": "var(--vkui--calendar_color_icon_others, #3C82FD)",
},
},
"calendarColorIconPrimary": {
"active": {
"name": "--vkui--calendar_color_icon_primary--active",
Expand Down Expand Up @@ -18990,6 +19033,11 @@ exports[`shapshots calendarDark theme should match pixelify theme snapshot 1`] =
"hover": "#F953A7",
"normal": "#F94CA3",
},
"calendarColorIconOthers": {
"active": "#4C8CFD",
"hover": "#4487FD",
"normal": "#3C82FD",
},
"calendarColorIconPrimary": {
"active": "#BABABA",
"hover": "#B7B7B7",
Expand Down Expand Up @@ -20966,6 +21014,11 @@ exports[`shapshots calendarDark theme should match pseudo theme from CssVars 1`]
"hover": "var(--vkui--calendar_color_icon_order--hover, #F953A7)",
"normal": "var(--vkui--calendar_color_icon_order, #F94CA3)",
},
"calendarColorIconOthers": {
"active": "var(--vkui--calendar_color_icon_others--active, #4C8CFD)",
"hover": "var(--vkui--calendar_color_icon_others--hover, #4487FD)",
"normal": "var(--vkui--calendar_color_icon_others, #3C82FD)",
},
"calendarColorIconPrimary": {
"active": "var(--vkui--calendar_color_icon_primary--active, #BABABA)",
"hover": "var(--vkui--calendar_color_icon_primary--hover, #B7B7B7)",
Expand Down Expand Up @@ -22942,6 +22995,11 @@ exports[`shapshots calendarDark theme should match root theme snapshot 1`] = `
"hover": "#F953A7",
"normal": "#F94CA3",
},
"calendarColorIconOthers": {
"active": "#4C8CFD",
"hover": "#4487FD",
"normal": "#3C82FD",
},
"calendarColorIconPrimary": {
"active": "#BABABA",
"hover": "#B7B7B7",
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/themes/calendar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ export interface LocalCalendarColorDescriptionStruct {
calendarColorIconFinance: ColorDescription;
calendarColorIconTravel: ColorDescription;
calendarColorIconEvent: ColorDescription;
calendarColorIconOthers: ColorDescription;
}

export type CalendarLocalColors = {
Expand Down
2 changes: 2 additions & 0 deletions src/themeDescriptions/themes/calendar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const calendarTheme: ThemeCalendarDescription = {
calendarColorIconFinance: '#2fc885',
calendarColorIconTravel: '#ba34fc',
calendarColorIconEvent: '#09a6fa',
calendarColorIconOthers: '#005FF9',

// для кнопок, которые голубые в светлой теме и серые в темной
calendarColorBackgroundAccentTintThemed: {
Expand Down Expand Up @@ -473,6 +474,7 @@ export const calendarDarkTheme: ThemeCalendarDarkDescription = {
calendarColorIconFinance: '#24C780',
calendarColorIconTravel: '#C15DF3',
calendarColorIconEvent: '#3BBAFE',
calendarColorIconOthers: '#3C82FD',

calendarColorBackgroundAccentTintThemed: {
normal: '#3E3E3F',
Expand Down

0 comments on commit f3d0820

Please sign in to comment.