@ttoss/theme 2.1.0 → 2.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.
|
@@ -817,6 +817,19 @@ var coreColors = {
|
|
|
817
817
|
amber600: "#d97706",
|
|
818
818
|
teal600: "#0d9488"
|
|
819
819
|
};
|
|
820
|
+
var radii = {
|
|
821
|
+
none: "0",
|
|
822
|
+
"2xs": "0.0625rem",
|
|
823
|
+
xs: "0.125rem",
|
|
824
|
+
sm: "0.25rem",
|
|
825
|
+
md: "0.375rem",
|
|
826
|
+
lg: "0.25rem",
|
|
827
|
+
xl: "0.25rem",
|
|
828
|
+
"2xl": "0.25rem",
|
|
829
|
+
"3xl": "0.25rem",
|
|
830
|
+
"4xl": "0.25rem",
|
|
831
|
+
full: "9999px"
|
|
832
|
+
};
|
|
820
833
|
var BruttalTheme = {
|
|
821
834
|
/**
|
|
822
835
|
* Tokens
|
|
@@ -1023,7 +1036,7 @@ var BruttalTheme = {
|
|
|
1023
1036
|
}
|
|
1024
1037
|
},
|
|
1025
1038
|
fonts: coreFonts,
|
|
1026
|
-
radii
|
|
1039
|
+
radii,
|
|
1027
1040
|
/**
|
|
1028
1041
|
* Global styles
|
|
1029
1042
|
*/
|
|
@@ -1160,25 +1173,6 @@ var BruttalTheme = {
|
|
|
1160
1173
|
color: "action.text.muted.default"
|
|
1161
1174
|
}
|
|
1162
1175
|
},
|
|
1163
|
-
closeButton: {
|
|
1164
|
-
backgroundColor: "action.background.primary.active",
|
|
1165
|
-
color: "action.text.primary.default",
|
|
1166
|
-
border: "sm",
|
|
1167
|
-
borderColor: "action.border.primary.default",
|
|
1168
|
-
borderRadius: "sm",
|
|
1169
|
-
":disabled": {
|
|
1170
|
-
border: "sm",
|
|
1171
|
-
backgroundColor: "action.background.muted.default",
|
|
1172
|
-
borderColor: "action.border.muted.default",
|
|
1173
|
-
color: "action.text.muted.default",
|
|
1174
|
-
cursor: "not-allowed"
|
|
1175
|
-
},
|
|
1176
|
-
":is(:focus-within, :hover):not(:disabled)": {
|
|
1177
|
-
color: "action.text.secondary.active",
|
|
1178
|
-
backgroundColor: "action.background.secondary.active",
|
|
1179
|
-
borderColor: "action.border.secondary.active"
|
|
1180
|
-
}
|
|
1181
|
-
},
|
|
1182
1176
|
actionButton: {
|
|
1183
1177
|
default: {
|
|
1184
1178
|
backgroundColor: "action.background.secondary.default",
|
|
@@ -1205,17 +1199,6 @@ var BruttalTheme = {
|
|
|
1205
1199
|
}
|
|
1206
1200
|
}
|
|
1207
1201
|
},
|
|
1208
|
-
cards: {
|
|
1209
|
-
primary: {
|
|
1210
|
-
backgroundColor: "display.background.secondary.default",
|
|
1211
|
-
border: "sm",
|
|
1212
|
-
padding: [4, 5],
|
|
1213
|
-
display: "flex",
|
|
1214
|
-
flexDirection: "column",
|
|
1215
|
-
alignItems: "center",
|
|
1216
|
-
width: "fit-content"
|
|
1217
|
-
}
|
|
1218
|
-
},
|
|
1219
1202
|
forms: {
|
|
1220
1203
|
label: {
|
|
1221
1204
|
color: "display.text.primary.default",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
|
-
import { BrutalIcons, BruttalFonts, BruttalTheme } from "../../chunk-
|
|
2
|
+
import { BrutalIcons, BruttalFonts, BruttalTheme } from "../../chunk-5ILPVM2B.js";
|
|
3
3
|
import "../../chunk-ZYSSWTLH.js";
|
|
4
4
|
export { BrutalIcons, BruttalFonts, BruttalTheme };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
2
|
import { createTheme } from "../../chunk-SNDE7LRY.js";
|
|
3
|
-
import { BrutalIcons, BruttalTheme } from "../../chunk-
|
|
3
|
+
import { BrutalIcons, BruttalTheme } from "../../chunk-5ILPVM2B.js";
|
|
4
4
|
import { defaultTheme } from "../../chunk-ZYSSWTLH.js";
|
|
5
5
|
|
|
6
6
|
// src/themes/Oca/OcaFonts.ts
|
|
@@ -188,6 +188,21 @@ var OcaTheme = createTheme({
|
|
|
188
188
|
border: {
|
|
189
189
|
primary: {
|
|
190
190
|
default: "#111827"
|
|
191
|
+
},
|
|
192
|
+
secondary: {
|
|
193
|
+
default: "#465A69"
|
|
194
|
+
},
|
|
195
|
+
muted: {
|
|
196
|
+
default: "#E5E7EB"
|
|
197
|
+
},
|
|
198
|
+
negative: {
|
|
199
|
+
default: "red"
|
|
200
|
+
},
|
|
201
|
+
caution: {
|
|
202
|
+
default: "orange"
|
|
203
|
+
},
|
|
204
|
+
positive: {
|
|
205
|
+
default: "green"
|
|
191
206
|
}
|
|
192
207
|
}
|
|
193
208
|
}
|
|
@@ -205,6 +220,7 @@ var OcaTheme = createTheme({
|
|
|
205
220
|
lg: defaultBorders.lg,
|
|
206
221
|
xl: defaultBorders.xl
|
|
207
222
|
},
|
|
223
|
+
radii: defaultTheme.radii,
|
|
208
224
|
/**
|
|
209
225
|
* Global styles
|
|
210
226
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/theme",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Theme for packages.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"jest": "^29.7.0",
|
|
45
45
|
"theme-ui": "^0.17.1",
|
|
46
46
|
"tsup": "^8.3.5",
|
|
47
|
-
"@ttoss/config": "^1.35.2",
|
|
48
47
|
"@ttoss/test-utils": "^2.1.22",
|
|
48
|
+
"@ttoss/config": "^1.35.2",
|
|
49
49
|
"@ttoss/react-icons": "^0.4.9"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [],
|