lookbook 1.2.1 → 1.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (182) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +1 -1
  3. data/README.md +47 -14
  4. data/app/assets/lookbook/css/themes/blue.css +4 -2
  5. data/app/assets/lookbook/css/themes/green.css +66 -0
  6. data/app/assets/lookbook/css/themes/indigo.css +4 -2
  7. data/app/assets/lookbook/css/themes/rose.css +66 -0
  8. data/app/assets/lookbook/css/themes/zinc.css +4 -2
  9. data/app/components/lookbook/base_component.rb +2 -2
  10. data/app/components/lookbook/code/component.css +2 -2
  11. data/app/components/lookbook/code/component.html.erb +3 -2
  12. data/app/components/lookbook/code/component.rb +13 -2
  13. data/app/components/lookbook/code/highlight_github.css +406 -0
  14. data/app/components/lookbook/header/component.html.erb +1 -1
  15. data/app/components/lookbook/inspector_panel/component.rb +4 -6
  16. data/app/components/lookbook/nav/component.rb +8 -15
  17. data/app/components/lookbook/nav/directory/component.html.erb +28 -0
  18. data/app/components/lookbook/nav/directory/component.rb +4 -0
  19. data/app/components/lookbook/nav/{item → entity}/component.html.erb +8 -8
  20. data/app/components/lookbook/nav/entity/component.rb +49 -0
  21. data/app/components/lookbook/nav/item/component.css +15 -0
  22. data/app/components/lookbook/nav/item/component.js +4 -0
  23. data/app/components/lookbook/nav/item/component.rb +13 -56
  24. data/app/components/lookbook/params/editor/component.html.erb +2 -2
  25. data/app/components/lookbook/params/editor/component.rb +3 -10
  26. data/app/components/lookbook/params/field/component.css +3 -3
  27. data/app/components/lookbook/params/field/component.html.erb +8 -8
  28. data/app/components/lookbook/params/field/component.rb +21 -72
  29. data/app/components/lookbook/split_layout/component.html.erb +1 -1
  30. data/app/components/lookbook/tabs/component.html.erb +1 -1
  31. data/app/components/lookbook/tabs/component.js +4 -0
  32. data/app/components/lookbook/tag_component.rb +1 -1
  33. data/app/components/lookbook/viewport/component.css +1 -1
  34. data/app/components/lookbook/viewport/component.html.erb +1 -1
  35. data/app/components/lookbook/viewport/component.rb +1 -1
  36. data/app/controllers/concerns/lookbook/targetable_concern.rb +131 -0
  37. data/app/controllers/concerns/lookbook/with_preview_controller_concern.rb +13 -0
  38. data/app/controllers/lookbook/application_controller.rb +21 -9
  39. data/app/controllers/lookbook/inspector_controller.rb +45 -0
  40. data/app/controllers/lookbook/page_controller.rb +13 -9
  41. data/app/controllers/lookbook/pages_controller.rb +9 -15
  42. data/app/controllers/lookbook/previews_controller.rb +4 -210
  43. data/app/helpers/lookbook/application_helper.rb +2 -2
  44. data/app/helpers/lookbook/output_helper.rb +5 -5
  45. data/app/helpers/lookbook/page_helper.rb +7 -4
  46. data/app/views/layouts/lookbook/application.html.erb +40 -38
  47. data/app/views/layouts/lookbook/page.html.erb +2 -2
  48. data/app/views/layouts/lookbook/shell.html.erb +3 -2
  49. data/app/views/layouts/lookbook/skeleton.html.erb +7 -7
  50. data/app/views/lookbook/index.html.erb +13 -2
  51. data/app/views/lookbook/{previews → inspector}/inputs/_color.html.erb +0 -0
  52. data/app/views/lookbook/{previews → inspector}/inputs/_range.html.erb +0 -0
  53. data/app/views/lookbook/{previews → inspector}/inputs/_select.html.erb +0 -0
  54. data/app/views/lookbook/{previews → inspector}/inputs/_text.html.erb +0 -0
  55. data/app/views/lookbook/{previews → inspector}/inputs/_textarea.html.erb +0 -0
  56. data/app/views/lookbook/{previews → inspector}/inputs/_toggle.html.erb +5 -5
  57. data/app/views/lookbook/{previews → inspector}/panels/_content.html.erb +0 -0
  58. data/app/views/lookbook/{previews → inspector}/panels/_notes.html.erb +2 -2
  59. data/app/views/lookbook/{previews → inspector}/panels/_output.html.erb +0 -0
  60. data/app/views/lookbook/inspector/panels/_params.html.erb +15 -0
  61. data/app/views/lookbook/{previews → inspector}/panels/_preview.html.erb +0 -0
  62. data/app/views/lookbook/{previews → inspector}/panels/_source.html.erb +0 -0
  63. data/app/views/lookbook/{previews → inspector}/show.html.erb +5 -2
  64. data/config/app.yml +11 -1
  65. data/config/inputs.yml +12 -12
  66. data/config/languages.yml +41 -0
  67. data/config/panels.yml +6 -6
  68. data/config/routes.rb +5 -5
  69. data/config/tags.yml +8 -1
  70. data/lib/lookbook/engine.rb +103 -130
  71. data/lib/lookbook/entities/collections/component_collection.rb +4 -0
  72. data/lib/lookbook/entities/collections/concerns/hierarchical_collection.rb +23 -0
  73. data/lib/lookbook/entities/collections/entity_collection.rb +61 -0
  74. data/lib/lookbook/entities/collections/page_collection.rb +30 -0
  75. data/lib/lookbook/entities/collections/preview_collection.rb +41 -0
  76. data/lib/lookbook/entities/collections/preview_example_collection.rb +4 -0
  77. data/lib/lookbook/entities/component.rb +31 -0
  78. data/lib/lookbook/entities/concerns/annotatable.rb +58 -0
  79. data/lib/lookbook/entities/concerns/inspectable.rb +44 -0
  80. data/lib/lookbook/entities/concerns/locatable.rb +73 -0
  81. data/lib/lookbook/entities/concerns/navigable.rb +43 -0
  82. data/lib/lookbook/entities/entity.rb +53 -0
  83. data/lib/lookbook/entities/page.rb +80 -0
  84. data/lib/lookbook/entities/page_section.rb +43 -0
  85. data/lib/lookbook/entities/preview.rb +87 -0
  86. data/lib/lookbook/entities/preview_example.rb +100 -0
  87. data/lib/lookbook/entities/preview_group.rb +48 -0
  88. data/lib/lookbook/file_watcher.rb +47 -0
  89. data/lib/lookbook/lang.rb +12 -35
  90. data/lib/lookbook/param.rb +99 -0
  91. data/lib/lookbook/{preview_controller.rb → preview_actions.rb} +14 -3
  92. data/lib/lookbook/preview_parser.rb +53 -0
  93. data/lib/lookbook/process.rb +21 -0
  94. data/lib/lookbook/rendered_example.rb +37 -0
  95. data/lib/lookbook/services/code/code_beautifier.rb +21 -0
  96. data/lib/lookbook/services/code/code_highlighter.rb +69 -0
  97. data/lib/lookbook/services/code/code_indenter.rb +14 -0
  98. data/lib/lookbook/services/data/parsers/data_parser.rb +22 -0
  99. data/lib/lookbook/services/data/parsers/json_parser.rb +7 -0
  100. data/lib/lookbook/services/data/parsers/yaml_parser.rb +7 -0
  101. data/lib/lookbook/services/data/resolvers/data_resolver.rb +70 -0
  102. data/lib/lookbook/services/data/resolvers/eval_resolver.rb +10 -0
  103. data/lib/lookbook/services/data/resolvers/file_resolver.rb +28 -0
  104. data/lib/lookbook/services/data/resolvers/method_resolver.rb +10 -0
  105. data/lib/lookbook/services/data/resolvers/yaml_resolver.rb +18 -0
  106. data/lib/lookbook/services/entities/entity_tree_builder.rb +45 -0
  107. data/lib/lookbook/services/markdown_renderer.rb +29 -0
  108. data/lib/lookbook/services/position_prefix_parser.rb +16 -0
  109. data/lib/lookbook/services/string_value_caster.rb +60 -0
  110. data/lib/lookbook/services/tags/tag_options_parser.rb +62 -0
  111. data/lib/lookbook/services/templates/action_view_annotations_handler.rb +21 -0
  112. data/lib/lookbook/services/templates/action_view_annotations_stripper.rb +15 -0
  113. data/lib/lookbook/services/templates/frontmatter_extractor.rb +28 -0
  114. data/lib/lookbook/services/templates/styles_extractor.rb +38 -0
  115. data/lib/lookbook/services/{search_param_builder.rb → urls/search_param_builder.rb} +1 -1
  116. data/lib/lookbook/services/{search_param_parser.rb → urls/search_param_parser.rb} +1 -1
  117. data/lib/lookbook/stores/config_store.rb +12 -9
  118. data/lib/lookbook/stores/input_store.rb +7 -3
  119. data/lib/lookbook/stores/panel_store.rb +2 -2
  120. data/lib/lookbook/stores/tag_store.rb +3 -5
  121. data/lib/lookbook/support/null_object.rb +10 -0
  122. data/lib/lookbook/support/service.rb +2 -2
  123. data/lib/lookbook/support/store.rb +2 -35
  124. data/lib/lookbook/support/tree_node.rb +87 -0
  125. data/lib/lookbook/support/utils/path_utils.rb +32 -5
  126. data/lib/lookbook/support/utils/utils.rb +24 -0
  127. data/lib/lookbook/tags/component_tag.rb +13 -0
  128. data/lib/lookbook/tags/custom_tag.rb +61 -0
  129. data/lib/lookbook/tags/display_tag.rb +15 -0
  130. data/lib/lookbook/tags/hidden_tag.rb +13 -0
  131. data/lib/lookbook/tags/id_tag.rb +7 -0
  132. data/lib/lookbook/tags/label_tag.rb +4 -0
  133. data/lib/lookbook/tags/logical_path_tag.rb +7 -0
  134. data/lib/lookbook/tags/param_tag.rb +63 -0
  135. data/lib/lookbook/tags/position_tag.rb +16 -0
  136. data/lib/lookbook/tags/source_tag.rb +7 -0
  137. data/lib/lookbook/tags/tag_provider.rb +18 -0
  138. data/lib/lookbook/tags/yard_tag.rb +90 -0
  139. data/lib/lookbook/theme.rb +8 -0
  140. data/lib/lookbook/version.rb +1 -1
  141. data/lib/lookbook/websocket.rb +60 -0
  142. data/lib/lookbook.rb +13 -8
  143. data/public/lookbook-assets/css/lookbook.css +487 -411
  144. data/public/lookbook-assets/css/lookbook.css.map +1 -1
  145. data/public/lookbook-assets/css/themes/blue.css +3 -1
  146. data/public/lookbook-assets/css/themes/blue.css.map +1 -1
  147. data/public/lookbook-assets/css/themes/green.css +68 -0
  148. data/public/lookbook-assets/css/themes/green.css.map +1 -0
  149. data/public/lookbook-assets/css/themes/indigo.css +3 -1
  150. data/public/lookbook-assets/css/themes/indigo.css.map +1 -1
  151. data/public/lookbook-assets/css/themes/rose.css +68 -0
  152. data/public/lookbook-assets/css/themes/rose.css.map +1 -0
  153. data/public/lookbook-assets/css/themes/zinc.css +3 -1
  154. data/public/lookbook-assets/css/themes/zinc.css.map +1 -1
  155. data/public/lookbook-assets/js/embed.js +10 -1
  156. data/public/lookbook-assets/js/embed.js.map +1 -1
  157. data/public/lookbook-assets/js/lookbook.js +358 -629
  158. data/public/lookbook-assets/js/lookbook.js.map +1 -1
  159. metadata +96 -44
  160. data/app/components/lookbook/code/highlight_github_light.css +0 -217
  161. data/app/views/lookbook/previews/panels/_params.html.erb +0 -15
  162. data/lib/lookbook/code_formatter.rb +0 -68
  163. data/lib/lookbook/collection.rb +0 -161
  164. data/lib/lookbook/component.rb +0 -34
  165. data/lib/lookbook/entity.rb +0 -47
  166. data/lib/lookbook/markdown.rb +0 -22
  167. data/lib/lookbook/page.rb +0 -195
  168. data/lib/lookbook/page_collection.rb +0 -19
  169. data/lib/lookbook/page_section.rb +0 -29
  170. data/lib/lookbook/params.rb +0 -157
  171. data/lib/lookbook/parser.rb +0 -42
  172. data/lib/lookbook/preview.rb +0 -174
  173. data/lib/lookbook/preview_collection.rb +0 -23
  174. data/lib/lookbook/preview_example.rb +0 -93
  175. data/lib/lookbook/preview_group.rb +0 -62
  176. data/lib/lookbook/source_inspector.rb +0 -95
  177. data/lib/lookbook/support/utils/attribute_utils.rb +0 -9
  178. data/lib/lookbook/tag.rb +0 -122
  179. data/lib/lookbook/tag_options.rb +0 -111
  180. data/lib/lookbook/tags.rb +0 -17
  181. data/lib/lookbook/template_parser.rb +0 -72
  182. data/lib/lookbook/utils.rb +0 -105
