@shortfuse/materialdesignweb 0.5.0 → 0.7.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/README.md +155 -77
- package/bin/generate-css.js +12 -0
- package/components/Badge.css +30 -0
- package/components/Badge.js +15 -0
- package/components/Body.css +14 -0
- package/components/Body.js +7 -0
- package/components/BottomAppBar.css +23 -0
- package/components/BottomAppBar.js +25 -0
- package/components/Box.css +31 -0
- package/components/Box.js +24 -0
- package/components/Button.css +146 -0
- package/components/Button.js +95 -0
- package/components/Button.md +61 -0
- package/components/Card.css +109 -0
- package/components/Card.js +82 -0
- package/components/Checkbox.css +77 -0
- package/components/Checkbox.js +59 -0
- package/components/CheckboxIcon.css +89 -0
- package/components/CheckboxIcon.js +41 -0
- package/components/Chip.css +35 -0
- package/components/Chip.js +22 -0
- package/components/Dialog.css +235 -0
- package/components/Dialog.js +327 -0
- package/components/DialogActions.js +13 -0
- package/components/Divider.css +41 -0
- package/components/Divider.js +13 -0
- package/components/ExtendedFab.css +24 -0
- package/components/ExtendedFab.js +11 -0
- package/components/Fab.css +23 -0
- package/components/Fab.js +26 -0
- package/components/FilterChip.css +80 -0
- package/components/FilterChip.js +51 -0
- package/components/Headline.css +14 -0
- package/components/Headline.js +33 -0
- package/components/Icon.css +76 -0
- package/components/Icon.js +174 -0
- package/components/IconButton.css +151 -0
- package/components/IconButton.js +65 -0
- package/components/Input.js +16 -0
- package/components/Label.css +14 -0
- package/components/Label.js +7 -0
- package/components/Layout.css +19 -0
- package/components/Layout.js +12 -0
- package/components/List.css +12 -0
- package/components/List.js +17 -0
- package/components/ListItem.css +224 -0
- package/components/ListItem.js +112 -0
- package/components/ListOption.css +34 -0
- package/components/ListOption.js +122 -0
- package/components/ListSelect.css +9 -0
- package/components/ListSelect.js +206 -0
- package/components/Menu.css +171 -0
- package/components/Menu.js +470 -0
- package/components/MenuItem.css +53 -0
- package/components/MenuItem.js +215 -0
- package/components/Nav.css +17 -0
- package/components/Nav.js +23 -0
- package/components/NavBar.css +34 -0
- package/components/NavBar.js +88 -0
- package/components/NavBarItem.css +41 -0
- package/components/NavBarItem.js +7 -0
- package/components/NavDrawer.css +31 -0
- package/components/NavDrawer.js +13 -0
- package/components/NavDrawerItem.css +42 -0
- package/components/NavDrawerItem.js +12 -0
- package/components/NavItem.css +181 -0
- package/components/NavItem.js +83 -0
- package/components/NavRail.css +47 -0
- package/components/NavRail.js +17 -0
- package/components/NavRailItem.css +25 -0
- package/components/NavRailItem.js +7 -0
- package/components/Option.js +91 -0
- package/components/Outline.css +138 -0
- package/components/Pane.css +261 -0
- package/components/Pane.js +21 -0
- package/components/Progress.css +74 -0
- package/components/Progress.js +67 -0
- package/components/ProgressCircle.css +226 -0
- package/components/ProgressLine.css +155 -0
- package/components/Radio.css +83 -0
- package/components/Radio.js +42 -0
- package/components/RadioIcon.css +73 -0
- package/components/RadioIcon.js +37 -0
- package/components/Ripple.css +74 -0
- package/components/Ripple.js +114 -0
- package/components/SegmentedButton.css +94 -0
- package/components/SegmentedButton.js +49 -0
- package/components/SegmentedButtonGroup.css +12 -0
- package/components/SegmentedButtonGroup.js +44 -0
- package/components/Select.css +52 -0
- package/components/Select.js +71 -0
- package/components/Shape.css +132 -0
- package/components/Shape.js +25 -0
- package/components/Slider.css +306 -0
- package/components/Slider.js +206 -0
- package/components/Snackbar.css +80 -0
- package/components/Snackbar.js +75 -0
- package/components/Surface.css +10 -0
- package/components/Surface.js +23 -0
- package/components/Switch.css +63 -0
- package/components/Switch.js +127 -0
- package/components/SwitchIcon.css +177 -0
- package/components/SwitchIcon.js +89 -0
- package/components/SwitchIconAnimations.css +89 -0
- package/components/Tab.css +85 -0
- package/components/Tab.js +103 -0
- package/components/TabContent.js +151 -0
- package/components/TabList.css +129 -0
- package/components/TabList.js +309 -0
- package/components/TabPanel.js +37 -0
- package/components/TextArea.css +93 -0
- package/components/TextArea.js +229 -0
- package/components/Title.css +14 -0
- package/components/Title.js +15 -0
- package/components/Tooltip.css +40 -0
- package/components/Tooltip.js +22 -0
- package/components/TopAppBar.css +209 -0
- package/components/TopAppBar.js +201 -0
- package/core/Composition.js +988 -0
- package/core/CustomElement.js +844 -0
- package/core/ICustomElement.d.ts +288 -0
- package/core/ICustomElement.js +1 -0
- package/core/css.js +51 -0
- package/core/customTypes.js +125 -0
- package/core/dom.js +56 -154
- package/core/identify.js +40 -0
- package/core/observe.js +410 -0
- package/core/template.js +121 -0
- package/core/typings.d.ts +135 -0
- package/core/typings.js +1 -0
- package/mixins/AriaReflectorMixin.js +42 -0
- package/mixins/AriaToolbarMixin.js +13 -0
- package/mixins/ControlMixin.css +57 -0
- package/mixins/ControlMixin.js +212 -0
- package/mixins/DensityMixin.css +40 -0
- package/mixins/DensityMixin.js +11 -0
- package/mixins/FlexableMixin.css +79 -0
- package/mixins/FlexableMixin.js +32 -0
- package/mixins/FormAssociatedMixin.js +170 -0
- package/mixins/InputMixin.js +335 -0
- package/mixins/KeyboardNavMixin.js +244 -0
- package/mixins/RTLObserverMixin.js +35 -0
- package/mixins/ResizeObserverMixin.js +38 -0
- package/mixins/RippleMixin.css +12 -0
- package/mixins/RippleMixin.js +115 -0
- package/mixins/ScrollListenerMixin.js +100 -0
- package/mixins/ShapeMixin.css +135 -0
- package/mixins/ShapeMixin.js +31 -0
- package/mixins/StateMixin.css +82 -0
- package/mixins/StateMixin.js +114 -0
- package/mixins/SurfaceMixin.css +150 -0
- package/mixins/SurfaceMixin.js +32 -0
- package/mixins/TextFieldMixin.css +657 -0
- package/mixins/TextFieldMixin.js +121 -0
- package/mixins/ThemableMixin.css +204 -0
- package/mixins/ThemableMixin.js +16 -0
- package/mixins/TooltipTriggerMixin.css +27 -0
- package/mixins/TooltipTriggerMixin.js +366 -0
- package/mixins/TouchTargetMixin.css +26 -0
- package/mixins/TouchTargetMixin.js +9 -0
- package/package.json +54 -49
- package/theming/index.js +594 -0
- package/theming/loader.js +24 -0
- package/utils/cli.js +11 -0
- package/utils/color_keywords.js +151 -0
- package/utils/hct/Cam16.js +298 -0
- package/utils/hct/CorePalette.js +84 -0
- package/utils/hct/Hct.js +172 -0
- package/utils/hct/Scheme.js +587 -0
- package/utils/hct/TonalPalette.js +68 -0
- package/utils/hct/ViewingConditions.js +136 -0
- package/utils/hct/blend.js +93 -0
- package/utils/hct/colorUtils.js +302 -0
- package/utils/hct/hctSolver.js +559 -0
- package/utils/hct/helper.js +182 -0
- package/utils/hct/mathUtils.js +153 -0
- package/utils/jsonMergePatch.js +100 -0
- package/utils/jsx-runtime.js +101 -0
- package/utils/popup.js +117 -0
- package/utils/svg.js +129 -0
- package/.browserslistrc +0 -4
- package/.eslintrc.json +0 -204
- package/.stylelintrc.json +0 -645
- package/.vscode/launch.json +0 -31
- package/.vscode/settings.json +0 -3
- package/.vscode/tasks.json +0 -32
- package/CHANGELOG.md +0 -36
- package/CODE_OF_CONDUCT.md +0 -46
- package/adapters/datatable/column.js +0 -176
- package/adapters/datatable/index.js +0 -960
- package/adapters/dom/index.js +0 -586
- package/adapters/list/index.js +0 -69
- package/adapters/search/index.js +0 -495
- package/components/appbar/_spec.scss +0 -165
- package/components/appbar/_theme.scss +0 -0
- package/components/appbar/index.scss +0 -2
- package/components/banner/_spec.scss +0 -83
- package/components/banner/_theme.scss +0 -0
- package/components/banner/index.scss +0 -2
- package/components/bottomnav/README.md +0 -85
- package/components/bottomnav/_spec.scss +0 -149
- package/components/bottomnav/_theme.scss +0 -0
- package/components/bottomnav/index.js +0 -117
- package/components/bottomnav/index.scss +0 -2
- package/components/bottomnav/item.js +0 -88
- package/components/button/README.md +0 -61
- package/components/button/_spec.scss +0 -162
- package/components/button/_theme.scss +0 -42
- package/components/button/index.eta +0 -32
- package/components/button/index.js +0 -43
- package/components/button/index.pug +0 -18
- package/components/button/index.scss +0 -2
- package/components/card/_spec.scss +0 -241
- package/components/card/_theme.scss +0 -0
- package/components/card/index.scss +0 -2
- package/components/chip/_spec.scss +0 -111
- package/components/chip/_theme.scss +0 -105
- package/components/chip/index.js +0 -23
- package/components/chip/index.scss +0 -2
- package/components/chip/item.js +0 -20
- package/components/datatable/_spec.scss +0 -225
- package/components/datatable/_theme.scss +0 -128
- package/components/datatable/cell.js +0 -44
- package/components/datatable/columnheader.js +0 -46
- package/components/datatable/index.js +0 -374
- package/components/datatable/index.scss +0 -2
- package/components/datatable/row.js +0 -48
- package/components/datatable/rowheader.js +0 -18
- package/components/dialog/_spec.scss +0 -203
- package/components/dialog/_theme.scss +0 -7
- package/components/dialog/index.js +0 -601
- package/components/dialog/index.scss +0 -2
- package/components/divider/_spec.scss +0 -11
- package/components/divider/_theme.scss +0 -0
- package/components/divider/index.scss +0 -2
- package/components/elevation/_spec.scss +0 -9
- package/components/elevation/_theme.scss +0 -0
- package/components/elevation/index.scss +0 -2
- package/components/fab/_spec.scss +0 -210
- package/components/fab/_theme.scss +0 -0
- package/components/fab/index.js +0 -99
- package/components/fab/index.scss +0 -2
- package/components/grid/_spec.scss +0 -169
- package/components/grid/_theme.scss +0 -0
- package/components/grid/index.scss +0 -2
- package/components/layout/_mixins.scss +0 -11
- package/components/layout/_spec.scss +0 -916
- package/components/layout/_theme.scss +0 -19
- package/components/layout/index.js +0 -454
- package/components/layout/index.scss +0 -2
- package/components/list/_spec.scss +0 -363
- package/components/list/_theme.scss +0 -102
- package/components/list/content.js +0 -106
- package/components/list/index.js +0 -256
- package/components/list/index.scss +0 -2
- package/components/list/item.js +0 -167
- package/components/list/secondary.js +0 -45
- package/components/menu/_spec.scss +0 -329
- package/components/menu/_theme.scss +0 -0
- package/components/menu/index.js +0 -705
- package/components/menu/index.scss +0 -2
- package/components/menu/item.js +0 -231
- package/components/progress/_spec.scss +0 -156
- package/components/progress/_theme.scss +0 -0
- package/components/progress/index.js +0 -36
- package/components/progress/index.scss +0 -2
- package/components/selection/_spec.scss +0 -376
- package/components/selection/_theme.scss +0 -134
- package/components/selection/index.eta +0 -60
- package/components/selection/index.js +0 -70
- package/components/selection/index.pug +0 -30
- package/components/selection/index.scss +0 -2
- package/components/selection/input.js +0 -54
- package/components/selection/radiogroup.js +0 -40
- package/components/slider/_spec.scss +0 -59
- package/components/slider/_theme.scss +0 -0
- package/components/slider/index.scss +0 -2
- package/components/snackbar/_spec.scss +0 -150
- package/components/snackbar/_theme.scss +0 -0
- package/components/snackbar/index.js +0 -338
- package/components/snackbar/index.scss +0 -2
- package/components/tab/_spec.scss +0 -220
- package/components/tab/_theme.scss +0 -0
- package/components/tab/content.js +0 -210
- package/components/tab/index.js +0 -257
- package/components/tab/index.scss +0 -2
- package/components/tab/item.js +0 -88
- package/components/tab/list.js +0 -196
- package/components/tab/panel.js +0 -54
- package/components/textfield/README.md +0 -179
- package/components/textfield/_spec.scss +0 -763
- package/components/textfield/_theme.scss +0 -264
- package/components/textfield/index.eta +0 -74
- package/components/textfield/index.js +0 -160
- package/components/textfield/index.pug +0 -30
- package/components/textfield/index.scss +0 -2
- package/components/tooltip/_spec.scss +0 -185
- package/components/tooltip/_theme.scss +0 -0
- package/components/tooltip/index.scss +0 -2
- package/components/type/_spec.scss +0 -227
- package/components/type/_theme.scss +0 -0
- package/components/type/index.scss +0 -2
- package/core/_breakpoint.scss +0 -189
- package/core/_elevation.scss +0 -78
- package/core/_length.scss +0 -8
- package/core/_motion.scss +0 -31
- package/core/_platform.scss +0 -12
- package/core/_type.scss +0 -128
- package/core/aria/attributes.js +0 -141
- package/core/aria/button.js +0 -49
- package/core/aria/keyboard.js +0 -92
- package/core/aria/rovingtabindex.js +0 -175
- package/core/aria/tab.js +0 -59
- package/core/document/index.js +0 -39
- package/core/overlay/_spec.scss +0 -28
- package/core/overlay/_theme.scss +0 -147
- package/core/overlay/index.js +0 -95
- package/core/overlay/index.scss +0 -2
- package/core/ripple/_spec.scss +0 -196
- package/core/ripple/_theme.scss +0 -20
- package/core/ripple/index.js +0 -286
- package/core/ripple/index.scss +0 -2
- package/core/theme/_aliases.scss +0 -15
- package/core/theme/_config.scss +0 -8
- package/core/theme/_functions.scss +0 -22
- package/core/theme/_palettes.scss +0 -405
- package/core/theme/_spec.scss +0 -0
- package/core/theme/_theme.scss +0 -268
- package/core/theme/index.js +0 -50
- package/core/theme/index.scss +0 -4
- package/core/throttler.js +0 -42
- package/core/transition/index.js +0 -465
- package/docs/_flex.scss +0 -28
- package/docs/_menuoptions.js +0 -183
- package/docs/_partials/_androidnavbar.eta +0 -5
- package/docs/_partials/_androidstatusbar.eta +0 -13
- package/docs/_partials/_appbar.eta +0 -27
- package/docs/_partials/_buttontest.eta +0 -31
- package/docs/_partials/_header.eta +0 -146
- package/docs/_partials/_navlistitem.eta +0 -16
- package/docs/_partials/_target.eta +0 -1
- package/docs/_sample-utils.js +0 -88
- package/docs/_storage.js +0 -33
- package/docs/docs.scss +0 -331
- package/docs/framework.scss +0 -26
- package/docs/index.eta +0 -12
- package/docs/index.js +0 -7
- package/docs/pages/appbar.eta +0 -108
- package/docs/pages/appbar.js +0 -0
- package/docs/pages/bottomnav.eta +0 -188
- package/docs/pages/bottomnav.js +0 -118
- package/docs/pages/button.eta +0 -124
- package/docs/pages/button.js +0 -224
- package/docs/pages/card.eta +0 -90
- package/docs/pages/card.js +0 -175
- package/docs/pages/chip.eta +0 -122
- package/docs/pages/chip.js +0 -80
- package/docs/pages/color.eta +0 -143
- package/docs/pages/color.js +0 -261
- package/docs/pages/datatable.eta +0 -323
- package/docs/pages/datatable.js +0 -160
- package/docs/pages/dialog.eta +0 -184
- package/docs/pages/dialog.js +0 -174
- package/docs/pages/dom.eta +0 -26
- package/docs/pages/dom.js +0 -140
- package/docs/pages/elevation.eta +0 -35
- package/docs/pages/elevation.js +0 -0
- package/docs/pages/fab.eta +0 -99
- package/docs/pages/fab.js +0 -43
- package/docs/pages/grid.eta +0 -135
- package/docs/pages/grid.js +0 -128
- package/docs/pages/layout.eta +0 -8
- package/docs/pages/layout.js +0 -0
- package/docs/pages/list.eta +0 -465
- package/docs/pages/list.js +0 -8
- package/docs/pages/menu.eta +0 -274
- package/docs/pages/menu.js +0 -213
- package/docs/pages/overlay.eta +0 -69
- package/docs/pages/overlay.js +0 -3
- package/docs/pages/progress.eta +0 -23
- package/docs/pages/progress.js +0 -12
- package/docs/pages/ripple.eta +0 -27
- package/docs/pages/ripple.js +0 -3
- package/docs/pages/search.eta +0 -242
- package/docs/pages/search.js +0 -226
- package/docs/pages/selection.eta +0 -107
- package/docs/pages/selection.js +0 -12
- package/docs/pages/slider.eta +0 -23
- package/docs/pages/slider.js +0 -0
- package/docs/pages/snackbar.eta +0 -83
- package/docs/pages/snackbar.js +0 -157
- package/docs/pages/tab.eta +0 -407
- package/docs/pages/tab.js +0 -152
- package/docs/pages/textfield.eta +0 -487
- package/docs/pages/textfield.js +0 -257
- package/docs/pages/tooltip.eta +0 -92
- package/docs/pages/tooltip.js +0 -0
- package/docs/pages/transition.eta +0 -117
- package/docs/pages/transition.js +0 -52
- package/docs/pages/type.eta +0 -31
- package/docs/pages/type.js +0 -0
- package/docs/postrender.js +0 -41
- package/docs/prerender.js +0 -16
- package/docs/pwa/_dialogs.eta +0 -143
- package/docs/pwa/_menus.eta +0 -16
- package/docs/pwa/pwa-prerender.js +0 -3
- package/docs/pwa/pwa.eta +0 -478
- package/docs/pwa/pwa.js +0 -298
- package/docs/pwa/pwa.scss +0 -31
- package/docs/themes/theme-colored.scss +0 -15
- package/docs/themes/theme-default.scss +0 -3
- package/index.scss +0 -27
- package/jsconfig.json +0 -16
- package/scripts/deploy-docs.sh +0 -9
- package/templates/index.eta +0 -2
- package/templates/index.pug +0 -3
- package/tsconfig.json +0 -16
- package/webpack.config.js +0 -304
|
@@ -1,405 +0,0 @@
|
|
|
1
|
-
// https://material.io/guidelines/style/color.html#color-color-tool
|
|
2
|
-
|
|
3
|
-
$bluePalette: (
|
|
4
|
-
"50": #E3F2FD,
|
|
5
|
-
"100": #BBDEFB,
|
|
6
|
-
"200": #90CAF9,
|
|
7
|
-
"300": #64B5F6,
|
|
8
|
-
"400": #42A5F5,
|
|
9
|
-
"500": #2196F3,
|
|
10
|
-
"600": #1E88E5,
|
|
11
|
-
"700": #1976D2,
|
|
12
|
-
"800": #1565C0,
|
|
13
|
-
"900": #0D47A1,
|
|
14
|
-
"A100": #82B1FF,
|
|
15
|
-
"A200": #448AFF,
|
|
16
|
-
"A400": #2979FF,
|
|
17
|
-
"A700": #2962FF,
|
|
18
|
-
"light": ("50", "100", "200", "300", "400", "500", "A100"),
|
|
19
|
-
"dark": ("600", "700", "800", "900", "A200", "A400", "A700"),
|
|
20
|
-
"shadow": #1A237E,
|
|
21
|
-
) !default;
|
|
22
|
-
|
|
23
|
-
$indigoPalette: (
|
|
24
|
-
"50": #E8EAF6,
|
|
25
|
-
"100": #C5CAE9,
|
|
26
|
-
"200": #9FA8DA,
|
|
27
|
-
"300": #7986CB,
|
|
28
|
-
"400": #5C6BC0,
|
|
29
|
-
"500": #3F51B5,
|
|
30
|
-
"600": #3949AB,
|
|
31
|
-
"700": #303F9F,
|
|
32
|
-
"800": #283593,
|
|
33
|
-
"900": #1A237E,
|
|
34
|
-
"A100": #8C9EFF,
|
|
35
|
-
"A200": #536DFE,
|
|
36
|
-
"A400": #3D5AFE,
|
|
37
|
-
"A700": #304FFE,
|
|
38
|
-
"light": ("50", "100", "200", "A100"),
|
|
39
|
-
"dark": ("300", "400", "500", "600", "700", "800", "900", "A200", "A400", "A700"),
|
|
40
|
-
"shadow": #1A237E,
|
|
41
|
-
) !default;
|
|
42
|
-
|
|
43
|
-
$deeppurplePalette: (
|
|
44
|
-
"50": #EDE7F6,
|
|
45
|
-
"100": #D1C4E9,
|
|
46
|
-
"200": #B39DDB,
|
|
47
|
-
"300": #9575CD,
|
|
48
|
-
"400": #7E57C2,
|
|
49
|
-
"500": #673AB7,
|
|
50
|
-
"600": #5E35B1,
|
|
51
|
-
"700": #512DA8,
|
|
52
|
-
"800": #4527A0,
|
|
53
|
-
"900": #311B92,
|
|
54
|
-
"A100": #B388FF,
|
|
55
|
-
"A200": #7C4DFF,
|
|
56
|
-
"A400": #651FFF,
|
|
57
|
-
"A700": #6200EA,
|
|
58
|
-
"light": ("50", "100", "200", "A100"),
|
|
59
|
-
"dark": ("300", "400", "500", "600", "700", "800", "900", "A200", "A400", "A700"),
|
|
60
|
-
"shadow": #1A237E,
|
|
61
|
-
) !default;
|
|
62
|
-
|
|
63
|
-
$purplePalette: (
|
|
64
|
-
"50": #F3E5F5,
|
|
65
|
-
"100": #E1BEE7,
|
|
66
|
-
"200": #CE93D8,
|
|
67
|
-
"300": #BA68C8,
|
|
68
|
-
"400": #AB47BC,
|
|
69
|
-
"500": #9C27B0,
|
|
70
|
-
"600": #8E24AA,
|
|
71
|
-
"700": #7B1FA2,
|
|
72
|
-
"800": #6A1B9A,
|
|
73
|
-
"900": #4A148C,
|
|
74
|
-
"A100": #EA80FC,
|
|
75
|
-
"A200": #E040FB,
|
|
76
|
-
"A400": #D500F9,
|
|
77
|
-
"A700": #AA00FF,
|
|
78
|
-
"light": ("50", "100", "200", "A100"),
|
|
79
|
-
"dark": ("300", "400", "500", "600", "700", "800", "900", "A200", "A400", "A700"),
|
|
80
|
-
"shadow": #1A237E,
|
|
81
|
-
) !default;
|
|
82
|
-
|
|
83
|
-
$lightbluePalette: (
|
|
84
|
-
"50": #E1F5FE,
|
|
85
|
-
"100": #B3E5FC,
|
|
86
|
-
"200": #81D4FA,
|
|
87
|
-
"300": #4FC3F7,
|
|
88
|
-
"400": #29B6F6,
|
|
89
|
-
"500": #03A9F4,
|
|
90
|
-
"600": #039BE5,
|
|
91
|
-
"700": #0288D1,
|
|
92
|
-
"800": #0277BD,
|
|
93
|
-
"900": #01579B,
|
|
94
|
-
"A100": #80D8FF,
|
|
95
|
-
"A200": #40C4FF,
|
|
96
|
-
"A400": #00B0FF,
|
|
97
|
-
"A700": #0091EA,
|
|
98
|
-
"light": ("50", "100", "200", "300", "400", "500", "600", "A100", "A200", "A400"),
|
|
99
|
-
"dark": ("700", "800", "900", "A700"),
|
|
100
|
-
"shadow": #263238,
|
|
101
|
-
) !default;
|
|
102
|
-
|
|
103
|
-
$cyanPalette: (
|
|
104
|
-
"50": #E0F7FA,
|
|
105
|
-
"100": #B2EBF2,
|
|
106
|
-
"200": #80DEEA,
|
|
107
|
-
"300": #4DD0E1,
|
|
108
|
-
"400": #26C6DA,
|
|
109
|
-
"500": #00BCD4,
|
|
110
|
-
"600": #00ACC1,
|
|
111
|
-
"700": #0097A7,
|
|
112
|
-
"800": #00838F,
|
|
113
|
-
"900": #006064,
|
|
114
|
-
"A100": #84FFFF,
|
|
115
|
-
"A200": #18FFFF,
|
|
116
|
-
"A400": #00E5FF,
|
|
117
|
-
"A700": #00B8D4,
|
|
118
|
-
"light": ("50", "100", "200", "300", "400", "500", "600", "A100", "A200", "A400", "A700"),
|
|
119
|
-
"dark": ("700", "800", "900"),
|
|
120
|
-
"shadow": #263238,
|
|
121
|
-
) !default;
|
|
122
|
-
|
|
123
|
-
$tealPalette: (
|
|
124
|
-
"50": #E0F2F1,
|
|
125
|
-
"100": #B2DFDB,
|
|
126
|
-
"200": #80CBC4,
|
|
127
|
-
"300": #4DB6AC,
|
|
128
|
-
"400": #26A69A,
|
|
129
|
-
"500": #009688,
|
|
130
|
-
"600": #00897B,
|
|
131
|
-
"700": #00796B,
|
|
132
|
-
"800": #00695C,
|
|
133
|
-
"900": #004D40,
|
|
134
|
-
"A100": #A7FFEB,
|
|
135
|
-
"A200": #64FFDA,
|
|
136
|
-
"A400": #1DE9B6,
|
|
137
|
-
"A700": #00BFA5,
|
|
138
|
-
"light": ("50", "100", "200", "300", "400", "A100", "A200", "A400", "A700"),
|
|
139
|
-
"dark": ("500", "600", "700", "800", "900"),
|
|
140
|
-
"shadow": #263238,
|
|
141
|
-
) !default;
|
|
142
|
-
|
|
143
|
-
$greenPalette: (
|
|
144
|
-
"50": #E8F5E9,
|
|
145
|
-
"100": #C8E6C9,
|
|
146
|
-
"200": #A5D6A7,
|
|
147
|
-
"300": #81C784,
|
|
148
|
-
"400": #66BB6A,
|
|
149
|
-
"500": #4CAF50,
|
|
150
|
-
"600": #43A047,
|
|
151
|
-
"700": #388E3C,
|
|
152
|
-
"800": #2E7D32,
|
|
153
|
-
"900": #1B5E20,
|
|
154
|
-
"A100": #B9F6CA,
|
|
155
|
-
"A200": #69F0AE,
|
|
156
|
-
"A400": #00E676,
|
|
157
|
-
"A700": #00C853,
|
|
158
|
-
"light": ("50", "100", "200", "300", "400", "500", "A100", "A200", "A400", "A700"),
|
|
159
|
-
"dark": ("600", "700", "800", "900"),
|
|
160
|
-
"shadow": #263238,
|
|
161
|
-
) !default;
|
|
162
|
-
|
|
163
|
-
$lightgreenPalette: (
|
|
164
|
-
"50": #F1F8E9,
|
|
165
|
-
"100": #DCEDC8,
|
|
166
|
-
"200": #C5E1A5,
|
|
167
|
-
"300": #AED581,
|
|
168
|
-
"400": #9CCC65,
|
|
169
|
-
"500": #8BC34A,
|
|
170
|
-
"600": #7CB342,
|
|
171
|
-
"700": #689F38,
|
|
172
|
-
"800": #558B2F,
|
|
173
|
-
"900": #33691E,
|
|
174
|
-
"A100": #CCFF90,
|
|
175
|
-
"A200": #B2FF59,
|
|
176
|
-
"A400": #76FF03,
|
|
177
|
-
"A700": #64DD17,
|
|
178
|
-
"light": ("50", "100", "200", "300", "400", "500", "600", "700", "A100", "A200", "A400", "A700"),
|
|
179
|
-
"dark": ("800", "900"),
|
|
180
|
-
"shadow": #263238,
|
|
181
|
-
) !default;
|
|
182
|
-
|
|
183
|
-
$limePalette: (
|
|
184
|
-
"50": #F9FBE7,
|
|
185
|
-
"100": #F0F4C3,
|
|
186
|
-
"200": #E6EE9C,
|
|
187
|
-
"300": #DCE775,
|
|
188
|
-
"400": #D4E157,
|
|
189
|
-
"500": #CDDC39,
|
|
190
|
-
"600": #C0CA33,
|
|
191
|
-
"700": #AFB42B,
|
|
192
|
-
"800": #9E9D24,
|
|
193
|
-
"900": #827717,
|
|
194
|
-
"A100": #F4FF81,
|
|
195
|
-
"A200": #EEFF41,
|
|
196
|
-
"A400": #C6FF00,
|
|
197
|
-
"A700": #AEEA00,
|
|
198
|
-
"light": ("50", "100", "200", "300", "400", "500", "600", "700", "800", "A100", "A200", "A400", "A700"),
|
|
199
|
-
"dark": ("900"),
|
|
200
|
-
"shadow": #263238,
|
|
201
|
-
) !default;
|
|
202
|
-
|
|
203
|
-
$yellowPalette: (
|
|
204
|
-
"50": #FFFDE7,
|
|
205
|
-
"100": #FFF9C4,
|
|
206
|
-
"200": #FFF59D,
|
|
207
|
-
"300": #FFF176,
|
|
208
|
-
"400": #FFEE58,
|
|
209
|
-
"500": #FFEB3B,
|
|
210
|
-
"600": #FDD835,
|
|
211
|
-
"700": #FBC02D,
|
|
212
|
-
"800": #F9A825,
|
|
213
|
-
"900": #F57F17,
|
|
214
|
-
"A100": #FFFF8D,
|
|
215
|
-
"A200": #FFFF00,
|
|
216
|
-
"A400": #FFEA00,
|
|
217
|
-
"A700": #FFD600,
|
|
218
|
-
"light": ("50", "100", "200", "300", "400", "500", "600", "700", "800", "900", "A100", "A200", "A400", "A700"),
|
|
219
|
-
"dark": (),
|
|
220
|
-
"shadow": #BF360C,
|
|
221
|
-
) !default;
|
|
222
|
-
|
|
223
|
-
$amberPalette: (
|
|
224
|
-
"50": #FFF8E1,
|
|
225
|
-
"100": #FFECB3,
|
|
226
|
-
"200": #FFE082,
|
|
227
|
-
"300": #FFD54F,
|
|
228
|
-
"400": #FFCA28,
|
|
229
|
-
"500": #FFC107,
|
|
230
|
-
"600": #FFB300,
|
|
231
|
-
"700": #FFA000,
|
|
232
|
-
"800": #FF8F00,
|
|
233
|
-
"900": #FF6F00,
|
|
234
|
-
"A100": #FFE57F,
|
|
235
|
-
"A200": #FFD740,
|
|
236
|
-
"A400": #FFC400,
|
|
237
|
-
"A700": #FFAB00,
|
|
238
|
-
"light": ("50", "100", "200", "300", "400", "500", "600", "700", "800", "900", "A100", "A200", "A400", "A700"),
|
|
239
|
-
"dark": (),
|
|
240
|
-
"shadow": #BF360C,
|
|
241
|
-
) !default;
|
|
242
|
-
|
|
243
|
-
$orangePalette: (
|
|
244
|
-
"50": #FFF3E0,
|
|
245
|
-
"100": #FFE0B2,
|
|
246
|
-
"200": #FFCC80,
|
|
247
|
-
"300": #FFB74D,
|
|
248
|
-
"400": #FFA726,
|
|
249
|
-
"500": #FF9800,
|
|
250
|
-
"600": #FB8C00,
|
|
251
|
-
"700": #F57C00,
|
|
252
|
-
"800": #EF6C00,
|
|
253
|
-
"900": #E65100,
|
|
254
|
-
"A100": #FFD180,
|
|
255
|
-
"A200": #FFAB40,
|
|
256
|
-
"A400": #FF9100,
|
|
257
|
-
"A700": #FF6D00,
|
|
258
|
-
"light": ("50", "100", "200", "300", "400", "500", "600", "700", "800", "A100", "A200", "A400", "A700"),
|
|
259
|
-
"dark": ("900"),
|
|
260
|
-
"shadow": #BF360C,
|
|
261
|
-
) !default;
|
|
262
|
-
|
|
263
|
-
$deeporangePalette: (
|
|
264
|
-
"50": #FBE9E7,
|
|
265
|
-
"100": #FFCCBC,
|
|
266
|
-
"200": #FFAB91,
|
|
267
|
-
"300": #FF8A65,
|
|
268
|
-
"400": #FF7043,
|
|
269
|
-
"500": #FF5722,
|
|
270
|
-
"600": #F4511E,
|
|
271
|
-
"700": #E64A19,
|
|
272
|
-
"800": #D84315,
|
|
273
|
-
"900": #BF360C,
|
|
274
|
-
"A100": #FF9E80,
|
|
275
|
-
"A200": #FF6E40,
|
|
276
|
-
"A400": #FF3D00,
|
|
277
|
-
"A700": #DD2C00,
|
|
278
|
-
"light": ("50", "100", "200", "300", "400", "500", "A100", "A200"),
|
|
279
|
-
"dark": ("600", "700", "800", "900", "A400", "A700"),
|
|
280
|
-
"shadow": #3E2723
|
|
281
|
-
) !default;
|
|
282
|
-
|
|
283
|
-
$redPalette: (
|
|
284
|
-
"50" : #FFEBEE,
|
|
285
|
-
"100": #FFCDD2,
|
|
286
|
-
"200": #EF9A9A,
|
|
287
|
-
"300": #E57373,
|
|
288
|
-
"400": #EF5350,
|
|
289
|
-
"500": #F44336,
|
|
290
|
-
"600": #E53935,
|
|
291
|
-
"700": #D32F2F,
|
|
292
|
-
"800": #C62828,
|
|
293
|
-
"900": #B71C1C,
|
|
294
|
-
"A100": #FF8A80,
|
|
295
|
-
"A200": #FF5252,
|
|
296
|
-
"A400": #FF1744,
|
|
297
|
-
"A700": #D50000,
|
|
298
|
-
"light": ("50", "100", "200", "300", "A100"),
|
|
299
|
-
"dark": ("400", "500", "600", "700", "800", "900", "A200", "A400", "A700"),
|
|
300
|
-
"shadow": #3E2723,
|
|
301
|
-
) !default;
|
|
302
|
-
|
|
303
|
-
$pinkPalette: (
|
|
304
|
-
"50": #FCE4EC,
|
|
305
|
-
"100": #F8BBD0,
|
|
306
|
-
"200": #F48FB1,
|
|
307
|
-
"300": #F06292,
|
|
308
|
-
"400": #EC407A,
|
|
309
|
-
"500": #E91E63,
|
|
310
|
-
"600": #D81B60,
|
|
311
|
-
"700": #C2185B,
|
|
312
|
-
"800": #AD1457,
|
|
313
|
-
"900": #880E4F,
|
|
314
|
-
"A100": #FF80AB,
|
|
315
|
-
"A200": #FF4081,
|
|
316
|
-
"A400": #F50057,
|
|
317
|
-
"A700": #C51162,
|
|
318
|
-
"light": ("50", "100", "200", "300", "A100"),
|
|
319
|
-
"dark": ("400", "500", "600", "700", "800", "900", "A200", "A400", "A700"),
|
|
320
|
-
"shadow": #3E2723,
|
|
321
|
-
) !default;
|
|
322
|
-
|
|
323
|
-
$brownPalette: (
|
|
324
|
-
"50": #EFEBE9,
|
|
325
|
-
"100": #D7CCC8,
|
|
326
|
-
"200": #BCAAA4,
|
|
327
|
-
"300": #A1887F,
|
|
328
|
-
"400": #8D6E63,
|
|
329
|
-
"500": #795548,
|
|
330
|
-
"600": #6D4C41,
|
|
331
|
-
"700": #5D4037,
|
|
332
|
-
"800": #4E342E,
|
|
333
|
-
"900": #3E2723,
|
|
334
|
-
"A100": #D7CCC8,
|
|
335
|
-
"A200": #BCAAA4,
|
|
336
|
-
"A400": #8D6E63,
|
|
337
|
-
"A700": #5D4037,
|
|
338
|
-
"light": ("50", "100", "200", "A100", "A200"),
|
|
339
|
-
"dark": ("300", "400", "500", "600", "700", "800", "900", "A100", "A200", "A400", "A700"),
|
|
340
|
-
"shadow": #3E2723,
|
|
341
|
-
) !default;
|
|
342
|
-
|
|
343
|
-
$grayPalette: (
|
|
344
|
-
"50": #FAFAFA,
|
|
345
|
-
"100": #F5F5F5,
|
|
346
|
-
"200": #EEEEEE,
|
|
347
|
-
"300": #E0E0E0,
|
|
348
|
-
"400": #BDBDBD,
|
|
349
|
-
"500": #9E9E9E,
|
|
350
|
-
"600": #757575,
|
|
351
|
-
"700": #616161,
|
|
352
|
-
"800": #424242,
|
|
353
|
-
"900": #212121,
|
|
354
|
-
"A100": #F5F5F5,
|
|
355
|
-
"A200": #EEEEEE,
|
|
356
|
-
"A400": #BDBDBD,
|
|
357
|
-
"A700": #616161,
|
|
358
|
-
"light": ("50", "100", "200", "300", "400", "500", "A100", "A200", "A400"),
|
|
359
|
-
"dark": ("600", "700", "800", "900", "A700"),
|
|
360
|
-
"shadow": #212121,
|
|
361
|
-
) !default;
|
|
362
|
-
|
|
363
|
-
$bluegrayPalette: (
|
|
364
|
-
"50": #ECEFF1,
|
|
365
|
-
"100": #CFD8DC,
|
|
366
|
-
"200": #B0BEC5,
|
|
367
|
-
"300": #90A4AE,
|
|
368
|
-
"400": #78909C,
|
|
369
|
-
"500": #607D8B,
|
|
370
|
-
"600": #546E7A,
|
|
371
|
-
"700": #455A64,
|
|
372
|
-
"800": #37474F,
|
|
373
|
-
"900": #263238,
|
|
374
|
-
"A100": #CFD8DC,
|
|
375
|
-
"A200": #B0BEC5,
|
|
376
|
-
"A400": #78909C,
|
|
377
|
-
"A700": #455A64,
|
|
378
|
-
"light": ("50", "100", "200", "300", "A100", "A200"),
|
|
379
|
-
"dark": ("400", "500", "600", "700", "800", "900", "A400", "A700"),
|
|
380
|
-
"shadow": #263238,
|
|
381
|
-
) !default;
|
|
382
|
-
|
|
383
|
-
$palettes: (
|
|
384
|
-
"blue": $bluePalette,
|
|
385
|
-
"indigo": $indigoPalette,
|
|
386
|
-
"deeppurple": $deeppurplePalette,
|
|
387
|
-
"purple": $purplePalette,
|
|
388
|
-
"lightblue": $lightbluePalette,
|
|
389
|
-
"cyan": $cyanPalette,
|
|
390
|
-
"teal": $tealPalette,
|
|
391
|
-
"green": $greenPalette,
|
|
392
|
-
"lightgreen": $lightgreenPalette,
|
|
393
|
-
"lime": $limePalette,
|
|
394
|
-
"yellow": $yellowPalette,
|
|
395
|
-
"amber": $amberPalette,
|
|
396
|
-
"orange": $orangePalette,
|
|
397
|
-
"deeporange": $deeporangePalette,
|
|
398
|
-
"red": $redPalette,
|
|
399
|
-
"pink": $pinkPalette,
|
|
400
|
-
"brown": $brownPalette,
|
|
401
|
-
"bluegrey": $bluegrayPalette,
|
|
402
|
-
"bluegray": $bluegrayPalette,
|
|
403
|
-
"grey": $grayPalette,
|
|
404
|
-
"gray": $grayPalette,
|
|
405
|
-
) !default;
|
package/core/theme/_spec.scss
DELETED
|
File without changes
|
package/core/theme/_theme.scss
DELETED
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use 'sass:list';
|
|
3
|
-
@use './_config.scss' as *;
|
|
4
|
-
@use './_palettes.scss' as *;
|
|
5
|
-
@use './_functions.scss' as *;
|
|
6
|
-
|
|
7
|
-
:root {
|
|
8
|
-
--mdw-ink-default-light: 0,0,0;
|
|
9
|
-
--mdw-high-opacity-light: 0.87;
|
|
10
|
-
--mdw-medium-opacity-light: 0.60;
|
|
11
|
-
--mdw-inactive-opacity-light: 0.38;
|
|
12
|
-
--mdw-divider-opacity-light: 0.12;
|
|
13
|
-
--mdw-ink-default-dark: 255,255,255;
|
|
14
|
-
--mdw-high-opacity-dark: 1.00;
|
|
15
|
-
--mdw-medium-opacity-dark: 0.70;
|
|
16
|
-
--mdw-inactive-opacity-dark: 0.50;
|
|
17
|
-
--mdw-divider-opacity-dark: 0.24;
|
|
18
|
-
--mdw-surface-binary-light: 255,255,255;
|
|
19
|
-
--mdw-surface-binary-dark: 0,0,0;
|
|
20
|
-
--mdw-surface-card-light: 255,255,255;
|
|
21
|
-
--mdw-surface-card-dark: 18,18,18;
|
|
22
|
-
|
|
23
|
-
@each $paletteKey in map.keys($palettes) {
|
|
24
|
-
$palette: map.get($palettes, $paletteKey);
|
|
25
|
-
@each $toneKey in getAllTones() {
|
|
26
|
-
$tone: map.get($palette, $toneKey);
|
|
27
|
-
--mdw-palette-#{$paletteKey}-#{$toneKey}: #{getRGB($tone)};
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.mdw-theme {
|
|
33
|
-
--mdw-text-color: RGBA(var(--mdw-ink-default), var(--mdw-high-opacity));
|
|
34
|
-
--mdw-medium-color: RGBA(var(--mdw-ink-default), var(--mdw-medium-opacity));
|
|
35
|
-
--mdw-inactive-color: RGBA(var(--mdw-ink-default), var(--mdw-inactive-opacity));
|
|
36
|
-
--mdw-divider-color: RGBA(var(--mdw-ink-default), var(--mdw-divider-opacity));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.mdw-theme[mdw-light] {
|
|
40
|
-
--mdw-ink-default: var(--mdw-ink-default-light);
|
|
41
|
-
--mdw-high-opacity: var(--mdw-high-opacity-light);
|
|
42
|
-
--mdw-medium-opacity: var(--mdw-medium-opacity-light);
|
|
43
|
-
--mdw-inactive-opacity: var(--mdw-inactive-opacity-light);
|
|
44
|
-
--mdw-divider-opacity: var(--mdw-divider-opacity-light);
|
|
45
|
-
--mdw-surface-binary: var(--mdw-surface-binary-light);
|
|
46
|
-
--mdw-surface-card: var(--mdw-surface-card-light);
|
|
47
|
-
@each $paletteKey in map.keys($palettes) {
|
|
48
|
-
$palette: map.get($palettes, $paletteKey);
|
|
49
|
-
--mdw-palette-#{$paletteKey}-surface-default: var(--mdw-palette-#{$paletteKey}-50);
|
|
50
|
-
--mdw-palette-#{$paletteKey}-surface-alt: var(--mdw-palette-#{$paletteKey}-100);
|
|
51
|
-
--mdw-palette-#{$paletteKey}-surface-alt2: var(--mdw-palette-#{$paletteKey}-200);
|
|
52
|
-
--mdw-palette-#{$paletteKey}-ink-default: var(--mdw-palette-#{$paletteKey}-A700);
|
|
53
|
-
--mdw-palette-#{$paletteKey}-ink-contrast: var(--mdw-palette-#{$paletteKey}-A700);
|
|
54
|
-
--mdw-palette-#{$paletteKey}-ink-light: var(--mdw-palette-#{$paletteKey}-A400);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@each $aliasKey in map.keys($alias) {
|
|
58
|
-
$paletteKey: map.get($alias, $aliasKey);
|
|
59
|
-
--mdw-alias-#{$aliasKey}-surface-default: var(--mdw-alias-#{$aliasKey}-50);
|
|
60
|
-
--mdw-alias-#{$aliasKey}-surface-alt: var(--mdw-alias-#{$aliasKey}-100);
|
|
61
|
-
--mdw-alias-#{$aliasKey}-surface-alt2: var(--mdw-alias-#{$aliasKey}-200);
|
|
62
|
-
--mdw-alias-#{$aliasKey}-ink-default: var(--mdw-alias-#{$aliasKey}-A700);
|
|
63
|
-
--mdw-alias-#{$aliasKey}-ink-contrast: var(--mdw-alias-#{$aliasKey}-A700);
|
|
64
|
-
--mdw-alias-#{$aliasKey}-ink-light: var(--mdw-alias-#{$aliasKey}-A400);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.mdw-theme[mdw-dark] {
|
|
69
|
-
--mdw-ink-default: var(--mdw-ink-default-dark);
|
|
70
|
-
--mdw-high-opacity: var(--mdw-high-opacity-dark);
|
|
71
|
-
--mdw-medium-opacity: var(--mdw-medium-opacity-dark);
|
|
72
|
-
--mdw-inactive-opacity: var(--mdw-inactive-opacity-dark);
|
|
73
|
-
--mdw-divider-opacity: var(--mdw-divider-opacity-dark);
|
|
74
|
-
--mdw-surface-binary: var(--mdw-surface-binary-dark);
|
|
75
|
-
--mdw-surface-card: var(--mdw-surface-card-dark);
|
|
76
|
-
@each $paletteKey in map.keys($palettes) {
|
|
77
|
-
$palette: map.get($palettes, $paletteKey);
|
|
78
|
-
--mdw-palette-#{$paletteKey}-surface-default: var(--mdw-palette-#{$paletteKey}-900);
|
|
79
|
-
--mdw-palette-#{$paletteKey}-surface-alt: var(--mdw-palette-#{$paletteKey}-800);
|
|
80
|
-
--mdw-palette-#{$paletteKey}-surface-alt2: var(--mdw-palette-#{$paletteKey}-700);
|
|
81
|
-
--mdw-palette-#{$paletteKey}-ink-default: var(--mdw-palette-#{$paletteKey}-A200);
|
|
82
|
-
--mdw-palette-#{$paletteKey}-ink-contrast: var(--mdw-palette-#{$paletteKey}-A100);
|
|
83
|
-
--mdw-palette-#{$paletteKey}-ink-light: var(--mdw-palette-#{$paletteKey}-A100);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@each $aliasKey in map.keys($alias) {
|
|
87
|
-
$paletteKey: map.get($alias, $aliasKey);
|
|
88
|
-
--mdw-alias-#{$aliasKey}-surface-default: var(--mdw-alias-#{$aliasKey}-900);
|
|
89
|
-
--mdw-alias-#{$aliasKey}-surface-alt: var(--mdw-alias-#{$aliasKey}-800);
|
|
90
|
-
--mdw-alias-#{$aliasKey}-surface-alt2: var(--mdw-alias-#{$aliasKey}-700);
|
|
91
|
-
--mdw-alias-#{$aliasKey}-ink-default: var(--mdw-alias-#{$aliasKey}-A200);
|
|
92
|
-
--mdw-alias-#{$aliasKey}-ink-contrast: var(--mdw-alias-#{$aliasKey}-A100);
|
|
93
|
-
--mdw-alias-#{$aliasKey}-ink-light: var(--mdw-alias-#{$aliasKey}-A100);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/** Surface Colors */
|
|
98
|
-
|
|
99
|
-
.mdw-theme[mdw-surface] {
|
|
100
|
-
background-color: RGB(var(--mdw-surface));
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
svg.mdw-theme[mdw-surface] {
|
|
104
|
-
background-color: transparent;
|
|
105
|
-
|
|
106
|
-
fill: RGB(var(--mdw-surface));
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.mdw-theme {
|
|
110
|
-
&[mdw-surface]:not([mdw-ink]) {
|
|
111
|
-
--mdw-ink: var(--mdw-ink-default);
|
|
112
|
-
--mdw-ink-opacity: var(--mdw-high-opacity);
|
|
113
|
-
color: RGBA(var(--mdw-ink), var(--mdw-ink-opacity));
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
&[mdw-surface="white"] {
|
|
117
|
-
--mdw-surface: 255,255,255;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&[mdw-surface="black"] {
|
|
121
|
-
--mdw-surface: 0,0,0;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&[mdw-surface="binary"] {
|
|
125
|
-
--mdw-surface: var(--mdw-surface-binary);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
&[mdw-surface="card"] {
|
|
129
|
-
--mdw-surface: var(--mdw-surface-card);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
@each $paletteKey in map.keys($palettes) {
|
|
133
|
-
$palette: map.get($palettes, $paletteKey);
|
|
134
|
-
&[mdw-surface~="#{$paletteKey}"] {
|
|
135
|
-
--mdw-surface: var(--mdw-palette-#{$paletteKey}-surface-default);
|
|
136
|
-
@each $toneKey in $surface-tones {
|
|
137
|
-
--mdw-surface-#{$toneKey}: var(--mdw-palette-#{$paletteKey}-#{$toneKey});
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
&[mdw-surface="#{$paletteKey} alt"] {
|
|
141
|
-
--mdw-surface: var(--mdw-palette-#{$paletteKey}-surface-alt);
|
|
142
|
-
}
|
|
143
|
-
&[mdw-surface="#{$paletteKey} alt2"] {
|
|
144
|
-
--mdw-surface: var(--mdw-palette-#{$paletteKey}-surface-alt2);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
@each $aliasKey in map.keys($alias) {
|
|
149
|
-
&[mdw-surface~="#{$aliasKey}"] {
|
|
150
|
-
--mdw-surface: var(--mdw-alias-#{$aliasKey}-surface-default);
|
|
151
|
-
@each $toneKey in $surface-tones {
|
|
152
|
-
--mdw-surface-#{$toneKey}: var(--mdw-alias-#{$aliasKey}-#{$toneKey});
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
&[mdw-surface="#{$aliasKey} alt"] {
|
|
156
|
-
--mdw-surface: var(--mdw-alias-#{$aliasKey}-surface-alt);
|
|
157
|
-
}
|
|
158
|
-
&[mdw-surface="#{$aliasKey} alt2"] {
|
|
159
|
-
--mdw-surface: var(--mdw-alias-#{$aliasKey}-surface-alt2);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
@each $tone in $surface-tones {
|
|
164
|
-
&[mdw-surface~="#{$tone}"] {
|
|
165
|
-
--mdw-surface: var(--mdw-surface-#{$tone});
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/** Ink Color **/
|
|
171
|
-
|
|
172
|
-
.mdw-theme {
|
|
173
|
-
&[mdw-ink] {
|
|
174
|
-
--mdw-ink: var(--mdw-ink-default);
|
|
175
|
-
--mdw-ink-opacity: 1;
|
|
176
|
-
color: RGBA(var(--mdw-ink), var(--mdw-ink-opacity));
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
&[mdw-ink=""],
|
|
180
|
-
&[mdw-ink~="default"] {
|
|
181
|
-
--mdw-ink: var(--mdw--ink-default);
|
|
182
|
-
--mdw-ink-opacity: var(--mdw-high-opacity);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
&[mdw-ink~="white"] {
|
|
186
|
-
--mdw-ink: 255,255,255;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
&[mdw-ink~="black"] {
|
|
190
|
-
--mdw-ink: 0,0,0;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
@each $paletteKey in map.keys($palettes) {
|
|
194
|
-
$palette: map.get($palettes, $paletteKey);
|
|
195
|
-
&[mdw-ink~="#{$paletteKey}"] {
|
|
196
|
-
--mdw-ink: var(--mdw-palette-#{$paletteKey}-ink-default);
|
|
197
|
-
@each $toneKey in $ink-tones {
|
|
198
|
-
--mdw-ink-#{$toneKey}: var(--mdw-palette-#{$paletteKey}-#{$toneKey});
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
&[mdw-ink^="#{$paletteKey} contrast"] {
|
|
202
|
-
--mdw-ink: var(--mdw-palette-#{$paletteKey}-ink-contrast);
|
|
203
|
-
}
|
|
204
|
-
&[mdw-ink^="#{$paletteKey} light"] {
|
|
205
|
-
--mdw-ink: var(--mdw-palette-#{$paletteKey}-ink-light);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
@each $aliasKey in map.keys($alias) {
|
|
210
|
-
&[mdw-ink~="#{$aliasKey}"] {
|
|
211
|
-
--mdw-ink: var(--mdw-alias-#{$aliasKey}-ink-default);
|
|
212
|
-
@each $toneKey in $ink-tones {
|
|
213
|
-
--mdw-ink-#{$toneKey}: var(--mdw-alias-#{$aliasKey}-#{$toneKey});
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
&[mdw-ink^="#{$aliasKey} contrast"] {
|
|
217
|
-
--mdw-ink: var(--mdw-alias-#{$aliasKey}-ink-contrast);
|
|
218
|
-
}
|
|
219
|
-
&[mdw-ink^="#{$aliasKey} light"] {
|
|
220
|
-
--mdw-ink: var(--mdw-palette-#{$aliasKey}-ink-light);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
@each $tone in $ink-tones {
|
|
225
|
-
&[mdw-ink~="#{$tone}"] {
|
|
226
|
-
--mdw-ink: var(--mdw-ink-#{$tone});
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/** Ink Opacity **/
|
|
232
|
-
.mdw-theme {
|
|
233
|
-
&[mdw-ink~="solid"] {
|
|
234
|
-
--mdw-ink-opacity: 1;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
&[mdw-ink~="high"] {
|
|
238
|
-
--mdw-ink-opacity: var(--mdw-high-opacity);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
&[mdw-ink~="medium"] {
|
|
242
|
-
--mdw-ink-opacity: var(--mdw-medium-opacity);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
&[mdw-ink~="inactive"] {
|
|
246
|
-
--mdw-ink-opacity: var(--mdw-inactive-opacity);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
&[mdw-ink~="divider"] {
|
|
250
|
-
--mdw-ink-opacity: var(--mdw-divider-opacity);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
/** Border Ink **/
|
|
255
|
-
|
|
256
|
-
.mdw-theme {
|
|
257
|
-
&[mdw-border-ink] {
|
|
258
|
-
border-color: RGBA(var(--mdw-ink), var(--mdw-divider-opacity));
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
&[mdw-border-ink="default"] {
|
|
262
|
-
border-color: RGBA(var(--mdw-ink-default), var(--mdw-divider-opacity));
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
&[mdw-border-ink="none"] {
|
|
266
|
-
border-color: transparent;
|
|
267
|
-
}
|
|
268
|
-
}
|