You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: INSTALL.md
+53-2Lines changed: 53 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,10 @@ If you want the Material Icon, Roboto, and Roboto Mono fonts, be sure to include
50
50
51
51
## Installing a Theme
52
52
53
+
### A Custom Theme
54
+
55
+
Check out the [theming instructions](/THEMING.md) for setting up a custom theme.
56
+
53
57
### The Default Theme
54
58
55
59
You can use the prebuilt "bare.css" file from the "svelte-material-ui" package. If you use this option you _can_ mostly customize your theme, but your [theming options](/THEMING.md#theming-the-bare-css) are more limited.
If that's not working (probably because your dependencies aren't copied to your build folder), you can also use a CDN. Just be sure you update the version here when you update to a new version of SMUI. (This may already be an outdated version, so update it now too.)
@@ -73,6 +79,51 @@ If that's not working (probably because your dependencies aren't copied to your
73
79
74
80
You can also use the "bare.css" files from the individual packages if you don't use many components and want smaller file sizes.
75
81
76
-
### A Custom Theme
82
+
### A Premade Theme
77
83
78
-
Check out the [theming instructions](/THEMING.md) for setting up a custom theme.
84
+
There are some premade themes as well in the "svelte-material-ui" package, including dark mode versions. These are the same themes that appear on the demo site. You won't find the CSS in the repo, because they're not git tracked, but here's a list.
I spent a day [flexing every graphic design muscle in my body](https://i.kym-cdn.com/entries/icons/original/000/018/929/graphic_design_is_my_passion.png), and made some THEMES! SMUI 7 can now be styled with a custom theme, the default theme, or [brand spanking new premade themes](https://sveltematerialui.com/INSTALL.md#a-premade-theme). This makes it much easier to get started with SMUI.
13
+
10
14
## Breaking Changes
11
15
12
16
- The `@smui/common/elements` components are gone. Just set the `tag` prop on components now (like `<Button tag="div">`).
Copy file name to clipboardExpand all lines: THEMING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,7 @@ You can [add Material typography](/TYPOGRAPHY.md) as the default for your app.
118
118
119
119
## Theming the Bare CSS
120
120
121
-
If you use the bare CSS, you can set a subset of the theme options with CSS variables. Note that not all of the colors in SMUI read from CSS variables, so some parts will still use the colors defined in the original Sass compile. Below is a copy of the variables from the CSS on the SMUI website. You can use this as a starting point for your own theme.
121
+
If you use the bare CSS (or a premade theme), you can set a subset of the theme options with CSS variables. Note that not all of the colors in SMUI read from CSS variables, so some parts will still use the colors defined in the original Sass compile. Below is a copy of the variables from the CSS on the SMUI website. You can use this as a starting point for your own theme.
"build": "npm run build-bare && npm run build-svelte-light && npm run build-svelte-dark && npm run build-fixation-light && npm run build-fixation-dark && npm run build-material-light && npm run build-material-dark && npm run build-metro-light && npm run build-metro-dark && npm run build-unity-light && npm run build-unity-dark",
0 commit comments