@aleph-alpha/config-css 0.14.2 → 0.14.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.
- package/CHANGELOG.md +20 -0
- package/eslint.config.js +25 -0
- package/package.json +2 -2
- package/src/index.ts +12 -0
- package/dist/index.d.ts +0 -47
- package/dist/index.js +0 -1010
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## 0.14.4 (2025-06-06)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **fonts:** add preflight to set antialiasing on fonts
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- lucas.esperidiao
|
|
10
|
+
|
|
11
|
+
## 0.14.3 (2025-06-06)
|
|
12
|
+
|
|
13
|
+
### 🩹 Fixes
|
|
14
|
+
|
|
15
|
+
- **deps:** update dependency @tokens-studio/sd-transforms to v2
|
|
16
|
+
|
|
17
|
+
### ❤️ Thank You
|
|
18
|
+
|
|
19
|
+
- Renovatebot
|
|
20
|
+
|
|
1
21
|
## 0.14.2 (2025-05-30)
|
|
2
22
|
|
|
3
23
|
### 🩹 Fixes
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import mainConfig from '@aleph-alpha/eslint-config-frontend/eslint.config.js';
|
|
2
|
+
import eslintConfigPrettier from 'eslint-config-prettier';
|
|
3
|
+
import jsdoc from 'eslint-plugin-jsdoc';
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
mainConfig.config,
|
|
7
|
+
...mainConfig.plugins,
|
|
8
|
+
{
|
|
9
|
+
ignores: ['.lintstagedrc.js', 'node_modules/*', 'dist/*', 'test/unit/coverage/*'],
|
|
10
|
+
rules: {
|
|
11
|
+
'no-unused-vars': 'off',
|
|
12
|
+
'sonarjs/todo-tag': 'warn',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
/**
|
|
16
|
+
* Rules to enforce JSDoc comments on interface, types and enums.
|
|
17
|
+
* This way we have all interfaces of our components properly documented.
|
|
18
|
+
*/
|
|
19
|
+
jsdoc.configs['flat/recommended'],
|
|
20
|
+
{
|
|
21
|
+
files: ['**/*.ts'],
|
|
22
|
+
ignores: ['**/*.test.ts', '**/*.stories.ts'],
|
|
23
|
+
},
|
|
24
|
+
eslintConfigPrettier,
|
|
25
|
+
];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aleph-alpha/config-css",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.4",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
7
7
|
"prettier": "@aleph-alpha/prettier-config-frontend",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@tokens-studio/sd-transforms": "
|
|
17
|
+
"@tokens-studio/sd-transforms": "2.0.0",
|
|
18
18
|
"@unocss/preset-legacy-compat": "66.1.3",
|
|
19
19
|
"token-transformer": "0.0.33",
|
|
20
20
|
"unocss": "^66.0.0",
|
package/src/index.ts
CHANGED
|
@@ -23,6 +23,18 @@ type Theme = {
|
|
|
23
23
|
const tokenPreset: Preset<Theme> = definePreset<Theme>(() => {
|
|
24
24
|
return {
|
|
25
25
|
name: '@aleph-alpha/uno-css-preset',
|
|
26
|
+
preflights: [
|
|
27
|
+
{
|
|
28
|
+
getCSS() {
|
|
29
|
+
return `
|
|
30
|
+
html {
|
|
31
|
+
-webkit-font-smoothing: antialiased;
|
|
32
|
+
-moz-osx-font-smoothing: grayscale;
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
],
|
|
26
38
|
rules: [...Object.entries(typographySet), ['h-screen', { height: '100vh' }]],
|
|
27
39
|
theme: {
|
|
28
40
|
colors: lightModeSet,
|
package/dist/index.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
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';
|
|
4
|
-
import { Preset } from 'unocss';
|
|
5
|
-
|
|
6
|
-
export declare const commonPresets: Preset<Theme>[];
|
|
7
|
-
|
|
8
|
-
export declare const createPresets: () => Preset<Theme>[];
|
|
9
|
-
|
|
10
|
-
export declare const getDesignSystemContentPathConfig: (framework: "vue" | "svelte") => {
|
|
11
|
-
content: {
|
|
12
|
-
filesystem: string[];
|
|
13
|
-
pipeline: {
|
|
14
|
-
include: (string | RegExp)[];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
};
|
|
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
|
-
|
|
25
|
-
/**
|
|
26
|
-
* The Aleph Alpha CSS preset for UnoCSS.
|
|
27
|
-
* It uses the Windi CSS preset for UnoCSS.
|
|
28
|
-
* and adds aleph alpha specific utilities for tokens from the design sysstem.
|
|
29
|
-
*/
|
|
30
|
-
declare const presetsAlephAlpha: () => Preset<Theme>[];
|
|
31
|
-
export default presetsAlephAlpha;
|
|
32
|
-
export { presetsAlephAlpha }
|
|
33
|
-
|
|
34
|
-
export declare type Theme = {
|
|
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>;
|
|
39
|
-
};
|
|
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
|
-
|
|
47
|
-
export { }
|