vitrify 0.17.16 → 0.17.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ const preflights = [
4
4
  body {
5
5
  min-width: 100px;
6
6
  min-height: 100%;
7
- font-family: "Roboto", "-apple-system", "Helvetica Neue", Helvetica, Arial, sans-serif;
7
+ font-family: ${theme.typography.fontFamily};
8
8
  -ms-text-size-adjust: 100%;
9
9
  -webkit-text-size-adjust: 100%;
10
10
  -webkit-font-smoothing: antialiased;
@@ -12,6 +12,8 @@ body {
12
12
  font-smoothing: antialiased;
13
13
  line-height: 1.5;
14
14
  font-size: 14px;
15
+ margin: 0;
16
+ box-sizing: border-box
15
17
  }
16
18
 
17
19
  h1 {
@@ -1772,10 +1772,6 @@ textarea {
1772
1772
  margin: 0;
1773
1773
  }
1774
1774
 
1775
- html, body
1776
- margin: 0
1777
- box-sizing: border-box
1778
-
1779
1775
  /* beasties:include end */`
1780
1776
  }
1781
1777
  ].concat(QBreadcrumbsPreflights, QCheckboxPreflights, QChipPreflights, QCircularProgressPreflights, QDialogPreflights, QFieldPreflights, QLayoutPreflights, QLinearProgressPreflights, QRadioPreflights, QSelectPreflights, QSpinnerPreflights, QSkeletonPreflights, QTablePreflights, QTogglePreflights, QTreePreflights, ColorPreflights, DarkPreflights, HelperPreflights, MousePreflights, TypographyPreflights, VisibilityPreflights, TransitionPreflights, SizePreflights),
@@ -1,4 +1,7 @@
1
1
  const defaultTheme = {
2
+ typography: {
3
+ fontFamily: '"Roboto", "-apple-system", "Helvetica Neue", Helvetica, Arial, sans-serif'
4
+ },
2
5
  breakpoints: {
3
6
  xs: '0',
4
7
  sm: '600px',
@@ -1,4 +1,7 @@
1
1
  export interface QuasarTheme {
2
+ typography: {
3
+ fontFamily: string;
4
+ };
2
5
  breakpoints: {
3
6
  xs: string;
4
7
  sm: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitrify",
3
- "version": "0.17.16",
3
+ "version": "0.17.17",
4
4
  "license": "MIT",
5
5
  "author": "Stefan van Herwijnen",
6
6
  "description": "Vite as your Full Stack development tool",
@@ -7,7 +7,7 @@ const preflights: Preflight<QuasarTheme>[] = [
7
7
  body {
8
8
  min-width: 100px;
9
9
  min-height: 100%;
10
- font-family: "Roboto", "-apple-system", "Helvetica Neue", Helvetica, Arial, sans-serif;
10
+ font-family: ${theme.typography.fontFamily};
11
11
  -ms-text-size-adjust: 100%;
12
12
  -webkit-text-size-adjust: 100%;
13
13
  -webkit-font-smoothing: antialiased;
@@ -15,6 +15,8 @@ body {
15
15
  font-smoothing: antialiased;
16
16
  line-height: 1.5;
17
17
  font-size: 14px;
18
+ margin: 0;
19
+ box-sizing: border-box
18
20
  }
19
21
 
20
22
  h1 {
@@ -1881,10 +1881,6 @@ textarea {
1881
1881
  margin: 0;
1882
1882
  }
1883
1883
 
1884
- html, body
1885
- margin: 0
1886
- box-sizing: border-box
1887
-
1888
1884
  /* beasties:include end */`
1889
1885
  }
1890
1886
  ] as Preflight<QuasarTheme>[]
@@ -1,4 +1,7 @@
1
1
  export interface QuasarTheme {
2
+ typography: {
3
+ fontFamily: string
4
+ }
2
5
  breakpoints: {
3
6
  xs: string
4
7
  sm: string
@@ -1145,6 +1148,10 @@ export interface QuasarTheme {
1145
1148
  }
1146
1149
 
1147
1150
  const defaultTheme: QuasarTheme = {
1151
+ typography: {
1152
+ fontFamily:
1153
+ '"Roboto", "-apple-system", "Helvetica Neue", Helvetica, Arial, sans-serif'
1154
+ },
1148
1155
  breakpoints: {
1149
1156
  xs: '0',
1150
1157
  sm: '600px',