@mekari/pixel3-theme 0.2.3-dev.0 → 0.3.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/index.js CHANGED
@@ -25,7 +25,7 @@ __export(theme_exports, {
25
25
  module.exports = __toCommonJS(theme_exports);
26
26
 
27
27
  // src/index.ts
28
- var import_dev65 = require("@pandacss/dev");
28
+ var import_dev67 = require("@pandacss/dev");
29
29
 
30
30
  // src/breakpoints.ts
31
31
  var breakpoints = {
@@ -110,6 +110,10 @@ var keyframes = (0, import_dev2.defineKeyframes)({
110
110
  "0%": { backgroundPosition: "0% 20%" },
111
111
  "50%": { backgroundPosition: "100% 50%" },
112
112
  "100%": { backgroundPosition: "0% 100%" }
113
+ },
114
+ shimmer: {
115
+ from: { backgroundPosition: "-100% 0" },
116
+ to: { backgroundPosition: "100% 0" }
113
117
  }
114
118
  });
115
119
 
@@ -5321,18 +5325,33 @@ var timelineLogSlotRecipe = (0, import_dev38.defineSlotRecipe)({
5321
5325
  color: "gray.400",
5322
5326
  _groupHover: {
5323
5327
  color: "blue.500"
5328
+ },
5329
+ _nextTheme: {
5330
+ color: "text.secondary",
5331
+ _groupHover: {
5332
+ color: "text.highlight"
5333
+ }
5324
5334
  }
5325
5335
  },
5326
5336
  logIcon: {
5327
5337
  color: "gray.400",
5328
- _groupHover: { color: "blue.500" }
5338
+ _groupHover: { color: "blue.500" },
5339
+ _nextTheme: {
5340
+ color: "icon.default",
5341
+ _groupHover: {
5342
+ color: "icon.highlight"
5343
+ }
5344
+ }
5329
5345
  },
5330
5346
  content: {
5331
- listStyleType: "disc",
5347
+ listStyleType: "none",
5332
5348
  paddingLeft: 5
5333
5349
  },
5334
5350
  logItem: {
5335
- color: "gray.600"
5351
+ color: "gray.600",
5352
+ _nextTheme: {
5353
+ color: "text.secondary"
5354
+ }
5336
5355
  }
5337
5356
  }
5338
5357
  });
@@ -5943,7 +5962,10 @@ var textlinkRecipe = (0, import_dev43.defineRecipe)({
5943
5962
  textDecoration: "underline"
5944
5963
  },
5945
5964
  _loading: {
5946
- background: "white"
5965
+ background: "white",
5966
+ _nextTheme: {
5967
+ background: "background.neutral"
5968
+ }
5947
5969
  }
5948
5970
  },
5949
5971
  variants: {
@@ -6034,6 +6056,85 @@ var textlinkRecipe = (0, import_dev43.defineRecipe)({
6034
6056
  }
6035
6057
  });
6036
6058
 
6059
+ // src/recipes/skeleton.ts
6060
+ var import_dev44 = require("@pandacss/dev");
6061
+ var skeletonRecipe = (0, import_dev44.defineRecipe)({
6062
+ className: "skeleton",
6063
+ jsx: ["MpSkeleton", "mp-skeleton"],
6064
+ base: {
6065
+ flexShrink: 0,
6066
+ animation: "shimmer var(--mp-shimmer-duration) infinite reverse",
6067
+ backgroundSize: "200%",
6068
+ pointerEvents: "none",
6069
+ userSelect: "none",
6070
+ _loading: {
6071
+ "& *": {
6072
+ visibility: "hidden"
6073
+ }
6074
+ }
6075
+ },
6076
+ variants: {
6077
+ color: {
6078
+ gray: {
6079
+ backgroundImage: "linear-gradient(90deg, #d0d6dd, #edf0f2 50%, #d0d6dd)",
6080
+ _nextTheme: {
6081
+ backgroundImage: "linear-gradient(90deg, {colors.icon.subtle}, {colors.icon.inverse} 50%, {colors.icon.subtle})"
6082
+ }
6083
+ },
6084
+ blue: {
6085
+ backgroundImage: "linear-gradient(90deg, #E0E9F7, #F5F9FF 50%, #E0E9F7)"
6086
+ },
6087
+ purple: {
6088
+ backgroundImage: "linear-gradient(90deg, #DCCFFF, #F3F0FD 50%, #DCCFFF)",
6089
+ _nextTheme: {
6090
+ backgroundImage: "linear-gradient(90deg, {colors.background.highlight}, {colors.background.highlight.hovered} 50%, {colors.background.highlight})"
6091
+ }
6092
+ }
6093
+ }
6094
+ },
6095
+ compoundVariants: [
6096
+ {
6097
+ color: ["gray", "blue", "purple"],
6098
+ css: {
6099
+ "&:is([data-has-children=true])": {
6100
+ "&:is([data-loading=false])": {
6101
+ background: "unset",
6102
+ pointerEvents: "auto",
6103
+ userSelect: "auto",
6104
+ "& *": {
6105
+ visibility: "visible"
6106
+ }
6107
+ }
6108
+ }
6109
+ }
6110
+ }
6111
+ ],
6112
+ defaultVariants: {
6113
+ color: "gray"
6114
+ }
6115
+ });
6116
+
6117
+ // src/recipes/scrollbar.ts
6118
+ var import_dev45 = require("@pandacss/dev");
6119
+ var scrollbarRecipe = (0, import_dev45.defineRecipe)({
6120
+ className: "skeleton",
6121
+ jsx: ["MpScrollbar", "mp-scrollbar"],
6122
+ base: {
6123
+ "& .os-scrollbar": {
6124
+ "--os-handle-bg": "colors.gray.100!",
6125
+ "--os-handle-bg-hover": "colors.gray.400!",
6126
+ "--os-handle-bg-active": "colors.gray.400!"
6127
+ },
6128
+ _nextTheme: {
6129
+ "& .os-scrollbar": {
6130
+ "--os-handle-bg": "colors.icon.subtle!",
6131
+ "--os-handle-bg-hover": "colors.icon.default!",
6132
+ "--os-handle-bg-active": "colors.icon.default!"
6133
+ }
6134
+ }
6135
+ }
6136
+ });
6137
+
6037
6138
  // src/recipes/index.ts
