testio-tailwind 3.27.2 → 3.27.4

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,73 @@
1
+ # Best Practices for AI Agents
2
+
3
+ ---
4
+
5
+ ## When Building Pages
6
+
7
+ 1. **Start with Layout Structure**
8
+ - Use semantic HTML5 elements
9
+ - Apply layout classes: `header`, `sidebar`, `main`, `section`
10
+ - Use grid or flex utilities for responsive layouts
11
+ - Use `.page-header` for dashboard pages
12
+ - Choose between standard full-width or centered layout (see [02-layout-patterns.md](02-layout-patterns.md))
13
+
14
+ 2. **Component Selection**
15
+ - Choose the appropriate component variant for the use case
16
+ - Use semantic button/alert types (primary, success, danger, etc.)
17
+ - Apply consistent spacing using the spacing scale
18
+
19
+ 3. **Responsive Design**
20
+ - Use responsive grid classes: `grid-cols-1 md:grid-cols-2 lg:grid-cols-3`
21
+ - Apply responsive utilities: `hidden md:block`, `flex-col md:flex-row`
22
+ - Mobile-first approach
23
+
24
+ 4. **Accessibility**
25
+ - Include proper ARIA labels
26
+ - Use semantic HTML elements
27
+ - Ensure proper heading hierarchy
28
+ - Include alt text for images
29
+ - Use `<label>` elements with `for` attributes
30
+
31
+ 5. **Layout Pattern Selection**
32
+ - **Full-Width:** Dashboards and data displays
33
+ - **Centered:** Documentation and forms (see [02-layout-patterns.md](02-layout-patterns.md))
34
+
35
+ 6. **Dark Mode** (see [12-dark-mode.md](12-dark-mode.md))
36
+ - Always test components with `.dark` class applied
37
+ - Border radius is larger in dark mode (12px vs 5px)
38
+ - Grid gutters are larger in dark mode (40px vs 20px)
39
+ - Use `dark:` prefix for conditional dark mode styles
40
+
41
+ 7. **Forms** (see [05-forms.md](05-forms.md))
42
+ - Use `.form-grid` for form layouts
43
+ - Apply `.form-group` wrapper around each field
44
+ - Use `.form-hint` for helper text
45
+ - Use `.field_with_errors` for validation states
46
+
47
+ 8. **Tables** (see [08-data-display.md](08-data-display.md))
48
+ - `.table` for standard data tables
49
+ - `.table-standard` for key-value style tables
50
+ - `.table-cellstyle` for status tracking tables
51
+ - `.action-cell` for right-aligned action buttons
52
+
53
+ 9. **Page Header**
54
+ - Use `.page-header` for dashboard/session pages
55
+ - Main card should have `.page-maincard` and `p-card-padding`
56
+ - Add `.with-chart` modifier when including charts
57
+ - Actions go in `.page-actions`
58
+
59
+ ---
60
+
61
+ ## Version & Support
62
+
63
+ **Current Version:** 3.23.0
64
+ **Tailwind Version:** 4.1.11
65
+ **Node Version:** v23.11.0
66
+ **Template Language:** HAML (primary) and Pug formats supported
67
+
68
+ ```bash
69
+ npm install testio-tailwind@latest
70
+ ```
71
+
72
+ Documentation is included in the package under `/dist/`.
73
+ Source: GitHub repository (test-IO/testio-tailwind)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testio-tailwind",
3
- "version": "3.27.2",
3
+ "version": "3.27.4",
4
4
  "description": "Tailwind based design system for Test IO",
5
5
  "scripts": {
6
6
  "clean": "npx del-cli dist --force",
@@ -1,3 +1,31 @@
1
+ export const colorBlueLight = '#21bef4';
2
+ export const colorBlueDark = '#326dd1';
3
+ export const colorTeal = '#33BA9E';
4
+ export const colorTealLight = '#6DDEBA';
5
+ export const colorTealLighter = '#78EAC1';
6
+ export const colorPurple = '#7954ff';
7
+ export const colorPurpleLight = '#8988eb';
8
+ export const colorPink = '#e83e8c';
9
+ export const colorRed = '#e83e8c';
10
+ export const colorRedLight = '#FF3131';
11
+ export const colorPetrol = '#236a84';
12
+ export const colorPetrolDark = '#263340';
13
+ export const colorGreen = '#8cbd24';
14
+ export const colorOrange = '#f48d21';
15
+ export const colorYellow = '#d8ce0d';
16
+ export const colorWhite = '#fff';
17
+ export const colorGray100 = '#f8f9fa';
18
+ export const colorGray200 = '#e9ecef';
19
+ export const colorGray300 = '#dee2e6';
20
+ export const colorGray400 = '#ced4da';
21
+ export const colorGray500 = '#adb5bd';
22
+ export const colorGray600 = '#6c757d';
23
+ export const colorGray700 = '#495057';
24
+ export const colorGray800 = '#343a40';
25
+ export const colorGray900 = '#222222';
26
+ export const colorBlack = '#1D1D1D';
27
+
28
+ // Functional colors
1
29
  export const colorCritical = '#FF3131';
2
30
  export const colorHigh = '#d8ce0d';
3
31
  export const colorLow = '#9fa2a8';
@@ -8,11 +36,9 @@ export const colorSuccess = '#8cbd24';
8
36
  export const colorDanger = '#FF3131';
9
37
  export const colorNeutralBright = '#bfc1c5';
10
38
  export const colorInfo = '#326dd1';
11
- export const colorBlueLight = '#21bef4';
12
39
  export const colorBorderBright = '#e6e6e6';
13
40
  export const colorLabelBright = '#5f656d';
14
41
  export const colorValueBright = '#1d1d1d';
15
- export const colorTealLight = '#6ddeba';
16
42
  export const colorValueDark = '#ffffff';
17
43
  export const colorLabelDark = '#888888';
18
44
  export const colorNeutralDark = '#2E2E2E';