eidotter 0.19.0 → 0.19.3

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 (132) hide show
  1. package/LICENSE.md +0 -0
  2. package/README.md +27 -11
  3. package/dist/components/Accordion/components/AccordionFill.d.ts +0 -0
  4. package/dist/components/Accordion/components/Section.d.ts +0 -0
  5. package/dist/components/Accordion/components/index.d.ts +0 -0
  6. package/dist/components/Accordion/index.d.ts +0 -0
  7. package/dist/components/Alert/components/Alert.d.ts +0 -0
  8. package/dist/components/Alert/components/index.d.ts +0 -0
  9. package/dist/components/Alert/index.d.ts +0 -0
  10. package/dist/components/Badge/components/Badge.d.ts +0 -0
  11. package/dist/components/Badge/components/index.d.ts +0 -0
  12. package/dist/components/Badge/index.d.ts +0 -0
  13. package/dist/components/Breadcrumb/components/Breadcrumb.d.ts +0 -0
  14. package/dist/components/Breadcrumb/components/index.d.ts +0 -0
  15. package/dist/components/Breadcrumb/index.d.ts +0 -0
  16. package/dist/components/Button/components/Button.d.ts +0 -0
  17. package/dist/components/Button/components/index.d.ts +0 -0
  18. package/dist/components/Button/index.d.ts +0 -0
  19. package/dist/components/Card/components/Card.d.ts +0 -0
  20. package/dist/components/Card/components/index.d.ts +0 -0
  21. package/dist/components/Card/index.d.ts +0 -0
  22. package/dist/components/Chat/components/ChatContainer.d.ts +0 -0
  23. package/dist/components/Chat/components/ChatHistory.d.ts +0 -0
  24. package/dist/components/Chat/components/ChatInput.d.ts +0 -0
  25. package/dist/components/Chat/components/ChatMessage.d.ts +0 -0
  26. package/dist/components/Chat/components/index.d.ts +0 -0
  27. package/dist/components/Chat/index.d.ts +0 -0
  28. package/dist/components/Checkbox/components/Checkbox.d.ts +0 -0
  29. package/dist/components/Checkbox/components/index.d.ts +0 -0
  30. package/dist/components/Checkbox/index.d.ts +0 -0
  31. package/dist/components/CommandPrompt/components/CommandPrompt.d.ts +0 -0
  32. package/dist/components/CommandPrompt/components/index.d.ts +0 -0
  33. package/dist/components/CommandPrompt/index.d.ts +0 -0
  34. package/dist/components/FilterBar/components/FilterBar.d.ts +0 -0
  35. package/dist/components/FilterBar/components/index.d.ts +0 -0
  36. package/dist/components/FilterBar/index.d.ts +0 -0
  37. package/dist/components/Footer/components/Footer.d.ts +0 -0
  38. package/dist/components/Footer/components/index.d.ts +0 -0
  39. package/dist/components/Footer/index.d.ts +0 -0
  40. package/dist/components/Header/components/Header.d.ts +0 -0
  41. package/dist/components/Header/components/index.d.ts +0 -0
  42. package/dist/components/Header/index.d.ts +0 -0
  43. package/dist/components/Icon/components/Icon.d.ts +0 -0
  44. package/dist/components/Icon/components/index.d.ts +0 -0
  45. package/dist/components/Icon/index.d.ts +0 -0
  46. package/dist/components/InlineExpand/components/InlineExpand.d.ts +0 -0
  47. package/dist/components/InlineExpand/components/index.d.ts +0 -0
  48. package/dist/components/InlineExpand/index.d.ts +0 -0
  49. package/dist/components/Input/components/Input.d.ts +0 -0
  50. package/dist/components/Input/components/index.d.ts +0 -0
  51. package/dist/components/Input/index.d.ts +0 -0
  52. package/dist/components/Modal/components/Modal.d.ts +0 -0
  53. package/dist/components/Modal/components/index.d.ts +0 -0
  54. package/dist/components/Modal/index.d.ts +0 -0
  55. package/dist/components/Nav/components/Nav.d.ts +0 -0
  56. package/dist/components/Nav/components/index.d.ts +0 -0
  57. package/dist/components/Nav/index.d.ts +0 -0
  58. package/dist/components/Notification/components/Notification.d.ts +0 -0
  59. package/dist/components/Notification/components/index.d.ts +0 -0
  60. package/dist/components/Notification/index.d.ts +0 -0
  61. package/dist/components/Progress/components/Progress.d.ts +0 -0
  62. package/dist/components/Progress/components/index.d.ts +0 -0
  63. package/dist/components/Progress/index.d.ts +0 -0
  64. package/dist/components/RetroEffects/components/RetroEffects.d.ts +0 -0
  65. package/dist/components/RetroEffects/components/index.d.ts +0 -0
  66. package/dist/components/RetroEffects/index.d.ts +0 -0
  67. package/dist/components/Separator/components/Separator.d.ts +0 -0
  68. package/dist/components/Separator/components/index.d.ts +0 -0
  69. package/dist/components/Separator/index.d.ts +0 -0
  70. package/dist/components/Stat/components/Stat.d.ts +0 -0
  71. package/dist/components/Stat/components/index.d.ts +0 -0
  72. package/dist/components/Stat/index.d.ts +0 -0
  73. package/dist/components/Switch/components/Switch.d.ts +0 -0
  74. package/dist/components/Switch/components/index.d.ts +0 -0
  75. package/dist/components/Switch/index.d.ts +0 -0
  76. package/dist/components/Tabs/components/Tabs.d.ts +0 -0
  77. package/dist/components/Tabs/components/index.d.ts +0 -0
  78. package/dist/components/Tabs/index.d.ts +0 -0
  79. package/dist/components/Tag/components/Tag.d.ts +0 -0
  80. package/dist/components/Tag/components/TagGroup.d.ts +0 -0
  81. package/dist/components/Tag/components/index.d.ts +0 -0
  82. package/dist/components/Tag/index.d.ts +0 -0
  83. package/dist/components/Terminal/components/Terminal.d.ts +0 -0
  84. package/dist/components/Terminal/components/index.d.ts +0 -0
  85. package/dist/components/Terminal/index.d.ts +0 -0
  86. package/dist/components/TextScramble/components/TextScramble.d.ts +0 -0
  87. package/dist/components/TextScramble/components/index.d.ts +0 -0
  88. package/dist/components/TextScramble/index.d.ts +0 -0
  89. package/dist/components/TimelineContainer/components/TimelineAxis.d.ts +0 -0
  90. package/dist/components/TimelineContainer/components/TimelineContainer.d.ts +0 -0
  91. package/dist/components/TimelineContainer/components/TimelineContent.d.ts +0 -0
  92. package/dist/components/TimelineContainer/components/TimelineEntryCard.d.ts +0 -0
  93. package/dist/components/TimelineContainer/components/ZoomControls.d.ts +0 -0
  94. package/dist/components/TimelineContainer/components/index.d.ts +0 -0
  95. package/dist/components/TimelineContainer/components/timelineUtils.d.ts +0 -0
  96. package/dist/components/TimelineContainer/components/timelineUtils.test.d.ts +0 -0
  97. package/dist/components/TimelineContainer/components/types.d.ts +0 -0
  98. package/dist/components/TimelineContainer/components/useDrillDown.d.ts +0 -0
  99. package/dist/components/TimelineContainer/components/useDrillDown.test.d.ts +0 -0
  100. package/dist/components/TimelineContainer/components/useSelection.d.ts +0 -0
  101. package/dist/components/TimelineContainer/components/useSelection.test.d.ts +0 -0
  102. package/dist/components/TimelineContainer/components/useZoom.d.ts +0 -0
  103. package/dist/components/TimelineContainer/components/useZoom.test.d.ts +0 -0
  104. package/dist/components/TimelineContainer/components/views/DayView.d.ts +0 -0
  105. package/dist/components/TimelineContainer/components/views/HourView.d.ts +0 -0
  106. package/dist/components/TimelineContainer/components/views/MonthView.d.ts +0 -0
  107. package/dist/components/TimelineContainer/components/views/YearView.d.ts +0 -0
  108. package/dist/components/TimelineContainer/components/views/index.d.ts +0 -0
  109. package/dist/components/TimelineContainer/index.d.ts +0 -0
  110. package/dist/components/TimelineNode/components/TimelineNode.d.ts +0 -0
  111. package/dist/components/TimelineNode/components/index.d.ts +0 -0
  112. package/dist/components/TimelineNode/index.d.ts +0 -0
  113. package/dist/components/registry.d.ts +0 -0
  114. package/dist/eidotter.css +1 -1
  115. package/dist/index.d.ts +2 -1
  116. package/dist/index.es.js +70 -62
  117. package/dist/index.umd.js +4 -4
  118. package/guidelines/README.md +10 -6
  119. package/guidelines/components.md +0 -0
  120. package/guidelines/patterns.md +0 -0
  121. package/package.json +3 -3
  122. package/src/styles/fonts/Flexi_IBM_VGA_LICENSE.txt +0 -0
  123. package/src/styles/fonts/Flexi_IBM_VGA_True.ttf +0 -0
  124. package/src/styles/fonts.css +0 -0
  125. package/src/styles/theme.amber-mono.css +2 -2
  126. package/src/styles/theme.cga-amber.css +2 -2
  127. package/src/styles/theme.cga-mode4-p0.css +2 -2
  128. package/src/styles/theme.cga-mode4-p1.css +2 -2
  129. package/src/styles/theme.cga-mode5.css +2 -2
  130. package/src/styles/tokens.css +2 -2
  131. package/tailwind.preset.cjs +58 -13
  132. package/tailwind.preset.enhanced.cjs +21 -36
