thread-ui 0.7.14 → 0.8.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/README.md +11 -0
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -4
- package/dist/index.js.map +1 -1
- package/dist/styled-system/css/conditions..js +36 -0
- package/dist/styled-system/css/conditions.js +36 -0
- package/dist/styled-system/css/css..js +45 -0
- package/dist/styled-system/css/css.js +45 -0
- package/dist/styled-system/css/cva..js +87 -0
- package/dist/styled-system/css/cva.js +87 -0
- package/dist/styled-system/css/cx..js +15 -0
- package/dist/styled-system/css/cx.js +15 -0
- package/dist/styled-system/css/index..js +4 -0
- package/dist/styled-system/css/index.js +4 -0
- package/dist/styled-system/css/sva..js +46 -0
- package/dist/styled-system/css/sva.js +46 -0
- package/dist/styled-system/helpers..js +316 -0
- package/dist/styled-system/helpers.js +316 -0
- package/dist/styled-system/patterns/aspect-ratio..js +38 -0
- package/dist/styled-system/patterns/aspect-ratio.js +38 -0
- package/dist/styled-system/patterns/bleed..js +24 -0
- package/dist/styled-system/patterns/bleed.js +24 -0
- package/dist/styled-system/patterns/box..js +15 -0
- package/dist/styled-system/patterns/box.js +15 -0
- package/dist/styled-system/patterns/center..js +21 -0
- package/dist/styled-system/patterns/center.js +21 -0
- package/dist/styled-system/patterns/circle..js +25 -0
- package/dist/styled-system/patterns/circle.js +25 -0
- package/dist/styled-system/patterns/container..js +22 -0
- package/dist/styled-system/patterns/container.js +22 -0
- package/dist/styled-system/patterns/cq..js +21 -0
- package/dist/styled-system/patterns/cq.js +21 -0
- package/dist/styled-system/patterns/divider..js +25 -0
- package/dist/styled-system/patterns/divider.js +25 -0
- package/dist/styled-system/patterns/flex..js +26 -0
- package/dist/styled-system/patterns/flex.js +26 -0
- package/dist/styled-system/patterns/float..js +52 -0
- package/dist/styled-system/patterns/float.js +52 -0
- package/dist/styled-system/patterns/grid-item..js +25 -0
- package/dist/styled-system/patterns/grid-item.js +25 -0
- package/dist/styled-system/patterns/grid..js +27 -0
- package/dist/styled-system/patterns/grid.js +27 -0
- package/dist/styled-system/patterns/hstack..js +24 -0
- package/dist/styled-system/patterns/hstack.js +24 -0
- package/dist/styled-system/patterns/index..js +20 -0
- package/dist/styled-system/patterns/index.js +20 -0
- package/dist/styled-system/patterns/link-overlay..js +24 -0
- package/dist/styled-system/patterns/link-overlay.js +24 -0
- package/dist/styled-system/patterns/spacer..js +21 -0
- package/dist/styled-system/patterns/spacer.js +21 -0
- package/dist/styled-system/patterns/square..js +24 -0
- package/dist/styled-system/patterns/square.js +24 -0
- package/dist/styled-system/patterns/stack..js +24 -0
- package/dist/styled-system/patterns/stack.js +24 -0
- package/dist/styled-system/patterns/visually-hidden..js +18 -0
- package/dist/styled-system/patterns/visually-hidden.js +18 -0
- package/dist/styled-system/patterns/vstack..js +24 -0
- package/dist/styled-system/patterns/vstack.js +24 -0
- package/dist/styled-system/patterns/wrap..js +25 -0
- package/dist/styled-system/patterns/wrap.js +25 -0
- package/dist/styled-system/recipes/button..js +445 -0
- package/dist/styled-system/recipes/button.js +445 -0
- package/dist/styled-system/recipes/create-recipe..js +82 -0
- package/dist/styled-system/recipes/create-recipe.js +82 -0
- package/dist/styled-system/recipes/index..js +1 -0
- package/dist/styled-system/recipes/index.js +1 -0
- package/dist/styled-system/styles.css +1 -1
- package/dist/styled-system/tokens/index..js +2104 -0
- package/dist/styled-system/tokens/index.js +2104 -0
- package/dist/styles/theme.css +115 -0
- package/dist/styles/thread.css +3 -115
- package/package.json +3 -4
- /package/dist/styles/{styles.css → tailwind.css} +0 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* Thread Theme Implementation */
|
|
2
|
+
:root {
|
|
3
|
+
/* Generic Theme Elements */
|
|
4
|
+
--thread-primary-light: #5a7d6a;
|
|
5
|
+
--thread-primary-main: #3c5c49;
|
|
6
|
+
--thread-primary-dark: #2a4535;
|
|
7
|
+
--thread-secondary-light: #7a97b2;
|
|
8
|
+
--thread-secondary-main: #546f8d;
|
|
9
|
+
--thread-secondary-dark: #3b526a;
|
|
10
|
+
--thread-tertiary-light: #8c7389;
|
|
11
|
+
--thread-tertiary-main: #6a546a;
|
|
12
|
+
--thread-tertiary-dark: #4a3a4a;
|
|
13
|
+
--thread-white: #ffffff;
|
|
14
|
+
--thread-black: #121212;
|
|
15
|
+
--thread-gray-light: #e5e7eb;
|
|
16
|
+
--thread-gray-main: #9ca3af;
|
|
17
|
+
--thread-gray-dark: #4b5563;
|
|
18
|
+
--thread-success-light: #86efac;
|
|
19
|
+
--thread-success-main: #22c55e;
|
|
20
|
+
--thread-success-dark: #15803d;
|
|
21
|
+
--thread-warning-light: #fde68a;
|
|
22
|
+
--thread-warning-main: #f59e0b;
|
|
23
|
+
--thread-warning-dark: #b45309;
|
|
24
|
+
--thread-error-light: #fca5a5;
|
|
25
|
+
--thread-error-main: #ef4444;
|
|
26
|
+
--thread-error-dark: #b91c1c;
|
|
27
|
+
--thread-info-light: #93c5fd;
|
|
28
|
+
--thread-info-main: #3b82f6;
|
|
29
|
+
--thread-info-dark: #1d4ed8;
|
|
30
|
+
--thread-breakpoint-sm: 0;
|
|
31
|
+
--thread-breakpoint-md: 768;
|
|
32
|
+
--thread-breakpoint-lg: 1024;
|
|
33
|
+
--thread-breakpoint-xl: 1280;
|
|
34
|
+
--thread-breakpoint-xxl: 1536;
|
|
35
|
+
--thread-border-radius-sm: 0.25rem;
|
|
36
|
+
--thread-border-radius-md: 0.375rem;
|
|
37
|
+
--thread-border-radius-lg: 0.5rem;
|
|
38
|
+
--thread-border-size-sm: 0.5px;
|
|
39
|
+
--thread-border-size-md: 1px;
|
|
40
|
+
--thread-border-size-lg: 1.5px;
|
|
41
|
+
|
|
42
|
+
/* Light Mode Values */
|
|
43
|
+
--thread-background-light-mode: #ffffff;
|
|
44
|
+
--thread-surface-light-mode: #f9fafb;
|
|
45
|
+
--thread-elevated-light-mode: #f3f4f6;
|
|
46
|
+
--thread-structure-light-mode: #e2e8f0;
|
|
47
|
+
--thread-text-standard-light-mode: #1f2937;
|
|
48
|
+
--thread-text-secondary-light-mode: #4b5563;
|
|
49
|
+
--thread-text-disabled-light-mode: #9ca3af;
|
|
50
|
+
--thread-text-accent-light-mode: #3c5c49;
|
|
51
|
+
--thread-text-inverted-light-mode: #f9fafb;
|
|
52
|
+
|
|
53
|
+
/* Dark Mode Values */
|
|
54
|
+
--thread-background-dark-mode: #121212;
|
|
55
|
+
--thread-surface-dark-mode: #1e1e1e;
|
|
56
|
+
--thread-elevated-dark-mode: #2d2d2d;
|
|
57
|
+
--thread-structure-dark-mode: #4b5563;
|
|
58
|
+
--thread-text-standard-dark-mode: #f9fafb;
|
|
59
|
+
--thread-text-secondary-dark-mode: #4b5563;
|
|
60
|
+
--thread-text-disabled-dark-mode: #6b7280;
|
|
61
|
+
--thread-text-accent-dark-mode: #3c5c49;
|
|
62
|
+
--thread-text-inverted-dark-mode: #1f2937;
|
|
63
|
+
|
|
64
|
+
/* Apply Light Mode Colors */
|
|
65
|
+
--thread-background: var(--thread-background-light-mode);
|
|
66
|
+
--thread-surface: var(--thread-surface-light-mode);
|
|
67
|
+
--thread-elevated: var(--thread-elevated-light-mode);
|
|
68
|
+
--thread-structure: var(--thread-structure-light-mode);
|
|
69
|
+
--thread-text-standard: var(--thread-text-standard-light-mode);
|
|
70
|
+
--thread-text-secondary: var(--thread-text-secondary-light-mode);
|
|
71
|
+
--thread-text-disabled: var(--thread-text-disabled-light-mode);
|
|
72
|
+
--thread-text-accent: var(--thread-text-accent-light-mode);
|
|
73
|
+
--thread-text-inverted: var(--thread-text-inverted-light-mode);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:root[data-theme='light'] {
|
|
77
|
+
/* Light Mode Color Override */
|
|
78
|
+
--thread-background: var(--thread-background-light-mode);
|
|
79
|
+
--thread-surface: var(--thread-surface-light-mode);
|
|
80
|
+
--thread-elevated: var(--thread-elevated-light-mode);
|
|
81
|
+
--thread-structure: var(--thread-structure-light-mode);
|
|
82
|
+
--thread-text-standard: var(--thread-text-standard-light-mode);
|
|
83
|
+
--thread-text-secondary: var(--thread-text-secondary-light-mode);
|
|
84
|
+
--thread-text-disabled: var(--thread-text-disabled-light-mode);
|
|
85
|
+
--thread-text-accent: var(--thread-text-accent-light-mode);
|
|
86
|
+
--thread-text-inverted: var(--thread-text-inverted-light-mode);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:root[data-theme='dark'] {
|
|
90
|
+
/* Dark Mode Color Override */
|
|
91
|
+
--thread-background: var(--thread-background-dark-mode);
|
|
92
|
+
--thread-surface: var(--thread-surface-dark-mode);
|
|
93
|
+
--thread-elevated: var(--thread-elevated-dark-mode);
|
|
94
|
+
--thread-structure: var(--thread-structure-dark-mode);
|
|
95
|
+
--thread-text-standard: var(--thread-text-standard-dark-mode);
|
|
96
|
+
--thread-text-secondary: var(--thread-text-secondary-dark-mode);
|
|
97
|
+
--thread-text-disabled: var(--thread-text-disabled-dark-mode);
|
|
98
|
+
--thread-text-accent: var(--thread-text-accent-dark-mode);
|
|
99
|
+
--thread-text-inverted: var(--thread-text-inverted-dark-mode);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@media (prefers-color-scheme: dark) {
|
|
103
|
+
:root:not([data-theme]) {
|
|
104
|
+
/* Apply Dark Mode Colors */
|
|
105
|
+
--thread-background: var(--thread-background-dark-mode);
|
|
106
|
+
--thread-surface: var(--thread-surface-dark-mode);
|
|
107
|
+
--thread-elevated: var(--thread-elevated-dark-mode);
|
|
108
|
+
--thread-structure: var(--thread-structure-dark-mode);
|
|
109
|
+
--thread-text-standard: var(--thread-text-standard-dark-mode);
|
|
110
|
+
--thread-text-secondary: var(--thread-text-secondary-dark-mode);
|
|
111
|
+
--thread-text-disabled: var(--thread-text-disabled-dark-mode);
|
|
112
|
+
--thread-text-accent: var(--thread-text-accent-dark-mode);
|
|
113
|
+
--thread-text-inverted: var(--thread-text-inverted-dark-mode);
|
|
114
|
+
}
|
|
115
|
+
}
|
package/dist/styles/thread.css
CHANGED
|
@@ -1,115 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
--thread-primary-light: #5a7d6a;
|
|
5
|
-
--thread-primary-main: #3c5c49;
|
|
6
|
-
--thread-primary-dark: #2a4535;
|
|
7
|
-
--thread-secondary-light: #7a97b2;
|
|
8
|
-
--thread-secondary-main: #546f8d;
|
|
9
|
-
--thread-secondary-dark: #3b526a;
|
|
10
|
-
--thread-tertiary-light: #8c7389;
|
|
11
|
-
--thread-tertiary-main: #6a546a;
|
|
12
|
-
--thread-tertiary-dark: #4a3a4a;
|
|
13
|
-
--thread-white: #ffffff;
|
|
14
|
-
--thread-black: #121212;
|
|
15
|
-
--thread-gray-light: #e5e7eb;
|
|
16
|
-
--thread-gray-main: #9ca3af;
|
|
17
|
-
--thread-gray-dark: #4b5563;
|
|
18
|
-
--thread-success-light: #86efac;
|
|
19
|
-
--thread-success-main: #22c55e;
|
|
20
|
-
--thread-success-dark: #15803d;
|
|
21
|
-
--thread-warning-light: #fde68a;
|
|
22
|
-
--thread-warning-main: #f59e0b;
|
|
23
|
-
--thread-warning-dark: #b45309;
|
|
24
|
-
--thread-error-light: #fca5a5;
|
|
25
|
-
--thread-error-main: #ef4444;
|
|
26
|
-
--thread-error-dark: #b91c1c;
|
|
27
|
-
--thread-info-light: #93c5fd;
|
|
28
|
-
--thread-info-main: #3b82f6;
|
|
29
|
-
--thread-info-dark: #1d4ed8;
|
|
30
|
-
--thread-breakpoint-sm: 0;
|
|
31
|
-
--thread-breakpoint-md: 768;
|
|
32
|
-
--thread-breakpoint-lg: 1024;
|
|
33
|
-
--thread-breakpoint-xl: 1280;
|
|
34
|
-
--thread-breakpoint-xxl: 1536;
|
|
35
|
-
--thread-border-radius-sm: 0.25rem;
|
|
36
|
-
--thread-border-radius-md: 0.375rem;
|
|
37
|
-
--thread-border-radius-lg: 0.5rem;
|
|
38
|
-
--thread-border-size-sm: 0.5px;
|
|
39
|
-
--thread-border-size-md: 1px;
|
|
40
|
-
--thread-border-size-lg: 1.5px;
|
|
41
|
-
|
|
42
|
-
/* Light Mode Values */
|
|
43
|
-
--thread-background-light-mode: #ffffff;
|
|
44
|
-
--thread-surface-light-mode: #f9fafb;
|
|
45
|
-
--thread-elevated-light-mode: #f3f4f6;
|
|
46
|
-
--thread-structure-light-mode: #e2e8f0;
|
|
47
|
-
--thread-text-standard-light-mode: #1f2937;
|
|
48
|
-
--thread-text-secondary-light-mode: #4b5563;
|
|
49
|
-
--thread-text-disabled-light-mode: #9ca3af;
|
|
50
|
-
--thread-text-accent-light-mode: #3c5c49;
|
|
51
|
-
--thread-text-inverted-light-mode: #f9fafb;
|
|
52
|
-
|
|
53
|
-
/* Dark Mode Values */
|
|
54
|
-
--thread-background-dark-mode: #121212;
|
|
55
|
-
--thread-surface-dark-mode: #1e1e1e;
|
|
56
|
-
--thread-elevated-dark-mode: #2d2d2d;
|
|
57
|
-
--thread-structure-dark-mode: #4b5563;
|
|
58
|
-
--thread-text-standard-dark-mode: #f9fafb;
|
|
59
|
-
--thread-text-secondary-dark-mode: #4b5563;
|
|
60
|
-
--thread-text-disabled-dark-mode: #6b7280;
|
|
61
|
-
--thread-text-accent-dark-mode: #3c5c49;
|
|
62
|
-
--thread-text-inverted-dark-mode: #1f2937;
|
|
63
|
-
|
|
64
|
-
/* Apply Light Mode Colors */
|
|
65
|
-
--thread-background: var(--thread-background-light-mode);
|
|
66
|
-
--thread-surface: var(--thread-surface-light-mode);
|
|
67
|
-
--thread-elevated: var(--thread-elevated-light-mode);
|
|
68
|
-
--thread-structure: var(--thread-structure-light-mode);
|
|
69
|
-
--thread-text-standard: var(--thread-text-standard-light-mode);
|
|
70
|
-
--thread-text-secondary: var(--thread-text-secondary-light-mode);
|
|
71
|
-
--thread-text-disabled: var(--thread-text-disabled-light-mode);
|
|
72
|
-
--thread-text-accent: var(--thread-text-accent-light-mode);
|
|
73
|
-
--thread-text-inverted: var(--thread-text-inverted-light-mode);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
:root[data-theme='light'] {
|
|
77
|
-
/* Light Mode Color Override */
|
|
78
|
-
--thread-background: var(--thread-background-light-mode);
|
|
79
|
-
--thread-surface: var(--thread-surface-light-mode);
|
|
80
|
-
--thread-elevated: var(--thread-elevated-light-mode);
|
|
81
|
-
--thread-structure: var(--thread-structure-light-mode);
|
|
82
|
-
--thread-text-standard: var(--thread-text-standard-light-mode);
|
|
83
|
-
--thread-text-secondary: var(--thread-text-secondary-light-mode);
|
|
84
|
-
--thread-text-disabled: var(--thread-text-disabled-light-mode);
|
|
85
|
-
--thread-text-accent: var(--thread-text-accent-light-mode);
|
|
86
|
-
--thread-text-inverted: var(--thread-text-inverted-light-mode);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
:root[data-theme='dark'] {
|
|
90
|
-
/* Dark Mode Color Override */
|
|
91
|
-
--thread-background: var(--thread-background-dark-mode);
|
|
92
|
-
--thread-surface: var(--thread-surface-dark-mode);
|
|
93
|
-
--thread-elevated: var(--thread-elevated-dark-mode);
|
|
94
|
-
--thread-structure: var(--thread-structure-dark-mode);
|
|
95
|
-
--thread-text-standard: var(--thread-text-standard-dark-mode);
|
|
96
|
-
--thread-text-secondary: var(--thread-text-secondary-dark-mode);
|
|
97
|
-
--thread-text-disabled: var(--thread-text-disabled-dark-mode);
|
|
98
|
-
--thread-text-accent: var(--thread-text-accent-dark-mode);
|
|
99
|
-
--thread-text-inverted: var(--thread-text-inverted-dark-mode);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
@media (prefers-color-scheme: dark) {
|
|
103
|
-
:root:not([data-theme]) {
|
|
104
|
-
/* Apply Dark Mode Colors */
|
|
105
|
-
--thread-background: var(--thread-background-dark-mode);
|
|
106
|
-
--thread-surface: var(--thread-surface-dark-mode);
|
|
107
|
-
--thread-elevated: var(--thread-elevated-dark-mode);
|
|
108
|
-
--thread-structure: var(--thread-structure-dark-mode);
|
|
109
|
-
--thread-text-standard: var(--thread-text-standard-dark-mode);
|
|
110
|
-
--thread-text-secondary: var(--thread-text-secondary-dark-mode);
|
|
111
|
-
--thread-text-disabled: var(--thread-text-disabled-dark-mode);
|
|
112
|
-
--thread-text-accent: var(--thread-text-accent-dark-mode);
|
|
113
|
-
--thread-text-inverted: var(--thread-text-inverted-dark-mode);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
1
|
+
@import "./theme.css";
|
|
2
|
+
@import "./panda.css";
|
|
3
|
+
@import "./tailwind.css";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "thread-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"author": "Andrew Fisher",
|
|
5
5
|
"description": "UI Library for React Applications.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,15 +20,14 @@
|
|
|
20
20
|
"main": "dist/index.js",
|
|
21
21
|
"module": "dist/index.js",
|
|
22
22
|
"types": "dist/index.d.ts",
|
|
23
|
+
"type": "module",
|
|
23
24
|
"exports": {
|
|
24
25
|
".": {
|
|
25
26
|
"types": "./dist/index.d.ts",
|
|
26
27
|
"import": "./dist/index.js",
|
|
27
28
|
"default": "./dist/index.js"
|
|
28
29
|
},
|
|
29
|
-
"./
|
|
30
|
-
"./dist/styled-system/patterns": "./dist/styled-system/patterns/index.js",
|
|
31
|
-
"./dist/styled-system/recipes": "./dist/styled-system/recipes/index.js"
|
|
30
|
+
"./thread.css": "./dist/styles/thread.css"
|
|
32
31
|
},
|
|
33
32
|
"sideEffects": [
|
|
34
33
|
"**/*.css"
|
|
File without changes
|