@@ -10,7 +10,8 @@
10
10
  html {
11
11
  -webkit-text-size-adjust: 100%;
12
12
  tab-size: 4;
13
- font-family: Nunito Sans, -apple-system, \.SFNSText-Regular, San Francisco, BlinkMacSystemFont, Segoe UI, Helvetica Neue, Helvetica, Arial, sans-serif;
13
+ font-feature-settings: normal;
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
  }
16
17
 
@@ -173,6 +174,10 @@ img, video {
173
174
  height: auto;
174
175
  }
175
176
 
177
+ [hidden] {
178
+ display: none;
179
+ }
180
+
176
181
  [type="text"], [type="email"], [type="url"], [type="password"], [type="number"], [type="date"], [type="datetime-local"], [type="month"], [type="search"], [type="tel"], [type="time"], [type="week"], [multiple], textarea, select {
177
182
  appearance: none;
178
183
  --tw-shadow: 0 0 #0000;
@@ -338,7 +343,7 @@ body {
338
343
  color: var(--lookbook-text);
339
344
  -webkit-font-smoothing: antialiased;
340
345
  -moz-osx-font-smoothing: grayscale;
341
- font-family: Nunito Sans, -apple-system, \.SFNSText-Regular, San Francisco, BlinkMacSystemFont, Segoe UI, Helvetica Neue, Helvetica, Arial, sans-serif;
346
+ font-family: -apple-system, \.SFNSText-Regular, San Francisco, BlinkMacSystemFont, Segoe UI, Helvetica Neue, Helvetica, Arial, sans-serif;
342
347
  font-size: .875rem;
343
348
  line-height: 1.25rem;
344
349
  overflow: hidden;
@@ -1031,24 +1036,24 @@ pre[class*="language-"] {
1031
1036
  padding-left: .428571em;
1032
1037
  }
1033
1038
 
1034
- .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"] *)) {
1035
1040
  margin-top: .571429em;
1036
1041
  margin-bottom: .571429em;
1037
1042
  }
1038
1043
 
1039
- .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"] *)) {
1040
1045
  margin-top: 1.14286em;
1041
1046
  }
