@aleph-alpha/config-css 0.14.3 → 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 CHANGED
@@ -1,3 +1,13 @@
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
+
1
11
  ## 0.14.3 (2025-06-06)
2
12
 
3
13
  ### 🩹 Fixes
@@ -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.3",
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",
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,