@blockle/blocks-theme-momotaro 1.0.0

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.
Files changed (65) hide show
  1. package/README.md +1 -0
  2. package/dist/components/button.css.cjs +126 -0
  3. package/dist/components/button.css.d.ts +1 -0
  4. package/dist/components/button.css.js +126 -0
  5. package/dist/components/checkbox.css.cjs +62 -0
  6. package/dist/components/checkbox.css.d.ts +1 -0
  7. package/dist/components/checkbox.css.js +62 -0
  8. package/dist/components/dialog.css.cjs +81 -0
  9. package/dist/components/dialog.css.d.ts +1 -0
  10. package/dist/components/dialog.css.js +81 -0
  11. package/dist/components/divider.css.cjs +16 -0
  12. package/dist/components/divider.css.d.ts +1 -0
  13. package/dist/components/divider.css.js +16 -0
  14. package/dist/components/helpers.css.cjs +47 -0
  15. package/dist/components/helpers.css.d.ts +8 -0
  16. package/dist/components/helpers.css.js +47 -0
  17. package/dist/components/index.cjs +35 -0
  18. package/dist/components/index.d.ts +2 -0
  19. package/dist/components/index.js +35 -0
  20. package/dist/components/input.css.cjs +46 -0
  21. package/dist/components/input.css.d.ts +1 -0
  22. package/dist/components/input.css.js +46 -0
  23. package/dist/components/label.css.cjs +33 -0
  24. package/dist/components/label.css.d.ts +1 -0
  25. package/dist/components/label.css.js +33 -0
  26. package/dist/components/link.css.cjs +56 -0
  27. package/dist/components/link.css.d.ts +1 -0
  28. package/dist/components/link.css.js +56 -0
  29. package/dist/components/popover.css.cjs +37 -0
  30. package/dist/components/popover.css.d.ts +1 -0
  31. package/dist/components/popover.css.js +37 -0
  32. package/dist/components/progress.css.cjs +57 -0
  33. package/dist/components/progress.css.d.ts +1 -0
  34. package/dist/components/progress.css.js +57 -0
  35. package/dist/components/radio.css.cjs +63 -0
  36. package/dist/components/radio.css.d.ts +1 -0
  37. package/dist/components/radio.css.js +63 -0
  38. package/dist/components/select.css.cjs +53 -0
  39. package/dist/components/select.css.d.ts +1 -0
  40. package/dist/components/select.css.js +53 -0
  41. package/dist/components/slider.css.cjs +95 -0
  42. package/dist/components/slider.css.d.ts +1 -0
  43. package/dist/components/slider.css.js +95 -0
  44. package/dist/components/spinner.css.cjs +44 -0
  45. package/dist/components/spinner.css.d.ts +1 -0
  46. package/dist/components/spinner.css.js +44 -0
  47. package/dist/components/switch.css.cjs +66 -0
  48. package/dist/components/switch.css.d.ts +1 -0
  49. package/dist/components/switch.css.js +66 -0
  50. package/dist/components/tooltip.css.cjs +31 -0
  51. package/dist/components/tooltip.css.d.ts +1 -0
  52. package/dist/components/tooltip.css.js +31 -0
  53. package/dist/components/transitions.cjs +4 -0
  54. package/dist/components/transitions.d.ts +1 -0
  55. package/dist/components/transitions.js +4 -0
  56. package/dist/index.cjs +4 -0
  57. package/dist/index.d.ts +1 -0
  58. package/dist/index.js +4 -0
  59. package/dist/momotaro.css.cjs +14 -0
  60. package/dist/momotaro.css.d.ts +1 -0
  61. package/dist/momotaro.css.js +14 -0
  62. package/dist/tokens.css.cjs +86 -0
  63. package/dist/tokens.css.d.ts +2 -0
  64. package/dist/tokens.css.js +86 -0
  65. package/package.json +43 -0
