Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit 5f62302

Browse files
docs: add MaterialAppMin
Signed-off-by: Florian-Schoenherr <[email protected]>
1 parent 6320085 commit 5f62302

File tree

6 files changed

+55
-16
lines changed

6 files changed

+55
-16
lines changed

packages/api-generator/dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"version": 3,
3+
"name": "MaterialAppMin",
4+
"data": [
5+
{
6+
"visibility": "public",
7+
"description": null,
8+
"keywords": [],
9+
"name": "theme",
10+
"kind": "let",
11+
"static": false,
12+
"readonly": false,
13+
"type": {
14+
"kind": "type",
15+
"text": "string",
16+
"type": "string"
17+
},
18+
"defaultValue": "light"
19+
}
20+
],
21+
"computed": [],
22+
"methods": [],
23+
"components": [],
24+
"description": null,
25+
"keywords": [],
26+
"events": [],
27+
"slots": [
28+
{
29+
"name": "default",
30+
"description": null,
31+
"visibility": "public",
32+
"parameters": []
33+
}
34+
],
35+
"refs": []
36+
}

packages/api-generator/src/Slider.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -240,21 +240,6 @@
240240
},
241241
"defaultValue": null
242242
},
243-
{
244-
"visibility": "public",
245-
"description": null,
246-
"keywords": [],
247-
"name": "hint",
248-
"kind": "let",
249-
"static": false,
250-
"readonly": false,
251-
"type": {
252-
"kind": "type",
253-
"text": "string",
254-
"type": "string"
255-
},
256-
"defaultValue": ""
257-
},
258243
{
259244
"visibility": "public",
260245
"description": null,

packages/api-generator/src/all.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"ListItem",
3333
"ListItemGroup",
3434
"MaterialApp",
35+
"MaterialAppMin",
3536
"Menu",
3637
"NavigationDrawer",
3738
"Overlay",

packages/api-generator/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export { default as ListGroup } from './ListGroup.json';
3131
export { default as ListItem } from './ListItem.json';
3232
export { default as ListItemGroup } from './ListItemGroup.json';
3333
export { default as MaterialApp } from './MaterialApp.json';
34+
export { default as MaterialAppMin } from './MaterialAppMin.json';
3435
export { default as Menu } from './Menu.json';
3536
export { default as NavigationDrawer } from './NavigationDrawer.json';
3637
export { default as Overlay } from './Overlay.json';

packages/docs/src/routes/components/material-app.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ related:
1212

1313
This component is the base for Svelte Materialify and helps you to bootstrap your app. All other svelte materialify components are required to be inside of this component in order for them to properly inherit styles and helpers. `MaterialApp` should ideally only be used once inside your app.
1414

15+
<Components.Alert type="warning">
16+
If you don't want our css utility classes or typography styles, use <code>MaterialAppMin</code> instead! It only provides ress.css, theming and colors.
17+
</Components.Alert>
18+
1519
## API
1620

1721
- [MaterialApp](/api/MaterialApp/)
22+
- [MaterialAppMin](/api/MaterialAppMin/)
1823

1924
## Usage
2025

@@ -47,3 +52,14 @@ Suppose if you want your `div` to be dark themed no matter what the theme of the
4752
<div class="theme--dark">...</div>
4853
</MaterialApp>
4954
```
55+
56+
## Remove css helpers, defaults and typography
57+
58+
If you want to use your own heading styles, fonts, etc. and just want theming and colors out of the box:
59+
60+
```html
61+
<!-- Min version -->
62+
<MaterialAppMin {theme}>
63+
...
64+
</MaterialAppMin>
65+
```

0 commit comments

Comments
 (0)