@trebired/configs 0.6.0 → 0.7.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.
@@ -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: "var(--tbf-text, currentColor)",
176
- border: "transparent",
177
- color: "var(--tbf-page, canvas)",
178
- icon: "currentColor",
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: "color-mix(in srgb, var(--tbf-text, currentColor) 88%, var(--tbf-page, canvas))",
182
- border: "transparent",
183
- color: "var(--tbf-page, canvas)",
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: "var(--tbf-ui-btn-root-bg, transparent)",
190
- border: "var(--tbf-border, currentColor)",
191
- color: "var(--tbf-ui-btn-root-color, var(--tbf-text, currentColor))",
192
- icon: "currentColor",
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: "var(--tbf-ui-btn-state-hover-bg, var(--tbf-ui-btn-root-bg, transparent))",
196
- border: "var(--tbf-border, currentColor)",
197
- color: "currentColor",
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: "currentColor",
6
+ border: semantic.borderSurface2,
7
7
  },
8
8
  control: {
9
9
  activeIconColor: token.color("gray", 600),
@@ -6,7 +6,7 @@ import { systems } from "./systems";
6
6
  import { runtime, semantics } from "./theme";
7
7
 
8
8
  export default {
9
- forVersion: "29.11.0",
9
+ forVersion: "30.0.0",
10
10
  assets: {
11
11
  fonts: {
12
12
  families: {
@@ -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: "blue", step: "500" },
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,14 @@ 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.7.0
8
+
9
+ - Breaking: the frontend `preset_01` targets `@trebired/frontend` 30.0.0 and the peer range is `^30.0.0`.
10
+ - The frontend `preset_01` sets the `ink` tone to gray 0, white on the dark theme and near black on the light one.
11
+ - 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.
12
+ - 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.
13
+ - 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.
14
+
7
15
  ## 0.6.0
8
16
 
9
17
  - 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: "29.11.0",
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.6.0",
11
+ "version": "0.7.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": "^29.11.0"
31
+ "@trebired/frontend": "^30.0.0"
32
32
  },
33
33
  "peerDependenciesMeta": {
34
34
  "@trebired/frontend": {
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@trebired/code-discipline": "^8.0.1",
40
- "@trebired/frontend": "^29.11.0",
40
+ "@trebired/frontend": "^30.0.0",
41
41
  "typescript": "^6.0.3"
42
42
  },
43
43
  "repository": {