@sumup-oss/design-tokens 8.0.0-next.3 → 8.0.1

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 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
- #### Next.js
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
 
@@ -52,43 +52,43 @@ exports.typography = {
52
52
  },
53
53
  two: {
54
54
  fontSize: '1.5rem',
55
- lineHeight: '1.75rem',
55
+ lineHeight: '1.625rem',
56
56
  },
57
57
  three: {
58
- fontSize: '1.25rem',
59
- lineHeight: '1.5rem',
58
+ fontSize: '1.125rem',
59
+ lineHeight: '1.375rem',
60
60
  },
61
61
  four: {
62
62
  fontSize: '1.125rem',
63
- lineHeight: '1.5rem',
63
+ lineHeight: '1.375rem',
64
64
  },
65
65
  },
66
66
  title: {
67
67
  one: {
68
- fontSize: '7.5rem',
69
- lineHeight: '7.5rem',
68
+ fontSize: '4rem',
69
+ lineHeight: '4.5rem',
70
70
  },
71
71
  two: {
72
- fontSize: '6rem',
73
- lineHeight: '6rem',
72
+ fontSize: '3rem',
73
+ lineHeight: '3.5rem',
74
74
  },
75
75
  three: {
76
- fontSize: '4rem',
77
- lineHeight: '4rem',
76
+ fontSize: '3rem',
77
+ lineHeight: '3.5rem',
78
78
  },
79
79
  four: {
80
- fontSize: '3.5rem',
81
- lineHeight: '3.5rem',
80
+ fontSize: '2.5rem',
81
+ lineHeight: '2.875rem',
82
82
  },
83
83
  },
84
84
  subHeadline: {
85
- fontSize: '0.875rem',
86
- lineHeight: '1.25rem',
85
+ fontSize: '1.125rem',
86
+ lineHeight: '1.375rem',
87
87
  },
88
88
  body: {
89
89
  one: {
90
90
  fontSize: '1rem',
91
- lineHeight: '1.5rem',
91
+ lineHeight: '1.375rem',
92
92
  },
93
93
  two: {
94
94
  fontSize: '0.875rem',
@@ -97,7 +97,7 @@ exports.typography = {
97
97
  },
98
98
  bodyLarge: {
99
99
  fontSize: '1.25rem',
100
- lineHeight: '1.75rem',
100
+ lineHeight: '1.5rem',
101
101
  },
102
102
  };
103
103
  exports.fontStack = {
@@ -105,8 +105,8 @@ exports.fontStack = {
105
105
  mono: 'Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace',
106
106
  };
107
107
  exports.fontWeight = {
108
- regular: '400',
109
- bold: '700',
108
+ regular: '375',
109
+ bold: '630',
110
110
  };
111
111
  exports.grid = {
112
112
  default: {
@@ -49,43 +49,43 @@ export const typography = {
49
49
  },
50
50
  two: {
51
51
  fontSize: '1.5rem',
52
- lineHeight: '1.75rem',
52
+ lineHeight: '1.625rem',
53
53
  },
54
54
  three: {
55
- fontSize: '1.25rem',
56
- lineHeight: '1.5rem',
55
+ fontSize: '1.125rem',
56
+ lineHeight: '1.375rem',
57
57
  },
58
58
  four: {
59
59
  fontSize: '1.125rem',
60
- lineHeight: '1.5rem',
60
+ lineHeight: '1.375rem',
61
61
  },
62
62
  },
63
63
  title: {
64
64
  one: {
65
- fontSize: '7.5rem',
66
- lineHeight: '7.5rem',
65
+ fontSize: '4rem',
66
+ lineHeight: '4.5rem',
67
67
  },
68
68
  two: {
69
- fontSize: '6rem',
70
- lineHeight: '6rem',
69
+ fontSize: '3rem',
70
+ lineHeight: '3.5rem',
71
71
  },
72
72
  three: {
73
- fontSize: '4rem',
74
- lineHeight: '4rem',
73
+ fontSize: '3rem',
74
+ lineHeight: '3.5rem',
75
75
  },
76
76
  four: {
77
- fontSize: '3.5rem',
78
- lineHeight: '3.5rem',
77
+ fontSize: '2.5rem',
78
+ lineHeight: '2.875rem',
79
79
  },
80
80
  },
81
81
  subHeadline: {
82
- fontSize: '0.875rem',
83
- lineHeight: '1.25rem',
82
+ fontSize: '1.125rem',
83
+ lineHeight: '1.375rem',
84
84
  },
85
85
  body: {
86
86
  one: {
87
87
  fontSize: '1rem',
88
- lineHeight: '1.5rem',
88
+ lineHeight: '1.375rem',
89
89
  },
90
90
  two: {
91
91
  fontSize: '0.875rem',
@@ -94,7 +94,7 @@ export const typography = {
94
94
  },
95
95
  bodyLarge: {
96
96
  fontSize: '1.25rem',
97
- lineHeight: '1.75rem',
97
+ lineHeight: '1.5rem',
98
98
  },
99
99
  };
100
100
  export const fontStack = {
@@ -102,8 +102,8 @@ export const fontStack = {
102
102
  mono: 'Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace',
103
103
  };
104
104
  export const fontWeight = {
105
- regular: '400',
106
- bold: '700',
105
+ regular: '375',
106
+ bold: '630',
107
107
  };
108
108
  export const grid = {
109
109
  default: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sumup-oss/design-tokens",
3
- "version": "8.0.0-next.3",
3
+ "version": "8.0.1",
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",
@@ -31,14 +31,14 @@
31
31
  "test": "vitest"
32
32
  },
33
33
  "dependencies": {
34
- "browserslist": "^4.23.2",
35
- "lightningcss": "^1.25.1",
34
+ "browserslist": "^4.24.2",
35
+ "lightningcss": "^1.27.0",
36
36
  "prop-types": "^15.8.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/node": "^22.7.4",
40
- "@types/prop-types": "^15.7.12",
41
- "tsx": "^4.16.5",
42
- "typescript": "^5.6.2"
39
+ "@types/node": "^22.8.6",
40
+ "@types/prop-types": "^15.7.13",
41
+ "tsx": "^4.19.2",
42
+ "typescript": "^5.6.3"
43
43
  }
44
44
  }