lookbook 1.3.1 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/lookbook/css/themes/blue.css +3 -1
  3. data/app/assets/lookbook/css/themes/green.css +66 -0
  4. data/app/assets/lookbook/css/themes/indigo.css +3 -1
  5. data/app/assets/lookbook/css/themes/rose.css +66 -0
  6. data/app/assets/lookbook/css/themes/zinc.css +3 -1
  7. data/app/components/lookbook/base_component.rb +2 -2
  8. data/app/components/lookbook/code/component.css +2 -2
  9. data/app/components/lookbook/code/component.html.erb +2 -1
  10. data/app/components/lookbook/code/component.rb +15 -2
  11. data/app/components/lookbook/code/highlight_github.css +406 -0
  12. data/app/components/lookbook/nav/item/component.html.erb +1 -1
  13. data/app/components/lookbook/params/editor/component.html.erb +2 -2
  14. data/app/components/lookbook/params/field/component.css +3 -3
  15. data/app/components/lookbook/split_layout/component.html.erb +1 -1
  16. data/app/components/lookbook/tag_component.rb +1 -1
  17. data/app/components/lookbook/viewport/component.css +1 -1
  18. data/app/components/lookbook/viewport/component.html.erb +1 -1
  19. data/app/components/lookbook/viewport/component.rb +1 -1
  20. data/app/controllers/concerns/lookbook/targetable_concern.rb +2 -2
  21. data/app/helpers/lookbook/application_helper.rb +1 -1
  22. data/app/views/lookbook/inspector/panels/_notes.html.erb +2 -2
  23. data/app/views/lookbook/inspector/panels/_params.html.erb +1 -1
  24. data/config/app.yml +3 -0
  25. data/lib/lookbook/page.rb +1 -1
  26. data/lib/lookbook/services/code/code_beautifier.rb +1 -1
  27. data/lib/lookbook/services/code/code_highlighter.rb +1 -1
  28. data/lib/lookbook/stores/config_store.rb +5 -1
  29. data/lib/lookbook/stores/panel_store.rb +2 -2
  30. data/lib/lookbook/support/store.rb +1 -1
  31. data/lib/lookbook/tags/position_tag.rb +1 -1
  32. data/lib/lookbook/theme.rb +8 -0
  33. data/lib/lookbook/version.rb +1 -1
  34. data/public/lookbook-assets/css/lookbook.css +426 -315
  35. data/public/lookbook-assets/css/lookbook.css.map +1 -1
  36. data/public/lookbook-assets/css/themes/blue.css +3 -1
  37. data/public/lookbook-assets/css/themes/blue.css.map +1 -1
  38. data/public/lookbook-assets/css/themes/green.css +68 -0
  39. data/public/lookbook-assets/css/themes/green.css.map +1 -0
  40. data/public/lookbook-assets/css/themes/indigo.css +3 -1
  41. data/public/lookbook-assets/css/themes/indigo.css.map +1 -1
  42. data/public/lookbook-assets/css/themes/rose.css +68 -0
  43. data/public/lookbook-assets/css/themes/rose.css.map +1 -0
  44. data/public/lookbook-assets/css/themes/zinc.css +3 -1
  45. data/public/lookbook-assets/css/themes/zinc.css.map +1 -1
  46. data/public/lookbook-assets/js/embed.js +9 -0
  47. data/public/lookbook-assets/js/embed.js.map +1 -1
  48. data/public/lookbook-assets/js/lookbook.js +291 -569
  49. data/public/lookbook-assets/js/lookbook.js.map +1 -1
  50. metadata +9 -3
  51. data/app/components/lookbook/code/highlight_github_light.css +0 -217
@@ -10,6 +10,7 @@
10
10
  html {
11
11
  -webkit-text-size-adjust: 100%;
12
12
  tab-size: 4;
13
+ font-feature-settings: normal;
13
14
  font-family: -apple-system, \.SFNSText-Regular, San Francisco, BlinkMacSystemFont, Segoe UI, Helvetica Neue, Helvetica, Arial, sans-serif;
14
15
  line-height: 1.5;
15
16
  }
