@trebired/configs 0.6.0 → 0.8.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/.trebired/frontend/preset_01/button.ts +14 -42
- package/.trebired/frontend/preset_01/choice.ts +2 -2
- package/.trebired/frontend/preset_01/config.ts +1 -1
- package/.trebired/frontend/preset_01/data.ts +1 -1
- package/.trebired/frontend/preset_01/palette.ts +1 -1
- package/.trebired/frontend/preset_01/theme.ts +1 -0
- package/CHANGELOG.md +13 -0
- package/README.md +1 -1
- package/package.json +4 -4
|
@@ -143,58 +143,30 @@ export const primitiveButton = {
|
|
|
143
143
|
},
|
|
144
144
|
},
|
|
145
145
|
},
|
|
146
|
-
danger: {
|
|
147
|
-
background: "transparent",
|
|
148
|
-
border: "currentColor",
|
|
149
|
-
color: "var(--tbf-tone-red, var(--tbf-tone-error, currentColor))",
|
|
150
|
-
icon: "currentColor",
|
|
151
|
-
states: {
|
|
152
|
-
hover: {
|
|
153
|
-
background: "color-mix(in srgb, var(--tbf-tone-red, var(--tbf-tone-error, currentColor)) 12%, transparent)",
|
|
154
|
-
border: "currentColor",
|
|
155
|
-
color: "currentColor",
|
|
156
|
-
icon: "currentColor",
|
|
157
|
-
},
|
|
158
|
-
},
|
|
159
|
-
},
|
|
160
|
-
ghost: {
|
|
161
|
-
background: "transparent",
|
|
162
|
-
border: "transparent",
|
|
163
|
-
color: "var(--tbf-text, currentColor)",
|
|
164
|
-
icon: "currentColor",
|
|
165
|
-
states: {
|
|
166
|
-
hover: {
|
|
167
|
-
background: "color-mix(in srgb, currentColor 8%, transparent)",
|
|
168
|
-
border: "transparent",
|
|
169
|
-
color: "currentColor",
|
|
170
|
-
icon: "currentColor",
|
|
171
|
-
},
|
|
172
|
-
},
|
|
173
|
-
},
|
|
174
146
|
primary: {
|
|
175
|
-
background: "
|
|
176
|
-
border:
|
|
177
|
-
color:
|
|
178
|
-
icon: "
|
|
147
|
+
background: token.color("gray", 900),
|
|
148
|
+
border: semantic.borderSurface2,
|
|
149
|
+
color: semantic.textColor,
|
|
150
|
+
icon: token.color("gray", 300),
|
|
179
151
|
states: {
|
|
180
152
|
hover: {
|
|
181
|
-
background:
|
|
182
|
-
border: "
|
|
183
|
-
color: "
|
|
153
|
+
background: token.color("gray", 800),
|
|
154
|
+
border: token.color("gray", 700),
|
|
155
|
+
color: token.color("gray", 200),
|
|
184
156
|
icon: "currentColor",
|
|
185
157
|
},
|
|
186
158
|
},
|
|
187
159
|
},
|
|
188
160
|
secondary: {
|
|
189
|
-
background: "
|
|
190
|
-
border:
|
|
191
|
-
color:
|
|
192
|
-
icon: "
|
|
161
|
+
background: "transparent",
|
|
162
|
+
border: semantic.borderSurface1,
|
|
163
|
+
color: semantic.textColor,
|
|
164
|
+
icon: token.color("gray", 300),
|
|
193
165
|
states: {
|
|
194
166
|
hover: {
|
|
195
|
-
background: "
|
|
196
|
-
border:
|
|
197
|
-
color: "
|
|
167
|
+
background: token.color("gray", 900),
|
|
168
|
+
border: semantic.borderSurface2,
|
|
169
|
+
color: token.color("gray", 200),
|
|
198
170
|
icon: "currentColor",
|
|
199
171
|
},
|
|
200
172
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { token } from "./tokens";
|
|
1
|
+
import { semantic, token } from "./tokens";
|
|
2
2
|
|
|
3
3
|
export const primitiveChoice = {
|
|
4
4
|
checked: {
|
|
5
5
|
background: token.color("gray", 900),
|
|
6
|
-
border:
|
|
6
|
+
border: semantic.borderSurface2,
|
|
7
7
|
},
|
|
8
8
|
control: {
|
|
9
9
|
activeIconColor: token.color("gray", 600),
|
|
@@ -99,7 +99,7 @@ export const palette = {
|
|
|
99
99
|
"canvas-ansi-13": { family: "ruby", step: "500" },
|
|
100
100
|
"canvas-ansi-14": { family: "cyan", step: "500" },
|
|
101
101
|
"canvas-ansi-15": { family: "gray", step: "200" },
|
|
102
|
-
"focus-color": { family: "
|
|
102
|
+
"focus-color": { family: "gray", step: "400" },
|
|
103
103
|
"scroll-thumb": { family: "gray", step: "400" },
|
|
104
104
|
"scroll-thumb-hover": { family: "gray", step: "350" },
|
|
105
105
|
"scroll-track": { family: "gray", step: "600" },
|
|
@@ -23,6 +23,7 @@ export const semantics = {
|
|
|
23
23
|
gray: token.color("gray", 600),
|
|
24
24
|
green: token.color("green", 600),
|
|
25
25
|
info: token.color("blue", 600),
|
|
26
|
+
ink: token.color("gray", 0),
|
|
26
27
|
muted: token.color("gray", 600),
|
|
27
28
|
purple: token.color("ruby", 600),
|
|
28
29
|
red: token.color("red", 600),
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@ All notable changes to `@trebired/configs` will be documented here.
|
|
|
4
4
|
|
|
5
5
|
This project follows semantic versioning once published.
|
|
6
6
|
|
|
7
|
+
## 0.8.0
|
|
8
|
+
|
|
9
|
+
- Breaking: the frontend `preset_01` targets `@trebired/frontend` 30.1.0 and the peer range is `^30.1.0`.
|
|
10
|
+
- The frontend `preset_01` paints a hovered log line gray 800, the colour of a hovered dropdown option. The faint gray 700 at 28% barely showed on the dark log canvas.
|
|
11
|
+
|
|
12
|
+
## 0.7.0
|
|
13
|
+
|
|
14
|
+
- Breaking: the frontend `preset_01` targets `@trebired/frontend` 30.0.0 and the peer range is `^30.0.0`.
|
|
15
|
+
- The frontend `preset_01` sets the `ink` tone to gray 0, white on the dark theme and near black on the light one.
|
|
16
|
+
- The frontend `preset_01` focus colour is gray 400 instead of blue 500. Nothing else in the preset's interface is blue, so focus rings, checked boxes and drop zones no longer stand out in a colour the theme does not use.
|
|
17
|
+
- The frontend `preset_01` is the one definition of buttons for its apps. `primary`, the default in `@trebired/frontend` 30.0.0, is the standard button: gray 900 with a `border-surface-2` hairline. `secondary` is the quiet one: transparent with a `border-surface-1` hairline. The `red`, `yellow` and `green` tones colour the side borders of either, and icon buttons are square in sizes `xs2` to `lg`. The `danger` and `ghost` variants are gone; a destructive action is a button with the `red` tone.
|
|
18
|
+
- The frontend `preset_01` draws a ticked choice row's border in `border-surface-2`, the hairline tone buttons use, instead of `currentColor`. A ticked row no longer gets a full-contrast white or black outline.
|
|
19
|
+
|
|
7
20
|
## 0.6.0
|
|
8
21
|
|
|
9
22
|
- Breaking: every preset has a name under its tool. The Code Discipline baseline moved to `.trebired/code-discipline/preset_01/config.ts`, named `@trebired/configs/code-discipline/preset_01`, and the frontend preset to `.trebired/frontend/preset_01/config.ts`, named `@trebired/configs/frontend/preset_01`. The bare `@trebired/configs` and the package's root export are gone; tools resolve the names through `@trebired/utils`.
|
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ import { defineConfig } from "@trebired/frontend/config";
|
|
|
53
53
|
import { containers } from "./containers";
|
|
54
54
|
|
|
55
55
|
export default defineConfig({
|
|
56
|
-
forVersion: "
|
|
56
|
+
forVersion: "30.0.0",
|
|
57
57
|
presets: {
|
|
58
58
|
use: ["@trebired/configs/frontend/preset_01"],
|
|
59
59
|
},
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"name": "@trebired/configs",
|
|
11
|
-
"version": "0.
|
|
11
|
+
"version": "0.8.0",
|
|
12
12
|
"description": "Shared Trebired configuration presets for Code Discipline and @trebired/frontend.",
|
|
13
13
|
"type": "module",
|
|
14
14
|
"private": false,
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"typecheck": "tsc --noEmit"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@trebired/frontend": "^
|
|
31
|
+
"@trebired/frontend": "^30.1.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependenciesMeta": {
|
|
34
34
|
"@trebired/frontend": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@trebired/code-discipline": "^8.0.
|
|
40
|
-
"@trebired/frontend": "^
|
|
39
|
+
"@trebired/code-discipline": "^8.0.3",
|
|
40
|
+
"@trebired/frontend": "^30.1.0",
|
|
41
41
|
"typescript": "^6.0.3"
|
|
42
42
|
},
|
|
43
43
|
"repository": {
|