@mekari/pixel3-theme 0.2.0-dev.1 → 0.2.0-dev.3

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.
@@ -0,0 +1,9 @@
1
+ declare const globalFontface: {
2
+ Inter: {
3
+ src: string[];
4
+ fontStyle: string;
5
+ fontWeight: string;
6
+ }[];
7
+ };
8
+
9
+ export { globalFontface };
@@ -0,0 +1,9 @@
1
+ declare const globalFontface: {
2
+ Inter: {
3
+ src: string[];
4
+ fontStyle: string;
5
+ fontWeight: string;
6
+ }[];
7
+ };
8
+
9
+ export { globalFontface };
package/dist/index.js CHANGED
@@ -1249,6 +1249,7 @@ var badgeRecipe = (0, import_dev13.defineRecipe)({
1249
1249
  base: {
1250
1250
  display: "inline-flex",
1251
1251
  alignItems: "center",
1252
+ justifyContent: "center",
1252
1253
  borderRadius: "999px"
1253
1254
  },
1254
1255
  variants: {
@@ -1269,15 +1270,17 @@ var badgeRecipe = (0, import_dev13.defineRecipe)({
1269
1270
  sm: {
1270
1271
  fontSize: "xs",
1271
1272
  fontWeight: "semiBold",
1272
- lineHeight: "sm",
1273
+ lineHeight: "0",
1273
1274
  letterSpacing: "normal",
1275
+ minWidth: "4",
1274
1276
  height: "4"
1275
1277
  },
1276
1278
  md: {
1277
1279
  fontSize: "md",
1278
1280
  fontWeight: "regular",
1279
- lineHeight: "md",
1281
+ lineHeight: "0",
1280
1282
  letterSpacing: "normal",
1283
+ minWidth: "5",
1281
1284
  height: "5"
1282
1285
  }
1283
1286
  }
@@ -4321,34 +4324,43 @@ var slotRecipes = {
4321
4324
  // src/text-styles.ts
4322
4325
  var import_dev42 = require("@pandacss/dev");
4323
4326
  var textStyles = (0, import_dev42.defineTextStyles)({
4324
- overline: { value: { fontSize: "xs", lineHeight: "xs" } },
4327
+ overline: {
4328
+ value: {
4329
+ fontFamily: "var(--font-inter)",
4330
+ fontSize: "xs",
4331
+ lineHeight: "xs"
4332
+ }
4333
+ },
4325
4334
  body: {
4326
- sm: { value: { fontSize: "sm", lineHeight: "2xl" } },
4327
- md: { value: { fontSize: "md", lineHeight: "3xl" } }
4335
+ sm: { value: { fontFamily: "var(--font-inter)", fontSize: "sm", lineHeight: "2xl" } },
4336
+ md: { value: { fontFamily: "var(--font-inter)", fontSize: "md", lineHeight: "3xl" } }
4328
4337
  },
4329
4338
  label: {
4330
- sm: { value: { fontSize: "sm", lineHeight: "sm" } },
4331
- md: { value: { fontSize: "md", lineHeight: "lg" } }
4339
+ sm: { value: { fontFamily: "var(--font-inter)", fontSize: "sm", lineHeight: "sm" } },
4340
+ md: { value: { fontFamily: "var(--font-inter)", fontSize: "md", lineHeight: "lg" } }
4332
4341
  },
4333
4342
  h3: {
4334
4343
  value: {
4344
+ fontFamily: "var(--font-inter)",
4335
4345
  fontSize: "lg",
4336
4346
  lineHeight: "xl",
4337
- fontWeight: "semiBold !important"
4347
+ fontWeight: "semiBold"
4338
4348
  }
4339
4349
  },
4340
4350
  h2: {
4341
4351
  value: {
4352
+ fontFamily: "var(--font-inter)",
4342
4353
  fontSize: "xl",
4343
4354
  lineHeight: "md",
4344
- fontWeight: "semiBold !important"
4355
+ fontWeight: "semiBold"
4345
4356
  }
4346
4357
  },
4347
4358
  h1: {
4348
4359
  value: {
4360
+ fontFamily: "var(--font-inter)",
4349
4361
  fontSize: "2xl",
4350
4362
  lineHeight: "sm",
4351
- fontWeight: "semiBold !important"
4363
+ fontWeight: "semiBold"
4352
4364
  }
4353
4365
  }
4354
4366
  });
@@ -4706,6 +4718,39 @@ var tokens = (0, import_dev53.defineTokens)({
4706
4718
  zIndex
4707
4719
  });
4708
4720
 
4721
+ // src/fonts.ts
4722
+ var globalFontface = {
4723
+ Inter: [
4724
+ {
4725
+ src: [
4726
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-Regular.woff2") format("woff2")',
4727
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-Regular.ttf") format("truetype")'
4728
+ ],
4729
+ fontStyle: "normal",
4730
+ fontWeight: "400"
4731
+ // fontDisplay: 'swap'
4732
+ },
4733
+ {
4734
+ src: [
4735
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBold.woff2") format("woff2")',
4736
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBold.ttf") format("truetype")'
4737
+ ],
4738
+ fontStyle: "normal",
4739
+ fontWeight: "600"
4740
+ // fontDisplay: 'swap'
4741
+ },
4742
+ {
4743
+ src: [
4744
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBoldItalic.woff2") format("woff2")',
4745
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBoldItalic.ttf") format("truetype")'
4746
+ ],
4747
+ fontStyle: "italic",
4748
+ fontWeight: "600"
4749
+ // fontDisplay: 'swap'
4750
+ }
4751
+ ]
4752
+ };
4753
+
4709
4754
  // src/index.ts
4710
4755
  var preset = (0, import_dev54.definePreset)({
4711
4756
  name: "@mekari/pixel3-theme",
@@ -4720,7 +4765,11 @@ var preset = (0, import_dev54.definePreset)({
4720
4765
  }
4721
4766
  },
4722
4767
  conditions,
4723
- globalCss
4768
+ globalFontface,
4769
+ globalCss,
4770
+ globalVars: {
4771
+ "--font-inter": "Inter, sans-serif"
4772
+ }
4724
4773
  });
4725
4774
  var src_default = preset;
4726
4775
 
package/dist/index.mjs CHANGED
@@ -1223,6 +1223,7 @@ var badgeRecipe = defineRecipe6({
1223
1223
  base: {
1224
1224
  display: "inline-flex",
1225
1225
  alignItems: "center",
1226
+ justifyContent: "center",
1226
1227
  borderRadius: "999px"
1227
1228
  },
1228
1229
  variants: {
@@ -1243,15 +1244,17 @@ var badgeRecipe = defineRecipe6({
1243
1244
  sm: {
1244
1245
  fontSize: "xs",
1245
1246
  fontWeight: "semiBold",
1246
- lineHeight: "sm",
1247
+ lineHeight: "0",
1247
1248
  letterSpacing: "normal",
1249
+ minWidth: "4",
1248
1250
  height: "4"
1249
1251
  },
1250
1252
  md: {
1251
1253
  fontSize: "md",
1252
1254
  fontWeight: "regular",
1253
- lineHeight: "md",
1255
+ lineHeight: "0",
1254
1256
  letterSpacing: "normal",
1257
+ minWidth: "5",
1255
1258
  height: "5"
1256
1259
  }
1257
1260
  }
@@ -4295,34 +4298,43 @@ var slotRecipes = {
4295
4298
  // src/text-styles.ts
4296
4299
  import { defineTextStyles } from "@pandacss/dev";
4297
4300
  var textStyles = defineTextStyles({
4298
- overline: { value: { fontSize: "xs", lineHeight: "xs" } },
4301
+ overline: {
4302
+ value: {
4303
+ fontFamily: "var(--font-inter)",
4304
+ fontSize: "xs",
4305
+ lineHeight: "xs"
4306
+ }
4307
+ },
4299
4308
  body: {
4300
- sm: { value: { fontSize: "sm", lineHeight: "2xl" } },
4301
- md: { value: { fontSize: "md", lineHeight: "3xl" } }
4309
+ sm: { value: { fontFamily: "var(--font-inter)", fontSize: "sm", lineHeight: "2xl" } },
4310
+ md: { value: { fontFamily: "var(--font-inter)", fontSize: "md", lineHeight: "3xl" } }
4302
4311
  },
4303
4312
  label: {
4304
- sm: { value: { fontSize: "sm", lineHeight: "sm" } },
4305
- md: { value: { fontSize: "md", lineHeight: "lg" } }
4313
+ sm: { value: { fontFamily: "var(--font-inter)", fontSize: "sm", lineHeight: "sm" } },
4314
+ md: { value: { fontFamily: "var(--font-inter)", fontSize: "md", lineHeight: "lg" } }
4306
4315
  },
4307
4316
  h3: {
4308
4317
  value: {
4318
+ fontFamily: "var(--font-inter)",
4309
4319
  fontSize: "lg",
4310
4320
  lineHeight: "xl",
4311
- fontWeight: "semiBold !important"
4321
+ fontWeight: "semiBold"
4312
4322
  }
4313
4323
  },
4314
4324
  h2: {
4315
4325
  value: {
4326
+ fontFamily: "var(--font-inter)",
4316
4327
  fontSize: "xl",
4317
4328
  lineHeight: "md",
4318
- fontWeight: "semiBold !important"
4329
+ fontWeight: "semiBold"
4319
4330
  }
4320
4331
  },
4321
4332
  h1: {
4322
4333
  value: {
4334
+ fontFamily: "var(--font-inter)",
4323
4335
  fontSize: "2xl",
4324
4336
  lineHeight: "sm",
4325
- fontWeight: "semiBold !important"
4337
+ fontWeight: "semiBold"
4326
4338
  }
4327
4339
  }
4328
4340
  });
@@ -4680,6 +4692,39 @@ var tokens = defineTokens11({
4680
4692
  zIndex
4681
4693
  });
4682
4694
 
4695
+ // src/fonts.ts
4696
+ var globalFontface = {
4697
+ Inter: [
4698
+ {
4699
+ src: [
4700
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-Regular.woff2") format("woff2")',
4701
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-Regular.ttf") format("truetype")'
4702
+ ],
4703
+ fontStyle: "normal",
4704
+ fontWeight: "400"
4705
+ // fontDisplay: 'swap'
4706
+ },
4707
+ {
4708
+ src: [
4709
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBold.woff2") format("woff2")',
4710
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBold.ttf") format("truetype")'
4711
+ ],
4712
+ fontStyle: "normal",
4713
+ fontWeight: "600"
4714
+ // fontDisplay: 'swap'
4715
+ },
4716
+ {
4717
+ src: [
4718
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBoldItalic.woff2") format("woff2")',
4719
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBoldItalic.ttf") format("truetype")'
4720
+ ],
4721
+ fontStyle: "italic",
4722
+ fontWeight: "600"
4723
+ // fontDisplay: 'swap'
4724
+ }
4725
+ ]
4726
+ };
4727
+
4683
4728
  // src/index.ts
4684
4729
  var preset = definePreset({
4685
4730
  name: "@mekari/pixel3-theme",
@@ -4694,7 +4739,11 @@ var preset = definePreset({
4694
4739
  }
4695
4740
  },
4696
4741
  conditions,
4697
- globalCss
4742
+ globalFontface,
4743
+ globalCss,
4744
+ globalVars: {
4745
+ "--font-inter": "Inter, sans-serif"
4746
+ }
4698
4747
  });
4699
4748
  var src_default = preset;
4700
4749
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mekari/pixel3-theme",
3
3
  "description": "Theme for mekari pixel 3",
4
- "version": "0.2.0-dev.1",
4
+ "version": "0.2.0-dev.3",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",
7
7
  "files": [
package/src/fonts.ts ADDED
@@ -0,0 +1,31 @@
1
+ export const globalFontface = {
2
+ Inter: [
3
+ {
4
+ src: [
5
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-Regular.woff2") format("woff2")',
6
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-Regular.ttf") format("truetype")'
7
+ ],
8
+ fontStyle: 'normal',
9
+ fontWeight: '400',
10
+ // fontDisplay: 'swap'
11
+ },
12
+ {
13
+ src: [
14
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBold.woff2") format("woff2")',
15
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBold.ttf") format("truetype")'
16
+ ],
17
+ fontStyle: 'normal',
18
+ fontWeight: '600',
19
+ // fontDisplay: 'swap'
20
+ },
21
+ {
22
+ src: [
23
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBoldItalic.woff2") format("woff2")',
24
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBoldItalic.ttf") format("truetype")'
25
+ ],
26
+ fontStyle: 'italic',
27
+ fontWeight: '600',
28
+ // fontDisplay: 'swap'
29
+ },
30
+ ]
31
+ }
package/src/index.ts CHANGED
@@ -7,6 +7,7 @@ import { keyframes } from './keyframes'
7
7
  import { recipes, slotRecipes } from './recipes'
8
8
  import { textStyles } from './text-styles'
9
9
  import { tokens } from './tokens'
10
+ import { globalFontface } from './fonts'
10
11
 
11
12
  const preset: Preset = definePreset({
12
13
  name: '@mekari/pixel3-theme',
@@ -21,7 +22,11 @@ const preset: Preset = definePreset({
21
22
  }
22
23
  },
23
24
  conditions,
24
- globalCss
25
+ globalFontface,
26
+ globalCss,
27
+ globalVars: {
28
+ '--font-inter': 'Inter, sans-serif'
29
+ }
25
30
  })
26
31
 
27
32
  export default preset
@@ -6,7 +6,8 @@ const badgeRecipe = defineRecipe({
6
6
  base: {
7
7
  display: 'inline-flex',
8
8
  alignItems: 'center',
9
- borderRadius: '999px'
9
+ justifyContent: 'center',
10
+ borderRadius: '999px',
10
11
  },
11
12
 
12
13
  variants: {
@@ -27,15 +28,17 @@ const badgeRecipe = defineRecipe({
27
28
  sm: {
28
29
  fontSize: 'xs',
29
30
  fontWeight: 'semiBold',
30
- lineHeight: 'sm',
31
+ lineHeight: '0',
31
32
  letterSpacing: 'normal',
33
+ minWidth: '4',
32
34
  height: '4'
33
35
  },
34
36
  md: {
35
37
  fontSize: 'md',
36
38
  fontWeight: 'regular',
37
- lineHeight: 'md',
39
+ lineHeight: '0',
38
40
  letterSpacing: 'normal',
41
+ minWidth: '5',
39
42
  height: '5'
40
43
  }
41
44
  }
@@ -1,34 +1,43 @@
1
1
  import { defineTextStyles } from '@pandacss/dev'
2
2
 
3
3
  export const textStyles = defineTextStyles({
4
- overline: { value: { fontSize: 'xs', lineHeight: 'xs' } },
4
+ overline: {
5
+ value: {
6
+ fontFamily: 'var(--font-inter)',
7
+ fontSize: 'xs',
8
+ lineHeight: 'xs'
9
+ }
10
+ },
5
11
  body: {
6
- sm: { value: { fontSize: 'sm', lineHeight: '2xl' } },
7
- md: { value: { fontSize: 'md', lineHeight: '3xl' } }
12
+ sm: { value: { fontFamily: 'var(--font-inter)', fontSize: 'sm', lineHeight: '2xl' } },
13
+ md: { value: { fontFamily: 'var(--font-inter)', fontSize: 'md', lineHeight: '3xl' } }
8
14
  },
9
15
  label: {
10
- sm: { value: { fontSize: 'sm', lineHeight: 'sm' } },
11
- md: { value: { fontSize: 'md', lineHeight: 'lg' } }
16
+ sm: { value: { fontFamily: 'var(--font-inter)', fontSize: 'sm', lineHeight: 'sm' } },
17
+ md: { value: { fontFamily: 'var(--font-inter)', fontSize: 'md', lineHeight: 'lg' } }
12
18
  },
13
19
  h3: {
14
20
  value: {
21
+ fontFamily: 'var(--font-inter)',
15
22
  fontSize: 'lg',
16
23
  lineHeight: 'xl',
17
- fontWeight: 'semiBold !important'
24
+ fontWeight: 'semiBold'
18
25
  }
19
26
  },
20
27
  h2: {
21
28
  value: {
29
+ fontFamily: 'var(--font-inter)',
22
30
  fontSize: 'xl',
23
31
  lineHeight: 'md',
24
- fontWeight: 'semiBold !important'
32
+ fontWeight: 'semiBold'
25
33
  }
26
34
  },
27
35
  h1: {
28
36
  value: {
37
+ fontFamily: 'var(--font-inter)',
29
38
  fontSize: '2xl',
30
39
  lineHeight: 'sm',
31
- fontWeight: 'semiBold !important'
40
+ fontWeight: 'semiBold'
32
41
  }
33
42
  }
34
43
  })