@@ -242,6 +243,7 @@ select {
242
243
  appearance: none;
243
244
  print-color-adjust: exact;
244
245
  vertical-align: middle;
246
+ -webkit-user-select: none;
245
247
  user-select: none;
246
248
  height: 1rem;
247
249
  width: 1rem;
@@ -1034,24 +1036,24 @@ pre[class*="language-"] {
1034
1036
  padding-left: .428571em;
1035
1037
  }
1036
1038
 
1037
- .prose-sm :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) {
1039
+ .prose-sm :where(.prose-sm > ul > li p):not(:where([class~="not-prose"] *)) {
1038
1040
  margin-top: .571429em;
1039
1041
  margin-bottom: .571429em;
1040
1042
  }
1041
1043
 
1042
- .prose-sm :where(.prose > ul > li > :first-child):not(:where([class~="not-prose"] *)) {
1044
+ .prose-sm :where(.prose-sm > ul > li > :first-child):not(:where([class~="not-prose"] *)) {
1043
1045
  margin-top: 1.14286em;
1044
1046
  }
1045
1047
 
1046
- .prose-sm :where(.prose > ul > li > :last-child):not(:where([class~="not-prose"] *)) {
1048
+ .prose-sm :where(.prose-sm > ul > li > :last-child):not(:where([class~="not-prose"] *)) {
1047
1049
  margin-bottom: 1.14286em;
1048
1050
  }
1049
1051
 
1050
- .prose-sm :where(.prose > ol > li > :first-child):not(:where([class~="not-prose"] *)) {
1052
+ .prose-sm :where(.prose-sm > ol > li > :first-child):not(:where([class~="not-prose"] *)) {
1051
1053
  margin-top: 1.14286em;
1052
1054
  }
1053
1055
 
1054
- .prose-sm :where(.prose > ol > li > :last-child):not(:where([class~="not-prose"] *)) {
1056
+ .prose-sm :where(.prose-sm > ol > li > :last-child):not(:where([class~="not-prose"] *)) {
1055
1057
  margin-bottom: 1.14286em;
1056
1058
  }
1057
1059
 
@@ -1112,40 +1114,11 @@ pre[class*="language-"] {
1112
1114
  padding-right: 0;
1113
1115
  }
1114
1116
 
1115
- .prose-sm :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
1117
+ .prose-sm :where(.prose-sm > :first-child):not(:where([class~="not-prose"] *)) {
1116
1118
  margin-top: 0;
1117
1119
  }
1118
1120
 
1119
- .prose-sm :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
1120
- margin-bottom: 0;
1121
- }
1122
-
1123
- .prose-base :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) {
1124
- margin-top: .75em;
1125
- margin-bottom: .75em;
1126
- }
1127
-
1128
- .prose-base :where(.prose > ul > li > :first-child):not(:where([class~="not-prose"] *)) {
1129
- margin-top: 1.25em;
1130
- }
1131
-
1132
- .prose-base :where(.prose > ul > li > :last-child):not(:where([class~="not-prose"] *)) {
1133
- margin-bottom: 1.25em;
1134
- }
1135
-
1136
- .prose-base :where(.prose > ol > li > :first-child):not(:where([class~="not-prose"] *)) {
1137
- margin-top: 1.25em;
1138
- }
1139
-
1140
- .prose-base :where(.prose > ol > li > :last-child):not(:where([class~="not-prose"] *)) {
1141
- margin-bottom: 1.25em;
1142
- }
1143
-
1144
- .prose-base :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
1145
- margin-top: 0;
1146
- }
1147
-
1148
- .prose-base :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
1121
+ .prose-sm :where(.prose-sm > :last-child):not(:where([class~="not-prose"] *)) {
1149
1122
  margin-bottom: 0;
1150
1123
  }
1151
1124
 
@@ -1271,24 +1244,24 @@ pre[class*="language-"] {
1271
1244
  padding-left: .444444em;
1272
1245
  }
1273
1246
 
1274
- .prose-lg :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) {
1247
+ .prose-lg :where(.prose-lg > ul > li p):not(:where([class~="not-prose"] *)) {
1275
1248
  margin-top: .888889em;
1276
1249
  margin-bottom: .888889em;
1277
1250
  }
1278
1251
 
1279
- .prose-lg :where(.prose > ul > li > :first-child):not(:where([class~="not-prose"] *)) {
1252
+ .prose-lg :where(.prose-lg > ul > li > :first-child):not(:where([class~="not-prose"] *)) {
1280
1253
  margin-top: 1.33333em;
1281
1254
  }
1282
1255
 
1283
- .prose-lg :where(.prose > ul > li > :last-child):not(:where([class~="not-prose"] *)) {
1256
+ .prose-lg :where(.prose-lg > ul > li > :last-child):not(:where([class~="not-prose"] *)) {
1284
1257
  margin-bottom: 1.33333em;
1285
1258
  }
1286
1259
 
1287
- .prose-lg :where(.prose > ol > li > :first-child):not(:where([class~="not-prose"] *)) {
1260
+ .prose-lg :where(.prose-lg > ol > li > :first-child):not(:where([class~="not-prose"] *)) {
1288
1261
  margin-top: 1.33333em;
1289
1262
  }
1290
1263
 
1291
- .prose-lg :where(.prose > ol > li > :last-child):not(:where([class~="not-prose"] *)) {
1264
+ .prose-lg :where(.prose-lg > ol > li > :last-child):not(:where([class~="not-prose"] *)) {
1292
1265
  margin-bottom: 1.33333em;
1293
1266
  }
1294
1267
 
@@ -1349,270 +1322,14 @@ pre[class*="language-"] {
1349
1322
  padding-right: 0;
1350
1323
  }
1351
1324
 
1352
- .prose-lg :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
1325
+ .prose-lg :where(.prose-lg > :first-child):not(:where([class~="not-prose"] *)) {
1353
1326
  margin-top: 0;
1354
1327
  }
1355
1328
 
1356
- .prose-lg :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
1329
+ .prose-lg :where(.prose-lg > :last-child):not(:where([class~="not-prose"] *)) {
1357
1330
  margin-bottom: 0;
1358
1331
  }
1359
1332
 
1360
- .prose-xl :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) {
1361
- margin-top: .8em;
1362
- margin-bottom: .8em;
1363
- }
1364
-
1365
- .prose-xl :where(.prose > ul > li > :first-child):not(:where([class~="not-prose"] *)) {
1366
- margin-top: 1.2em;
1367
- }
1368
-
1369
- .prose-xl :where(.prose > ul > li > :last-child):not(:where([class~="not-prose"] *)) {
1370
- margin-bottom: 1.2em;
1371
- }
1372
-
1373
- .prose-xl :where(.prose > ol > li > :first-child):not(:where([class~="not-prose"] *)) {
1374
- margin-top: 1.2em;
1375
- }
1376
-
1377
- .prose-xl :where(.prose > ol > li > :last-child):not(:where([class~="not-prose"] *)) {
1378
- margin-bottom: 1.2em;
1379
- }
1380
-
1381
- .prose-xl :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
1382
- margin-top: 0;
1383
- }
1384
-
1385
- .prose-xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
1386
- margin-bottom: 0;
1387
- }
1388
-
1389
- .prose-2xl :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) {
1390
- margin-top: .833333em;
1391
- margin-bottom: .833333em;
1392
- }
1393
-
1394
- .prose-2xl :where(.prose > ul > li > :first-child):not(:where([class~="not-prose"] *)) {
1395
- margin-top: 1.33333em;
1396
- }
1397
-
1398
- .prose-2xl :where(.prose > ul > li > :last-child):not(:where([class~="not-prose"] *)) {
1399
- margin-bottom: 1.33333em;
1400
- }
1401
-
1402
- .prose-2xl :where(.prose > ol > li > :first-child):not(:where([class~="not-prose"] *)) {
1403
- margin-top: 1.33333em;
1404
- }
1405
-
1406
- .prose-2xl :where(.prose > ol > li > :last-child):not(:where([class~="not-prose"] *)) {
1407
- margin-bottom: 1.33333em;
1408
- }
1409
-
1410
- .prose-2xl :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
1411
- margin-top: 0;
1412
- }
1413
-
1414
- .prose-2xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
1415
- margin-bottom: 0;
1416
- }
1417
-
1418
- .theme-github-light .highlight .hll {
1419
- background-color: #f8f8f8;
1420
- border: 1px solid #ccc;
1421
- border-radius: 3px;
1422
- padding: 6px 10px;
1423
- }
1424
-
1425
- .theme-github-light .highlight .c {
1426
- color: #998;
1427
- font-style: italic;
1428
- }
1429
-
1430
- .theme-github-light .highlight .k, .theme-github-light .highlight .o {
1431
- font-weight: bold;
1432
- }
1433
-
1434
- .theme-github-light .highlight .cm {
1435
- color: #998;
1436
- font-style: italic;
1437
- }
1438
-
1439
- .theme-github-light .highlight .cp {
1440
- color: #999;
1441
- font-weight: bold;
1442
- }
1443
-
1444
- .theme-github-light .highlight .c1 {
1445
- color: #998;
1446
- font-style: italic;
1447
- }
1448
-
1449
- .theme-github-light .highlight .cs {
1450
- color: #999;
1451
- font-style: italic;
1452
- font-weight: bold;
1453
- }
1454
-
1455
- .theme-github-light .highlight .gd {
1456
- color: #000;
1457
- background-color: #fdd;
1458
- }
1459
-
1460
- .theme-github-light .highlight .gd .x {
1461
- color: #000;
1462
- background-color: #faa;
1463
- }
1464
-
1465
- .theme-github-light .highlight .ge {
1466
- font-style: italic;
1467
- }
1468
-
1469
- .theme-github-light .highlight .gr {
1470
- color: #a00;
1471
- }
1472
-
1473
- .theme-github-light .highlight .gh {
1474
- color: #999;
1475
- }
1476
-
1477
- .theme-github-light .highlight .gi {
1478
- color: #000;
1479
- background-color: #dfd;
1480
- }
1481
-
1482
- .theme-github-light .highlight .gi .x {
1483
- color: #000;
1484
- background-color: #afa;
1485
- }
1486
-
1487
- .theme-github-light .highlight .go {
1488
- color: #888;
1489
- }
1490
-
1491
- .theme-github-light .highlight .gp {
1492
- color: #555;
1493
- }
1494
-
1495
- .theme-github-light .highlight .gs {
1496
- font-weight: bold;
1497
- }
1498
-
1499
- .theme-github-light .highlight .gu {
1500
- color: purple;
1501
- font-weight: bold;
1502
- }
1503
-
1504
- .theme-github-light .highlight .gt {
1505
- color: #a00;
1506
- }
1507
-
1508
- .theme-github-light .highlight .kc, .theme-github-light .highlight .kd, .theme-github-light .highlight .kn, .theme-github-light .highlight .kp, .theme-github-light .highlight .kr {
1509
- font-weight: bold;
1510
- }
1511
-
1512
- .theme-github-light .highlight .kt {
1513
- color: #458;
1514
- font-weight: bold;
1515
- }
1516
-
1517
- .theme-github-light .highlight .m {
1518
- color: #099;
1519
- }
1520
-
1521
- .theme-github-light .highlight .s {
1522
- color: #d14;
1523
- }
1524
-
1525
- .theme-github-light .highlight .\!s {
1526
- color: #d14 !important;
1527
- }
1528
-
1529
- .theme-github-light .highlight .n {
1530
- color: #333;
1531
- }
1532
-
1533
- .theme-github-light .highlight .na {
1534
- color: teal;
1535
- }
1536
-
1537
- .theme-github-light .highlight .nb {
1538
- color: #0086b3;
1539
- }
1540
-
1541
- .theme-github-light .highlight .nc {
1542
- color: #458;
1543
- font-weight: bold;
1544
- }
1545
-
1546
- .theme-github-light .highlight .no {
1547
- color: teal;
1548
- }
1549
-
1550
- .theme-github-light .highlight .ni {
1551
- color: purple;
1552
- }
1553
-
1554
- .theme-github-light .highlight .ne, .theme-github-light .highlight .nf {
1555
- color: #900;
1556
- font-weight: bold;
1557
- }
1558
-
1559
- .theme-github-light .highlight .nn {
1560
- color: #555;
1561
- }
1562
-
1563
- .theme-github-light .highlight .nt {
1564
- color: navy;
1565
- }
1566
-
1567
- .theme-github-light .highlight .nv {
1568
- color: teal;
1569
- }
1570
-
1571
- .theme-github-light .highlight .ow {
1572
- font-weight: bold;
1573
- }
1574
-
1575
- .theme-github-light .highlight .w {
1576
- color: #bbb;
1577
- }
1578
-
1579
- .theme-github-light .highlight .mf, .theme-github-light .highlight .mh, .theme-github-light .highlight .mi, .theme-github-light .highlight .mo {
1580
- color: #099;
1581
- }
1582
-
1583
- .theme-github-light .highlight .sb, .theme-github-light .highlight .sc, .theme-github-light .highlight .sd, .theme-github-light .highlight .s2, .theme-github-light .highlight .se, .theme-github-light .highlight .sh, .theme-github-light .highlight .si, .theme-github-light .highlight .sx {
1584
- color: #d14;
1585
- }
1586
-
1587
- .theme-github-light .highlight .sr {
1588
- color: #009926;
1589
- }
1590
-
1591
- .theme-github-light .highlight .s1 {
1592
- color: #d14;
1593
- }
1594
-
1595
- .theme-github-light .highlight .ss {
1596
- color: #990073;
1597
- }
1598
-
1599
- .theme-github-light .highlight .bp {
1600
- color: #999;
1601
- }
1602
-
1603
- .theme-github-light .highlight .vc, .theme-github-light .highlight .vg, .theme-github-light .highlight .vi {
1604
- color: teal;
1605
- }
1606
-
1607
- .theme-github-light .highlight .il {
1608
- color: #099;
1609
- }
1610
-
1611
- .theme-github-light .highlight .gc {
1612
- color: #999;
1613
- background-color: #eaf2f5;
1614
- }
1615
-
1616
1333
  [data-component="code"] {
1617
1334
  padding-left: 1rem;
1618
1335
  padding-right: 1rem;
@@ -1649,15 +1366,11 @@ pre[class*="language-"] {
1649
1366
  width: min-content;
1650
1367
  z-index: 10;
1651
1368
  height: 100%;
1369
+ -webkit-user-select: none;
1652
1370
  user-select: none;
1371
+ text-align: right;
1653
1372
  border-style: dashed;
1654
1373
  border-right-width: 1px;
1655
- border-color: var(--lookbook-divider);
1656
- --tw-bg-opacity: 1;
1657
- background-color: rgb(255 255 255 / var(--tw-bg-opacity));
1658
- text-align: right;
1659
- --tw-text-opacity: 1;
1660
- color: rgb(156 163 175 / var(--tw-text-opacity));
1661
1374
  padding: .75rem;
1662
1375
  }
1663
1376
 
@@ -1710,7 +1423,7 @@ pre[class*="language-"] {
1710
1423
  [data-component="icon"] {
1711
1424
  flex: none;
1712
1425
  line-height: 1;
1713
- transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
1426
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter, backdrop-filter;
1714
1427
  transition-duration: .15s;
1715
1428
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
1716
1429
  display: block;
@@ -1732,9 +1445,8 @@ pre[class*="language-"] {
1732
1445
  }
1733
1446
 
1734
1447
  [data-component="params-editor"] table:not(.linear) thead tr {
1735
- --tw-border-opacity: 1;
1736
1448
  border-bottom-width: 1px;
1737
- border-color: rgb(209 213 219 / var(--tw-border-opacity));
1449
+ border-color: var(--lookbook-divider);
1738
1450
  }
1739
1451
 
1740
1452
  [data-component="params-editor"] table:not(.linear) thead th {
@@ -1753,9 +1465,8 @@ pre[class*="language-"] {
1753
1465
  }
1754
1466
 
1755
1467
  [data-component="params-editor"] table:not(.linear) tbody tr + tr td {
1756
- --tw-border-opacity: 1;
1757
1468
  border-top-width: 1px;
1758
- border-color: rgb(229 231 235 / var(--tw-border-opacity));
1469
+ border-color: var(--lookbook-divider);
1759
1470
  }
1760
1471
 
1761
1472
  [data-component="params-editor"] table:not(.linear) tbody td {
@@ -1780,9 +1491,8 @@ pre[class*="language-"] {
1780
1491
  }
1781
1492
 
1782
1493
  [data-component="params-editor"] table.linear tr:not(:last-child) {
1783
- --tw-border-opacity: 1;
1784
1494
  border-bottom-width: 1px;
1785
- border-color: rgb(229 231 235 / var(--tw-border-opacity));
1495
+ border-color: var(--lookbook-divider);
1786
1496
  }
1787
1497
 
1788
1498
  [data-component="params-editor"] table.linear tr > :not([hidden]) ~ :not([hidden]) {
@@ -1866,15 +1576,16 @@ pre[class*="language-"] {
1866
1576
  }
1867
1577
 
1868
1578
  [data-component="viewport"] .resize-handle:hover {
1869
- background-color: var(--lookbook-draggable-hint);
1579
+ background-color: var(--lookbook-viewport-handle-hover);
1870
1580
  --tw-bg-opacity: .2;
1871
1581
  }
1872
1582
 
1873
1583
  [data-component="viewport"] .resize-handle {
1874
1584
  touch-action: none;
1585
+ -webkit-user-select: none;
1875
1586
  user-select: none;
1876
1587
  color: var(--lookbook-viewport-handle-icon-stroke);
1877
- transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
1588
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter, backdrop-filter;
1878
1589
  transition-duration: .15s;
1879
1590
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
1880
1591
  }
@@ -2431,6 +2142,7 @@ input[type="color"]::-webkit-color-swatch {
2431
2142
  }
2432
2143
 
2433
2144
  .select-none {
2145
+ -webkit-user-select: none;
2434
2146
  user-select: none;
2435
2147
  }
2436
2148
 
@@ -2744,6 +2456,10 @@ input[type="color"]::-webkit-color-swatch {
2744
2456
  background-color: var(--lookbook-nav-item-active) !important;
2745
2457
  }
2746
2458
 
2459
+ .bg-lookbook-params-editor-bg {
2460
+ background-color: var(--lookbook-params-editor-bg);
2461
+ }
2462
+
2747
2463
  .p-4 {
2748
2464
  padding: 1rem;
2749
2465
  }
@@ -3116,7 +2832,7 @@ input[type="color"]::-webkit-color-swatch {
3116
2832
  }
3117
2833
 
3118
2834
  .transition {
3119
- transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
2835
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter, backdrop-filter;
3120
2836
  transition-duration: .15s;
3121
2837
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
3122
2838
  }
@@ -3351,6 +3067,401 @@ input[type="color"]::-webkit-color-swatch {
3351
3067
  border-right-color: #fff;
3352
3068
  }
3353
3069
 
3070
+ .theme-github {
3071
+ --dark-bg: #111;
3072
+ --dark-gray-1: #404040;
3073
+ --dark-gray-2: #d0d0d0;
3074
+ --dark-gray-3: #ccc;
3075
+ --dark-gray-4: #777;
3076
+ --dark-gray-5: #aaa;
3077
+ --dark-gray-6: #bbb;
3078
+ --dark-gray-7: #666;
3079
+ --dark-blue-1: #3677a9;
3080
+ --dark-blue-2: #24909d;
3081
+ --dark-blue-3: #447fcf;
3082
+ --dark-blue-4: #098;
3083
+ --dark-red-1: #a61717;
3084
+ --dark-red-2: #311;
3085
+ --dark-red-3: #e50808;
3086
+ --dark-red-4: #520000;
3087
+ --dark-red-5: #d22323;
3088
+ --dark-red-6: #cd2828;
3089
+ --dark-yellow-1: #e9b96e;
3090
+ --dark-yellow-2: orange;
3091
+ --dark-orange: #d2691e;
3092
+ --dark-white: #fff;
3093
+ --dark-green-1: #589819;
3094
+ --dark-green-2: #6ab825;
3095
+ --dark-green-3: #4ca;
3096
+ --light-bg: #fff;
3097
+ --light-gray-1: #f8f8f8;
3098
+ --light-gray-2: #27272a;
3099
+ --light-gray-3: #ccc;
3100
+ --light-gray-4: #888;
3101
+ --light-gray-5: #999;
3102
+ --light-gray-6: #555;
3103
+ --light-gray-7: #bbb;
3104
+ --light-yellow-1: #998;
3105
+ --light-red-1: #a61717;
3106
+ --light-red-2: #e3d2d2;
3107
+ --light-red-3: #d14;
3108
+ --light-red-4: #fdd;
3109
+ --light-red-5: #a00;
3110
+ --light-red-6: #900;
3111
+ --light-purple-1: purple;
3112
+ --light-purple-2: #990073;
3113
+ --light-black: #000;
3114
+ --light-green-1: #dfd;
3115
+ --light-green-2: #009926;
3116
+ --light-blue-1: #458;
3117
+ --light-blue-2: #099;
3118
+ --light-blue-3: teal;
3119
+ --light-blue-4: #0086b3;
3120
+ --light-blue-5: #3c5d5d;
3121
+ --light-blue-6: navy;
3122
+ --hl-bg: var(--light-bg);
3123
+ --hl-hll-bg: var(--light-gray-1);
3124
+ --hl-border: var(--light-gray-3);
3125
+ --hl-line-number: var(--light-gray-2);
3126
+ --hl-comment: var(--light-yellow-1);
3127
+ --hl-comment-preproc: var(--light-gray-5);
3128
+ --hl-comment-special-fg: var(--light-gray-5);
3129
+ --hl-comment-special-bg: transparent;
3130
+ --hl-error-fg: var(--light-red-1);
3131
+ --hl-error-bg: var(--light-red-2);
3132
+ --hl-subtle-fg: var(--light-gray-2);
3133
+ --hl-entity: var(--light-purple-1);
3134
+ --hl-keyword: var(--light-black);
3135
+ --hl-output: var(--light-gray-4);
3136
+ --hl-operator: var(--light-black);
3137
+ --hl-punctuation: var(--light-gray-6);
3138
+ --hl-string: var(--light-red-3);
3139
+ --hl-string-other: var(--light-red-3);
3140
+ --hl-string-regex: var(--light-green-2);
3141
+ --hl-string-symbol: var(--light-purple-2);
3142
+ --hl-deleted-fg: var(--light-black);
3143
+ --hl-deleted-bg: var(--light-red-4);
3144
+ --hl-danger: var(--light-red-5);
3145
+ --hl-heading: var(--light-gray-5);
3146
+ --hl-inserted-fg: var(--light-black);
3147
+ --hl-inserted-bg: var(--light-green-1);
3148
+ --hl-prompt: var(--light-gray-6);
3149
+ --hl-subheading: var(--light-purple-1);
3150
+ --hl-keyword-crude: var(--light-black);
3151
+ --hl-keyword-subtle: var(--light-blue-1);
3152
+ --hl-number: var(--light-blue-2);
3153
+ --hl-attribute: var(--light-blue-3);
3154
+ --hl-builtin: var(--light-blue-4);
3155
+ --hl-builtin-pseudo: var(--light-gray-5);
3156
+ --hl-class: var(--light-blue-1);
3157
+ --hl-variable: var(--light-blue-3);
3158
+ --hl-decorator: var(--light-blue-5);
3159
+ --hl-exception: var(--light-red-6);
3160
+ --hl-function: var(--light-red-6);
3161
+ --hl-namespace: var(--light-gray-6);
3162
+ --hl-tag: var(--light-blue-6);
3163
+ --hl-word: var(--light-black);
3164
+ --hl-whitespace: var(--light-gray-7);
3165
+ }
3166
+
3167
+ .theme-github.dark {
3168
+ --hl-bg: var(--dark-bg);
3169
+ --hl-hll-bg: var(--dark-gray-1);
3170
+ --hl-border: var(--dark-gray-4);
3171
+ --hl-line-number: var(--dark-gray-2);
3172
+ --hl-comment: var(--dark-blue-1);
3173
+ --hl-comment-preproc: var(--dark-orange);
3174
+ --hl-comment-special-fg: var(--dark-red-3);
3175
+ --hl-comment-special-bg: var(--dark-red-4);
3176
+ --hl-error-fg: var(--dark-red-1);
3177
+ --hl-error-bg: var(--dark-red-2);
3178
+ --hl-subtle-fg: var(--dark-gray-2);
3179
+ --hl-entity: var(--dark-gray-2);
3180
+ --hl-keyword: var(--dark-gray-3);
3181
+ --hl-output: var(--dark-gray-3);
3182
+ --hl-operator: var(--dark-gray-4);
3183
+ --hl-punctuation: var(--dark-yellow-1);
3184
+ --hl-string: var(--dark-orange);
3185
+ --hl-string-other: var(--dark-yellow-2);
3186
+ --hl-string-regex: var(--dark-red-6);
3187
+ --hl-string-symbol: var(--dark-orange);
3188
+ --hl-deleted-fg: var(--dark-red-5);
3189
+ --hl-deleted-bg: transparent;
3190
+ --hl-danger: var(--dark-red-5);
3191
+ --hl-heading: var(--dark-white);
3192
+ --hl-inserted-fg: var(--dark-green-1);
3193
+ --hl-inserted-bg: transparent;
3194
+ --hl-prompt: var(--dark-gray-5);
3195
+ --hl-subheading: var(--dark-white);
3196
+ --hl-keyword-crude: var(--dark-green-2);
3197
+ --hl-keyword-subtle: var(--dark-green-2);
3198
+ --hl-number: var(--dark-red-6);
3199
+ --hl-attribute: var(--dark-gray-6);
3200
+ --hl-builtin: var(--dark-blue-2);
3201
+ --hl-builtin-pseudo: var(--dark-blue-2);
3202
+ --hl-class: var(--dark-blue-3);
3203
+ --hl-variable: var(--dark-green-3);
3204
+ --hl-decorator: var(--dark-yellow-2);
3205
+ --hl-exception: var(--dark-gray-6);
3206
+ --hl-function: var(--dark-blue-4);
3207
+ --hl-namespace: var(--dark-blue-3);
3208
+ --hl-tag: var(--dark-green-2);
3209
+ --hl-word: var(--dark-green-2);
3210
+ --hl-whitespace: var(--dark-gray-7);
3211
+ }
3212
+
3213
+ .theme-github {
3214
+ background-color: var(--hl-bg);
3215
+ }
3216
+
3217
+ .theme-github .line-numbers {
3218
+ background-color: var(--hl-bg);
3219
+ border-color: var(--hl-border);
3220
+ color: var(--hl-line-number);
3221
+ }
3222
+
3223
+ .theme-github .highlight .hll {
3224
+ background-color: var(--hl-hll-bg);
3225
+ }
3226
+
3227
+ .theme-github .highlight .c {
3228
+ color: var(--hl-comment);
3229
+ font-style: italic;
3230
+ }
3231
+
3232
+ .theme-github .highlight .err {
3233
+ color: var(--hl-error-fg);
3234
+ background-color: var(--hl-error-bg);
3235
+ }
3236
+
3237
+ .theme-github .highlight .g {
3238
+ color: var(--hl-subtle-fg);
3239
+ }
3240
+
3241
+ .theme-github .highlight .k {
3242
+ color: var(--hl-keyword);
3243
+ font-weight: bold;
3244
+ }
3245
+
3246
+ .theme-github .highlight .l {
3247
+ color: var(--hl-subtle-fg);
3248
+ }
3249
+
3250
+ .theme-github .highlight .n, .theme-github .highlight .h {
3251
+ color: var(--hl-keyword);
3252
+ }
3253
+
3254
+ .theme-github .highlight .o {
3255
+ color: var(--hl-operator);
3256
+ font-weight: bold;
3257
+ }
3258
+
3259
+ .theme-github .highlight .x {
3260
+ color: var(--hl-subtle-fg);
3261
+ }
3262
+
3263
+ .theme-github .highlight .p {
3264
+ color: var(--hl-punctuation);
3265
+ }
3266
+
3267
+ .theme-github .highlight .cm {
3268
+ color: var(--hl-comment);
3269
+ font-style: italic;
3270
+ }
3271
+
3272
+ .theme-github .highlight .cp {
3273
+ color: var(--hl-comment-preproc);
3274
+ font-weight: bold;
3275
+ }
3276
+
3277
+ .theme-github .highlight .c1 {
3278
+ color: var(--hl-comment);
3279
+ font-style: italic;
3280
+ }
3281
+
3282
+ .theme-github .highlight .cs {
3283
+ color: var(--hl-comment-special-fg);
3284
+ background-color: var(--hl-comment-special-bg);
3285
+ font-style: italic;
3286
+ font-weight: bold;
3287
+ }
3288
+
3289
+ .theme-github .highlight .gd {
3290
+ color: var(--hl-deleted-fg);
3291
+ background-color: var(--hl-deleted-bg);
3292
+ }
3293
+
3294
+ .theme-github .highlight .ge {
3295
+ color: var(--hl-subtle-fg);
3296
+ font-style: italic;
3297
+ }
3298
+
3299
+ .theme-github .highlight .gr {
3300
+ color: var(--hl-danger);
3301
+ }
3302
+
3303
+ .theme-github .highlight .gh {
3304
+ color: var(--hl-heading);
3305
+ }
3306
+
3307
+ .theme-github .highlight .gi {
3308
+ color: var(--hl-inserted-fg);
3309
+ background-color: var(--hl-inserted-bg);
3310
+ }
3311
+
3312
+ .theme-github .highlight .go {
3313
+ color: var(--hl-output);
3314
+ }
3315
+
3316
+ .theme-github .highlight .gp {
3317
+ color: var(--hl-prompt);
3318
+ }
3319
+
3320
+ .theme-github .highlight .gs {
3321
+ color: var(--hl-subtle-fg);
3322
+ font-weight: bold;
3323
+ }
3324
+
3325
+ .theme-github .highlight .gu {
3326
+ color: var(--hl-subheading);
3327
+ font-weight: bold;
3328
+ }
3329
+
3330
+ .theme-github .highlight .gt {
3331
+ color: var(--hl-danger);
3332
+ }
3333
+
3334
+ .theme-github .highlight .kc, .theme-github .highlight .kd, .theme-github .highlight .kn, .theme-github .highlight .kp, .theme-github .highlight .kr {
3335
+ color: var(--hl-keyword-crude);
3336
+ font-weight: bold;
3337
+ }
3338
+
3339
+ .theme-github .highlight .kt {
3340
+ color: var(--hl-keyword-subtle);
3341
+ font-weight: bold;
3342
+ }
3343
+
3344
+ .theme-github .highlight .ld {
3345
+ color: var(--hl-subtle-fg);
3346
+ }
3347
+
3348
+ .theme-github .highlight .m {
3349
+ color: var(--hl-number);
3350
+ }
3351
+
3352
+ .theme-github .highlight .s {
3353
+ color: var(--hl-string);
3354
+ }
3355
+
3356
+ .theme-github .highlight .na {
3357
+ color: var(--hl-attribute);
3358
+ }
3359
+
3360
+ .theme-github .highlight .nb {
3361
+ color: var(--hl-builtin);
3362
+ }
3363
+
3364
+ .theme-github .highlight .nc {
3365
+ color: var(--hl-class);
3366
+ font-weight: bold;
3367
+ }
3368
+
3369
+ .theme-github .highlight .no {
3370
+ color: var(--hl-variable);
3371
+ }
3372
+
3373
+ .theme-github .highlight .nd {
3374
+ color: var(--hl-decorator);
3375
+ }
3376
+
3377
+ .theme-github .highlight .ni {
3378
+ color: var(--hl-entity);
3379
+ }
3380
+
3381
+ .theme-github .highlight .ne {
3382
+ color: var(--hl-exception);
3383
+ font-weight: bold;
3384
+ }
3385
+
3386
+ .theme-github .highlight .nf {
3387
+ color: var(--hl-function);
3388
+ font-weight: bold;
3389
+ }
3390
+
3391
+ .theme-github .highlight .nl {
3392
+ color: var(--hl-subtle-fg);
3393
+ }
3394
+
3395
+ .theme-github .highlight .nn {
3396
+ color: var(--hl-namespace);
3397
+ }
3398
+
3399
+ .theme-github .highlight .nx, .theme-github .highlight .py {
3400
+ color: var(--hl-subtle-fg);
3401
+ }
3402
+
3403
+ .theme-github .highlight .nt {
3404
+ color: var(--hl-tag);
3405
+ }
3406
+
3407
+ .theme-github .highlight .nv {
3408
+ color: var(--hl-variable);
3409
+ }
3410
+
3411
+ .theme-github .highlight .ow {
3412
+ color: var(--hl-word);
3413
+ font-weight: bold;
3414
+ }
3415
+
3416
+ .theme-github .highlight .w {
3417
+ color: var(--hl-whitespace);
3418
+ }
3419
+
3420
+ .theme-github .highlight .mf, .theme-github .highlight .mh, .theme-github .highlight .mi, .theme-github .highlight .mo {
3421
+ color: var(--hl-number);
3422
+ }
3423
+
3424
+ .theme-github .highlight .sb, .theme-github .highlight .sc, .theme-github .highlight .sd, .theme-github .highlight .s2, .theme-github .highlight .se, .theme-github .highlight .sh, .theme-github .highlight .si {
3425
+ color: var(--hl-string);
3426
+ }
3427
+
3428
+ .theme-github .highlight .sx {
3429
+ color: var(--hl-string-other);
3430
+ }
3431
+
3432
+ .theme-github .highlight .sr {
3433
+ color: var(--hl-string-regex);
3434
+ }
3435
+
3436
+ .theme-github .highlight .s1 {
3437
+ color: var(--hl-string);
3438
+ }
3439
+
3440
+ .theme-github .highlight .ss {
3441
+ color: var(--hl-string-symbol);
3442
+ }
3443
+
3444
+ .theme-github .highlight .bp {
3445
+ color: var(--hl-builtin-pseudo);
3446
+ }
3447
+
3448
+ .theme-github .highlight .vc, .theme-github .highlight .vg, .theme-github .highlight .vi {
3449
+ color: var(--hl-variable);
3450
+ }
3451
+
3452
+ .theme-github .highlight .il {
3453
+ color: var(--hl-number);
3454
+ }
3455
+
3456
+ .theme-github .highlight .line-number {
3457
+ -webkit-user-select: none;
3458
+ -moz-user-select: none;
3459
+ }
3460
+
3461
+ .theme-github .highlight .line-number::selection {
3462
+ background-color: #0000;
3463
+ }
3464
+
3354
3465
  .hover\:bg-lookbook-draggable-hint:hover {
3355
3466
  background-color: var(--lookbook-draggable-hint);
3356
3467
  }