@ttoss/theme 1.4.3 → 1.4.5

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.
@@ -184,20 +184,22 @@ var BruttalTheme = {
184
184
  background: coreColors.white,
185
185
  text: coreColors.black,
186
186
  muted: coreColors.gray200,
187
- onMuted: coreColors.gray500,
187
+ onMuted: coreColors.gray600,
188
188
  mutedOutline: coreColors.gray300,
189
189
  danger: coreColors.red700,
190
190
  onDanger: coreColors.white,
191
191
  notice: coreColors.amber600,
192
+ onNotice: coreColors.white,
192
193
  positive: coreColors.teal600,
194
+ onPositive: coreColors.white,
193
195
  surface: coreColors.white,
194
196
  contentHeader: coreColors.gray200,
195
197
  onContentHeader: coreColors.black,
196
198
  outline: coreColors.gray500,
197
199
  primary: coreColors.main,
198
200
  onPrimary: coreColors.white,
199
- secondary: coreColors.gray500,
200
- onSecondary: coreColors.complimentary,
201
+ secondary: coreColors.gray100,
202
+ onSecondary: coreColors.black,
201
203
  highlight: coreColors.darkNeutral,
202
204
  onHighlight: coreColors.complimentary,
203
205
  accent: coreColors.accent,
@@ -218,10 +220,13 @@ var BruttalTheme = {
218
220
  caption: coreFonts.monospace
219
221
  },
220
222
  borders: {
221
- default: coreBorders.medium
223
+ default: coreBorders.medium,
224
+ muted: coreBorders.thin
222
225
  },
223
226
  radii: {
224
- default: coreRadii.sm
227
+ informative: coreRadii.xs,
228
+ default: coreRadii.sm,
229
+ action: coreRadii.sm
225
230
  },
226
231
  /**
227
232
  * Global styles
@@ -239,22 +244,54 @@ var BruttalTheme = {
239
244
  * Components
240
245
  */
241
246
  badges: {
242
- primary: {
243
- color: "onPrimary",
244
- bg: "primary",
245
- fontSize: "sm",
246
- paddingX: "sm",
247
- borderRadius: "default"
247
+ positive: {
248
+ color: "onPositive",
249
+ bg: "positive",
250
+ fontFamily: "caption",
251
+ fontWeight: "normal",
252
+ fontSize: "xs",
253
+ paddingX: "xs",
254
+ paddingY: "2xs",
255
+ borderRadius: "informative"
256
+ },
257
+ negative: {
258
+ color: "onDanger",
259
+ bg: "danger",
260
+ fontFamily: "caption",
261
+ fontWeight: "normal",
262
+ fontSize: "xs",
263
+ paddingX: "xs",
264
+ paddingY: "2xs",
265
+ borderRadius: "informative"
266
+ },
267
+ neutral: {
268
+ color: "onSecondary",
269
+ bg: "secondary",
270
+ fontFamily: "caption",
271
+ fontSize: "xs",
272
+ fontWeight: "normal",
273
+ paddingX: "xs",
274
+ paddingY: "2xs",
275
+ borderRadius: "informative",
276
+ border: "muted",
277
+ borderColor: "onMuted"
278
+ },
279
+ informative: {
280
+ color: "onNotice",
281
+ bg: "notice",
282
+ fontFamily: "caption",
283
+ fontWeight: "normal",
284
+ fontSize: "xs",
285
+ paddingX: "xs",
286
+ paddingY: "2xs",
287
+ borderRadius: "informative"
248
288
  }
249
289
  },
250
290
  buttons: {
251
291
  accent: {
252
292
  backgroundColor: "accent",
253
293
  color: "onAccent",
254
- fontFamily: "highlight",
255
- fontWeight: "bold",
256
- border: "default",
257
- borderRadius: "default",
294
+ borderRadius: "action",
258
295
  borderColor: "accent",
259
296
  ":hover:not(:active,[disabled])": {
260
297
  backgroundColor: "highlight",
@@ -270,10 +307,8 @@ var BruttalTheme = {
270
307
  primary: {
271
308
  backgroundColor: "primary",
272
309
  color: "onPrimary",
273
- fontFamily: "body",
274
- border: "default",
275
- borderRadius: "default",
276
- borderColor: "outline",
310
+ borderRadius: "action",
311
+ borderColor: "primary",
277
312
  ":hover:not(:active,[disabled])": {
278
313
  backgroundColor: "highlight",
279
314
  color: "onHighlight",
@@ -293,10 +328,8 @@ var BruttalTheme = {
293
328
  secondary: {
294
329
  backgroundColor: "secondary",
295
330
  color: "onSecondary",
296
- fontFamily: "body",
297
- border: "default",
298
- borderRadius: "default",
299
- borderColor: "outline",
331
+ borderRadius: "action",
332
+ borderColor: "secondary",
300
333
  ":hover:not(:active,[disabled])": {
301
334
  backgroundColor: "highlight",
302
335
  color: "onHighlight",
@@ -309,12 +342,10 @@ var BruttalTheme = {
309
342
  }
310
343
  },
311
344
  neutral: {
312
- backgroundColor: "neutral",
313
- color: "onNeutral",
314
- fontFamily: "body",
315
- border: "default",
316
- borderRadius: "default",
317
- borderColor: "outline",
345
+ backgroundColor: "muted",
346
+ color: "onMuted",
347
+ borderRadius: "action",
348
+ borderColor: "muted",
318
349
  ":hover:not(:active,[disabled])": {
319
350
  backgroundColor: "highlight",
320
351
  color: "onHighlight",
@@ -327,7 +358,7 @@ var BruttalTheme = {
327
358
  }
328
359
  },
329
360
  danger: {
330
- color: "white",
361
+ color: "onDanger",
331
362
  backgroundColor: "danger"
332
363
  }
333
364
  },
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { BruttalTheme } from "./chunk-VIAWD6II.js";
2
+ import { BruttalTheme } from "./chunk-3BHEF22W.js";
3
3
 
4
4
  // src/createTheme.ts
5
5
  import deepmerge from "deepmerge";
@@ -1,3 +1,3 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { BruttalFonts, BruttalTheme } from "../../chunk-VIAWD6II.js";
2
+ import { BruttalFonts, BruttalTheme } from "../../chunk-3BHEF22W.js";
3
3
  export { BruttalFonts, BruttalTheme };
package/dist/index.js CHANGED
@@ -223,20 +223,22 @@ var BruttalTheme = {
223
223
  background: coreColors.white,
224
224
  text: coreColors.black,
225
225
  muted: coreColors.gray200,
226
- onMuted: coreColors.gray500,
226
+ onMuted: coreColors.gray600,
227
227
  mutedOutline: coreColors.gray300,
228
228
  danger: coreColors.red700,
229
229
  onDanger: coreColors.white,
230
230
  notice: coreColors.amber600,
231
+ onNotice: coreColors.white,
231
232
  positive: coreColors.teal600,
233
+ onPositive: coreColors.white,
232
234
  surface: coreColors.white,
233
235
  contentHeader: coreColors.gray200,
234
236
  onContentHeader: coreColors.black,
235
237
  outline: coreColors.gray500,
236
238
  primary: coreColors.main,
237
239
  onPrimary: coreColors.white,
238
- secondary: coreColors.gray500,
239
- onSecondary: coreColors.complimentary,
240
+ secondary: coreColors.gray100,
241
+ onSecondary: coreColors.black,
240
242
  highlight: coreColors.darkNeutral,
241
243
  onHighlight: coreColors.complimentary,
242
244
  accent: coreColors.accent,
@@ -257,10 +259,13 @@ var BruttalTheme = {
257
259
  caption: coreFonts.monospace
258
260
  },
259
261
  borders: {
260
- default: coreBorders.medium
262
+ default: coreBorders.medium,
263
+ muted: coreBorders.thin
261
264
  },
262
265
  radii: {
263
- default: coreRadii.sm
266
+ informative: coreRadii.xs,
267
+ default: coreRadii.sm,
268
+ action: coreRadii.sm
264
269
  },
265
270
  /**
266
271
  * Global styles
@@ -278,22 +283,54 @@ var BruttalTheme = {
278
283
  * Components
279
284
  */
280
285
  badges: {
281
- primary: {
282
- color: "onPrimary",
283
- bg: "primary",
284
- fontSize: "sm",
285
- paddingX: "sm",
286
- borderRadius: "default"
286
+ positive: {
287
+ color: "onPositive",
288
+ bg: "positive",
289
+ fontFamily: "caption",
290
+ fontWeight: "normal",
291
+ fontSize: "xs",
292
+ paddingX: "xs",
293
+ paddingY: "2xs",
294
+ borderRadius: "informative"
295
+ },
296
+ negative: {
297
+ color: "onDanger",
298
+ bg: "danger",
299
+ fontFamily: "caption",
300
+ fontWeight: "normal",
301
+ fontSize: "xs",
302
+ paddingX: "xs",
303
+ paddingY: "2xs",
304
+ borderRadius: "informative"
305
+ },
306
+ neutral: {
307
+ color: "onSecondary",
308
+ bg: "secondary",
309
+ fontFamily: "caption",
310
+ fontSize: "xs",
311
+ fontWeight: "normal",
312
+ paddingX: "xs",
313
+ paddingY: "2xs",
314
+ borderRadius: "informative",
315
+ border: "muted",
316
+ borderColor: "onMuted"
317
+ },
318
+ informative: {
319
+ color: "onNotice",
320
+ bg: "notice",
321
+ fontFamily: "caption",
322
+ fontWeight: "normal",
323
+ fontSize: "xs",
324
+ paddingX: "xs",
325
+ paddingY: "2xs",
326
+ borderRadius: "informative"
287
327
  }
288
328
  },
289
329
  buttons: {
290
330
  accent: {
291
331
  backgroundColor: "accent",
292
332
  color: "onAccent",
293
- fontFamily: "highlight",
294
- fontWeight: "bold",
295
- border: "default",
296
- borderRadius: "default",
333
+ borderRadius: "action",
297
334
  borderColor: "accent",
298
335
  ":hover:not(:active,[disabled])": {
299
336
  backgroundColor: "highlight",
@@ -309,10 +346,8 @@ var BruttalTheme = {
309
346
  primary: {
310
347
  backgroundColor: "primary",
311
348
  color: "onPrimary",
312
- fontFamily: "body",
313
- border: "default",
314
- borderRadius: "default",
315
- borderColor: "outline",
349
+ borderRadius: "action",
350
+ borderColor: "primary",
316
351
  ":hover:not(:active,[disabled])": {
317
352
  backgroundColor: "highlight",
318
353
  color: "onHighlight",
@@ -332,10 +367,8 @@ var BruttalTheme = {
332
367
  secondary: {
333
368
  backgroundColor: "secondary",
334
369
  color: "onSecondary",
335
- fontFamily: "body",
336
- border: "default",
337
- borderRadius: "default",
338
- borderColor: "outline",
370
+ borderRadius: "action",
371
+ borderColor: "secondary",
339
372
  ":hover:not(:active,[disabled])": {
340
373
  backgroundColor: "highlight",
341
374
  color: "onHighlight",
@@ -348,12 +381,10 @@ var BruttalTheme = {
348
381
  }
349
382
  },
350
383
  neutral: {
351
- backgroundColor: "neutral",
352
- color: "onNeutral",
353
- fontFamily: "body",
354
- border: "default",
355
- borderRadius: "default",
356
- borderColor: "outline",
384
+ backgroundColor: "muted",
385
+ color: "onMuted",
386
+ borderRadius: "action",
387
+ borderColor: "muted",
357
388
  ":hover:not(:active,[disabled])": {
358
389
  backgroundColor: "highlight",
359
390
  color: "onHighlight",
@@ -366,7 +397,7 @@ var BruttalTheme = {
366
397
  }
367
398
  },
368
399
  danger: {
369
- color: "white",
400
+ color: "onDanger",
370
401
  backgroundColor: "danger"
371
402
  }
372
403
  },
@@ -227,20 +227,22 @@ var BruttalTheme = {
227
227
  background: coreColors.white,
228
228
  text: coreColors.black,
229
229
  muted: coreColors.gray200,
230
- onMuted: coreColors.gray500,
230
+ onMuted: coreColors.gray600,
231
231
  mutedOutline: coreColors.gray300,
232
232
  danger: coreColors.red700,
233
233
  onDanger: coreColors.white,
234
234
  notice: coreColors.amber600,
235
+ onNotice: coreColors.white,
235
236
  positive: coreColors.teal600,
237
+ onPositive: coreColors.white,
236
238
  surface: coreColors.white,
237
239
  contentHeader: coreColors.gray200,
238
240
  onContentHeader: coreColors.black,
239
241
  outline: coreColors.gray500,
240
242
  primary: coreColors.main,
241
243
  onPrimary: coreColors.white,
242
- secondary: coreColors.gray500,
243
- onSecondary: coreColors.complimentary,
244
+ secondary: coreColors.gray100,
245
+ onSecondary: coreColors.black,
244
246
  highlight: coreColors.darkNeutral,
245
247
  onHighlight: coreColors.complimentary,
246
248
  accent: coreColors.accent,
@@ -261,10 +263,13 @@ var BruttalTheme = {
261
263
  caption: coreFonts.monospace
262
264
  },
263
265
  borders: {
264
- default: coreBorders.medium
266
+ default: coreBorders.medium,
267
+ muted: coreBorders.thin
265
268
  },
266
269
  radii: {
267
- default: coreRadii.sm
270
+ informative: coreRadii.xs,
271
+ default: coreRadii.sm,
272
+ action: coreRadii.sm
268
273
  },
269
274
  /**
270
275
  * Global styles
@@ -282,22 +287,54 @@ var BruttalTheme = {
282
287
  * Components
283
288
  */
284
289
  badges: {
285
- primary: {
286
- color: "onPrimary",
287
- bg: "primary",
288
- fontSize: "sm",
289
- paddingX: "sm",
290
- borderRadius: "default"
290
+ positive: {
291
+ color: "onPositive",
292
+ bg: "positive",
293
+ fontFamily: "caption",
294
+ fontWeight: "normal",
295
+ fontSize: "xs",
296
+ paddingX: "xs",
297
+ paddingY: "2xs",
298
+ borderRadius: "informative"
299
+ },
300
+ negative: {
301
+ color: "onDanger",
302
+ bg: "danger",
303
+ fontFamily: "caption",
304
+ fontWeight: "normal",
305
+ fontSize: "xs",
306
+ paddingX: "xs",
307
+ paddingY: "2xs",
308
+ borderRadius: "informative"
309
+ },
310
+ neutral: {
311
+ color: "onSecondary",
312
+ bg: "secondary",
313
+ fontFamily: "caption",
314
+ fontSize: "xs",
315
+ fontWeight: "normal",
316
+ paddingX: "xs",
317
+ paddingY: "2xs",
318
+ borderRadius: "informative",
319
+ border: "muted",
320
+ borderColor: "onMuted"
321
+ },
322
+ informative: {
323
+ color: "onNotice",
324
+ bg: "notice",
325
+ fontFamily: "caption",
326
+ fontWeight: "normal",
327
+ fontSize: "xs",
328
+ paddingX: "xs",
329
+ paddingY: "2xs",
330
+ borderRadius: "informative"
291
331
  }
292
332
  },
293
333
  buttons: {
294
334
  accent: {
295
335
  backgroundColor: "accent",
296
336
  color: "onAccent",
297
- fontFamily: "highlight",
298
- fontWeight: "bold",
299
- border: "default",
300
- borderRadius: "default",
337
+ borderRadius: "action",
301
338
  borderColor: "accent",
302
339
  ":hover:not(:active,[disabled])": {
303
340
  backgroundColor: "highlight",
@@ -313,10 +350,8 @@ var BruttalTheme = {
313
350
  primary: {
314
351
  backgroundColor: "primary",
315
352
  color: "onPrimary",
316
- fontFamily: "body",
317
- border: "default",
318
- borderRadius: "default",
319
- borderColor: "outline",
353
+ borderRadius: "action",
354
+ borderColor: "primary",
320
355
  ":hover:not(:active,[disabled])": {
321
356
  backgroundColor: "highlight",
322
357
  color: "onHighlight",
@@ -336,10 +371,8 @@ var BruttalTheme = {
336
371
  secondary: {
337
372
  backgroundColor: "secondary",
338
373
  color: "onSecondary",
339
- fontFamily: "body",
340
- border: "default",
341
- borderRadius: "default",
342
- borderColor: "outline",
374
+ borderRadius: "action",
375
+ borderColor: "secondary",
343
376
  ":hover:not(:active,[disabled])": {
344
377
  backgroundColor: "highlight",
345
378
  color: "onHighlight",
@@ -352,12 +385,10 @@ var BruttalTheme = {
352
385
  }
353
386
  },
354
387
  neutral: {
355
- backgroundColor: "neutral",
356
- color: "onNeutral",
357
- fontFamily: "body",
358
- border: "default",
359
- borderRadius: "default",
360
- borderColor: "outline",
388
+ backgroundColor: "muted",
389
+ color: "onMuted",
390
+ borderRadius: "action",
391
+ borderColor: "muted",
361
392
  ":hover:not(:active,[disabled])": {
362
393
  backgroundColor: "highlight",
363
394
  color: "onHighlight",
@@ -370,7 +401,7 @@ var BruttalTheme = {
370
401
  }
371
402
  },
372
403
  danger: {
373
- color: "white",
404
+ color: "onDanger",
374
405
  backgroundColor: "danger"
375
406
  }
376
407
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/theme",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "description": "Theme for packages.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "ttoss",
@@ -53,5 +53,5 @@
53
53
  ]
54
54
  }
55
55
  },
56
- "gitHead": "792b02e52847725c19fdceffb606c201840d5910"
56
+ "gitHead": "77d124d6e4c2ccd61058c8852789dcd9bc2f527a"
57
57
  }
@@ -73,20 +73,22 @@ export const BruttalTheme: Theme = {
73
73
  background: coreColors.white,
74
74
  text: coreColors.black,
75
75
  muted: coreColors.gray200,
76
- onMuted: coreColors.gray500,
76
+ onMuted: coreColors.gray600,
77
77
  mutedOutline: coreColors.gray300,
78
78
  danger: coreColors.red700,
79
79
  onDanger: coreColors.white,
80
80
  notice: coreColors.amber600,
81
+ onNotice: coreColors.white,
81
82
  positive: coreColors.teal600,
83
+ onPositive: coreColors.white,
82
84
  surface: coreColors.white,
83
85
  contentHeader: coreColors.gray200,
84
86
  onContentHeader: coreColors.black,
85
87
  outline: coreColors.gray500,
86
88
  primary: coreColors.main,
87
89
  onPrimary: coreColors.white,
88
- secondary: coreColors.gray500,
89
- onSecondary: coreColors.complimentary,
90
+ secondary: coreColors.gray100,
91
+ onSecondary: coreColors.black,
90
92
  highlight: coreColors.darkNeutral,
91
93
  onHighlight: coreColors.complimentary,
92
94
  accent: coreColors.accent,
@@ -108,9 +110,12 @@ export const BruttalTheme: Theme = {
108
110
  },
109
111
  borders: {
110
112
  default: coreBorders.medium,
113
+ muted: coreBorders.thin,
111
114
  },
112
115
  radii: {
116
+ informative: coreRadii.xs,
113
117
  default: coreRadii.sm,
118
+ action: coreRadii.sm,
114
119
  },
115
120
  /**
116
121
  * Global styles
@@ -128,22 +133,54 @@ export const BruttalTheme: Theme = {
128
133
  * Components
129
134
  */
130
135
  badges: {
131
- primary: {
132
- color: 'onPrimary',
133
- bg: 'primary',
134
- fontSize: 'sm',
135
- paddingX: 'sm',
136
- borderRadius: 'default',
136
+ positive: {
137
+ color: 'onPositive',
138
+ bg: 'positive',
139
+ fontFamily: 'caption',
140
+ fontWeight: 'normal',
141
+ fontSize: 'xs',
142
+ paddingX: 'xs',
143
+ paddingY: '2xs',
144
+ borderRadius: 'informative',
145
+ },
146
+ negative: {
147
+ color: 'onDanger',
148
+ bg: 'danger',
149
+ fontFamily: 'caption',
150
+ fontWeight: 'normal',
151
+ fontSize: 'xs',
152
+ paddingX: 'xs',
153
+ paddingY: '2xs',
154
+ borderRadius: 'informative',
155
+ },
156
+ neutral: {
157
+ color: 'onSecondary',
158
+ bg: 'secondary',
159
+ fontFamily: 'caption',
160
+ fontSize: 'xs',
161
+ fontWeight: 'normal',
162
+ paddingX: 'xs',
163
+ paddingY: '2xs',
164
+ borderRadius: 'informative',
165
+ border: 'muted',
166
+ borderColor: 'onMuted',
167
+ },
168
+ informative: {
169
+ color: 'onNotice',
170
+ bg: 'notice',
171
+ fontFamily: 'caption',
172
+ fontWeight: 'normal',
173
+ fontSize: 'xs',
174
+ paddingX: 'xs',
175
+ paddingY: '2xs',
176
+ borderRadius: 'informative',
137
177
  },
138
178
  },
139
179
  buttons: {
140
180
  accent: {
141
181
  backgroundColor: 'accent',
142
182
  color: 'onAccent',
143
- fontFamily: 'highlight',
144
- fontWeight: 'bold',
145
- border: 'default',
146
- borderRadius: 'default',
183
+ borderRadius: 'action',
147
184
  borderColor: 'accent',
148
185
  ':hover:not(:active,[disabled])': {
149
186
  backgroundColor: 'highlight',
@@ -159,10 +196,8 @@ export const BruttalTheme: Theme = {
159
196
  primary: {
160
197
  backgroundColor: 'primary',
161
198
  color: 'onPrimary',
162
- fontFamily: 'body',
163
- border: 'default',
164
- borderRadius: 'default',
165
- borderColor: 'outline',
199
+ borderRadius: 'action',
200
+ borderColor: 'primary',
166
201
  ':hover:not(:active,[disabled])': {
167
202
  backgroundColor: 'highlight',
168
203
  color: 'onHighlight',
@@ -182,10 +217,8 @@ export const BruttalTheme: Theme = {
182
217
  secondary: {
183
218
  backgroundColor: 'secondary',
184
219
  color: 'onSecondary',
185
- fontFamily: 'body',
186
- border: 'default',
187
- borderRadius: 'default',
188
- borderColor: 'outline',
220
+ borderRadius: 'action',
221
+ borderColor: 'secondary',
189
222
  ':hover:not(:active,[disabled])': {
190
223
  backgroundColor: 'highlight',
191
224
  color: 'onHighlight',
@@ -198,12 +231,10 @@ export const BruttalTheme: Theme = {
198
231
  },
199
232
  },
200
233
  neutral: {
201
- backgroundColor: 'neutral',
202
- color: 'onNeutral',
203
- fontFamily: 'body',
204
- border: 'default',
205
- borderRadius: 'default',
206
- borderColor: 'outline',
234
+ backgroundColor: 'muted',
235
+ color: 'onMuted',
236
+ borderRadius: 'action',
237
+ borderColor: 'muted',
207
238
  ':hover:not(:active,[disabled])': {
208
239
  backgroundColor: 'highlight',
209
240
  color: 'onHighlight',
@@ -216,7 +247,7 @@ export const BruttalTheme: Theme = {
216
247
  },
217
248
  },
218
249
  danger: {
219
- color: 'white',
250
+ color: 'onDanger',
220
251
  backgroundColor: 'danger',
221
252
  },
222
253
  },