nk_jtb 0.8.7 → 0.9.1

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.
Files changed (123) hide show
  1. package/.prettierignore +1 -0
  2. package/.prettierrc +3 -0
  3. package/.vscode/settings.json +3 -0
  4. package/index.html +190 -3
  5. package/package.json +8 -7
  6. package/readme.md +17 -1
  7. package/src/_nk.scss +44 -15
  8. package/src/base/_base.scss +20 -12
  9. package/src/base/_content_gap.scss +33 -0
  10. package/src/base/_root.scss +1 -1
  11. package/src/base/index.scss +3 -0
  12. package/src/color/_shades.scss +31 -14
  13. package/src/color/_themes.scss +12 -16
  14. package/src/{scss/components → components}/_accordion.scss +1 -1
  15. package/src/{scss/components → components}/_article.scss +2 -2
  16. package/src/components/_banner.scss +17 -0
  17. package/src/{scss/components → components}/_box.scss +2 -3
  18. package/src/components/_button.scss +5 -5
  19. package/src/{scss/components → components}/_dropdown.scss +6 -6
  20. package/src/{scss/components → components}/_icon.scss +6 -3
  21. package/src/{scss/components → components}/_list.scss +1 -2
  22. package/src/{scss/components → components}/_menu.scss +2 -3
  23. package/src/components/_misc.scss +44 -0
  24. package/src/{scss/components → components}/_navbar.scss +4 -4
  25. package/src/{scss/components → components}/_other.scss +2 -2
  26. package/src/components/_sidebar.scss +10 -0
  27. package/src/components-extended/_hero.scss +18 -2
  28. package/src/extras/_code.scss +1 -1
  29. package/src/extras/agate.css +139 -139
  30. package/src/extras/github-dark-dimmed.css +124 -124
  31. package/src/extras/monokai-sublime.css +80 -80
  32. package/src/extras/panda-syntax-dark.css +99 -99
  33. package/src/forms/_choices.scss +3 -3
  34. package/src/forms/_control.scss +41 -22
  35. package/src/forms/_form.scss +54 -33
  36. package/src/forms/_index.scss +5 -0
  37. package/src/{scss/forms → forms}/_toggle.scss +1 -2
  38. package/src/functions/_colorFunctions.scss +1 -1
  39. package/src/functions/helpers/_map-and-list.scss +39 -0
  40. package/src/functions/helpers/_naming-and-formatting.scss +72 -0
  41. package/src/functions/helpers/_string.scss +34 -0
  42. package/src/functions/helpers/_strippers.scss +55 -0
  43. package/src/functions/helpers/_validation.scss +13 -0
  44. package/src/functions/helpers/index.scss +7 -0
  45. package/src/jtb.scss +40 -38
  46. package/src/jtb_basic.scss +18 -0
  47. package/src/mixins/_class-helpers.scss +180 -0
  48. package/src/mixins/_classGenerators.scss +14 -0
  49. package/src/mixins/{_colorShadeClasses.scss → _colorThemeGenerators.scss} +20 -7
  50. package/src/mixins/_common.scss +11 -0
  51. package/src/mixins/_extendedThemeClass.scss +3 -3
  52. package/src/mixins/_magicClassGenerators.scss +103 -0
  53. package/src/{scss/mixins/_makeMagicGridEqualWidths.scss → mixins/_magicGridGenerators.scss} +26 -4
  54. package/src/mixins/_media.scss +4 -4
  55. package/src/mixins/_state.scss +17 -0
  56. package/src/mixins/generators/_generate-classes.scss +26 -0
  57. package/src/mixins/generators/_generate-from-values.scss +40 -0
  58. package/src/mixins/generators/_generate-utilities.scss +57 -0
  59. package/src/play.scss +153 -17
  60. package/src/utilities/_border.scss +78 -0
  61. package/src/utilities/_container.scss +31 -0
  62. package/src/utilities/_effects.scss +15 -0
  63. package/src/utilities/_flexbox.scss +93 -0
  64. package/src/utilities/_grid.scss +63 -43
  65. package/src/utilities/_layout.scss +21 -0
  66. package/src/utilities/_margin.scss +21 -0
  67. package/src/utilities/_misc.scss +16 -0
  68. package/src/utilities/_padding.scss +26 -0
  69. package/src/utilities/_position.scss +21 -0
  70. package/src/utilities/_sizing.scss +60 -0
  71. package/src/utilities/_space.scss +29 -0
  72. package/src/utilities/_state.scss +31 -0
  73. package/src/utilities/_typography.scss +185 -0
  74. package/src/utilities/{_responsive_display_visibility.scss → _visibility-display.scss} +15 -10
  75. package/src/{base/_vars_base.scss → variables/_base.scss} +5 -14
  76. package/src/{base/_vars_colors.scss → variables/_colors.scss} +2 -2
  77. package/src/{scss/base/_vars_components.scss → variables/_components.scss} +32 -6
  78. package/src/variables/_identifiers.scss +22 -0
  79. package/src/variables/_utility_maps.scss +127 -0
  80. package/src/variables/index.scss +6 -0
  81. package/tmp/_general.scss +56 -0
  82. package/{src/scss → tmp}/_nk.scss +1 -30
  83. package/tmp/_state.scss +0 -0
  84. package/vite.config.js +18 -17
  85. package/src/base/_vars_all.scss +0 -6
  86. package/src/base/_vars_class_names.scss +0 -7
  87. package/src/base/_vars_components.scss +0 -21
  88. package/src/base/_vars_utility_maps.scss +0 -112
  89. package/src/functions/_helpers.scss +0 -59
  90. package/src/mixins/_responsiveClassCreators.scss +0 -96
  91. package/src/mixins/_utilityClassCreators.scss +0 -43
  92. package/src/mixins/helpers/_basicColorScheme.scss +0 -7
  93. package/src/mixins/helpers/_classCreators.scss +0 -12
  94. package/src/mixins/helpers/_index.scss +0 -3
  95. package/src/mixins/helpers/_propertyCreators.scss +0 -34
  96. package/src/scss/base/_content_gap.scss +0 -29
  97. package/src/scss/components/_sidebar.scss +0 -26
  98. package/src/scss/forms/_index.scss +0 -4
  99. package/src/scss/functions/_classNaming.scss +0 -26
  100. package/src/scss/layouts/__two-column.scss +0 -32
  101. package/src/scss/mixins/_createState.scss +0 -33
  102. package/src/scss/mixins/_makeMagicClass.scss +0 -80
  103. package/src/scss/mixins/_makeMagicGrid2Cols.scss +0 -70
  104. package/src/scss/mixins/_positionUtilityClasses.scss +0 -50
  105. package/src/scss/utilities/_border.scss +0 -126
  106. package/src/scss/utilities/_display_visibility.scss +0 -60
  107. package/src/scss/utilities/_flex.scss +0 -173
  108. package/src/scss/utilities/_general.scss +0 -127
  109. package/src/scss/utilities/_grid.scss +0 -66
  110. package/src/scss/utilities/_opacity.scss +0 -8
  111. package/src/scss/utilities/_position.scss +0 -87
  112. package/src/scss/utilities/_sizes.scss +0 -71
  113. package/src/scss/utilities/_spacing.scss +0 -247
  114. package/src/scss/utilities/_state.scss +0 -37
  115. package/src/scss/utilities/_text.scss +0 -177
  116. package/src/scss/utilities/_themes.scss +0 -33
  117. package/src/utilities/_general.scss +0 -8
  118. package/src/utilities/_size.scss +0 -55
  119. package/src/utilities/_text.scss +0 -15
  120. package/src/utilities/_utilities.scss +0 -25
  121. /package/src/{scss/forms → forms}/_file.scss +0 -0
  122. /package/src/{_properties.scss → functions/helpers/_numeric.scss} +0 -0
  123. /package/src/{scss/utilities/_translate.scss → utilities/_transforms.scss} +0 -0
