@tokis/tokis 1.1.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Tokis Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,70 @@
1
+ # @tokis/tokis
2
+
3
+ Performance-first, token-native UI design system for React.
4
+
5
+ This is the **meta-package** — installing `@tokis/tokis` gives you everything:
6
+
7
+ | Package | Description |
8
+ |---|---|
9
+ | `@tokis/react` | React components, hooks, and theming context |
10
+ | `@tokis/theme` | Precompiled CSS — variables, reset, component styles |
11
+ | `@tokis/core` | Headless primitives — state machines, a11y, focus management |
12
+ | `@tokis/tokens` | Design token definitions — TypeScript + JSON + CSS variables |
13
+ | `@tokis/icons` | Tree-shakable SVG icons, optional lucide-react bridge |
14
+
15
+ ## Quick Start
16
+
17
+ ```bash
18
+ npm install @tokis/tokis
19
+ ```
20
+
21
+ ```tsx
22
+ import '@tokis/theme';
23
+ import { ButtonRoot, ButtonLabel, ThemeProvider } from '@tokis/tokis';
24
+
25
+ function App() {
26
+ return (
27
+ <ThemeProvider>
28
+ <ButtonRoot variant="primary">
29
+ <ButtonLabel>Get Started</ButtonLabel>
30
+ </ButtonRoot>
31
+ </ThemeProvider>
32
+ );
33
+ }
34
+ ```
35
+
36
+ ## Install Individual Packages
37
+
38
+ If you only need specific parts of @tokis/tokis:
39
+
40
+ ```bash
41
+ # React components with all peer dependencies
42
+ npm install @tokis/react @tokis/theme @tokis/core @tokis/tokens
43
+
44
+ # Just the headless core (framework-agnostic)
45
+ npm install @tokis/core
46
+
47
+ # Just the design tokens
48
+ npm install @tokis/tokens
49
+
50
+ # Just the theme CSS
51
+ npm install @tokis/theme
52
+ ```
53
+
54
+ ## Features
55
+
56
+ - **Zero Runtime CSS** — No CSS-in-JS overhead. Precompiled static CSS.
57
+ - **Token-Native** — Every value is a CSS custom property. Theming is predictable.
58
+ - **Accessible by Default** — WAI-ARIA 1.2, keyboard navigation, focus management built-in.
59
+ - **Composable** — Compound component patterns. No prop explosion.
60
+ - **Dark Mode** — First-class light/dark support via `ThemeProvider`.
61
+ - **TypeScript** — Full type safety with exported interfaces for every component.
62
+ - **Tree-Shakeable** — ESM + CJS dual publish. Only ship what you use.
63
+
64
+ ## Documentation
65
+
66
+ Visit [tokis.dev](https://tokis.dev) for the full documentation, interactive demos, and API reference.
67
+
68
+ ## License
69
+
70
+ MIT
package/index.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @tokis/tokis — Performance-first, token-native UI design system
3
+ *
4
+ * Re-exports all types and components from @tokis/react and @tokis/icons.
5
+ */
6
+ export * from '@tokis/react';
7
+ export * from '@tokis/icons';
package/index.js ADDED
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @tokis/tokis — Performance-first, token-native UI design system
3
+ *
4
+ * This meta-package re-exports everything from the Tokis ecosystem:
5
+ * @tokis/react — React components, hooks, and context
6
+ * @tokis/theme — Precompiled CSS (variables, reset, component styles)
7
+ * @tokis/core — Headless primitives (state machines, a11y, focus)
8
+ * @tokis/tokens — Design token definitions (TypeScript + JSON)
9
+ * @tokis/icons — Tree-shakable SVG icons with Lucide support
10
+ */
11
+ 'use strict';
12
+
13
+ const react = require('@tokis/react');
14
+ const icons = require('@tokis/icons');
15
+
16
+ module.exports = { ...react, ...icons };
package/index.mjs ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @tokis/tokis — Performance-first, token-native UI design system
3
+ *
4
+ * This meta-package re-exports everything from the Tokis ecosystem:
5
+ * @tokis/react — React components, hooks, and context
6
+ * @tokis/theme — Precompiled CSS (variables, reset, component styles)
7
+ * @tokis/core — Headless primitives (state machines, a11y, focus)
8
+ * @tokis/tokens — Design token definitions (TypeScript + JSON)
9
+ * @tokis/icons — Tree-shakable SVG icons with Lucide support
10
+ */
11
+ export * from '@tokis/react';
12
+ export * from '@tokis/icons';
package/package.json ADDED
@@ -0,0 +1,100 @@
1
+ {
2
+ "name": "@tokis/tokis",
3
+ "version": "1.1.0",
4
+ "description": "Tokis Only Knows Its Styles — Performance-first, token-native UI design system for React. Install this package to get all Tokis packages: @tokis/react, @tokis/theme, @tokis/core, and @tokis/tokens.",
5
+ "main": "./index.js",
6
+ "module": "./index.mjs",
7
+ "types": "./index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./index.d.ts",
11
+ "import": "./index.mjs",
12
+ "require": "./index.js"
13
+ },
14
+ "./react": {
15
+ "types": "@tokis/react",
16
+ "import": "@tokis/react",
17
+ "require": "@tokis/react"
18
+ },
19
+ "./theme": "@tokis/theme",
20
+ "./core": {
21
+ "types": "@tokis/core",
22
+ "import": "@tokis/core",
23
+ "require": "@tokis/core"
24
+ },
25
+ "./tokens": {
26
+ "types": "@tokis/tokens",
27
+ "import": "@tokis/tokens",
28
+ "require": "@tokis/tokens"
29
+ },
30
+ "./icons": {
31
+ "types": "@tokis/icons",
32
+ "import": "@tokis/icons",
33
+ "require": "@tokis/icons"
34
+ },
35
+ "./icons/lucide": {
36
+ "types": "@tokis/icons/lucide",
37
+ "import": "@tokis/icons/lucide",
38
+ "require": "@tokis/icons/lucide"
39
+ }
40
+ },
41
+ "files": [
42
+ "index.js",
43
+ "index.mjs",
44
+ "index.d.ts",
45
+ "README.md",
46
+ "LICENSE"
47
+ ],
48
+ "sideEffects": false,
49
+ "keywords": [
50
+ "tokis",
51
+ "design-system",
52
+ "react",
53
+ "ui",
54
+ "components",
55
+ "headless",
56
+ "accessible",
57
+ "accessibility",
58
+ "a11y",
59
+ "css-variables",
60
+ "design-tokens",
61
+ "theming",
62
+ "dark-mode",
63
+ "typescript",
64
+ "ui-kit",
65
+ "component-library",
66
+ "react-components",
67
+ "enterprise",
68
+ "saas",
69
+ "wcag",
70
+ "aria",
71
+ "zero-runtime",
72
+ "token-native"
73
+ ],
74
+ "author": "Tokis Contributors",
75
+ "license": "MIT",
76
+ "repository": {
77
+ "type": "git",
78
+ "url": "https://github.com/PrerakMathur20/TokisLib.git",
79
+ "directory": "packages/tokis"
80
+ },
81
+ "homepage": "https://github.com/PrerakMathur20/TokisLib#readme",
82
+ "bugs": {
83
+ "url": "https://github.com/PrerakMathur20/TokisLib/issues"
84
+ },
85
+ "dependencies": {
86
+ "@tokis/react": "^1.1.0",
87
+ "@tokis/theme": "^1.1.0",
88
+ "@tokis/core": "^1.1.0",
89
+ "@tokis/tokens": "^1.1.0",
90
+ "@tokis/icons": "^1.1.0"
91
+ },
92
+ "peerDependencies": {
93
+ "react": ">=18.0.0",
94
+ "react-dom": ">=18.0.0"
95
+ },
96
+ "publishConfig": {
97
+ "access": "public",
98
+ "registry": "https://registry.npmjs.org/"
99
+ }
100
+ }