@sumup-oss/design-tokens 8.0.0-next.3 → 8.0.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/README.md +1 -29
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -40,8 +40,6 @@ Refer to the [theme documentation](https://circuit.sumup.com/?path=/docs/feature
|
|
|
40
40
|
|
|
41
41
|
### Fonts
|
|
42
42
|
|
|
43
|
-
#### Default
|
|
44
|
-
|
|
45
43
|
Import the stylesheet that contains the font face declarations globally in your application, such as in a global layout file:
|
|
46
44
|
|
|
47
45
|
```ts
|
|
@@ -60,33 +58,7 @@ To speed up the loading of the fonts, add preload links to the global `<head>` e
|
|
|
60
58
|
/>
|
|
61
59
|
```
|
|
62
60
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
If you're using Next.js 13+, use the built-in [font optimization](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) feature with this recommended configuration instead:
|
|
66
|
-
|
|
67
|
-
```tsx
|
|
68
|
-
// app/layout.tsx
|
|
69
|
-
import { Inter } from 'next/font/google';
|
|
70
|
-
|
|
71
|
-
const inter = Inter({
|
|
72
|
-
// Choose which subsets to preload based on the languages your app supports
|
|
73
|
-
subsets: ['latin'],
|
|
74
|
-
// Note that Next.js <14.2.6 contains outdated Google Fonts data which prevents
|
|
75
|
-
// usage of the `ital` axis (see https://github.com/vercel/next.js/issues/68395)
|
|
76
|
-
axes: ['ital'],
|
|
77
|
-
variable: '--cui-font-stack-default',
|
|
78
|
-
display: 'swap',
|
|
79
|
-
preload: true,
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
export default function RootLayout({ children }) {
|
|
83
|
-
return (
|
|
84
|
-
<html lang="en">
|
|
85
|
-
<body className={inter.variable}>{children}</body>
|
|
86
|
-
</html>
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
```
|
|
61
|
+
Do not use Next.js' built-in font optimization as it doesn't support Inter's italic axis.
|
|
90
62
|
|
|
91
63
|
### Color schemes
|
|
92
64
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sumup-oss/design-tokens",
|
|
3
|
-
"version": "8.0.0
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Visual primitives such as typography, color, and spacing that are shared across platforms.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/es/index.js",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"browserslist": "^4.23.2",
|
|
35
|
-
"lightningcss": "^1.
|
|
35
|
+
"lightningcss": "^1.27.0",
|
|
36
36
|
"prop-types": "^15.8.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^22.
|
|
40
|
-
"@types/prop-types": "^15.7.
|
|
41
|
-
"tsx": "^4.
|
|
42
|
-
"typescript": "^5.6.
|
|
39
|
+
"@types/node": "^22.8.2",
|
|
40
|
+
"@types/prop-types": "^15.7.13",
|
|
41
|
+
"tsx": "^4.19.2",
|
|
42
|
+
"typescript": "^5.6.3"
|
|
43
43
|
}
|
|
44
44
|
}
|