@@ -0,0 +1 @@
1
+ functions
package/.prettierrc ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "printWidth": 140
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+
3
+ }
package/index.html CHANGED
@@ -6,11 +6,168 @@
6
6
  <link rel="icon" type="image/svg+xml" href="/images/favicon.svg" />
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
8
  <title>NayKel JTB</title>
9
- <!-- <script src="https://cdn.tailwindcss.com"></script> -->
9
+ <script src="https://cdn.tailwindcss.com"></script>
10
10
  <script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
11
11
  </head>
12
12
 
13
13
  <body>
14
+ <div class="container py-5">
15
+ <div class="overflow-x-auto rounded-lg bdr">
16
+ <table>
17
+ <thead class="txt-upper">
18
+ <tr>
19
+ <th scope="col" class=""> Product name </th>
20
+ <th scope="col" class=""> Color </th>
21
+ <th scope="col" class=""> Category </th>
22
+ <th scope="col" class=""> Price </th>
23
+ <th scope="col" class=""> Action </th>
24
+ </tr>
25
+ </thead>
26
+ <tbody class="divide-y bdr-t">
27
+ <tr class="">
28
+ <th scope="row" class=""> Apple MacBook Pro 17" </th>
29
+ <td class=""> Silver </td>
30
+ <td class=""> Laptop </td>
31
+ <td class=""> $2999 </td>
32
+ <td class=""> <a href="#">Edit</a> </td>
33
+ </tr>
34
+ <tr class="bdr-green bdr5">
35
+ <th scope="row" class=""> Microsoft Surface Pro </th>
36
+ <td class=""> White </td>
37
+ <td class=""> Laptop PC </td>
38
+ <td class=""> $1999 </td>
39
+ <td class=""> <a href="#">Edit</a> </td>
40
+ </tr>
41
+ <tr class="">
42
+ <th scope="row" class=""> Magic Mouse 2 </th>
43
+ <td class=""> Black </td>
44
+ <td class=""> Accessories </td>
45
+ <td class=""> $99 </td>
46
+ <td class=""> <a href="#">Edit</a> </td>
47
+ </tr>
48
+ <tr class="">
49
+ <th scope="row" class=""> Google Pixel Phone </th>
50
+ <td class=""> Gray </td>
51
+ <td class=""> Phone </td>
52
+ <td class=""> $799 </td>
53
+ <td class=""> <a href="#">Edit</a> </td>
54
+ </tr>
55
+ <tr class="">
56
+ <th scope="row" class=""> Apple Watch 5 </th>
57
+ <td class=""> Red </td>
58
+ <td class=""> Wearables </td>
59
+ <td class=""> $999 </td>
60
+ <td class=""> <a href="#">Edit</a> </td>
61
+ </tr>
62
+ </tbody>
63
+ </table>
64
+ </div>
65
+ <hr>
66
+ <div class="overflow-x-auto rounded-lg bdr">
67
+ <table>
68
+ <thead class="txt-upper">
69
+ <tr>
70
+ <th scope="col" class=""> Product name </th>
71
+ <th scope="col" class=""> Color </th>
72
+ <th scope="col" class=""> Category </th>
73
+ <th scope="col" class=""> Price </th>
74
+ <th scope="col" class=""> Action </th>
75
+ </tr>
76
+ </thead>
77
+ <tbody class="divide-y">
78
+ <tr class="bdr-b bdr-light">
79
+ <th scope="row" class=""> Apple MacBook Pro 17" </th>
80
+ <td class=""> Silver </td>
81
+ <td class=""> Laptop </td>
82
+ <td class=""> $2999 </td>
83
+ <td class=""> <a href="#">Edit</a> </td>
84
+ </tr>
85
+ <tr class="bdr-b bdr-light">
86
+ <th scope="row" class=""> Microsoft Surface Pro </th>
87
+ <td class=""> White </td>
88
+ <td class=""> Laptop PC </td>
89
+ <td class=""> $1999 </td>
90
+ <td class=""> <a href="#">Edit</a> </td>
91
+ </tr>
92
+ <tr class="bdr-b bdr-light">
93
+ <th scope="row" class=""> Magic Mouse 2 </th>
94
+ <td class=""> Black </td>
95
+ <td class=""> Accessories </td>
96
+ <td class=""> $99 </td>
97
+ <td class=""> <a href="#">Edit</a> </td>
98
+ </tr>
99
+ <tr class="bdr-b bdr-light">
100
+ <th scope="row" class=""> Google Pixel Phone </th>
101
+ <td class=""> Gray </td>
102
+ <td class=""> Phone </td>
103
+ <td class=""> $799 </td>
104
+ <td class=""> <a href="#">Edit</a> </td>
105
+ </tr>
106
+ <tr class="bdr-blue-40">
107
+ <th scope="row" class=""> Apple Watch 5 </th>
108
+ <td class=""> Red </td>
109
+ <td class=""> Wearables </td>
110
+ <td class=""> $999 </td>
111
+ <td class=""> <a href="#">Edit</a> </td>
112
+ </tr>
113
+ </tbody>
114
+ </table>
115
+ </div>
116
+ <hr>
117
+ <div class="overflow-x-auto rounded-lg">
118
+ <table>
119
+ <thead class="txt-upper txt-white bg-blue-600">
120
+ <tr>
121
+ <th scope="col" class=""> Product name </th>
122
+ <th scope="col" class=""> Color </th>
123
+ <th scope="col" class=""> Category </th>
124
+ <th scope="col" class=""> Price </th>
125
+ <th scope="col" class=""> Action </th>
126
+ </tr>
127
+ </thead>
128
+ <tbody>
129
+ <tr class="bg-blue-500 bdr-b bdr-light">
130
+ <th scope="row" class=""> Apple MacBook Pro 17" </th>
131
+ <td class=""> Silver </td>
132
+ <td class=""> Laptop </td>
133
+ <td class=""> $2999 </td>
134
+ <td class=""> <a href="#">Edit</a> </td>
135
+ </tr>
136
+ <tr class="bg-blue-500 bdr-b bdr-light">
137
+ <th scope="row" class="">
138
+ Microsoft Surface Pro
139
+ </th>
140
+ <td class=""> White </td>
141
+ <td class=""> Laptop PC </td>
142
+ <td class=""> $1999 </td>
143
+ <td class=""> <a href="#">Edit</a> </td>
144
+ </tr>
145
+ <tr class="bg-blue-500 bdr-b bdr-light">
146
+ <th scope="row" class=""> Magic Mouse 2 </th>
147
+ <td class=""> Black </td>
148
+ <td class=""> Accessories </td>
149
+ <td class=""> $99 </td>
150
+ <td class=""> <a href="#">Edit</a> </td>
151
+ </tr>
152
+ <tr class="bg-blue-500 bdr-b bdr-light">
153
+ <th scope="row" class=""> Google Pixel Phone </th>
154
+ <td class=""> Gray </td>
155
+ <td class=""> Phone </td>
156
+ <td class=""> $799 </td>
157
+ <td class=""> <a href="#">Edit</a> </td>
158
+ </tr>
159
+ <tr class="bg-blue-500 bdr-blue-40">
160
+ <th scope="row" class=""> Apple Watch 5 </th>
161
+ <td class=""> Red </td>
162
+ <td class=""> Wearables </td>
163
+ <td class=""> $999 </td>
164
+ <td class=""> <a href="#">Edit</a> </td>
165
+ </tr>
166
+ </tbody>
167
+ </table>
168
+ </div>
169
+ </div>
170
+
14
171
  <div>
