winduum 1.2.1 → 2.0.0-next.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 (278) hide show
  1. package/package.json +4 -4
  2. package/plugin/index.js +63 -12
  3. package/plugin/utilities/common.js +4 -4
  4. package/plugin/utilities/dot.js +1 -2
  5. package/src/base/config/font.css +22 -9
  6. package/src/base/config/rounded.css +12 -12
  7. package/src/base/config/transition.css +14 -14
  8. package/src/base/config/z.css +5 -5
  9. package/src/base/config.css +0 -1
  10. package/src/base/defaults.css +9 -11
  11. package/src/base/keyframes.css +12 -0
  12. package/src/base/reset.css +2 -7
  13. package/src/base/theme/dark-rgb.css +1 -1
  14. package/src/base/theme/dark.css +1 -1
  15. package/src/base/theme/default-rgb.css +6 -6
  16. package/src/base/theme/default.css +6 -6
  17. package/src/components/badge/bordered.css +16 -0
  18. package/src/components/badge/circle.css +5 -0
  19. package/src/components/badge/default-props.css +8 -0
  20. package/src/components/badge/default.css +26 -0
  21. package/src/components/badge/lg.css +3 -0
  22. package/src/components/badge/muted.css +4 -0
  23. package/src/components/badge/sm.css +4 -0
  24. package/src/components/badge/square.css +4 -0
  25. package/src/components/breadcrumb/default-props.css +3 -3
  26. package/src/components/breadcrumb/default.css +5 -5
  27. package/src/components/button/bordered.css +19 -0
  28. package/src/components/button/circle.css +6 -0
  29. package/src/components/button/default.css +63 -0
  30. package/src/components/button/fill.css +6 -0
  31. package/src/components/button/ghosted.css +14 -0
  32. package/src/{ui/btn → components/button}/index.css +2 -7
  33. package/src/components/button/interactive.css +56 -0
  34. package/src/components/button/lg.css +4 -0
  35. package/src/components/button/muted.css +14 -0
  36. package/src/components/button/props/default.css +11 -0
  37. package/src/components/button/props/interactive.css +9 -0
  38. package/src/components/button/raised.css +6 -0
  39. package/src/components/button/readme.md +46 -0
  40. package/src/components/button/sm.css +4 -0
  41. package/src/components/button/square.css +5 -0
  42. package/src/components/card/default-props.css +2 -2
  43. package/src/components/card/default.css +4 -4
  44. package/src/components/carousel/content.css +1 -1
  45. package/src/components/carousel/default.css +1 -1
  46. package/src/components/check/default-props.css +13 -0
  47. package/src/components/check/default.css +74 -0
  48. package/src/components/check/interactive-props.css +3 -0
  49. package/src/components/check/interactive.css +50 -0
  50. package/src/components/check/invalid.css +8 -0
  51. package/src/components/color/default-props.css +11 -0
  52. package/src/{ui → components}/color/default.css +14 -14
  53. package/src/components/color/interactive-props.css +3 -0
  54. package/src/{ui → components}/color/interactive.css +5 -5
  55. package/src/components/compare/default.css +13 -13
  56. package/src/components/compare/index.js +2 -2
  57. package/src/components/control/color-props.css +5 -0
  58. package/src/components/control/color.css +24 -0
  59. package/src/components/control/default-props.css +16 -0
  60. package/src/components/control/default.css +77 -0
  61. package/src/components/control/file.css +25 -0
  62. package/src/components/control/floating-interactive.css +13 -0
  63. package/src/components/control/floating-props.css +4 -0
  64. package/src/{ui → components}/control/floating.css +5 -5
  65. package/src/components/control/icon-props.css +4 -0
  66. package/src/components/control/icon.css +32 -0
  67. package/src/components/control/interactive-props.css +3 -0
  68. package/src/components/control/interactive.css +19 -0
  69. package/src/components/control/invalid.css +10 -0
  70. package/src/{ui → components}/control/select-multiple.css +2 -2
  71. package/src/components/control/select-props.css +4 -0
  72. package/src/components/control/select.css +23 -0
  73. package/src/components/dialog/content-props.css +3 -3
  74. package/src/components/dialog/content.css +5 -5
  75. package/src/components/dialog/default-props.css +4 -4
  76. package/src/components/dialog/default.css +11 -12
  77. package/src/components/dialog/index.d.ts +3 -18
  78. package/src/components/dialog/index.js +21 -80
  79. package/src/components/drawer/content-props.css +4 -4
  80. package/src/components/drawer/content.css +3 -3
  81. package/src/components/drawer/default-props.css +1 -1
  82. package/src/components/drawer/default.css +3 -3
  83. package/src/components/drawer/index.js +2 -2
  84. package/src/components/field/default.css +3 -3
  85. package/src/components/form/index.js +4 -4
  86. package/src/{ui → components}/group/default.css +11 -11
  87. package/src/{ui → components}/group/vertical.css +2 -2
  88. package/src/components/heading/default-props.css +6 -0
  89. package/src/components/heading/default.css +8 -0
  90. package/src/components/heading/lg.css +3 -0
  91. package/src/components/heading/sm.css +3 -0
  92. package/src/{ui → components}/image/avatar.css +3 -3
  93. package/src/{ui → components}/image/default.css +1 -1
  94. package/src/components/index.css +20 -0
  95. package/src/components/info/default-props.css +4 -0
  96. package/src/components/info/default.css +8 -0
  97. package/src/components/label/default-props.css +4 -0
  98. package/src/components/label/default.css +8 -0
  99. package/src/components/link/default-props.css +4 -0
  100. package/src/components/link/default.css +8 -0
  101. package/src/components/link/interactive-props.css +5 -0
  102. package/src/components/link/interactive.css +16 -0
  103. package/src/components/notice/default-props.css +8 -0
  104. package/src/components/notice/default.css +25 -0
  105. package/src/components/pagination/default.css +1 -1
  106. package/src/components/popover/content-props.css +6 -6
  107. package/src/components/popover/content.css +12 -12
  108. package/src/components/popover/default.css +1 -1
  109. package/src/components/progress/default-props.css +4 -0
  110. package/src/{ui → components}/progress/default.css +9 -9
  111. package/src/components/progress/lg.css +3 -0
  112. package/src/{ui → components}/progress/meter.css +1 -1
  113. package/src/components/progress/sm.css +3 -0
  114. package/src/components/range/default-props.css +10 -0
  115. package/src/components/range/default.css +101 -0
  116. package/src/{ui → components}/range/index.js +2 -2
  117. package/src/components/range/multi.css +22 -0
  118. package/src/{ui → components}/range/vertical.css +2 -2
  119. package/src/components/rating/default-props.css +5 -0
  120. package/src/{ui → components}/rating/default.css +6 -6
  121. package/src/{ui → components}/rating/invalid.css +2 -2
  122. package/src/components/switch/default-props.css +17 -0
  123. package/src/components/switch/default.css +46 -0
  124. package/src/components/switch/interactive-props.css +3 -0
  125. package/src/components/switch/interactive.css +39 -0
  126. package/src/components/switch/invalid.css +6 -0
  127. package/src/components/table/default-props.css +6 -6
  128. package/src/components/table/default.css +8 -8
  129. package/src/components/table/interactive-props.css +2 -2
  130. package/src/components/table/interactive.css +11 -11
  131. package/src/components/tabs/default.css +2 -2
  132. package/src/components/text/default-props.css +9 -0
  133. package/src/components/text/default.css +193 -0
  134. package/src/components/title/default-props.css +5 -0
  135. package/src/components/title/default.css +8 -0
  136. package/src/components/title/lg.css +3 -0
  137. package/src/components/title/sm.css +3 -0
  138. package/src/components/toast/content-props.css +5 -5
  139. package/src/components/toast/content.css +12 -12
  140. package/src/components/toast/default-props.css +2 -2
  141. package/src/components/toast/default.css +5 -5
  142. package/src/components/toaster/default-props.css +2 -2
  143. package/src/components/toaster/default.css +4 -4
  144. package/src/components/toaster/index.js +6 -6
  145. package/src/components/tooltip/default-props.css +10 -10
  146. package/src/components/tooltip/default.css +14 -14
  147. package/src/main.css +0 -1
  148. package/src/utilities/common.css +2 -6
  149. package/src/utilities/container/default.css +3 -4
  150. package/src/utilities/container/index.css +1 -1
  151. package/src/utilities/divider.css +2 -3
  152. package/src/utilities/ripple/index.css +1 -3
  153. package/src/utilities/skeleton/index.css +1 -1
  154. package/src/utilities/skeleton/props/default.css +5 -0
  155. package/src/utilities/swap/default.css +4 -4
  156. package/src/utilities/underline.css +3 -3
  157. package/types/index.d.ts +4 -19
  158. package/types/index.d.ts.map +3 -8
  159. package/plugin/utilities/flex.js +0 -12
  160. package/src/base/config/text.css +0 -15
  161. package/src/ui/badge/bordered.css +0 -16
  162. package/src/ui/badge/circle.css +0 -5
  163. package/src/ui/badge/default-props.css +0 -8
  164. package/src/ui/badge/default.css +0 -26
  165. package/src/ui/badge/lg.css +0 -3
  166. package/src/ui/badge/muted.css +0 -4
  167. package/src/ui/badge/sm.css +0 -4
  168. package/src/ui/badge/square.css +0 -4
  169. package/src/ui/btn/bordered.css +0 -21
  170. package/src/ui/btn/circle.css +0 -6
  171. package/src/ui/btn/default-props.css +0 -10
  172. package/src/ui/btn/default.css +0 -49
  173. package/src/ui/btn/fill.css +0 -6
  174. package/src/ui/btn/ghosted.css +0 -9
  175. package/src/ui/btn/gradient-bordered.css +0 -24
  176. package/src/ui/btn/gradient.css +0 -10
  177. package/src/ui/btn/interactive-props.css +0 -9
  178. package/src/ui/btn/interactive.css +0 -53
  179. package/src/ui/btn/lg.css +0 -4
  180. package/src/ui/btn/loading-props.css +0 -4
  181. package/src/ui/btn/loading.css +0 -24
  182. package/src/ui/btn/muted.css +0 -9
  183. package/src/ui/btn/raised.css +0 -7
  184. package/src/ui/btn/readme.md +0 -51
  185. package/src/ui/btn/sm.css +0 -4
  186. package/src/ui/btn/square.css +0 -5
  187. package/src/ui/btn/wide.css +0 -3
  188. package/src/ui/check/default-props.css +0 -13
  189. package/src/ui/check/default.css +0 -74
  190. package/src/ui/check/interactive-props.css +0 -3
  191. package/src/ui/check/interactive.css +0 -50
  192. package/src/ui/check/invalid.css +0 -8
  193. package/src/ui/color/default-props.css +0 -11
  194. package/src/ui/color/interactive-props.css +0 -3
  195. package/src/ui/control/color-props.css +0 -5
  196. package/src/ui/control/color.css +0 -24
  197. package/src/ui/control/default-props.css +0 -16
  198. package/src/ui/control/default.css +0 -77
  199. package/src/ui/control/file.css +0 -25
  200. package/src/ui/control/floating-interactive.css +0 -13
  201. package/src/ui/control/floating-props.css +0 -4
  202. package/src/ui/control/icon-props.css +0 -4
  203. package/src/ui/control/icon.css +0 -32
  204. package/src/ui/control/interactive-props.css +0 -3
  205. package/src/ui/control/interactive.css +0 -19
  206. package/src/ui/control/invalid.css +0 -10
  207. package/src/ui/control/select-props.css +0 -4
  208. package/src/ui/control/select.css +0 -23
  209. package/src/ui/heading/default-props.css +0 -6
  210. package/src/ui/heading/default.css +0 -8
  211. package/src/ui/heading/lg.css +0 -3
  212. package/src/ui/heading/sm.css +0 -3
  213. package/src/ui/index.css +0 -18
  214. package/src/ui/info/default-props.css +0 -4
  215. package/src/ui/info/default.css +0 -8
  216. package/src/ui/label/default-props.css +0 -4
  217. package/src/ui/label/default.css +0 -8
  218. package/src/ui/link/default-props.css +0 -4
  219. package/src/ui/link/default.css +0 -8
  220. package/src/ui/link/interactive-props.css +0 -5
  221. package/src/ui/link/interactive.css +0 -16
  222. package/src/ui/notice/default-props.css +0 -8
  223. package/src/ui/notice/default.css +0 -25
  224. package/src/ui/progress/default-props.css +0 -4
  225. package/src/ui/progress/lg.css +0 -3
  226. package/src/ui/progress/sm.css +0 -3
  227. package/src/ui/range/default-props.css +0 -10
  228. package/src/ui/range/default.css +0 -101
  229. package/src/ui/range/multi.css +0 -22
  230. package/src/ui/rating/default-props.css +0 -5
  231. package/src/ui/switch/default-props.css +0 -17
  232. package/src/ui/switch/default.css +0 -46
  233. package/src/ui/switch/interactive-props.css +0 -3
  234. package/src/ui/switch/interactive.css +0 -39
  235. package/src/ui/switch/invalid.css +0 -6
  236. package/src/ui/text/default-props.css +0 -9
  237. package/src/ui/text/default.css +0 -193
  238. package/src/ui/title/default-props.css +0 -5
  239. package/src/ui/title/default.css +0 -8
  240. package/src/ui/title/lg.css +0 -3
  241. package/src/ui/title/sm.css +0 -3
  242. package/src/utilities/skeleton/default-props.css +0 -5
  243. /package/src/{ui → components}/badge/index.css +0 -0
  244. /package/src/{ui → components}/badge/readme.md +0 -0
  245. /package/src/{ui → components}/check/index.css +0 -0
  246. /package/src/{ui → components}/check/readme.md +0 -0
  247. /package/src/{ui → components}/color/index.css +0 -0
  248. /package/src/{ui → components}/color/readme.md +0 -0
  249. /package/src/{ui → components}/control/index.css +0 -0
  250. /package/src/{ui → components}/control/readme.md +0 -0
  251. /package/src/{ui → components}/group/index.css +0 -0
  252. /package/src/{ui → components}/group/readme.md +0 -0
  253. /package/src/{ui → components}/heading/index.css +0 -0
  254. /package/src/{ui → components}/heading/readme.md +0 -0
  255. /package/src/{ui → components}/image/index.css +0 -0
  256. /package/src/{ui → components}/image/readme.md +0 -0
  257. /package/src/{ui → components}/info/index.css +0 -0
  258. /package/src/{ui → components}/info/readme.md +0 -0
  259. /package/src/{ui → components}/label/index.css +0 -0
  260. /package/src/{ui → components}/label/readme.md +0 -0
  261. /package/src/{ui → components}/link/index.css +0 -0
  262. /package/src/{ui → components}/link/readme.md +0 -0
  263. /package/src/{ui → components}/notice/index.css +0 -0
  264. /package/src/{ui → components}/notice/readme.md +0 -0
  265. /package/src/{ui → components}/progress/index.css +0 -0
  266. /package/src/{ui → components}/progress/readme.md +0 -0
  267. /package/src/{ui → components}/range/index.css +0 -0
  268. /package/src/{ui → components}/range/index.d.ts +0 -0
  269. /package/src/{ui → components}/range/readme.md +0 -0
  270. /package/src/{ui → components}/rating/index.css +0 -0
  271. /package/src/{ui → components}/rating/readme.md +0 -0
  272. /package/src/{ui → components}/switch/index.css +0 -0
  273. /package/src/{ui → components}/switch/readme.md +0 -0
  274. /package/src/{ui → components}/text/index.css +0 -0
  275. /package/src/{ui → components}/text/readme.md +0 -0
  276. /package/src/{ui → components}/title/index.css +0 -0
  277. /package/src/{ui → components}/title/readme.md +0 -0
  278. /package/src/utilities/container/{default-props.css → props/default.css} +0 -0
