@ttoss/theme 2.0.1 → 2.1.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/dist/BruttalIcons-f07qZPrW.d.ts +8 -0
- package/dist/esm/chunk-4E3W4EOZ.js +1479 -0
- package/dist/esm/chunk-SNDE7LRY.js +9 -0
- package/dist/esm/index.js +2 -7
- package/dist/esm/themes/Bruttal/Bruttal.js +2 -1460
- package/dist/esm/themes/Oca/Oca.js +273 -0
- package/dist/themes/Bruttal/Bruttal.d.ts +3 -7
- package/dist/themes/Oca/Oca.d.ts +9 -0
- package/package.json +7 -3
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
|
+
import { createTheme } from "../../chunk-SNDE7LRY.js";
|
|
3
|
+
import { BrutalIcons, BruttalTheme } from "../../chunk-4E3W4EOZ.js";
|
|
4
|
+
import { defaultTheme } from "../../chunk-ZYSSWTLH.js";
|
|
5
|
+
|
|
6
|
+
// src/themes/Oca/OcaFonts.ts
|
|
7
|
+
var OcaFonts = ["https://fonts.googleapis.com/css2?family=Outfit:wght@700&display=swap", "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;700&display=swap"];
|
|
8
|
+
|
|
9
|
+
// src/themes/Oca/OcaTheme.ts
|
|
10
|
+
var defaultBorders = defaultTheme.borders;
|
|
11
|
+
var OcaTheme = createTheme({
|
|
12
|
+
colors: {
|
|
13
|
+
navigation: {
|
|
14
|
+
background: {
|
|
15
|
+
primary: {
|
|
16
|
+
default: "#FFFFFF"
|
|
17
|
+
},
|
|
18
|
+
muted: {
|
|
19
|
+
default: "#F3F4F6"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
text: {
|
|
23
|
+
primary: {
|
|
24
|
+
default: "#111827"
|
|
25
|
+
},
|
|
26
|
+
secondary: {
|
|
27
|
+
default: "#465A69"
|
|
28
|
+
},
|
|
29
|
+
accent: {
|
|
30
|
+
default: "#03FF7A"
|
|
31
|
+
},
|
|
32
|
+
muted: {
|
|
33
|
+
default: "#6B7280"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
border: {
|
|
37
|
+
primary: {
|
|
38
|
+
default: "#E5E7EB"
|
|
39
|
+
},
|
|
40
|
+
muted: {
|
|
41
|
+
default: "#9CA3AF"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
input: {
|
|
46
|
+
border: {
|
|
47
|
+
muted: {
|
|
48
|
+
default: "#E5E7EB"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
background: {
|
|
52
|
+
primary: {
|
|
53
|
+
default: "#FFFFFF"
|
|
54
|
+
},
|
|
55
|
+
secondary: {
|
|
56
|
+
default: "#465A69"
|
|
57
|
+
},
|
|
58
|
+
accent: {
|
|
59
|
+
default: "#03FF7A"
|
|
60
|
+
},
|
|
61
|
+
muted: {
|
|
62
|
+
default: "#F3F4F6",
|
|
63
|
+
active: "#F3F4F6",
|
|
64
|
+
disabled: "#9CA3AF"
|
|
65
|
+
},
|
|
66
|
+
negative: {
|
|
67
|
+
default: "red"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
text: {
|
|
71
|
+
primary: {
|
|
72
|
+
default: "#111827"
|
|
73
|
+
},
|
|
74
|
+
accent: {
|
|
75
|
+
default: "#03FF7A"
|
|
76
|
+
},
|
|
77
|
+
secondary: {
|
|
78
|
+
default: "#465A69"
|
|
79
|
+
},
|
|
80
|
+
muted: {
|
|
81
|
+
default: "#6B7280",
|
|
82
|
+
active: "#6B7280"
|
|
83
|
+
},
|
|
84
|
+
negative: {
|
|
85
|
+
default: "red"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
action: {
|
|
90
|
+
background: {
|
|
91
|
+
primary: {
|
|
92
|
+
default: "#111827",
|
|
93
|
+
active: "#111827"
|
|
94
|
+
},
|
|
95
|
+
secondary: {
|
|
96
|
+
default: "#465A69"
|
|
97
|
+
},
|
|
98
|
+
accent: {
|
|
99
|
+
default: "#03FF7A",
|
|
100
|
+
active: "#03FF7A"
|
|
101
|
+
},
|
|
102
|
+
caution: {
|
|
103
|
+
default: "orange"
|
|
104
|
+
},
|
|
105
|
+
muted: {
|
|
106
|
+
default: "#F3F4F6"
|
|
107
|
+
},
|
|
108
|
+
negative: {
|
|
109
|
+
default: "red"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
text: {
|
|
113
|
+
primary: {
|
|
114
|
+
default: "#FFFFFF"
|
|
115
|
+
},
|
|
116
|
+
accent: {
|
|
117
|
+
default: "#000000"
|
|
118
|
+
},
|
|
119
|
+
secondary: {
|
|
120
|
+
default: "#FFFFFF"
|
|
121
|
+
},
|
|
122
|
+
muted: {
|
|
123
|
+
default: "#6B7280"
|
|
124
|
+
},
|
|
125
|
+
caution: {
|
|
126
|
+
default: "white"
|
|
127
|
+
},
|
|
128
|
+
negative: {
|
|
129
|
+
default: "white"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
display: {
|
|
134
|
+
background: {
|
|
135
|
+
primary: {
|
|
136
|
+
default: "#FFFFFF"
|
|
137
|
+
},
|
|
138
|
+
secondary: {
|
|
139
|
+
default: "#FFFFFF"
|
|
140
|
+
},
|
|
141
|
+
muted: {
|
|
142
|
+
default: "#F3F4F6"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
text: {
|
|
146
|
+
primary: {
|
|
147
|
+
default: "#111827"
|
|
148
|
+
},
|
|
149
|
+
secondary: {
|
|
150
|
+
default: "#465A69"
|
|
151
|
+
},
|
|
152
|
+
accent: {
|
|
153
|
+
default: "#03FF7A"
|
|
154
|
+
},
|
|
155
|
+
muted: {
|
|
156
|
+
default: "#6B7280",
|
|
157
|
+
active: "#6B7280"
|
|
158
|
+
},
|
|
159
|
+
negative: {
|
|
160
|
+
default: "red"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
border: {
|
|
164
|
+
primary: {
|
|
165
|
+
default: "#111827"
|
|
166
|
+
},
|
|
167
|
+
secondary: {
|
|
168
|
+
default: "#465A69"
|
|
169
|
+
},
|
|
170
|
+
muted: {
|
|
171
|
+
default: "#E5E7EB",
|
|
172
|
+
active: "#E5E7EB"
|
|
173
|
+
},
|
|
174
|
+
negative: {
|
|
175
|
+
default: "red"
|
|
176
|
+
},
|
|
177
|
+
accent: {
|
|
178
|
+
default: "#03FF7A"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
feedback: {
|
|
183
|
+
text: {
|
|
184
|
+
secondary: {
|
|
185
|
+
default: "#465A69"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
border: {
|
|
189
|
+
primary: {
|
|
190
|
+
default: "#111827"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
fonts: {
|
|
196
|
+
heading: '"Outfit", sans-serif',
|
|
197
|
+
body: '"Source Sans Pro", sans-serif',
|
|
198
|
+
mono: '"Inconsolata", sans-serif'
|
|
199
|
+
},
|
|
200
|
+
borders: {
|
|
201
|
+
none: defaultBorders.none,
|
|
202
|
+
xs: defaultBorders.xs,
|
|
203
|
+
sm: defaultBorders.sm,
|
|
204
|
+
md: "1px solid",
|
|
205
|
+
lg: defaultBorders.lg,
|
|
206
|
+
xl: defaultBorders.xl
|
|
207
|
+
},
|
|
208
|
+
/**
|
|
209
|
+
* Global styles
|
|
210
|
+
*/
|
|
211
|
+
styles: {
|
|
212
|
+
root: {
|
|
213
|
+
/**
|
|
214
|
+
* select out of forms
|
|
215
|
+
*/
|
|
216
|
+
".react-select__control": {
|
|
217
|
+
color: "display.text.secondary.default",
|
|
218
|
+
backgroundColor: "display.background.primary.default",
|
|
219
|
+
borderColor: "display.border.muted.default",
|
|
220
|
+
borderRadius: "lg",
|
|
221
|
+
"&.react-select__control--is-disabled": {
|
|
222
|
+
border: "md",
|
|
223
|
+
backgroundColor: "input.background.muted.default",
|
|
224
|
+
borderColor: "display.border.muted.default"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
/**
|
|
230
|
+
* Components
|
|
231
|
+
*/
|
|
232
|
+
buttons: {
|
|
233
|
+
accent: {
|
|
234
|
+
borderRadius: "full"
|
|
235
|
+
},
|
|
236
|
+
primary: {
|
|
237
|
+
borderRadius: "full"
|
|
238
|
+
},
|
|
239
|
+
secondary: {
|
|
240
|
+
borderRadius: "full",
|
|
241
|
+
border: "none"
|
|
242
|
+
},
|
|
243
|
+
destructive: {
|
|
244
|
+
borderRadius: "full"
|
|
245
|
+
},
|
|
246
|
+
closeButton: {
|
|
247
|
+
borderRadius: "lg"
|
|
248
|
+
},
|
|
249
|
+
actionButton: {
|
|
250
|
+
default: {
|
|
251
|
+
border: "none",
|
|
252
|
+
":is(:focus-within, :hover)": {
|
|
253
|
+
backgroundColor: "action.background.primary.default"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
forms: {
|
|
259
|
+
input: {
|
|
260
|
+
borderRadius: "lg"
|
|
261
|
+
},
|
|
262
|
+
inputNumber: {
|
|
263
|
+
borderRadius: "lg"
|
|
264
|
+
},
|
|
265
|
+
select: {
|
|
266
|
+
borderRadius: "lg"
|
|
267
|
+
},
|
|
268
|
+
textarea: {
|
|
269
|
+
borderRadius: "lg"
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}, BruttalTheme);
|
|
273
|
+
export { OcaFonts, BrutalIcons as OcaIcons, OcaTheme };
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
export { B as BrutalIcons } from '../../BruttalIcons-f07qZPrW.js';
|
|
2
2
|
import { Theme } from 'theme-ui';
|
|
3
|
-
|
|
4
|
-
declare const BrutalIcons: Record<string, IconifyIcon | {
|
|
5
|
-
__esModule: true;
|
|
6
|
-
default: IconifyIcon;
|
|
7
|
-
}>;
|
|
3
|
+
import '@ttoss/react-icons';
|
|
8
4
|
|
|
9
5
|
declare const BruttalFonts: string[];
|
|
10
6
|
|
|
11
7
|
declare const BruttalTheme: Theme;
|
|
12
8
|
|
|
13
|
-
export {
|
|
9
|
+
export { BruttalFonts, BruttalTheme };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/theme",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Theme for packages.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
"./Bruttal": {
|
|
22
22
|
"import": "./dist/esm/themes/Bruttal/Bruttal.js",
|
|
23
23
|
"types": "./dist/themes/Bruttal/Bruttal.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./Oca": {
|
|
26
|
+
"import": "./dist/esm/themes/Oca/Oca.js",
|
|
27
|
+
"types": "./dist/themes/Oca/Oca.d.ts"
|
|
24
28
|
}
|
|
25
29
|
},
|
|
26
30
|
"files": [
|
|
@@ -41,8 +45,8 @@
|
|
|
41
45
|
"theme-ui": "^0.17.1",
|
|
42
46
|
"tsup": "^8.3.5",
|
|
43
47
|
"@ttoss/config": "^1.35.2",
|
|
44
|
-
"@ttoss/
|
|
45
|
-
"@ttoss/
|
|
48
|
+
"@ttoss/test-utils": "^2.1.22",
|
|
49
|
+
"@ttoss/react-icons": "^0.4.9"
|
|
46
50
|
},
|
|
47
51
|
"keywords": [],
|
|
48
52
|
"publishConfig": {
|