1042
1047
 
1043
- .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"] *)) {
1044
1049
  margin-bottom: 1.14286em;
1045
1050
  }
1046
1051
 
1047
- .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"] *)) {
1048
1053
  margin-top: 1.14286em;
1049
1054
  }
1050
1055
 
1051
- .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"] *)) {
1052
1057
  margin-bottom: 1.14286em;
1053
1058
  }
1054
1059
 
@@ -1109,40 +1114,11 @@ pre[class*="language-"] {
1109
1114
  padding-right: 0;
1110
1115
  }
1111
1116
 
1112
- .prose-sm :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
1117
+ .prose-sm :where(.prose-sm > :first-child):not(:where([class~="not-prose"] *)) {
1113
1118
  margin-top: 0;
1114
1119
  }
1115
1120
 
1116
- .prose-sm :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
1117
- margin-bottom: 0;
1118
- }
1119
-
1120
- .prose-base :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) {
1121
- margin-top: .75em;
1122
- margin-bottom: .75em;
1123
- }
1124
-
1125
- .prose-base :where(.prose > ul > li > :first-child):not(:where([class~="not-prose"] *)) {
1126
- margin-top: 1.25em;
1127
- }
1128
-
1129
- .prose-base :where(.prose > ul > li > :last-child):not(:where([class~="not-prose"] *)) {
1130
- margin-bottom: 1.25em;
1131
- }
1132
-
1133
- .prose-base :where(.prose > ol > li > :first-child):not(:where([class~="not-prose"] *)) {
1134
- margin-top: 1.25em;
1135
- }
1136
-
1137
- .prose-base :where(.prose > ol > li > :last-child):not(:where([class~="not-prose"] *)) {
1138
- margin-bottom: 1.25em;
1139
- }
1140
-
1141
- .prose-base :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
1142
- margin-top: 0;
1143
- }
1144
-
1145
- .prose-base :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
1121
+ .prose-sm :where(.prose-sm > :last-child):not(:where([class~="not-prose"] *)) {
1146
1122
  margin-bottom: 0;
1147
1123
  }
1148
1124
 
@@ -1268,24 +1244,24 @@ pre[class*="language-"] {
1268
1244
  padding-left: .444444em;
1269
1245
  }
1270
1246
 
1271
- .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"] *)) {
1272
1248
  margin-top: .888889em;
1273
1249
  margin-bottom: .888889em;
1274
1250
  }
1275
1251
 
1276
- .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"] *)) {
1277
1253
  margin-top: 1.33333em;
1278
1254
  }
1279
1255
 
1280
- .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"] *)) {
1281
1257
  margin-bottom: 1.33333em;
1282
1258
  }
1283
1259
 
1284
- .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"] *)) {
1285
1261
  margin-top: 1.33333em;
1286
1262
  }
1287
1263
 
1288
- .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"] *)) {
1289
1265
  margin-bottom: 1.33333em;
1290
1266
  }
1291
1267
 
@@ -1346,275 +1322,14 @@ pre[class*="language-"] {
1346
1322
  padding-right: 0;
1347
1323
  }
1348
1324
 
1349
- .prose-lg :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
1350
- margin-top: 0;
1351
- }
1352
-
1353
- .prose-lg :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
1354
- margin-bottom: 0;
1355
- }
1356
-
1357
- .prose-xl :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) {
1358
- margin-top: .8em;
1359
- margin-bottom: .8em;
1360
- }
1361
-
1362
- .prose-xl :where(.prose > ul > li > :first-child):not(:where([class~="not-prose"] *)) {
1363
- margin-top: 1.2em;
1364
- }
1365
-
1366
- .prose-xl :where(.prose > ul > li > :last-child):not(:where([class~="not-prose"] *)) {
1367
- margin-bottom: 1.2em;
1368
- }
1369
-
1370
- .prose-xl :where(.prose > ol > li > :first-child):not(:where([class~="not-prose"] *)) {
1371
- margin-top: 1.2em;
1372
- }
1373
-
1374
- .prose-xl :where(.prose > ol > li > :last-child):not(:where([class~="not-prose"] *)) {
1375
- margin-bottom: 1.2em;
1376
- }
1377
-
1378
- .prose-xl :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
1325
+ .prose-lg :where(.prose-lg > :first-child):not(:where([class~="not-prose"] *)) {
1379
1326
  margin-top: 0;
1380
1327
  }
1381
1328
 
1382
- .prose-xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
1329
+ .prose-lg :where(.prose-lg > :last-child):not(:where([class~="not-prose"] *)) {
1383
1330
  margin-bottom: 0;
1384
1331
  }
1385
1332
 
