@dataimago/css 0.1.0-alpha.2 → 0.1.0-alpha.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.
@@ -1,12 +1,21 @@
1
1
  // @dataimago/css Tailwind preset — Generated from @dataimago/tokens
2
- // Source files: packages/tokens/src/colors.json, packages/tokens/src/typography.json
2
+ // Source files:
3
+ // packages/tokens/src/colors.json (palette + functional colors)
4
+ // packages/tokens/src/typography.json (font family, size, weight)
5
+ // packages/tokens/src/spacing.json (spacing, radius, shadow simple scales)
6
+ // packages/tokens/src/effects.json (theme-aware shadow, transition)
3
7
  // Regenerated by packages/css/build.mjs on every release.
4
8
  //
5
- // Iteration-1 (2026-04-30) brought: stone+forest palette anchor, paper as
6
- // renamed cream (with deprecated cream alias preserved through 0.2.x),
7
- // editorial/documentation display family split, font.size scale, math family.
8
- // See wiki/decisions/{josefin-weight-floor,display-family-split,h1-weight-medium,
9
- // display-lining-figures,font-trim-deferred}.md for the governance.
9
+ // Iteration-1 (2026-04-30): stone+forest palette anchor, paper-as-renamed-cream
10
+ // (with deprecated cream alias through 0.2.x), editorial/documentation display
11
+ // family split, font.size scale, math family. See wiki/decisions/{josefin-weight-floor,
12
+ // display-family-split, h1-weight-medium, display-lining-figures, font-trim-deferred}.md.
13
+ //
14
+ // Stage 2.3 (2026-05-04): Tailwind preset extended to spacing/borderRadius/
15
+ // boxShadow/transitionDuration so consumers can write `p-md`, `rounded-lg`,
16
+ // `shadow-subtle`, `duration-quick` Tailwind classes throughout instead of
17
+ // reaching for inline `var(--*)` references. theme.extend merges with Tailwind
18
+ // defaults at colliding keys (e.g. `rounded-md` becomes the dataimago value).
10
19
 
11
20
  /** @type {import('tailwindcss').Config} */
12
21
  module.exports = {
@@ -148,6 +157,42 @@ module.exports = {
148
157
  "heading-medium": "1.875rem",
149
158
  "heading-large": "2.25rem",
150
159
  "heading-xl": "3rem"
160
+ },
161
+ spacing: {
162
+ "xs": "0.25rem",
163
+ "sm": "0.5rem",
164
+ "md": "1rem",
165
+ "lg": "1.5rem",
166
+ "xl": "2rem",
167
+ "2xl": "3rem",
168
+ "3xl": "4rem"
169
+ },
170
+ borderRadius: {
171
+ "sm": "0.25rem",
172
+ "md": "0.5rem",
173
+ "lg": "0.75rem",
174
+ "xl": "1rem",
175
+ "full": "9999px"
176
+ },
177
+ boxShadow: {
178
+ "sm": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
179
+ "md": "0 4px 6px -1px rgb(0 0 0 / 0.1)",
180
+ "lg": "0 10px 15px -3px rgb(0 0 0 / 0.1)",
181
+ "xl": "0 20px 25px -5px rgb(0 0 0 / 0.1)",
182
+ "subtle": "var(--shadow-subtle, 0 1px 2px 0 rgb(20 20 16 / 0.05))",
183
+ "moderate": "var(--shadow-moderate, 0 4px 6px -1px rgb(20 20 16 / 0.1))",
184
+ "prominent": "var(--shadow-prominent, 0 10px 15px -3px rgb(20 20 16 / 0.1))"
185
+ },
186
+ transitionDuration: {
187
+ "quick": "0.15s",
188
+ "standard": "0.25s",
189
+ "smooth": "0.35s",
190
+ "logo": "0.3s"
191
+ },
192
+ transitionTimingFunction: {
193
+ "quick": "ease",
194
+ "standard": "ease-in-out",
195
+ "smooth": "ease"
151
196
  }
152
197
  }
153
198
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataimago/css",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "0.1.0-alpha.3",
4
4
  "description": "Compiled CSS and Tailwind preset for the dataimago ethical AI design system",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -25,7 +25,7 @@
25
25
  "README.md"
26
26
  ],
27
27
  "dependencies": {
28
- "@dataimago/tokens": "^0.1.0-alpha.2"
28
+ "@dataimago/tokens": "^0.1.0-alpha.3"
29
29
  },
30
30
  "devDependencies": {
31
31
  "sass": "^1.69.0"