mixin@mixin css-reset { … }A simple CSS reset for react-md that:
html and body to be full height without any padding or
margin to ensure your app can utilize the full viewporthtml
elementbody element on iOS for
"close on outside click" behavior-webkit-tap-highlight-color for touch devicesThis should not be used when using the styles mixin since it is included by default.
mixin@mixin css-utils($disable-layer: false) { … }Provides all the css utility classes for react-md. Not including these styles will cause most components to look incorrect.
This should not be used when using the styles mixin since it is included by default.
| Name | Description | Type | Default Value |
|---|---|---|---|
$disable-layer | Set this to | Boolean | false |
mixin@mixin use-light-theme { … }Used to apply all the light theme variables at once and will only include features/components that have not been disabled.
@use "@react-md/core";
.light-theme {
@include core.use-light-theme;
}mixin@mixin use-dark-theme { … }Used to apply all the dark theme variables at once and will only include features/components that have not been disabled.
@use "@react-md/core";
.dark-theme {
@include core.use-dark-theme;
}mixin@mixin variables { … }Used to apply all the variables at once and will only include features/components that have not been disabled.
This should only be used when $disable-default-root-theme has been set to
true since it is included in the styles mixin by default.
@use "@react-md/core" with (
$disable-default-root-theme: true
);
@include core.styles;
:root {
@include core.variables;
}mixin@mixin styles($disable-layer: false, $disable-layer-order: $disable-layer, $disable-reset: false, $disable-css-utils: false) { … }Generates all the styles for react-md respecting all feature flags.
| Name | Description | Type | Default Value |
|---|---|---|---|
$disable-layer | Set this to | Boolean | false |
$disable-layer-order | Set this to | Boolean | $disable-layer |
$disable-reset | Set this to | Boolean | false |
$disable-css-utils | Set this to | Boolean | false |
@use "@react-md/core";
@include core.styles;