1
0
Fork 0
freesewing/packages/mui-theme
Joost De Cock 48c83f1710 🔖 v2.0.2
- Added bandLength option to fit optiongroup (it was missing)

 - [#104](https://github.com/freesewing/freesewing.org/issues/104): Changed `onDragEnd` to `onChangeCommitted` in slider element (change in material-ui API when slider came out of beta)
 - Workbench now also lets you preload a `withBreasts` set of measurements
 - DraftConfigurator now properly styles pattern options 3 levels deep
 - [#105](https://github.com/freesewing/freesewing.org/issues/105): Moved state change in render loop to useEffect

 - Updated dependencies

 - Added missing `file-saver` dependency

 - Updated styles for DraftConfigurator component for pattern options 3 levels deep

 - [#90](https://github.com/freesewing/freesewing/issues/90): Added missing option translations for Benjamin, Florent, Sandy, Shin, and Theo

 - [#76](https://github.com/freesewing/freesewing.org/issues/76): Fixed a typo in Jaeger that was causing the side vent length to be wrong

 - [#100](https://github.com/freesewing/freesewing.org/issues/100): Updated simon with more sensible defaults for ease options
2019-09-06 19:05:07 +02:00
..
src 🎨 Updated prettier config 2019-08-03 15:03:33 +02:00
CHANGELOG.md 🔖 v2.0.2 2019-09-06 19:05:07 +02:00
info.md 🔧 Switched to centrally managed README files 2019-04-19 20:09:30 +02:00
package.json 🔖 v2.0.2 2019-09-06 19:05:07 +02:00
README.md 🔧 Reconfigure packages 2019-08-25 17:23:14 +02:00
rollup.config.js 🔧 Updated rollup config 2019-07-22 22:32:16 +02:00

Freesewing logo
FreeSewing v2

An open source platform for made-to-measure sewing patterns

@freesewing/mui-theme on NPM License: MIT Code quality on DeepScan Open issues tagged pkg:mui-theme

Follow @freesewing_org on Twitter Chat with us on Gitter Become a FreeSewing Patron Follow @freesewing_org on Twitter

@freesewing/mui-theme

A Material-UI theme for FreeSewing web UIs

Getting the theme

After installing @freesewing/mui-theme, import it:

import createTheme from "@freesewing/mui-theme";

The default export (createTheme in our example above) is a method that calls createMuiTheme under the hood. It takes a single argument, the theme name:

object createTheme(string themeName = "light")

If the name you pass it is dark you'll get the dark theme. Anything else, and you'll get the light theme.

Using the theme

To use this theme, you need to pass it as the theme prop to muiThemeProvider:

<MuiThemeProvider theme={createTheme(true)}>
  // ... your app here
</MuiThemeProvider>

See the Material-UI docs on themes for more details.

About FreeSewing 🤔

Where the world of makers and developers collide, that's where you'll find FreeSewing.

Our core library is a batteries-included toolbox for parametric design of sewing patterns. It's a modular system (check our list of plugins and getting started is as simple as:

npm init freesewing-pattern

The [getting started] section on freesewing.dev is a good entrypoint to our documentation, but you'll find a lot more there, including our API documentation, as well as examples, and best practices.

If you're a maker, checkout freesewing.org where you can generate our sewing patterns adapted to your measurements.

Support FreeSewing: Become a patron 🥰

FreeSewing is an open source project run by a community, and financially supported by our patrons.

If you feel what we do is worthwhile, you too should become a patron.

License: MIT 🤓

© Joost De Cock.
See the license file for details.

Where to get help 🤯

Our chatroom on Gitter is the best place to ask questions, share your feedback, or just hang out.

If you want to report a problem, please create an issue.