15
172
  <header id="nk-header" class="container py">
16
173
  <div class="container flex space-between">
@@ -237,6 +394,7 @@
237
394
  <li><a class="menu-item" href="">Parent</a></li>
238
395
  <li><a class="menu-item active" href="">Active</a></li>
239
396
  </ul>
397
+
240
398
  </div>
241
399
  <h4>Collapse</h4>
242
400
  </div>
@@ -244,6 +402,15 @@
244
402
  <section id="button-theme-examples">
245
403
  <div class="container">
246
404
  <h2 class="title txt-3">Buttons</h2>
405
+ <h4>Button sizes</h4>
406
+ <div class="flex va-c space-x-05">
407
+ <button class="btn primary xs">Extra Small</button>
408
+ <button class="btn primary sm">Small</button>
409
+ <button class="btn primary">Base</button>
410
+ <button class="btn primary lg">Large</button>
411
+ <button class="btn primary xl">Extra Large</button>
412
+ </div>
413
+ <h4>Buttons with icon (TBD)</h4>
247
414
  <h4>Base Colors</h4>
248
415
  <div class="grid-1 cols-9">
249
416
  <button class="btn stone">stone</button>
@@ -360,6 +527,26 @@
360
527
  </section>
361
528
  <section id="button-and-form-controls">
