@ibis-design/css 1.0.0-alpha.0 → 1.0.0-alpha.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/dist/components/appLayout.css +39 -0
- package/dist/components/card.css +32 -1
- package/dist/components/cardLayout.css +30 -8
- package/dist/components/dashboardLayout.css +1 -1
- package/dist/components/formLayout.css +39 -0
- package/dist/components/pillTab.css +2 -2
- package/dist/components/pillTabWrapper.css +8 -0
- package/dist/components/topBar.css +2 -2
- package/dist/design-tokens.css +1 -1
- package/package.json +5 -2
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.ibis-app-layout {
|
|
2
|
+
min-height: 100vh;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
background-color: var(--color-surface-page);
|
|
6
|
+
font-family: var(--font-family-sans);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ibis-app-layout__header {
|
|
10
|
+
flex: 0 0 auto;
|
|
11
|
+
z-index: var(--z-index-sticky);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ibis-app-layout__body {
|
|
15
|
+
flex: 1 1 auto;
|
|
16
|
+
display: flex;
|
|
17
|
+
min-height: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ibis-app-layout__sidebar {
|
|
21
|
+
flex: 0 0 auto;
|
|
22
|
+
width: 16rem;
|
|
23
|
+
background-color: var(--color-surface-subtle);
|
|
24
|
+
border-right: var(--border-width-thin) solid var(--border-color-default);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ibis-app-layout__main {
|
|
28
|
+
flex: 1 1 auto;
|
|
29
|
+
overflow: auto;
|
|
30
|
+
padding: var(--spacing-6);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ibis-app-layout__footer {
|
|
34
|
+
flex: 0 0 auto;
|
|
35
|
+
padding: var(--spacing-4);
|
|
36
|
+
border-top: var(--border-width-thin) solid var(--border-color-default);
|
|
37
|
+
font-size: var(--font-size-body-sm);
|
|
38
|
+
color: var(--color-text-secondary);
|
|
39
|
+
}
|
package/dist/components/card.css
CHANGED
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
border: var(--border-width-thin) solid var(--border-color-subtle);
|
|
8
8
|
border-radius: var(--border-radius-lg);
|
|
9
9
|
box-shadow: var(--shadow-elevation-sm);
|
|
10
|
-
overflow:
|
|
10
|
+
overflow: visible;
|
|
11
11
|
box-sizing: border-box;
|
|
12
|
+
min-height: 200px;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
.ibis-card__header {
|
|
@@ -53,3 +54,33 @@
|
|
|
53
54
|
padding-top: var(--spacing-3);
|
|
54
55
|
margin-top: var(--spacing-2);
|
|
55
56
|
}
|
|
57
|
+
|
|
58
|
+
/* ===== SIZE VARIANTS ===== */
|
|
59
|
+
|
|
60
|
+
.ibis-card--sm {
|
|
61
|
+
min-height: 120px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ibis-card--md {
|
|
65
|
+
min-height: 200px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ibis-card--md-wide {
|
|
69
|
+
min-height: 200px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.ibis-card--lg {
|
|
73
|
+
min-height: 320px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ibis-card--lg-wide {
|
|
77
|
+
min-height: 320px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.ibis-card--ex-wide {
|
|
81
|
+
min-height: 200px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.ibis-card--full {
|
|
85
|
+
min-height: 400px;
|
|
86
|
+
}
|
|
@@ -43,29 +43,51 @@
|
|
|
43
43
|
flex-shrink: 0;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
/* Default — 1 column (mobile) */
|
|
46
47
|
.ibis-card-layout__grid {
|
|
47
48
|
display: grid;
|
|
48
49
|
gap: var(--spacing-4);
|
|
49
50
|
grid-template-columns: 1fr;
|
|
50
51
|
}
|
|
51
52
|
|
|
52
|
-
/* sm — 2 columns */
|
|
53
|
+
/* sm (640px) — 2 columns (tablet) */
|
|
53
54
|
@media (min-width: 640px) {
|
|
54
55
|
.ibis-card-layout__grid {
|
|
55
56
|
grid-template-columns: repeat(2, 1fr);
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
|
|
59
|
-
/* lg —
|
|
60
|
+
/* lg (1024px) — 4 columns (desktop), card size props apply */
|
|
60
61
|
@media (min-width: 1024px) {
|
|
61
62
|
.ibis-card-layout__grid {
|
|
62
|
-
grid-template-columns: repeat(
|
|
63
|
+
grid-template-columns: repeat(4, 1fr);
|
|
63
64
|
}
|
|
64
|
-
}
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
.ibis-card-layout__grid .ibis-card--sm {
|
|
67
|
+
grid-column: span 1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ibis-card-layout__grid .ibis-card--md {
|
|
71
|
+
grid-column: span 2;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.ibis-card-layout__grid .ibis-card--md-wide {
|
|
75
|
+
grid-column: span 3;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.ibis-card-layout__grid .ibis-card--lg {
|
|
79
|
+
grid-column: span 2;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ibis-card-layout__grid .ibis-card--lg-wide {
|
|
83
|
+
grid-column: span 3;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.ibis-card-layout__grid .ibis-card--ex-wide {
|
|
87
|
+
grid-column: span 4;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.ibis-card-layout__grid .ibis-card--full {
|
|
91
|
+
grid-column: span 4;
|
|
70
92
|
}
|
|
71
93
|
}
|
|
@@ -34,6 +34,11 @@
|
|
|
34
34
|
padding: 0;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
/* 2 column variant — wider max-width */
|
|
38
|
+
.ibis-form-layout__inner--cols-2 {
|
|
39
|
+
max-width: 960px;
|
|
40
|
+
}
|
|
41
|
+
|
|
37
42
|
.ibis-form-layout__header {
|
|
38
43
|
display: flex;
|
|
39
44
|
flex-direction: column;
|
|
@@ -61,6 +66,7 @@
|
|
|
61
66
|
gap: var(--spacing-6);
|
|
62
67
|
}
|
|
63
68
|
|
|
69
|
+
/* Section */
|
|
64
70
|
.ibis-form-layout__section {
|
|
65
71
|
display: flex;
|
|
66
72
|
flex-direction: column;
|
|
@@ -77,6 +83,7 @@
|
|
|
77
83
|
border-bottom: var(--border-width-thin) solid var(--border-color-subtle);
|
|
78
84
|
}
|
|
79
85
|
|
|
86
|
+
/* Footer */
|
|
80
87
|
.ibis-form-layout__footer {
|
|
81
88
|
display: flex;
|
|
82
89
|
flex-direction: row;
|
|
@@ -86,3 +93,35 @@
|
|
|
86
93
|
padding-top: var(--spacing-4);
|
|
87
94
|
border-top: var(--border-width-thin) solid var(--border-color-subtle);
|
|
88
95
|
}
|
|
96
|
+
|
|
97
|
+
/* ===== RESPONSIVE 2-COLUMN GRID ===== */
|
|
98
|
+
|
|
99
|
+
@media (min-width: 768px) {
|
|
100
|
+
.ibis-form-layout__inner--cols-2 .ibis-form-layout__body {
|
|
101
|
+
display: grid;
|
|
102
|
+
grid-template-columns: 1fr 1fr;
|
|
103
|
+
gap: var(--spacing-4) var(--spacing-6);
|
|
104
|
+
align-items: start;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Section spans both columns */
|
|
108
|
+
.ibis-form-layout__inner--cols-2 .ibis-form-layout__section {
|
|
109
|
+
display: grid;
|
|
110
|
+
grid-template-columns: 1fr 1fr;
|
|
111
|
+
gap: var(--spacing-4) var(--spacing-6);
|
|
112
|
+
align-items: start;
|
|
113
|
+
grid-column: 1 / -1;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Section label spans both columns and is centered */
|
|
117
|
+
.ibis-form-layout__inner--cols-2 .ibis-form-layout__section-label {
|
|
118
|
+
grid-column: 1 / -1;
|
|
119
|
+
text-align: center;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* Header and footer always span both columns */
|
|
123
|
+
.ibis-form-layout__inner--cols-2 .ibis-form-layout__header--span,
|
|
124
|
+
.ibis-form-layout__inner--cols-2 .ibis-form-layout__footer--span {
|
|
125
|
+
grid-column: 1 / -1;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: center;
|
|
5
5
|
flex: 1;
|
|
6
|
-
padding: var(--spacing-
|
|
6
|
+
padding: var(--spacing-2) var(--spacing-5);
|
|
7
7
|
height: 100%;
|
|
8
8
|
align-self: stretch;
|
|
9
9
|
border-radius: var(--border-radius-full);
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.ibis-pill-tab__content {
|
|
25
|
-
font-size: var(--font-size-body-
|
|
25
|
+
font-size: var(--font-size-body-md);
|
|
26
26
|
line-height: 1;
|
|
27
27
|
text-align: center;
|
|
28
28
|
width: 100%;
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
.ib-top-bar {
|
|
4
4
|
position: relative;
|
|
5
5
|
width: 100%;
|
|
6
|
-
height:
|
|
6
|
+
height: 64px;
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: row;
|
|
9
9
|
align-items: center;
|
|
10
10
|
justify-content: space-between;
|
|
11
11
|
background-color: var(--color-surface-default);
|
|
12
12
|
border-bottom: var(--border-width-thin) solid var(--border-color-subtle);
|
|
13
|
+
border-radius: 0 0 var(--border-radius-lg) 0;
|
|
13
14
|
box-shadow: 0 1px 8px 0 var(--shadow-color-black-soft);
|
|
14
|
-
z-index: var(--z-index-sticky);
|
|
15
15
|
box-sizing: border-box;
|
|
16
16
|
padding: 0 var(--spacing-6);
|
|
17
17
|
gap: var(--spacing-4);
|
package/dist/design-tokens.css
CHANGED
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
--color-surface-subtle: var(--color-primary-900);
|
|
322
322
|
--color-surface-elevated: var(--color-neutral-800);
|
|
323
323
|
--color-surface-inverse: var(--color-neutral-100);
|
|
324
|
-
--color-surface-disabled: var(--color-neutral-
|
|
324
|
+
--color-surface-disabled: var(--color-neutral-700);
|
|
325
325
|
--color-text-primary: var(--color-white);
|
|
326
326
|
--color-text-secondary: var(--color-neutral-300);
|
|
327
327
|
--color-text-muted: var(--color-neutral-400);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibis-design/css",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.2",
|
|
4
4
|
"description": "Design tokens, CSS variables, and Tailwind preset for the IBIS design system.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -28,7 +28,10 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"sd-tailwindcss-transformer": "^2.2.1",
|
|
31
|
-
"style-dictionary": "^5.4.
|
|
31
|
+
"style-dictionary": "^5.4.4",
|
|
32
32
|
"tsx": "^4.22.4"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@ibis-design/css": "^1.0.0-alpha.2"
|
|
33
36
|
}
|
|
34
37
|
}
|