@hyvor/design 2.1.20-beta.1 → 2.1.20-beta.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.
package/dist/index.css CHANGED
@@ -1,4 +1,89 @@
1
- /* font */
1
+ /* <variables> */
2
+ :root {
3
+ /**
4
+ * Each app should have its own accent colors
5
+ * --accent should be usable with light text
6
+ * --accent-light and --accent-lightest should be usable with dark text
7
+ */
8
+ --accent: #000;
9
+ --accent-light: #bdbdbd;
10
+ --accent-lightest: #fafafa;
11
+ --accent-light-mid: #818181;
12
+ --accent-text: #fff;
13
+
14
+ --border: #e1e1e1;
15
+
16
+ --text: #000;
17
+ --text-light: #777;
18
+ --text-white: #fff;
19
+
20
+ /*
21
+ * Generally used colors
22
+ * In most cases, no need to extend these colors
23
+ */
24
+ --green-light: #cadfca;
25
+ --green: #4b874b;
26
+ --green-dark: #335c33;
27
+
28
+ --red-dark: #ab2525;
29
+ --red: #c05959;
30
+ --red-light: #ffdfdf;
31
+
32
+ --blue-dark: #334b81;
33
+ --blue: #5875b9;
34
+ --blue-light: #dae5ff;
35
+
36
+ --orange-dark: #8b5b04;
37
+ --orange: #a98526;
38
+ --orange-light: #efe3b4;
39
+
40
+ --gray-light: #ddd;
41
+ --gray: #999;
42
+ --gray-dark: #555;
43
+
44
+ --hover: #fafafa;
45
+ --hover-dark: #f0f0f0;
46
+
47
+ --link: #1d85d2;
48
+
49
+ --input: #f3f3f3;
50
+ --input-hover: #ccc;
51
+ /* checkbox/radio */
52
+
53
+ --box-shadow: 0 0 30px #0000000d;
54
+ --box-shadow-light: 0 0 10px 6px rgba(0, 0, 0, 0.06);
55
+ --box-radius: 20px;
56
+ --box-background: #fff;
57
+
58
+ --line-height-content: 28px;
59
+ --header-height: 55px;
60
+
61
+ --font-sans-serif: 'Readex Pro', Avenir, Inter, Helvetica, Arial, sans-serif;
62
+ --font-serif: 'Source Serif 4', serif;
63
+ }
64
+
65
+ :root.dark {
66
+ --background: #000;
67
+
68
+ --text: #fff;
69
+ --text-light: #999;
70
+ --box-background: #1c1c1c;
71
+
72
+ --accent-light: #555;
73
+ --accent-lightest: #2d2d2d;
74
+
75
+ --border: #4a4a4a;
76
+ --link: #7cb6e1;
77
+ --hover: #232323;
78
+
79
+ --input: #333;
80
+ }
81
+ /* </variables> */
82
+
83
+
84
+ /**
85
+ * Global styles
86
+ */
2
87
  :root {
3
88
  font-family: var(--font-sans-serif);
4
89
  font-size: 16px;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import './variables.css';
2
1
  import './index.css';
3
2
  import '@fontsource/readex-pro/400.css';
4
3
  import '@fontsource/readex-pro/600.css';
package/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
- import './variables.css';
2
1
  import './index.css';
3
2
  import '@fontsource/readex-pro/400.css';
4
3
  import '@fontsource/readex-pro/600.css';
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@hyvor/design",
3
- "version": "2.1.20-beta.1",
3
+ "version": "2.1.20-beta.2",
4
4
  "license": "MIT",
5
5
  "private": false,
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "./dist/index.js",
8
+ "./dist/index.css",
9
+ "**/*.css"
10
+ ],
7
11
  "repository": {
8
12
  "url": "https://github.com/hyvor/design"
9
13
  },
@@ -1,80 +0,0 @@
1
- /* variables */
2
- :root {
3
- /**
4
- * Each app should have its own accent colors
5
- * --accent should be usable with light text
6
- * --accent-light and --accent-lightest should be usable with dark text
7
- */
8
- --accent: #000;
9
- --accent-light: #bdbdbd;
10
- --accent-lightest: #fafafa;
11
- --accent-light-mid: #818181;
12
- --accent-text: #fff;
13
-
14
- --border: #e1e1e1;
15
-
16
- --text: #000;
17
- --text-light: #777;
18
- --text-white: #fff;
19
-
20
- /*
21
- * Generally used colors
22
- * In most cases, no need to extend these colors
23
- */
24
- --green-light: #cadfca;
25
- --green: #4b874b;
26
- --green-dark: #335c33;
27
-
28
- --red-dark: #ab2525;
29
- --red: #c05959;
30
- --red-light: #ffdfdf;
31
-
32
- --blue-dark: #334b81;
33
- --blue: #5875b9;
34
- --blue-light: #dae5ff;
35
-
36
- --orange-dark: #8b5b04;
37
- --orange: #a98526;
38
- --orange-light: #efe3b4;
39
-
40
- --gray-light: #ddd;
41
- --gray: #999;
42
- --gray-dark: #555;
43
-
44
- --hover: #fafafa;
45
- --hover-dark: #f0f0f0;
46
-
47
- --link: #1d85d2;
48
-
49
- --input: #f3f3f3;
50
- --input-hover: #ccc;
51
- /* checkbox/radio */
52
-
53
- --box-shadow: 0 0 30px #0000000d;
54
- --box-shadow-light: 0 0 10px 6px rgba(0, 0, 0, 0.06);
55
- --box-radius: 20px;
56
- --box-background: #fff;
57
-
58
- --line-height-content: 28px;
59
- --header-height: 55px;
60
-
61
- --font-sans-serif: 'Readex Pro', Avenir, Inter, Helvetica, Arial, sans-serif;
62
- --font-serif: 'Source Serif 4', serif;
63
- }
64
-
65
- :root.dark {
66
- --background: #000;
67
-
68
- --text: #fff;
69
- --text-light: #999;
70
- --box-background: #1c1c1c;
71
-
72
- --accent-light: #555;
73
- --accent-lightest: #2d2d2d;
74
-
75
- --border: #4a4a4a;
76
- --link: #7cb6e1;
77
- --hover: #232323;
78
-
79
- --input: #333;
80
- }