@aleph-alpha/config-css 0.12.2 → 0.14.0
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/CHANGELOG.md +20 -0
- package/dist/index.d.ts +24 -7
- package/dist/index.js +130 -93
- package/package.json +2 -2
- package/sd.config.js +1 -50
- package/src/index.ts +42 -24
- package/tokens.json +272 -46
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## 0.14.0 (2025-05-13)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- add tokens for text style font sizes and line heights, so token studio can push values as 'rem' fix: update token transformer script and update storybook snapshots
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- Janine Dantes
|
|
10
|
+
|
|
11
|
+
## 0.13.0 (2025-05-12)
|
|
12
|
+
|
|
13
|
+
### 🚀 Features
|
|
14
|
+
|
|
15
|
+
- type-safety for `Theme` tokens
|
|
16
|
+
|
|
17
|
+
### ❤️ Thank You
|
|
18
|
+
|
|
19
|
+
- Max Hammer
|
|
20
|
+
|
|
1
21
|
## 0.12.2 (2025-05-09)
|
|
2
22
|
|
|
3
23
|
### 🩹 Fixes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import { default as default_2 } from '../sd-output/light-mode.json';
|
|
2
|
+
import { default as default_3 } from '../sd-output/spacings.json';
|
|
3
|
+
import { default as default_4 } from '../sd-output/box-shadows.json';
|
|
1
4
|
import { Preset } from 'unocss';
|
|
2
5
|
|
|
6
|
+
export declare const commonPresets: Preset<Theme>[];
|
|
7
|
+
|
|
3
8
|
export declare const createPresets: () => Preset<Theme>[];
|
|
4
9
|
|
|
5
10
|
export declare const getDesignSystemContentPathConfig: (framework: "vue" | "svelte") => {
|
|
@@ -11,20 +16,32 @@ export declare const getDesignSystemContentPathConfig: (framework: "vue" | "svel
|
|
|
11
16
|
};
|
|
12
17
|
};
|
|
13
18
|
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Use `presetsAlephAlpha` instead.
|
|
21
|
+
* preset**S** is misleading since it's not a preset but a function that returns a list of presets.
|
|
22
|
+
*/
|
|
23
|
+
export declare const presetAlephAlpha: () => Preset<Theme>[];
|
|
24
|
+
|
|
14
25
|
/**
|
|
15
26
|
* The Aleph Alpha CSS preset for UnoCSS.
|
|
16
27
|
* It uses the Windi CSS preset for UnoCSS.
|
|
17
28
|
* and adds aleph alpha specific utilities for tokens from the design sysstem.
|
|
18
29
|
*/
|
|
19
|
-
declare const
|
|
20
|
-
export default
|
|
21
|
-
export {
|
|
30
|
+
declare const presetsAlephAlpha: () => Preset<Theme>[];
|
|
31
|
+
export default presetsAlephAlpha;
|
|
32
|
+
export { presetsAlephAlpha }
|
|
22
33
|
|
|
23
34
|
export declare type Theme = {
|
|
24
|
-
colors?: Record<
|
|
25
|
-
spacing?: Record<
|
|
26
|
-
size?: Record<
|
|
27
|
-
boxShadow?: Record<
|
|
35
|
+
colors?: Record<keyof typeof default_2, string>;
|
|
36
|
+
spacing?: Record<keyof typeof default_3, string>;
|
|
37
|
+
size?: Record<keyof typeof default_3, string>;
|
|
38
|
+
boxShadow?: Record<keyof typeof default_4, string>;
|
|
28
39
|
};
|
|
29
40
|
|
|
41
|
+
/**
|
|
42
|
+
* This preset is used to add the aleph alpha specific utilities for tokens from the design system.
|
|
43
|
+
* Only the dark theme tokens are not included.
|
|
44
|
+
*/
|
|
45
|
+
export declare const tokenPreset: Preset<Theme>;
|
|
46
|
+
|
|
30
47
|
export { }
|