@ttoss/theme 1.4.2 → 1.4.4

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.
@@ -221,7 +221,8 @@ var BruttalTheme = {
221
221
  default: coreBorders.medium
222
222
  },
223
223
  radii: {
224
- default: coreRadii.sm
224
+ default: coreRadii.sm,
225
+ action: coreRadii.sm
225
226
  },
226
227
  /**
227
228
  * Global styles
@@ -251,10 +252,7 @@ var BruttalTheme = {
251
252
  accent: {
252
253
  backgroundColor: "accent",
253
254
  color: "onAccent",
254
- fontFamily: "highlight",
255
- fontWeight: "bold",
256
- border: "default",
257
- borderRadius: "default",
255
+ borderRadius: "action",
258
256
  borderColor: "accent",
259
257
  ":hover:not(:active,[disabled])": {
260
258
  backgroundColor: "highlight",
@@ -270,10 +268,8 @@ var BruttalTheme = {
270
268
  primary: {
271
269
  backgroundColor: "primary",
272
270
  color: "onPrimary",
273
- fontFamily: "body",
274
- border: "default",
275
- borderRadius: "default",
276
- borderColor: "outline",
271
+ borderRadius: "action",
272
+ borderColor: "primary",
277
273
  ":hover:not(:active,[disabled])": {
278
274
  backgroundColor: "highlight",
279
275
  color: "onHighlight",
@@ -293,10 +289,8 @@ var BruttalTheme = {
293
289
  secondary: {
294
290
  backgroundColor: "secondary",
295
291
  color: "onSecondary",
296
- fontFamily: "body",
297
- border: "default",
298
- borderRadius: "default",
299
- borderColor: "outline",
292
+ borderRadius: "action",
293
+ borderColor: "secondary",
300
294
  ":hover:not(:active,[disabled])": {
301
295
  backgroundColor: "highlight",
302
296
  color: "onHighlight",
@@ -309,12 +303,10 @@ var BruttalTheme = {
309
303
  }
310
304
  },
311
305
  neutral: {
312
- backgroundColor: "neutral",
313
- color: "onNeutral",
314
- fontFamily: "body",
315
- border: "default",
316
- borderRadius: "default",
317
- borderColor: "outline",
306
+ backgroundColor: "muted",
307
+ color: "onMuted",
308
+ borderRadius: "action",
309
+ borderColor: "muted",
318
310
  ":hover:not(:active,[disabled])": {
319
311
  backgroundColor: "highlight",
320
312
  color: "onHighlight",
@@ -327,7 +319,7 @@ var BruttalTheme = {
327
319
  }
328
320
  },
329
321
  danger: {
330
- color: "white",
322
+ color: "onDanger",
331
323
  backgroundColor: "danger"
332
324
  }
333
325
  },
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-NZ55XKBO.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-NZ55XKBO.js";
3
3
  export { BruttalFonts, BruttalTheme };
package/dist/index.js CHANGED
@@ -260,7 +260,8 @@ var BruttalTheme = {
260
260
  default: coreBorders.medium
261
261
  },
262
262
  radii: {
263
- default: coreRadii.sm
263
+ default: coreRadii.sm,
264
+ action: coreRadii.sm
264
265
  },
265
266
  /**
266
267
  * Global styles
@@ -290,10 +291,7 @@ var BruttalTheme = {
290
291
  accent: {
291
292
  backgroundColor: "accent",
292
293
  color: "onAccent",
293
- fontFamily: "highlight",
294
- fontWeight: "bold",
295
- border: "default",
296
- borderRadius: "default",
294
+ borderRadius: "action",
297
295
  borderColor: "accent",
298
296
  ":hover:not(:active,[disabled])": {
299
297
  backgroundColor: "highlight",
@@ -309,10 +307,8 @@ var BruttalTheme = {
309
307
  primary: {
310
308
  backgroundColor: "primary",
311
309
  color: "onPrimary",
312
- fontFamily: "body",
313
- border: "default",
314
- borderRadius: "default",
315
- borderColor: "outline",
310
+ borderRadius: "action",
311
+ borderColor: "primary",
316
312
  ":hover:not(:active,[disabled])": {
317
313
  backgroundColor: "highlight",
318
314
  color: "onHighlight",
@@ -332,10 +328,8 @@ var BruttalTheme = {
332
328
  secondary: {
333
329
  backgroundColor: "secondary",
334
330
  color: "onSecondary",
335
- fontFamily: "body",
336
- border: "default",
337
- borderRadius: "default",
338
- borderColor: "outline",
331
+ borderRadius: "action",
332
+ borderColor: "secondary",
339
333
  ":hover:not(:active,[disabled])": {
340
334
  backgroundColor: "highlight",
341
335
  color: "onHighlight",
@@ -348,12 +342,10 @@ var BruttalTheme = {
348
342
  }
349
343
  },
350
344
  neutral: {
351
- backgroundColor: "neutral",
352
- color: "onNeutral",
353
- fontFamily: "body",
354
- border: "default",
355
- borderRadius: "default",
356
- borderColor: "outline",
345
+ backgroundColor: "muted",
346
+ color: "onMuted",
347
+ borderRadius: "action",
348
+ borderColor: "muted",
357
349
  ":hover:not(:active,[disabled])": {
358
350
  backgroundColor: "highlight",
359
351
  color: "onHighlight",
@@ -366,7 +358,7 @@ var BruttalTheme = {
366
358
  }
367
359
  },
368
360
  danger: {
369
- color: "white",
361
+ color: "onDanger",
370
362
  backgroundColor: "danger"
371
363
  }
372
364
  },
@@ -264,7 +264,8 @@ var BruttalTheme = {
264
264
  default: coreBorders.medium
265
265
  },
266
266
  radii: {
267
- default: coreRadii.sm
267
+ default: coreRadii.sm,
268
+ action: coreRadii.sm
268
269
  },
269
270
  /**
270
271
  * Global styles
@@ -294,10 +295,7 @@ var BruttalTheme = {
294
295
  accent: {
295
296
  backgroundColor: "accent",
296
297
  color: "onAccent",
297
- fontFamily: "highlight",
298
- fontWeight: "bold",
299
- border: "default",
300
- borderRadius: "default",
298
+ borderRadius: "action",
301
299
  borderColor: "accent",
302
300
  ":hover:not(:active,[disabled])": {
303
301
  backgroundColor: "highlight",
@@ -313,10 +311,8 @@ var BruttalTheme = {
313
311
  primary: {
314
312
  backgroundColor: "primary",
315
313
  color: "onPrimary",
316
- fontFamily: "body",
317
- border: "default",
318
- borderRadius: "default",
319
- borderColor: "outline",
314
+ borderRadius: "action",
315
+ borderColor: "primary",
320
316
  ":hover:not(:active,[disabled])": {
321
317
  backgroundColor: "highlight",
322
318
  color: "onHighlight",
@@ -336,10 +332,8 @@ var BruttalTheme = {
336
332
  secondary: {
337
333
  backgroundColor: "secondary",
338
334
  color: "onSecondary",
339
- fontFamily: "body",
340
- border: "default",
341
- borderRadius: "default",
342
- borderColor: "outline",
335
+ borderRadius: "action",
336
+ borderColor: "secondary",
343
337
  ":hover:not(:active,[disabled])": {
344
338
  backgroundColor: "highlight",
345
339
  color: "onHighlight",
@@ -352,12 +346,10 @@ var BruttalTheme = {
352
346
  }
353
347
  },
354
348
  neutral: {
355
- backgroundColor: "neutral",
356
- color: "onNeutral",
357
- fontFamily: "body",
358
- border: "default",
359
- borderRadius: "default",
360
- borderColor: "outline",
349
+ backgroundColor: "muted",
350
+ color: "onMuted",
351
+ borderRadius: "action",
352
+ borderColor: "muted",
361
353
  ":hover:not(:active,[disabled])": {
362
354
  backgroundColor: "highlight",
363
355
  color: "onHighlight",
@@ -370,7 +362,7 @@ var BruttalTheme = {
370
362
  }
371
363
  },
372
364
  danger: {
373
- color: "white",
365
+ color: "onDanger",
374
366
  backgroundColor: "danger"
375
367
  }
376
368
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/theme",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "Theme for packages.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "ttoss",
@@ -17,6 +17,8 @@
17
17
  "require": "./dist/themes/Bruttal/Bruttal.js"
18
18
  }
19
19
  },
20
+ "main": "dist/index.js",
21
+ "module": "dist/esm/index.js",
20
22
  "files": [
21
23
  "dist",
22
24
  "src",
@@ -27,6 +29,7 @@
27
29
  "test": "jest"
28
30
  },
29
31
  "sideEffects": true,
32
+ "typings": "dist/index.d.ts",
30
33
  "dependencies": {
31
34
  "@iconify-icon/react": "^1.0.7",
32
35
  "@iconify/icons-carbon": "^1.2.16",
@@ -50,5 +53,5 @@
50
53
  ]
51
54
  }
52
55
  },
53
- "gitHead": "0609bb0f6e6a1c0999c29e7a5c8f8ebb1c6d3d7a"
56
+ "gitHead": "f26363085030df7edfb2bcbf44aefed304d2b328"
54
57
  }
@@ -111,6 +111,7 @@ export const BruttalTheme: Theme = {
111
111
  },
112
112
  radii: {
113
113
  default: coreRadii.sm,
114
+ action: coreRadii.sm,
114
115
  },
115
116
  /**
116
117
  * Global styles
@@ -140,10 +141,7 @@ export const BruttalTheme: Theme = {
140
141
  accent: {
141
142
  backgroundColor: 'accent',
142
143
  color: 'onAccent',
143
- fontFamily: 'highlight',
144
- fontWeight: 'bold',
145
- border: 'default',
146
- borderRadius: 'default',
144
+ borderRadius: 'action',
147
145
  borderColor: 'accent',
148
146
  ':hover:not(:active,[disabled])': {
149
147
  backgroundColor: 'highlight',
@@ -159,10 +157,8 @@ export const BruttalTheme: Theme = {
159
157
  primary: {
160
158
  backgroundColor: 'primary',
161
159
  color: 'onPrimary',
162
- fontFamily: 'body',
163
- border: 'default',
164
- borderRadius: 'default',
165
- borderColor: 'outline',
160
+ borderRadius: 'action',
161
+ borderColor: 'primary',
166
162
  ':hover:not(:active,[disabled])': {
167
163
  backgroundColor: 'highlight',
168
164
  color: 'onHighlight',
@@ -182,10 +178,8 @@ export const BruttalTheme: Theme = {
182
178
  secondary: {
183
179
  backgroundColor: 'secondary',
184
180
  color: 'onSecondary',
185
- fontFamily: 'body',
186
- border: 'default',
187
- borderRadius: 'default',
188
- borderColor: 'outline',
181
+ borderRadius: 'action',
182
+ borderColor: 'secondary',
189
183
  ':hover:not(:active,[disabled])': {
190
184
  backgroundColor: 'highlight',
191
185
  color: 'onHighlight',
@@ -198,12 +192,10 @@ export const BruttalTheme: Theme = {
198
192
  },
199
193
  },
200
194
  neutral: {
201
- backgroundColor: 'neutral',
202
- color: 'onNeutral',
203
- fontFamily: 'body',
204
- border: 'default',
205
- borderRadius: 'default',
206
- borderColor: 'outline',
195
+ backgroundColor: 'muted',
196
+ color: 'onMuted',
197
+ borderRadius: 'action',
198
+ borderColor: 'muted',
207
199
  ':hover:not(:active,[disabled])': {
208
200
  backgroundColor: 'highlight',
209
201
  color: 'onHighlight',
@@ -216,7 +208,7 @@ export const BruttalTheme: Theme = {
216
208
  },
217
209
  },
218
210
  danger: {
219
- color: 'white',
211
+ color: 'onDanger',
220
212
  backgroundColor: 'danger',
221
213
  },
222
214
  },