@charmland/gem 0.1.0 → 0.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.
@@ -1,43 +1,42 @@
1
- @import url("https://stuff.charm.land/fonts/charmform/charmform.css");
2
1
  @font-face {
3
- font-family: "Fraktion Mono Web";
4
- src: url("../../assets/fonts/PPFraktionMono-Variable.ttf") format("truetype-variations");
5
- font-weight: 200 800;
2
+ font-family: "JetBrains Mono";
3
+ src: url("https://stuff.charm.land/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2") format("woff2");
4
+ font-weight: 400;
6
5
  font-style: normal;
7
6
  font-display: swap;
8
7
  }
9
8
  @font-face {
10
- font-family: "Fraktion Mono Web";
11
- src: url("../../assets/fonts/PPFraktionMonoItalic-Variable.ttf") format("truetype-variations");
12
- font-weight: 200 800;
9
+ font-family: "JetBrains Mono";
10
+ src: url("https://stuff.charm.land/fonts/jetbrains-mono/JetBrainsMono-Italic.woff2") format("woff2");
11
+ font-weight: 400;
13
12
  font-style: italic;
14
13
  font-display: swap;
15
14
  }
16
15
  @font-face {
17
- font-family: "Fraktion Sans Web";
18
- src: url("../../assets/fonts/PPFraktionSans-Variable.ttf") format("truetype-variations");
19
- font-weight: 200 800;
16
+ font-family: "JetBrains Mono";
17
+ src: url("https://stuff.charm.land/fonts/jetbrains-mono/JetBrainsMono-Medium.woff2") format("woff2");
18
+ font-weight: 500;
20
19
  font-style: normal;
21
20
  font-display: swap;
22
21
  }
23
22
  @font-face {
24
- font-family: "Fraktion Sans Web";
25
- src: url("../../assets/fonts/PPFraktionSansItalic-Variable.ttf") format("truetype-variations");
26
- font-weight: 200 800;
23
+ font-family: "JetBrains Mono";
24
+ src: url("https://stuff.charm.land/fonts/jetbrains-mono/JetBrainsMono-Medium-Italic.woff2") format("woff2");
25
+ font-weight: 500;
27
26
  font-style: italic;
28
27
  font-display: swap;
29
28
  }
30
29
  @font-face {
31
- font-family: "Hypography Web";
32
- src: url("../../assets/fonts/Hypography-Regular.woff2") format("woff2");
33
- font-weight: 400;
30
+ font-family: "JetBrains Mono";
31
+ src: url("https://stuff.charm.land/fonts/jetbrains-mono/JetBrainsMono-Bold.woff2") format("woff2");
32
+ font-weight: 700;
34
33
  font-style: normal;
35
34
  font-display: swap;
36
35
  }
37
36
  @font-face {
38
- font-family: "Hypography Web";
39
- src: url("../../assets/fonts/Hypography-Italic.woff2") format("woff2");
40
- font-weight: 400;
37
+ font-family: "JetBrains Mono";
38
+ src: url("https://stuff.charm.land/fonts/jetbrains-mono/JetBrainsMono-Bold-Italic.woff2") format("woff2");
39
+ font-weight: 700;
41
40
  font-style: italic;
42
41
  font-display: swap;
43
42
  }
@@ -664,7 +663,7 @@ textarea:focus-visible {
664
663
  }
665
664
 
666
665
  input.code {
667
- font-family: "JetBrains Mono Variable", ui-monospace, monospace;
666
+ font-family: "JetBrains Mono", ui-monospace, monospace;
668
667
  letter-spacing: 0.08em;
669
668
  }
670
669
 