package/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ import { momotaro } from "./momotaro.css.js";
2
+ export {
3
+ momotaro
4
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const fileScope = require("@vanilla-extract/css/fileScope");
4
+ const blocksCore = require("@blockle/blocks-core");
5
+ const index = require("./components/index.cjs");
6
+ const tokens_css = require("./tokens.css.cjs");
7
+ fileScope.setFileScope("src/momotaro.css.ts", "@blockle/blocks-theme-momotaro");
8
+ const momotaro = blocksCore.makeTheme({
9
+ name: "momotaro",
10
+ tokens: tokens_css.tokens,
11
+ components: index.components
12
+ });
13
+ fileScope.endFileScope();
14
+ exports.momotaro = momotaro;
@@ -0,0 +1 @@
1
+ export declare const momotaro: import('@blockle/blocks-core').Theme;
@@ -0,0 +1,14 @@
1
+ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
+ import { makeTheme } from "@blockle/blocks-core";
3
+ import { components } from "./components/index.js";
4
+ import { tokens } from "./tokens.css.js";
5
+ setFileScope("src/momotaro.css.ts", "@blockle/blocks-theme-momotaro");
6
+ const momotaro = makeTheme({
7
+ name: "momotaro",
8
+ tokens,
9
+ components
10
+ });
11
+ endFileScope();
12
+ export {
13
+ momotaro
14
+ };
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const fileScope = require("@vanilla-extract/css/fileScope");
4
+ const blocksCore = require("@blockle/blocks-core");
5
+ fileScope.setFileScope("src/tokens.css.ts", "@blockle/blocks-theme-momotaro");
6
+ const tokens = {
7
+ border: {
8
+ radius: {
9
+ small: "4px",
10
+ medium: "8px",
11
+ large: "16px",
12
+ xlarge: "32px"
13
+ },
14
+ width: {
15
+ small: "1px",
16
+ medium: "2px",
17
+ large: "4px"
18
+ }
19
+ },
20
+ color: {
21
+ white: "#fff",
22
+ black: "#000",
23
+ body: "#F4F6FA",
24
+ primaryLight: "#E4DFFF",
25
+ primary: "#7265E3",
26
+ primaryDark: "#4D3CAB",
27
+ secondaryLight: "#7CF5CD",
28
+ secondary: "#7FE3F0",
29
+ secondaryDark: "#68C6EF",
30
+ text: "#2D3142",
31
+ textLight: "#9C9EB9",
32
+ textDark: "#4C5980",
33
+ danger: "#FF9B90",
34
+ link: "#7265E3"
35
+ },
36
+ shadow: {
37
+ small: "0px 4px 8px rgba(0, 0, 0, 0.08)",
38
+ medium: "0px 8px 16px rgba(0, 0, 0, 0.08)",
39
+ large: "0px 16px 24px rgba(0, 0, 0, 0.08)"
40
+ },
41
+ focus: {
42
+ boxShadow: "0 0 1px 2px #AF8EFF"
43
+ },
44
+ spacing: {
45
+ none: "0px",
46
+ gutter: "28px",
47
+ xsmall: "4px",
48
+ small: "8px",
49
+ medium: "12px",
50
+ large: "16px",
51
+ xlarge: "24px"
52
+ },
53
+ transition: {
54
+ slow: "240ms",
55
+ normal: "120ms",
56
+ fast: "80ms"
57
+ },
58
+ typography: {
59
+ fontFamily: {
60
+ body: '"Rubik", sans-serif',
61
+ primary: '"Rubik", sans-serif',
62
+ secondary: '"Rubik", sans-serif'
63
+ },
64
+ fontSize: {
65
+ xsmall: blocksCore.rem(12),
66
+ small: blocksCore.rem(14),
67
+ medium: blocksCore.rem(16),
68
+ large: blocksCore.rem(20),
69
+ xlarge: blocksCore.rem(24)
70
+ },
71
+ fontWeight: {
72
+ regular: 400,
73
+ medium: 500,
74
+ strong: 700
75
+ },
76
+ lineHeight: {
77
+ xsmall: blocksCore.rem(16),
78
+ small: blocksCore.rem(20),
79
+ medium: blocksCore.rem(24),
80
+ large: blocksCore.rem(28),
81
+ xlarge: blocksCore.rem(32)
82
+ }
83
+ }
84
+ };
85
+ fileScope.endFileScope();
86
+ exports.tokens = tokens;
@@ -0,0 +1,2 @@
1
+ import { ThemeTokens } from '@blockle/blocks-core';
2
+ export declare const tokens: ThemeTokens;
@@ -0,0 +1,86 @@
1
+ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
+ import { rem } from "@blockle/blocks-core";
3
+ setFileScope("src/tokens.css.ts", "@blockle/blocks-theme-momotaro");
4
+ const tokens = {
5
+ border: {
6
+ radius: {
7
+ small: "4px",
8
+ medium: "8px",
9
+ large: "16px",
10
+ xlarge: "32px"
11
+ },
12
+ width: {
13
+ small: "1px",
14
+ medium: "2px",
15
+ large: "4px"
16
+ }
17
+ },
18
+ color: {
19
+ white: "#fff",
20
+ black: "#000",
21
+ body: "#F4F6FA",
22
+ primaryLight: "#E4DFFF",
23
+ primary: "#7265E3",
24
+ primaryDark: "#4D3CAB",
25
+ secondaryLight: "#7CF5CD",
26
+ secondary: "#7FE3F0",
27
+ secondaryDark: "#68C6EF",
28
+ text: "#2D3142",
29
+ textLight: "#9C9EB9",
30
+ textDark: "#4C5980",
31
+ danger: "#FF9B90",
32
+ link: "#7265E3"
33
+ },
34
+ shadow: {
35
+ small: "0px 4px 8px rgba(0, 0, 0, 0.08)",
36
+ medium: "0px 8px 16px rgba(0, 0, 0, 0.08)",
37
+ large: "0px 16px 24px rgba(0, 0, 0, 0.08)"
38
+ },
39
+ focus: {
40
+ boxShadow: "0 0 1px 2px #AF8EFF"
41
+ },
42
+ spacing: {
43
+ none: "0px",
44
+ gutter: "28px",
45
+ xsmall: "4px",
46
+ small: "8px",
47
+ medium: "12px",
48
+ large: "16px",
49
+ xlarge: "24px"
50
+ },
51
+ transition: {
52
+ slow: "240ms",
53
+ normal: "120ms",
54
+ fast: "80ms"
55
+ },
56
+ typography: {
57
+ fontFamily: {
58
+ body: '"Rubik", sans-serif',
59
+ primary: '"Rubik", sans-serif',
60
+ secondary: '"Rubik", sans-serif'
61
+ },
62
+ fontSize: {
63
+ xsmall: rem(12),
64
+ small: rem(14),
65
+ medium: rem(16),
66
+ large: rem(20),
67
+ xlarge: rem(24)
68
+ },
69
+ fontWeight: {
70
+ regular: 400,
71
+ medium: 500,
72
+ strong: 700
73
+ },
74
+ lineHeight: {
75
+ xsmall: rem(16),
76
+ small: rem(20),
77
+ medium: rem(24),
78
+ large: rem(28),
79
+ xlarge: rem(32)
80
+ }
81
+ }
82
+ };
83
+ endFileScope();
84
+ export {
85
+ tokens
86
+ };
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@blockle/blocks-theme-momotaro",
3
+ "version": "1.0.0",
4
+ "description": "Design system for React",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "exports": {
8
+ ".": {
9
+ "types": {
10
+ "import": "./dist/index.d.mts",
11
+ "require": "./dist/index.d.ts"
12
+ },
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.cjs"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "main": "./dist/index.cjs",
21
+ "module": "./dist/index.mjs",
22
+ "types": "./dist/index.d.ts",
23
+ "scripts": {
24
+ "build": "vite build",
25
+ "test": "vitest ",
26
+ "lint": "biome format ./src",
27
+ "format": "biome format --write ./src",
28
+ "ts": "tsc --noemit --project ./tsconfig.json"
29
+ },
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "git+ssh://git@github.com/Blockle/blocks.git"
33
+ },
34
+ "author": "Niek Saarberg <n.saarberg@gmail.com>",
35
+ "license": "MIT",
36
+ "bugs": {
37
+ "url": "https://github.com/Blockle/blocks/issues"
38
+ },
39
+ "homepage": "https://github.com/Blockle/blocks#readme",
40
+ "peerDependencies": {
41
+ "@blockle/blocks-core": "^0.21.0"
42
+ }
43
+ }