@ibis-design/css 0.8.1 → 0.9.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 +21 -14
- package/dist/components/banner.css +13 -17
- package/dist/components/button.css +13 -13
- package/dist/components/checkbox.css +29 -11
- package/dist/components/chips.css +8 -8
- package/dist/components/dropdown.css +12 -20
- package/dist/components/dropdownButton.css +13 -20
- package/dist/components/navButton.css +233 -0
- package/dist/components/pillTab.css +7 -12
- package/dist/components/radio.css +14 -13
- package/dist/components/switch.css +5 -8
- package/dist/components/textInput.css +12 -15
- package/dist/components/textarea.css +7 -13
- package/dist/components/textlink.css +6 -14
- package/dist/components/tipIndicator.css +4 -10
- package/dist/components/toaster.css +21 -27
- package/dist/design-tokens.css +250 -122
- package/dist/tailwind.preset.js +1 -1
- package/dist/tailwind.theme.js +40 -1
- package/package.json +33 -31
- package/src/lib/assemble-design-tokens.ts +20 -0
- package/src/lib/set-theme.ts +73 -0
- package/src/lib/themes.ts +74 -0
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
align-items: center;
|
|
5
5
|
justify-content: center;
|
|
6
6
|
cursor: pointer;
|
|
7
|
-
color: var(--color-
|
|
7
|
+
color: var(--color-text-disabled);
|
|
8
8
|
transition: color var(--transition-duration-fast) var(--transition-timing-default);
|
|
9
9
|
outline: none;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.ibis-tip-indicator:hover,
|
|
13
13
|
.ibis-tip-indicator:focus-visible {
|
|
14
|
-
color: var(--color-primary
|
|
14
|
+
color: var(--color-brand-primary);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.ibis-tip-indicator__icon {
|
|
@@ -20,12 +20,11 @@
|
|
|
20
20
|
display: block;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
/* Tooltip box */
|
|
24
23
|
.ibis-tip {
|
|
25
24
|
position: absolute;
|
|
26
25
|
z-index: 100;
|
|
27
|
-
background-color: var(--color-
|
|
28
|
-
color: var(--color-
|
|
26
|
+
background-color: var(--color-surface-inverse);
|
|
27
|
+
color: var(--color-text-inverse);
|
|
29
28
|
font-size: var(--font-size-body-sm);
|
|
30
29
|
font-family: var(--font-family-sans);
|
|
31
30
|
padding: var(--spacing-2) var(--spacing-4);
|
|
@@ -34,7 +33,6 @@
|
|
|
34
33
|
white-space: nowrap;
|
|
35
34
|
}
|
|
36
35
|
|
|
37
|
-
/* Width variants */
|
|
38
36
|
.ibis-tip--width-auto {
|
|
39
37
|
white-space: nowrap;
|
|
40
38
|
width: auto;
|
|
@@ -50,28 +48,24 @@
|
|
|
50
48
|
white-space: normal;
|
|
51
49
|
}
|
|
52
50
|
|
|
53
|
-
/* Top */
|
|
54
51
|
.ibis-tip--top {
|
|
55
52
|
bottom: calc(100% + 8px);
|
|
56
53
|
left: 50%;
|
|
57
54
|
transform: translateX(-50%);
|
|
58
55
|
}
|
|
59
56
|
|
|
60
|
-
/* Bottom */
|
|
61
57
|
.ibis-tip--bottom {
|
|
62
58
|
top: calc(100% + 8px);
|
|
63
59
|
left: 50%;
|
|
64
60
|
transform: translateX(-50%);
|
|
65
61
|
}
|
|
66
62
|
|
|
67
|
-
/* Left */
|
|
68
63
|
.ibis-tip--left {
|
|
69
64
|
right: calc(100% + 8px);
|
|
70
65
|
top: 50%;
|
|
71
66
|
transform: translateY(-50%);
|
|
72
67
|
}
|
|
73
68
|
|
|
74
|
-
/* Right */
|
|
75
69
|
.ibis-tip--right {
|
|
76
70
|
left: calc(100% + 8px);
|
|
77
71
|
top: 50%;
|
|
@@ -5,23 +5,22 @@
|
|
|
5
5
|
gap: var(--spacing-2);
|
|
6
6
|
padding: var(--spacing-2) var(--spacing-4);
|
|
7
7
|
border-radius: 16px;
|
|
8
|
-
border: var(--border-width-default) solid var(--color-
|
|
9
|
-
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
|
|
8
|
+
border: var(--border-width-default) solid var(--border-color-default);
|
|
9
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
|
|
10
10
|
max-width: 200px;
|
|
11
11
|
position: relative;
|
|
12
12
|
margin-bottom: var(--spacing-1);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
/* Icon */
|
|
16
15
|
.ibis-toaster__icon {
|
|
17
16
|
display: flex;
|
|
18
17
|
align-items: center;
|
|
19
18
|
justify-content: center;
|
|
20
|
-
width: 20px;
|
|
21
|
-
height: 20px;
|
|
19
|
+
width: 20px;
|
|
20
|
+
height: 20px;
|
|
22
21
|
flex-shrink: 0;
|
|
23
22
|
margin-top: var(--spacing-1);
|
|
24
|
-
color: var(--color-
|
|
23
|
+
color: var(--color-text-on-primary);
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
.ibis-toaster__icon :global(svg) {
|
|
@@ -29,7 +28,6 @@
|
|
|
29
28
|
height: 100%;
|
|
30
29
|
}
|
|
31
30
|
|
|
32
|
-
/* Content */
|
|
33
31
|
.ibis-toaster__content {
|
|
34
32
|
flex: 1;
|
|
35
33
|
display: flex;
|
|
@@ -44,28 +42,26 @@
|
|
|
44
42
|
|
|
45
43
|
.ibis-toaster__message {
|
|
46
44
|
font-size: var(--font-size-body-sm);
|
|
47
|
-
color: var(--color-
|
|
45
|
+
color: var(--color-text-on-primary);
|
|
48
46
|
}
|
|
49
47
|
|
|
50
|
-
/* Close Button */
|
|
51
48
|
.ibis-toaster__close {
|
|
52
49
|
background: transparent;
|
|
53
50
|
border: none;
|
|
54
51
|
cursor: pointer;
|
|
55
52
|
font-size: var(--font-size-body-lg);
|
|
56
53
|
line-height: 1;
|
|
57
|
-
color: var(--color-
|
|
54
|
+
color: var(--color-text-on-primary);
|
|
58
55
|
flex-shrink: 0;
|
|
59
56
|
}
|
|
60
57
|
|
|
61
|
-
/* Variants */
|
|
62
58
|
.ibis-toaster--success {
|
|
63
59
|
border-color: var(--color-status-success);
|
|
64
60
|
background-color: var(--color-status-success);
|
|
65
61
|
}
|
|
66
62
|
|
|
67
63
|
.ibis-toaster--success .ibis-toaster__title {
|
|
68
|
-
color: var(--color-
|
|
64
|
+
color: var(--color-text-on-primary);
|
|
69
65
|
}
|
|
70
66
|
|
|
71
67
|
.ibis-toaster--error {
|
|
@@ -74,51 +70,49 @@
|
|
|
74
70
|
}
|
|
75
71
|
|
|
76
72
|
.ibis-toaster--error .ibis-toaster__title {
|
|
77
|
-
color: var(--color-
|
|
73
|
+
color: var(--color-text-on-primary);
|
|
78
74
|
}
|
|
79
75
|
|
|
80
76
|
.ibis-toaster--accent {
|
|
81
|
-
border-color: var(--color-toaster-accent);
|
|
82
|
-
background-color: var(--color-toaster-accent);
|
|
77
|
+
border-color: var(--color-toaster-accent);
|
|
78
|
+
background-color: var(--color-toaster-accent);
|
|
83
79
|
}
|
|
84
80
|
|
|
85
81
|
.ibis-toaster--accent .ibis-toaster__title {
|
|
86
|
-
color: var(--color-
|
|
82
|
+
color: var(--color-text-on-primary);
|
|
87
83
|
}
|
|
88
84
|
|
|
89
85
|
.ibis-toaster--default {
|
|
90
|
-
border-color: var(--color-
|
|
91
|
-
background-color: var(--color-
|
|
86
|
+
border-color: var(--color-surface-muted);
|
|
87
|
+
background-color: var(--color-surface-muted);
|
|
92
88
|
}
|
|
93
89
|
|
|
94
90
|
.ibis-toaster--default .ibis-toaster__title {
|
|
95
|
-
color: var(--color-
|
|
91
|
+
color: var(--color-text-on-muted);
|
|
96
92
|
}
|
|
97
93
|
|
|
98
94
|
.ibis-toaster--default .ibis-toaster__message {
|
|
99
|
-
color: var(--color-
|
|
95
|
+
color: var(--color-text-on-muted);
|
|
100
96
|
}
|
|
101
97
|
|
|
102
98
|
.ibis-toaster--default .ibis-toaster__icon {
|
|
103
|
-
color: var(--color-
|
|
99
|
+
color: var(--color-text-on-muted);
|
|
104
100
|
}
|
|
105
101
|
|
|
106
102
|
.ibis-toaster--default .ibis-toaster__close {
|
|
107
|
-
color: var(--color-
|
|
108
|
-
border-color: var(--color-
|
|
103
|
+
color: var(--color-text-on-muted);
|
|
104
|
+
border-color: var(--color-surface-default);
|
|
109
105
|
}
|
|
110
106
|
|
|
111
|
-
/* Loader */
|
|
112
107
|
.ibis-toaster__loader {
|
|
113
108
|
width: 1em;
|
|
114
109
|
height: 1em;
|
|
115
|
-
border: var(--border-width-default) solid var(--color-
|
|
116
|
-
border-top-color: var(--color-primary-
|
|
110
|
+
border: var(--border-width-default) solid var(--border-color-focus);
|
|
111
|
+
border-top-color: var(--color-interactive-primary-indicator);
|
|
117
112
|
border-radius: 50%;
|
|
118
113
|
animation: ibis-toaster-spin 0.8s linear infinite;
|
|
119
114
|
}
|
|
120
115
|
|
|
121
|
-
/* Animations */
|
|
122
116
|
@keyframes ibis-toaster-spin {
|
|
123
117
|
from {
|
|
124
118
|
transform: rotate(0deg);
|