This project aims to create the Sass counterpart of the material-ui CSS framework, which is written using Less. (see [this issue] (mui/material-ui#44))
The project is at an early stage: check the status below. Pull requests welcome :-)
To help the conversion from Less to Sass, we could run locally the material-ui documentation site and preview our changes from there. After starting the documention server, a gulp watch task overwrites the site's main.css
with our Sass-compiled version.
This obviously means we need to sassify also the documentation site, but that's not the hard part :)
After running npm install
, start the documentation site from the node_modules
directory:
cd node_modules/material-ui/docs
npm install
gulp
Open another tab/windows of the terminal, and run
gulp
to watch the ./scss/main.scss
file and overwrite the main.css
file used by the documentation site.
While editing our Sass files, we will see a live preview of our changes.
Here a list of the files that need to be done yet. PS. The [ ]
is an empty checkbox :(
scss
├── components
│ ├── [ ] app-bar.scss
│ ├── [ ] card.scss
│ ├── [ ] checkbox.scss
│ ├── [ ] components.scss
│ ├── [ ] dialog.scss
│ ├── [ ] drop-down-icon.scss
│ ├── [ ] drop-down-menu.scss
│ ├── [ ] enhanced-button.scss
│ ├── [ ] flat-button.scss
│ ├── [ ] floating-action-button.scss
│ ├── [ ] icon-button.scss
│ ├── [ ] icon.scss
│ ├── [ ] input.scss
│ ├── [ ] left-nav.scss
│ ├── [ ] menu.scss
│ ├── [ ] paper-button.scss
│ ├── [ ] paper.scss
│ ├── [ ] radio-button.scss
│ ├── [ ] raised-button.scss
│ ├── [ ] ripple.scss
│ ├── [ ] subheader.scss
│ ├── [ ] table.scss
│ ├── [ ] toast.scss
│ ├── [ ] toggle.scss
│ └── [ ] toolbar.scss
├── [ ] components.scss
├── core
│ ├── [ ] base.scss
│ ├── [ ] core.scss
│ ├── [ ] keylines.scss
│ ├── [ ] layouts.scss
│ └── [ ] typography.scss
├── [ ] main.scss
├── mixins
│ ├── [ ] clearfix.scss
│ ├── [ ] lesshat.scss
│ ├── [ ] mixins.scss
│ ├── [ ] no-wrap.scss
│ ├── [ ] ripple.scss
│ └── [ ] transitions.scss
├── resets
│ └── [ ] typography-resets.scss
├── [ ] scaffolding.scss
└── variables
├── [ ] colors.scss
├── [ ] custom-variables.scss
├── [ ] media-queries.scss
└── [ ] spacing.scss