@tamagui/theme-base 1.0.0-beta.179 → 1.0.0-beta.200

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.
@@ -21,25 +21,28 @@ __export(firaFont_exports, {
21
21
  });
22
22
  module.exports = __toCommonJS(firaFont_exports);
23
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
+ };
24
42
  const firaFont = (0, import_core.createFont)({
25
43
  family: "Fira Code, Monaco, Consolas, Ubuntu Mono, monospace",
26
- size: {
27
- 1: 10,
28
- 2: 11,
29
- 3: 12,
30
- 4: 13,
31
- 5: 15,
32
- 6: 16,
33
- 7: 17
34
- },
35
- lineHeight: {
36
- 1: 15,
37
- 2: 18,
38
- 3: 19,
39
- 4: 20,
40
- 5: 22,
41
- 6: 24
42
- },
44
+ size,
45
+ lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, v * 1.75])),
43
46
  weight: {
44
47
  4: "300",
45
48
  6: "700"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/firaFont.tsx"],
4
- "sourcesContent": ["import { createFont } from '@tamagui/core'\n\nexport const firaFont = createFont({\n family: 'Fira Code, Monaco, Consolas, Ubuntu Mono, monospace',\n size: {\n 1: 10,\n 2: 11,\n 3: 12,\n 4: 13,\n 5: 15,\n 6: 16,\n 7: 17,\n },\n lineHeight: {\n 1: 15,\n 2: 18,\n 3: 19,\n 4: 20,\n 5: 22,\n 6: 24,\n },\n weight: {\n 4: '300',\n 6: '700',\n },\n letterSpacing: {\n 4: 0,\n },\n})\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA2B;AAEpB,MAAM,WAAW,4BAAW;AAAA,EACjC,QAAQ;AAAA,EACR,MAAM;AAAA,IACJ,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,YAAY;AAAA,IACV,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,QAAQ;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,eAAe;AAAA,IACb,GAAG;AAAA,EACL;AACF,CAAC;",
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 firaFont = createFont({\n family: 'Fira Code, Monaco, Consolas, Ubuntu Mono, monospace',\n size,\n lineHeight: Object.fromEntries(\n Object.entries(size).map(([k, v]) => [k, v * 1.75])\n ) as typeof size,\n weight: {\n 4: '300',\n 6: '700',\n },\n letterSpacing: {\n 4: 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,WAAW,4BAAW;AAAA,EACjC,QAAQ;AAAA,EACR;AAAA,EACA,YAAY,OAAO,YACjB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,IAAI,IAAI,CAAC,CACpD;AAAA,EACA,QAAQ;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,eAAe;AAAA,IACb,GAAG;AAAA,EACL;AACF,CAAC;",
6
6
  "names": []
7
7
  }
@@ -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: 3
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(\n Object.entries(size).map(([k, v]) => [k, v * 1.75])\n ) as typeof size,\n weight: {\n 4: '300',\n },\n letterSpacing: {\n 4: 1,\n 6: 3,\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,YACjB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,IAAI,IAAI,CAAC,CACpD;AAAA,EACA,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
  }
@@ -1,23 +1,26 @@
1
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
+ };
2
20
  const firaFont = createFont({
3
21
  family: "Fira Code, Monaco, Consolas, Ubuntu Mono, monospace",
4
- size: {
5
- 1: 10,
6
- 2: 11,
7
- 3: 12,
8
- 4: 13,
9
- 5: 15,
10
- 6: 16,
11
- 7: 17
12
- },
13
- lineHeight: {
14
- 1: 15,
15
- 2: 18,
16
- 3: 19,
17
- 4: 20,
18
- 5: 22,
19
- 6: 24
20
- },
22
+ size,
23
+ lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, v * 1.75])),
21
24
  weight: {
22
25
  4: "300",
23
26
  6: "700"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/firaFont.tsx"],
4
- "sourcesContent": ["import { createFont } from '@tamagui/core'\n\nexport const firaFont = createFont({\n family: 'Fira Code, Monaco, Consolas, Ubuntu Mono, monospace',\n size: {\n 1: 10,\n 2: 11,\n 3: 12,\n 4: 13,\n 5: 15,\n 6: 16,\n 7: 17,\n },\n lineHeight: {\n 1: 15,\n 2: 18,\n 3: 19,\n 4: 20,\n 5: 22,\n 6: 24,\n },\n weight: {\n 4: '300',\n 6: '700',\n },\n letterSpacing: {\n 4: 0,\n },\n})\n"],
5
- "mappings": "AAAA;AAEO,MAAM,WAAW,WAAW;AAAA,EACjC,QAAQ;AAAA,EACR,MAAM;AAAA,IACJ,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,YAAY;AAAA,IACV,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,QAAQ;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,eAAe;AAAA,IACb,GAAG;AAAA,EACL;AACF,CAAC;",
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 firaFont = createFont({\n family: 'Fira Code, Monaco, Consolas, Ubuntu Mono, monospace',\n size,\n lineHeight: Object.fromEntries(\n Object.entries(size).map(([k, v]) => [k, v * 1.75])\n ) as typeof size,\n weight: {\n 4: '300',\n 6: '700',\n },\n letterSpacing: {\n 4: 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,WAAW,WAAW;AAAA,EACjC,QAAQ;AAAA,EACR;AAAA,EACA,YAAY,OAAO,YACjB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,IAAI,IAAI,CAAC,CACpD;AAAA,EACA,QAAQ;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,eAAe;AAAA,IACb,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: 3
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(\n Object.entries(size).map(([k, v]) => [k, v * 1.75])\n ) as typeof size,\n weight: {\n 4: '300',\n },\n letterSpacing: {\n 4: 1,\n 6: 3,\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,YACjB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,IAAI,IAAI,CAAC,CACpD;AAAA,EACA,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
  }
@@ -1,23 +1,26 @@
1
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
+ };
2
20
  const firaFont = createFont({
3
21
  family: "Fira Code, Monaco, Consolas, Ubuntu Mono, monospace",
4
- size: {
5
- 1: 10,
6
- 2: 11,
7
- 3: 12,
8
- 4: 13,
9
- 5: 15,
10
- 6: 16,
11
- 7: 17
12
- },
13
- lineHeight: {
14
- 1: 15,
15
- 2: 18,
16
- 3: 19,
17
- 4: 20,
18
- 5: 22,
19
- 6: 24
20
- },
22
+ size,
23
+ lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, v * 1.75])),
21
24
  weight: {
22
25
  4: "300",
23
26
  6: "700"
@@ -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: 3
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.179+a2bba1a8",
3
+ "version": "1.0.0-beta.200+9591831d",
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.179+a2bba1a8",
20
- "@tamagui/colors": "^1.0.0-beta.179+a2bba1a8",
21
- "@tamagui/core": "^1.0.0-beta.179+a2bba1a8"
19
+ "@tamagui/build": "^1.0.0-beta.200+9591831d",
20
+ "@tamagui/colors": "^1.0.0-beta.200+9591831d",
21
+ "@tamagui/core": "^1.0.0-beta.200+9591831d"
22
22
  },
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
- "gitHead": "a2bba1a86895896d70f8d1b91a5faf94adf776e4"
26
+ "gitHead": "9591831d7d4a58cc4e01846e68a0d3324570b5c8"
27
27
  }
@@ -8,6 +8,15 @@ export declare const firaFont: {
8
8
  5: number;
9
9
  6: number;
10
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;
11
20
  };
12
21
  lineHeight: {
13
22
  1: number;
@@ -16,6 +25,16 @@ export declare const firaFont: {
16
25
  4: number;
17
26
  5: number;
18
27
  6: number;
28
+ 7: number;
29
+ 8: number;
30
+ 9: number;
31
+ 10: number;
32
+ 11: number;
33
+ 12: number;
34
+ 13: number;
35
+ 14: number;
36
+ 15: number;
37
+ 16: number;
19
38
  };
20
39
  weight: {
21
40
  4: string;
@@ -1 +1 @@
1
- {"version":3,"file":"firaFont.d.ts","sourceRoot":"","sources":["../src/firaFont.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BnB,CAAA"}
1
+ {"version":3,"file":"firaFont.d.ts","sourceRoot":"","sources":["../src/firaFont.tsx"],"names":[],"mappings":"AAqBA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAanB,CAAA"}
@@ -0,0 +1,48 @@
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
+ 1: number;
23
+ 2: number;
24
+ 3: number;
25
+ 4: number;
26
+ 5: number;
27
+ 6: number;
28
+ 7: number;
29
+ 8: number;
30
+ 9: number;
31
+ 10: number;
32
+ 11: number;
33
+ 12: number;
34
+ 13: number;
35
+ 14: number;
36
+ 15: number;
37
+ 16: number;
38
+ };
39
+ weight: {
40
+ 4: string;
41
+ };
42
+ letterSpacing: {
43
+ 4: number;
44
+ 5: number;
45
+ 6: number;
46
+ };
47
+ };
48
+ //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAazB,CAAA"}
package/types/themes.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { Variable } from '@tamagui/core';
2
1
  export declare const colorSchemes: readonly [{
3
2
  readonly name: "blue";
4
3
  readonly colors: {
@@ -391,7 +390,7 @@ export declare const colorSchemes: readonly [{
391
390
  };
392
391
  }];
393
392
  export declare type ColorNames = typeof colorSchemes[number]['name'];
394
- export declare const lightGradient: (string | Variable)[];
393
+ export declare const lightGradient: string[];
395
394
  export declare const darkGradient: string[];
396
395
  declare const baseThemes: {
397
396
  dark: any;