gymatra-ui 0.2.1 → 0.2.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.
- package/README.md +11 -0
- package/dist/theme.css +38 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -30,6 +30,17 @@ npm install @fontsource-variable/inter
|
|
|
30
30
|
import "@fontsource-variable/inter";
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
+
#### Application en Tailwind CSS v4 : utiliser les jetons du kit
|
|
34
|
+
|
|
35
|
+
Pour que les classes de votre application (`bg-primary`, `text-text-muted`, `rounded-md`…) utilisent exactement les jetons Gymatra, importez le thème du kit dans votre feuille principale. Aucun `tailwind.config.js` n'est nécessaire :
|
|
36
|
+
|
|
37
|
+
```css
|
|
38
|
+
/* app.css */
|
|
39
|
+
@import "tailwindcss";
|
|
40
|
+
@import "gymatra-ui/theme.css"; /* couleurs, rayons, police : source unique */
|
|
41
|
+
@import "gymatra-ui/styles.css"; /* styles des composants du kit */
|
|
42
|
+
```
|
|
43
|
+
|
|
33
44
|
### 2. Exemple d'utilisation
|
|
34
45
|
|
|
35
46
|
```tsx
|
package/dist/theme.css
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* Gymatra design tokens — single source of truth for the library and the playground. */
|
|
2
|
+
@theme {
|
|
3
|
+
--font-sans: "Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif;
|
|
4
|
+
|
|
5
|
+
--color-primary: #224086;
|
|
6
|
+
--color-primary-hover: #1b346d;
|
|
7
|
+
--color-primary-active: #172c5c;
|
|
8
|
+
--color-primary-soft: #edf2fc;
|
|
9
|
+
|
|
10
|
+
--color-background: #ffffff;
|
|
11
|
+
--color-surface: #ffffff;
|
|
12
|
+
--color-surface-muted: #f1f3f7;
|
|
13
|
+
--color-border: #e1e5ed;
|
|
14
|
+
--color-border-strong: #c5ccda;
|
|
15
|
+
--color-around: #111827;
|
|
16
|
+
|
|
17
|
+
--color-text: #172033;
|
|
18
|
+
--color-text-muted: #667085;
|
|
19
|
+
--color-text-subtle: #8791a3;
|
|
20
|
+
|
|
21
|
+
--color-success: #16794b;
|
|
22
|
+
--color-warning: #946200;
|
|
23
|
+
--color-danger: #b42318;
|
|
24
|
+
--color-info: #175cd3;
|
|
25
|
+
|
|
26
|
+
/* Soft status backgrounds: status text on these meets WCAG AA (>= 4.5:1). */
|
|
27
|
+
--color-success-soft: #ecf8f1;
|
|
28
|
+
--color-warning-soft: #fdf6e3;
|
|
29
|
+
--color-danger-soft: #fdeeec;
|
|
30
|
+
--color-info-soft: #eef4fe;
|
|
31
|
+
|
|
32
|
+
--radius-sm: 4px;
|
|
33
|
+
--radius-md: 6px;
|
|
34
|
+
--radius-lg: 8px;
|
|
35
|
+
|
|
36
|
+
--shadow-sm: none;
|
|
37
|
+
--shadow-md: none;
|
|
38
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gymatra-ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Accessible, modern, light-themed React UI component library for sports club management and gym SaaS applications, built with Tailwind CSS and Base UI primitives.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"import": "./dist/index.js",
|
|
17
17
|
"require": "./dist/index.cjs"
|
|
18
18
|
},
|
|
19
|
-
"./styles.css": "./dist/styles.css"
|
|
19
|
+
"./styles.css": "./dist/styles.css",
|
|
20
|
+
"./theme.css": "./dist/theme.css"
|
|
20
21
|
},
|
|
21
22
|
"files": [
|
|
22
23
|
"dist",
|
|
@@ -41,7 +42,7 @@
|
|
|
41
42
|
},
|
|
42
43
|
"scripts": {
|
|
43
44
|
"dev": "vite",
|
|
44
|
-
"build": "vite build && tsc -p tsconfig.build.json",
|
|
45
|
+
"build": "vite build && tsc -p tsconfig.build.json && node -e \"require('fs').copyFileSync('src/theme.css','dist/theme.css')\"",
|
|
45
46
|
"prepublishOnly": "npm run build",
|
|
46
47
|
"preview": "vite preview"
|
|
47
48
|
},
|