362
529
  <div class="container">
530
+
531
+ <label><input type="radio" name="abc">Default Radio</label>
532
+ <label><input type="radio" name="abc">Checked State</label>
533
+
534
+ <div class="frm-row">
535
+ <label><input type="radio" name="abc">Default Radio</label>
536
+ <label><input type="radio" name="abc">Checked State</label>
537
+ </div>
538
+
539
+
540
+ <hr>
541
+ <label><input class="wh-3" type="radio" name="abc">Default Radio</label>
542
+ <label><input class="wh-3" type="radio" name="abc">Checked State</label>
543
+ <hr>
544
+ <label class="inline-flex va-c"><input class="wh-3" type="radio" name="abc">Default Radio</label>
545
+ <label class="inline-flex va-c"><input class="wh-3" type="radio" name="abc">Checked State</label>
546
+
547
+
548
+
549
+
363
550
  <h2 class="title">Buttons and Form Controls</h2>
364
551
 
365
552
  <div class="my">
@@ -378,7 +565,7 @@
378
565
 
379
566
  <div class="frm-row">
380
567
  <label for="error" class="block mb-2 text-sm font-medium text-red-700 dark:text-red-500">Your name</label>
381
- <input type="text" id="error" class="bg-red-50 border border-red-500 text-red-900 placeholder-red-700 text-sm rounded-lg focus:ring-red-500 dark:bg-gray-700 focus:border-red-500 block w-full p-2.5 dark:text-red-500 dark:placeholder-red-500 dark:border-red-500" placeholder="Error input">
568
+ <input type="text" id="error" class="bg-red-50 bdr bdr-red-500 text-red-900 placeholder-red-700 text-sm rounded-lg focus:ring-red-500 dark:bg-gray-700 focus:bdr-red-500 block w-full p-2.5 dark:text-red-500 dark:placeholder-red-500 dark:bdr-red-500" placeholder="Error input">
382
569
  <p class="mt-2 text-sm text-red-600 dark:text-red-500"><span class="font-medium">Oh, snapp!</span> Some error message.</p>
