@react.material/theme

0.2.3 • Public • Published

Theme

Installation

  • yarn add @react.material/theme

  • npm install --save @react.material/theme

set your theme color (note: sass is not supported for now)

//index.js
import '@react.material/theme';
/*index.css*/

:root {
    --mdc-theme-primary: #9c27b0;
    --mdc-theme-primary-light: #000;
    --mdc-theme-primary-dark: #000;
    --mdc-theme-secondary: #000;
    --mdc-theme-secondary-light: #000;
    --mdc-theme-secondary-dark: #000;
    --mdc-theme-background: #000;
}

/*Checkbox ripple*/
.mdc-checkbox.theme::before, .mdc-checkbox.theme::after {
    background-color: rgba(158, 158, 158, 0.14);
}

you may refer here for more info

/@react.material/theme/

    Package Sidebar

    Install

    npm i @react.material/theme

    Weekly Downloads

    2

    Version

    0.2.3

    License

    Apache-2.0

    Last publish

    Collaborators

    • shawn.thye