diy-template-components 1.0.60 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.es.js CHANGED
@@ -361,13 +361,11 @@ const buttonStyles = createUseStyles(theme => ({
361
361
  textAlign: 'center',
362
362
  color: ({
363
363
  disabled
364
- } = {}) => disabled ? colorMixer(theme?.palette?.background?.default, 0.5).color : theme?.palette?.background?.default,
364
+ } = {}) => disabled ? colorMixer(theme?.palette?.background?.default, 0.5).color : theme?.colors?.CtaTextColor,
365
365
  background: ({
366
366
  disabled
367
- } = {}) => disabled ? colorMixer(theme?.palette?.primary.main, 0.5).color : theme?.palette?.primary?.main,
368
- border: ({
369
- disabled
370
- } = {}) => disabled ? `1px solid ${colorMixer(theme.palette.primary.main, 0.5).color}` : `1px solid ${theme?.palette?.primary?.main}`,
367
+ } = {}) => disabled ? colorMixer(theme?.palette?.primary.main, 0.5).color : theme?.colors?.ctaColor,
368
+ border: 'none',
371
369
  textDecoration: 'none',
372
370
  cursor: ({
373
371
  disabled
@@ -389,13 +387,13 @@ const buttonStyles = createUseStyles(theme => ({
389
387
  lineHeight: '18px',
390
388
  color: ({
391
389
  disabled
392
- } = {}) => disabled ? colorMixer(theme.palette.primary.main, 0.5).color : theme.palette.primary.main,
390
+ } = {}) => disabled ? colorMixer(theme.palette.primary.main, 0.5).color : theme?.colors?.CtaTextColor,
393
391
  background: ({
394
392
  disabled
395
- } = {}) => disabled ? colorMixer(theme?.palette?.background?.default, 0.5).color : theme?.palette?.background?.default,
393
+ } = {}) => disabled ? colorMixer(theme?.palette?.parimar?.default, 0.5).color : theme?.colors?.ctaColor,
396
394
  border: ({
397
395
  disabled
398
- } = {}) => disabled ? `1px solid ${colorMixer(theme.palette.primary.main, 0.5).color}` : `1px solid ${theme.palette.primary.main}`,
396
+ } = {}) => disabled ? `1px solid ${colorMixer(theme.palette.primary.main, 0.5).color}` : `1px solid ${theme?.colors?.ctaColor}`,
399
397
  cursor: ({
400
398
  disabled
401
399
  } = {}) => disabled ? 'not-allowed' : 'pointer',
@@ -2076,17 +2074,13 @@ function getTheme(colorTheme = 'blue', fontFamily = 'Arial', isMobile) {
2076
2074
  const shape = {
2077
2075
  borderRadius
2078
2076
  };
2079
- const spacing = {
2080
- padding: isMobile ? mobilePadding : padding,
2081
- margin: isMobile ? mobileMargin : margin
2082
- };
2083
2077
  return {
2084
2078
  palette,
2085
2079
  shape,
2086
2080
  typography,
2087
2081
  shadows: generateShadows(palette),
2088
- borders: generateBorders(palette),
2089
- spacing
2082
+ borders: generateBorders(palette)
2083
+ // spacing
2090
2084
  };
2091
2085
  }
2092
2086
 
@@ -2208,6 +2202,165 @@ const defaultMetadata = {
2208
2202
  layout: defaultLayout
2209
2203
  };
2210
2204
 