1386
- .prose-2xl :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) {
1387
- margin-top: .833333em;
1388
- margin-bottom: .833333em;
1389
- }
1390
-
1391
- .prose-2xl :where(.prose > ul > li > :first-child):not(:where([class~="not-prose"] *)) {
1392
- margin-top: 1.33333em;
1393
- }
1394
-
1395
- .prose-2xl :where(.prose > ul > li > :last-child):not(:where([class~="not-prose"] *)) {
1396
- margin-bottom: 1.33333em;
1397
- }
1398
-
1399
- .prose-2xl :where(.prose > ol > li > :first-child):not(:where([class~="not-prose"] *)) {
1400
- margin-top: 1.33333em;
1401
- }
1402
-
1403
- .prose-2xl :where(.prose > ol > li > :last-child):not(:where([class~="not-prose"] *)) {
1404
- margin-bottom: 1.33333em;
1405
- }
1406
-
1407
- .prose-2xl :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
1408
- margin-top: 0;
1409
- }
1410
-
1411
- .prose-2xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)) {
1412
- margin-bottom: 0;
1413
- }
1414
-
1415
- .theme-github-light {
1416
- --tw-bg-opacity: 1;
1417
- background-color: rgb(255 255 255 / var(--tw-bg-opacity));
1418
- }
1419
-
1420
- .theme-github-light .highlight .hll {
1421
- background-color: #f8f8f8;
1422
- border: 1px solid #ccc;
1423
- border-radius: 3px;
1424
- padding: 6px 10px;
1425
- }
1426
-
1427
- .theme-github-light .highlight .c {
1428
- color: #998;
1429
- font-style: italic;
1430
- }
1431
-
1432
- .theme-github-light .highlight .k, .theme-github-light .highlight .o {
1433
- font-weight: bold;
1434
- }
1435
-
1436
- .theme-github-light .highlight .cm {
1437
- color: #998;
1438
- font-style: italic;
1439
- }
1440
-
1441
- .theme-github-light .highlight .cp {
1442
- color: #999;
1443
- font-weight: bold;
1444
- }
1445
-
1446
- .theme-github-light .highlight .c1 {
1447
- color: #998;
1448
- font-style: italic;
1449
- }
1450
-
1451
- .theme-github-light .highlight .cs {
1452
- color: #999;
1453
- font-style: italic;
1454
- font-weight: bold;
1455
- }
1456
-
1457
- .theme-github-light .highlight .gd {
1458
- color: #000;
1459
- background-color: #fdd;
1460
- }
1461
-
1462
- .theme-github-light .highlight .gd .x {
1463
- color: #000;
1464
- background-color: #faa;
1465
- }
1466
-
1467
- .theme-github-light .highlight .ge {
1468
- font-style: italic;
1469
- }
1470
-
1471
- .theme-github-light .highlight .gr {
1472
- color: #a00;
1473
- }
1474
-
1475
- .theme-github-light .highlight .gh {
1476
- color: #999;
1477
- }
1478
-
1479
- .theme-github-light .highlight .gi {
1480
- color: #000;
1481
- background-color: #dfd;
1482
- }
1483
-
1484
- .theme-github-light .highlight .gi .x {
1485
- color: #000;
1486
- background-color: #afa;
1487
- }
1488
-
1489
- .theme-github-light .highlight .go {
1490
- color: #888;
1491
- }
1492
-
1493
- .theme-github-light .highlight .gp {
1494
- color: #555;
1495
- }
1496
-
1497
- .theme-github-light .highlight .gs {
1498
- font-weight: bold;
1499
- }
1500
-
1501
- .theme-github-light .highlight .gu {
1502
- color: purple;
1503
- font-weight: bold;
1504
- }
1505
-
1506
- .theme-github-light .highlight .gt {
1507
- color: #a00;
1508
- }
1509
-
1510
- .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 {
1511
- font-weight: bold;
1512
- }
1513
-
1514
- .theme-github-light .highlight .kt {
1515
- color: #458;
1516
- font-weight: bold;
1517
- }
1518
-
1519
- .theme-github-light .highlight .m {
1520
- color: #099;
1521
- }
1522
-
1523
- .theme-github-light .highlight .s {
1524
- color: #d14;
1525
- }
1526
-
1527
- .theme-github-light .highlight .\!s {
1528
- color: #d14 !important;
1529
- }
1530
-
1531
- .theme-github-light .highlight .n {
1532
- color: #333;
1533
- }
1534
-
1535
- .theme-github-light .highlight .na {
1536
- color: teal;
1537
- }
1538
-
1539
- .theme-github-light .highlight .nb {
1540
- color: #0086b3;
1541
- }
1542
-
1543
- .theme-github-light .highlight .nc {
1544
- color: #458;
1545
- font-weight: bold;
1546
- }
1547
-
1548
- .theme-github-light .highlight .no {
1549
- color: teal;
1550
- }
1551
-
1552
- .theme-github-light .highlight .ni {
1553
- color: purple;
1554
- }
1555
-
1556
- .theme-github-light .highlight .ne, .theme-github-light .highlight .nf {
1557
- color: #900;
1558
- font-weight: bold;
1559
- }
1560
-
1561
- .theme-github-light .highlight .nn {
1562
- color: #555;
1563
- }
1564
-
1565
- .theme-github-light .highlight .nt {
1566
- color: navy;
1567
- }
1568
-
1569
- .theme-github-light .highlight .nv {
1570
- color: teal;
1571
- }
1572
-
1573
- .theme-github-light .highlight .ow {
1574
- font-weight: bold;
1575
- }
1576
-
1577
- .theme-github-light .highlight .w {
1578
- color: #bbb;
1579
- }
1580
-
1581
- .theme-github-light .highlight .mf, .theme-github-light .highlight .mh, .theme-github-light .highlight .mi, .theme-github-light .highlight .mo {
1582
- color: #099;
1583
- }
1584
-
1585
- .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 {
1586
- color: #d14;
1587
- }
1588
-
1589
- .theme-github-light .highlight .sr {
1590
- color: #009926;
1591
- }
1592
-
1593
- .theme-github-light .highlight .s1 {
1594
- color: #d14;
1595
- }
1596
-
1597
- .theme-github-light .highlight .ss {
1598
- color: #990073;
1599
- }
1600
-
1601
- .theme-github-light .highlight .bp {
1602
- color: #999;
1603
- }
1604
-
1605
- .theme-github-light .highlight .vc, .theme-github-light .highlight .vg, .theme-github-light .highlight .vi {
1606
- color: teal;
1607
- }
1608
-
1609
- .theme-github-light .highlight .il {
1610
- color: #099;
1611
- }
1612
-
1613
- .theme-github-light .highlight .gc {
1614
- color: #999;
1615
- background-color: #eaf2f5;
1616
- }
1617
-
1618
1333
  [data-component="code"] {
1619
1334
  padding-left: 1rem;
1620
1335
  padding-right: 1rem;
@@ -1653,14 +1368,9 @@ pre[class*="language-"] {
1653
1368
  height: 100%;
1654
1369
  -webkit-user-select: none;
1655
1370
  user-select: none;
1371
+ text-align: right;
1656
1372
  border-style: dashed;
1657
1373
  border-right-width: 1px;
1658
- border-color: var(--lookbook-divider);
1659
- --tw-bg-opacity: 1;
1660
- background-color: rgb(255 255 255 / var(--tw-bg-opacity));
1661
- text-align: right;
1662
- --tw-text-opacity: 1;
1663
- color: rgb(156 163 175 / var(--tw-text-opacity));
1664
1374
  padding: .75rem;
1665
1375
  }
1666
1376
 
@@ -1734,10 +1444,42 @@ pre[class*="language-"] {
1734
1444
  padding: 1rem;
1735
1445
  }
1736
1446
 
1447
+ [data-component="nav"] .nav-action {
1448
+ width: 100%;
1449
+ cursor: pointer;
1450
+ -webkit-user-select: none;
1451
+ user-select: none;
1452
+ color: var(--lookbook-nav-text);
1453
+ align-items: center;
1454
+ padding-top: .25rem;
1455
+ padding-bottom: .25rem;
1456
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter, backdrop-filter;
1457
+ transition-duration: .15s;
1458
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
1459
+ display: flex;
1460
+ }
1461
+
1462
+ [data-component="nav"] .nav-action:hover {
1463
+ background-color: var(--lookbook-nav-item-hover);
1464
+ }
1465
+
1466
+ [data-component="nav"] .nav-action-inner {
1467
+ width: 100%;
1468
+ align-items: center;
1469
+ display: flex;
1470
+ position: relative;
1471
+ }
1472
+
1473
+ [data-component="nav"] .nav-toggle-icon {
1474
+ color: var(--lookbook-nav-toggle);
1475
+ margin-right: .25rem;
1476
+ position: absolute;
1477
+ left: -1rem;
1478
+ }
1479
+
1737
1480
  [data-component="params-editor"] table:not(.linear) thead tr {
1738
- --tw-border-opacity: 1;
1739
1481
  border-bottom-width: 1px;
1740
- border-color: rgb(209 213 219 / var(--tw-border-opacity));
1482
+ border-color: var(--lookbook-divider);
1741
1483
  }
1742
1484
 
1743
1485
  [data-component="params-editor"] table:not(.linear) thead th {
@@ -1756,9 +1498,8 @@ pre[class*="language-"] {
1756
1498
  }
1757
1499
 
1758
1500
  [data-component="params-editor"] table:not(.linear) tbody tr + tr td {
1759
- --tw-border-opacity: 1;
1760
1501
  border-top-width: 1px;
1761
- border-color: rgb(229 231 235 / var(--tw-border-opacity));
1502
+ border-color: var(--lookbook-divider);
1762
1503
  }
1763
1504
 
1764
1505
  [data-component="params-editor"] table:not(.linear) tbody td {
@@ -1783,14 +1524,13 @@ pre[class*="language-"] {
1783
1524
  }
1784
1525
 
1785
1526
  [data-component="params-editor"] table.linear tr:not(:last-child) {
1786
- --tw-border-opacity: 1;
1787
1527
  border-bottom-width: 1px;
1788
- border-color: rgb(229 231 235 / var(--tw-border-opacity));
1528
+ border-color: var(--lookbook-divider);
1789
1529
  }
1790
1530
 
1791
1531
  [data-component="params-editor"] table.linear tr > :not([hidden]) ~ :not([hidden]) {
1792
1532
  --tw-space-y-reverse: 0;
1793
- margin-top: calc(.75rem * calc(1 - var(--tw-space-y-reverse)) );
1533
+ margin-top: calc(.75rem * calc(1 - var(--tw-space-y-reverse)));
1794
1534
  margin-bottom: calc(.75rem * var(--tw-space-y-reverse));
1795
1535
  }
1796
1536
 
@@ -1869,7 +1609,7 @@ pre[class*="language-"] {
1869
1609
  }
1870
1610
 
1871
1611
  [data-component="viewport"] .resize-handle:hover {
1872
- background-color: var(--lookbook-draggable-hint);
1612
+ background-color: var(--lookbook-viewport-handle-hover);
1873
1613
  --tw-bg-opacity: .2;
1874
1614
  }
1875
1615
 
@@ -2054,10 +1794,6 @@ input[type="color"]::-webkit-color-swatch {
2054
1794
  left: -1px;
2055
1795
  }
2056
1796
 
2057
- .-left-4 {
2058
- left: -1rem;
2059
- }
2060
-
2061
1797
  .top-\[2px\] {
2062
1798
  top: 2px;
2063
1799
  }
@@ -2164,10 +1900,6 @@ input[type="color"]::-webkit-color-swatch {
2164
1900
  margin-left: -.75rem;
2165
1901
  }
2166
1902
 
2167
- .-mb-px {
2168
- margin-bottom: -1px;
2169
- }
2170
-
2171
1903
  .mr-auto {
2172
1904
  margin-right: auto;
2173
1905
  }
@@ -2288,6 +2020,10 @@ input[type="color"]::-webkit-color-swatch {
2288
2020
  width: 100%;
2289
2021
  }
2290
2022
 
2023
+ .w-\[140px\] {
2024
+ width: 140px;
2025
+ }
2026
+
2291
2027
  .w-screen {
2292
2028
  width: 100vw;
2293
2029
  }
@@ -2489,49 +2225,49 @@ input[type="color"]::-webkit-color-swatch {
2489
2225
 
2490
2226
  .space-y-2 > :not([hidden]) ~ :not([hidden]) {
2491
2227
  --tw-space-y-reverse: 0;
2492
- margin-top: calc(.5rem * calc(1 - var(--tw-space-y-reverse)) );
2228
+ margin-top: calc(.5rem * calc(1 - var(--tw-space-y-reverse)));
2493
2229
  margin-bottom: calc(.5rem * var(--tw-space-y-reverse));
2494
2230
  }
2495
2231
 
2496
2232
  .space-x-2 > :not([hidden]) ~ :not([hidden]) {
2497
2233
  --tw-space-x-reverse: 0;
2498
2234
  margin-right: calc(.5rem * var(--tw-space-x-reverse));
2499
- margin-left: calc(.5rem * calc(1 - var(--tw-space-x-reverse)) );
2235
+ margin-left: calc(.5rem * calc(1 - var(--tw-space-x-reverse)));
2500
2236
  }
2501
2237
 
2502
2238
  .space-x-1 > :not([hidden]) ~ :not([hidden]) {
2503
2239
  --tw-space-x-reverse: 0;
2504
2240
  margin-right: calc(.25rem * var(--tw-space-x-reverse));
2505
- margin-left: calc(.25rem * calc(1 - var(--tw-space-x-reverse)) );
2241
+ margin-left: calc(.25rem * calc(1 - var(--tw-space-x-reverse)));
2506
2242
  }
2507
2243
 
2508
2244
  .space-x-6 > :not([hidden]) ~ :not([hidden]) {
2509
2245
  --tw-space-x-reverse: 0;
2510
2246
  margin-right: calc(1.5rem * var(--tw-space-x-reverse));
2511
- margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)) );
2247
+ margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
2512
2248
  }
2513
2249
 
2514
2250
  .space-x-3 > :not([hidden]) ~ :not([hidden]) {
2515
2251
  --tw-space-x-reverse: 0;
2516
2252
  margin-right: calc(.75rem * var(--tw-space-x-reverse));
2517
- margin-left: calc(.75rem * calc(1 - var(--tw-space-x-reverse)) );
2253
+ margin-left: calc(.75rem * calc(1 - var(--tw-space-x-reverse)));
2518
2254
  }
2519
2255
 
2520
2256
  .space-y-3 > :not([hidden]) ~ :not([hidden]) {
2521
2257
  --tw-space-y-reverse: 0;
2522
- margin-top: calc(.75rem * calc(1 - var(--tw-space-y-reverse)) );
2258
+ margin-top: calc(.75rem * calc(1 - var(--tw-space-y-reverse)));
2523
2259
  margin-bottom: calc(.75rem * var(--tw-space-y-reverse));
2524
2260
  }
2525
2261
 
2526
2262
  .space-x-1\.5 > :not([hidden]) ~ :not([hidden]) {
2527
2263
  --tw-space-x-reverse: 0;
2528
2264
  margin-right: calc(.375rem * var(--tw-space-x-reverse));
2529
- margin-left: calc(.375rem * calc(1 - var(--tw-space-x-reverse)) );
2265
+ margin-left: calc(.375rem * calc(1 - var(--tw-space-x-reverse)));
2530
2266
  }
2531
2267
 
2532
2268
  .divide-y > :not([hidden]) ~ :not([hidden]) {
2533
2269
  --tw-divide-y-reverse: 0;
2534
- border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)) );
2270
+ border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
2535
2271
  border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
