@redseed/redseed-ui-tailwindcss 5.1.1 → 5.1.3
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/index.js +56 -43
- 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
|
-
*
|
|
33
|
+
* Text colors.
|
|
35
34
|
*/
|
|
36
|
-
'primary
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
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
|
-
*
|
|
44
|
+
* Background colors.
|
|
43
45
|
*/
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'
|
|
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
|
-
*
|
|
55
|
+
* Border colors.
|
|
67
56
|
*/
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
'
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
'
|
|
78
|
-
'
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
'
|
|
84
|
-
'
|
|
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: {
|
|
@@ -91,6 +101,9 @@ module.exports = {
|
|
|
91
101
|
'64/25': '64 / 25'
|
|
92
102
|
},
|
|
93
103
|
spacing: {
|
|
104
|
+
'spacing-xs': '0.25rem', /* 4px */
|
|
105
|
+
'spacing-md': '0.5rem', /* 8px */
|
|
106
|
+
'spacing-lg': '0.75rem', /* 12px */
|
|
94
107
|
'4.5': '1.125rem', /* 18px */
|
|
95
108
|
},
|
|
96
109
|
minWidth: {
|