@webpros/mui-theme 0.1.6 → 0.3.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/dist/package.json +21 -11
- package/dist/src/components/data-display/Avatar/Avatar.theme.js +11 -8
- package/dist/src/components/data-display/Badge/Badge.theme.d.ts +4 -1
- package/dist/src/components/data-display/Badge/Badge.theme.js +216 -55
- package/dist/src/components/data-display/Chip/Chip.theme.d.ts +17 -3
- package/dist/src/components/data-display/Chip/Chip.theme.js +133 -477
- package/dist/src/components/data-display/Chip/get-chip-colors-map.d.ts +42 -0
- package/dist/src/components/data-display/Chip/get-chip-colors-map.js +253 -0
- package/dist/src/components/data-display/Divider/Divider.theme.d.ts +6 -1
- package/dist/src/components/data-display/Divider/Divider.theme.js +60 -3
- package/dist/src/components/data-display/List/List.theme.d.ts +1 -1
- package/dist/src/components/data-display/List/List.theme.js +1 -1
- package/dist/src/components/data-display/ListItem/ListItem.theme.d.ts +1 -1
- package/dist/src/components/data-display/ListItem/ListItem.theme.js +16 -8
- package/dist/src/components/data-display/ListItemAvatar/ListItemAvatar.theme.js +1 -2
- package/dist/src/components/data-display/ListItemButton/ListItemButton.theme.d.ts +0 -5
- package/dist/src/components/data-display/ListItemButton/ListItemButton.theme.js +14 -48
- package/dist/src/components/data-display/ListItemIcon/ListItemIcon.theme.js +4 -4
- package/dist/src/components/data-display/ListSubheader/ListSubheader.theme.d.ts +1 -1
- package/dist/src/components/data-display/ListSubheader/ListSubheader.theme.js +2 -5
- package/dist/src/components/data-display/Skeleton/Skeleton.d.ts +3 -0
- package/dist/src/components/data-display/Skeleton/Skeleton.js +4 -0
- package/dist/src/components/data-display/Skeleton/Skeleton.theme.d.ts +15 -0
- package/dist/src/components/data-display/Skeleton/Skeleton.theme.js +31 -0
- package/dist/src/components/data-display/Skeleton/index.d.ts +1 -0
- package/dist/src/components/data-display/Skeleton/index.js +2 -0
- package/dist/src/components/data-display/Tooltip/Tooltip.theme.js +7 -9
- package/dist/src/components/data-display/Typography/Typography.theme.d.ts +19 -26
- package/dist/src/components/data-display/Typography/Typography.theme.js +7 -163
- package/dist/src/components/feedback/Alert/Alert.theme.d.ts +12 -0
- package/dist/src/components/feedback/Alert/Alert.theme.js +61 -45
- package/dist/src/components/feedback/CircularProgress/CircularProgress.theme.d.ts +6 -1
- package/dist/src/components/feedback/CircularProgress/CircularProgress.theme.js +49 -8
- package/dist/src/components/feedback/Dialog/Dialog.theme.d.ts +5 -0
- package/dist/src/components/feedback/Dialog/Dialog.theme.js +43 -14
- package/dist/src/components/feedback/LinearProgress/LinearProgress.theme.d.ts +6 -1
- package/dist/src/components/feedback/LinearProgress/LinearProgress.theme.js +91 -9
- package/dist/src/components/feedback/Snackbar/Snackbar.theme.d.ts +4 -4
- package/dist/src/components/feedback/Snackbar/Snackbar.theme.js +11 -3
- package/dist/src/components/index.d.ts +10 -1
- package/dist/src/components/index.js +10 -1
- package/dist/src/components/inputs/Autocomplete/Autocomplete.theme.d.ts +1 -1
- package/dist/src/components/inputs/Autocomplete/Autocomplete.theme.js +23 -51
- package/dist/src/components/inputs/Autocomplete/components/AutocompleteCaretDownIcon.d.ts +1 -0
- package/dist/src/components/inputs/Autocomplete/components/{AutocompletePopupIcon.js → AutocompleteCaretDownIcon.js} +1 -1
- package/dist/src/components/inputs/Autocomplete/components/AutocompleteXIcon.d.ts +1 -0
- package/dist/src/components/inputs/Autocomplete/components/AutocompleteXIcon.js +4 -0
- package/dist/src/components/inputs/Button/Button.theme.d.ts +4 -0
- package/dist/src/components/inputs/Button/Button.theme.js +93 -226
- package/dist/src/components/inputs/Button/get-button-colors-map.d.ts +24 -0
- package/dist/src/components/inputs/Button/get-button-colors-map.js +211 -0
- package/dist/src/components/inputs/Checkbox/Checkbox.theme.d.ts +7 -2
- package/dist/src/components/inputs/Checkbox/Checkbox.theme.js +57 -7
- package/dist/src/components/inputs/Fab/Fab.theme.d.ts +5 -9
- package/dist/src/components/inputs/Fab/Fab.theme.js +27 -98
- package/dist/src/components/inputs/FormHelperText/FormHelperText.d.ts +2 -0
- package/dist/src/components/inputs/FormHelperText/FormHelperText.js +3 -0
- package/dist/src/components/inputs/FormHelperText/FormHelperText.theme.d.ts +7 -0
- package/dist/src/components/inputs/FormHelperText/FormHelperText.theme.js +8 -0
- package/dist/src/components/inputs/FormHelperText/index.d.ts +1 -0
- package/dist/src/components/inputs/FormHelperText/index.js +2 -0
- package/dist/src/components/inputs/FormLabel/FormLabel.d.ts +2 -0
- package/dist/src/components/inputs/FormLabel/FormLabel.js +3 -0
- package/dist/src/components/inputs/FormLabel/FormLabel.theme.d.ts +7 -0
- package/dist/src/components/inputs/FormLabel/FormLabel.theme.js +8 -0
- package/dist/src/components/inputs/FormLabel/index.d.ts +1 -0
- package/dist/src/components/inputs/FormLabel/index.js +2 -0
- package/dist/src/components/inputs/IconButton/IconButton.theme.d.ts +3 -2
- package/dist/src/components/inputs/IconButton/IconButton.theme.js +90 -95
- package/dist/src/components/inputs/InputBase/InputBase.theme.d.ts +9 -26
- package/dist/src/components/inputs/InputBase/InputBase.theme.js +2 -64
- package/dist/src/components/inputs/InputLabel/InputLabel.theme.d.ts +7 -4
- package/dist/src/components/inputs/InputLabel/InputLabel.theme.js +26 -12
- package/dist/src/components/inputs/OutlinedInput/OutlinedInput.theme.d.ts +8 -0
- package/dist/src/components/inputs/OutlinedInput/OutlinedInput.theme.js +67 -0
- package/dist/src/components/inputs/OutlinedInput/index.d.ts +1 -0
- package/dist/src/components/inputs/OutlinedInput/index.js +2 -0
- package/dist/src/components/inputs/Radio/Radio.d.ts +4 -0
- package/dist/src/components/inputs/Radio/Radio.js +4 -0
- package/dist/src/components/inputs/Radio/Radio.theme.d.ts +11 -0
- package/dist/src/components/inputs/Radio/Radio.theme.js +35 -0
- package/dist/src/components/inputs/Radio/index.d.ts +1 -0
- package/dist/src/components/{navigation/TabList → inputs/Radio}/index.js +1 -1
- package/dist/src/components/inputs/Select/Select.theme.d.ts +2 -3
- package/dist/src/components/inputs/Select/Select.theme.js +6 -33
- package/dist/src/components/inputs/Switch/Switch.theme.js +125 -49
- package/dist/src/components/inputs/TextField/TextField.theme.d.ts +2 -3
- package/dist/src/components/inputs/TextField/TextField.theme.js +2 -26
- package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.d.ts +4 -0
- package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.js +5 -0
- package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.theme.d.ts +11 -0
- package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.theme.js +23 -0
- package/dist/src/components/navigation/Breadcrumbs/Crumb.d.ts +10 -0
- package/dist/src/components/navigation/Breadcrumbs/Crumb.js +10 -0
- package/dist/src/components/navigation/Breadcrumbs/index.d.ts +1 -0
- package/dist/src/components/navigation/Breadcrumbs/index.js +2 -0
- package/dist/src/components/navigation/Drawer/Drawer.theme.d.ts +1 -1
- package/dist/src/components/navigation/Drawer/Drawer.theme.js +50 -6
- package/dist/src/components/navigation/Link/Link.theme.d.ts +11 -2
- package/dist/src/components/navigation/Link/Link.theme.js +66 -9
- package/dist/src/components/navigation/Menu/Menu.theme.d.ts +2 -3
- package/dist/src/components/navigation/Menu/Menu.theme.js +6 -11
- package/dist/src/components/navigation/MenuItem/MenuItem.theme.d.ts +2 -4
- package/dist/src/components/navigation/MenuItem/MenuItem.theme.js +8 -8
- package/dist/src/components/navigation/Pagination/Pagination.theme.d.ts +1 -1
- package/dist/src/components/navigation/Pagination/Pagination.theme.js +11 -3
- package/dist/src/components/navigation/PaginationItem/PaginationItem.theme.js +65 -10
- package/dist/src/components/navigation/PaginationItem/components/PaginationIcons.d.ts +4 -0
- package/dist/src/components/navigation/PaginationItem/components/PaginationIcons.js +8 -0
- package/dist/src/components/navigation/PaginationItem/components/index.d.ts +1 -0
- package/dist/src/components/navigation/PaginationItem/components/index.js +2 -0
- package/dist/src/components/navigation/Tab/Tab.theme.d.ts +7 -1
- package/dist/src/components/navigation/Tab/Tab.theme.js +52 -13
- package/dist/src/components/navigation/Tabs/Tabs.d.ts +3 -0
- package/dist/src/components/navigation/Tabs/Tabs.js +4 -0
- package/dist/src/components/navigation/Tabs/Tabs.theme.d.ts +16 -0
- package/dist/src/components/navigation/Tabs/Tabs.theme.js +55 -0
- package/dist/src/components/navigation/Tabs/index.d.ts +1 -0
- package/dist/src/components/navigation/Tabs/index.js +2 -0
- package/dist/src/components/surfaces/Accordion/Accordion.theme.js +54 -22
- package/dist/src/components/surfaces/Accordion/AccordionDetails.theme.d.ts +10 -0
- package/dist/src/components/surfaces/Accordion/AccordionDetails.theme.js +19 -0
- package/dist/src/components/surfaces/Accordion/AccordionSummary.theme.d.ts +10 -0
- package/dist/src/components/surfaces/Accordion/AccordionSummary.theme.js +37 -0
- package/dist/src/components/surfaces/Accordion/index.d.ts +2 -0
- package/dist/src/components/surfaces/Accordion/index.js +2 -0
- package/dist/src/components/surfaces/Card/Card.theme.js +1 -1
- package/dist/src/components/surfaces/Paper/Paper.theme.d.ts +16 -1
- package/dist/src/components/surfaces/Paper/Paper.theme.js +21 -7
- package/dist/src/components/surfaces/Paper/Paper.tokens.d.ts +8 -0
- package/dist/src/components/surfaces/Paper/Paper.tokens.js +50 -0
- package/dist/src/components/surfaces/Paper/Paper.variants.d.ts +4 -0
- package/dist/src/components/surfaces/Paper/Paper.variants.js +3 -0
- package/dist/src/components/surfaces/Popover/Popover.d.ts +4 -0
- package/dist/src/components/surfaces/Popover/Popover.js +4 -0
- package/dist/src/components/surfaces/Popover/Popover.theme.d.ts +9 -0
- package/dist/src/components/surfaces/Popover/Popover.theme.js +14 -0
- package/dist/src/components/surfaces/Popover/index.d.ts +1 -0
- package/dist/src/components/surfaces/Popover/index.js +2 -0
- package/dist/src/components/utils/Backdrop/Backdrop.d.ts +3 -0
- package/dist/src/components/utils/Backdrop/Backdrop.js +4 -0
- package/dist/src/components/utils/Backdrop/Backdrop.theme.d.ts +11 -0
- package/dist/src/components/utils/Backdrop/Backdrop.theme.js +17 -0
- package/dist/src/components/utils/Backdrop/index.d.ts +1 -0
- package/dist/src/components/utils/Backdrop/index.js +2 -0
- package/dist/src/icons/index.d.ts +4 -0
- package/dist/src/icons/index.js +12 -0
- package/dist/src/providers/ThemeModeProvider.d.ts +1 -2
- package/dist/src/providers/ThemeModeProvider.js +2 -2
- package/dist/src/providers/WebProsMuiThemeProvider.js +1 -1
- package/dist/src/providers/WebProsTheme.d.ts +1 -0
- package/dist/src/providers/WebProsTheme.js +11 -5
- package/dist/src/shared/rippleEnterKeyframe.d.ts +6 -0
- package/dist/src/shared/rippleEnterKeyframe.js +12 -0
- package/dist/src/shared/viewContext/index.d.ts +1 -0
- package/dist/src/shared/viewContext/index.js +2 -0
- package/dist/src/shared/viewContext/viewContext.d.ts +4 -0
- package/dist/src/shared/viewContext/viewContext.js +2 -0
- package/dist/src/style/additional-color-palette.d.ts +1 -3
- package/dist/src/style/additional-color-palette.js +4 -7
- package/dist/src/style/custom-color-palette.js +51 -53
- package/dist/src/tokens/ThemeColorTokens.d.ts +11 -93
- package/dist/src/tokens/ThemeColorTokens.js +4 -168
- package/dist/src/tokens/ThemeScheme.d.ts +0 -3
- package/dist/src/tokens/ThemeScheme.js +0 -2
- package/dist/src/tokens/colors/Dark.d.ts +16 -0
- package/dist/src/tokens/colors/Dark.js +1422 -0
- package/dist/src/tokens/colors/Light.d.ts +16 -0
- package/dist/src/tokens/colors/Light.js +1392 -0
- package/dist/src/tokens/colors/index.d.ts +7 -0
- package/dist/src/tokens/colors/index.js +4 -0
- package/dist/src/tokens/colors/inverseSchemas.d.ts +40 -0
- package/dist/src/tokens/colors/inverseSchemas.js +3 -0
- package/dist/src/tokens/colors/inverseSchemes.d.ts +53 -0
- package/dist/src/tokens/colors/inverseSchemes.js +3 -0
- package/dist/src/tokens/colors/inverseStateLayers.d.ts +188 -0
- package/dist/src/tokens/colors/inverseStateLayers.js +3 -0
- package/dist/src/tokens/colors/schemas.d.ts +111 -0
- package/dist/src/tokens/colors/schemas.js +3 -0
- package/dist/src/tokens/colors/schemes.d.ts +111 -0
- package/dist/src/tokens/colors/schemes.js +3 -0
- package/dist/src/tokens/colors/stateLayers.d.ts +456 -0
- package/dist/src/tokens/colors/stateLayers.js +3 -0
- package/dist/src/tokens/colors/types.d.ts +9 -0
- package/dist/src/tokens/colors/types.js +2 -0
- package/dist/src/tokens/index.d.ts +6 -2
- package/dist/src/tokens/index.js +2 -1
- package/dist/src/tokens/legacyColors/LegacyDark.d.ts +2 -0
- package/dist/src/tokens/legacyColors/LegacyDark.js +88 -0
- package/dist/src/tokens/legacyColors/LegacyLight.d.ts +2 -0
- package/dist/src/tokens/legacyColors/LegacyLight.js +86 -0
- package/dist/src/tokens/legacyColors/ThemeColorTokensLegacy.d.ts +74 -0
- package/dist/src/tokens/legacyColors/ThemeColorTokensLegacy.js +2 -0
- package/dist/src/tokens/legacyColors/additionalColors/additionalColors.d.ts +21 -0
- package/dist/src/tokens/legacyColors/additionalColors/additionalColors.js +2 -0
- package/dist/src/tokens/{additionalColors → legacyColors/additionalColors}/index.d.ts +1 -0
- package/dist/src/tokens/{additionalColors → legacyColors/additionalColors}/index.js +1 -0
- package/dist/src/tokens/legacyColors/index.d.ts +2 -0
- package/dist/src/tokens/legacyColors/index.js +3 -0
- package/dist/src/tokens/shadows/index.d.ts +12 -0
- package/dist/src/tokens/shadows/index.js +112 -0
- package/dist/src/tokens/typography/index.d.ts +2 -0
- package/dist/src/tokens/typography/index.js +4 -0
- package/dist/src/tokens/typography/typescale.d.ts +28 -0
- package/dist/src/tokens/typography/typescale.js +26 -0
- package/dist/src/tokens/typography/typography.d.ts +2 -0
- package/dist/src/tokens/typography/typography.js +156 -0
- package/dist/src/utils/createIcon.d.ts +12 -0
- package/dist/src/utils/createIcon.js +94 -0
- package/dist/src/utils/flatten.d.ts +1 -0
- package/dist/src/utils/flatten.js +12 -0
- package/dist/src/utils/getMUIComponents.js +2 -2
- package/dist/src/utils/getMUIPalette.d.ts +6 -11
- package/dist/src/utils/getMUIPalette.js +49 -25
- package/dist/src/utils/getMUIThemeCustoimzationType.d.ts +31 -0
- package/dist/src/utils/getMUIThemeCustoimzationType.js +2 -0
- package/dist/src/utils/getMUITypography.d.ts +2 -0
- package/dist/src/utils/getMUITypography.js +5 -0
- package/dist/src/utils/getStateLayerColor.d.ts +37 -0
- package/dist/src/utils/getStateLayerColor.js +43 -1
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/index.js +1 -1
- package/dist/src/utils/patchMUIShadows.js +4 -3
- package/package.json +21 -11
- package/dist/src/components/inputs/Autocomplete/components/AutocompletePopupIcon.d.ts +0 -1
- package/dist/src/components/navigation/PaginationItem/PaginationItem.d.ts +0 -3
- package/dist/src/components/navigation/PaginationItem/PaginationItem.js +0 -4
- package/dist/src/components/navigation/TabList/TabList.d.ts +0 -3
- package/dist/src/components/navigation/TabList/TabList.js +0 -4
- package/dist/src/components/navigation/TabList/TabList.theme.d.ts +0 -10
- package/dist/src/components/navigation/TabList/TabList.theme.js +0 -17
- package/dist/src/components/navigation/TabList/index.d.ts +0 -1
- package/dist/src/hooks/useTonalPalette.d.ts +0 -3
- package/dist/src/hooks/useTonalPalette.js +0 -32
- package/dist/src/providers/ThemeSchemeProvider.d.ts +0 -12
- package/dist/src/providers/ThemeSchemeProvider.js +0 -29
- package/dist/src/tokens/TonalPalette.d.ts +0 -10
- package/dist/src/tokens/TonalPalette.js +0 -10
- package/dist/src/utils/generateTokens.d.ts +0 -4
- package/dist/src/utils/generateTokens.js +0 -107
- /package/dist/src/tokens/{Tone.d.ts → legacyColors/Tone.d.ts} +0 -0
- /package/dist/src/tokens/{Tone.js → legacyColors/Tone.js} +0 -0
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
2
|
-
import { argbFromHex, hexFromArgb, themeFromSourceColor } from '@material/material-color-utilities';
|
|
3
|
-
import { additionalColors } from '../tokens/additionalColors';
|
|
4
|
-
/* eslint-disable @typescript-eslint/no-non-null-assertion -- We are sure that Color palette has all possible levels */
|
|
5
|
-
const getColorToken = (themeMode, palette, lightLevel, darkLevel) => palette[themeMode === 'light' ? lightLevel : darkLevel];
|
|
6
|
-
// Generating of colors is not supported for now - we just use ThemeColorTokens
|
|
7
|
-
export const generateDesignTokens = (themeMode, tonalPalette) => {
|
|
8
|
-
const { primary, secondary, tertiary, neutral, neutralVariant, error } = tonalPalette;
|
|
9
|
-
const { customColors: customStateColors } = themeFromSourceColor(argbFromHex(tonalPalette.primary[40]), [
|
|
10
|
-
{
|
|
11
|
-
name: 'info',
|
|
12
|
-
value: argbFromHex('#0288d1'),
|
|
13
|
-
blend: true,
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
name: 'success',
|
|
17
|
-
value: argbFromHex('#2e7d32'),
|
|
18
|
-
blend: true,
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
name: 'warning',
|
|
22
|
-
value: argbFromHex('#f59e0b'),
|
|
23
|
-
blend: true,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
name: 'supportive',
|
|
27
|
-
value: argbFromHex('#546E7A'),
|
|
28
|
-
blend: true,
|
|
29
|
-
},
|
|
30
|
-
]);
|
|
31
|
-
return {
|
|
32
|
-
primary: getColorToken(themeMode, primary, 40, 80),
|
|
33
|
-
onPrimary: getColorToken(themeMode, primary, 100, 20),
|
|
34
|
-
primaryContainer: getColorToken(themeMode, primary, 90, 30),
|
|
35
|
-
onPrimaryContainer: getColorToken(themeMode, primary, 10, 90),
|
|
36
|
-
secondary: getColorToken(themeMode, secondary, 40, 80),
|
|
37
|
-
onSecondary: getColorToken(themeMode, secondary, 100, 20),
|
|
38
|
-
secondaryContainer: getColorToken(themeMode, secondary, 90, 30),
|
|
39
|
-
onSecondaryContainer: getColorToken(themeMode, secondary, 10, 90),
|
|
40
|
-
tertiary: getColorToken(themeMode, tertiary, 40, 80),
|
|
41
|
-
onTertiary: getColorToken(themeMode, tertiary, 100, 20),
|
|
42
|
-
tertiaryContainer: getColorToken(themeMode, tertiary, 90, 30),
|
|
43
|
-
onTertiaryContainer: getColorToken(themeMode, tertiary, 10, 90),
|
|
44
|
-
error: getColorToken(themeMode, error, 40, 80),
|
|
45
|
-
onError: getColorToken(themeMode, error, 100, 20),
|
|
46
|
-
errorContainer: getColorToken(themeMode, error, 90, 30),
|
|
47
|
-
onErrorContainer: getColorToken(themeMode, error, 10, 90),
|
|
48
|
-
primaryFixed: getColorToken(themeMode, primary, 90, 90),
|
|
49
|
-
primaryFixedDim: getColorToken(themeMode, primary, 80, 80),
|
|
50
|
-
onPrimaryFixed: getColorToken(themeMode, primary, 10, 10),
|
|
51
|
-
onPrimaryFixedVariant: getColorToken(themeMode, primary, 30, 30),
|
|
52
|
-
secondaryFixed: getColorToken(themeMode, secondary, 90, 90),
|
|
53
|
-
secondaryFixedDim: getColorToken(themeMode, secondary, 80, 80),
|
|
54
|
-
onSecondaryFixed: getColorToken(themeMode, secondary, 10, 10),
|
|
55
|
-
onSecondaryFixedVariant: getColorToken(themeMode, secondary, 30, 30),
|
|
56
|
-
tertiaryFixed: getColorToken(themeMode, tertiary, 90, 90),
|
|
57
|
-
tertiaryFixedDim: getColorToken(themeMode, tertiary, 80, 80),
|
|
58
|
-
onTertiaryFixed: getColorToken(themeMode, tertiary, 10, 10),
|
|
59
|
-
onTertiaryFixedVariant: getColorToken(themeMode, tertiary, 30, 30),
|
|
60
|
-
surface: getColorToken(themeMode, neutral, 98, 6),
|
|
61
|
-
onSurface: getColorToken(themeMode, neutral, 10, 90),
|
|
62
|
-
surfaceDim: getColorToken(themeMode, neutral, 87, 6),
|
|
63
|
-
surfaceBright: getColorToken(themeMode, neutral, 98, 24),
|
|
64
|
-
surfaceContainerLowest: getColorToken(themeMode, neutral, 100, 4),
|
|
65
|
-
surfaceContainerLow: getColorToken(themeMode, neutral, 96, 10),
|
|
66
|
-
surfaceContainer: getColorToken(themeMode, neutral, 94, 12),
|
|
67
|
-
surfaceContainerHigh: getColorToken(themeMode, neutral, 92, 17),
|
|
68
|
-
surfaceContainerHighest: getColorToken(themeMode, neutral, 90, 22),
|
|
69
|
-
// surfaceVariant: getColorToken(themeMode, neutralVariant, 90, 30),
|
|
70
|
-
onSurfaceVariant: getColorToken(themeMode, neutralVariant, 30, 80),
|
|
71
|
-
outline: getColorToken(themeMode, neutralVariant, 50, 60),
|
|
72
|
-
outlineVariant: getColorToken(themeMode, neutralVariant, 80, 30),
|
|
73
|
-
inverseSurface: getColorToken(themeMode, neutral, 20, 90),
|
|
74
|
-
inverseOnSurface: getColorToken(themeMode, neutral, 95, 20),
|
|
75
|
-
inversePrimary: getColorToken(themeMode, primary, 80, 40),
|
|
76
|
-
// inverseOnPrimary: getColorToken(themeMode, primary, 40, 80),
|
|
77
|
-
shadow: getColorToken(themeMode, neutral, 0, 0),
|
|
78
|
-
scrim: getColorToken(themeMode, neutral, 0, 0),
|
|
79
|
-
// surfaceTintColor: getColorToken(themeMode, primary, 40, 80),
|
|
80
|
-
background: getColorToken(themeMode, neutral, 98, 6),
|
|
81
|
-
onBackground: getColorToken(themeMode, neutral, 10, 90),
|
|
82
|
-
info: hexFromArgb(customStateColors[0][themeMode].color),
|
|
83
|
-
onInfo: hexFromArgb(customStateColors[0][themeMode].onColor),
|
|
84
|
-
infoContainer: hexFromArgb(customStateColors[0][themeMode].colorContainer),
|
|
85
|
-
onInfoContainer: hexFromArgb(customStateColors[0][themeMode].onColorContainer),
|
|
86
|
-
success: hexFromArgb(customStateColors[1][themeMode].color),
|
|
87
|
-
onSuccess: hexFromArgb(customStateColors[1][themeMode].onColor),
|
|
88
|
-
successContainer: hexFromArgb(customStateColors[1][themeMode].colorContainer),
|
|
89
|
-
onSuccessContainer: hexFromArgb(customStateColors[1][themeMode].onColorContainer),
|
|
90
|
-
warning: hexFromArgb(customStateColors[2][themeMode].color),
|
|
91
|
-
onWarning: hexFromArgb(customStateColors[2][themeMode].onColor),
|
|
92
|
-
warningContainer: hexFromArgb(customStateColors[2][themeMode].colorContainer),
|
|
93
|
-
onWarningContainer: hexFromArgb(customStateColors[2][themeMode].onColorContainer),
|
|
94
|
-
undefined: '#90A4AE',
|
|
95
|
-
onUndefined: '#FFF',
|
|
96
|
-
undefinedContainer: '#ECEFF1',
|
|
97
|
-
onUndefinedContainer: '#263238',
|
|
98
|
-
supportive: hexFromArgb(customStateColors[3][themeMode].color),
|
|
99
|
-
additionalColors,
|
|
100
|
-
infoFixedDim: '',
|
|
101
|
-
errorFixedDim: '',
|
|
102
|
-
surfaceVariant: '',
|
|
103
|
-
surfaceTint: '',
|
|
104
|
-
successFixedDim: '',
|
|
105
|
-
warningFixedDim: '',
|
|
106
|
-
};
|
|
107
|
-
};
|
|
File without changes
|
|
File without changes
|