2536
2272
  }
2537
2273
 
@@ -2563,10 +2299,6 @@ input[type="color"]::-webkit-color-swatch {
2563
2299
  overflow-x: hidden;
2564
2300
  }
2565
2301
 
2566
- .overflow-y-hidden {
2567
- overflow-y: hidden;
2568
- }
2569
-
2570
2302
  .scroll-smooth {
2571
2303
  scroll-behavior: smooth;
2572
2304
  }
@@ -2625,14 +2357,14 @@ input[type="color"]::-webkit-color-swatch {
2625
2357
  border-left-width: 1px;
2626
2358
  }
2627
2359
 
2628
- .border-r {
2629
- border-right-width: 1px;
2630
- }
2631
-
2632
2360
  .border-b-0 {
2633
2361
  border-bottom-width: 0;
2634
2362
  }
2635
2363
 
2364
+ .border-r {
2365
+ border-right-width: 1px;
2366
+ }
2367
+
2636
2368
  .border-l-2 {
2637
2369
  border-left-width: 2px;
2638
2370
  }
@@ -2745,10 +2477,6 @@ input[type="color"]::-webkit-color-swatch {
2745
2477
  background-color: var(--lookbook-toolbar-bg);
2746
2478
  }
2747
2479
 
2748
- .bg-lookbook-viewport-handle {
2749
- background-color: var(--lookbook-viewport-handle);
2750
- }
2751
-
2752
2480
  .bg-gray-100\/80 {
2753
2481
  background-color: #f3f4f6cc;
2754
2482
  }
@@ -2757,12 +2485,8 @@ input[type="color"]::-webkit-color-swatch {
2757
2485
  background-color: var(--lookbook-nav-item-active) !important;
2758
2486
  }
2759
2487
 