383
570
  </div>
384
571
 
@@ -418,7 +605,7 @@
418
605
  </div>
419
606
  </section>
420
607
 
421
- <select id="countries" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
608
+ <select id="countries" class="bg-gray-50 bdr bdr-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:bdr-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:bdr-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:bdr-blue-500">
422
609
  <option selected>Choose a country</option>
423
610
  <option value="US">United States</option>
424
611
  <option value="CA">Canada</option>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nk_jtb",
3
3
  "description": "Yet another utility based framework.",
4
- "version": "0.8.7",
4
+ "version": "0.9.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/naykel76/nk_jtb.git"
@@ -9,6 +9,7 @@
9
9
  "private": false,
10
10
  "type": "module",
11
11
  "scripts": {
12
+ "utils": "sass --style compressed ./src/utilities.scss:dist/utilities.css",
12
13
  "border": "sass --watch --no-source-map ./scss/utilities/_border.scss:dist/css/border.css",
13
14
  "flex": "sass --watch --no-source-map ./scss/utilities/_flex.scss:dist/css/flex.css",
14
15
  "grid": "sass --watch --no-source-map ./src/utilities/_grid.scss:dist/css/grid.css",
@@ -22,11 +23,11 @@
22
23
  },
23
24
  "devDependencies": {
24
25
  "@fullhuman/postcss-purgecss": "^5.0.0",
25
- "alpinejs": "^3.12",
26
- "autoprefixer": "^10.4.14",
27
- "postcss": "^8.4.24",
28
- "postcss-cli": "^10.1.0",
29
- "sass": "^1.60.0",
30
- "vite": "^4.2.1"
26
+ "alpinejs": "^3.13",
27
+ "autoprefixer": "^10.4.16",
28
+ "postcss": "^8.4.33",
29
+ "postcss-cli": "^11.0.0",
30
+ "sass": "^1.69.7",
31
+ "vite": "^5.0.11"
31
32
  }
32
33
  }
package/readme.md CHANGED
@@ -2,7 +2,23 @@
2
2
 
3
3
  # NAYKEL JTB
4
4
 
5
- Yet another utility based framework.
5
+ Why!
6
6
 
7
7
  > Because without reinventing the wheel we wouldn’t have fast cars.
8
8
  > -- Nathan Watts
9
+
10
+
11
+ **How can I add a value to a utility map?**
12
+
13
+ **How can I override a value in a utility map?**
14
+
15
+ **How can I override all values in utility map?**
16
+
17
+ **How can I add a value to a property map?**
18
+
19
+
20
+
21
+ height: (
22
+ prefix: "h-",
23
+ values: ( full: 100%, screen: 100vh, fit: fit-content, max: max-content, min: min-content ),
24
+ )
package/src/_nk.scss CHANGED
@@ -1,9 +1,40 @@
1
- @use "./base/vars_all" as *;
1
+ @use "./variables" as *;
2
2
  @use "./mixins/media" as *;
