@marinae/nextgen-design-system 0.1.0 → 0.1.2

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 (2) hide show
  1. package/README.md +161 -60
  2. package/package.json +5 -4
package/README.md CHANGED
@@ -1,73 +1,174 @@
1
- # React + TypeScript + Vite
1
+ # NextGen Design System
2
2
 
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
3
+ A reusable design system containing design tokens and SCSS foundations for modern React applications.
4
4
 
5
- Currently, two official plugins are available:
5
+ ## Contents
6
6
 
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)
7
+ This package provides:
9
8
 
10
- ## React Compiler
9
+ * Color tokens
10
+ * Typography tokens
11
+ * Spacing tokens
12
+ * Container tokens
13
+ * Gradient tokens
14
+ * Shadow tokens
15
+ * Blur tokens
16
+ * Utility mixins
11
17
 
12
- The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
18
+ The package is framework-agnostic and can be used with:
13
19
 
14
- ## Expanding the ESLint configuration
20
+ * React
21
+ * React Aria
22
+ * Base UI
23
+ * Next.js
24
+ * Vite
25
+ * Storybook
15
26
 
16
- If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
27
+ ---
17
28
 
18
- ```js
19
- export default defineConfig([
20
- globalIgnores(['dist']),
21
- {
22
- files: ['**/*.{ts,tsx}'],
23
- extends: [
24
- // Other configs...
29
+ ## Installation
25
30
 
26
- // Remove tseslint.configs.recommended and replace with this
27
- tseslint.configs.recommendedTypeChecked,
28
- // Alternatively, use this for stricter rules
29
- tseslint.configs.strictTypeChecked,
30
- // Optionally, add this for stylistic rules
31
- tseslint.configs.stylisticTypeChecked,
31
+ ```bash
32
+ npm install @marinae/nextgen-design-system
33
+ ```
34
+
35
+ ---
36
+
37
+ ## Usage
38
+
39
+ Import the complete design system:
40
+
41
+ ```scss
42
+ @use '@marinae/nextgen-design-system/style';
43
+ ```
44
+
45
+ or:
46
+
47
+ ```ts
48
+ import '@marinae/nextgen-design-system/style';
49
+ ```
50
+
51
+ ---
52
+
53
+ ## Available Tokens
54
+
55
+ ### Colors
56
+
57
+ ```scss
58
+ var(--indico-primary-blue-500)
59
+ var(--indico-gray-600)
60
+ var(--indico-success-500)
61
+ var(--indico-warning-500)
62
+ var(--indico-error-500)
63
+ ```
64
+
65
+ ### Typography
66
+
67
+ ```scss
68
+ var(--font-size-display-2xl)
69
+ var(--font-size-display-xl)
70
+ var(--font-size-display-lg)
71
+ var(--font-size-display-md)
72
+
73
+ var(--font-size-text-xl)
74
+ var(--font-size-text-lg)
75
+ var(--font-size-text-md)
76
+ var(--font-size-text-sm)
77
+ var(--font-size-text-xs)
78
+ ```
79
+
80
+ ### Spacing
81
+
82
+ ```scss
83
+ var(--space-1)
84
+ var(--space-2)
85
+ var(--space-3)
86
+ var(--space-4)
87
+ var(--space-5)
88
+ var(--space-6)
89
+ var(--space-8)
90
+ var(--space-10)
91
+ var(--space-12)
92
+ var(--space-16)
93
+ var(--space-20)
94
+ var(--space-24)
95
+ var(--space-32)
96
+ var(--space-40)
97
+ var(--space-48)
98
+ var(--space-56)
99
+ var(--space-64)
100
+ ```
101
+
102
+ ### Containers
103
+
104
+ ```scss
105
+ var(--container-sm)
106
+ var(--container-md)
107
+ var(--container-lg)
108
+ var(--container-xl)
109
+ ```
110
+
111
+ ### Shadows
112
+
113
+ ```scss
114
+ var(--shadow-xs)
115
+ var(--shadow-sm)
116
+ var(--shadow-md)
117
+ var(--shadow-lg)
118
+ var(--shadow-xl)
119
+ ```
120
+
121
+ ### Blur
32
122
 
33
- // Other configs...
34
- ],
35
- languageOptions: {
36
- parserOptions: {
37
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
38
- tsconfigRootDir: import.meta.dirname,
39
- },
40
- // other options...
41
- },
42
- },
43
- ])
123
+ ```scss
124
+ var(--blur-xs)
125
+ var(--blur-sm)
126
+ var(--blur-md)
127
+ var(--blur-lg)
128
+ var(--blur-xl)
44
129
  ```
45
130
 
46
- You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
47
-
48
- ```js
49
- // eslint.config.js
50
- import reactX from 'eslint-plugin-react-x'
51
- import reactDom from 'eslint-plugin-react-dom'
52
-
53
- export default defineConfig([
54
- globalIgnores(['dist']),
55
- {
56
- files: ['**/*.{ts,tsx}'],
57
- extends: [
58
- // Other configs...
59
- // Enable lint rules for React
60
- reactX.configs['recommended-typescript'],
61
- // Enable lint rules for React DOM
62
- reactDom.configs.recommended,
63
- ],
64
- languageOptions: {
65
- parserOptions: {
66
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
67
- tsconfigRootDir: import.meta.dirname,
68
- },
69
- // other options...
70
- },
71
- },
72
- ])
131
+ ---
132
+
133
+ ## Example
134
+
135
+ ```scss
136
+ .button {
137
+ background: var(--indico-primary-blue-500);
138
+ color: white;
139
+
140
+ padding: var(--space-3) var(--space-4);
141
+
142
+ border-radius: var(--radius-md);
143
+
144
+ box-shadow: var(--shadow-xs);
145
+ }
73
146
  ```
147
+
148
+ ---
149
+
150
+ ## Development
151
+
152
+ The design system is documented and maintained using Storybook.
153
+
154
+ Storybook is used for development and documentation only and is not included in the published package.
155
+
156
+ ---
157
+
158
+ ## Versioning
159
+
160
+ This package follows semantic versioning.
161
+
162
+ Examples:
163
+
164
+ ```bash
165
+ npm version patch
166
+ npm version minor
167
+ npm version major
168
+ ```
169
+
170
+ ---
171
+
172
+ ## License
173
+
174
+ MIT
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@marinae/nextgen-design-system",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "private": false,
5
5
  "files": [
6
- "src/style"
7
- ],
6
+ "src/style",
7
+ "README.md"
8
+ ],
8
9
  "exports": {
9
10
  "./style": "./src/style/main.scss",
10
11
  "./style/*": "./src/style/*"
11
12
  }
12
- }
13
+ }