2760
- .stroke-current {
2761
- stroke: currentColor;
2762
- }
2763
-
2764
- .stroke-2 {
2765
- stroke-width: 2px;
2488
+ .bg-lookbook-params-editor-bg {
2489
+ background-color: var(--lookbook-params-editor-bg);
2766
2490
  }
2767
2491
 
2768
2492
  .p-4 {
@@ -2777,14 +2501,14 @@ input[type="color"]::-webkit-color-swatch {
2777
2501
  padding: .5rem;
2778
2502
  }
2779
2503
 
2780
- .p-3 {
2781
- padding: .75rem;
2782
- }
2783
-
2784
2504
  .p-6 {
2785
2505
  padding: 1.5rem;
2786
2506
  }
2787
2507
 
2508
+ .p-3 {
2509
+ padding: .75rem;
2510
+ }
2511
+
2788
2512
  .p-8 {
2789
2513
  padding: 2rem;
2790
2514
  }
@@ -2824,16 +2548,6 @@ input[type="color"]::-webkit-color-swatch {
2824
2548
  padding-bottom: .75rem;
2825
2549
  }
2826
2550
 
2827
- .py-1 {
2828
- padding-top: .25rem;
2829
- padding-bottom: .25rem;
2830
- }
2831
-
2832
- .py-4 {
2833
- padding-top: 1rem;
2834
- padding-bottom: 1rem;
2835
- }
2836
-
2837
2551
  .px-1 {
2838
2552
  padding-left: .25rem;
2839
2553
  padding-right: .25rem;
@@ -2843,6 +2557,10 @@ input[type="color"]::-webkit-color-swatch {
2843
2557
  padding-bottom: 2.5rem;
2844
2558
  }
2845
2559
 
2560
+ .pb-4 {
2561
+ padding-bottom: 1rem;
2562
+ }
2563
+
2846
2564
  .pt-1 {
2847
2565
  padding-top: .25rem;
2848
2566
  }
@@ -2883,10 +2601,6 @@ input[type="color"]::-webkit-color-swatch {
2883
2601
  padding-top: .5rem;
2884
2602
  }
2885
2603
 
2886
- .pt-\[4px\] {
2887
- padding-top: 4px;
2888
- }
2889
-
2890
2604
  .pb-0 {
2891
2605
  padding-bottom: 0;
2892
2606
  }
@@ -2919,16 +2633,12 @@ input[type="color"]::-webkit-color-swatch {
2919
2633
  text-align: center;
2920
2634
  }
2921
2635
 
2922
- .align-middle {
2923
- vertical-align: middle;
2924
- }
2925
-
2926
2636
  .font-mono {
2927
2637
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
2928
2638
  }
2929
2639
 
2930
2640
  .font-sans {
2931
- font-family: Nunito Sans, -apple-system, \.SFNSText-Regular, San Francisco, BlinkMacSystemFont, Segoe UI, Helvetica Neue, Helvetica, Arial, sans-serif;
2641
+ font-family: -apple-system, \.SFNSText-Regular, San Francisco, BlinkMacSystemFont, Segoe UI, Helvetica Neue, Helvetica, Arial, sans-serif;
2932
2642
  }
2933
2643
 
2934
2644
  .text-base {
@@ -2951,10 +2661,6 @@ input[type="color"]::-webkit-color-swatch {
2951
2661
  line-height: 1rem;
2952
2662
  }
2953
2663
 
2954
- .text-\[0\.82rem\] {
2955
- font-size: .82rem;
2956
- }
2957
-
2958
2664
  .text-lg {
2959
2665
  font-size: 1.125rem;
2960
2666
  line-height: 1.75rem;
@@ -2984,6 +2690,10 @@ input[type="color"]::-webkit-color-swatch {
2984
2690
  line-height: 1.25;
2985
2691
  }
2986
2692
 
2693
+ .tracking-wide {
2694
+ letter-spacing: .025em;
2695
+ }
2696
+
2987
2697
  .tracking-wider {
2988
2698
  letter-spacing: .05em;
2989
2699
  }
@@ -3046,31 +2756,10 @@ input[type="color"]::-webkit-color-swatch {
3046
2756
  color: var(--lookbook-prose-text);
3047
2757
  }
3048
2758
 
3049
- .text-lookbook-viewport-handle-icon-stroke {
3050
- color: var(--lookbook-viewport-handle-icon-stroke);
3051
- }
3052
-
3053
- .text-lookbook-input-text {
3054
- color: var(--lookbook-input-text);
3055
- }
3056
-
3057
- .text-lookbook-nav-text {
3058
- color: var(--lookbook-nav-text);
3059
- }
3060
-
3061
- .text-lookbook-nav-toggle {
3062
- color: var(--lookbook-nav-toggle);
3063
- }
3064
-
3065
2759
  .text-lookbook-nav-icon-stroke {
3066
2760
  color: var(--lookbook-nav-icon-stroke);
3067
2761
  }
3068
2762
 
3069
- .text-red-500 {
3070
- --tw-text-opacity: 1;
3071
- color: rgb(239 68 68 / var(--tw-text-opacity));
3072
- }
3073
-
3074
2763
  .text-lookbook-tabs-text {
3075
2764
  color: var(--lookbook-tabs-text);
3076
2765
  }
@@ -3394,12 +3083,403 @@ input[type="color"]::-webkit-color-swatch {
3394
3083
  border-right-color: #fff;
3395
3084
  }
3396
3085
 
3397
- .hover\:bg-lookbook-draggable-hint:hover {
3398
- background-color: var(--lookbook-draggable-hint);
3086
+ .theme-github {
3087
+ --dark-bg: #111;
3088
+ --dark-gray-1: #404040;
3089
+ --dark-gray-2: #d0d0d0;
3090
+ --dark-gray-3: #ccc;
3091
+ --dark-gray-4: #777;
3092
+ --dark-gray-5: #aaa;
3093
+ --dark-gray-6: #bbb;
3094
+ --dark-gray-7: #666;
3095
+ --dark-blue-1: #3677a9;
3096
+ --dark-blue-2: #24909d;
3097
+ --dark-blue-3: #447fcf;
3098
+ --dark-blue-4: #098;
3099
+ --dark-red-1: #a61717;
3100
+ --dark-red-2: #311;
3101
+ --dark-red-3: #e50808;
3102
+ --dark-red-4: #520000;
3103
+ --dark-red-5: #d22323;
3104
+ --dark-red-6: #cd2828;
3105
+ --dark-yellow-1: #e9b96e;
3106
+ --dark-yellow-2: orange;
3107
+ --dark-orange: #d2691e;
3108
+ --dark-white: #fff;
3109
+ --dark-green-1: #589819;
3110
+ --dark-green-2: #6ab825;
3111
+ --dark-green-3: #4ca;
3112
+ --light-bg: #fff;
3113
+ --light-gray-1: #f8f8f8;
3114
+ --light-gray-2: #27272a;
3115
+ --light-gray-3: #ccc;
3116
+ --light-gray-4: #888;
3117
+ --light-gray-5: #999;
3118
+ --light-gray-6: #555;
3119
+ --light-gray-7: #bbb;
3120
+ --light-yellow-1: #998;
3121
+ --light-red-1: #a61717;
3122
+ --light-red-2: #e3d2d2;
3123
+ --light-red-3: #d14;
3124
+ --light-red-4: #fdd;
3125
+ --light-red-5: #a00;
3126
+ --light-red-6: #900;
3127
+ --light-purple-1: purple;
3128
+ --light-purple-2: #990073;
3129
+ --light-black: #000;
3130
+ --light-green-1: #dfd;
3131
+ --light-green-2: #009926;
3132
+ --light-blue-1: #458;
3133
+ --light-blue-2: #099;
3134
+ --light-blue-3: teal;
3135
+ --light-blue-4: #0086b3;
3136
+ --light-blue-5: #3c5d5d;
3137
+ --light-blue-6: navy;
3138
+ --hl-bg: var(--light-bg);
3139
+ --hl-hll-bg: var(--light-gray-1);
3140
+ --hl-border: var(--light-gray-3);
3141
+ --hl-line-number: var(--light-gray-2);
3142
+ --hl-comment: var(--light-yellow-1);
3143
+ --hl-comment-preproc: var(--light-gray-5);
3144
+ --hl-comment-special-fg: var(--light-gray-5);
3145
+ --hl-comment-special-bg: transparent;
3146
+ --hl-error-fg: var(--light-red-1);
3147
+ --hl-error-bg: var(--light-red-2);
3148
+ --hl-subtle-fg: var(--light-gray-2);
3149
+ --hl-entity: var(--light-purple-1);
3150
+ --hl-keyword: var(--light-black);
3151
+ --hl-output: var(--light-gray-4);
3152
+ --hl-operator: var(--light-black);
3153
+ --hl-punctuation: var(--light-gray-6);
3154
+ --hl-string: var(--light-red-3);
3155
+ --hl-string-other: var(--light-red-3);
3156
+ --hl-string-regex: var(--light-green-2);
3157
+ --hl-string-symbol: var(--light-purple-2);
3158
+ --hl-deleted-fg: var(--light-black);
3159
+ --hl-deleted-bg: var(--light-red-4);
3160
+ --hl-danger: var(--light-red-5);
3161
+ --hl-heading: var(--light-gray-5);
3162
+ --hl-inserted-fg: var(--light-black);
3163
+ --hl-inserted-bg: var(--light-green-1);
3164
+ --hl-prompt: var(--light-gray-6);
3165
+ --hl-subheading: var(--light-purple-1);
3166
+ --hl-keyword-crude: var(--light-black);
3167
+ --hl-keyword-subtle: var(--light-blue-1);
3168
+ --hl-number: var(--light-blue-2);
3169
+ --hl-attribute: var(--light-blue-3);
3170
+ --hl-builtin: var(--light-blue-4);
3171
+ --hl-builtin-pseudo: var(--light-gray-5);
3172
+ --hl-class: var(--light-blue-1);
3173
+ --hl-variable: var(--light-blue-3);
3174
+ --hl-decorator: var(--light-blue-5);
3175
+ --hl-exception: var(--light-red-6);
3176
+ --hl-function: var(--light-red-6);
3177
+ --hl-namespace: var(--light-gray-6);
3178
+ --hl-tag: var(--light-blue-6);
3179
+ --hl-word: var(--light-black);
3180
+ --hl-whitespace: var(--light-gray-7);
3181
+ }
3182
+
3183
+ .theme-github.dark {
3184
+ --hl-bg: var(--dark-bg);
3185
+ --hl-hll-bg: var(--dark-gray-1);
3186
+ --hl-border: var(--dark-gray-4);
3187
+ --hl-line-number: var(--dark-gray-2);
3188
+ --hl-comment: var(--dark-blue-1);
3189
+ --hl-comment-preproc: var(--dark-orange);
3190
+ --hl-comment-special-fg: var(--dark-red-3);
3191
+ --hl-comment-special-bg: var(--dark-red-4);
3192
+ --hl-error-fg: var(--dark-red-1);
3193
+ --hl-error-bg: var(--dark-red-2);
3194
+ --hl-subtle-fg: var(--dark-gray-2);
3195
+ --hl-entity: var(--dark-gray-2);
3196
+ --hl-keyword: var(--dark-gray-3);
3197
+ --hl-output: var(--dark-gray-3);
3198
+ --hl-operator: var(--dark-gray-4);
3199
+ --hl-punctuation: var(--dark-yellow-1);
3200
+ --hl-string: var(--dark-orange);
3201
+ --hl-string-other: var(--dark-yellow-2);
3202
+ --hl-string-regex: var(--dark-red-6);
3203
+ --hl-string-symbol: var(--dark-orange);
3204
+ --hl-deleted-fg: var(--dark-red-5);
3205
+ --hl-deleted-bg: transparent;
3206
+ --hl-danger: var(--dark-red-5);
3207
+ --hl-heading: var(--dark-white);
3208
+ --hl-inserted-fg: var(--dark-green-1);
3209
+ --hl-inserted-bg: transparent;
3210
+ --hl-prompt: var(--dark-gray-5);
3211
+ --hl-subheading: var(--dark-white);
3212
+ --hl-keyword-crude: var(--dark-green-2);
3213
+ --hl-keyword-subtle: var(--dark-green-2);
3214
+ --hl-number: var(--dark-red-6);
3215
+ --hl-attribute: var(--dark-gray-6);
3216
+ --hl-builtin: var(--dark-blue-2);
3217
+ --hl-builtin-pseudo: var(--dark-blue-2);
3218
+ --hl-class: var(--dark-blue-3);
3219
+ --hl-variable: var(--dark-green-3);
3220
+ --hl-decorator: var(--dark-yellow-2);
3221
+ --hl-exception: var(--dark-gray-6);
3222
+ --hl-function: var(--dark-blue-4);
3223
+ --hl-namespace: var(--dark-blue-3);
3224
+ --hl-tag: var(--dark-green-2);
3225
+ --hl-word: var(--dark-green-2);
3226
+ --hl-whitespace: var(--dark-gray-7);
3227
+ }
3228
+
3229
+ .theme-github {
3230
+ background-color: var(--hl-bg);
3231
+ }
3232
+
3233
+ .theme-github .line-numbers {
3234
+ background-color: var(--hl-bg);
3235
+ border-color: var(--hl-border);
3236
+ color: var(--hl-line-number);
3237
+ }
3238
+
3239
+ .theme-github .highlight .hll {
3240
+ background-color: var(--hl-hll-bg);
3241
+ }
3242
+
3243
+ .theme-github .highlight .c {
3244
+ color: var(--hl-comment);
3245
+ font-style: italic;
3399
3246
  }
3400
3247
 
3401
- .hover\:bg-lookbook-nav-item-hover:hover {
3402
- background-color: var(--lookbook-nav-item-hover);
3248
+ .theme-github .highlight .err {
3249
+ color: var(--hl-error-fg);
3250
+ background-color: var(--hl-error-bg);
3251
+ }
3252
+
3253
+ .theme-github .highlight .g {
3254
+ color: var(--hl-subtle-fg);
3255
+ }
3256
+
3257
+ .theme-github .highlight .k {
3258
+ color: var(--hl-keyword);
3259
+ font-weight: bold;
3260
+ }
3261
+
3262
+ .theme-github .highlight .l {
3263
+ color: var(--hl-subtle-fg);
3264
+ }
3265
+
3266
+ .theme-github .highlight .n, .theme-github .highlight .h {
3267
+ color: var(--hl-keyword);
3268
+ }
3269
+
3270
+ .theme-github .highlight .o {
3271
+ color: var(--hl-operator);
3272
+ font-weight: bold;
3273
+ }
3274
+
3275
+ .theme-github .highlight .x {
3276
+ color: var(--hl-subtle-fg);
3277
+ }
3278
+
3279
+ .theme-github .highlight .p {
3280
+ color: var(--hl-punctuation);
3281
+ }
3282
+
3283
+ .theme-github .highlight .cm {
3284
+ color: var(--hl-comment);
3285
+ font-style: italic;
3286
+ }
3287
+
3288
+ .theme-github .highlight .cp {
3289
+ color: var(--hl-comment-preproc);
3290
+ font-weight: bold;
3291
+ }
3292
+
3293
+ .theme-github .highlight .c1 {
3294
+ color: var(--hl-comment);
3295
+ font-style: italic;
3296
+ }
3297
+
3298
+ .theme-github .highlight .cs {
3299
+ color: var(--hl-comment-special-fg);
3300
+ background-color: var(--hl-comment-special-bg);
3301
+ font-style: italic;
3302
+ font-weight: bold;
3303
+ }
3304
+
3305
+ .theme-github .highlight .gd {
3306
+ color: var(--hl-deleted-fg);
3307
+ background-color: var(--hl-deleted-bg);
3308
+ }
3309
+
3310
+ .theme-github .highlight .ge {
3311
+ color: var(--hl-subtle-fg);
3312
+ font-style: italic;
3313
+ }
3314
+
3315
+ .theme-github .highlight .gr {
3316
+ color: var(--hl-danger);
3317
+ }
3318
+
3319
+ .theme-github .highlight .gh {
3320
+ color: var(--hl-heading);
3321
+ }
3322
+
3323
+ .theme-github .highlight .gi {
3324
+ color: var(--hl-inserted-fg);
3325
+ background-color: var(--hl-inserted-bg);
3326
+ }
3327
+
3328
+ .theme-github .highlight .go {
3329
+ color: var(--hl-output);
3330
+ }
3331
+
3332
+ .theme-github .highlight .gp {
3333
+ color: var(--hl-prompt);
3334
+ }
3335
+
3336
+ .theme-github .highlight .gs {
3337
+ color: var(--hl-subtle-fg);
3338
+ font-weight: bold;
3339
+ }
3340
+
3341
+ .theme-github .highlight .gu {
3342
+ color: var(--hl-subheading);
3343
+ font-weight: bold;
3344
+ }
3345
+
3346
+ .theme-github .highlight .gt {
3347
+ color: var(--hl-danger);
3348
+ }
3349
+
3350
+ .theme-github .highlight .kc, .theme-github .highlight .kd, .theme-github .highlight .kn, .theme-github .highlight .kp, .theme-github .highlight .kr {
3351
+ color: var(--hl-keyword-crude);
3352
+ font-weight: bold;
3353
+ }
3354
+
3355
+ .theme-github .highlight .kt {
3356
+ color: var(--hl-keyword-subtle);
3357
+ font-weight: bold;
3358
+ }
3359
+
3360
+ .theme-github .highlight .ld {
3361
+ color: var(--hl-subtle-fg);
3362
+ }
3363
+
3364
+ .theme-github .highlight .m {
3365
+ color: var(--hl-number);
3366
+ }
3367
+
3368
+ .theme-github .highlight .s {
3369
+ color: var(--hl-string);
3370
+ }
3371
+
3372
+ .theme-github .highlight .na {
3373
+ color: var(--hl-attribute);
3374
+ }
3375
+
3376
+ .theme-github .highlight .nb {
3377
+ color: var(--hl-builtin);
3378
+ }
3379
+
3380
+ .theme-github .highlight .nc {
3381
+ color: var(--hl-class);
3382
+ font-weight: bold;
3383
+ }
3384
+
3385
+ .theme-github .highlight .no {
3386
+ color: var(--hl-variable);
3387
+ }
3388
+
3389
+ .theme-github .highlight .nd {
3390
+ color: var(--hl-decorator);
3391
+ }
3392
+
3393
+ .theme-github .highlight .ni {
3394
+ color: var(--hl-entity);
3395
+ }
3396
+
3397
+ .theme-github .highlight .ne {
3398
+ color: var(--hl-exception);
3399
+ font-weight: bold;
3400
+ }
3401
+
3402
+ .theme-github .highlight .nf {
3403
+ color: var(--hl-function);
3404
+ font-weight: bold;
3405
+ }
3406
+
3407
+ .theme-github .highlight .nl {
3408
+ color: var(--hl-subtle-fg);
3409
+ }
3410
+
3411
+ .theme-github .highlight .nn {
3412
+ color: var(--hl-namespace);
3413
+ }
3414
+
3415
+ .theme-github .highlight .nx, .theme-github .highlight .py {
3416
+ color: var(--hl-subtle-fg);
3417
+ }
3418
+
3419
+ .theme-github .highlight .nt {
3420
+ color: var(--hl-tag);
3421
+ }
3422
+
3423
+ .theme-github .highlight .nv {
3424
+ color: var(--hl-variable);
3425
+ }
3426
+
3427
+ .theme-github .highlight .ow {
3428
+ color: var(--hl-word);
3429
+ font-weight: bold;
3430
+ }
3431
+
3432
+ .theme-github .highlight .w {
3433
+ color: var(--hl-whitespace);
3434
+ }
3435
+
3436
+ .theme-github .highlight .mf, .theme-github .highlight .mh, .theme-github .highlight .mi, .theme-github .highlight .mo {
3437
+ color: var(--hl-number);
3438
+ }
3439
+
3440
+ .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 {
3441
+ color: var(--hl-string);
3442
+ }
3443
+
3444
+ .theme-github .highlight .sx {
3445
+ color: var(--hl-string-other);
3446
+ }
3447
+
3448
+ .theme-github .highlight .sr {
3449
+ color: var(--hl-string-regex);
3450
+ }
3451
+
3452
+ .theme-github .highlight .s1 {
3453
+ color: var(--hl-string);
3454
+ }
3455
+
3456
+ .theme-github .highlight .ss {
3457
+ color: var(--hl-string-symbol);
3458
+ }
3459
+
3460
+ .theme-github .highlight .bp {
3461
+ color: var(--hl-builtin-pseudo);
3462
+ }
3463
+
3464
+ .theme-github .highlight .vc, .theme-github .highlight .vg, .theme-github .highlight .vi {
3465
+ color: var(--hl-variable);
3466
+ }
3467
+
3468
+ .theme-github .highlight .il {
3469
+ color: var(--hl-number);
3470
+ }
3471
+
3472
+ .theme-github .highlight .line-number {
3473
+ -webkit-user-select: none;
3474
+ -moz-user-select: none;
3475
+ }
3476
+
3477
+ .theme-github .highlight .line-number::selection {
3478
+ background-color: #0000;
3479
+ }
3480
+
3481
+ .hover\:bg-lookbook-draggable-hint:hover {
3482
+ background-color: var(--lookbook-draggable-hint);
3403
3483
  }
3404
3484
 
3405
3485
  .hover\:text-gray-900:hover {
@@ -3416,10 +3496,6 @@ input[type="color"]::-webkit-color-swatch {
3416
3496
  color: var(--lookbook-icon-button-stroke-hover);
3417
3497
  }
3418
3498
 
3419
- .hover\:text-lookbook-viewport-handle-icon-stroke-hover:hover {
3420
- color: var(--lookbook-viewport-handle-icon-stroke-hover);
3421
- }
3422
-
3423
3499
  .hover\:text-lookbook-tabs-text-hover:hover {
3424
3500
  color: var(--lookbook-tabs-text-hover);
3425
3501
  }
@@ -3458,7 +3534,7 @@ input[type="color"]::-webkit-color-swatch {
3458
3534
  outline: 2px solid #0000;
3459
3535
  }
3460
3536
 
3461
- .prose-a\:text-lookbook-prose-link :is(:where(a):not(:where([class~="not-prose"] *))) {
3537
+ .prose-a\:text-lookbook-prose-link :where(a):not(:where([class~="not-prose"] *)) {
3462
3538
  color: var(--lookbook-prose-link);
3463
3539
  }
3464
3540