@ttoss/theme 1.8.6 → 2.0.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.
@@ -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-4NODBA2X.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
- import { IconifyIcon } from '@ttoss/react-icons';
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 { BrutalIcons, BruttalFonts, BruttalTheme };
9
+ export { BruttalFonts, BruttalTheme };
@@ -0,0 +1,9 @@
1
+ export { B as OcaIcons } from '../../BruttalIcons-f07qZPrW.js';
2
+ import { Theme } from 'theme-ui';
3
+ import '@ttoss/react-icons';
4
+
5
+ declare const OcaFonts: string[];
6
+
7
+ declare const OcaTheme: Theme;
8
+
9
+ export { OcaFonts, OcaTheme };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/theme",
3
- "version": "1.8.6",
3
+ "version": "2.0.2",
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/test-utils": "^2.1.22",
45
- "@ttoss/react-icons": "^0.4.9"
48
+ "@ttoss/react-icons": "^0.4.9",
49
+ "@ttoss/test-utils": "^2.1.22"
46
50
  },
47
51
  "keywords": [],
48
52
  "publishConfig": {
@@ -1,31 +0,0 @@
1
- /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJS = (cb, mod) => function __require() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = {
10
- exports: {}
11
- }).exports, mod), mod.exports;
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
- value: mod,
29
- enumerable: true
30
- }) : target, mod));
31
- export { __commonJS, __toESM };