3
3
 
4
+ // ==========================================================================
5
+ // -- LAYOUT ELEMENTS --
6
+ // ==========================================================================
7
+
8
+ body {
9
+ min-height: 100vh; // set height to push footer to the bottom
10
+ display: flex;
11
+ flex-direction: column;
12
+ }
13
+
4
14
  #nk-header {
5
15
  background: $header-bg;
6
- margin: 0; // override spacing
16
+ }
17
+
18
+ #nk-main {
19
+ flex: 1; // 1. allow to grow to fill height
20
+ background-color: $main-bg;
21
+ }
22
+
23
+ #nk-footer {
24
+ background-color: $footer-bg;
25
+ margin-top: auto; // force footer to the bottom
26
+ color: #ccc;
27
+ }
28
+
29
+ .copyright {
30
+ color: $copyright-text-color;
31
+ background-color: $copyright-bg;
32
+ padding: 0.5rem;
33
+ text-align: center;
34
+ font-size: 0.9rem;
35
+ border: 0; // remove border from colour scheme
36
+ width: 100%;
37
+ margin-top: 0;
7
38
  }
8
39
 
9
40
  // ==========================================================================
@@ -20,6 +51,7 @@
20
51
  margin-top: $content-gap;
21
52
  font-size: 0.85em;
22
53
  }
54
+
23
55
  code-first-col {
24
56
  + table tbody {
25
57
  @extend %markdown-table;
@@ -28,6 +60,7 @@ code-first-col {
28
60
  }
29
61
  }
30
62
  }
