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

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.
@@ -1,61 +1,45 @@
1
- import { createTokens } from "@tamagui/core";
2
- import { allLightColors, darkColorsPostfixed } from "./colors";
3
- import { firaFont } from "./firaFont";
4
- import { interFont } from "./interFont";
5
- const size = {
6
- true: 20,
7
- 0: 0,
8
- "0.5": 2,
9
- 1: 6,
10
- 2: 10,
11
- 3: 15,
12
- 4: 20,
13
- 5: 25,
14
- 6: 30,
15
- 7: 40,
16
- 8: 50,
17
- 9: 65,
18
- 10: 75,
19
- 11: 85,
20
- 12: 100
21
- };
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ import { allLightColors, darkColorsPostfixed } from "@tamagui/colors";
4
+ const sizeKeys = ["true", "0", "0.25", "0.5", "1", "1.5", "2", "2.5", "3", "3.5", "4", "4.5", "5", "5.5", "6", "6.5", "7", "7.5", "8", "9", "10", "11", "12", "13", "14"];
5
+ const getSizeAt = /* @__PURE__ */ __name((index) => index === 0 ? 0 : Math.round(Math.pow(1.6, index)) + Math.floor(3 * index), "getSizeAt");
6
+ const size = Object.fromEntries(sizeKeys.map((key) => {
7
+ return [key, getSizeAt(key === "true" ? 4 : +key)];
8
+ }));
22
9
  const space = {
23
10
  ...size,
24
11
  ...Object.fromEntries(Object.entries(size).map(([k, v]) => [`-${k}`, -v]))
25
12
  };
26
- const tokens = createTokens({
13
+ const zIndex = {
14
+ 0: 0,
15
+ 1: 100,
16
+ 2: 200,
17
+ 3: 300,
18
+ 4: 400,
19
+ 5: 500
20
+ };
21
+ const color = {
22
+ ...allLightColors,
23
+ ...darkColorsPostfixed
24
+ };
25
+ const radius = {
26
+ 0: 0,
27
+ 1: 3,
28
+ 2: 5,
29
+ 3: 7,
30
+ 4: 9,
31
+ 5: 10,
32
+ 6: 12,
33
+ 7: 16,
34
+ 8: 20,
35
+ 9: 30
36
+ };
37
+ export {
38
+ color,
39
+ getSizeAt,
40
+ radius,
27
41
  size,
42
+ sizeKeys,
28
43
  space,
29
- font: {
30
- title: interFont,
31
- body: interFont,
32
- mono: firaFont
33
- },
34
- zIndex: {
35
- 0: 0,
36
- 1: 100,
37
- 2: 200,
38
- 3: 300,
39
- 4: 400,
40
- 5: 500
41
- },
42
- color: {
43
- ...allLightColors,
44
- ...darkColorsPostfixed
45
- },
46
- radius: {
47
- 0: 0,
48
- 1: 3,
49
- 2: 5,
50
- 3: 7,
51
- 4: 9,
52
- 5: 10,
53
- 6: 12,
54
- 7: 16,
55
- 8: 20,
56
- 9: 30
57
- }
58
- });
59
- export {
60
- tokens
44
+ zIndex
61
45
  };
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.181+fff2a5b2",
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.181+fff2a5b2",
20
+ "@tamagui/colors": "^1.0.0-beta.181+fff2a5b2",
21
+ "@tamagui/core": "^1.0.0-beta.181+fff2a5b2"
22
22
  },
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
- "gitHead": "a2bba1a86895896d70f8d1b91a5faf94adf776e4"
26
+ "gitHead": "fff2a5b25ea3881d499e5376cd166f58556acaba"
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"}
package/types/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from './themes';
2
2
  export * from './tokens';
3
- export * from './colors';
3
+ export * from '@tamagui/colors';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA"}
@@ -1,4 +1,4 @@
1
- export declare const interFont: {
1
+ export declare const silkscreenFont: {
2
2
  family: string;
3
3
  size: {
4
4
  1: number;
@@ -38,20 +38,11 @@ export declare const interFont: {
38
38
  };
39
39
  weight: {
40
40
  4: string;
41
- 7: string;
42
- 8: string;
43
41
  };
44
42
  letterSpacing: {
45
43
  4: number;
46
- 7: number;
47
- 8: number;
48
- 9: number;
49
- 10: number;
50
- 11: number;
51
- 12: number;
52
- 13: number;
53
- 14: number;
54
- 15: number;
44
+ 5: number;
45
+ 6: number;
55
46
  };
56
47
  };
57
- //# sourceMappingURL=interFont.d.ts.map
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"}