@redseed/redseed-ui-tailwindcss 5.1.1 → 5.1.2

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.
Files changed (2) hide show
  1. package/index.js +53 -43
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -29,59 +29,69 @@ module.exports = {
29
29
  // RedSeed UI colors. Should not be extended.
30
30
  'rsui': rsuiColors,
31
31
 
32
- // Functional colors. Extend these to be consistent with the application theme.
33
32
  /**
34
- * Primary colors.
33
+ * Text colors.
35
34
  */
36
- 'primary-foreground': rsuiColors.white,
37
- 'primary-background': rsuiColors.brand['500'],
38
- 'primary-foreground-hover': rsuiColors.white,
39
- 'primary-background-hover': rsuiColors.brand['700'],
35
+ 'text-primary': rsuiColors.grey['900'],
36
+ 'text-secondary': rsuiColors.grey['700'],
37
+ 'text-brand': rsuiColors.brand['900'],
38
+ 'text-success': rsuiColors.success['600'],
39
+ 'text-warning': rsuiColors.warning['600'],
40
+ 'text-error': rsuiColors.error['600'],
41
+ 'text-on-color': rsuiColors.white,
40
42
 
41
43
  /**
42
- * Section colors.
44
+ * Background colors.
43
45
  */
44
- 'section-background-default': rsuiColors.white,
45
- 'section-background-muted': rsuiColors.grey['50'],
46
- 'section-background-accent': rsuiColors.brand['50'],
47
- 'section-background-success': rsuiColors.success['50'],
48
- 'section-background-warning': rsuiColors.warning['50'],
49
- 'section-background-error': rsuiColors.error['50'],
50
-
51
- 'section-border-default': rsuiColors.grey['200'],
52
- 'section-border-muted': rsuiColors.grey['100'],
53
- 'section-border-accent': rsuiColors.brand['200'],
54
- 'section-border-success': rsuiColors.success['200'],
55
- 'section-border-warning': rsuiColors.warning['200'],
56
- 'section-border-error': rsuiColors.error['200'],
57
-
58
- 'section-text-default': rsuiColors.grey['900'],
59
- 'section-text-muted': rsuiColors.grey['700'],
60
- 'section-text-accent': rsuiColors.grey['900'],
61
- 'section-text-success': rsuiColors.grey['900'],
62
- 'section-text-warning': rsuiColors.grey['900'],
63
- 'section-text-error': rsuiColors.grey['900'],
46
+ 'background-primary': rsuiColors.white,
47
+ 'background-secondary': rsuiColors.grey['50'],
48
+ 'background-brand': rsuiColors.brand['50'],
49
+ 'background-success': rsuiColors.success['50'],
50
+ 'background-warning': rsuiColors.warning['50'],
51
+ 'background-error': rsuiColors.error['50'],
52
+ 'background-info': rsuiColors.blue['50'],
64
53
 
65
54
  /**
66
- * Message box colors.
55
+ * Border colors.
67
56
  */
68
- 'message-box-background-default': rsuiColors.white,
69
- 'message-box-background-info': rsuiColors.blue['50'],
70
- 'message-box-background-success': rsuiColors.success['50'],
71
- 'message-box-background-warning': rsuiColors.warning['50'],
72
- 'message-box-background-error': rsuiColors.error['50'],
57
+ 'border-primary': rsuiColors.grey['200'],
58
+ 'border-secondary': rsuiColors.grey['100'],
59
+ 'border-brand': rsuiColors.brand['200'],
60
+ 'border-success': rsuiColors.success['200'],
61
+ 'border-warning': rsuiColors.warning['200'],
62
+ 'border-error': rsuiColors.error['200'],
63
+ 'border-info': rsuiColors.blue['200'],
73
64
 
74
- 'message-box-border-default': rsuiColors.grey['200'],
75
- 'message-box-border-info': rsuiColors.blue['200'],
76
- 'message-box-border-success': rsuiColors.success['200'],
77
- 'message-box-border-warning': rsuiColors.warning['200'],
78
- 'message-box-border-error': rsuiColors.error['200'],
65
+ /**
66
+ * Button colors.
67
+ */
68
+ 'button-primary': rsuiColors.brand['600'],
69
+ 'button-primary-hover': rsuiColors.brand['700'],
70
+ 'button-primary-active': rsuiColors.brand['800'],
71
+
72
+ 'button-secondary': rsuiColors.grey['800'],
73
+ 'button-secondary-hover': rsuiColors.grey['700'],
74
+ 'button-secondary-active': rsuiColors.grey['600'],
75
+
76
+ 'button-tertiary': rsuiColors.brand['600'],
77
+ 'button-tertiary-hover': rsuiColors.brand['700'],
78
+ 'button-tertiary-active': rsuiColors.brand['800'],
79
+
80
+ 'button-danger-primary': rsuiColors.error['600'],
81
+ 'button-danger-secondary': rsuiColors.error['600'],
82
+ 'button-danger-hover': rsuiColors.error['700'],
83
+ 'button-danger-active': rsuiColors.error['800'],
84
+
85
+ 'button-separator': rsuiColors.grey['200'],
86
+ 'button-disabled': rsuiColors.grey['300'],
79
87
 
80
- 'message-box-text-default': rsuiColors.grey['900'],
81
- 'message-box-text-info': rsuiColors.blue['900'],
82
- 'message-box-text-success': rsuiColors.success['900'],
83
- 'message-box-text-warning': rsuiColors.warning['900'],
84
- 'message-box-text-error': rsuiColors.error['900'],
88
+ /**
89
+ * Legacy primary colors. Left here so we don't have to update all the components. Yet.
90
+ */
91
+ 'primary-foreground': rsuiColors.white,
92
+ 'primary-background': rsuiColors.brand['500'],
93
+ 'primary-foreground-hover': rsuiColors.white,
94
+ 'primary-background-hover': rsuiColors.brand['700'],
85
95
 
86
96
  },
87
97
  aspectRatio: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redseed/redseed-ui-tailwindcss",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "description": "RedSeed UI Tailwindcss",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/redseedtraining/redseed-ui",