@redseed/redseed-ui-tailwindcss 1.4.1 → 2.0.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.
- package/colors.js +80 -0
- package/index.js +36 -14
- package/package.json +4 -4
package/colors.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict"
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
grey: {
|
|
5
|
+
100: "#FAFAFA",
|
|
6
|
+
150: "#F5F5F5",
|
|
7
|
+
200: "#EAEAEB",
|
|
8
|
+
300: "#D4D6D8",
|
|
9
|
+
400: "#BCBFC2",
|
|
10
|
+
500: "#A3A7AB",
|
|
11
|
+
600: "#888E93",
|
|
12
|
+
700: "#6C737A",
|
|
13
|
+
800: "#505860",
|
|
14
|
+
900: "#323C45",
|
|
15
|
+
},
|
|
16
|
+
red: {
|
|
17
|
+
100: "#F5C6C6",
|
|
18
|
+
200: "#E98888",
|
|
19
|
+
300: "#DF5959",
|
|
20
|
+
400: "#D52424",
|
|
21
|
+
500: "#D11111",
|
|
22
|
+
600: "#C11010",
|
|
23
|
+
700: "#AA0E0E",
|
|
24
|
+
800: "#8F0C0C",
|
|
25
|
+
900: "#730A0A",
|
|
26
|
+
},
|
|
27
|
+
coach: {
|
|
28
|
+
500: "#4495AB",
|
|
29
|
+
},
|
|
30
|
+
lms: {
|
|
31
|
+
500: "#81A094"
|
|
32
|
+
},
|
|
33
|
+
build: {
|
|
34
|
+
500: "#506FAC",
|
|
35
|
+
},
|
|
36
|
+
info: {
|
|
37
|
+
100: "#D4E9FD",
|
|
38
|
+
200: "#B0D7FB",
|
|
39
|
+
300: "#81BFF8",
|
|
40
|
+
400: "#59ABF6",
|
|
41
|
+
500: "#4BA4F5",
|
|
42
|
+
600: "#4597E2",
|
|
43
|
+
700: "#3D85C7",
|
|
44
|
+
800: "#3370A8",
|
|
45
|
+
900: "#295A87",
|
|
46
|
+
},
|
|
47
|
+
success: {
|
|
48
|
+
100: "#E1E9D2",
|
|
49
|
+
200: "#C8D6AC",
|
|
50
|
+
300: "#A7BD7B",
|
|
51
|
+
400: "#8BA851",
|
|
52
|
+
500: "#81A142",
|
|
53
|
+
600: "#77943D",
|
|
54
|
+
700: "#698336",
|
|
55
|
+
800: "#596E2E",
|
|
56
|
+
900: "#485825",
|
|
57
|
+
},
|
|
58
|
+
warning: {
|
|
59
|
+
100: "#FBEDD4",
|
|
60
|
+
200: "#F7DFB1",
|
|
61
|
+
300: "#F1CC82",
|
|
62
|
+
400: "#EDBB5A",
|
|
63
|
+
500: "#ECB54C",
|
|
64
|
+
600: "#D9A746",
|
|
65
|
+
700: "#BF933E",
|
|
66
|
+
800: "#A17C34",
|
|
67
|
+
900: "#81642A",
|
|
68
|
+
},
|
|
69
|
+
danger: {
|
|
70
|
+
100: "#FADFD3",
|
|
71
|
+
200: "#F6C4AF",
|
|
72
|
+
300: "#F1A17F",
|
|
73
|
+
400: "#EC8456",
|
|
74
|
+
500: "#EA7948",
|
|
75
|
+
600: "#D87042",
|
|
76
|
+
700: "#BF633A",
|
|
77
|
+
800: "#A15331",
|
|
78
|
+
900: "#814327",
|
|
79
|
+
},
|
|
80
|
+
}
|
package/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
const defaultTheme = require('tailwindcss/defaultTheme')
|
|
1
|
+
const defaultTheme = require('tailwindcss/defaultTheme')
|
|
2
|
+
const defaultColors = require('tailwindcss/colors')
|
|
3
|
+
const rsuiColors = require('./colors')
|
|
2
4
|
|
|
3
5
|
module.exports = {
|
|
4
6
|
theme: {
|
|
@@ -23,24 +25,44 @@ module.exports = {
|
|
|
23
25
|
'3xl': '1920px',
|
|
24
26
|
},
|
|
25
27
|
extend: {
|
|
28
|
+
colors: {
|
|
29
|
+
// RedSeed UI colors. Should not be extended.
|
|
30
|
+
'rsui': {
|
|
31
|
+
...rsuiColors,
|
|
32
|
+
'default': rsuiColors.grey['900'],
|
|
33
|
+
'medium': rsuiColors.grey['700'],
|
|
34
|
+
'light': rsuiColors.grey['400'],
|
|
35
|
+
},
|
|
36
|
+
// RedSeed brand colors. Should not be extended.
|
|
37
|
+
'brand': {
|
|
38
|
+
'coach': rsuiColors.coach['500'],
|
|
39
|
+
'lms': rsuiColors.lms['500'],
|
|
40
|
+
'build': rsuiColors.build['500'],
|
|
41
|
+
},
|
|
42
|
+
// Stateful colors. Caution with extending these may cause confusion.
|
|
43
|
+
'info': rsuiColors.info['500'],
|
|
44
|
+
'info-content': defaultColors.white,
|
|
45
|
+
'success': rsuiColors.success['500'],
|
|
46
|
+
'success-content': defaultColors.white,
|
|
47
|
+
'warning': rsuiColors.warning['500'],
|
|
48
|
+
'warning-content': defaultColors.white,
|
|
49
|
+
'danger': rsuiColors.danger['500'],
|
|
50
|
+
'danger-content': defaultColors.white,
|
|
51
|
+
// Functional colors. Extend these to be consistent with the application theme.
|
|
52
|
+
'primary': rsuiColors.red['500'],
|
|
53
|
+
'primary-content': defaultColors.white,
|
|
54
|
+
'secondary': rsuiColors.grey['500'],
|
|
55
|
+
'secondary-content': defaultColors.white,
|
|
56
|
+
'tertiary': defaultColors.white,
|
|
57
|
+
'tertiary-content': rsuiColors.grey['900'],
|
|
58
|
+
'segment': defaultColors.white,
|
|
59
|
+
'segment-content': rsuiColors.grey['900'],
|
|
60
|
+
},
|
|
26
61
|
aspectRatio: {
|
|
27
62
|
'4/3': '4 / 3',
|
|
28
63
|
'3/1': '3 / 1',
|
|
29
64
|
'9/16': '9 / 16',
|
|
30
65
|
},
|
|
31
|
-
colors: {
|
|
32
|
-
'default-dark': '#323C45',
|
|
33
|
-
'medium': '#6C737A',
|
|
34
|
-
'primary': '#D11111',
|
|
35
|
-
'primary-dark': '#C11010',
|
|
36
|
-
'secondary': '#A3A7AB',
|
|
37
|
-
'secondary-dark': '#888E93',
|
|
38
|
-
'tertiary': '#BCBFC2',
|
|
39
|
-
'tertiary-dark': '#888E93',
|
|
40
|
-
'danger': '#D11111',
|
|
41
|
-
'danger-dark': '#C11010',
|
|
42
|
-
'success': '#81A142',
|
|
43
|
-
},
|
|
44
66
|
minWidth: {
|
|
45
67
|
'px': '1px',
|
|
46
68
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redseed/redseed-ui-tailwindcss",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "RedSeed UI Tailwindcss",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"autoprefixer": "^10.4.19",
|
|
14
|
-
"postcss": "^8.4.
|
|
14
|
+
"postcss": "^8.4.40",
|
|
15
15
|
"postcss-import": "^16.1.0",
|
|
16
|
-
"sass": "^1.
|
|
17
|
-
"tailwindcss": "^3.4.
|
|
16
|
+
"sass": "^1.77.8",
|
|
17
|
+
"tailwindcss": "^3.4.7"
|
|
18
18
|
}
|
|
19
19
|
}
|