@db-ux/core-foundations 4.0.1 → 4.0.2
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 +28 -0
- package/agent/_instructions.md +43 -3
- package/agent/css/Variables.md +3 -1
- package/agent/scss/Variables.md +1 -1
- package/agent/tailwind/Variables.md +127 -66
- package/build/styles/absolute.css +2 -0
- package/build/styles/density/classes/all.css +2 -0
- package/build/styles/density/classes/expressive.css +2 -0
- package/build/styles/density/classes/functional.css +2 -0
- package/build/styles/density/classes/regular.css +2 -0
- package/build/styles/fonts/_index.scss +1 -0
- package/build/styles/fonts/_variables.scss +23 -0
- package/build/styles/fonts/classes/all.css +3 -0
- package/build/styles/fonts/classes/body/2xl.css +3 -0
- package/build/styles/fonts/classes/body/2xs.css +3 -0
- package/build/styles/fonts/classes/body/3xl.css +3 -0
- package/build/styles/fonts/classes/body/3xs.css +3 -0
- package/build/styles/fonts/classes/body/all.css +3 -0
- package/build/styles/fonts/classes/body/lg.css +3 -0
- package/build/styles/fonts/classes/body/md.css +3 -0
- package/build/styles/fonts/classes/body/sm.css +3 -0
- package/build/styles/fonts/classes/body/xl.css +3 -0
- package/build/styles/fonts/classes/body/xs.css +3 -0
- package/build/styles/fonts/classes/headline/2xl.css +3 -0
- package/build/styles/fonts/classes/headline/2xs.css +3 -0
- package/build/styles/fonts/classes/headline/3xl.css +3 -0
- package/build/styles/fonts/classes/headline/3xs.css +3 -0
- package/build/styles/fonts/classes/headline/all.css +3 -0
- package/build/styles/fonts/classes/headline/lg.css +3 -0
- package/build/styles/fonts/classes/headline/md.css +3 -0
- package/build/styles/fonts/classes/headline/sm.css +3 -0
- package/build/styles/fonts/classes/headline/xl.css +3 -0
- package/build/styles/fonts/classes/headline/xs.css +3 -0
- package/build/styles/index.css +2 -0
- package/build/styles/relative.css +2 -0
- package/build/styles/rollup.css +2 -0
- package/build/styles/webpack.css +2 -0
- package/build/tailwind/tailwind-tokens.json +1717 -0
- package/build/tailwind/theme/_variables.scss +14 -0
- package/build/tailwind/theme/colors/blue.css +154 -0
- package/build/tailwind/theme/colors/brand.css +160 -0
- package/build/tailwind/theme/colors/burgundy.css +160 -0
- package/build/tailwind/theme/colors/critical.css +160 -0
- package/build/tailwind/theme/colors/cyan.css +154 -0
- package/build/tailwind/theme/colors/green.css +160 -0
- package/build/tailwind/theme/colors/index.css +19 -0
- package/build/tailwind/theme/colors/informational.css +172 -0
- package/build/tailwind/theme/colors/light-green.css +166 -0
- package/build/tailwind/theme/colors/neutral.css +160 -0
- package/build/tailwind/theme/colors/orange.css +160 -0
- package/build/tailwind/theme/colors/pink.css +154 -0
- package/build/tailwind/theme/colors/red.css +154 -0
- package/build/tailwind/theme/colors/successful.css +166 -0
- package/build/tailwind/theme/colors/turquoise.css +160 -0
- package/build/tailwind/theme/colors/violet.css +160 -0
- package/build/tailwind/theme/colors/warning.css +160 -0
- package/build/tailwind/theme/colors/yellow.css +160 -0
- package/build/tailwind/theme/dimensions.css +28 -0
- package/build/tailwind/theme/index.css +46 -1
- package/package.json +3 -3
- /package/build/tailwind/theme/{colors.css → colors/colors.css} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @db-ux/core-foundations
|
|
2
2
|
|
|
3
|
+
## 4.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- chore: update instructions files for better copilot outputs - [see commit 797a114](https://github.com/db-ux-design-system/core-web/commit/797a114d7abc680667276f8ffc2f7f4482d89d3e):
|
|
8
|
+
- fix: add some missing variables
|
|
9
|
+
|
|
10
|
+
- fix(tailwind): add individual color theme files for all color variants - [see commit 797a114](https://github.com/db-ux-design-system/core-web/commit/797a114d7abc680667276f8ffc2f7f4482d89d3e):
|
|
11
|
+
- Create separate CSS files for each color
|
|
12
|
+
- Move colors.css to colors/ subdirectory with adaptive theme
|
|
13
|
+
- Add colors/index.css that imports all color variants
|
|
14
|
+
- Update theme/index.css to import from colors/index.css
|
|
15
|
+
- burgundy
|
|
16
|
+
- critical
|
|
17
|
+
- cyan
|
|
18
|
+
- green
|
|
19
|
+
- informational
|
|
20
|
+
- light-green
|
|
21
|
+
- neutral
|
|
22
|
+
- orange
|
|
23
|
+
- pink
|
|
24
|
+
- red
|
|
25
|
+
- successful
|
|
26
|
+
- turquoise
|
|
27
|
+
- violet
|
|
28
|
+
- warning
|
|
29
|
+
- yellow
|
|
30
|
+
|
|
3
31
|
## 4.0.1
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/agent/_instructions.md
CHANGED
|
@@ -1,15 +1,55 @@
|
|
|
1
1
|
## CSS
|
|
2
2
|
|
|
3
3
|
- If you use CSS, follow these rules:
|
|
4
|
-
- for
|
|
4
|
+
- Always reference the file `**agent-path**/agent/css/Variables.md` for variables like sizing, spacing, elevation, border, or container-size. This file contains the authoritative list of available variables.
|
|
5
|
+
- Use the examples provided in `Variables.md` to ensure correct usage like:
|
|
6
|
+
- `padding: var(--db-spacing-fixed-md);`
|
|
7
|
+
- `height: var(--db-sizing-md);`
|
|
8
|
+
- `width: var(--db-container-xs);`
|
|
9
|
+
- `color: var(--db-adaptive-on-bg-basic-emphasis-90-default);`
|
|
10
|
+
- `background-color: var(--db-adaptive-bg-basic-level-2-default);`
|
|
11
|
+
- `font: var(--db-type-body-sm);`
|
|
5
12
|
|
|
6
13
|
## SCSS
|
|
7
14
|
|
|
8
15
|
- If you use SCSS, follow these rules:
|
|
9
|
-
- for
|
|
16
|
+
- Always reference the file `**agent-path**/agent/scss/Variables.md` for variables like sizing, spacing, elevation, border, or container-size. This file contains the authoritative list of available variables.
|
|
17
|
+
- Use the examples provided in `Variables.md` to ensure correct usage.
|
|
18
|
+
- Always use `@use` for imports:
|
|
19
|
+
- Variables: `@use "@db-ux/core-foundations/build/styles/variables";`
|
|
20
|
+
- Colors: `@use "@db-ux/core-foundations/build/styles/colors";`
|
|
21
|
+
- Fonts: `@use "@db-ux/core-foundations/build/styles/fonts";`
|
|
22
|
+
- Never use `as *` for the `@use`, use it like this:
|
|
23
|
+
- `padding: variables.$db-spacing-fixed-md;`
|
|
24
|
+
- `height: variables.$db-sizing-md;`
|
|
25
|
+
- `width: variables.$db-container-xs;`
|
|
26
|
+
- `color: colors.$db-adaptive-on-bg-basic-emphasis-90-default;`
|
|
27
|
+
- `background-color: colors.$db-adaptive-bg-basic-level-2-default;`
|
|
28
|
+
- `font: fonts.$db-type-body-sm;`
|
|
10
29
|
|
|
11
30
|
## Tailwind
|
|
12
31
|
|
|
13
32
|
- If you use Tailwind, follow these rules:
|
|
14
|
-
- for
|
|
33
|
+
- Always reference the file `**agent-path**/agent/tailwind/Variables.md` for variables like sizing, spacing, elevation, border, or container-size. This file contains the authoritative list of available variables.
|
|
34
|
+
- Use the examples provided in `Variables.md` to ensure correct usage like:
|
|
35
|
+
- padding: `p-fix-md`
|
|
36
|
+
- height: `h-siz-md`
|
|
37
|
+
- width: `w-container-xs`
|
|
38
|
+
- color: `text-adaptive-on-bg-basic-emphasis-90-default`
|
|
39
|
+
- background-color: `bg-adaptive-bg-basic-level-2-default`
|
|
40
|
+
- font: `text-body-sm`
|
|
15
41
|
- Always stick to the variables. Don't use values like `p-4` or `m-[16px]`; use `p-fix-xs` or `m-fix-md` instead.
|
|
42
|
+
|
|
43
|
+
## Figma MCP
|
|
44
|
+
|
|
45
|
+
- If you use Figma MCP always generate code with project's conventions, such as using @db-ux/core-components and @db-ux/core-foundations.
|
|
46
|
+
- If a code snippet from Figma MCP has a font-family with "DB Neo Screen Head" use HTML headlines (`<h1>`, `<h2>`, `<h3>`, `<h4>`, `<h5>`, `<h6>` HTML tags).
|
|
47
|
+
- If the headline has a `font-weight: 300;` use `data-variant="light"` additionally.
|
|
48
|
+
- If a code snippet has a Figma `Mode`, add it as `data-xxx`, where `xxx` is the mode in lower-case.
|
|
49
|
+
|
|
50
|
+
### Tailwind
|
|
51
|
+
|
|
52
|
+
If you use tailwind follow those rules as well:
|
|
53
|
+
|
|
54
|
+
- Don't use values like `p-4` or `m-[16px]`; use `p-fix-xs` or `m-fix-md` instead.
|
|
55
|
+
- Never use something like `font-['DB_Neo_Screen_Head']` and `leading-[48px]` instead use `text-head-xx` class, where `-xx` can be a t-shirt size from `3xs` to `3xl`; If it has a `font-wight:300;` use `text-head-light-xx` instead.
|
package/agent/css/Variables.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
```css
|
|
2
2
|
.my-component {
|
|
3
|
-
inline-size: var(
|
|
3
|
+
inline-size: var(
|
|
4
|
+
--db-container-sm
|
|
5
|
+
); /* Use container for larger fixed widths */
|
|
4
6
|
block-size: var(--db-sizing-lg); /* Use sizing for fixed heights */
|
|
5
7
|
padding: var(--db-spacing-fixed-sm); /* Use fixed spacing for paddings */
|
|
6
8
|
margin: var(
|
package/agent/scss/Variables.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@use "@db-ux/core-foundations/build/styles/variables";
|
|
3
3
|
|
|
4
4
|
.my-component {
|
|
5
|
-
inline-size: variables.$db-
|
|
5
|
+
inline-size: variables.$db-container-sm; // Use container for larger fixed widths
|
|
6
6
|
block-size: variables.$db-sizing-lg; // Use sizing for fixed heights
|
|
7
7
|
padding: variables.$db-spacing-fixed-sm; // Use fixed spacing for paddings
|
|
8
8
|
margin: variables.$db-spacing-responsive-md; // Use responsive spacing for margins
|
|
@@ -1,75 +1,136 @@
|
|
|
1
1
|
```html
|
|
2
2
|
<div class="flex flex-col gap-md">
|
|
3
3
|
<div class="grid grid-cols-2 md:grid-cols-3 gap-xs">
|
|
4
|
-
<div
|
|
5
|
-
|
|
4
|
+
<div
|
|
5
|
+
class="w-container-md h-siz-lg p-fix-md m-res-sm border-sm radius-md"
|
|
6
|
+
>
|
|
7
|
+
<h1 class="text-head-lg">Headline</h1>
|
|
8
|
+
<h2 class="text-head-light-md">Subline</h2>
|
|
9
|
+
<p class="text-body-md">Normal Text</p>
|
|
10
|
+
<p class="text-body-sm">Smaller Text</p>
|
|
6
11
|
</div>
|
|
7
12
|
</div>
|
|
8
13
|
</div>
|
|
9
14
|
```
|
|
10
15
|
|
|
11
|
-
##
|
|
16
|
+
## Custom utility classes
|
|
12
17
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
18
|
+
### Padding
|
|
19
|
+
|
|
20
|
+
- `p-fix-3xs`
|
|
21
|
+
- `p-fix-2xs`
|
|
22
|
+
- `p-fix-xs`
|
|
23
|
+
- `p-fix-sm`
|
|
24
|
+
- `p-fix-md`
|
|
25
|
+
- `p-fix-lg`
|
|
26
|
+
- `p-fix-xl`
|
|
27
|
+
- `p-fix-2xl`
|
|
28
|
+
- `p-fix-3xl`
|
|
29
|
+
- `p-res-3xs`
|
|
30
|
+
- `p-res-2xs`
|
|
31
|
+
- `p-res-xs`
|
|
32
|
+
- `p-res-sm`
|
|
33
|
+
- `p-res-md`
|
|
34
|
+
- `p-res-lg`
|
|
35
|
+
- `p-res-xl`
|
|
36
|
+
- `p-res-2xl`
|
|
37
|
+
- `p-res-3xl`
|
|
38
|
+
|
|
39
|
+
### Margin
|
|
40
|
+
|
|
41
|
+
- `m-fix-3xs`
|
|
42
|
+
- `m-fix-2xs`
|
|
43
|
+
- `m-fix-xs`
|
|
44
|
+
- `m-fix-sm`
|
|
45
|
+
- `m-fix-md`
|
|
46
|
+
- `m-fix-lg`
|
|
47
|
+
- `m-fix-xl`
|
|
48
|
+
- `m-fix-2xl`
|
|
49
|
+
- `m-fix-3xl`
|
|
50
|
+
- `m-res-3xs`
|
|
51
|
+
- `m-res-2xs`
|
|
52
|
+
- `m-res-xs`
|
|
53
|
+
- `m-res-sm`
|
|
54
|
+
- `m-res-md`
|
|
55
|
+
- `m-res-lg`
|
|
56
|
+
- `m-res-xl`
|
|
57
|
+
- `m-res-2xl`
|
|
58
|
+
- `m-res-3xl`
|
|
59
|
+
|
|
60
|
+
### Width
|
|
61
|
+
|
|
62
|
+
- `w-container-3xs`
|
|
63
|
+
- `w-container-2xs`
|
|
64
|
+
- `w-container-xs`
|
|
65
|
+
- `w-container-sm`
|
|
66
|
+
- `w-container-md`
|
|
67
|
+
- `w-container-lg`
|
|
68
|
+
- `w-container-xl`
|
|
69
|
+
- `w-container-2xl`
|
|
70
|
+
- `w-container-3xl`
|
|
71
|
+
- `w-siz-3xs`
|
|
72
|
+
- `w-siz-2xs`
|
|
73
|
+
- `w-siz-xs`
|
|
74
|
+
- `w-siz-sm`
|
|
75
|
+
- `w-siz-md`
|
|
76
|
+
- `w-siz-lg`
|
|
77
|
+
- `w-siz-xl`
|
|
78
|
+
- `w-siz-2xl`
|
|
79
|
+
- `w-siz-3xl`
|
|
80
|
+
|
|
81
|
+
### Height
|
|
82
|
+
|
|
83
|
+
- `h-container-3xs`
|
|
84
|
+
- `h-container-2xs`
|
|
85
|
+
- `h-container-xs`
|
|
86
|
+
- `h-container-sm`
|
|
87
|
+
- `h-container-md`
|
|
88
|
+
- `h-container-lg`
|
|
89
|
+
- `h-container-xl`
|
|
90
|
+
- `h-container-2xl`
|
|
91
|
+
- `h-container-3xl`
|
|
92
|
+
- `h-siz-3xs`
|
|
93
|
+
- `h-siz-2xs`
|
|
94
|
+
- `h-siz-xs`
|
|
95
|
+
- `h-siz-sm`
|
|
96
|
+
- `h-siz-md`
|
|
97
|
+
- `h-siz-lg`
|
|
98
|
+
- `h-siz-xl`
|
|
99
|
+
- `h-siz-2xl`
|
|
100
|
+
- `h-siz-3xl`
|
|
101
|
+
|
|
102
|
+
### Border
|
|
103
|
+
|
|
104
|
+
- `border-3xs`
|
|
105
|
+
- `border-2xs`
|
|
106
|
+
- `border-xs`
|
|
107
|
+
- `border-sm`
|
|
108
|
+
- `border-md`
|
|
109
|
+
- `border-lg`
|
|
110
|
+
- `border-xl`
|
|
111
|
+
- `border-2xl`
|
|
112
|
+
- `border-3xl`
|
|
113
|
+
|
|
114
|
+
### Border Radius
|
|
115
|
+
|
|
116
|
+
- `radius-3xs`
|
|
117
|
+
- `radius-2xs`
|
|
118
|
+
- `radius-xs`
|
|
119
|
+
- `radius-sm`
|
|
120
|
+
- `radius-md`
|
|
121
|
+
- `radius-lg`
|
|
122
|
+
- `radius-xl`
|
|
123
|
+
- `radius-2xl`
|
|
124
|
+
- `radius-3xl`
|
|
125
|
+
|
|
126
|
+
### Gap
|
|
127
|
+
|
|
128
|
+
- `gap-3xs`
|
|
129
|
+
- `gap-2xs`
|
|
130
|
+
- `gap-xs`
|
|
131
|
+
- `gap-sm`
|
|
132
|
+
- `gap-md`
|
|
133
|
+
- `gap-lg`
|
|
134
|
+
- `gap-xl`
|
|
135
|
+
- `gap-2xl`
|
|
136
|
+
- `gap-3xl`
|
|
@@ -126,6 +126,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
126
126
|
|
|
127
127
|
@layer variables {}
|
|
128
128
|
|
|
129
|
+
/* Use for body tags like <p> */
|
|
130
|
+
/* Use for headline tags like <h1> */
|
|
129
131
|
/**
|
|
130
132
|
* @mixin screen-min-max
|
|
131
133
|
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
@@ -120,6 +120,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
120
120
|
|
|
121
121
|
@layer variables {}
|
|
122
122
|
|
|
123
|
+
/* Use for body tags like <p> */
|
|
124
|
+
/* Use for headline tags like <h1> */
|
|
123
125
|
/**
|
|
124
126
|
* @mixin screen-min-max
|
|
125
127
|
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
@@ -120,6 +120,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
120
120
|
|
|
121
121
|
@layer variables {}
|
|
122
122
|
|
|
123
|
+
/* Use for body tags like <p> */
|
|
124
|
+
/* Use for headline tags like <h1> */
|
|
123
125
|
/**
|
|
124
126
|
* @mixin screen-min-max
|
|
125
127
|
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
@@ -120,6 +120,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
120
120
|
|
|
121
121
|
@layer variables {}
|
|
122
122
|
|
|
123
|
+
/* Use for body tags like <p> */
|
|
124
|
+
/* Use for headline tags like <h1> */
|
|
123
125
|
/**
|
|
124
126
|
* @mixin screen-min-max
|
|
125
127
|
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* Use for body tags like <p> */
|
|
2
|
+
|
|
3
|
+
$db-type-body-3xs: var(--db-type-body-3xs);
|
|
4
|
+
$db-type-body-2xs: var(--db-type-body-2xs);
|
|
5
|
+
$db-type-body-xs: var(--db-type-body-xs);
|
|
6
|
+
$db-type-body-sm: var(--db-type-body-sm);
|
|
7
|
+
$db-type-body-md: var(--db-type-body-md);
|
|
8
|
+
$db-type-body-lg: var(--db-type-body-lg);
|
|
9
|
+
$db-type-body-xl: var(--db-type-body-xl);
|
|
10
|
+
$db-type-body-2xl: var(--db-type-body-2xl);
|
|
11
|
+
$db-type-body-3xl: var(--db-type-body-3xl);
|
|
12
|
+
|
|
13
|
+
/* Use for headline tags like <h1> */
|
|
14
|
+
|
|
15
|
+
$db-type-headline-3xs: var(--db-type-headline-3xs);
|
|
16
|
+
$db-type-headline-2xs: var(--db-type-headline-2xs);
|
|
17
|
+
$db-type-headline-xs: var(--db-type-headline-xs);
|
|
18
|
+
$db-type-headline-sm: var(--db-type-headline-sm);
|
|
19
|
+
$db-type-headline-md: var(--db-type-headline-md);
|
|
20
|
+
$db-type-headline-lg: var(--db-type-headline-lg);
|
|
21
|
+
$db-type-headline-xl: var(--db-type-headline-xl);
|
|
22
|
+
$db-type-headline-2xl: var(--db-type-headline-2xl);
|
|
23
|
+
$db-type-headline-3xl: var(--db-type-headline-3xl);
|
package/build/styles/index.css
CHANGED
package/build/styles/rollup.css
CHANGED
package/build/styles/webpack.css
CHANGED