@tamagui/theme-base 1.0.0-beta.172 → 1.0.0-beta.189

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,54 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var silkscreenFont_exports = {};
19
+ __export(silkscreenFont_exports, {
20
+ silkscreenFont: () => silkscreenFont
21
+ });
22
+ module.exports = __toCommonJS(silkscreenFont_exports);
23
+ var import_core = require("@tamagui/core");
24
+ const size = {
25
+ 1: 10,
26
+ 2: 11,
27
+ 3: 12,
28
+ 4: 13,
29
+ 5: 14,
30
+ 6: 16,
31
+ 7: 20,
32
+ 8: 22,
33
+ 9: 30,
34
+ 10: 42,
35
+ 11: 52,
36
+ 12: 62,
37
+ 13: 72,
38
+ 14: 92,
39
+ 15: 114,
40
+ 16: 124
41
+ };
42
+ const silkscreenFont = (0, import_core.createFont)({
43
+ family: "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace",
44
+ size,
45
+ lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, v * 1.75])),
46
+ weight: {
47
+ 4: "300"
48
+ },
49
+ letterSpacing: {
50
+ 4: 1,
51
+ 6: 0
52
+ }
53
+ });
54
+ //# sourceMappingURL=silkscreenFont.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/silkscreenFont.tsx"],
4
+ "sourcesContent": ["import { createFont } from '@tamagui/core'\n\nconst size = {\n 1: 10,\n 2: 11,\n 3: 12,\n 4: 13,\n 5: 14,\n 6: 16,\n 7: 20,\n 8: 22,\n 9: 30,\n 10: 42,\n 11: 52,\n 12: 62,\n 13: 72,\n 14: 92,\n 15: 114,\n 16: 124,\n}\n\nexport const silkscreenFont = createFont({\n family: 'Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace',\n size,\n lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, v * 1.75])),\n weight: {\n 4: '300',\n },\n letterSpacing: {\n 4: 1,\n 6: 0,\n },\n})\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA2B;AAE3B,MAAM,OAAO;AAAA,EACX,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEO,MAAM,iBAAiB,4BAAW;AAAA,EACvC,QAAQ;AAAA,EACR;AAAA,EACA,YAAY,OAAO,YAAY,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC;AAAA,EAClF,QAAQ;AAAA,IACN,GAAG;AAAA,EACL;AAAA,EACA,eAAe;AAAA,IACb,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -38,6 +38,7 @@ var import_core = require("@tamagui/core");
38
38
  var import_colors = require("./colors");
39
39
  var import_firaFont = require("./firaFont");
40
40
  var import_interFont = require("./interFont");
41
+ var import_silkscreenFont = require("./silkscreenFont");
41
42
  const size = {
42
43
  true: 20,
43
44
  0: 0,
@@ -62,7 +63,8 @@ const tokens = (0, import_core.createTokens)({
62
63
  font: {
63
64
  title: import_interFont.interFont,
64
65
  body: import_interFont.interFont,
65
- mono: import_firaFont.firaFont
66
+ mono: import_firaFont.firaFont,
67
+ silkscreen: import_silkscreenFont.silkscreenFont
66
68
  },
67
69
  zIndex: {
68
70
  0: 0,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/tokens.tsx"],
4
- "sourcesContent": ["import { createTokens } from '@tamagui/core'\n\nimport { allLightColors, darkColorsPostfixed } from './colors'\nimport { firaFont } from './firaFont'\nimport { interFont } from './interFont'\n\nconst size = {\n true: 20, // for space boolean true\n 0: 0,\n '0.5': 2,\n 1: 6,\n 2: 10,\n 3: 15,\n 4: 20,\n 5: 25,\n 6: 30,\n 7: 40,\n 8: 50,\n 9: 65,\n 10: 75,\n 11: 85,\n 12: 100,\n} as const\n\ntype Sizes = typeof size\ntype SizeKeys = keyof Sizes\n\nconst space: {\n [Key in `-${SizeKeys}` | SizeKeys]: Key extends keyof Sizes ? Sizes[Key] : number\n} = {\n ...size,\n ...Object.fromEntries(Object.entries(size).map(([k, v]) => [`-${k}`, -v])),\n} as any\n\nexport const tokens = createTokens({\n size,\n space,\n font: {\n title: interFont,\n body: interFont,\n mono: firaFont,\n },\n zIndex: {\n 0: 0,\n 1: 100,\n 2: 200,\n 3: 300,\n 4: 400,\n 5: 500,\n },\n color: {\n ...allLightColors,\n ...darkColorsPostfixed,\n },\n radius: {\n 0: 0,\n 1: 3,\n 2: 5,\n 3: 7,\n 4: 9,\n 5: 10,\n 6: 12,\n 7: 16,\n 8: 20,\n 9: 30,\n },\n})\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA6B;AAE7B,oBAAoD;AACpD,sBAAyB;AACzB,uBAA0B;AAE1B,MAAM,OAAO;AAAA,EACX,MAAM;AAAA,EACN,GAAG;AAAA,EACH,OAAO;AAAA,EACP,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAKA,MAAM,QAEF,kCACC,OACA,OAAO,YAAY,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;AAGpE,MAAM,SAAS,8BAAa;AAAA,EACjC;AAAA,EACA;AAAA,EACA,MAAM;AAAA,IACJ,OAAO;AAAA,IACP,MAAM;AAAA,IACN,MAAM;AAAA,EACR;AAAA,EACA,QAAQ;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,OAAO,kCACF,+BACA;AAAA,EAEL,QAAQ;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AACF,CAAC;",
4
+ "sourcesContent": ["import { createTokens } from '@tamagui/core'\n\nimport { allLightColors, darkColorsPostfixed } from './colors'\nimport { firaFont } from './firaFont'\nimport { interFont } from './interFont'\nimport { silkscreenFont } from './silkscreenFont'\n\nconst size = {\n true: 20, // for space boolean true\n 0: 0,\n '0.5': 2,\n 1: 6,\n 2: 10,\n 3: 15,\n 4: 20,\n 5: 25,\n 6: 30,\n 7: 40,\n 8: 50,\n 9: 65,\n 10: 75,\n 11: 85,\n 12: 100,\n} as const\n\ntype Sizes = typeof size\ntype SizeKeys = keyof Sizes\n\nconst space: {\n [Key in `-${SizeKeys}` | SizeKeys]: Key extends keyof Sizes ? Sizes[Key] : number\n} = {\n ...size,\n ...Object.fromEntries(Object.entries(size).map(([k, v]) => [`-${k}`, -v])),\n} as any\n\nexport const tokens = createTokens({\n size,\n space,\n font: {\n title: interFont,\n body: interFont,\n mono: firaFont,\n silkscreen: silkscreenFont,\n },\n zIndex: {\n 0: 0,\n 1: 100,\n 2: 200,\n 3: 300,\n 4: 400,\n 5: 500,\n },\n color: {\n ...allLightColors,\n ...darkColorsPostfixed,\n },\n radius: {\n 0: 0,\n 1: 3,\n 2: 5,\n 3: 7,\n 4: 9,\n 5: 10,\n 6: 12,\n 7: 16,\n 8: 20,\n 9: 30,\n },\n})\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA6B;AAE7B,oBAAoD;AACpD,sBAAyB;AACzB,uBAA0B;AAC1B,4BAA+B;AAE/B,MAAM,OAAO;AAAA,EACX,MAAM;AAAA,EACN,GAAG;AAAA,EACH,OAAO;AAAA,EACP,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAKA,MAAM,QAEF,kCACC,OACA,OAAO,YAAY,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;AAGpE,MAAM,SAAS,8BAAa;AAAA,EACjC;AAAA,EACA;AAAA,EACA,MAAM;AAAA,IACJ,OAAO;AAAA,IACP,MAAM;AAAA,IACN,MAAM;AAAA,IACN,YAAY;AAAA,EACd;AAAA,EACA,QAAQ;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,OAAO,kCACF,+BACA;AAAA,EAEL,QAAQ;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AACF,CAAC;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,35 @@
1
+ import { createFont } from "@tamagui/core";
2
+ const size = {
3
+ 1: 10,
4
+ 2: 11,
5
+ 3: 12,
6
+ 4: 13,
7
+ 5: 14,
8
+ 6: 16,
9
+ 7: 20,
10
+ 8: 22,
11
+ 9: 30,
12
+ 10: 42,
13
+ 11: 52,
14
+ 12: 62,
15
+ 13: 72,
16
+ 14: 92,
17
+ 15: 114,
18
+ 16: 124
19
+ };
20
+ const silkscreenFont = createFont({
21
+ family: "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace",
22
+ size,
23
+ lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, v * 1.75])),
24
+ weight: {
25
+ 4: "300"
26
+ },
27
+ letterSpacing: {
28
+ 4: 1,
29
+ 6: 0
30
+ }
31
+ });
32
+ export {
33
+ silkscreenFont
34
+ };
35
+ //# sourceMappingURL=silkscreenFont.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/silkscreenFont.tsx"],
4
+ "sourcesContent": ["import { createFont } from '@tamagui/core'\n\nconst size = {\n 1: 10,\n 2: 11,\n 3: 12,\n 4: 13,\n 5: 14,\n 6: 16,\n 7: 20,\n 8: 22,\n 9: 30,\n 10: 42,\n 11: 52,\n 12: 62,\n 13: 72,\n 14: 92,\n 15: 114,\n 16: 124,\n}\n\nexport const silkscreenFont = createFont({\n family: 'Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace',\n size,\n lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, v * 1.75])),\n weight: {\n 4: '300',\n },\n letterSpacing: {\n 4: 1,\n 6: 0,\n },\n})\n"],
5
+ "mappings": "AAAA;AAEA,MAAM,OAAO;AAAA,EACX,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEO,MAAM,iBAAiB,WAAW;AAAA,EACvC,QAAQ;AAAA,EACR;AAAA,EACA,YAAY,OAAO,YAAY,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC;AAAA,EAClF,QAAQ;AAAA,IACN,GAAG;AAAA,EACL;AAAA,EACA,eAAe;AAAA,IACb,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -2,6 +2,7 @@ import { createTokens } from "@tamagui/core";
2
2
  import { allLightColors, darkColorsPostfixed } from "./colors";
3
3
  import { firaFont } from "./firaFont";
4
4
  import { interFont } from "./interFont";
5
+ import { silkscreenFont } from "./silkscreenFont";
5
6
  const size = {
6
7
  true: 20,
7
8
  0: 0,
@@ -29,7 +30,8 @@ const tokens = createTokens({
29
30
  font: {
30
31
  title: interFont,
31
32
  body: interFont,
32
- mono: firaFont
33
+ mono: firaFont,
34
+ silkscreen: silkscreenFont
33
35
  },
34
36
  zIndex: {
35
37
  0: 0,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/tokens.tsx"],
4
- "sourcesContent": ["import { createTokens } from '@tamagui/core'\n\nimport { allLightColors, darkColorsPostfixed } from './colors'\nimport { firaFont } from './firaFont'\nimport { interFont } from './interFont'\n\nconst size = {\n true: 20, // for space boolean true\n 0: 0,\n '0.5': 2,\n 1: 6,\n 2: 10,\n 3: 15,\n 4: 20,\n 5: 25,\n 6: 30,\n 7: 40,\n 8: 50,\n 9: 65,\n 10: 75,\n 11: 85,\n 12: 100,\n} as const\n\ntype Sizes = typeof size\ntype SizeKeys = keyof Sizes\n\nconst space: {\n [Key in `-${SizeKeys}` | SizeKeys]: Key extends keyof Sizes ? Sizes[Key] : number\n} = {\n ...size,\n ...Object.fromEntries(Object.entries(size).map(([k, v]) => [`-${k}`, -v])),\n} as any\n\nexport const tokens = createTokens({\n size,\n space,\n font: {\n title: interFont,\n body: interFont,\n mono: firaFont,\n },\n zIndex: {\n 0: 0,\n 1: 100,\n 2: 200,\n 3: 300,\n 4: 400,\n 5: 500,\n },\n color: {\n ...allLightColors,\n ...darkColorsPostfixed,\n },\n radius: {\n 0: 0,\n 1: 3,\n 2: 5,\n 3: 7,\n 4: 9,\n 5: 10,\n 6: 12,\n 7: 16,\n 8: 20,\n 9: 30,\n },\n})\n"],
5
- "mappings": "AAAA;AAEA;AACA;AACA;AAEA,MAAM,OAAO;AAAA,EACX,MAAM;AAAA,EACN,GAAG;AAAA,EACH,OAAO;AAAA,EACP,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAKA,MAAM,QAEF;AAAA,KACC;AAAA,KACA,OAAO,YAAY,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;AAC3E;AAEO,MAAM,SAAS,aAAa;AAAA,EACjC;AAAA,EACA;AAAA,EACA,MAAM;AAAA,IACJ,OAAO;AAAA,IACP,MAAM;AAAA,IACN,MAAM;AAAA,EACR;AAAA,EACA,QAAQ;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,OAAO;AAAA,OACF;AAAA,OACA;AAAA,EACL;AAAA,EACA,QAAQ;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AACF,CAAC;",
4
+ "sourcesContent": ["import { createTokens } from '@tamagui/core'\n\nimport { allLightColors, darkColorsPostfixed } from './colors'\nimport { firaFont } from './firaFont'\nimport { interFont } from './interFont'\nimport { silkscreenFont } from './silkscreenFont'\n\nconst size = {\n true: 20, // for space boolean true\n 0: 0,\n '0.5': 2,\n 1: 6,\n 2: 10,\n 3: 15,\n 4: 20,\n 5: 25,\n 6: 30,\n 7: 40,\n 8: 50,\n 9: 65,\n 10: 75,\n 11: 85,\n 12: 100,\n} as const\n\ntype Sizes = typeof size\ntype SizeKeys = keyof Sizes\n\nconst space: {\n [Key in `-${SizeKeys}` | SizeKeys]: Key extends keyof Sizes ? Sizes[Key] : number\n} = {\n ...size,\n ...Object.fromEntries(Object.entries(size).map(([k, v]) => [`-${k}`, -v])),\n} as any\n\nexport const tokens = createTokens({\n size,\n space,\n font: {\n title: interFont,\n body: interFont,\n mono: firaFont,\n silkscreen: silkscreenFont,\n },\n zIndex: {\n 0: 0,\n 1: 100,\n 2: 200,\n 3: 300,\n 4: 400,\n 5: 500,\n },\n color: {\n ...allLightColors,\n ...darkColorsPostfixed,\n },\n radius: {\n 0: 0,\n 1: 3,\n 2: 5,\n 3: 7,\n 4: 9,\n 5: 10,\n 6: 12,\n 7: 16,\n 8: 20,\n 9: 30,\n },\n})\n"],
5
+ "mappings": "AAAA;AAEA;AACA;AACA;AACA;AAEA,MAAM,OAAO;AAAA,EACX,MAAM;AAAA,EACN,GAAG;AAAA,EACH,OAAO;AAAA,EACP,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAKA,MAAM,QAEF;AAAA,KACC;AAAA,KACA,OAAO,YAAY,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;AAC3E;AAEO,MAAM,SAAS,aAAa;AAAA,EACjC;AAAA,EACA;AAAA,EACA,MAAM;AAAA,IACJ,OAAO;AAAA,IACP,MAAM;AAAA,IACN,MAAM;AAAA,IACN,YAAY;AAAA,EACd;AAAA,EACA,QAAQ;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,OAAO;AAAA,OACF;AAAA,OACA;AAAA,EACL;AAAA,EACA,QAAQ;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AACF,CAAC;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,34 @@
1
+ import { createFont } from "@tamagui/core";
2
+ const size = {
3
+ 1: 10,
4
+ 2: 11,
5
+ 3: 12,
6
+ 4: 13,
7
+ 5: 14,
8
+ 6: 16,
9
+ 7: 20,
10
+ 8: 22,
11
+ 9: 30,
12
+ 10: 42,
13
+ 11: 52,
14
+ 12: 62,
15
+ 13: 72,
16
+ 14: 92,
17
+ 15: 114,
18
+ 16: 124
19
+ };
20
+ const silkscreenFont = createFont({
21
+ family: "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace",
22
+ size,
23
+ lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, v * 1.75])),
24
+ weight: {
25
+ 4: "300"
26
+ },
27
+ letterSpacing: {
28
+ 4: 1,
29
+ 6: 0
30
+ }
31
+ });
32
+ export {
33
+ silkscreenFont
34
+ };
@@ -2,6 +2,7 @@ import { createTokens } from "@tamagui/core";
2
2
  import { allLightColors, darkColorsPostfixed } from "./colors";
3
3
  import { firaFont } from "./firaFont";
4
4
  import { interFont } from "./interFont";
5
+ import { silkscreenFont } from "./silkscreenFont";
5
6
  const size = {
6
7
  true: 20,
7
8
  0: 0,
@@ -29,7 +30,8 @@ const tokens = createTokens({
29
30
  font: {
30
31
  title: interFont,
31
32
  body: interFont,
32
- mono: firaFont
33
+ mono: firaFont,
34
+ silkscreen: silkscreenFont
33
35
  },
34
36
  zIndex: {
35
37
  0: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/theme-base",
3
- "version": "1.0.0-beta.172+0f3fd8dc",
3
+ "version": "1.0.0-beta.189+64107267",
4
4
  "typings": "types",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -16,12 +16,12 @@
16
16
  "clean:build": "tamagui-build clean:build"
17
17
  },
18
18
  "devDependencies": {
19
- "@tamagui/build": "^1.0.0-beta.172+0f3fd8dc",
20
- "@tamagui/colors": "^1.0.0-beta.172+0f3fd8dc",
21
- "@tamagui/core": "^1.0.0-beta.172+0f3fd8dc"
19
+ "@tamagui/build": "^1.0.0-beta.189+64107267",
20
+ "@tamagui/colors": "^1.0.0-beta.189+64107267",
21
+ "@tamagui/core": "^1.0.0-beta.189+64107267"
22
22
  },
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
- "gitHead": "0f3fd8dc83eede20419fb180704eb9ad1d63e814"
26
+ "gitHead": "6410726774260b4de48c270c81a17b168995a3b7"
27
27
  }
@@ -0,0 +1,32 @@
1
+ export declare const silkscreenFont: {
2
+ family: string;
3
+ size: {
4
+ 1: number;
5
+ 2: number;
6
+ 3: number;
7
+ 4: number;
8
+ 5: number;
9
+ 6: number;
10
+ 7: number;
11
+ 8: number;
12
+ 9: number;
13
+ 10: number;
14
+ 11: number;
15
+ 12: number;
16
+ 13: number;
17
+ 14: number;
18
+ 15: number;
19
+ 16: number;
20
+ };
21
+ lineHeight: {
22
+ [k: string]: number;
23
+ };
24
+ weight: {
25
+ 4: string;
26
+ };
27
+ letterSpacing: {
28
+ 4: number;
29
+ 6: number;
30
+ };
31
+ };
32
+ //# sourceMappingURL=silkscreenFont.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"silkscreenFont.d.ts","sourceRoot":"","sources":["../src/silkscreenFont.tsx"],"names":[],"mappings":"AAqBA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWzB,CAAA"}
package/types/tokens.d.ts CHANGED
@@ -11,23 +11,13 @@ export declare const tokens: {
11
11
  7: import("@tamagui/core").Variable;
12
12
  };
13
13
  lineHeight: {
14
- 1: import("@tamagui/core").Variable;
15
- 2: import("@tamagui/core").Variable;
16
- 3: import("@tamagui/core").Variable;
17
- 4: import("@tamagui/core").Variable;
18
- 5: import("@tamagui/core").Variable;
19
- 6: import("@tamagui/core").Variable;
14
+ [x: string]: import("@tamagui/core").Variable;
20
15
  };
21
16
  letterSpacing: {
22
17
  4: import("@tamagui/core").Variable;
23
18
  };
24
19
  weight: {
25
20
  4: import("@tamagui/core").Variable;
26
- 6: import("@tamagui/core").Variable;
27
- } | {
28
- 4: import("@tamagui/core").Variable;
29
- 7: import("@tamagui/core").Variable;
30
- 8: import("@tamagui/core").Variable;
31
21
  };
32
22
  family: string;
33
23
  };
@@ -42,23 +32,13 @@ export declare const tokens: {
42
32
  7: import("@tamagui/core").Variable;
43
33
  };
44
34
  lineHeight: {
45
- 1: import("@tamagui/core").Variable;
46
- 2: import("@tamagui/core").Variable;
47
- 3: import("@tamagui/core").Variable;
48
- 4: import("@tamagui/core").Variable;
49
- 5: import("@tamagui/core").Variable;
50
- 6: import("@tamagui/core").Variable;
35
+ [x: string]: import("@tamagui/core").Variable;
51
36
  };
52
37
  letterSpacing: {
53
38
  4: import("@tamagui/core").Variable;
54
39
  };
55
40
  weight: {
56
41
  4: import("@tamagui/core").Variable;
57
- 6: import("@tamagui/core").Variable;
58
- } | {
59
- 4: import("@tamagui/core").Variable;
60
- 7: import("@tamagui/core").Variable;
61
- 8: import("@tamagui/core").Variable;
62
42
  };
63
43
  family: string;
64
44
  };
@@ -73,23 +53,34 @@ export declare const tokens: {
73
53
  7: import("@tamagui/core").Variable;
74
54
  };
75
55
  lineHeight: {
56
+ [x: string]: import("@tamagui/core").Variable;
57
+ };
58
+ letterSpacing: {
59
+ 4: import("@tamagui/core").Variable;
60
+ };
61
+ weight: {
62
+ 4: import("@tamagui/core").Variable;
63
+ };
64
+ family: string;
65
+ };
66
+ silkscreen: {
67
+ size: {
76
68
  1: import("@tamagui/core").Variable;
77
69
  2: import("@tamagui/core").Variable;
78
70
  3: import("@tamagui/core").Variable;
79
71
  4: import("@tamagui/core").Variable;
80
72
  5: import("@tamagui/core").Variable;
81
73
  6: import("@tamagui/core").Variable;
74
+ 7: import("@tamagui/core").Variable;
75
+ };
76
+ lineHeight: {
77
+ [x: string]: import("@tamagui/core").Variable;
82
78
  };
83
79
  letterSpacing: {
84
80
  4: import("@tamagui/core").Variable;
85
81
  };
86
82
  weight: {
87
83
  4: import("@tamagui/core").Variable;
88
- 6: import("@tamagui/core").Variable;
89
- } | {
90
- 4: import("@tamagui/core").Variable;
91
- 7: import("@tamagui/core").Variable;
92
- 8: import("@tamagui/core").Variable;
93
84
  };
94
85
  family: string;
95
86
  };
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.tsx"],"names":[],"mappings":"AAkCA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCjB,CAAA"}
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.tsx"],"names":[],"mappings":"AAmCA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCjB,CAAA"}