mixin
@mixin css-reset { … }
mixin
@mixin css-utils($disable-layer: false) { … }
mixin
@mixin use-light-theme { … }
@use "@react-md/core";
.light-theme {
@include core.use-light-theme;
}
mixin
@mixin use-dark-theme { … }
@use "@react-md/core";
.dark-theme {
@include core.use-dark-theme;
}
mixin
@mixin variables { … }
@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) { … }
Name | Description | Type | Default Value |
---|---|---|---|
$disable-layer | Boolean | false | |
$disable-layer-order | Boolean | $disable-layer | |
$disable-reset | Boolean | false | |
$disable-css-utils | Boolean | false |
@use "@react-md/core";
@include core.styles;
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.
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.
Set this to true
to prevent the css utils from being wrapped in @layer utils { ...styles... }
Used to apply all the light theme variables at once and will only include features/components that have not been disabled.
Used to apply all the dark theme variables at once and will only include features/components that have not been disabled.
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.
Generates all the styles for react-md respecting all feature flags.
Set this to true
if all the react-md styles should not be wrapped in a
css layer. You normally want this so it is easier to override react-md styles.
Set this to true
to remove the layer ordering.
Set this to true
to prevent the
css-reset
from being applied. This is only useful if you want to call the css-reset
yourself since most components will not work correctly without this reset.
Set this to true
to prevent the css-utils
from being applied. This is only useful if you want to call the css-utils
yourself since most components will not work correctly without this reset.