@mekari/pixel3-theme 0.2.0-dev.0 → 0.2.0-dev.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.
- package/dist/fonts.d.mts +9 -0
- package/dist/fonts.d.ts +9 -0
- package/dist/index.js +63 -15
- package/dist/index.mjs +63 -15
- package/dist/recipes/index.d.mts +1 -1
- package/dist/recipes/index.d.ts +1 -1
- package/dist/recipes/tabs.d.mts +2 -2
- package/dist/recipes/tabs.d.ts +2 -2
- package/package.json +1 -1
- package/src/fonts.ts +31 -0
- package/src/index.ts +6 -1
- package/src/recipes/badge.ts +6 -3
- package/src/recipes/index.ts +2 -2
- package/src/recipes/tabs.ts +4 -4
- package/src/text-styles.ts +16 -8
package/dist/fonts.d.mts
ADDED
package/dist/fonts.d.ts
ADDED
package/dist/index.js
CHANGED
|
@@ -1249,6 +1249,7 @@ var badgeRecipe = (0, import_dev13.defineRecipe)({
|
|
|
1249
1249
|
base: {
|
|
1250
1250
|
display: "inline-flex",
|
|
1251
1251
|
alignItems: "center",
|
|
1252
|
+
justifyContent: "center",
|
|
1252
1253
|
borderRadius: "999px"
|
|
1253
1254
|
},
|
|
1254
1255
|
variants: {
|
|
@@ -1269,15 +1270,17 @@ var badgeRecipe = (0, import_dev13.defineRecipe)({
|
|
|
1269
1270
|
sm: {
|
|
1270
1271
|
fontSize: "xs",
|
|
1271
1272
|
fontWeight: "semiBold",
|
|
1272
|
-
lineHeight: "
|
|
1273
|
+
lineHeight: "0",
|
|
1273
1274
|
letterSpacing: "normal",
|
|
1275
|
+
minWidth: "4",
|
|
1274
1276
|
height: "4"
|
|
1275
1277
|
},
|
|
1276
1278
|
md: {
|
|
1277
1279
|
fontSize: "md",
|
|
1278
1280
|
fontWeight: "regular",
|
|
1279
|
-
lineHeight: "
|
|
1281
|
+
lineHeight: "0",
|
|
1280
1282
|
letterSpacing: "normal",
|
|
1283
|
+
minWidth: "5",
|
|
1281
1284
|
height: "5"
|
|
1282
1285
|
}
|
|
1283
1286
|
}
|
|
@@ -1612,9 +1615,9 @@ var tabRecipe = (0, import_dev16.defineRecipe)({
|
|
|
1612
1615
|
isSelected: false
|
|
1613
1616
|
}
|
|
1614
1617
|
});
|
|
1615
|
-
var
|
|
1616
|
-
className: "selected-border",
|
|
1617
|
-
jsx: ["
|
|
1618
|
+
var tabSelectedBorderRecipe = (0, import_dev16.defineRecipe)({
|
|
1619
|
+
className: "tab-selected-border",
|
|
1620
|
+
jsx: ["MpTabSelectedBorder", "mp-tab-selected-border"],
|
|
1618
1621
|
base: {
|
|
1619
1622
|
position: "absolute",
|
|
1620
1623
|
bottom: "-2px",
|
|
@@ -4256,7 +4259,7 @@ var recipes = {
|
|
|
4256
4259
|
textareaRecipe,
|
|
4257
4260
|
tooltipRecipe,
|
|
4258
4261
|
tabRecipe,
|
|
4259
|
-
|
|
4262
|
+
tabSelectedBorderRecipe,
|
|
4260
4263
|
tableRecipe,
|
|
4261
4264
|
tableContainerRecipe,
|
|
4262
4265
|
dividerRecipe,
|
|
@@ -4321,34 +4324,42 @@ var slotRecipes = {
|
|
|
4321
4324
|
// src/text-styles.ts
|
|
4322
4325
|
var import_dev42 = require("@pandacss/dev");
|
|
4323
4326
|
var textStyles = (0, import_dev42.defineTextStyles)({
|
|
4324
|
-
overline: {
|
|
4327
|
+
overline: {
|
|
4328
|
+
value: {
|
|
4329
|
+
fontFamily: "var(--font-inter)",
|
|
4330
|
+
fontSize: "xs",
|
|
4331
|
+
lineHeight: "xs"
|
|
4332
|
+
}
|
|
4333
|
+
},
|
|
4325
4334
|
body: {
|
|
4326
|
-
sm: { value: { fontSize: "sm", lineHeight: "2xl" } },
|
|
4327
|
-
md: { value: { fontSize: "md", lineHeight: "3xl" } }
|
|
4335
|
+
sm: { value: { fontFamily: "var(--font-inter)", fontSize: "sm", lineHeight: "2xl" } },
|
|
4336
|
+
md: { value: { fontFamily: "var(--font-inter)", fontSize: "md", lineHeight: "3xl" } }
|
|
4328
4337
|
},
|
|
4329
4338
|
label: {
|
|
4330
|
-
sm: { value: { fontSize: "sm", lineHeight: "sm" } },
|
|
4331
|
-
md: { value: { fontSize: "md", lineHeight: "lg" } }
|
|
4339
|
+
sm: { value: { fontFamily: "var(--font-inter)", fontSize: "sm", lineHeight: "sm" } },
|
|
4340
|
+
md: { value: { fontFamily: "var(--font-inter)", fontSize: "md", lineHeight: "lg" } }
|
|
4332
4341
|
},
|
|
4333
4342
|
h3: {
|
|
4334
4343
|
value: {
|
|
4344
|
+
fontFamily: "var(--font-inter)",
|
|
4335
4345
|
fontSize: "lg",
|
|
4336
4346
|
lineHeight: "xl",
|
|
4337
|
-
fontWeight: "semiBold
|
|
4347
|
+
fontWeight: "semiBold"
|
|
4338
4348
|
}
|
|
4339
4349
|
},
|
|
4340
4350
|
h2: {
|
|
4341
4351
|
value: {
|
|
4352
|
+
fontFamily: "var(--font-inter)",
|
|
4342
4353
|
fontSize: "xl",
|
|
4343
4354
|
lineHeight: "md",
|
|
4344
|
-
fontWeight: "semiBold
|
|
4355
|
+
fontWeight: "semiBold"
|
|
4345
4356
|
}
|
|
4346
4357
|
},
|
|
4347
4358
|
h1: {
|
|
4348
4359
|
value: {
|
|
4349
4360
|
fontSize: "2xl",
|
|
4350
4361
|
lineHeight: "sm",
|
|
4351
|
-
fontWeight: "semiBold
|
|
4362
|
+
fontWeight: "semiBold"
|
|
4352
4363
|
}
|
|
4353
4364
|
}
|
|
4354
4365
|
});
|
|
@@ -4706,6 +4717,39 @@ var tokens = (0, import_dev53.defineTokens)({
|
|
|
4706
4717
|
zIndex
|
|
4707
4718
|
});
|
|
4708
4719
|
|
|
4720
|
+
// src/fonts.ts
|
|
4721
|
+
var globalFontface = {
|
|
4722
|
+
Inter: [
|
|
4723
|
+
{
|
|
4724
|
+
src: [
|
|
4725
|
+
'url("https://cdn.mekari.design/fonts/Inter/Inter-Regular.woff2") format("woff2")',
|
|
4726
|
+
'url("https://cdn.mekari.design/fonts/Inter/Inter-Regular.ttf") format("truetype")'
|
|
4727
|
+
],
|
|
4728
|
+
fontStyle: "normal",
|
|
4729
|
+
fontWeight: "400"
|
|
4730
|
+
// fontDisplay: 'swap'
|
|
4731
|
+
},
|
|
4732
|
+
{
|
|
4733
|
+
src: [
|
|
4734
|
+
'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBold.woff2") format("woff2")',
|
|
4735
|
+
'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBold.ttf") format("truetype")'
|
|
4736
|
+
],
|
|
4737
|
+
fontStyle: "normal",
|
|
4738
|
+
fontWeight: "600"
|
|
4739
|
+
// fontDisplay: 'swap'
|
|
4740
|
+
},
|
|
4741
|
+
{
|
|
4742
|
+
src: [
|
|
4743
|
+
'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBoldItalic.woff2") format("woff2")',
|
|
4744
|
+
'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBoldItalic.ttf") format("truetype")'
|
|
4745
|
+
],
|
|
4746
|
+
fontStyle: "italic",
|
|
4747
|
+
fontWeight: "600"
|
|
4748
|
+
// fontDisplay: 'swap'
|
|
4749
|
+
}
|
|
4750
|
+
]
|
|
4751
|
+
};
|
|
4752
|
+
|
|
4709
4753
|
// src/index.ts
|
|
4710
4754
|
var preset = (0, import_dev54.definePreset)({
|
|
4711
4755
|
name: "@mekari/pixel3-theme",
|
|
@@ -4720,7 +4764,11 @@ var preset = (0, import_dev54.definePreset)({
|
|
|
4720
4764
|
}
|
|
4721
4765
|
},
|
|
4722
4766
|
conditions,
|
|
4723
|
-
|
|
4767
|
+
globalFontface,
|
|
4768
|
+
globalCss,
|
|
4769
|
+
globalVars: {
|
|
4770
|
+
"--font-inter": "Inter, sans-serif"
|
|
4771
|
+
}
|
|
4724
4772
|
});
|
|
4725
4773
|
var src_default = preset;
|
|
4726
4774
|
|
package/dist/index.mjs
CHANGED
|
@@ -1223,6 +1223,7 @@ var badgeRecipe = defineRecipe6({
|
|
|
1223
1223
|
base: {
|
|
1224
1224
|
display: "inline-flex",
|
|
1225
1225
|
alignItems: "center",
|
|
1226
|
+
justifyContent: "center",
|
|
1226
1227
|
borderRadius: "999px"
|
|
1227
1228
|
},
|
|
1228
1229
|
variants: {
|
|
@@ -1243,15 +1244,17 @@ var badgeRecipe = defineRecipe6({
|
|
|
1243
1244
|
sm: {
|
|
1244
1245
|
fontSize: "xs",
|
|
1245
1246
|
fontWeight: "semiBold",
|
|
1246
|
-
lineHeight: "
|
|
1247
|
+
lineHeight: "0",
|
|
1247
1248
|
letterSpacing: "normal",
|
|
1249
|
+
minWidth: "4",
|
|
1248
1250
|
height: "4"
|
|
1249
1251
|
},
|
|
1250
1252
|
md: {
|
|
1251
1253
|
fontSize: "md",
|
|
1252
1254
|
fontWeight: "regular",
|
|
1253
|
-
lineHeight: "
|
|
1255
|
+
lineHeight: "0",
|
|
1254
1256
|
letterSpacing: "normal",
|
|
1257
|
+
minWidth: "5",
|
|
1255
1258
|
height: "5"
|
|
1256
1259
|
}
|
|
1257
1260
|
}
|
|
@@ -1586,9 +1589,9 @@ var tabRecipe = defineRecipe9({
|
|
|
1586
1589
|
isSelected: false
|
|
1587
1590
|
}
|
|
1588
1591
|
});
|
|
1589
|
-
var
|
|
1590
|
-
className: "selected-border",
|
|
1591
|
-
jsx: ["
|
|
1592
|
+
var tabSelectedBorderRecipe = defineRecipe9({
|
|
1593
|
+
className: "tab-selected-border",
|
|
1594
|
+
jsx: ["MpTabSelectedBorder", "mp-tab-selected-border"],
|
|
1592
1595
|
base: {
|
|
1593
1596
|
position: "absolute",
|
|
1594
1597
|
bottom: "-2px",
|
|
@@ -4230,7 +4233,7 @@ var recipes = {
|
|
|
4230
4233
|
textareaRecipe,
|
|
4231
4234
|
tooltipRecipe,
|
|
4232
4235
|
tabRecipe,
|
|
4233
|
-
|
|
4236
|
+
tabSelectedBorderRecipe,
|
|
4234
4237
|
tableRecipe,
|
|
4235
4238
|
tableContainerRecipe,
|
|
4236
4239
|
dividerRecipe,
|
|
@@ -4295,34 +4298,42 @@ var slotRecipes = {
|
|
|
4295
4298
|
// src/text-styles.ts
|
|
4296
4299
|
import { defineTextStyles } from "@pandacss/dev";
|
|
4297
4300
|
var textStyles = defineTextStyles({
|
|
4298
|
-
overline: {
|
|
4301
|
+
overline: {
|
|
4302
|
+
value: {
|
|
4303
|
+
fontFamily: "var(--font-inter)",
|
|
4304
|
+
fontSize: "xs",
|
|
4305
|
+
lineHeight: "xs"
|
|
4306
|
+
}
|
|
4307
|
+
},
|
|
4299
4308
|
body: {
|
|
4300
|
-
sm: { value: { fontSize: "sm", lineHeight: "2xl" } },
|
|
4301
|
-
md: { value: { fontSize: "md", lineHeight: "3xl" } }
|
|
4309
|
+
sm: { value: { fontFamily: "var(--font-inter)", fontSize: "sm", lineHeight: "2xl" } },
|
|
4310
|
+
md: { value: { fontFamily: "var(--font-inter)", fontSize: "md", lineHeight: "3xl" } }
|
|
4302
4311
|
},
|
|
4303
4312
|
label: {
|
|
4304
|
-
sm: { value: { fontSize: "sm", lineHeight: "sm" } },
|
|
4305
|
-
md: { value: { fontSize: "md", lineHeight: "lg" } }
|
|
4313
|
+
sm: { value: { fontFamily: "var(--font-inter)", fontSize: "sm", lineHeight: "sm" } },
|
|
4314
|
+
md: { value: { fontFamily: "var(--font-inter)", fontSize: "md", lineHeight: "lg" } }
|
|
4306
4315
|
},
|
|
4307
4316
|
h3: {
|
|
4308
4317
|
value: {
|
|
4318
|
+
fontFamily: "var(--font-inter)",
|
|
4309
4319
|
fontSize: "lg",
|
|
4310
4320
|
lineHeight: "xl",
|
|
4311
|
-
fontWeight: "semiBold
|
|
4321
|
+
fontWeight: "semiBold"
|
|
4312
4322
|
}
|
|
4313
4323
|
},
|
|
4314
4324
|
h2: {
|
|
4315
4325
|
value: {
|
|
4326
|
+
fontFamily: "var(--font-inter)",
|
|
4316
4327
|
fontSize: "xl",
|
|
4317
4328
|
lineHeight: "md",
|
|
4318
|
-
fontWeight: "semiBold
|
|
4329
|
+
fontWeight: "semiBold"
|
|
4319
4330
|
}
|
|
4320
4331
|
},
|
|
4321
4332
|
h1: {
|
|
4322
4333
|
value: {
|
|
4323
4334
|
fontSize: "2xl",
|
|
4324
4335
|
lineHeight: "sm",
|
|
4325
|
-
fontWeight: "semiBold
|
|
4336
|
+
fontWeight: "semiBold"
|
|
4326
4337
|
}
|
|
4327
4338
|
}
|
|
4328
4339
|
});
|
|
@@ -4680,6 +4691,39 @@ var tokens = defineTokens11({
|
|
|
4680
4691
|
zIndex
|
|
4681
4692
|
});
|
|
4682
4693
|
|
|
4694
|
+
// src/fonts.ts
|
|
4695
|
+
var globalFontface = {
|
|
4696
|
+
Inter: [
|
|
4697
|
+
{
|
|
4698
|
+
src: [
|
|
4699
|
+
'url("https://cdn.mekari.design/fonts/Inter/Inter-Regular.woff2") format("woff2")',
|
|
4700
|
+
'url("https://cdn.mekari.design/fonts/Inter/Inter-Regular.ttf") format("truetype")'
|
|
4701
|
+
],
|
|
4702
|
+
fontStyle: "normal",
|
|
4703
|
+
fontWeight: "400"
|
|
4704
|
+
// fontDisplay: 'swap'
|
|
4705
|
+
},
|
|
4706
|
+
{
|
|
4707
|
+
src: [
|
|
4708
|
+
'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBold.woff2") format("woff2")',
|
|
4709
|
+
'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBold.ttf") format("truetype")'
|
|
4710
|
+
],
|
|
4711
|
+
fontStyle: "normal",
|
|
4712
|
+
fontWeight: "600"
|
|
4713
|
+
// fontDisplay: 'swap'
|
|
4714
|
+
},
|
|
4715
|
+
{
|
|
4716
|
+
src: [
|
|
4717
|
+
'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBoldItalic.woff2") format("woff2")',
|
|
4718
|
+
'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBoldItalic.ttf") format("truetype")'
|
|
4719
|
+
],
|
|
4720
|
+
fontStyle: "italic",
|
|
4721
|
+
fontWeight: "600"
|
|
4722
|
+
// fontDisplay: 'swap'
|
|
4723
|
+
}
|
|
4724
|
+
]
|
|
4725
|
+
};
|
|
4726
|
+
|
|
4683
4727
|
// src/index.ts
|
|
4684
4728
|
var preset = definePreset({
|
|
4685
4729
|
name: "@mekari/pixel3-theme",
|
|
@@ -4694,7 +4738,11 @@ var preset = definePreset({
|
|
|
4694
4738
|
}
|
|
4695
4739
|
},
|
|
4696
4740
|
conditions,
|
|
4697
|
-
|
|
4741
|
+
globalFontface,
|
|
4742
|
+
globalCss,
|
|
4743
|
+
globalVars: {
|
|
4744
|
+
"--font-inter": "Inter, sans-serif"
|
|
4745
|
+
}
|
|
4698
4746
|
});
|
|
4699
4747
|
var src_default = preset;
|
|
4700
4748
|
|
package/dist/recipes/index.d.mts
CHANGED
|
@@ -13,7 +13,7 @@ declare const recipes: {
|
|
|
13
13
|
textareaRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
14
14
|
tooltipRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
15
15
|
tabRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
16
|
-
|
|
16
|
+
tabSelectedBorderRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
17
17
|
tableRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
18
18
|
tableContainerRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
19
19
|
dividerRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
package/dist/recipes/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ declare const recipes: {
|
|
|
13
13
|
textareaRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
14
14
|
tooltipRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
15
15
|
tabRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
16
|
-
|
|
16
|
+
tabSelectedBorderRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
17
17
|
tableRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
18
18
|
tableContainerRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
19
19
|
dividerRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
package/dist/recipes/tabs.d.mts
CHANGED
|
@@ -2,6 +2,6 @@ import * as _pandacss_dev from '@pandacss/dev';
|
|
|
2
2
|
|
|
3
3
|
declare const tabListSlotRecipe: _pandacss_dev.SlotRecipeConfig;
|
|
4
4
|
declare const tabRecipe: _pandacss_dev.RecipeConfig<_pandacss_dev.RecipeVariantRecord>;
|
|
5
|
-
declare const
|
|
5
|
+
declare const tabSelectedBorderRecipe: _pandacss_dev.RecipeConfig<_pandacss_dev.RecipeVariantRecord>;
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { tabListSlotRecipe, tabRecipe, tabSelectedBorderRecipe };
|
package/dist/recipes/tabs.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import * as _pandacss_dev from '@pandacss/dev';
|
|
|
2
2
|
|
|
3
3
|
declare const tabListSlotRecipe: _pandacss_dev.SlotRecipeConfig;
|
|
4
4
|
declare const tabRecipe: _pandacss_dev.RecipeConfig<_pandacss_dev.RecipeVariantRecord>;
|
|
5
|
-
declare const
|
|
5
|
+
declare const tabSelectedBorderRecipe: _pandacss_dev.RecipeConfig<_pandacss_dev.RecipeVariantRecord>;
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { tabListSlotRecipe, tabRecipe, tabSelectedBorderRecipe };
|
package/package.json
CHANGED
package/src/fonts.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export const globalFontface = {
|
|
2
|
+
Inter: [
|
|
3
|
+
{
|
|
4
|
+
src: [
|
|
5
|
+
'url("https://cdn.mekari.design/fonts/Inter/Inter-Regular.woff2") format("woff2")',
|
|
6
|
+
'url("https://cdn.mekari.design/fonts/Inter/Inter-Regular.ttf") format("truetype")'
|
|
7
|
+
],
|
|
8
|
+
fontStyle: 'normal',
|
|
9
|
+
fontWeight: '400',
|
|
10
|
+
// fontDisplay: 'swap'
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
src: [
|
|
14
|
+
'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBold.woff2") format("woff2")',
|
|
15
|
+
'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBold.ttf") format("truetype")'
|
|
16
|
+
],
|
|
17
|
+
fontStyle: 'normal',
|
|
18
|
+
fontWeight: '600',
|
|
19
|
+
// fontDisplay: 'swap'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
src: [
|
|
23
|
+
'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBoldItalic.woff2") format("woff2")',
|
|
24
|
+
'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBoldItalic.ttf") format("truetype")'
|
|
25
|
+
],
|
|
26
|
+
fontStyle: 'italic',
|
|
27
|
+
fontWeight: '600',
|
|
28
|
+
// fontDisplay: 'swap'
|
|
29
|
+
},
|
|
30
|
+
]
|
|
31
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { keyframes } from './keyframes'
|
|
|
7
7
|
import { recipes, slotRecipes } from './recipes'
|
|
8
8
|
import { textStyles } from './text-styles'
|
|
9
9
|
import { tokens } from './tokens'
|
|
10
|
+
import { globalFontface } from './fonts'
|
|
10
11
|
|
|
11
12
|
const preset: Preset = definePreset({
|
|
12
13
|
name: '@mekari/pixel3-theme',
|
|
@@ -21,7 +22,11 @@ const preset: Preset = definePreset({
|
|
|
21
22
|
}
|
|
22
23
|
},
|
|
23
24
|
conditions,
|
|
24
|
-
|
|
25
|
+
globalFontface,
|
|
26
|
+
globalCss,
|
|
27
|
+
globalVars: {
|
|
28
|
+
'--font-inter': 'Inter, sans-serif'
|
|
29
|
+
}
|
|
25
30
|
})
|
|
26
31
|
|
|
27
32
|
export default preset
|
package/src/recipes/badge.ts
CHANGED
|
@@ -6,7 +6,8 @@ const badgeRecipe = defineRecipe({
|
|
|
6
6
|
base: {
|
|
7
7
|
display: 'inline-flex',
|
|
8
8
|
alignItems: 'center',
|
|
9
|
-
|
|
9
|
+
justifyContent: 'center',
|
|
10
|
+
borderRadius: '999px',
|
|
10
11
|
},
|
|
11
12
|
|
|
12
13
|
variants: {
|
|
@@ -27,15 +28,17 @@ const badgeRecipe = defineRecipe({
|
|
|
27
28
|
sm: {
|
|
28
29
|
fontSize: 'xs',
|
|
29
30
|
fontWeight: 'semiBold',
|
|
30
|
-
lineHeight: '
|
|
31
|
+
lineHeight: '0',
|
|
31
32
|
letterSpacing: 'normal',
|
|
33
|
+
minWidth: '4',
|
|
32
34
|
height: '4'
|
|
33
35
|
},
|
|
34
36
|
md: {
|
|
35
37
|
fontSize: 'md',
|
|
36
38
|
fontWeight: 'regular',
|
|
37
|
-
lineHeight: '
|
|
39
|
+
lineHeight: '0',
|
|
38
40
|
letterSpacing: 'normal',
|
|
41
|
+
minWidth: '5',
|
|
39
42
|
height: '5'
|
|
40
43
|
}
|
|
41
44
|
}
|
package/src/recipes/index.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { popoverContentRecipe, popoverListRecipe, popoverListItemRecipe } from '
|
|
|
11
11
|
import { badgeRecipe } from './badge'
|
|
12
12
|
import { textareaRecipe } from './textarea'
|
|
13
13
|
import { tooltipRecipe } from './tooltip'
|
|
14
|
-
import { tabListSlotRecipe, tabRecipe,
|
|
14
|
+
import { tabListSlotRecipe, tabRecipe, tabSelectedBorderRecipe } from './tabs'
|
|
15
15
|
import { checkboxSlotRecipe } from './checkbox'
|
|
16
16
|
import { radioSlotRecipe } from './radio'
|
|
17
17
|
import { sharedSlotRecipe } from './shared'
|
|
@@ -77,7 +77,7 @@ export const recipes = {
|
|
|
77
77
|
textareaRecipe,
|
|
78
78
|
tooltipRecipe,
|
|
79
79
|
tabRecipe,
|
|
80
|
-
|
|
80
|
+
tabSelectedBorderRecipe,
|
|
81
81
|
tableRecipe,
|
|
82
82
|
tableContainerRecipe,
|
|
83
83
|
dividerRecipe,
|
package/src/recipes/tabs.ts
CHANGED
|
@@ -132,9 +132,9 @@ const tabRecipe = defineRecipe({
|
|
|
132
132
|
}
|
|
133
133
|
})
|
|
134
134
|
|
|
135
|
-
const
|
|
136
|
-
className: 'selected-border',
|
|
137
|
-
jsx: ['
|
|
135
|
+
const tabSelectedBorderRecipe = defineRecipe({
|
|
136
|
+
className: 'tab-selected-border',
|
|
137
|
+
jsx: ['MpTabSelectedBorder', 'mp-tab-selected-border'],
|
|
138
138
|
base: {
|
|
139
139
|
position: 'absolute',
|
|
140
140
|
bottom: '-2px',
|
|
@@ -218,4 +218,4 @@ const selectedBorderRecipe = defineRecipe({
|
|
|
218
218
|
}
|
|
219
219
|
})
|
|
220
220
|
|
|
221
|
-
export { tabListSlotRecipe, tabRecipe,
|
|
221
|
+
export { tabListSlotRecipe, tabRecipe, tabSelectedBorderRecipe }
|
package/src/text-styles.ts
CHANGED
|
@@ -1,34 +1,42 @@
|
|
|
1
1
|
import { defineTextStyles } from '@pandacss/dev'
|
|
2
2
|
|
|
3
3
|
export const textStyles = defineTextStyles({
|
|
4
|
-
overline: {
|
|
4
|
+
overline: {
|
|
5
|
+
value: {
|
|
6
|
+
fontFamily: 'var(--font-inter)',
|
|
7
|
+
fontSize: 'xs',
|
|
8
|
+
lineHeight: 'xs'
|
|
9
|
+
}
|
|
10
|
+
},
|
|
5
11
|
body: {
|
|
6
|
-
sm: { value: { fontSize: 'sm', lineHeight: '2xl' } },
|
|
7
|
-
md: { value: { fontSize: 'md', lineHeight: '3xl' } }
|
|
12
|
+
sm: { value: { fontFamily: 'var(--font-inter)', fontSize: 'sm', lineHeight: '2xl' } },
|
|
13
|
+
md: { value: { fontFamily: 'var(--font-inter)', fontSize: 'md', lineHeight: '3xl' } }
|
|
8
14
|
},
|
|
9
15
|
label: {
|
|
10
|
-
sm: { value: { fontSize: 'sm', lineHeight: 'sm' } },
|
|
11
|
-
md: { value: { fontSize: 'md', lineHeight: 'lg' } }
|
|
16
|
+
sm: { value: { fontFamily: 'var(--font-inter)', fontSize: 'sm', lineHeight: 'sm' } },
|
|
17
|
+
md: { value: { fontFamily: 'var(--font-inter)', fontSize: 'md', lineHeight: 'lg' } }
|
|
12
18
|
},
|
|
13
19
|
h3: {
|
|
14
20
|
value: {
|
|
21
|
+
fontFamily: 'var(--font-inter)',
|
|
15
22
|
fontSize: 'lg',
|
|
16
23
|
lineHeight: 'xl',
|
|
17
|
-
fontWeight: 'semiBold
|
|
24
|
+
fontWeight: 'semiBold'
|
|
18
25
|
}
|
|
19
26
|
},
|
|
20
27
|
h2: {
|
|
21
28
|
value: {
|
|
29
|
+
fontFamily: 'var(--font-inter)',
|
|
22
30
|
fontSize: 'xl',
|
|
23
31
|
lineHeight: 'md',
|
|
24
|
-
fontWeight: 'semiBold
|
|
32
|
+
fontWeight: 'semiBold'
|
|
25
33
|
}
|
|
26
34
|
},
|
|
27
35
|
h1: {
|
|
28
36
|
value: {
|
|
29
37
|
fontSize: '2xl',
|
|
30
38
|
lineHeight: 'sm',
|
|
31
|
-
fontWeight: 'semiBold
|
|
39
|
+
fontWeight: 'semiBold'
|
|
32
40
|
}
|
|
33
41
|
}
|
|
34
42
|
})
|