6038
6139
  var recipes = {
6039
6140
  buttonRecipe,
@@ -6062,7 +6163,9 @@ var recipes = {
6062
6163
  monthItemRecipe,
6063
6164
  yearItemRecipe,
6064
6165
  timeItemRecipe,
6065
- textlinkRecipe
6166
+ textlinkRecipe,
6167
+ skeletonRecipe,
6168
+ scrollbarRecipe
6066
6169
  };
6067
6170
  var slotRecipes = {
6068
6171
  accordionSlotRecipe,
@@ -6113,8 +6216,8 @@ var slotRecipes = {
6113
6216
  };
6114
6217
 
6115
6218
  // src/text-styles.ts
6116
- var import_dev44 = require("@pandacss/dev");
6117
- var textStyles = (0, import_dev44.defineTextStyles)({
6219
+ var import_dev46 = require("@pandacss/dev");
6220
+ var textStyles = (0, import_dev46.defineTextStyles)({
6118
6221
  overline: {
6119
6222
  value: {
6120
6223
  fontFamily: "var(--font-inter)",
@@ -6157,11 +6260,11 @@ var textStyles = (0, import_dev44.defineTextStyles)({
6157
6260
  });
6158
6261
 
6159
6262
  // src/tokens/index.ts
6160
- var import_dev55 = require("@pandacss/dev");
6263
+ var import_dev57 = require("@pandacss/dev");
6161
6264
 
6162
6265
  // src/tokens/borders.ts
6163
- var import_dev45 = require("@pandacss/dev");
6164
- var borderWidths = import_dev45.defineTokens.borderWidths({
6266
+ var import_dev47 = require("@pandacss/dev");
6267
+ var borderWidths = import_dev47.defineTokens.borderWidths({
6165
6268
  none: { value: "none" },
6166
6269
  sm: { value: "1px" },
6167
6270
  md: { value: "1.5px" },
@@ -6169,8 +6272,8 @@ var borderWidths = import_dev45.defineTokens.borderWidths({
6169
6272
  });
6170
6273
 
6171
6274
  // src/tokens/colors.ts
6172
- var import_dev46 = require("@pandacss/dev");
6173
- var colors = import_dev46.defineTokens.colors({
6275
+ var import_dev48 = require("@pandacss/dev");
6276
+ var colors = import_dev48.defineTokens.colors({
6174
6277
  debug: { value: "blue" },
6175
6278
  currentcolor: { value: "currentcolor" },
6176
6279
  dark: { value: "#232933" },
@@ -6312,16 +6415,16 @@ var colors = import_dev46.defineTokens.colors({
6312
6415
  });
6313
6416
 
6314
6417
  // src/tokens/durations.ts
6315
- var import_dev47 = require("@pandacss/dev");
6316
- var durations = import_dev47.defineTokens.durations({
6418
+ var import_dev49 = require("@pandacss/dev");
6419
+ var durations = import_dev49.defineTokens.durations({
6317
6420
  slow: { value: "100ms" },
6318
6421
  normal: { value: "250ms" },
6319
6422
  fast: { value: "300ms" }
6320
6423
  });
6321
6424
 
6322
6425
  // src/tokens/opacity.ts
6323
- var import_dev48 = require("@pandacss/dev");
6324
- var opacity = import_dev48.defineTokens.opacity({
6426
+ var import_dev50 = require("@pandacss/dev");
6427
+ var opacity = import_dev50.defineTokens.opacity({
6325
6428
  0: { value: 0 },
6326
6429
  40: { value: 0.4 },
6327
6430
  60: { value: 0.6 },
@@ -6329,8 +6432,8 @@ var opacity = import_dev48.defineTokens.opacity({
6329
6432
  });
6330
6433
 
6331
6434
  // src/tokens/radii.ts
6332
- var import_dev49 = require("@pandacss/dev");
6333
- var radii = import_dev49.defineTokens.radii({
6435
+ var import_dev51 = require("@pandacss/dev");
6436
+ var radii = import_dev51.defineTokens.radii({
6334
6437
  none: { value: "0" },
6335
6438
  xs: { value: "0.125rem", description: "2px" },
6336
6439
  sm: { value: "0.25rem", description: "4px" },
@@ -6341,8 +6444,8 @@ var radii = import_dev49.defineTokens.radii({
6341
6444
  });
6342
6445
 
6343
6446
  // src/tokens/shadows.ts
6344
- var import_dev50 = require("@pandacss/dev");
6345
- var shadows = import_dev50.defineTokens.shadows({
6447
+ var import_dev52 = require("@pandacss/dev");
6448
+ var shadows = import_dev52.defineTokens.shadows({
6346
6449
  xs: {
6347
6450
  value: ["0px 0px 2px 0px rgba(0, 0, 0, 0.12)", "0px 2px 4px 0px rgba(0, 0, 0, 0.14)"]
6348
6451
  },
@@ -6382,8 +6485,8 @@ var shadows = import_dev50.defineTokens.shadows({
6382
6485
  });
6383
6486
 
6384
6487
  // src/tokens/sizes.ts
6385
- var import_dev51 = require("@pandacss/dev");
6386
- var sizes = import_dev51.defineTokens.sizes({
6488
+ var import_dev53 = require("@pandacss/dev");
6489
+ var sizes = import_dev53.defineTokens.sizes({
6387
6490
  0: { value: "0" },
6388
6491
  0.25: { value: "0.0625rem" },
6389
6492
  0.5: { value: "0.125rem" },
@@ -6412,8 +6515,8 @@ var sizes = import_dev51.defineTokens.sizes({
6412
6515
  });
6413
6516
 
6414
6517
  // src/tokens/spacing.ts
6415
- var import_dev52 = require("@pandacss/dev");
6416
- var spacing = import_dev52.defineTokens.spacing({
6518
+ var import_dev54 = require("@pandacss/dev");
6519
+ var spacing = import_dev54.defineTokens.spacing({
6417
6520
  0: { value: "0" },
6418
6521
  0.5: { value: "0.125rem", description: "2px" },
6419
6522
  1: { value: "0.25rem", description: "4px" },
@@ -6434,8 +6537,8 @@ var spacing = import_dev52.defineTokens.spacing({
6434
6537
  });
6435
6538
 
6436
6539
  // src/tokens/z-index.ts
6437
- var import_dev53 = require("@pandacss/dev");
6438
- var zIndex = import_dev53.defineTokens.zIndex({
6540
+ var import_dev55 = require("@pandacss/dev");
6541
+ var zIndex = import_dev55.defineTokens.zIndex({
6439
6542
  hide: { value: -1 },
6440
6543
  base: { value: 0 },
6441
6544
  docked: { value: 10 },
@@ -6447,8 +6550,8 @@ var zIndex = import_dev53.defineTokens.zIndex({
6447
6550
  });
6448
6551
 
6449
6552
  // src/tokens/typography.ts
6450
- var import_dev54 = require("@pandacss/dev");
6451
- var fonts = import_dev54.defineTokens.fonts({
6553
+ var import_dev56 = require("@pandacss/dev");
6554
+ var fonts = import_dev56.defineTokens.fonts({
6452
6555
  body: {
6453
6556
  value: '"Inter", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif, Segoe UI, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
6454
6557
  },
@@ -6456,7 +6559,7 @@ var fonts = import_dev54.defineTokens.fonts({
6456
6559
  value: 'SFMono-Regular, Menlo, Monaco,Consolas, "Liberation Mono", "Courier New", monospace'
6457
6560
  }
6458
6561
  });
6459
- var fontSizes = import_dev54.defineTokens.fontSizes({
6562
+ var fontSizes = import_dev56.defineTokens.fontSizes({
6460
6563
  xs: { value: "0.625rem" },
6461
6564
  sm: { value: "0.75rem" },
6462
6565
  md: { value: "0.875rem" },
@@ -6464,12 +6567,12 @@ var fontSizes = import_dev54.defineTokens.fontSizes({
6464
6567
  xl: { value: "1.25rem" },
6465
6568
  "2xl": { value: "1.5rem" }
6466
6569
  });
6467
- var fontWeights = import_dev54.defineTokens.fontWeights({
6570
+ var fontWeights = import_dev56.defineTokens.fontWeights({
6468
6571
  regular: { value: "400" },
6469
6572
  semiBold: { value: "600" },
6470
6573
  bold: { value: "800" }
6471
6574
  });
6472
- var lineHeights = import_dev54.defineTokens.lineHeights({
6575
+ var lineHeights = import_dev56.defineTokens.lineHeights({
6473
6576
  xs: { value: 1.2 },
6474
6577
  sm: { value: 1.34 },
6475
6578
  md: { value: 1.43 },
@@ -6478,7 +6581,7 @@ var lineHeights = import_dev54.defineTokens.lineHeights({
6478
6581
  "2xl": { value: 1.67 },
6479
6582
  "3xl": { value: 1.71 }
6480
6583
  });
6481
- var letterSpacings = import_dev54.defineTokens.letterSpacings({
6584
+ var letterSpacings = import_dev56.defineTokens.letterSpacings({
6482
6585
  tighter: { value: "-0.05em" },
6483
6586
  tight: { value: "-0.025em" },
6484
6587
  normal: { value: "0" },
@@ -6488,7 +6591,7 @@ var letterSpacings = import_dev54.defineTokens.letterSpacings({
6488
6591
  });
6489
6592
 
6490
6593
  // src/tokens/index.ts
6491
- var tokens = (0, import_dev55.defineTokens)({
6594
+ var tokens = (0, import_dev57.defineTokens)({
6492
6595
  borderWidths,
6493
6596
  colors,
6494
6597
  durations,
@@ -6506,11 +6609,11 @@ var tokens = (0, import_dev55.defineTokens)({
6506
6609
  });
6507
6610
 
6508
6611
  // src/tokens-next/index.ts
6509
- var import_dev61 = require("@pandacss/dev");
6612
+ var import_dev63 = require("@pandacss/dev");
6510
6613
 
6511
6614
  // src/tokens-next/borders.ts
6512
- var import_dev56 = require("@pandacss/dev");
6513
- var borderWidths2 = import_dev56.defineTokens.borderWidths({
6615
+ var import_dev58 = require("@pandacss/dev");
6616
+ var borderWidths2 = import_dev58.defineTokens.borderWidths({
6514
6617
  none: { value: "none" },
6515
6618
  sm: { value: "1px" },
6516
6619
  md: { value: "1.5px" },
@@ -6520,8 +6623,8 @@ var borderWidths2 = import_dev56.defineTokens.borderWidths({
6520
6623
  });
6521
6624
 
6522
6625
  // src/tokens-next/colors.ts
6523
- var import_dev57 = require("@pandacss/dev");
6524
- var colors2 = import_dev57.defineTokens.colors({
6626
+ var import_dev59 = require("@pandacss/dev");
6627
+ var colors2 = import_dev59.defineTokens.colors({
6525
6628
  debug: { value: "red" },
6526
6629
  currentcolor: { value: "currentcolor" },
6527
6630
  white: { value: "#FFFFFF" },
@@ -6693,8 +6796,8 @@ var colors2 = import_dev57.defineTokens.colors({
6693
6796
  });
6694
6797
 
6695
6798
  // src/tokens-next/radii.ts
6696
- var import_dev58 = require("@pandacss/dev");
6697
- var radii2 = import_dev58.defineTokens.radii({
6799
+ var import_dev60 = require("@pandacss/dev");
6800
+ var radii2 = import_dev60.defineTokens.radii({
6698
6801
  none: { value: "0" },
6699
6802
  sm: { value: "0.25rem", description: "4px" },
6700
6803
  md: { value: "0.375rem", description: "6px" },
@@ -6704,8 +6807,8 @@ var radii2 = import_dev58.defineTokens.radii({
6704
6807
  });
6705
6808
 
6706
6809
  // src/tokens-next/spacing.ts
6707
- var import_dev59 = require("@pandacss/dev");
6708
- var spacing2 = import_dev59.defineTokens.spacing({
6810
+ var import_dev61 = require("@pandacss/dev");
6811
+ var spacing2 = import_dev61.defineTokens.spacing({
6709
6812
  0: { value: "0" },
6710
6813
  0.5: { value: "0.125rem", description: "2px" },
6711
6814
  1: { value: "0.25rem", description: "4px" },
@@ -6721,8 +6824,8 @@ var spacing2 = import_dev59.defineTokens.spacing({
6721
6824
  });
6722
6825
 
6723
6826
  // src/tokens-next/shadows.ts
6724
- var import_dev60 = require("@pandacss/dev");
6725
- var shadows2 = import_dev60.defineTokens.shadows({
6827
+ var import_dev62 = require("@pandacss/dev");
6828
+ var shadows2 = import_dev62.defineTokens.shadows({
6726
6829
  xs: {
6727
6830
  value: [
6728
6831
  "0px 2px 4px 0px {colors.background.shadow}",
@@ -6762,7 +6865,7 @@ var shadows2 = import_dev60.defineTokens.shadows({
6762
6865
  });
6763
6866
 
6764
6867
  // src/tokens-next/index.ts
6765
- var tokensNext = (0, import_dev61.defineTokens)({
6868
+ var tokensNext = (0, import_dev63.defineTokens)({
6766
6869
  borderWidths: borderWidths2,
6767
6870
  colors: colors2,
6768
6871
  durations,
@@ -6780,11 +6883,11 @@ var tokensNext = (0, import_dev61.defineTokens)({
6780
6883
  });
6781
6884
 
6782
6885
  // src/semanticTokens/index.ts
6783
- var import_dev64 = require("@pandacss/dev");
6886
+ var import_dev66 = require("@pandacss/dev");
6784
6887
 
6785
6888
  // src/semanticTokens/colors.ts
6786
- var import_dev62 = require("@pandacss/dev");
6787
- var colors3 = import_dev62.defineSemanticTokens.colors({
6889
+ var import_dev64 = require("@pandacss/dev");
6890
+ var colors3 = import_dev64.defineSemanticTokens.colors({
6788
6891
  background: {
6789
6892
  surface: {
6790
6893
  value: {
@@ -7710,8 +7813,8 @@ var colors3 = import_dev62.defineSemanticTokens.colors({
7710
7813
  });
7711
7814
 
7712
7815
  // src/semanticTokens/spacing.ts
7713
- var import_dev63 = require("@pandacss/dev");
7714
- var spacing3 = import_dev63.defineSemanticTokens.spacing({
7816
+ var import_dev65 = require("@pandacss/dev");
7817
+ var spacing3 = import_dev65.defineSemanticTokens.spacing({
7715
7818
  "4xs": {
7716
7819
  value: {
7717
7820
  base: "0.125rem"
@@ -7770,7 +7873,7 @@ var spacing3 = import_dev63.defineSemanticTokens.spacing({
7770
7873
  });
7771
7874
 
7772
7875
  // src/semanticTokens/index.ts
7773
- var semanticTokens = (0, import_dev64.defineSemanticTokens)({
7876
+ var semanticTokens = (0, import_dev66.defineSemanticTokens)({
7774
7877
  colors: colors3,
7775
7878
  spacing: spacing3
7776
7879
  });
@@ -7787,6 +7890,15 @@ var globalFontface = {
7787
7890
  fontWeight: "400"
7788
7891
  // fontDisplay: 'swap'
7789
7892
  },
7893
+ {
7894
+ src: [
7895
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-Italic.woff2") format("woff2")',
7896
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-Italic.ttf") format("truetype")'
7897
+ ],
7898
+ fontStyle: "italic",
7899
+ fontWeight: "400"
7900
+ // fontDisplay: 'swap'
7901
+ },
7790
7902
  {
7791
7903
  src: [
7792
7904
  'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBold.woff2") format("woff2")',
@@ -7809,7 +7921,7 @@ var globalFontface = {
7809
7921
  };
7810
7922
 
7811
7923
  // src/index.ts
7812
- var preset = (0, import_dev65.definePreset)({
7924
+ var preset = (0, import_dev67.definePreset)({
7813
7925
  name: "@mekari/pixel3-theme",
7814
7926
  // Main Theme
7815
7927
  theme: {
package/dist/index.mjs CHANGED
@@ -84,6 +84,10 @@ var keyframes = defineKeyframes({
84
84
  "0%": { backgroundPosition: "0% 20%" },
85
85
  "50%": { backgroundPosition: "100% 50%" },
86
86
  "100%": { backgroundPosition: "0% 100%" }
87
+ },
88
+ shimmer: {
89
+ from: { backgroundPosition: "-100% 0" },
90
+ to: { backgroundPosition: "100% 0" }
87
91
  }
88
92
  });
89
93
 
@@ -5295,18 +5299,33 @@ var timelineLogSlotRecipe = defineSlotRecipe27({
5295
5299
  color: "gray.400",
5296
5300
  _groupHover: {
5297
5301
  color: "blue.500"
5302
+ },
5303
+ _nextTheme: {
5304
+ color: "text.secondary",
5305
+ _groupHover: {
5306
+ color: "text.highlight"
5307
+ }
5298
5308
  }
5299
5309
  },
5300
5310
  logIcon: {
5301
5311
  color: "gray.400",
5302
- _groupHover: { color: "blue.500" }
5312
+ _groupHover: { color: "blue.500" },
5313
+ _nextTheme: {
5314
+ color: "icon.default",
5315
+ _groupHover: {
5316
+ color: "icon.highlight"
5317
+ }
5318
+ }
5303
5319
  },
5304
5320
  content: {
5305
- listStyleType: "disc",
5321
+ listStyleType: "none",
5306
5322
  paddingLeft: 5
5307
5323
  },
5308
5324
  logItem: {
5309
- color: "gray.600"
5325
+ color: "gray.600",
5326
+ _nextTheme: {
5327
+ color: "text.secondary"
5328
+ }
5310
5329
  }
5311
5330
  }
5312
5331
  });
@@ -5917,7 +5936,10 @@ var textlinkRecipe = defineRecipe14({
5917
5936
  textDecoration: "underline"
5918
5937
  },
5919
5938
  _loading: {
5920
- background: "white"
5939
+ background: "white",
5940
+ _nextTheme: {
5941
+ background: "background.neutral"
5942
+ }
5921
5943
  }
5922
5944
  },
5923
5945
  variants: {
@@ -6008,6 +6030,85 @@ var textlinkRecipe = defineRecipe14({
6008
6030
  }
6009
6031
  });
6010
6032
 
6033
+ // src/recipes/skeleton.ts
6034
+ import { defineRecipe as defineRecipe15 } from "@pandacss/dev";
6035
+ var skeletonRecipe = defineRecipe15({
6036
+ className: "skeleton",
6037
+ jsx: ["MpSkeleton", "mp-skeleton"],
6038
+ base: {
6039
+ flexShrink: 0,
6040
+ animation: "shimmer var(--mp-shimmer-duration) infinite reverse",
6041
+ backgroundSize: "200%",
6042
+ pointerEvents: "none",
6043
+ userSelect: "none",
6044
+ _loading: {
6045
+ "& *": {
6046
+ visibility: "hidden"
6047
+ }
6048
+ }
6049
+ },
6050
+ variants: {
6051
+ color: {
6052
+ gray: {
6053
+ backgroundImage: "linear-gradient(90deg, #d0d6dd, #edf0f2 50%, #d0d6dd)",
6054
+ _nextTheme: {
6055
+ backgroundImage: "linear-gradient(90deg, {colors.icon.subtle}, {colors.icon.inverse} 50%, {colors.icon.subtle})"
6056
+ }
6057
+ },
6058
+ blue: {
6059
+ backgroundImage: "linear-gradient(90deg, #E0E9F7, #F5F9FF 50%, #E0E9F7)"
6060
+ },
6061
+ purple: {
6062
+ backgroundImage: "linear-gradient(90deg, #DCCFFF, #F3F0FD 50%, #DCCFFF)",
6063
+ _nextTheme: {
6064
+ backgroundImage: "linear-gradient(90deg, {colors.background.highlight}, {colors.background.highlight.hovered} 50%, {colors.background.highlight})"
6065
+ }
6066
+ }
6067
+ }
6068
+ },
6069
+ compoundVariants: [
6070
+ {
6071
+ color: ["gray", "blue", "purple"],
6072
+ css: {
6073
+ "&:is([data-has-children=true])": {
6074
+ "&:is([data-loading=false])": {
6075
+ background: "unset",
6076
+ pointerEvents: "auto",
6077
+ userSelect: "auto",
6078
+ "& *": {
6079
+ visibility: "visible"
6080
+ }
6081
+ }
6082
+ }
6083
+ }
6084
+ }
6085
+ ],
6086
+ defaultVariants: {
6087
+ color: "gray"
6088
+ }
6089
+ });
6090
+
6091
+ // src/recipes/scrollbar.ts
6092
+ import { defineRecipe as defineRecipe16 } from "@pandacss/dev";
6093
+ var scrollbarRecipe = defineRecipe16({
6094
+ className: "skeleton",
6095
+ jsx: ["MpScrollbar", "mp-scrollbar"],
6096
+ base: {
6097
+ "& .os-scrollbar": {
6098
+ "--os-handle-bg": "colors.gray.100!",
6099
+ "--os-handle-bg-hover": "colors.gray.400!",
6100
+ "--os-handle-bg-active": "colors.gray.400!"
6101
+ },
6102
+ _nextTheme: {
6103
+ "& .os-scrollbar": {
6104
+ "--os-handle-bg": "colors.icon.subtle!",
6105
+ "--os-handle-bg-hover": "colors.icon.default!",
6106
+ "--os-handle-bg-active": "colors.icon.default!"
6107
+ }
6108
+ }
6109
+ }
6110
+ });
6111
+
6011
6112
  // src/recipes/index.ts
6012
6113
  var recipes = {
6013
6114
  buttonRecipe,
@@ -6036,7 +6137,9 @@ var recipes = {
6036
6137
  monthItemRecipe,
6037
6138
  yearItemRecipe,
6038
6139
  timeItemRecipe,
6039
- textlinkRecipe
6140
+ textlinkRecipe,
6141
+ skeletonRecipe,
6142
+ scrollbarRecipe
6040
6143
  };
6041
6144
  var slotRecipes = {
6042
6145
  accordionSlotRecipe,
@@ -7761,6 +7864,15 @@ var globalFontface = {
7761
7864
  fontWeight: "400"
7762
7865
  // fontDisplay: 'swap'
7763
7866
  },
7867
+ {
7868
+ src: [
7869
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-Italic.woff2") format("woff2")',
7870
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-Italic.ttf") format("truetype")'
7871
+ ],
7872
+ fontStyle: "italic",
7873
+ fontWeight: "400"
7874
+ // fontDisplay: 'swap'
7875
+ },
7764
7876
  {
7765
7877
  src: [
7766
7878
  'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBold.woff2") format("woff2")',
@@ -28,6 +28,8 @@ declare const recipes: {
28
28
  yearItemRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
29
29
  timeItemRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
30
30
  textlinkRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
31
+ skeletonRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
32
+ scrollbarRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
31
33
  };
32
34
  declare const slotRecipes: {
33
35
  accordionSlotRecipe: _pandacss_types.SlotRecipeConfig;
@@ -28,6 +28,8 @@ declare const recipes: {
28
28
  yearItemRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
29
29
  timeItemRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
30
30
  textlinkRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
31
+ skeletonRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
32
+ scrollbarRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
31
33
  };
32
34
  declare const slotRecipes: {
33
35
  accordionSlotRecipe: _pandacss_types.SlotRecipeConfig;
@@ -0,0 +1,5 @@
1
+ import * as _pandacss_dev from '@pandacss/dev';
2
+
3
+ declare const scrollbarRecipe: _pandacss_dev.RecipeConfig<_pandacss_dev.RecipeVariantRecord>;
4
+
5
+ export { scrollbarRecipe };
@@ -0,0 +1,5 @@
1
+ import * as _pandacss_dev from '@pandacss/dev';
2
+
3
+ declare const scrollbarRecipe: _pandacss_dev.RecipeConfig<_pandacss_dev.RecipeVariantRecord>;
4
+
5
+ export { scrollbarRecipe };
@@ -0,0 +1,5 @@
1
+ import * as _pandacss_dev from '@pandacss/dev';
2
+
3
+ declare const skeletonRecipe: _pandacss_dev.RecipeConfig<_pandacss_dev.RecipeVariantRecord>;
4
+
5
+ export { skeletonRecipe };
@@ -0,0 +1,5 @@
1
+ import * as _pandacss_dev from '@pandacss/dev';
2
+
3
+ declare const skeletonRecipe: _pandacss_dev.RecipeConfig<_pandacss_dev.RecipeVariantRecord>;
4
+
5
+ export { skeletonRecipe };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mekari/pixel3-theme",
3
3
  "description": "Theme for mekari pixel 3",
4
- "version": "0.2.3-dev.0",
4
+ "version": "0.3.0-dev.2",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",
7
7
  "files": [
package/src/fonts.ts CHANGED
@@ -9,6 +9,15 @@ export const globalFontface = {
9
9
  fontWeight: '400'
10
10
  // fontDisplay: 'swap'
11
11
  },
12
+ {
13
+ src: [
14
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-Italic.woff2") format("woff2")',
15
+ 'url("https://cdn.mekari.design/fonts/Inter/Inter-Italic.ttf") format("truetype")'
16
+ ],
17
+ fontStyle: 'italic',
18
+ fontWeight: '400'
19
+ // fontDisplay: 'swap'
20
+ },
12
21
  {
13
22
  src: [
14
23
  'url("https://cdn.mekari.design/fonts/Inter/Inter-SemiBold.woff2") format("woff2")',
package/src/keyframes.ts CHANGED
@@ -16,5 +16,9 @@ export const keyframes = defineKeyframes({
16
16
  '0%': { backgroundPosition: '0% 20%' },
17
17
  '50%': { backgroundPosition: '100% 50%' },
18
18
  '100%': { backgroundPosition: '0% 100%' }
19
+ },
20
+ shimmer: {
21
+ from: { backgroundPosition: '-100% 0' },
22
+ to: { backgroundPosition: '100% 0' }
19
23
  }
20
24
  })
@@ -65,6 +65,8 @@ import { colorPickerSlotRecipe } from './color-picker'
65
65
  import { sliderSlotRecipe } from './slider'
66
66
  import { tourSlotRecipe } from './tour'
67
67
  import { textlinkRecipe } from './textlink'
68
+ import { skeletonRecipe } from './skeleton'
69
+ import { scrollbarRecipe } from './scrollbar'
68
70
 
69
71
  export const recipes = {
70
72
  buttonRecipe,
@@ -93,7 +95,9 @@ export const recipes = {
93
95
  monthItemRecipe,
94
96
  yearItemRecipe,
95
97
  timeItemRecipe,
96
- textlinkRecipe
98
+ textlinkRecipe,
99
+ skeletonRecipe,
100
+ scrollbarRecipe
97
101
  }
98
102
 
99
103
  export const slotRecipes = {
@@ -0,0 +1,22 @@
1
+ import { defineRecipe } from '@pandacss/dev'
2
+
3
+ const scrollbarRecipe = defineRecipe({
4
+ className: 'skeleton',
5
+ jsx: ['MpScrollbar', 'mp-scrollbar'],
6
+ base: {
7
+ '& .os-scrollbar': {
8
+ '--os-handle-bg': 'colors.gray.100!',
9
+ '--os-handle-bg-hover': 'colors.gray.400!',
10
+ '--os-handle-bg-active': 'colors.gray.400!'
11
+ },
12
+ _nextTheme: {
13
+ '& .os-scrollbar': {
14
+ '--os-handle-bg': 'colors.icon.subtle!',
15
+ '--os-handle-bg-hover': 'colors.icon.default!',
16
+ '--os-handle-bg-active': 'colors.icon.default!'
17
+ }
18
+ }
19
+ }
20
+ })
21
+
22
+ export { scrollbarRecipe }
@@ -0,0 +1,62 @@
1
+ import { defineRecipe } from '@pandacss/dev'
2
+
3
+ const skeletonRecipe = defineRecipe({
4
+ className: 'skeleton',
5
+ jsx: ['MpSkeleton', 'mp-skeleton'],
6
+ base: {
7
+ flexShrink: 0,
8
+ animation: 'shimmer var(--mp-shimmer-duration) infinite reverse',
9
+ backgroundSize: '200%',
10
+ pointerEvents: 'none',
11
+ userSelect: 'none',
12
+
13
+ _loading: {
14
+ '& *': {
15
+ visibility: 'hidden'
16
+ }
17
+ }
18
+ },
19
+ variants: {
20
+ color: {
21
+ gray: {
22
+ backgroundImage: 'linear-gradient(90deg, #d0d6dd, #edf0f2 50%, #d0d6dd)',
23
+ _nextTheme: {
24
+ backgroundImage:
25
+ 'linear-gradient(90deg, {colors.icon.subtle}, {colors.icon.inverse} 50%, {colors.icon.subtle})'
26
+ }
27
+ },
28
+ blue: {
29
+ backgroundImage: 'linear-gradient(90deg, #E0E9F7, #F5F9FF 50%, #E0E9F7)'
30
+ },
31
+ purple: {
32
+ backgroundImage: 'linear-gradient(90deg, #DCCFFF, #F3F0FD 50%, #DCCFFF)',
33
+ _nextTheme: {
34
+ backgroundImage:
35
+ 'linear-gradient(90deg, {colors.background.highlight}, {colors.background.highlight.hovered} 50%, {colors.background.highlight})'
36
+ }
37
+ }
38
+ }
39
+ },
40
+ compoundVariants: [
41
+ {
42
+ color: ['gray', 'blue', 'purple'],
43
+ css: {
44
+ '&:is([data-has-children=true])': {
45
+ '&:is([data-loading=false])': {
46
+ background: 'unset',
47
+ pointerEvents: 'auto',
48
+ userSelect: 'auto',
49
+ '& *': {
50
+ visibility: 'visible'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ ],
57
+ defaultVariants: {
58
+ color: 'gray'
59
+ }
60
+ })
61
+
62
+ export { skeletonRecipe }
@@ -14,7 +14,10 @@ const textlinkRecipe = defineRecipe({
14
14
  textDecoration: 'underline'
15
15
  },
16
16
  _loading: {
17
- background: 'white'
17
+ background: 'white',
18
+ _nextTheme: {
19
+ background: 'background.neutral'
20
+ }
18
21
  }
19
22
  },
20
23
  variants: {
@@ -101,7 +104,7 @@ const textlinkRecipe = defineRecipe({
101
104
  }
102
105
  ],
103
106
  defaultVariants: {
104
- variant: 'primary',
107
+ variant: 'primary'
105
108
  }
106
109
  })
107
110
 
@@ -121,18 +121,33 @@ const timelineLogSlotRecipe = defineSlotRecipe({
121
121
  color: 'gray.400',
122
122
  _groupHover: {
123
123
  color: 'blue.500'
124
+ },
125
+ _nextTheme: {
126
+ color: 'text.secondary',
127
+ _groupHover: {
128
+ color: 'text.highlight'
129
+ }
124
130
  }
125
131
  },
126
132
  logIcon: {
127
133
  color: 'gray.400',
128
- _groupHover: { color: 'blue.500' }
134
+ _groupHover: { color: 'blue.500' },
135
+ _nextTheme: {
136
+ color: 'icon.default',
137
+ _groupHover: {
138
+ color: 'icon.highlight'
139
+ }
140
+ }
129
141
  },
130
142
  content: {
131
- listStyleType: 'disc',
143
+ listStyleType: 'none',
132
144
  paddingLeft: 5
133
145
  },
134
146
  logItem: {
135
- color: 'gray.600'
147
+ color: 'gray.600',
148
+ _nextTheme: {
149
+ color: 'text.secondary'
150
+ }
136
151
  }
137
152
  }
138
153
  })