@@ -1296,6 +1295,7 @@ button.copy.done {
1296
1295
 
1297
1296
  .tabs {
1298
1297
  --tabs-pad: 0.25rem;
1298
+ --tabs-radius: calc(0.5rem * var(--squircle-scale, 1));
1299
1299
  position: relative;
1300
1300
  display: inline-flex;
1301
1301
  align-self: flex-start;
@@ -1311,7 +1311,7 @@ button.copy.done {
1311
1311
  bottom: var(--tabs-pad);
1312
1312
  left: 0;
1313
1313
  z-index: 0;
1314
- border-radius: calc(0.5rem * var(--squircle-scale, 1));
1314
+ border-radius: var(--tabs-radius);
1315
1315
  background: #6b50ff;
1316
1316
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.3, 1), width 220ms cubic-bezier(0.2, 0.9, 0.3, 1);
1317
1317
  }
@@ -1328,7 +1328,7 @@ button.copy.done {
1328
1328
  background: transparent;
1329
1329
  color: var(--muted);
1330
1330
  font-size: 0.875rem;
1331
- transition: background 125ms ease, border-color 125ms ease, color 125ms ease;
1331
+ transition: border-color 125ms ease;
1332
1332
  }
1333
1333
  .tabs button svg {
1334
1334
  display: block;
@@ -1348,9 +1348,6 @@ button.copy.done {
1348
1348
  border-color: transparent;
1349
1349
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 20%, transparent);
1350
1350
  }
1351
- .tabs:not(.measured):not(.underline) button.active {
1352
- background: #6b50ff;
1353
- }
1354
1351
  .tabs.compact {
1355
1352
  height: 2.25rem;
1356
1353
  --tabs-pad: 0.2rem;
@@ -1359,6 +1356,10 @@ button.copy.done {
1359
1356
  padding-inline: 1rem;
1360
1357
  font-size: 0.8125rem;
1361
1358
  }
1359
+ .tabs:not(.measured):not(.underline) button.active {
1360
+ background: #6b50ff;
1361
+ border-radius: var(--tabs-radius);
1362
+ }
1362
1363
  .tabs.underline {
1363
1364
  height: auto;
1364
1365
  padding: 0;
@@ -2158,7 +2159,7 @@ button.copy.done {
2158
2159
  border-radius: calc(0.5rem * var(--squircle-scale, 1));
2159
2160
  background: var(--well);
2160
2161
  color: var(--fg);
2161
- font-family: "JetBrains Mono Variable", ui-monospace, monospace;
2162
+ font-family: "JetBrains Mono", ui-monospace, monospace;
2162
2163
  font-weight: 500;
2163
2164
  font-size: 0.875rem;
2164
2165
  line-height: 1.4;
@@ -2437,7 +2438,7 @@ button.copy.done {
2437
2438
  background: #8b75ff;
2438
2439
  color: var(--card-fg, #f7f6fb);
2439
2440
  box-shadow: 0 0.1rem 0.3rem rgba(32, 31, 38, 0.28);
2440
- font-family: "JetBrains Mono Variable", ui-monospace, monospace;
2441
+ font-family: "JetBrains Mono", ui-monospace, monospace;
2441
2442
  font-size: 0.625rem;
2442
2443
  font-weight: 620;
2443
2444
  line-height: 1.4;
@@ -3433,7 +3434,7 @@ a.social.disabled {
3433
3434
  gap: 0.5rem;
3434
3435
  text-decoration: none;
3435
3436
  color: var(--fg);
3436
- font-family: "Hypography Web", "Charmform Web", system-ui, sans-serif;
3437
+ font-family: "Charmform Web", system-ui, sans-serif;
3437
3438
  font-size: 1.5rem;
3438
3439
  letter-spacing: -0.02em;
3439
3440
  }
@@ -3443,6 +3444,10 @@ a.social.disabled {
3443
3444
  max-width: 60vw;
3444
3445
  height: auto;
3445
3446
  }
3447
+ .burger .burger-logo > *:first-child .site-brand:has(.site-brand-text) .site-logo {
3448
+ width: auto;
3449
+ height: 2.5rem;
3450
+ }
3446
3451
  .burger .burger-logo svg.logo {
3447
3452
  width: 14.21rem;
3448
3453
  height: auto;
@@ -3573,15 +3578,13 @@ a.social.disabled {
3573
3578
  display: inline-flex;
3574
3579
  align-items: center;
3575
3580
  gap: 0.45rem;
3576
- font-family: "Hypography Web", "Charmform Web", system-ui, sans-serif;
3581
+ font-family: "Charmform Web", system-ui, sans-serif;
3577
3582
  font-size: 1.35rem;
3583
+ font-weight: 800;
3578
3584
  color: var(--fg);
3579
3585
  text-decoration: none;
3580
3586
  flex-shrink: 0;
3581
3587
  }
3582
- .docs-header .docs-header-title span {
3583
- color: #ff84ff;
3584
- }
3585
3588
  .docs-header .docs-header-title .sprout-mark {
3586
3589
  margin-top: -0.1rem;
3587
3590
  }
@@ -3608,6 +3611,12 @@ a.social.disabled {
3608
3611
  margin-left: auto;
3609
3612
  }
3610
3613
 
3614
+ .site-brand {
3615
+ display: inline-flex;
3616
+ align-items: center;
3617
+ gap: 0.45rem;
3618
+ }
3619
+
3611
3620
  .docs-page {
3612
3621
  position: relative;
3613
3622
  max-width: 60rem;
@@ -3688,7 +3697,7 @@ a.social.disabled {
3688
3697
 
3689
3698
  .docs-eof-mark {
3690
3699
  display: block;
3691
- font-family: "Fraktion Mono Web", ui-monospace, monospace;
3700
+ font-family: "JetBrains Mono", ui-monospace, monospace;
3692
3701
  font-size: 0.875rem;
3693
3702
  font-weight: 640;
3694
3703
  letter-spacing: 0.16em;
@@ -3720,7 +3729,7 @@ a.social.disabled {
3720
3729
  border-radius: calc(0.4rem * var(--squircle-scale, 1));
3721
3730
  background: var(--well);
3722
3731
  color: var(--fg);
3723
- font-family: "Fraktion Mono Web", ui-monospace, monospace;
3732
+ font-family: "JetBrains Mono", ui-monospace, monospace;
3724
3733
  font-size: 0.8125rem;
3725
3734
  overflow-wrap: anywhere;
3726
3735
  }
@@ -3823,12 +3832,12 @@ a.social.disabled {
3823
3832
  background: color-mix(in srgb, var(--fg) 25%, transparent);
3824
3833
  }
3825
3834
  .swatch-grid .swatch-tile .swatch-name {
3826
- font-family: "JetBrains Mono Variable", ui-monospace, monospace;
3835
+ font-family: "JetBrains Mono", ui-monospace, monospace;
3827
3836
  font-size: 0.75rem;
3828
3837
  font-weight: 620;
3829
3838
  }
3830
3839
  .swatch-grid .swatch-tile .swatch-hex {
3831
- font-family: "JetBrains Mono Variable", ui-monospace, monospace;
3840
+ font-family: "JetBrains Mono", ui-monospace, monospace;
3832
3841
  font-size: 0.6875rem;
3833
3842
  color: var(--muted);
3834
3843
  }
@@ -3928,6 +3937,7 @@ ul.rows .list-row + .list-row {
3928
3937
  .docs-with-toc .docs-toc-sticky {
3929
3938
  display: flex;
3930
3939
  align-items: center;
3940
+ min-height: 2.3125rem;
3931
3941
  padding: 0.55rem 0.9rem;
3932
3942
  }
3933
3943
  .docs-with-toc .docs-toc-sticky > .toc {
@@ -3990,6 +4000,17 @@ ul.rows .list-row + .list-row {
3990
4000
  font-weight: 800;
3991
4001
  font-variation-settings: "OPTK" -10;
3992
4002
  outline: none;
4003
+ scroll-margin-top: calc(3.8125rem + 0.5rem);
4004
+ }
4005
+ @media (max-width: 1024px) {
4006
+ .md .md-h1,
4007
+ .md .md-h2,
4008
+ .md .md-h3,
4009
+ .md .md-h4,
4010
+ .md .md-h5,
4011
+ .md .md-h6 {
4012
+ scroll-margin-top: calc(3.8125rem + 2.3125rem + 0.5rem);
4013
+ }
3993
4014
  }
3994
4015
  .md .md-h1 {
3995
4016
  margin: 2rem 0 0.75rem;
@@ -4078,7 +4099,7 @@ ul.rows .list-row + .list-row {
4078
4099
  color: #ff84ff;
4079
4100
  }
4080
4101
  .site-footer .site-footer-wordmark {
4081
- font-family: "Hypography Web", "Charmform Web", system-ui, sans-serif;
4102
+ font-family: "Charmform Web", system-ui, sans-serif;
4082
4103
  font-size: 2.25rem;
4083
4104
  letter-spacing: -0.03em;
4084
4105
  color: #ff84ff;
@@ -4303,7 +4324,7 @@ ul.rows .list-row + .list-row {
4303
4324
  }
4304
4325
  .search-modal .search-item .detail {
4305
4326
  color: var(--tertiary);
4306
- font-family: "Fraktion Mono Web", ui-monospace, monospace;
4327
+ font-family: "JetBrains Mono", ui-monospace, monospace;
4307
4328
  font-size: 0.65rem;
4308
4329
  letter-spacing: 0.06em;
4309
4330
  text-transform: uppercase;
@@ -4371,6 +4392,63 @@ ul.rows .list-row + .list-row {
4371
4392
  border-radius: 0.5rem;
4372
4393
  }
4373
4394
 
4395
+ .md-image[role=button] {
4396
+ cursor: zoom-in;
4397
+ }
4398
+
4399
+ :root.gem-lightbox-open {
4400
+ overflow: hidden;
4401
+ padding-right: var(--gem-lightbox-gap, 0px);
4402
+ }
4403
+
4404
+ .gem-lightbox {
4405
+ position: fixed;
4406
+ inset: 0;
4407
+ z-index: 240;
4408
+ display: flex;
4409
+ align-items: center;
4410
+ justify-content: center;
4411
+ padding: clamp(0.5rem, 2vw, 1.5rem);
4412
+ }
4413
+ .gem-lightbox[hidden] {
4414
+ display: none;
4415
+ }
4416
+ .gem-lightbox:focus {
4417
+ outline: none;
4418
+ }
4419
+ .gem-lightbox::before {
4420
+ content: "";
4421
+ position: absolute;
4422
+ inset: 0;
4423
+ background: color-mix(in srgb, var(--bg) 55%, transparent);
4424
+ backdrop-filter: blur(0.75rem);
4425
+ -webkit-backdrop-filter: blur(0.75rem);
4426
+ opacity: 0;
4427
+ transition: opacity 300ms ease;
4428
+ }
4429
+ .gem-lightbox.open::before {
4430
+ opacity: 1;
4431
+ }
4432
+
4433
+ .gem-lightbox-image {
4434
+ position: relative;
4435
+ max-width: min(94vw, 1600px);
4436
+ max-height: 90vh;
4437
+ border-radius: calc(0.75rem * var(--squircle-scale, 1));
4438
+ box-shadow: 0 1.5rem 4rem rgba(58, 57, 67, 0.45);
4439
+ cursor: zoom-out;
4440
+ }
4441
+
4442
+ @media (max-width: 768px) {
4443
+ .gem-lightbox {
4444
+ padding: 0;
4445
+ }
4446
+ .gem-lightbox-image {
4447
+ max-width: 100vw;
4448
+ max-height: 100vh;
4449
+ border-radius: 0;
4450
+ }
4451
+ }
4374
4452
  .md-quote {
4375
4453
  margin: 1rem 0;
4376
4454
  padding-left: 1rem;
@@ -4478,7 +4556,7 @@ ul.rows .list-row + .list-row {
4478
4556
 
4479
4557
  .code-title {
4480
4558
  overflow: hidden;
4481
- font-family: "Fraktion Mono Web", ui-monospace, monospace;
4559
+ font-family: "JetBrains Mono", ui-monospace, monospace;
4482
4560
  font-size: 0.72rem;
4483
4561
  font-weight: 600;
4484
4562
  color: var(--fg);
@@ -4495,7 +4573,7 @@ ul.rows .list-row + .list-row {
4495
4573
  border-color: transparent;
4496
4574
  background: transparent;
4497
4575
  color: var(--tertiary);
4498
- font-family: "Fraktion Mono Web", ui-monospace, monospace;
4576
+ font-family: "JetBrains Mono", ui-monospace, monospace;
4499
4577
  font-size: 0.6875rem;
4500
4578
  font-weight: 520;
4501
4579
  letter-spacing: 0.06em;
@@ -4529,7 +4607,7 @@ ul.rows .list-row + .list-row {
4529
4607
  .code-block pre {
4530
4608
  margin: 0;
4531
4609
  padding: 0.9rem 1.15rem 1rem 0.5rem;
4532
- font-family: "JetBrains Mono Variable", ui-monospace, monospace;
4610
+ font-family: "JetBrains Mono", ui-monospace, monospace;
4533
4611
  font-size: 0.8125rem;
4534
4612
  line-height: 1.7;
4535
4613
  color: var(--fg);
@@ -4608,14 +4686,14 @@ ul.rows .list-row + .list-row {
4608
4686
  background: color-mix(in srgb, var(--fg) 6%, transparent);
4609
4687
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
4610
4688
  border-radius: calc(0.3rem * var(--squircle-scale, 1));
4611
- font-family: "JetBrains Mono Variable", ui-monospace, monospace;
4689
+ font-family: "JetBrains Mono", ui-monospace, monospace;
4612
4690
  font-size: 0.82em;
4613
4691
  color: var(--fg);
4614
4692
  white-space: nowrap;
4615
4693
  }
4616
4694
 
4617
4695
  .gem-raw {
4618
- font-family: "Fraktion Mono Web", ui-monospace, monospace;
4696
+ font-family: "JetBrains Mono", ui-monospace, monospace;
4619
4697
  font-size: 0.8125rem;
4620
4698
  color: var(--tertiary);
4621
4699
  }
@@ -4630,7 +4708,7 @@ ul.rows .list-row + .list-row {
4630
4708
  content: "unregistered component: " attr(data-component);
4631
4709
  display: block;
4632
4710
  margin-bottom: 0.35rem;
4633
- font-family: "Fraktion Mono Web", ui-monospace, monospace;
4711
+ font-family: "JetBrains Mono", ui-monospace, monospace;
4634
4712
  font-size: 0.7rem;
4635
4713
  color: var(--tertiary);
4636
4714
  }
@@ -4638,7 +4716,7 @@ ul.rows .list-row + .list-row {
4638
4716
  .gem-error {
4639
4717
  margin: 2rem;
4640
4718
  padding: 1rem;
4641
- font-family: "Fraktion Mono Web", ui-monospace, monospace;
4719
+ font-family: "JetBrains Mono", ui-monospace, monospace;
4642
4720
  font-size: 0.8125rem;
4643
4721
  white-space: pre-wrap;
4644
4722
  color: var(--fg);