2205
+ const GRADIENT = `linear-gradient`;
2206
+ const allColors = {
2207
+ white: '#FFFFFF',
2208
+ black: '#000000',
2209
+ lightblack: '#333333',
2210
+ gray: '#999999',
2211
+ // Blue gradient
2212
+
2213
+ blue: '#1676F3',
2214
+ bluegradient: `${GRADIENT}(#5418D1,#2C88FF)`,
2215
+ tertiaryblue: '#F4F9FF',
2216
+ // Orange gradient
2217
+
2218
+ orange: '#FF9000',
2219
+ orangegradient: `${GRADIENT}(#E96263 , #EAAE4C)`,
2220
+ tertiaryorange: '#FFF6EA',
2221
+ // Pink gradient
2222
+
2223
+ pink: '#F72585',
2224
+ pinkgradient: `${GRADIENT}(#F97794,#623AA2)`,
2225
+ tertiarypink: '#FEE9F3',
2226
+ // Violet gradient
2227
+
2228
+ purple: '#6026A8',
2229
+ purplegradient: `${GRADIENT}(#B66EC0 , #460FA1)`,
2230
+ tertiarypurple: '#F5F2FA',
2231
+ // Green gradient
2232
+
2233
+ green: '#8ECE19',
2234
+ greengradient: `${GRADIENT}(#0E5CAD, #79F1A4)`,
2235
+ tertiarygreen: '#F4FAFA',
2236
+ //Red solid
2237
+
2238
+ red: '#F41828',
2239
+ tertiaryred: '#FFF2F3',
2240
+ //Maroon solid
2241
+
2242
+ rust: '#9B2226',
2243
+ tertiaryrust: '#FFF0F0',
2244
+ //Golden gradient
2245
+
2246
+ golden: `#F2BA35`,
2247
+ goldengradient: `${GRADIENT}(#F0EA88, #CFA749)`,
2248
+ //light green gradient
2249
+
2250
+ lightgreen: `#D6E359`,
2251
+ lightgreengradient: `${GRADIENT}(#D6E359, #9DB545)`,
2252
+ //light blue gradient
2253
+
2254
+ lightblue: `#A8EDF8`,
2255
+ lightbluegradient: `${GRADIENT}(#A8EDF8, #5EC9E1)`,
2256
+ skyblue: '#00ADE7',
2257
+ tertiaryskyblue: '#F2FCFF'
2258
+ };
2259
+
2260
+ const generateTheme = (theme = 'blue', fontFamily = 'Arial', isMobile) => {
2261
+ let themeColor = theme.split('-');
2262
+ let color, gradient, darkMode;
2263
+ if (themeColor.length === 1) {
2264
+ color = themeColor[0];
2265
+ } else if (themeColor.length === 2) {
2266
+ color = themeColor[0];
2267
+ gradient = themeColor[1];
2268
+ } else {
2269
+ color = themeColor[0];
2270
+ gradient = themeColor[1];
2271
+ darkMode = themeColor[2];
2272
+ }
2273
+ console.log('color', allColors, gradient, darkMode);
2274
+
2275
+ // switch (color) {
2276
+ // case solidColors:
2277
+ // break;
2278
+
2279
+ // case gradientColors:
2280
+ // break;
2281
+
2282
+ // default:
2283
+ // break;
2284
+ // }
2285
+
2286
+ // type 1
2287
+ // const solidColors = {
2288
+ // font1: solidBaseColors?.black,
2289
+ // font2: solidBaseColors?.black,
2290
+ // font3: solidBaseColors?.black,
2291
+ // font4: solidBaseColors?.black,
2292
+ // AccentColor: solidBaseColors[theme],
2293
+ // background1: solidBaseColors?.white,
2294
+ // background2: solidBaseColors['tertiary' + theme],
2295
+ // background3: solidBaseColors['tertiary' + theme],
2296
+ // ctaColor: solidBaseColors[theme],
2297
+ // CtaTextColor: solidBaseColors?.white,
2298
+ // icon: solidBaseColors[theme],
2299
+ // iconBg: solidBaseColors['tertiary' + theme],
2300
+ // stripBg: solidBaseColors[theme],
2301
+ // stripText: solidBaseColors?.white,
2302
+ // inputBorderColor: solidBaseColors?.blue2,
2303
+ // tertiaryBlue2: solidBaseColors?.tertiaryblue2
2304
+ // };
2305
+
2306
+ //type 2
2307
+ // const gradientColors = {
2308
+ // font1: gradientBaseColors?.white,
2309
+ // font2: gradientBaseColors?.black,
2310
+ // font3: gradientBaseColors?.black,
2311
+ // font4: gradientBaseColors?.white,
2312
+ // AccentColor: gradientBaseColors[theme],
2313
+ // background1: gradientBaseColors[theme + 'gradient'],
2314
+ // background2: gradientBaseColors['tertiary' + theme],
2315
+ // background3: gradientBaseColors[theme + 'gradient'],
2316
+ // ctaColor: gradientBaseColors[theme + 'gradient'],
2317
+ // CtaTextColor: gradientBaseColors?.white,
2318
+ // icon: gradientBaseColors[theme],
2319
+ // iconBg: gradientBaseColors['tertiary' + theme],
2320
+ // stripBg: gradientBaseColors?.black,
2321
+ // stripText: gradientBaseColors?.white
2322
+ // };
2323
+
2324
+ const colors = {
2325
+ font1: gradient ? allColors?.white : allColors?.black,
2326
+ font2: darkMode ? allColors[color] : allColors?.black,
2327
+ font3: darkMode ? allColors?.white : allColors?.black,
2328
+ font4: darkMode ? allColors[color] : gradient ? allColors?.white : allColors?.black,
2329
+ AccentColor: allColors[color],
2330
+ background1: darkMode ? allColors?.lightblack : gradient ? allColors[color + 'gradient'] : allColors?.white,
2331
+ background2: darkMode ? allColors?.lightblack : allColors['tertiary' + color],
2332
+ background3: darkMode ? allColors?.lightblack : gradient ? allColors[color + 'gradient'] : allColors['tertiary' + color],
2333
+ ctaColor: darkMode ? allColors[color + 'gradient'] : gradient ? allColors[color + 'gradient'] : allColors[color],
2334
+ CtaTextColor: darkMode ? allColors?.lightblack : allColors?.white,
2335
+ icon: allColors[color],
2336
+ iconBg: darkMode ? allColors?.lightblack : allColors['tertiary' + color],
2337
+ stripBg: darkMode ? allColors[color + 'gradient'] : allColors?.black,
2338
+ stripText: darkMode ? allColors?.lightblack : allColors?.white,
2339
+ inputBorderColor: allColors?.blue2,
2340
+ tertiaryBlue2: allColors?.tertiaryblue2,
2341
+ white: allColors?.white,
2342
+ black: allColors?.black,
2343
+ lightblack: allColors?.lightblack,
2344
+ gray: allColors?.gray
2345
+ };
2346
+ const typography = {
2347
+ fontFamily: `"${fontFamily}", "Roboto", "Helvetica", "Arial", "sans-serif"`,
2348
+ fontSize: isMobile ? fontSizeMob : fontSize,
2349
+ fontWeight
2350
+ };
2351
+ // const shape = { borderRadius };
2352
+ const spacing = {
2353
+ padding: isMobile ? mobilePadding : padding,
2354
+ margin: isMobile ? mobileMargin : margin
2355
+ };
2356
+ return {
2357
+ ...getTheme(theme),
2358
+ typography,
2359
+ spacing,
2360
+ colors
2361
+ };
2362
+ };
2363
+
2211
2364
  function PageRenderer$1({
2212
2365
  pageData: {
2213
2366
  metadata: {
@@ -2264,7 +2417,7 @@ function PageRenderer$1({
2264
2417
  countryCode,
2265
2418
  currencySymbol
2266
2419
  }), [isMobile, isLandingPages, layout, baseURLs, hashToken, isPreview, isEdit, templateId, navList, isMasterTemplate, basePath, validations, isTutorWebsite, extraProps, hideLogin, _id, countryCode, currencySymbol]);
2267
- const theme = useMemo(() => getTheme(color, font, context.isMobile), [color, font, context.isMobile]);
2420
+ const theme = useMemo(() => generateTheme(color, font, context.isMobile), [color, font, context.isMobile]);
2268
2421
  const Wrapper = SectionWrapper || Fragment;
2269
2422
  return /*#__PURE__*/React.createElement(ThemeProvider, {
2270
2423
  theme: theme
@@ -2302,7 +2455,7 @@ const useSectionStyles$8 = createUseStyles(theme => ({
2302
2455
  padding: ({
2303
2456
  isMobile
2304
2457
  } = {}) => isMobile ? `${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
2305
- backgroundColor: theme?.palette?.background?.primary,
2458
+ background: theme?.colors?.background2,
2306
2459
  '&, & *, & *:before, & *:after': {
2307
2460
  fontFamily: theme?.typography?.fontFamily,
2308
2461
  boxSizing: 'border-box'
@@ -2360,14 +2513,14 @@ const useSectionStyles$8 = createUseStyles(theme => ({
2360
2513
  marginBottom: '8px',
2361
2514
  fontSize: theme.typography.fontSize.subHead,
2362
2515
  letterSpacing: '3px',
2363
- color: theme?.palette?.font?.default,
2516
+ color: theme?.colors?.font3,
2364
2517
  wordBreak: 'break-word',
2365
2518
  maxWidth: '100%'
2366
2519
  },
2367
2520
  heading: {
2368
2521
  margin: '0',
2369
2522
  fontSize: theme.typography.fontSize.h1,
2370
- color: theme?.palette?.font?.default,
2523
+ color: theme?.colors?.font3,
2371
2524
  wordBreak: ({
2372
2525
  wordBreakValue
2373
2526
  }) => wordBreakValue || 'break-word',
@@ -2376,7 +2529,7 @@ const useSectionStyles$8 = createUseStyles(theme => ({
2376
2529
  },
2377
2530
  description: {
2378
2531
  margin: `${theme.spacing.margin.tiny}px 0px`,
2379
- color: theme?.palette?.font?.primary,
2532
+ color: theme?.colors?.font3,
2380
2533
  lineHeight: '24px',
2381
2534
  wordBreak: 'break-word'
2382
2535
  },
@@ -2493,7 +2646,7 @@ const useCarouselStyles = createUseStyles(theme => ({
2493
2646
  width: '26px',
2494
2647
  background: ({
2495
2648
  inverted
2496
- } = {}) => !!inverted ? theme?.palette?.font?.invertedDefault : theme.palette.primary.main
2649
+ } = {}) => !!inverted ? theme?.palette?.font?.invertedDefault : theme.colors.AccentColor
2497
2650
  },
2498
2651
  '@media screen and (max-width: 767px)': {
2499
2652
  sliderClass: {
@@ -2529,7 +2682,7 @@ const useArrowButtonStyles = createUseStyles(theme => ({
2529
2682
  height: sizeHandler,
2530
2683
  border: ({
2531
2684
  inverted
2532
- }) => `solid 1px ${inverted ? theme?.palette?.font?.invertedDefault : theme?.palette?.primary?.light}`,
2685
+ }) => `solid 1px ${inverted ? theme?.palette?.font?.invertedDefault : theme?.colors?.AccentColor}`,
2533
2686
  borderRadius: '50%',
2534
2687
  display: 'flex',
2535
2688
  justifyContent: 'center',
@@ -2551,7 +2704,7 @@ function ArrowButton(props) {
2551
2704
  }, /*#__PURE__*/React.createElement(Icon, {
2552
2705
  height: props.size === 'small' ? '12px' : '18px',
2553
2706
  name: "Angle",
2554
- color: props.inverted ? theme?.palette?.font?.invertedDefault : theme?.palette?.primary?.main,
2707
+ color: props.inverted ? theme?.palette?.font?.invertedDefault : theme?.colors?.AccentColor,
2555
2708
  inverted: true
2556
2709
  }));
2557
2710
  }
@@ -2761,7 +2914,6 @@ const useSectionStyles$7 = createUseStyles(theme => ({
2761
2914
  justifyContent: 'center',
2762
2915
  flexDirection: 'column',
2763
2916
  alignItems: 'center',
2764
- backgroundColor: theme?.palette?.background?.default,
2765
2917
  '&, & *, & *:before, & *:after': {
2766
2918
  fontFamily: theme?.typography?.fontFamily,
2767
2919
  boxSizing: 'border-box'
@@ -2779,7 +2931,7 @@ const useSectionStyles$7 = createUseStyles(theme => ({
2779
2931
  subTitleHeading: {
2780
2932
  marginBottom: '8px',
2781
2933
  fontSize: theme.typography.fontSize.subHead,
2782
- color: theme?.palette?.font?.default,
2934
+ color: theme?.colors?.black,
2783
2935
  alignItems: 'center',
2784
2936
  textAlign: 'center',
2785
2937
  wordBreak: 'break-word',
@@ -2789,7 +2941,7 @@ const useSectionStyles$7 = createUseStyles(theme => ({
2789
2941
  heading: {
2790
2942
  marginBottom: theme.spacing.margin.tiny,
2791
2943
  fontSize: theme.typography.fontSize.h2,
2792
- color: theme?.palette?.font?.default,
2944
+ color: theme?.colors?.black,
2793
2945
  fontWeight: theme.typography.fontWeight.bold,
2794
2946
  textAlign: 'center',
2795
2947
  wordBreak: 'break-word'
@@ -2806,7 +2958,7 @@ const useSectionStyles$7 = createUseStyles(theme => ({
2806
2958
  display: 'flex',
2807
2959
  width: 'calc(100% - 200px)',
2808
2960
  alignItems: 'center',
2809
- background: theme?.palette?.background?.default,
2961
+ background: theme?.colors?.white,
2810
2962
  boxShadow: theme?.shadows?.primary,
2811
2963
  borderRadius: theme?.shape?.borderRadius?.regular,
2812
2964
  overflow: 'hidden',
@@ -2830,33 +2982,13 @@ const useSectionStyles$7 = createUseStyles(theme => ({
2830
2982
  '& $contentText': {
2831
2983
  marginLeft: '170px'
2832
2984
  }
2833
- },
2834
- '&:nth-child(7n+1) $contentNumber': {
2835
- background: palettes.purple.primary.lightest
2836
- },
2837
- '&:nth-child(7n+2) $contentNumber': {
2838
- background: palettes.orange.primary.lightest
2839
- },
2840
- '&:nth-child(7n+3) $contentNumber': {
2841
- background: palettes.red.primary.lightest
2842
- },
2843
- '&:nth-child(7n+4) $contentNumber': {
2844
- background: palettes.green.primary.lightest
2845
- },
2846
- '&:nth-child(7n+5) $contentNumber': {
2847
- background: palettes.pink.primary.lightest
2848
- },
2849
- '&:nth-child(7n+6) $contentNumber': {
2850
- background: palettes.blue.primary.lightest
2851
- },
2852
- '&:nth-child(7n) $contentNumber': {
2853
- background: palettes.rust.primary.lightest
2854
2985
  }
2855
2986
  },
2856
2987
  contentNumber: {
2857
2988
  position: 'absolute',
2858
2989
  top: '0',
2859
2990
  fontWeight: '700',
2991
+ background: theme?.colors?.background3,
2860
2992
  fontSize: '72px',
2861
2993
  letterSpacing: '-3px',
2862
2994
  display: 'flex',
@@ -2864,7 +2996,7 @@ const useSectionStyles$7 = createUseStyles(theme => ({
2864
2996
  justifyContent: 'center',
2865
2997
  padding: '48px',
2866
2998
  height: '100%',
2867
- color: theme?.palette?.font?.default,
2999
+ color: theme?.colors?.font4,
2868
3000
  wordBreak: 'break-word'
2869
3001
  },
2870
3002
  contentText: {
@@ -2876,14 +3008,14 @@ const useSectionStyles$7 = createUseStyles(theme => ({
2876
3008
  fontWeight: theme.typography.fontWeight.bold,
2877
3009
  lineHeight: '32px',
2878
3010
  marginBottom: '8px',
2879
- color: theme?.palette?.font?.default,
3011
+ color: theme?.colors?.lightblack,
2880
3012
  wordBreak: 'break-word'
2881
3013
  },
2882
3014
  contentPara: {
2883
3015
  fontStyle: 'normal',
2884
3016
  fontSize: '16px',
2885
3017
  lineHeight: '26px',
2886
- color: theme?.palette?.font?.primary,
3018
+ color: theme?.colors?.gray,
2887
3019
  wordBreak: 'break-word'
2888
3020
  },
2889
3021
  '@media screen and (max-width: 767px)': {
@@ -3296,6 +3428,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
3296
3428
  return {
3297
3429
  section: {
3298
3430
  padding: `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
3431
+ background: theme?.colors?.background2,
3299
3432
  '&, & *, & *:before, & *:after': {
3300
3433
  fontFamily: theme?.typography?.fontFamily,
3301
3434
  boxSizing: 'border-box'
@@ -3339,7 +3472,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
3339
3472
  }
3340
3473
  },
3341
3474
  imageBorder: {
3342
- border: `2px solid ${theme?.palette?.primary?.light}`,
3475
+ // border: `2px solid ${theme?.palette?.primary?.light}`,
3343
3476
  borderRadius: theme?.shape?.borderRadius?.small,
3344
3477
  position: 'absolute',
3345
3478
  width: '100%',
@@ -3364,13 +3497,13 @@ const useSectionStyles$5 = createUseStyles(theme => {
3364
3497
  marginBottom: '8px',
3365
3498
  fontSize: theme?.typography?.fontSize?.subHead,
3366
3499
  letterSpacing: '3px',
3367
- color: theme?.palette?.font?.default,
3500
+ color: theme?.colors?.font3,
3368
3501
  wordBreak: 'break-word'
3369
3502
  },
3370
3503
  heading: {
3371
3504
  margin: '0',
3372
3505
  fontSize: theme?.typography?.fontSize?.h1,
3373
- color: theme?.palette?.font?.default,
3506
+ color: theme?.colors?.font3,
3374
3507
  wordBreak: ({
3375
3508
  wordBreakValue
3376
3509
  }) => wordBreakValue || 'break-word',
@@ -3380,7 +3513,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
3380
3513
  description: {
3381
3514
  marginTop: theme.spacing.margin.tiny,
3382
3515
  marginBottom: theme.spacing.margin.tiny,
3383
- color: theme?.palette?.font?.primary,
3516
+ color: theme?.colors?.font3,
3384
3517
  lineHeight: '24px',
3385
3518
  wordBreak: 'break-word'
3386
3519
  },
@@ -3546,16 +3679,16 @@ const useSectionStyles$4 = createUseStyles(theme => ({
3546
3679
  containerWidth
3547
3680
  } = {}) => containerWidth
3548
3681
  },
3549
- partialBackground: {
3550
- top: '0',
3551
- left: '0',
3552
- width: '100%',
3553
- height: '50%',
3554
- position: 'absolute',
3555
- background: theme?.palette?.background?.primary
3556
- },
3682
+ // partialBackground: {
3683
+ // top: '0',
3684
+ // left: '0',
3685
+ // width: '100%',
3686
+ // height: '50%',
3687
+ // position: 'absolute',
3688
+ // background: theme?.palette?.background?.primary
3689
+ // },
3557
3690
  sectionContainer: {
3558
- backgroundColor: theme?.palette?.background?.default,
3691
+ backgroundColor: theme?.colors?.background2,
3559
3692
  boxShadow: theme?.shadows?.secondary,
3560
3693
  borderRadius: theme?.shape?.borderRadius?.regular,
3561
3694
  padding: theme.spacing.padding.small,
@@ -3566,7 +3699,7 @@ const useSectionStyles$4 = createUseStyles(theme => ({
3566
3699
  fontWeight: theme.typography.fontWeight.bold,
3567
3700
  lineHeight: '71px',
3568
3701
  letterSpacing: '-3px',
3569
- color: theme?.palette?.font?.default,
3702
+ color: theme?.colors?.font3,
3570
3703
  marginBottom: theme.spacing.padding.tiny,
3571
3704
  wordBreak: 'break-word'
3572
3705
  },
@@ -3578,7 +3711,7 @@ const useSectionStyles$4 = createUseStyles(theme => ({
3578
3711
  title: {
3579
3712
  fontSize: theme.typography.fontSize.h6,
3580
3713
  lineHeight: '32px',
3581
- color: theme?.palette?.font?.primary,
3714
+ color: theme?.colors?.font3,
3582
3715
  wordBreak: 'break-word',
3583
3716
  flex: 1
3584
3717
  },
@@ -3706,8 +3839,8 @@ const inputStyles = createUseStyles(theme => ({
3706
3839
  inputField: {
3707
3840
  width: '100%',
3708
3841
  // maxWidth: '314px',
3709
- background: theme?.palette?.background?.default,
3710
- border: `1px solid ${theme?.palette?.border?.secondary}`,
3842
+ // background: theme?.palette?.background?.default,
3843
+ border: `1px solid ${theme?.colors?.icon}`,
3711
3844
  borderRadius: theme?.shape?.borderRadius?.regular,
3712
3845
  padding: '14px 12px',
3713
3846
  display: 'flex',
@@ -3721,7 +3854,7 @@ const inputStyles = createUseStyles(theme => ({
3721
3854
  fontWeight: '400',
3722
3855
  fontSize: '16px',
3723
3856
  lineHeight: '20px',
3724
- color: theme?.palette?.font?.primary,
3857
+ color: theme?.colors?.black,
3725
3858
  fontFamily: theme?.typography?.fontFamily
3726
3859
  },
3727
3860
  '&:focus': {
@@ -3921,7 +4054,6 @@ var index$h = /*#__PURE__*/Object.freeze({
3921
4054
 
3922
4055
  const useTestimonialStyles = createUseStyles(theme => ({
3923
4056
  testimonialContainer: {
3924
- background: theme?.palette?.background?.primary,
3925
4057
  overflow: 'hidden',
3926
4058
  padding: `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
3927
4059
  '&, & *, & *:before, & *:after': {
@@ -3939,14 +4071,14 @@ const useTestimonialStyles = createUseStyles(theme => ({
3939
4071
  } = {}) => containerWidth
3940
4072
  },
3941
4073
  testimonialText: {
3942
- color: theme?.palette?.font?.default,
4074
+ color: theme?.colors?.font2,
3943
4075
  fontSize: theme.typography.fontSize.subHead,
3944
4076
  wordBreak: 'break-word',
3945
4077
  textTransform: 'uppercase'
3946
4078
  },
3947
4079
  testimonialHeader: {
3948
4080
  fontSize: theme.typography.fontSize.h2,
3949
- color: theme?.palette?.font?.default,
4081
+ color: theme?.colors?.font2,
3950
4082
  fontWeight: theme.typography.fontWeight.bold,
3951
4083
  marginBottom: theme.spacing.margin.tiny,
3952
4084
  marginTop: '8px',
@@ -3963,7 +4095,7 @@ const useTestimonialStyles = createUseStyles(theme => ({
3963
4095
  position: 'relative',
3964
4096
  height: 'calc(100% - 12px)',
3965
4097
  width: 'calc(100% - 24px)',
3966
- background: theme?.palette?.background?.default,
4098
+ background: theme?.colors?.background1,
3967
4099
  boxShadow: theme?.shadows?.primary,
3968
4100
  borderRadius: theme?.shape?.borderRadius?.regular
3969
4101
  },
@@ -3990,7 +4122,7 @@ const useTestimonialStyles = createUseStyles(theme => ({
3990
4122
  marginBottom: theme.spacing.margin.tiny,
3991
4123
  fontSize: theme.typography.fontSize.body,
3992
4124
  wordBreak: 'break-word',
3993
- color: theme?.palette?.font?.primary,
4125
+ color: theme?.colors?.font1,
3994
4126
  lineHeight: '26px'
3995
4127
  },
3996
4128
  userContainer: {
@@ -4019,7 +4151,7 @@ const useTestimonialStyles = createUseStyles(theme => ({
4019
4151
  marginRight: '16px'
4020
4152
  },
4021
4153
  userName: {
4022
- color: theme?.palette?.font?.default,
4154
+ color: theme?.colors?.font1,
4023
4155
  margin: '0',
4024
4156
  fontSize: theme.typography.fontSize.h5,
4025
4157
  // paddingTop: '16px',
@@ -4038,19 +4170,6 @@ const useTestimonialStyles = createUseStyles(theme => ({
4038
4170
  testimonialContainer: {
4039
4171
  padding: `${theme.spacing.padding.medium}px ${theme.spacing.padding.small}px`
4040
4172
  },
4041
- // testimonialCardAndText: {
4042
- // margin: '0 20px'
4043
- // },
4044
-
4045
- // testimonialHeader: {
4046
- // fontSize: '24px',
4047
- // color: theme?.palette?.font?.default,
4048
- // margin: '4px 0 12px 0',
4049
- // overflow: 'hidden',
4050
- // // whiteSpace: 'nowrap',
4051
- // wordBreak: 'break-word',
4052
- // textOverflow: 'ellipsis'
4053
- // },
4054
4173
  testimonialText: {
4055
4174
  textAlign: 'center'
4056
4175
  },
@@ -4103,7 +4222,7 @@ function QuotesComponent() {
4103
4222
  width: "28px",
4104
4223
  height: "21px",
4105
4224
  name: "Quote",
4106
- color: theme?.palette?.primary?.main
4225
+ color: theme?.colors?.icon
4107
4226
  }));
4108
4227
  }
4109
4228
 
@@ -4633,7 +4752,7 @@ const useVideoStyles = createUseStyles(theme => {
4633
4752
  padding: ({
4634
4753
  isMobile
4635
4754
  } = {}) => isMobile ? `${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
4636
- backgroundColor: theme?.palette?.background?.primary,
4755
+ backgroundColor: theme?.colors?.background2,
4637
4756
  '&, & *, & *:before, & *:after': {
4638
4757
  fontFamily: theme?.typography?.fontFamily,
4639
4758
  boxSizing: 'border-box'
@@ -4656,7 +4775,7 @@ const useVideoStyles = createUseStyles(theme => {
4656
4775
  fontSize: theme.typography.fontSize.subHead,
4657
4776
  textTransform: 'uppercase',
4658
4777
  lineHeight: '20px',
4659
- color: theme?.palette?.font?.default,
4778
+ color: theme?.colors?.font3,
4660
4779
  letterSpacing: '3px',
4661
4780
  wordBreak: 'break-word'
4662
4781
  },
@@ -4667,14 +4786,14 @@ const useVideoStyles = createUseStyles(theme => {
4667
4786
  letterSpacing: '-3px',
4668
4787
  marginBottom: theme.spacing.margin.tiny,
4669
4788
  marginTop: '8px',
4670
- color: theme?.palette?.font?.default,
4789
+ color: theme?.colors?.font3,
4671
4790
  wordBreak: 'break-word'
4672
4791
  },
4673
4792
  sliderContainer: {
4674
4793
  marginRight: `-${theme.spacing.padding.medium}px`
4675
4794
  },
4676
4795
  singleSlideContainer: {
4677
- backgroundColor: theme?.palette?.background?.default,
4796
+ backgroundColor: 'white',
4678
4797
  // margin: '20px',
4679
4798
  width: 'calc(100% - 24px)',
4680
4799
  height: 'calc(100% - 40px)',
@@ -4711,14 +4830,14 @@ const useVideoStyles = createUseStyles(theme => {
4711
4830
  fontWeight: theme.typography.fontWeight.bold,
4712
4831
  lineHeight: '32px',
4713
4832
  marginBottom: '8px',
4714
- color: theme?.palette?.font?.default,
4833
+ color: theme?.colors?.font2,
4715
4834
  wordBreak: 'break-word'
4716
4835
  },
4717
4836
  videoDetailsSubHeading: {
4718
4837
  fontSize: theme.typography.fontSize.body,
4719
4838
  lineHeight: '24px',
4720
4839
  wordBreak: 'break-word',
4721
- color: theme?.palette?.font?.primary
4840
+ color: theme?.colors?.font2
4722
4841
  },
4723
4842
  '@media (max-width: 767px)': {
4724
4843
  videoHeading: {
@@ -4865,11 +4984,10 @@ var index$e = /*#__PURE__*/Object.freeze({
4865
4984
 
4866
4985
  const useSectionStyles$3 = createUseStyles(theme => ({
4867
4986
  section: {
4868
- position: 'relative',
4869
4987
  padding: ({
4870
4988
  isMobile
4871
4989
  } = {}) => isMobile ? `${theme.spacing.padding.regular}px 0px ${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
4872
- backgroundColor: theme?.palette?.background?.default,
4990
+ background: `linear-gradient(180deg, ${theme?.colors?.background2} 50%, #FFFFFF 50%)`,
4873
4991
  '&, & *, & *:before, & *:after': {
4874
4992
  fontFamily: theme?.typography?.fontFamily,
4875
4993
  boxSizing: 'border-box'
@@ -4888,21 +5006,13 @@ const useSectionStyles$3 = createUseStyles(theme => ({
4888
5006
  containerWidth
4889
5007
  } = {}) => containerWidth
4890
5008
  },
4891
- partialBackground: {
4892
- position: 'absolute',
4893
- top: '0',
4894
- left: '0',
4895
- height: '50%',
4896
- background: theme?.palette?.background?.primary,
4897
- width: '100%'
4898
- },
4899
5009
  content: {
4900
5010
  position: 'relative'
4901
5011
  },
4902
5012
  subTitleHeading: {
4903
5013
  width: '100%',
4904
5014
  fontSize: theme.typography.fontSize.subHead,
4905
- color: theme?.palette?.font?.default,
5015
+ color: theme?.colors?.font2,
4906
5016
  textTransform: 'uppercase',
4907
5017
  textAlign: 'left',
4908
5018
  lineHeight: '20px',
@@ -4914,7 +5024,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
4914
5024
  fontSize: theme.typography.fontSize.h2,
4915
5025
  width: '100%',
4916
5026
  lineHeight: '70px',
4917
- color: theme?.palette?.font?.default,
5027
+ color: theme?.colors?.font2,
4918
5028
  textAlign: 'left',
4919
5029
  wordBreak: 'break-word'
4920
5030
  },
@@ -4924,7 +5034,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
4924
5034
  // },
4925
5035
 
4926
5036
  card: {
4927
- background: theme?.palette?.background?.default,
5037
+ background: theme?.colors?.white,
4928
5038
  boxShadow: theme?.shadows?.primary,
4929
5039
  borderRadius: theme.shape.borderRadius.large,
4930
5040
  margin: ({
@@ -4945,7 +5055,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
4945
5055
  textAlign: 'center',
4946
5056
  fontSize: theme.typography.fontSize.h6,
4947
5057
  fontWeight: theme.typography.fontWeight.bold,
4948
- color: theme?.palette?.font?.default,
5058
+ color: theme?.colors?.lightblack,
4949
5059
  margin: `16px 0px`,
4950
5060
  wordBreak: 'break-word'
4951
5061
  },
@@ -4957,7 +5067,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
4957
5067
  alignItems: 'center',
4958
5068
  justifyContent: 'center',
4959
5069
  borderRadius: '50%',
4960
- background: theme?.palette?.background?.primary
5070
+ background: theme?.colors?.background2
4961
5071
  },
4962
5072
  buttonContainerClass: {
4963
5073
  marginRight: theme.spacing.margin.regular,
@@ -4971,7 +5081,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
4971
5081
  textAlign: 'center',
4972
5082
  fontSize: theme.typography.fontSize.body,
4973
5083
  lineHeight: '22px',
4974
- color: theme?.palette?.font?.primary,
5084
+ color: theme?.colors?.gray,
4975
5085
  margin: '0',
4976
5086
  wordBreak: 'break-word'
4977
5087
  },
@@ -5057,7 +5167,7 @@ function Info({
5057
5167
  className: classes.imageContainer
5058
5168
  }, /*#__PURE__*/React.createElement(Icon, {
5059
5169
  name: dt.icon.metadata.value,
5060
- color: theme.palette.primary.main,
5170
+ color: theme?.colors?.icon,
5061
5171
  width: isMobile ? '30px' : '40px',
5062
5172
  height: isMobile ? '30px' : '40px'
5063
5173
  })), /*#__PURE__*/React.createElement("h3", {
@@ -5114,7 +5224,7 @@ const useSectionStyles$2 = createUseStyles(theme => ({
5114
5224
  padding: ({
5115
5225
  isMobile
5116
5226
  } = {}) => isMobile ? `${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
5117
- backgroundColor: theme?.palette?.background?.default,
5227
+ backgroundColor: theme?.colors?.background2,
5118
5228
  '&, & *, & *:before, & *:after': {
5119
5229
  fontFamily: theme?.typography?.fontFamily,
5120
5230
  boxSizing: 'border-box'
@@ -5131,7 +5241,7 @@ const useSectionStyles$2 = createUseStyles(theme => ({
5131
5241
  subHeading: {
5132
5242
  fontSize: theme.typography.fontSize.subHead,
5133
5243
  marginBottom: '8px',
5134
- color: theme?.palette?.font?.default,
5244
+ color: theme?.colors?.font3,
5135
5245
  wordBreak: 'break-word',
5136
5246
  textTransform: 'uppercase',
5137
5247
  letterSpacing: '3px'
@@ -5141,7 +5251,7 @@ const useSectionStyles$2 = createUseStyles(theme => ({
5141
5251
  fontWeight: theme.typography.fontWeight.bold,
5142
5252
  lineHeight: 'normal',
5143
5253
  margin: '0',
5144
- color: theme?.palette?.font?.default,
5254
+ color: theme?.colors?.font3,
5145
5255
  wordBreak: 'break-word',
5146
5256
  marginBottom: theme.spacing.margin.tiny
5147
5257
  },
@@ -5152,7 +5262,7 @@ const useSectionStyles$2 = createUseStyles(theme => ({
5152
5262
  padding: '32px 0px'
5153
5263
  },
5154
5264
  textPara: {
5155
- color: theme?.palette?.font?.primary,
5265
+ color: theme?.colors?.font3,
5156
5266
  wordBreak: 'break-word',
5157
5267
  fontSize: theme.typography.fontSize.body,
5158
5268
  lineHeight: '24px'
@@ -5459,7 +5569,7 @@ const useFaqListStyles = createUseStyles(theme => ({
5459
5569
  padding: ({
5460
5570
  isMobile
5461
5571
  } = {}) => isMobile ? `${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
5462
- backgroundColor: theme?.palette?.background?.primary,
5572
+ backgroundColor: theme?.colors?.background2,
5463
5573
  '&, & *, & *:before, & *:after': {
5464
5574
  fontFamily: theme?.typography?.fontFamily,
5465
5575
  boxSizing: 'border-box'
@@ -5474,7 +5584,7 @@ const useFaqListStyles = createUseStyles(theme => ({
5474
5584
  } = {}) => containerWidth
5475
5585
  },
5476
5586
  sectionSubheading: {
5477
- color: theme?.palette?.font.default,
5587
+ color: theme?.colors?.font3,
5478
5588
  fontSize: theme.typography.fontSize.subHead,
5479
5589
  marginBottom: '8px',
5480
5590
  wordBreak: 'break-word'
@@ -5483,15 +5593,16 @@ const useFaqListStyles = createUseStyles(theme => ({
5483
5593
  fontSize: theme.typography.fontSize.h2,
5484
5594
  fontWeight: theme.typography.fontWeight.bold,
5485
5595
  wordBreak: 'break-word',
5486
- marginBottom: `${theme.spacing.margin.tiny}px`
5596
+ marginBottom: `${theme.spacing.margin.tiny}px`,
5597
+ color: theme?.colors?.font3
5487
5598
  },
5488
5599
  container: {
5489
5600
  boxShadow: theme?.shadows?.secondary,
5490
5601
  borderRadius: '8px',
5491
- backgroundColor: theme?.palette?.background?.default
5602
+ backgroundColor: theme?.colors?.white
5492
5603
  },
5493
5604
  basicCardContainer: {
5494
- borderBottom: theme?.borders?.secondary,
5605
+ borderBottom: `1px solid ${theme?.colors?.background2}`,
5495
5606
  padding: `${theme.spacing.padding.tiny}px`
5496
5607
  },
5497
5608
  innerContainer: {
@@ -5510,14 +5621,14 @@ const useFaqListStyles = createUseStyles(theme => ({
5510
5621
  alignItems: 'center'
5511
5622
  },
5512
5623
  title: {
5513
- color: theme?.palette?.font.default,
5624
+ color: theme?.colors?.lightblack,
5514
5625
  fontSize: theme.typography.fontSize.h5,
5515
5626
  fontWeight: theme.typography.fontWeight.bold,
5516
5627
  margin: '0',
5517
5628
  wordBreak: 'break-word'
5518
5629
  },
5519
5630
  content: {
5520
- color: theme?.palette?.font.primary,
5631
+ color: theme?.colors?.lightblack,
5521
5632
  fontSize: theme.typography.fontSize.body,
5522
5633
  lineHeight: '24px',
5523
5634
  maxHeight: ({
@@ -5637,11 +5748,10 @@ var index$a = /*#__PURE__*/Object.freeze({
5637
5748
 
5638
5749
  const useTextGridStyles = createUseStyles(theme => ({
5639
5750
  section: {
5751
+ background: theme.colors.background1,
5640
5752
  padding: ({
5641
5753
  isMobile
5642
5754
  } = {}) => isMobile ? `${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
5643
- // backgroundColor: theme?.palette?.background?.primary,
5644
-
5645
5755
  '&, & *, & *:before, & *:after': {
5646
5756
  fontFamily: theme?.typography?.fontFamily,
5647
5757
  boxSizing: 'border-box'
@@ -5649,14 +5759,7 @@ const useTextGridStyles = createUseStyles(theme => ({
5649
5759
  '& h2,& h3,& p': {
5650
5760
  marginTop: '0'
5651
5761
  }
5652
- // '& h2,& h3': {
5653
- // fontWeight: '500',
5654
- // '& b,& strong': {
5655
- // fontWeight: '700'
5656
- // }
5657
- // }
5658
5762
  },
5659
-
5660
5763
  sectionContainer: {
5661
5764
  margin: '0 auto',
5662
5765
  maxWidth: ({
@@ -5664,7 +5767,7 @@ const useTextGridStyles = createUseStyles(theme => ({
5664
5767
  } = {}) => containerWidth
5665
5768
  },
5666
5769
  subheading: {
5667
- color: theme?.palette?.font.default,
5770
+ color: theme?.colors?.font1,
5668
5771
  fontSize: theme.typography.fontSize.subHead,
5669
5772
  lineHeight: '20px',
5670
5773
  letterSpacing: '3px',
@@ -5678,7 +5781,8 @@ const useTextGridStyles = createUseStyles(theme => ({
5678
5781
  fontWeight: theme.typography.fontWeight.bold,
5679
5782
  letterSpacing: '-3px',
5680
5783
  marginBottom: theme.spacing.margin.tiny,
5681
- wordBreak: 'break-word'
5784
+ wordBreak: 'break-word',
5785
+ color: theme?.colors?.font1
5682
5786
  },
5683
5787
  sliderContainer: {
5684
5788
  margin: '0 -10px'
@@ -5948,7 +6052,7 @@ const useCourseStyles = createUseStyles(theme => {
5948
6052
  display: 'flex',
5949
6053
  justifyContent: 'flex-start',
5950
6054
  alignItems: 'center',
5951
- fontSize: theme.typography.fontSize.subHead,
6055
+ fontSize: theme.typography.fontSize.body,
5952
6056
  color: theme?.palette?.font?.primary,
5953
6057
  '& img': {
5954
6058
  marginRight: '5px'
@@ -6355,11 +6459,10 @@ var index$8 = /*#__PURE__*/Object.freeze({
6355
6459
  const useTeamStyles = createUseStyles(theme => {
6356
6460
  return {
6357
6461
  teamSuperContainer: {
6462
+ background: `linear-gradient(180deg, ${theme?.colors?.background2} 50%, #FFFFFF 50%)`,
6358
6463
  padding: ({
6359
6464
  isMobile
6360
6465
  } = {}) => isMobile ? `${theme.spacing.padding.medium}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px ${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
6361
- // backgroundColor: theme?.palette?.background?.primary,
6362
-
6363
6466
  '&, & *, & *:before, & *:after': {
6364
6467
  fontFamily: theme?.typography?.fontFamily,
6365
6468
  boxSizing: 'border-box'
@@ -6380,25 +6483,17 @@ const useTeamStyles = createUseStyles(theme => {
6380
6483
  lineHeight: '20px',
6381
6484
  letterSpacing: '3px',
6382
6485
  marginBottom: '8px',
6383
- color: theme?.palette?.font?.default,
6486
+ color: theme?.colors?.font2,
6384
6487
  // wordBreak: 'break-word',
6385
6488
  position: 'relative'
6386
6489
  },
6387
- partialBackground: {
6388
- position: 'absolute',
6389
- top: '0',
6390
- left: '0',
6391
- height: '50%',
6392
- background: theme?.palette?.background?.primary,
6393
- width: '100%'
6394
- },
6395
6490
  teamTitle: {
6396
6491
  fontSize: theme.typography.fontSize.h2,
6397
6492
  fontWeight: theme.typography.fontWeight.bold,
6398
6493
  lineHeight: '70px',
6399
6494
  letterSpacing: '-3px',
6400
6495
  wordBreak: 'break-word',
6401
- color: theme?.palette?.font?.default,
6496
+ color: theme?.colors?.font2,
6402
6497
  position: 'relative'
6403
6498
  },
6404
6499
  sliderContainer: {
@@ -6490,12 +6585,10 @@ const useTeamStyles = createUseStyles(theme => {
6490
6585
  teamDetailsHeading: {
6491
6586
  fontSize: '16px',
6492
6587
  lineHeight: '24px',
6493
- margin: '0',
6494
- color: theme?.palette?.font?.body
6588
+ margin: '0'
6495
6589
  },
6496
6590
  teamDetailsSubHeading: {
6497
- marginTop: '0px',
6498
- color: theme?.palette?.font?.primary
6591
+ marginTop: '0px'
6499
6592
  }
6500
6593
  }
6501
6594
  };
@@ -6606,7 +6699,7 @@ const useSectionStyles$1 = createUseStyles(theme => ({
6606
6699
  justifyContent: 'center',
6607
6700
  flexDirection: 'column',
6608
6701
  alignItems: 'center',
6609
- backgroundColor: theme?.palette?.background?.default,
6702
+ background: `linear-gradient(180deg, ${theme?.colors?.background2} 50%, #FFFFFF 50%)`,
6610
6703
  padding: ({
6611
6704
  isMobile
6612
6705
  } = {}) => isMobile ? `${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
@@ -6628,16 +6721,16 @@ const useSectionStyles$1 = createUseStyles(theme => ({
6628
6721
  containerWidth
6629
6722
  } = {}) => containerWidth
6630
6723
  },
6631
- partialBackground: {
6632
- top: '0',
6633
- left: '0',
6634
- width: '100%',
6635
- height: '50%',
6636
- position: 'absolute',
6637
- background: theme?.palette?.background?.primary
6638
- },
6724
+ // partialBackground: {
6725
+ // top: '0',
6726
+ // left: '0',
6727
+ // width: '100%',
6728
+ // height: '50%',
6729
+ // position: 'absolute',
6730
+ // background: theme?.colors?.white
6731
+ // },
6639
6732
  sectionContainer: {
6640
- backgroundColor: theme?.palette?.background?.default,
6733
+ backgroundColor: theme?.colors?.white,
6641
6734
  boxShadow: theme?.shadows?.secondary,
6642
6735
  borderRadius: theme?.shape?.borderRadius?.regular,
6643
6736
  padding: '48px',
@@ -6646,7 +6739,7 @@ const useSectionStyles$1 = createUseStyles(theme => ({
6646
6739
  title: {
6647
6740
  margin: '0',
6648
6741
  fontSize: theme.typography.fontSize.h2,
6649
- color: theme?.palette?.font?.default,
6742
+ color: theme?.colors?.lightblack,
6650
6743
  fontWeight: theme.typography.fontWeight.bold,
6651
6744
  lineHeight: '71px',
6652
6745
  letterSpacing: '-3px',
@@ -6669,7 +6762,7 @@ const useSectionStyles$1 = createUseStyles(theme => ({
6669
6762
  subtitle: {
6670
6763
  // margin: '0 0 40px 0',
6671
6764
  fontSize: theme.typography.fontSize.h5,
6672
- color: theme?.palette?.font?.default,
6765
+ color: theme?.colors?.lightblack,
6673
6766
  lineHeight: '32px',
6674
6767
  wordBreak: 'break-word',
6675
6768
  marginBottom: '32px'
@@ -6692,7 +6785,7 @@ const useSectionStyles$1 = createUseStyles(theme => ({
6692
6785
  },
6693
6786
  addressText: {
6694
6787
  fontSize: theme.typography.fontSize.h6,
6695
- color: theme?.palette?.font?.default,
6788
+ color: theme?.colors?.lightblack,
6696
6789
  lineHeight: '24px',
6697
6790
  fontSize: '16px'
6698
6791
  },
@@ -7029,7 +7122,7 @@ const useSectionStyles = createUseStyles(theme => ({
7029
7122
  padding: ({
7030
7123
  isMobile
7031
7124
  } = {}) => isMobile ? `${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
7032
- backgroundColor: theme?.palette?.background?.default,
7125
+ background: `linear-gradient(180deg, ${theme?.colors?.background2} 50%, #FFFFFF 50%)`,
7033
7126
  '&, & *, & *:before, & *:after': {
7034
7127
  fontFamily: theme?.typography?.fontFamily,
7035
7128
  boxSizing: 'border-box'
@@ -7049,16 +7142,8 @@ const useSectionStyles = createUseStyles(theme => ({
7049
7142
  containerWidth
7050
7143
  } = {}) => containerWidth
7051
7144
  },
7052
- partialBackground: {
7053
- top: '0',
7054
- left: '0',
7055
- width: '100%',
7056
- height: '50%',
7057
- position: 'absolute',
7058
- background: theme?.palette?.background?.primary
7059
- },
7060
7145
  sectionContainer: {
7061
- backgroundColor: theme?.palette?.background?.default,
7146
+ backgroundColor: theme?.colors?.white,
7062
7147
  boxShadow: theme?.shadows?.secondary,
7063
7148
  borderRadius: theme?.shape?.borderRadius?.regular,
7064
7149
  padding: '48px',
@@ -7067,7 +7152,7 @@ const useSectionStyles = createUseStyles(theme => ({
7067
7152
  title: {
7068
7153
  margin: '0',
7069
7154
  fontSize: theme.typography.fontSize.h2,
7070
- color: theme?.palette?.font?.default,
7155
+ color: theme?.colors?.lightblack?.default,
7071
7156
  lineHeight: '71px',
7072
7157
  letterSpacing: '-3px',
7073
7158
  textAlign: 'left',
@@ -7092,7 +7177,7 @@ const useSectionStyles = createUseStyles(theme => ({
7092
7177
  subtitle: {
7093
7178
  // margin: '0 0 auto 0',
7094
7179
  fontSize: theme.typography.fontSize.h6,
7095
- color: theme?.palette?.font?.default,
7180
+ color: theme?.colors?.lightblack,
7096
7181
  // lineHeight: '32px',
7097
7182
  // margin: '16px 0',
7098
7183
  textAlign: 'center',
@@ -7123,8 +7208,8 @@ const useSectionStyles = createUseStyles(theme => ({
7123
7208
  inputField: {
7124
7209
  width: '100%',
7125
7210
  // maxWidth: '314px',
7126
- background: theme?.palette?.background?.default,
7127
- border: `1px solid ${theme?.palette?.border?.secondary}`,
7211
+ // background: theme?.palette?.background?.default,
7212
+ border: `1px solid ${theme?.colors?.cta}`,
7128
7213
  borderRadius: theme?.shape?.borderRadius?.regular,
7129
7214
  // padding: '14px 12px',
7130
7215
  display: 'flex',
@@ -7137,7 +7222,7 @@ const useSectionStyles = createUseStyles(theme => ({
7137
7222
  fontWeight: '400',
7138
7223
  fontSize: theme.typography.fontSize.subHead,
7139
7224
  lineHeight: '20px',
7140
- color: theme?.palette?.font?.primary,
7225
+ color: theme?.colors?.lightblack,
7141
7226
  fontFamily: theme?.typography?.fontFamily
7142
7227
  },
7143
7228
  '&:focus': {
@@ -7450,6 +7535,7 @@ const useWebinarPromotionPage = createUseStyles(theme => {
7450
7535
  webinarSuperContainer: {
7451
7536
  display: 'flex',
7452
7537
  justifyContent: 'center',
7538
+ background: theme.colors.background1,
7453
7539
  padding: ({
7454
7540
  isMobile
7455
7541
  } = {}) => isMobile ? `${theme.spacing.padding.medium}px ${theme.spacing.padding.regular}px` : `${theme.spacing.padding.regular}px ${theme.spacing.padding.medium}px`,
@@ -7472,30 +7558,6 @@ const useWebinarPromotionPage = createUseStyles(theme => {
7472
7558
  maxWidth: '1440px',
7473
7559
  fontFamily: theme?.typography?.fontFamily
7474
7560
  },
7475
- // videoTestimonialHeading: {
7476
- // fontSize: theme.typography.fontSize.subHead,
7477
- // lineHeight: '20px',
7478
- // letterSpacing: '3px',
7479
- // textTransform: 'uppercase',
7480
- // color: theme.palette.font.tertiary,
7481
- // wordBreak: 'break-word',
7482
- // fontWeight: theme.typography.fontWeight.bold,
7483
- // },
7484
-
7485
- // videoTestimonialTitle: {
7486
- // fontSize: theme.typography.fontSize.h2,
7487
- // lineHeight: '71px',
7488
- // fontWeight: theme.typography.fontWeight.bold,
7489
- // letterSpacing: '-3px',
7490
- // margin: '0',
7491
- // color: theme.palette.font.default,
7492
- // wordBreak: 'break-word'
7493
- // },
7494
-
7495
- // videoCarouselContainer: {
7496
- // marginTop: '16px'
7497
- // },
7498
-
7499
7561
  webinarCarousel: {
7500
7562
  display: 'flex',
7501
7563
  justifyContent: 'flex-start',
@@ -7524,7 +7586,7 @@ const useWebinarPromotionPage = createUseStyles(theme => {
7524
7586
  },
7525
7587
  offerText: {
7526
7588
  textAlign: 'center',
7527
- color: theme.palette.font.primary,
7589
+ color: theme?.colors?.font1,
7528
7590
  marginBottom: '5%'
7529
7591
  },
7530
7592
  offerPrice: {
@@ -7571,7 +7633,7 @@ const useWebinarPromotionPage = createUseStyles(theme => {
7571
7633
  margin: '0',
7572
7634
  letterSpacing: '-1px',
7573
7635
  wordBreak: wordBreakValue => wordBreakValue || 'break-word',
7574
- color: theme.palette.font.default
7636
+ color: theme?.colors?.font1
7575
7637
  },
7576
7638
  courseViewContainer: {
7577
7639
  width: '645px',
@@ -7586,7 +7648,7 @@ const useWebinarPromotionPage = createUseStyles(theme => {
7586
7648
  bannerContainer: {
7587
7649
  width: '100%',
7588
7650
  background: '#EB5757',
7589
- color: '#fff',
7651
+ color: theme?.colors?.font1,
7590
7652
  textAlign: 'center',
7591
7653
  padding: '10px 10px 23px 40px',
7592
7654
  wordWrap: 'break-word',
@@ -7605,24 +7667,26 @@ const useWebinarPromotionPage = createUseStyles(theme => {
7605
7667
  display: 'flex',
7606
7668
  alignItems: 'center',
7607
7669
  marginRight: '20px',
7670
+ color: theme?.colors?.font1,
7608
7671
  '& div': {
7609
- fontSize: theme.typography.fontSize.subHead,
7672
+ fontSize: theme.typography.fontSize.body,
7610
7673
  marginLeft: '10px'
7611
7674
  }
7612
7675
  },
7613
7676
  courseDetailContent: {
7614
- fontSize: theme.typography.fontSize.subHead,
7677
+ fontSize: theme.typography.fontSize.body,
7678
+ lineHeight: '21px',
7615
7679
  wordBreak: 'break-word',
7616
- color: theme.palette.font.primary,
7680
+ color: theme?.colors?.font1,
7617
7681
  whiteSpace: 'pre-wrap',
7618
7682
  width: '80%'
7619
7683
  },
7620
7684
  courseDetailViewFullDetails: {
7621
7685
  cursor: 'pointer',
7622
- fontSize: theme.typography.fontSize.subHead,
7686
+ fontSize: theme.typography.fontSize.body,
7623
7687
  lineHeight: '24px',
7688
+ color: theme?.colors?.font1,
7624
7689
  marginTop: '-20px',
7625
- color: '#00ADE7',
7626
7690
  wordBreak: 'break-word'
7627
7691
  },
7628
7692
  courseDetailTime: {
@@ -7829,13 +7893,13 @@ const SingleVideoSlide$1 = props => {
7829
7893
  className: classes.iconBackground
7830
7894
  }, /*#__PURE__*/React.createElement(Icon, {
7831
7895
  name: 'Calendar',
7832
- color: theme.palette.primary.main
7896
+ color: theme?.colors?.icon
7833
7897
  })), /*#__PURE__*/React.createElement("div", null, moment(data.startDate).locale(momentLocale).format('Do MMM YY') + ' ', moment(data.startTime).locale(momentLocale).format('h:mm A'), /*#__PURE__*/React.createElement("span", null, " - "), moment(data.endTime).locale(momentLocale).format('h:mm A'))), /*#__PURE__*/React.createElement("div", {
7834
7898
  className: classes.courseDetailTag
7835
7899
  }, /*#__PURE__*/React.createElement("span", {
7836
7900
  className: classes.iconBackground
7837
7901
  }, /*#__PURE__*/React.createElement(Icon, {
7838
- color: theme.palette.primary.main,
7902
+ color: theme?.colors?.icon,
7839
7903
  width: "20px",
7840
7904
  name: `${data.webinarLocation === 'Location' ? 'Location' : 'Video'}`
7841
7905
  })), /*#__PURE__*/React.createElement("div", null, data.webinarLocation === 'Location' ? data.webinarLink : data.webinarLocation))), /*#__PURE__*/React.createElement("p", {
@@ -7943,13 +8007,15 @@ var index$4 = /*#__PURE__*/Object.freeze({
7943
8007
  });
7944
8008
 
7945
8009
  const useCoursePromotionPage = createUseStyles(theme => {
8010
+ console.log(theme, 'themere');
7946
8011
  return {
7947
8012
  courseSuperContainer: {
7948
8013
  display: 'flex',
7949
8014
  justifyContent: 'center',
8015
+ background: theme?.colors?.background1,
7950
8016
  padding: ({
7951
8017
  isMobile
7952
- } = {}) => isMobile ? `${theme.spacing.padding.medium}px ${theme.spacing.padding.regular}px` : `${theme.spacing.padding.regular}px ${theme.spacing.padding.medium}px`,
8018
+ } = {}) => isMobile ? `${theme.spacing.padding.small}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.regular}px ${theme.spacing.padding.medium}px`,
7953
8019
  '&, & *, & *:before, & *:after': {
7954
8020
  fontFamily: theme?.typography?.fontFamily,
7955
8021
  boxSizing: 'border-box'
@@ -8059,7 +8125,7 @@ const useCoursePromotionPage = createUseStyles(theme => {
8059
8125
  display: 'flex',
8060
8126
  flexDirection: 'column',
8061
8127
  alignItems: 'flex-start',
8062
- gap: '20px'
8128
+ gap: '0px'
8063
8129
  },
8064
8130
  videoDetailsHeading: {
8065
8131
  fontSize: theme.typography.fontSize.h3,
@@ -8067,7 +8133,7 @@ const useCoursePromotionPage = createUseStyles(theme => {
8067
8133
  margin: '0',
8068
8134
  letterSpacing: '-1px',
8069
8135
  wordBreak: 'break-word',
8070
- color: theme.palette.font.default
8136
+ color: theme?.colors?.font1
8071
8137
  },
8072
8138
  courseViewContainer: {
8073
8139
  width: '445px',
@@ -8083,7 +8149,7 @@ const useCoursePromotionPage = createUseStyles(theme => {
8083
8149
  bannerContainer: {
8084
8150
  width: '100%',
8085
8151
  background: '#EB5757',
8086
- color: '#fff',
8152
+ color: theme?.colors.font1,
8087
8153
  textAlign: 'center',
8088
8154
  padding: '10px 10px 23px 40px',
8089
8155
  wordWrap: 'break-word',
@@ -8122,26 +8188,27 @@ const useCoursePromotionPage = createUseStyles(theme => {
8122
8188
  alignItems: 'center',
8123
8189
  marginRight: '20px',
8124
8190
  '& div': {
8125
- fontSize: theme.typography.fontSize.subHead,
8191
+ fontSize: theme.typography.fontSize.body,
8126
8192
  fontWeight: theme.typography.fontWeight.semiBold,
8127
8193
  marginLeft: '10px'
8128
8194
  }
8129
8195
  },
8130
8196
  courseDetailContent: {
8131
- // marginTop: '16px',
8132
- fontSize: theme.typography.fontSize.subHead,
8133
- lineHeight: '24px',
8197
+ marginTop: '20px',
8198
+ fontSize: theme.typography.fontSize.body,
8199
+ lineHeight: '21px',
8134
8200
  wordBreak: 'break-word',
8135
- color: theme.palette.font.primary,
8201
+ color: theme?.colors?.font1,
8136
8202
  whiteSpace: 'pre-wrap',
8137
8203
  margin: '10px 0 20px'
8138
8204
  },
8139
8205
  courseDetailViewFullDetails: {
8140
8206
  cursor: 'pointer',
8141
- fontSize: theme.typography.fontSize.subHead,
8142
- lineHeight: '24px',
8143
- marginTop: '-24px',
8144
- color: '#00ADE7',
8207
+ fontSize: theme.typography.fontSize.body,
8208
+ textDecoration: 'underline',
8209
+ lineHeight: '21px',
8210
+ marginTop: '20px',
8211
+ color: theme.colors?.font1,
8145
8212
  wordBreak: 'break-word'
8146
8213
  },
8147
8214
  courseDetailTime: {
@@ -8212,7 +8279,8 @@ const useCoursePromotionPage = createUseStyles(theme => {
8212
8279
  // fontSize: '20px',
8213
8280
  fontWeight: '600',
8214
8281
  lineHeight: 'normal',
8215
- letterSpacing: '0px'
8282
+ letterSpacing: '0px',
8283
+ color: theme?.colors?.font1
8216
8284
  },
8217
8285
  videoTestimonialTitle: {
8218
8286
  // fontSize: '24px',
@@ -8529,7 +8597,7 @@ const useFormPageStyles = createUseStyles(theme => ({
8529
8597
  padding: ({
8530
8598
  isMobile
8531
8599
  } = {}) => isMobile ? `${theme.spacing.padding.medium}px ${theme.spacing.padding.regular}px` : `${theme.spacing.padding.regular}px ${theme.spacing.padding.medium}px`,
8532
- background: '#F4F9FF',
8600
+ background: theme?.colors?.background3,
8533
8601
  '&, & *, & *:before, & *:after': {
8534
8602
  fontFamily: theme?.typography?.fontFamily,
8535
8603
  boxSizing: 'border-box'
@@ -8546,7 +8614,7 @@ const useFormPageStyles = createUseStyles(theme => ({
8546
8614
  marginTop: '8px',
8547
8615
  fontSize: theme.typography.fontSize.h6,
8548
8616
  lineHeight: '23px',
8549
- color: 'rgba(51, 51, 51, 0.5)',
8617
+ color: theme?.colors?.gray,
8550
8618
  marginBottom: theme.spacing.margin.tiny
8551
8619
  },
8552
8620
  formPageFormContainer: {
@@ -8565,8 +8633,8 @@ const useFormPageStyles = createUseStyles(theme => ({
8565
8633
  },
8566
8634
 
8567
8635
  inputFieldLabel: {
8568
- color: '#333',
8569
- fontSize: theme.typography.fontSize.subHead,
8636
+ color: theme?.colors?.lightblack,
8637
+ fontSize: theme.typography.fontSize.body,
8570
8638
  fontWeight: theme.typography.fontWeight.semiBold,
8571
8639
  display: 'block',
8572
8640
  marginTop: '20px',
@@ -8577,8 +8645,8 @@ const useFormPageStyles = createUseStyles(theme => ({
8577
8645
  borderRadius: '8px',
8578
8646
  border: '1px solid #D8E0F0',
8579
8647
  padding: '12px 16px',
8580
- color: '#7D8592',
8581
- fontSize: theme.typography.fontSize.subHead
8648
+ color: theme?.colors?.lightblack,
8649
+ fontSize: theme.typography.fontSize.body
8582
8650
  },
8583
8651
  checkboxField: {
8584
8652
  // padding: '20px',
@@ -8586,21 +8654,21 @@ const useFormPageStyles = createUseStyles(theme => ({
8586
8654
  // borderRadius: '8px'
8587
8655
  },
8588
8656
  checkBoxFieldLabel: {
8589
- color: '#333',
8590
- fontSize: theme.typography.fontSize.subHead,
8657
+ color: theme?.colors?.lightblack,
8658
+ fontSize: theme.typography.fontSize.body,
8591
8659
  fontWeight: theme.typography.fontWeight.semiBold,
8592
8660
  marginTop: '20px',
8593
8661
  marginBottom: '12px'
8594
8662
  },
8595
8663
  inputFieldRequired: {
8596
- color: '#F41828'
8664
+ color: theme?.colors?.lightblack
8597
8665
  },
8598
8666
  checkboxFieldControl: {
8599
8667
  padding: '8px 0',
8600
8668
  '& label': {
8601
- fontSize: theme.typography.fontSize.subHead,
8669
+ fontSize: theme.typography.fontSize.body,
8602
8670
  marginLeft: '10px',
8603
- color: '#7D8592'
8671
+ color: theme?.colors?.lightblack
8604
8672
  }
8605
8673
  },
8606
8674
  submitBtnContainer: {
@@ -8613,8 +8681,7 @@ const useFormPageStyles = createUseStyles(theme => ({
8613
8681
  '& button': {
8614
8682
  // height: '44px',
8615
8683
  padding: '16px 24px',
8616
- color: '#FFFFFF',
8617
- fontSize: theme.typography.fontSize.subHead,
8684
+ fontSize: theme.typography.fontSize.body,
8618
8685
  cursor: 'pointer',
8619
8686
  borderRadius: '8px'
8620
8687
  }
@@ -9622,7 +9689,7 @@ function PageRenderer({
9622
9689
  countryCode,
9623
9690
  currencySymbol
9624
9691
  }), [isMobile, isLandingPages, layout, baseURLs, hashToken, isPreview, isEdit, templateId, navList, isMasterTemplate, basePath, validations, isTutorWebsite, extraProps, hideLogin, _id, countryCode, currencySymbol]);
9625
- const theme = useMemo(() => getTheme(color, font, context.isMobile), [color, font, context.isMobile]);
9692
+ const theme = useMemo(() => generateTheme(color, font, context.isMobile), [color, font, context.isMobile]);
9626
9693
  const Wrapper = SectionWrapper || Fragment;
9627
9694
  return /*#__PURE__*/React.createElement(ThemeProvider, {
9628
9695
  theme: theme