@021.is/brand-studio 0.3.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.
@@ -0,0 +1,66 @@
1
+ import { a as ColorSpec, B as BrandScheme } from './generateScheme-BDDcIzA3.js';
2
+
3
+ /**
4
+ * Shared types for @021.is/brand-studio.
5
+ *
6
+ * Const-as-object enums (no inline string-literal unions in public signatures).
7
+ */
8
+
9
+ /** Generic loading-mark variants. No brand-coded marks live in the lib. */
10
+ declare const LoadingVariant: {
11
+ readonly Spinner: "spinner";
12
+ readonly Ring: "ring";
13
+ readonly Pulse: "pulse";
14
+ };
15
+ type LoadingVariant = (typeof LoadingVariant)[keyof typeof LoadingVariant];
16
+ declare const BrandStudioSection: {
17
+ readonly Overview: "overview";
18
+ readonly Logo: "logo";
19
+ readonly Colors: "colors";
20
+ readonly Typography: "typography";
21
+ readonly Icons: "icons";
22
+ readonly Motion: "motion";
23
+ readonly Download: "download";
24
+ };
25
+ type BrandStudioSection = (typeof BrandStudioSection)[keyof typeof BrandStudioSection];
26
+ declare const MotionState: {
27
+ readonly Idle: "idle";
28
+ readonly Loading: "loading";
29
+ readonly Success: "success";
30
+ readonly Empty: "empty";
31
+ };
32
+ type MotionState = (typeof MotionState)[keyof typeof MotionState];
33
+ type BrandType = {
34
+ sans: string;
35
+ mono?: string;
36
+ serif?: string;
37
+ };
38
+ type BrandConfig = {
39
+ /** Brand display name, shown on the overview + exports. */
40
+ name: string;
41
+ /** Short tagline shown on the brand-kit overview. */
42
+ tagline?: string;
43
+ /** Operator legal entity, shown in the brand-kit footer. */
44
+ operator?: string;
45
+ /** Domain (used for "view live" links). */
46
+ domain?: string;
47
+ /**
48
+ * Color spec — a seed (+ optional key colors / overrides) the MD3 engine
49
+ * derives a complete light + dark role set from. See `defineBrand`.
50
+ */
51
+ color: ColorSpec;
52
+ type: BrandType;
53
+ /** Voice rules, rendered as a bullet list. */
54
+ voice?: readonly string[];
55
+ /**
56
+ * Resolved MD3 light + dark role sets. Populated by `defineBrand`; do not set
57
+ * by hand. Sections read it (and the injected `--md-*` CSS vars) for theming.
58
+ */
59
+ scheme?: BrandScheme;
60
+ };
61
+ /** A `BrandConfig` after `defineBrand` has resolved its `scheme`. */
62
+ type ResolvedBrandConfig = BrandConfig & {
63
+ scheme: BrandScheme;
64
+ };
65
+
66
+ export { type BrandConfig as B, LoadingVariant as L, MotionState as M, type ResolvedBrandConfig as R, BrandStudioSection as a, type BrandType as b };
package/package.json ADDED
@@ -0,0 +1,93 @@
1
+ {
2
+ "name": "@021.is/brand-studio",
3
+ "version": "0.3.0",
4
+ "description": "Generic MD3 brand-kit toolkit: seed → full light + dark role set, composable SVG shapes + motion + loading marks, and a mountable <BrandStudio> /brand page. Ships no brand content — every app supplies its own logo, icons, and seed colour.",
5
+ "license": "MIT",
6
+ "author": {
7
+ "name": "edvone",
8
+ "url": "https://edvone.dev"
9
+ },
10
+ "homepage": "https://github.com/021is/brand-studio#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/021is/brand-studio/issues"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/021is/brand-studio.git"
17
+ },
18
+ "keywords": [
19
+ "brand",
20
+ "design-system",
21
+ "material-design-3",
22
+ "md3",
23
+ "color-scheme",
24
+ "react",
25
+ "react-19",
26
+ "svg",
27
+ "framer-motion",
28
+ "design-tokens"
29
+ ],
30
+ "private": false,
31
+ "type": "module",
32
+ "sideEffects": false,
33
+ "files": ["dist", "LICENSE", "README.md", "AGENTS.md"],
34
+ "exports": {
35
+ ".": {
36
+ "types": "./dist/index.d.ts",
37
+ "import": "./dist/index.js"
38
+ },
39
+ "./shapes": {
40
+ "types": "./dist/shapes/index.d.ts",
41
+ "import": "./dist/shapes/index.js"
42
+ },
43
+ "./motion": {
44
+ "types": "./dist/motion/index.d.ts",
45
+ "import": "./dist/motion/index.js"
46
+ },
47
+ "./loading": {
48
+ "types": "./dist/loading/index.d.ts",
49
+ "import": "./dist/loading/index.js"
50
+ },
51
+ "./color": {
52
+ "types": "./dist/color/index.d.ts",
53
+ "import": "./dist/color/index.js"
54
+ },
55
+ "./app": {
56
+ "types": "./dist/app/index.d.ts",
57
+ "import": "./dist/app/index.js"
58
+ },
59
+ "./define": {
60
+ "types": "./dist/define/index.d.ts",
61
+ "import": "./dist/define/index.js"
62
+ }
63
+ },
64
+ "scripts": {
65
+ "build": "tsup && node scripts/add-use-client.mjs",
66
+ "dev": "tsup --watch",
67
+ "typecheck": "tsc --noEmit",
68
+ "lint": "biome check src",
69
+ "test": "vitest run",
70
+ "prepublishOnly": "bun run typecheck && bun run lint && bun run test && bun run build"
71
+ },
72
+ "peerDependencies": {
73
+ "framer-motion": "^11.0.0 || ^12.0.0",
74
+ "react": "^19.0.0",
75
+ "react-dom": "^19.0.0"
76
+ },
77
+ "devDependencies": {
78
+ "@biomejs/biome": "^1.9.0",
79
+ "@material/material-color-utilities": "^0.3.0",
80
+ "@types/react": "^19.0.0",
81
+ "@types/react-dom": "^19.0.0",
82
+ "framer-motion": "^12.0.0",
83
+ "react": "^19.0.0",
84
+ "react-dom": "^19.0.0",
85
+ "tsup": "^8.3.0",
86
+ "typescript": "^5.6.0",
87
+ "vitest": "^2.1.0"
88
+ },
89
+ "publishConfig": {
90
+ "access": "public",
91
+ "registry": "https://registry.npmjs.org/"
92
+ }
93
+ }