63
+
31
64
  code-second-col {
32
65
  + table tbody {
33
66
  @extend %markdown-table;
@@ -73,11 +106,6 @@ code-first-second-col {
73
106
  margin-bottom: 1.5em;
74
107
  }
75
108
 
76
- // this is a hack solution to an ugly problem when using x-gt-markdown
77
- .markdown pre {
78
- overflow: auto;
79
- }
80
-
81
109
  .markdown {
82
110
  // hack to remove indented when using @verbatim
83
111
  .-ml-2 pre code {
@@ -116,12 +144,13 @@ code-first-second-col {
116
144
  margin-bottom: $content-gap;
117
145
  }
118
146
 
119
- h2::before {
120
- content: " ";
121
- display: block;
122
- width: 100%;
123
- margin-bottom: 2rem;
124
- height: 12px;
125
- background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='20px' height='12px' viewBox='0 0 20 12' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cg id='Artboard' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' stroke-linecap='square'%3e%3cpath d='M25,1 C20,1 20,11 15,11 C10,11 10,1 5,1 C0,1 0,11 -5,11 C-10,11 -10,1 -15,1' id='Line' stroke='%23CBD5DF' stroke-width='2'%3e%3c/path%3e%3c/g%3e%3c/svg%3e");
126
- }
147
+ // squiggle line
148
+ // h2::before {
149
+ // content: " ";
150
+ // display: block;
151
+ // width: 100%;
152
+ // margin-bottom: 2rem;
153
+ // height: 12px;
154
+ // background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='20px' height='12px' viewBox='0 0 20 12' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cg id='Artboard' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' stroke-linecap='square'%3e%3cpath d='M25,1 C20,1 20,11 15,11 C10,11 10,1 5,1 C0,1 0,11 -5,11 C-10,11 -10,1 -15,1' id='Line' stroke='%23CBD5DF' stroke-width='2'%3e%3c/path%3e%3c/g%3e%3c/svg%3e");
155
+ // }
127
156
  }
@@ -1,5 +1,4 @@
1
- @use "./vars_base" as *;
2
- @use "./vars_colors" as *;
1
+ @use "../variables" as *;
3
2
 
4
3
  // 1. Remove the default margin and padding and opt-in as needed
5
4
 
@@ -99,12 +98,19 @@ strong {
99
98
  font-weight: bolder;
100
99
  }
101
100
 
101
+ //
102
+ pre {
103
+ overflow: auto;
104
+ white-space: pre;
105
+ word-wrap: normal;
106
+ }
107
+
102
108
  code,
103
109
  kbd,
104
110
  samp,
105
111
  pre {
106
112
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
107
- font-size: 1rem;
113
+ font-size: .875rem;
108
114
  color: #f0506e;
109
115
  border-radius: 0.25rem;
110
116
  }
@@ -113,7 +119,6 @@ pre {
113
119
  pre code {
114
120
  line-height: 1.8;
115
121
  padding: 1.25rem !important; // 1
116
- // overflow: auto;
117
122
  }
118
123
 
119
124
  small {
@@ -140,26 +145,27 @@ sup {
140
145
 
141
146
  // -- Tables --
142
147
  // ==========================================================================
143
- // do not create to much opinion here, just enough to look
144
- // respectable out of the box!
145
-
148
+ //
146
149
  table {
147
150
  text-indent: 0;
148
151
  border-color: inherit;
149
152
  border-collapse: collapse;
150
- width: 100%; // !!
153
+ width: 100%;
151
154
  }
152
155
 
153
- th {
156
+ thead {
154
157
  font-weight: 600;
155
- background: #f8fafc; //
158
+ background: #f9fafb;
159
+ font-size: 0.875rem;
160
+ vertical-align: middle;
156
161
  }
157
162
 
158
163
  th,
159
164
  td {
160
- padding: 0.25em; // give some breathing space by default
165
+ padding-inline: 1rem;
166
+ padding-block: 0.75rem;
167
+ vertical-align: inherit;
161
168
  text-align: left;
162
- vertical-align: top;
163
169
  }
164
170
 
165
171
  // 1. Change the font styles in all browsers.
@@ -290,6 +296,8 @@ nav ul {
290
296
  list-style: none;
291
297
  margin: 0; // reset nested
292
298
  }
299
+
300
+ // -- Controls --
293
301
  // ==========================================================================
294
302
 
295
303
  // 1. Prevent resizing textareas horizontally by default.
@@ -0,0 +1,33 @@
1
+ @use "../variables" as *;
2
+
3
+ // any adjacent (excludes first child)
4
+ :where(blockquote, p, pre, form, table, ol, ul, h1, h2, h3, h4, h5, h6) + * {
5
+ margin-top: $content-gap;
6
+ }
7
+
8
+ // this may be more hassle than it is worth but it is handy to place elements
9
+ // with the need for a wrapper element.
10
+ * + :where(table, form) {
11
+ margin-top: $content-gap;
12
+ }
13
+
14
+ :where(.bx, .bx-title, .bx-content, .frm-row, .container) + :where(*):not(.dd-content) {
15
+ margin-top: $content-gap;
16
+ }
17
+
18
+ // exclude section to give more control
19
+ :where([class^="flex"], [class^="grid"]) + :where(*):not(:is([class*="flex"], [class*="grid"], section)) {
20
+ margin-top: $content-gap;
21
+ }
22
+
23
+
24
+ // opt-out
25
+ // - Remove margin from all direct child elements of "flex" or
26
+ // "grid" because it is too inconsistent to manage.
27
+ // - excluding .flex + input is experimental.the exclusion makes it
28
+ // easier to add tool-tips with a label
29
+
30
+ :is([class*="flex"], [class*="grid"]) > *,
31
+ .flex + input {
32
+ margin: 0;
33
+ }
@@ -1,4 +1,4 @@
1
- @use "./vars_colors" as *;
1
+ @use "../variables" as *;
2
2
 
3
3
  :root {
4
4
  // create css variables
@@ -0,0 +1,3 @@
1
+ @forward "./base";
2
+ @forward "./content_gap";
3
+ @forward "./root";
@@ -1,18 +1,35 @@
1
- @use "../base/vars_colors" as *;
2
- @use "../config" as *;
3
- @use "../functions/get" as *;
4
- @use "../mixins/colorShadeClasses" as *;
1
+ @use "../mixins/common" as *;
2
+ // @use "../mixins/magicClassGenerators" as *;
3
+ // @use "sass:map";
5
4
 
6
- @if (get("shades.create-base", $config)) {
7
- @each $color, $value in $base-colors {
8
- @include colorShadeClasses($color, $value);
9
- }
10
- }
5
+ // @use "../variables" as *;
6
+ // @use "../config" as *;
7
+ // @use "../functions/get" as *;
8
+ // @use "../mixins/colorThemeGenerators" as *;
11
9
 
12
- @if (get("shades.create-theme", $config)) {
13
- @each $color, $value in $base-colors {
14
- @include colorShadeClasses($color, $value);
15
- }
16
- }
10
+ // just use tailwind???
17
11
 
12
+ // @if (get("shades.create-base", $config)) {
13
+ // @each $color, $value in $base-colors {
14
+ // @include colorShadeClasses($color, $value);
15
+ // }
16
+ // }
18
17
 
18
+ // @if (get("shades.create-theme", $config)) {
19
+ // @each $color, $value in $base-colors {
20
+ // @include colorShadeClasses($color, $value);
21
+ // }
22
+ // }
23
+
24
+
25
+
26
+ // prettier-ignore
27
+ $colors-map: (
28
+ background-color: (
29
+ prefix: #{$bg-identifier},
30
+ values:( white, black ),
31
+ breakpoints: ("sm", "md", "lg", "xl")
32
+ ),
33
+ );
34
+
35
+ @include generate-utilities($colors-map);
@@ -1,12 +1,9 @@
1
- @use "../base/vars_base" as *;
2
- @use "../base/vars_colors" as *;
3
1
  @use "../functions/colorFunctions" as *;
2
+ @use "../functions/get" as *;
4
3
  @use "../functions/mapMerge" as *;
5
4
  @use "../mixins/extendedThemeClass" as *;
6
- @use "../mixins/helpers" as *; // index
7
- @use "../mixins/utilityClassCreators" as *;
5
+ @use "../variables" as *;
8
6
  @use "./tailwind-colors" as *;
9
- @use "../functions/get" as *;
10
7
 
11
8
  // ---------------- BEFORE YOU DO ANYTHING CRAZY ------------------
12
9
  // There is a fair bit going on here and the BUILD ORDER MATTERS.
@@ -17,27 +14,26 @@ $alert-theme: (
17
14
  "danger-light": (
18
15
  "base": get("red.50", $tailwind-colors),
19
16
  "color": get("red.900", $tailwind-colors),
20
- "border-color": get("red.500", $tailwind-colors),
17
+ "border-color": get("red.500", $tailwind-colors)
21
18
  ),
22
19
  "info-light": (
23
20
  "base": get("blue.50", $tailwind-colors),
24
21
  "color": get("blue.900", $tailwind-colors),
25
- "border-color": get("blue.500", $tailwind-colors),
22
+ "border-color": get("blue.500", $tailwind-colors)
26
23
  ),
27
24
  "warning-light": (
28
25
  "base": get("yellow.50", $tailwind-colors),
29
26
  "color": get("yellow.900", $tailwind-colors),
30
- "border-color": get("yellow.500", $tailwind-colors),
27
+ "border-color": get("yellow.500", $tailwind-colors)
31
28
  ),
32
29
  "success-light": (
33
30
  "base": get("green.50", $tailwind-colors),
34
31
  "color": get("green.900", $tailwind-colors),
35
- "border-color": get("green.500", $tailwind-colors),
36
- ),
32
+ "border-color": get("green.500", $tailwind-colors)
33
+ )
37
34
  );
38
35
 
39
- // Convert all the colors into a usable map of maps to create
40
- // extended themes.
36
+ // Convert all the colors into a usable map of maps to create extended themes.
41
37
  //
42
38
  // NK?? THINK! Do you really want to extend every theme?
43
39
 
@@ -48,8 +44,8 @@ $themes-map: ();
48
44
  $themes-map,
49
45
  (
50
46
  $color: (
51
- "base": $value,
52
- ),
47
+ "base": $value
48
+ )
53
49
  )
54
50
  );
55
51
  }
@@ -100,5 +96,5 @@ $extended-themes: mapMerge($alert-theme, $themes-map, $extended-theme-overrides)
100
96
 
101
97
  // this could arguably be removed and just use base colors?? maybe
102
98
  // leave main theme colors like primary, secondary, and accent
103
- @include utilityClasses(background-color, $theme-colors, "bg");
104
- @include utilityClasses(background-color, $base-colors, "bg");
99
+ // @include generate-from-values(background-color, $theme-colors, "bg");
100
+ // @include generate-from-values(background-color, $base-colors, "bg");
@@ -1,4 +1,4 @@
1
- @use "../../base/vars_base" as *;
1
+ @use "../variables" as *;
2
2
  // add accordion component variables here instead of the main
3
3
  // component variable file.
4
4
  $accordion-bg: rgb(245, 245, 245) !default;