@@ -17,9 +17,7 @@ eidotter provides 33 ready-to-use components with consistent DOS terminal stylin
17
17
 
18
18
  ```tsx
19
19
  import { Button, Card, Input } from 'eidotter';
20
- import 'eidotter/fonts.css'; // Flexi IBM VGA True @font-face (required)
21
- import 'eidotter/styles'; // Component CSS (includes Tailwind utilities)
22
- import 'eidotter/tokens.css'; // CSS variable definitions (required)
20
+ import 'eidotter/styles'; // All styles: fonts, tokens, components, Tailwind utilities
23
21
 
24
22
  function App() {
25
23
  return (
@@ -90,14 +88,20 @@ function App() {
90
88
  ### CSS Import (required)
91
89
 
92
90
  ```tsx
93
- import 'eidotter/fonts.css'; // Flexi IBM VGA True @font-face (required)
94
- import 'eidotter/styles'; // Component CSS (includes compiled Tailwind utilities)
95
- import 'eidotter/tokens.css'; // Design token CSS variables
91
+ import 'eidotter/styles'; // All styles: fonts, tokens, components, Tailwind utilities
96
92
 
97
93
  // Optional: import a theme
98
94
  import 'eidotter/themes/amber-mono.css';
99
95
  ```
100
96
 
97
+ Individual imports are still available if you need granular control (e.g., providing your own font or overriding tokens):
98
+
99
+ ```tsx
100
+ import 'eidotter/fonts.css'; // Flexi IBM VGA True @font-face
101
+ import 'eidotter/tokens.css'; // Design token CSS variables
102
+ import 'eidotter/styles'; // Component CSS + Tailwind utilities
103
+ ```
104
+
101
105
  ### Tailwind Preset (optional)
102
106
 
103
107
  Use eidotter tokens as Tailwind classes in your own code:
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eidotter",
3
- "version": "0.19.0",
3
+ "version": "0.19.3",
4
4
  "type": "module",
5
5
  "description": "A DOS Themed Design System",
6
6
  "main": "./dist/index.umd.js",
@@ -88,7 +88,7 @@
88
88
  "devDependencies": {
89
89
  "@eslint/js": "^10.0.1",
90
90
  "@figma/plugin-typings": "^1.107.0-beta.2",
91
- "@figma/rest-api-spec": "^0.36.0",
91
+ "@figma/rest-api-spec": "^0.37.0",
92
92
  "@storybook/addon-a11y": "^10.2.7",
93
93
  "@storybook/addon-designs": "^11.1.2",
94
94
  "@storybook/addon-docs": "^10.2.7",
@@ -106,7 +106,7 @@
106
106
  "@types/react-dom": "^19.0.0",
107
107
  "@vitejs/plugin-react": "^5.1.2",
108
108
  "autoprefixer": "^10.4.27",
109
- "chromatic": "^15.2.0",
109
+ "chromatic": "^16.2.0",
110
110
  "cross-env": "^10.1.0",
111
111
  "dotenv": "^17.3.1",
112
112
  "eslint": "^10.0.3",
File without changes
File without changes
File without changes
@@ -29,8 +29,8 @@
29
29
  --color-cga-magenta-glow: rgba(255, 85, 255, 0.5); /** Magenta glow at 50% opacity */
30
30
  --color-cga-blue-glow: rgba(85, 85, 255, 0.5); /** Blue glow at 50% opacity */
31
31
  --color-cga-white-glow: rgba(255, 245, 224, 0.5); /** Warm white glow at 50% opacity */
32
- --typography-font-family-primary: 'Flexi IBM VGA True'; /** Flexi IBM VGA True v2 — vector remake of IBM VGA BIOS font, aspect-corrected (CC BY-SA 4.0) */
33
- --typography-font-family-fallback: monospace; /** Generic monospace fallback — intentionally bare to surface missing font-face */
32
+ --typography-font-family-primary: 'Flexi IBM VGA True', monospace; /** Flexi IBM VGA True v2 (CC BY-SA 4.0) with a `monospace` fallback that preserves DOS aesthetic on @font-face failure. */
33
+ --typography-font-family-fallback: monospace; /** Bare `monospace` stack — fail-loud diagnostic counterpart to `primary`. Compose with `primary` when consumers want strict Flexi-or-nothing rendering. */
34
34
  --typography-font-size-text-xs: 1.125rem; /** 18px — smallest body text */
35
35
  --typography-font-size-text-sm: 1.25rem; /** 20px — secondary body text */
36
36
  --typography-font-size-text-md: 1.375rem; /** 22px — default body text */
@@ -33,8 +33,8 @@
33
33
  --color-semantic-alert-success: #122010;
34
34
  --color-semantic-alert-warning: #352800;
35
35
  --color-semantic-alert-error: #430500;
36
- --typography-font-family-primary: 'Flexi IBM VGA True'; /** Flexi IBM VGA True v2 — vector remake of IBM VGA BIOS font, aspect-corrected (CC BY-SA 4.0) */
37
- --typography-font-family-fallback: monospace; /** Generic monospace fallback — intentionally bare to surface missing font-face */
36
+ --typography-font-family-primary: 'Flexi IBM VGA True', monospace; /** Flexi IBM VGA True v2 (CC BY-SA 4.0) with a `monospace` fallback that preserves DOS aesthetic on @font-face failure. */
37
+ --typography-font-family-fallback: monospace; /** Bare `monospace` stack — fail-loud diagnostic counterpart to `primary`. Compose with `primary` when consumers want strict Flexi-or-nothing rendering. */
38
38
  --typography-font-size-text-xs: 1.125rem; /** 18px — smallest body text */
39
39
  --typography-font-size-text-sm: 1.25rem; /** 20px — secondary body text */
40
40
  --typography-font-size-text-md: 1.375rem; /** 22px — default body text */
@@ -52,8 +52,8 @@
52
52
  --color-semantic-alert-success: #050300;
53
53
  --color-semantic-alert-warning: #050300;
54
54
  --color-semantic-alert-error: #050300;
55
- --typography-font-family-primary: 'Flexi IBM VGA True'; /** Flexi IBM VGA True v2 — vector remake of IBM VGA BIOS font, aspect-corrected (CC BY-SA 4.0) */
56
- --typography-font-family-fallback: monospace; /** Generic monospace fallback — intentionally bare to surface missing font-face */
55
+ --typography-font-family-primary: 'Flexi IBM VGA True', monospace; /** Flexi IBM VGA True v2 (CC BY-SA 4.0) with a `monospace` fallback that preserves DOS aesthetic on @font-face failure. */
56
+ --typography-font-family-fallback: monospace; /** Bare `monospace` stack — fail-loud diagnostic counterpart to `primary`. Compose with `primary` when consumers want strict Flexi-or-nothing rendering. */
57
57
  --typography-font-size-text-xs: 1.125rem; /** 18px — smallest body text */
58
58
  --typography-font-size-text-sm: 1.25rem; /** 20px — secondary body text */
59
59
  --typography-font-size-text-md: 1.375rem; /** 22px — default body text */
@@ -52,8 +52,8 @@
52
52
  --color-semantic-alert-success: #050300;
53
53
  --color-semantic-alert-warning: #050300;
54
54
  --color-semantic-alert-error: #050300;
55
- --typography-font-family-primary: 'Flexi IBM VGA True'; /** Flexi IBM VGA True v2 — vector remake of IBM VGA BIOS font, aspect-corrected (CC BY-SA 4.0) */
56
- --typography-font-family-fallback: monospace; /** Generic monospace fallback — intentionally bare to surface missing font-face */
55
+ --typography-font-family-primary: 'Flexi IBM VGA True', monospace; /** Flexi IBM VGA True v2 (CC BY-SA 4.0) with a `monospace` fallback that preserves DOS aesthetic on @font-face failure. */
56
+ --typography-font-family-fallback: monospace; /** Bare `monospace` stack — fail-loud diagnostic counterpart to `primary`. Compose with `primary` when consumers want strict Flexi-or-nothing rendering. */
57
57
  --typography-font-size-text-xs: 1.125rem; /** 18px — smallest body text */
58
58
  --typography-font-size-text-sm: 1.25rem; /** 20px — secondary body text */
59
59
  --typography-font-size-text-md: 1.375rem; /** 22px — default body text */
@@ -52,8 +52,8 @@
52
52
  --color-semantic-alert-success: #050300;
53
53
  --color-semantic-alert-warning: #050300;
54
54
  --color-semantic-alert-error: #050300;
55
- --typography-font-family-primary: 'Flexi IBM VGA True'; /** Flexi IBM VGA True v2 — vector remake of IBM VGA BIOS font, aspect-corrected (CC BY-SA 4.0) */
56
- --typography-font-family-fallback: monospace; /** Generic monospace fallback — intentionally bare to surface missing font-face */
55
+ --typography-font-family-primary: 'Flexi IBM VGA True', monospace; /** Flexi IBM VGA True v2 (CC BY-SA 4.0) with a `monospace` fallback that preserves DOS aesthetic on @font-face failure. */
56
+ --typography-font-family-fallback: monospace; /** Bare `monospace` stack — fail-loud diagnostic counterpart to `primary`. Compose with `primary` when consumers want strict Flexi-or-nothing rendering. */
57
57
  --typography-font-size-text-xs: 1.125rem; /** 18px — smallest body text */
58
58
  --typography-font-size-text-sm: 1.25rem; /** 20px — secondary body text */
59
59
  --typography-font-size-text-md: 1.375rem; /** 22px — default body text */
@@ -33,8 +33,8 @@
33
33
  --color-semantic-alert-success: #122010; /** Warm dark green for success alerts */
34
34
  --color-semantic-alert-warning: #352800; /** Dark amber for warning alerts */
35
35
  --color-semantic-alert-error: #430500; /** Warm dark red for error alerts */
36
- --typography-font-family-primary: 'Flexi IBM VGA True'; /** Flexi IBM VGA True v2 — vector remake of IBM VGA BIOS font, aspect-corrected (CC BY-SA 4.0) */
37
- --typography-font-family-fallback: monospace; /** Generic monospace fallback — intentionally bare to surface missing font-face */
36
+ --typography-font-family-primary: 'Flexi IBM VGA True', monospace; /** Flexi IBM VGA True v2 (CC BY-SA 4.0) with a `monospace` fallback that preserves DOS aesthetic on @font-face failure. */
37
+ --typography-font-family-fallback: monospace; /** Bare `monospace` stack — fail-loud diagnostic counterpart to `primary`. Compose with `primary` when consumers want strict Flexi-or-nothing rendering. */
38
38
  --typography-font-size-text-xs: 1.125rem; /** 18px — smallest body text */
39
39
  --typography-font-size-text-sm: 1.25rem; /** 20px — secondary body text */
40
40
  --typography-font-size-text-md: 1.375rem; /** 22px — default body text */
@@ -5,6 +5,8 @@
5
5
  * Generated from: src/tokens/base.tokens.json
6
6
  * Run: npm run build-tokens
7
7
  *
8
+ * Includes all design tokens plus optional React Aria and animate plugins.
9
+ *
8
10
  * Usage:
9
11
  * // tailwind.config.js
10
12
  * module.exports = {
@@ -12,7 +14,23 @@
12
14
  * }
13
15
  */
14
16
 
15
- module.exports = {
17
+ let reactAriaPlugin;
18
+ try {
19
+ reactAriaPlugin = require('tailwindcss-react-aria-components');
20
+ } catch {
21
+ // tailwindcss-react-aria-components not installed — skip
22
+ reactAriaPlugin = null;
23
+ }
24
+
25
+ let animatePlugin;
26
+ try {
27
+ animatePlugin = require('tailwindcss-animate');
28
+ } catch {
29
+ // tailwindcss-animate not installed — skip
30
+ animatePlugin = null;
31
+ }
32
+
33
+ const preset = {
16
34
  "theme": {
17
35
  "extend": {
18
36
  "colors": {
@@ -36,6 +54,12 @@ module.exports = {
36
54
  "cga-amber-bright": "#fdca9f",
37
55
  "cga-amber-dim": "#9a5700",
38
56
  "cga-amber-glow": "#ffb00080",
57
+ "cga-red-glow": "#ff555580",
58
+ "cga-green-glow": "#55ff5580",
59
+ "cga-cyan-glow": "#55ffff80",
60
+ "cga-magenta-glow": "#ff55ff80",
61
+ "cga-blue-glow": "#5555ff80",
62
+ "cga-white-glow": "#fff5e080",
39
63
  "dos-bg-primary": "var(--color-semantic-background-primary)",
40
64
  "dos-bg-secondary": "var(--color-semantic-background-secondary)",
41
65
  "dos-bg-accent": "var(--color-semantic-background-accent)",
@@ -64,9 +88,6 @@ module.exports = {
64
88
  "monospace"
65
89
  ],
66
90
  "dos-fallback": [
67
- "Consolas",
68
- "Monaco",
69
- "\"Courier New\"",
70
91
  "monospace"
71
92
  ]
72
93
  },
@@ -96,19 +117,12 @@ module.exports = {
96
117
  "dos-display-xl": "4.5rem",
97
118
  "dos-display-2xl": "5.625rem"
98
119
  },
99
- // Flexi IBM VGA True is a single-weight bitmap-style font. Authentic
100
- // DOS had no bold variant — emphasis is expressed via color, uppercase,
101
- // or inverse video. The dos-regular/semibold/bold utilities are kept
102
- // as aliases all resolving to 400 so existing consumer code using
103
- // font-dos-bold / font-dos-semibold keeps working without visual change.
104
- // Mirrors the generated tailwind.preset.js.
105
120
  "fontWeight": {
106
121
  "dos-regular": "400",
107
122
  "dos-semibold": "400",
108
123
  "dos-bold": "400"
109
124
  },
110
125
  "spacing": {
111
- "dos-0": "0px",
112
126
  "dos-1": "4px",
113
127
  "dos-2": "8px",
114
128
  "dos-3": "12px",
@@ -121,7 +135,6 @@ module.exports = {
121
135
  "dos-16": "64px"
122
136
  },
123
137
  "borderRadius": {
124
- "dos-none": "0px",
125
138
  "dos-sm": "2px",
126
139
  "dos-base": "4px"
127
140
  },
@@ -131,8 +144,40 @@ module.exports = {
131
144
  "dos-glowXs": "0px 0px 8px 0px #FFB00080",
132
145
  "dos-glowSm": "0px 0px 10px 0px #FFB00080",
133
146
  "dos-glowMd": "0px 0px 20px 0px #FFB00080",
134
- "dos-glowLg": "0px 0px 30px 0px #FFB00080"
147
+ "dos-glowLg": "0px 0px 30px 0px #FFB00080",
148
+ "dos-glowXsRed": "0px 0px 8px 0px #FF555580",
149
+ "dos-glowSmRed": "0px 0px 10px 0px #FF555580",
150
+ "dos-glowMdRed": "0px 0px 20px 0px #FF555580",
151
+ "dos-glowLgRed": "0px 0px 30px 0px #FF555580",
152
+ "dos-glowXsGreen": "0px 0px 8px 0px #55FF5580",
153
+ "dos-glowSmGreen": "0px 0px 10px 0px #55FF5580",
154
+ "dos-glowMdGreen": "0px 0px 20px 0px #55FF5580",
155
+ "dos-glowLgGreen": "0px 0px 30px 0px #55FF5580",
156
+ "dos-glowXsCyan": "0px 0px 8px 0px #55FFFF80",
157
+ "dos-glowSmCyan": "0px 0px 10px 0px #55FFFF80",
158
+ "dos-glowMdCyan": "0px 0px 20px 0px #55FFFF80",
159
+ "dos-glowLgCyan": "0px 0px 30px 0px #55FFFF80",
160
+ "dos-glowXsMagenta": "0px 0px 8px 0px #FF55FF80",
161
+ "dos-glowSmMagenta": "0px 0px 10px 0px #FF55FF80",
162
+ "dos-glowMdMagenta": "0px 0px 20px 0px #FF55FF80",
163
+ "dos-glowLgMagenta": "0px 0px 30px 0px #FF55FF80",
164
+ "dos-glowXsBlue": "0px 0px 8px 0px #5555FF80",
165
+ "dos-glowSmBlue": "0px 0px 10px 0px #5555FF80",
166
+ "dos-glowMdBlue": "0px 0px 20px 0px #5555FF80",
167
+ "dos-glowLgBlue": "0px 0px 30px 0px #5555FF80",
168
+ "dos-glowXsWhite": "0px 0px 8px 0px #FFFFFF80",
169
+ "dos-glowSmWhite": "0px 0px 10px 0px #FFFFFF80",
170
+ "dos-glowMdWhite": "0px 0px 20px 0px #FFFFFF80",
171
+ "dos-glowLgWhite": "0px 0px 30px 0px #FFFFFF80"
135
172
  }
136
173
  }
137
174
  }
138
175
  };
176
+
177
+ preset.plugins = [
178
+ ...(preset.plugins || []),
179
+ ...(reactAriaPlugin ? [reactAriaPlugin] : []),
180
+ ...(animatePlugin ? [animatePlugin] : []),
181
+ ];
182
+
183
+ module.exports = preset;
@@ -1,44 +1,29 @@
1
1
  /**
2
- * Eidotter Enhanced Tailwind CSS Preset
2
+ * Deprecated alias for `eidotter/tailwind.preset`.
3
3
  *
4
- * Extends the base token preset with React Aria state variants
5
- * and utility plugins for component development.
4
+ * REMOVE-IN-0.21.0 — grep this marker when preparing the 0.21.0 release to
5
+ * delete this file, the `./tailwind.preset.enhanced` entry in `package.json`
6
+ * `exports`, and the matching entry in `files`.
6
7
  *
7
- * Usage:
8
- * // tailwind.config.js
9
- * module.exports = {
10
- * presets: [require('eidotter/tailwind.preset.enhanced')],
11
- * }
8
+ * @note Hand-written — NOT generated by `style-dictionary.config.mjs`.
9
+ * The sibling `tailwind.preset.cjs` IS generated; do not confuse them.
12
10
  *
13
- * Or use the base preset without React Aria:
14
- * module.exports = {
15
- * presets: [require('eidotter/tailwind.preset')],
16
- * }
11
+ * In v0.19.2, the base and enhanced presets were merged (#282). The single
12
+ * `tailwind.preset` now includes all design tokens plus React Aria state
13
+ * variants and the animate plugin. This file is a shim so existing consumers
14
+ * don't break on upgrade.
15
+ *
16
+ * Migration:
17
+ * - presets: [require('eidotter/tailwind.preset.enhanced')]
18
+ * + presets: [require('eidotter/tailwind.preset')]
17
19
  */
18
20
 
19
- const basePreset = require('./tailwind.preset.cjs');
20
-
21
- let reactAriaPlugin;
22
- try {
23
- reactAriaPlugin = require('tailwindcss-react-aria-components');
24
- } catch {
25
- // tailwindcss-react-aria-components not installed — skip
26
- reactAriaPlugin = null;
27
- }
28
-
29
- let animatePlugin;
30
- try {
31
- animatePlugin = require('tailwindcss-animate');
32
- } catch {
33
- // tailwindcss-animate not installed — skip
34
- animatePlugin = null;
21
+ if (!globalThis.__eidotterEnhancedPresetDeprecationWarned) {
22
+ globalThis.__eidotterEnhancedPresetDeprecationWarned = true;
23
+ console.warn(
24
+ "[eidotter] 'eidotter/tailwind.preset.enhanced' is deprecated since 0.19.2 " +
25
+ "and will be removed in 0.21.0. Use 'eidotter/tailwind.preset' instead."
26
+ );
35
27
  }
36
28
 
37
- module.exports = {
38
- ...basePreset,
39
- plugins: [
40
- ...(basePreset.plugins || []),
41
- ...(reactAriaPlugin ? [reactAriaPlugin] : []),
42
- ...(animatePlugin ? [animatePlugin] : []),
43
- ],
44
- };
29
+ module.exports = require('./tailwind.preset.cjs');