@@ -1,101 +0,0 @@
1
- .ui-range {
2
- --ui-range-thumb-bg: var(--color-accent);
3
- --ui-range-thumb-border-color: var(--ui-range-thumb-bg);
4
- --ui-range-track-bg: var(--color-accent);
5
- --ui-range-track:
6
- linear-gradient(
7
- to right,
8
- var(--ui-range-track-bg) 0%,
9
- var(--ui-range-track-bg) var(--ui-range-track-start),
10
- transparent var(--ui-range-track-start),
11
- transparent var(--ui-range-track-end)
12
- );
13
-
14
- min-block-size: var(--ui-range-thumb-size);
15
- display: grid;
16
-
17
- :where(input) {
18
- --tw-bg-opacity: 0.1;
19
- --tw-bg-mix: var(--color-body);
20
-
21
- block-size: var(--ui-range-track-height);
22
- background-color: color-mix(in var(--space), var(--color-accent) calc(var(--tw-bg-opacity) * 100%), var(--tw-bg-mix));
23
- position: relative;
24
- grid-area: 1/1;
25
-
26
- &::-webkit-slider-runnable-track {
27
- block-size: var(--ui-range-track-height);
28
- border-radius: var(--rounded-full);
29
- background: var(--ui-range-track);
30
- }
31
-
32
- &::-moz-range-track {
33
- block-size: var(--ui-range-track-height);
34
- border-radius: var(--rounded-full);
35
- background: var(--ui-range-track);
36
- }
37
-
38
- &::-webkit-slider-thumb {
39
- --tw-outline-opacity: var(--ui-range-thumb-outline-opacity);
40
-
41
- width: var(--ui-range-thumb-size);
42
- height: var(--ui-range-thumb-size);
43
- background-color: var(--ui-range-thumb-bg);
44
- border-radius: var(--rounded-full);
45
- border: var(--ui-range-thumb-border-width) solid var(--ui-range-thumb-border-color);
46
- outline:
47
- var(--ui-range-thumb-outline-width) solid
48
- color-mix(
49
- in var(--space),
50
- var(--ui-range-thumb-bg) calc(var(--tw-outline-opacity) * 100%),
51
- transparent
52
- );
53
- margin-block-start: calc((var(--ui-range-thumb-size) - var(--ui-range-track-height)) / 2 * -1);
54
- transition: outline-color var(--duration), outline-offset var(--duration);
55
- cursor: var(--ui-range-thumb-cursor, grab);
56
- appearance: none;
57
- pointer-events: auto;
58
-
59
- &:active {
60
- --ui-range-thumb-cursor: grabbing;
61
- --tw-outline-opacity: var(--ui-range-thumb-focus-outline-opacity);
62
- }
63
- }
64
-
65
- &::-moz-range-thumb {
66
- --tw-outline-opacity: var(--ui-range-thumb-outline-opacity);
67
-
68
- width: var(--ui-range-thumb-size);
69
- height: var(--ui-range-thumb-size);
70
- background-color: var(--ui-range-thumb-bg);
71
- border-radius: var(--rounded-full);
72
- border: var(--ui-range-thumb-border-width) solid var(--ui-range-thumb-border-color);
73
- outline:
74
- var(--ui-range-thumb-outline-width) solid
75
- color-mix(
76
- in var(--space),
77
- var(--ui-range-thumb-bg) calc(var(--tw-outline-opacity) * 100%),
78
- transparent
79
- );
80
- transition: outline-color var(--duration), outline-offset var(--duration);
81
- cursor: var(--ui-range-thumb-cursor, grab);
82
- appearance: none;
83
- pointer-events: auto;
84
-
85
- &:active {
86
- --ui-range-thumb-cursor: grabbing;
87
- --tw-outline-opacity: var(--ui-range-thumb-focus-outline-opacity);
88
- }
89
- }
90
-
91
- &:focus-visible {
92
- &::-webkit-slider-thumb {
93
- --tw-outline-opacity: var(--ui-range-thumb-focus-outline-opacity);
94
- }
95
-
96
- &::-moz-range-thumb {
97
- --tw-outline-opacity: var(--ui-range-thumb-focus-outline-opacity);
98
- }
99
- }
100
- }
101
- }
@@ -1,22 +0,0 @@
1
- .ui-range {
2
- :where(input) {
3
- &:not(:only-of-type) {
4
- --ui-range-track:
5
- linear-gradient(
6
- to right,
7
- transparent 0%,
8
- transparent var(--ui-range-track-start),
9
- var(--ui-range-track-bg) var(--ui-range-track-start),
10
- var(--ui-range-track-bg) var(--ui-range-track-end),
11
- transparent var(--ui-range-track-end),
12
- transparent 100%
13
- );
14
-
15
- pointer-events: none;
16
-
17
- ~ input {
18
- background: transparent;
19
- }
20
- }
21
- }
22
- }
@@ -1,5 +0,0 @@
1
- :root, :host {
2
- --ui-rating-color: var(--color-accent);
3
- --c-rating-gap: 0.25rem;
4
- --c-rating-opacity: 0.2;
5
- }
@@ -1,17 +0,0 @@
1
- :root, :host {
2
- --ui-switch-width: 3rem;
3
- --ui-switch-height: 1.5rem;
4
- --ui-switch-icon-size: 1.125rem;
5
- --ui-switch-font-weight: var(--font-normal);
6
- --ui-switch-font-size: var(--text-sm);
7
- --ui-switch-line-height: calc(1em + 0.25rem);
8
- --ui-switch-gap: 0.75rem;
9
- --ui-switch-border-radius: var(--rounded-full);
10
- --ui-switch-bg: currentColor;
11
- --ui-switch-outline-width: 2px;
12
- --ui-switch-outline-color: currentColor;
13
-
14
- &.dark {
15
- --ui-switch-bg: var(--color-body-tertiary);
16
- }
17
- }
@@ -1,46 +0,0 @@
1
- .ui-switch {
2
- font-weight: var(--ui-switch-font-weight);
3
- font-size: var(--ui-switch-font-size);
4
- line-height: var(--ui-switch-line-height);
5
- letter-spacing: var(--ui-switch-letter-spacing);
6
- gap: var(--ui-switch-gap);
7
- display: inline-flex;
8
- text-wrap: pretty;
9
-
10
- :where(a) {
11
- color: var(--color-accent);
12
- text-decoration: underline;
13
- }
14
-
15
- :where(input) {
16
- --tw-outline-opacity: 0;
17
- --tw-outline-mix: transparent;
18
-
19
- inline-size: var(--ui-switch-width);
20
- block-size: var(--ui-switch-height);
21
- padding: calc((var(--ui-switch-height) - var(--ui-switch-icon-size)) / 2);
22
- border-radius: var(--ui-switch-border-radius);
23
- background-color: var(--ui-switch-bg);
24
- outline:
25
- var(--ui-switch-outline-width) solid
26
- color-mix(
27
- in var(--space),
28
- var(--ui-switch-outline-color) calc(var(--tw-outline-opacity) * 100%),
29
- var(--tw-outline-mix)
30
- );
31
- outline-offset: var(--ui-switch-outline-offset);
32
- display: flex;
33
- position: relative;
34
- flex-shrink: 0;
35
-
36
- &::before {
37
- width: var(--ui-switch-icon-size);
38
- height: var(--ui-switch-icon-size);
39
- background-color: var(--color-light);
40
- transition: var(--transition-all);
41
- border-radius: inherit;
42
- margin-block: auto;
43
- content: "";
44
- }
45
- }
46
- }
@@ -1,3 +0,0 @@
1
- :root, :host {
2
- --ui-switch-disabled-opacity: 0.5;
3
- }
@@ -1,39 +0,0 @@
1
- .ui-switch {
2
- :where(input) {
3
- transition-property: var(--transition);
4
- transition-timing-function: var(--ease-in-out);
5
- transition-duration: var(--duration);
6
-
7
- &:where(:required) {
8
- & + *::after {
9
- color: var(--color-error);
10
- content: " *";
11
- }
12
- }
13
-
14
- &:enabled:focus {
15
- --ui-switch-outline-offset: var(--ui-switch-focus-outline-offset);
16
- --tw-outline-opacity: 0.4;
17
- }
18
-
19
- &:disabled {
20
- opacity: var(--ui-switch-disabled-opacity);
21
- cursor: not-allowed;
22
- }
23
-
24
- &:checked {
25
- --ui-switch-outline-color: var(--color-accent);
26
- --ui-switch-bg: var(--color-accent);
27
-
28
- &::before {
29
- margin-inline-start: calc(100% - var(--ui-switch-icon-size));
30
- }
31
- }
32
-
33
- &:indeterminate {
34
- &::before {
35
- margin-inline-start: calc(50% - var(--ui-switch-icon-size) / 2);
36
- }
37
- }
38
- }
39
- }
@@ -1,6 +0,0 @@
1
- .ui-switch {
2
- &.invalid :where(input), .validated & :where(input):invalid {
3
- --ui-switch-outline-color: var(--color-error);
4
- --ui-switch-bg: var(--color-error);
5
- }
6
- }
@@ -1,9 +0,0 @@
1
- :root, :host {
2
- --ui-text-content-bold: var(--font-semibold);
3
- --ui-text-content-my: var(--spacing-xl);
4
- --ui-text-content-marker-size: 0.375em;
5
- --ui-text-line-height: calc(1em + 0.75rem);
6
- --ui-text-hr-my: 3em;
7
- --ui-text-heading-line-height: calc(1em + 0.375rem);
8
- --ui-text-heading-my: 1.5em 0.5em;
9
- }
@@ -1,193 +0,0 @@
1
- .ui-text {
2
- font-family: var(--ui-text-font-family);
3
- font-weight: var(--ui-text-font-weight);
4
- font-size: var(--ui-text-font-size);
5
- line-height: var(--ui-text-line-height);
6
- letter-spacing: var(--ui-text-letter-spacing);
7
- text-wrap: pretty;
8
-
9
- > :is(*:first-child) {
10
- margin-block-start: 0;
11
- }
12
-
13
- > :is(*:last-child) {
14
- margin-block-end: 0;
15
- }
16
-
17
- :where(a) {
18
- transition: var(--transition-color);
19
- color: var(--color-accent);
20
- text-decoration: underline;
21
-
22
- &:hover {
23
- @media (hover: hover) and (pointer: fine) {
24
- color: color-mix(in var(--space), var(--color-accent) 75%, transparent);
25
- }
26
- }
27
-
28
- &:focus-visible {
29
- color: color-mix(in var(--space), var(--color-accent) 75%, transparent);
30
- }
31
- }
32
-
33
- :where(b, strong) {
34
- font-weight: var(--ui-text-content-bold);
35
- }
36
-
37
- :where(em) {
38
- font-style: italic;
39
- }
40
-
41
- :where(img) {
42
- display: block;
43
- height: auto;
44
- }
45
-
46
- :where(p) {
47
- margin-block: var(--ui-text-content-my);
48
-
49
- &:empty {
50
- line-height: 0;
51
- margin: 0;
52
-
53
- &::after {
54
- content: "\00a0";
55
- }
56
- }
57
- }
58
-
59
- :where(hr) {
60
- --tw-border-opacity: 0.1;
61
-
62
- margin-block: var(--ui-text-hr-my);
63
- }
64
-
65
- :where(h1, h2, h3, h4, h5, h6) {
66
- font-family: var(--ui-text-heading-font-family);
67
- font-weight: var(--ui-text-heading-font-weight, var(--ui-text-content-bold));
68
- font-size: var(--ui-text-heading-font-size);
69
- line-height: var(--ui-text-heading-line-height);
70
- letter-spacing: var(--ui-text-heading-letter-spacing);
71
- margin-block: var(--ui-text-heading-my);
72
- color: var(--ui-text-heading-color);
73
- text-wrap: balance;
74
- }
75
-
76
- :where(h1) {
77
- --ui-text-heading-font-size: var(--text-4xl);
78
- }
79
-
80
- :where(h2) {
81
- --ui-text-heading-font-size: var(--text-3xl);
82
- }
83
-
84
- :where(h3) {
85
- --ui-text-heading-font-size: var(--text-2xl);
86
- }
87
-
88
- :where(h4) {
89
- --ui-text-heading-font-size: var(--text-xl);
90
- }
91
-
92
- :where(h5) {
93
- --ui-text-heading-font-size: var(--text-lg);
94
- }
95
-
96
- :where(table) {
97
- border: 0;
98
- min-width: 100%;
99
-
100
- :where(td, th) {
101
- padding: 1em 1.25em;
102
- text-align: left;
103
- }
104
-
105
- :where(thead) {
106
- font-weight: var(--ui-text-content-bold);
107
- border-block-end: 1px solid color-mix(in var(--space), currentColor 10%, transparent);
108
- }
109
-
110
- :where(tbody tr) {
111
- &:nth-of-type(even) {
112
- background-color: color-mix(in var(--space), currentColor 5%, transparent);
113
- }
114
- }
115
- }
116
-
117
- :where(ol, ul) {
118
- margin-inline-start: 0.75em;
119
- padding-inline-start: 1em;
120
- margin-block: var(--ui-text-content-my);
121
-
122
- :where(li) {
123
- margin-block: 0.5em;
124
- padding-inline-start: 1ch;
125
- }
126
- }
127
-
128
- :where(ol) {
129
- &:not([type]) {
130
- list-style: decimal;
131
- }
132
-
133
- & :where(li) {
134
- &::marker {
135
- color: var(--color-accent);
136
- font-weight: var(--ui-text-content-bold);
137
- }
138
- }
139
- }
140
-
141
- :where(ul) {
142
- :where(li) {
143
- position: relative;
144
- list-style-type: "";
145
-
146
- &::before {
147
- width: var(--ui-text-content-marker-size);
148
- height: var(--ui-text-content-marker-size);
149
- position: absolute;
150
- left: -0.75em;
151
- top: 0.5lh;
152
- border: 1px solid var(--color-accent);
153
- background-color: var(--ui-text-content-marker-bg, var(--color-accent));
154
- margin-inline-start: calc((var(--ui-text-content-marker-size) / 2) * -1);
155
- margin-block-start: calc(var(--ui-text-content-marker-size) / 2 * -1);
156
- border-radius: var(--ui-text-content-marker-radius, 50%);
157
- mask: var(--ui-text-content-marker-mask);
158
- will-change: transform;
159
- content: "";
160
- }
161
- }
162
-
163
- &[style*="square"] {
164
- --ui-text-content-marker-radius: 0;
165
- }
166
-
167
- &[style*="circle"] {
168
- --ui-text-content-marker-bg: transparent;
169
- }
170
- }
171
-
172
- :where(blockquote) {
173
- border-left: 0.375em solid var(--color-accent);
174
- padding: 0.5em 1.25em;
175
- margin-block: var(--ui-text-content-my);
176
- font-size: inherit;
177
- }
178
-
179
- :where(code) {
180
- font-size: 87.5%;
181
- }
182
-
183
- :where(figure) {
184
- margin-block: var(--ui-text-content-my);
185
- }
186
-
187
- :where(figcaption) {
188
- font-size: 87.5%;
189
- line-height: 1.5;
190
- font-weight: var(--font-semibold);
191
- margin-block-start: 0.5em;
192
- }
193
- }
@@ -1,5 +0,0 @@
1
- :root, :host {
2
- --ui-title-font-weight: var(--font-semibold);
3
- --ui-title-font-size: var(--text-sm);
4
- --ui-title-line-height: calc(1em + 0.25rem);
5
- }
@@ -1,8 +0,0 @@
1
- .ui-title {
2
- font-family: var(--ui-title-font-family);
3
- font-weight: var(--ui-title-font-weight);
4
- font-size: var(--ui-title-font-size);
5
- line-height: var(--ui-title-line-height);
6
- letter-spacing: var(--ui-title-letter-spacing);
7
- text-wrap: pretty;
8
- }
@@ -1,3 +0,0 @@
1
- .ui-title:is(.lg) {
2
- --ui-title-font-size: var(--text-base);
3
- }
@@ -1,3 +0,0 @@
1
- .ui-title:is(.sm) {
2
- --ui-title-font-size: var(--text-xs);
3
- }
@@ -1,5 +0,0 @@
1
- :root, :host {
2
- --skeleton-opacity: 0.5;
3
- --skeleton-from: color-mix(in var(--space), var(--color-body) 50%, var(--color-main));
4
- --skeleton-to: color-mix(in var(--space), var(--color-body) 80%, var(--color-main));
5
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes