@asgardex/asgardex-theme 0.1.3 → 0.2.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.
Files changed (2) hide show
  1. package/lib/theme.css +64 -0
  2. package/package.json +12 -2
package/lib/theme.css ADDED
@@ -0,0 +1,64 @@
1
+ :root {
2
+ /* Brand colors (same in light/dark) */
3
+ --color-turquoise: #0068f7;
4
+ --color-cyanblue: #1fb6ff;
5
+ --color-red: #ff4954;
6
+ --color-success: #23dcc8;
7
+ --color-warning0: #f3ba2f;
8
+ --color-boost: #ff33af;
9
+ --color-secured: #b224ec;
10
+
11
+ /* Text colors - light theme */
12
+ --color-text0: #303942;
13
+ --color-text1: #101921;
14
+ --color-text2: #616b75;
15
+ --color-text3: #fff;
16
+
17
+ /* Background colors - light theme */
18
+ --color-bg0: #fff;
19
+ --color-bg1: #fff;
20
+ --color-bg2: #f3f4f4;
21
+ --color-bg3: #f3f4f4;
22
+ --color-bg-hover: #ededed;
23
+
24
+ /* Error colors - light theme */
25
+ --color-error0: #ff4954;
26
+ --color-error1: #fb000f;
27
+ --color-error2: #fffbfc;
28
+
29
+ /* Gray colors - light theme */
30
+ --color-gray0: #daddee;
31
+ --color-gray1: #89939d;
32
+ --color-gray2: #616b75;
33
+
34
+ /* Shadows - light theme */
35
+ --shadow-full: 0 0 15px #89939d;
36
+ }
37
+
38
+ .dark {
39
+ /* Text colors - dark theme */
40
+ --color-text0: #fff;
41
+ --color-text1: #f3f4f4;
42
+ --color-text2: #d1d5da;
43
+ --color-text3: #fff;
44
+
45
+ /* Background colors - dark theme */
46
+ --color-bg0: #111315;
47
+ --color-bg1: #111315;
48
+ --color-bg2: #303942;
49
+ --color-bg3: #000;
50
+ --color-bg-hover: #252c33;
51
+
52
+ /* Error colors - dark theme */
53
+ --color-error0: #ff4954;
54
+ --color-error1: #fb000f;
55
+ --color-error2: #fffbfc;
56
+
57
+ /* Gray colors - dark theme */
58
+ --color-gray0: #303942;
59
+ --color-gray1: #616b75;
60
+ --color-gray2: #89939d;
61
+
62
+ /* Shadows - dark theme */
63
+ --shadow-full: 0 0 15px #616b75;
64
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardex/asgardex-theme",
3
- "version": "0.1.3",
3
+ "version": "0.2.0",
4
4
  "description": "ASGARDEX global theme configuration",
5
5
  "keywords": [
6
6
  "THORChain",
@@ -13,6 +13,16 @@
13
13
  "main": "lib/index.js",
14
14
  "module": "lib/index.esm.js",
15
15
  "typings": "lib/index.d.ts",
16
+ "style": "lib/theme.css",
17
+ "exports": {
18
+ ".": {
19
+ "import": "./lib/index.esm.js",
20
+ "require": "./lib/index.js",
21
+ "types": "./lib/index.d.ts"
22
+ },
23
+ "./css": "./lib/theme.css",
24
+ "./theme.css": "./lib/theme.css"
25
+ },
16
26
  "directories": {
17
27
  "lib": "lib",
18
28
  "test": "__tests__"
@@ -26,7 +36,7 @@
26
36
  },
27
37
  "scripts": {
28
38
  "clean": "rimraf lib/**",
29
- "build": "rollup -c",
39
+ "build": "rollup -c && cp src/theme.css lib/theme.css",
30
40
  "test": "echo 'no test specified'",
31
41
  "lint": "eslint \"{src,__tests__}/**/*.ts\" --fix",
32
42
  "prepublishOnly": "yarn build"