@codenhub/styles 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/NOTICE +18 -16
  2. package/README.es.md +62 -0
  3. package/README.md +28 -22
  4. package/README.pt-BR.md +62 -0
  5. package/dist/aesthetics/chunky-tile.css +1 -1
  6. package/dist/aesthetics/cyber.css +1 -1
  7. package/dist/aesthetics/glass.css +1 -1
  8. package/dist/aesthetics/index.css +2 -2
  9. package/dist/aesthetics/neobrutalism.css +1 -1
  10. package/dist/aesthetics/pixel.css +1 -1
  11. package/dist/aesthetics/sketch.css +1 -1
  12. package/dist/cli.js +189 -0
  13. package/dist/components.css +2 -2
  14. package/dist/index.css +2 -2
  15. package/dist/index.d.ts +1 -0
  16. package/dist/native.css +2 -2
  17. package/dist/palette.css +1 -1
  18. package/dist/theme.css +2 -2
  19. package/docs/accessibility.md +108 -60
  20. package/docs/changelog/0.1.1.md +1 -0
  21. package/docs/changelog/0.2.0.md +1 -0
  22. package/docs/changelog/0.3.0.md +1 -0
  23. package/docs/changelog/0.4.0.md +1 -0
  24. package/docs/changelog/0.5.0.md +8 -3
  25. package/docs/changelog/0.6.0.md +2 -1
  26. package/docs/changelog/0.7.0.md +50 -0
  27. package/docs/changelog/0.8.0.md +70 -0
  28. package/docs/changelog/index.md +2 -0
  29. package/docs/concepts.md +188 -46
  30. package/docs/es/accessibility.md +169 -0
  31. package/docs/es/concepts.md +212 -0
  32. package/docs/es/index.md +105 -0
  33. package/docs/es/integrating/astro.md +35 -0
  34. package/docs/es/integrating/index.md +75 -0
  35. package/docs/es/integrating/nextjs.md +67 -0
  36. package/docs/es/integrating/svelte.md +45 -0
  37. package/docs/es/integrating/tailwind.md +148 -0
  38. package/docs/es/integrating/vue.md +31 -0
  39. package/docs/es/integrating/without-a-bundler.md +238 -0
  40. package/docs/es/setup.md +188 -0
  41. package/docs/es/usage/aesthetics.md +282 -0
  42. package/docs/es/usage/buttons.md +135 -0
  43. package/docs/es/usage/composing.md +168 -0
  44. package/docs/es/usage/content-and-layout.md +219 -0
  45. package/docs/es/usage/customizing.md +304 -0
  46. package/docs/es/usage/feedback.md +157 -0
  47. package/docs/es/usage/forms.md +256 -0
  48. package/docs/es/usage/index.md +33 -0
  49. package/docs/es/usage/presets.md +92 -0
  50. package/docs/es/usage/solo.md +86 -0
  51. package/docs/es/usage/theming.md +309 -0
  52. package/docs/es/usage/tooltips.md +127 -0
  53. package/docs/index.md +86 -26
  54. package/docs/integrating/astro.md +3 -4
  55. package/docs/integrating/index.md +46 -13
  56. package/docs/integrating/nextjs.md +3 -4
  57. package/docs/integrating/svelte.md +5 -4
  58. package/docs/integrating/tailwind.md +89 -6
  59. package/docs/integrating/vue.md +3 -4
  60. package/docs/integrating/without-a-bundler.md +237 -0
  61. package/docs/pt-BR/accessibility.md +169 -0
  62. package/docs/pt-BR/concepts.md +212 -0
  63. package/docs/pt-BR/index.md +105 -0
  64. package/docs/pt-BR/integrating/astro.md +35 -0
  65. package/docs/pt-BR/integrating/index.md +75 -0
  66. package/docs/pt-BR/integrating/nextjs.md +67 -0
  67. package/docs/pt-BR/integrating/svelte.md +45 -0
  68. package/docs/pt-BR/integrating/tailwind.md +148 -0
  69. package/docs/pt-BR/integrating/vue.md +31 -0
  70. package/docs/pt-BR/integrating/without-a-bundler.md +238 -0
  71. package/docs/pt-BR/setup.md +188 -0
  72. package/docs/pt-BR/usage/aesthetics.md +282 -0
  73. package/docs/pt-BR/usage/buttons.md +135 -0
  74. package/docs/pt-BR/usage/composing.md +168 -0
  75. package/docs/pt-BR/usage/content-and-layout.md +219 -0
  76. package/docs/pt-BR/usage/customizing.md +304 -0
  77. package/docs/pt-BR/usage/feedback.md +157 -0
  78. package/docs/pt-BR/usage/forms.md +256 -0
  79. package/docs/pt-BR/usage/index.md +33 -0
  80. package/docs/pt-BR/usage/presets.md +92 -0
  81. package/docs/pt-BR/usage/solo.md +86 -0
  82. package/docs/pt-BR/usage/theming.md +309 -0
  83. package/docs/pt-BR/usage/tooltips.md +127 -0
  84. package/docs/setup.md +142 -91
  85. package/docs/usage/aesthetics.md +89 -73
  86. package/docs/usage/buttons.md +112 -40
  87. package/docs/usage/composing.md +109 -92
  88. package/docs/usage/content-and-layout.md +160 -125
  89. package/docs/usage/customizing.md +117 -41
  90. package/docs/usage/feedback.md +138 -71
  91. package/docs/usage/forms.md +201 -107
  92. package/docs/usage/index.md +22 -14
  93. package/docs/usage/presets.md +91 -0
  94. package/docs/usage/solo.md +85 -0
  95. package/docs/usage/theming.md +273 -118
  96. package/docs/usage/tooltips.md +90 -49
  97. package/llms-full.txt +2820 -1298
  98. package/llms.txt +24 -22
  99. package/package.json +134 -91
  100. package/{dist/tw → tw}/aesthetics/chunky-tile.css +107 -29
  101. package/{dist/tw → tw}/aesthetics/cyber.css +88 -40
  102. package/{dist/tw → tw}/aesthetics/glass.css +257 -61
  103. package/{dist/tw → tw}/aesthetics/neobrutalism.css +113 -20
  104. package/{dist/tw → tw}/aesthetics/pixel.css +93 -8
  105. package/tw/aesthetics/sketch.css +417 -0
  106. package/{dist/tw → tw}/box.css +105 -9
  107. package/tw/components/button.css +11 -0
  108. package/tw/components/button.rules.css +187 -0
  109. package/tw/components/feedback.css +11 -0
  110. package/{dist/tw/components/feedback.css → tw/components/feedback.rules.css} +136 -32
  111. package/tw/components/form.css +11 -0
  112. package/{dist/tw/components/form.css → tw/components/form.rules.css} +577 -125
  113. package/tw/components/index.css +16 -0
  114. package/tw/components/rules.css +41 -0
  115. package/tw/components/surface.css +11 -0
  116. package/tw/components/surface.rules.css +222 -0
  117. package/tw/components/tooltip.css +11 -0
  118. package/{dist/tw/components/tooltip.css → tw/components/tooltip.rules.css} +43 -27
  119. package/{dist/tw → tw}/corner.css +18 -12
  120. package/{dist/tw → tw}/elevation.css +23 -17
  121. package/{dist/tw → tw}/index.css +12 -10
  122. package/tw/index.d.ts +1 -0
  123. package/tw/intent.css +312 -0
  124. package/tw/modifiers.css +127 -0
  125. package/tw/native.css +320 -0
  126. package/tw/presentation.css +139 -0
  127. package/tw/reset.css +10 -0
  128. package/{dist/tw/reset.css → tw/reset.rules.css} +21 -22
  129. package/tw/size.css +34 -0
  130. package/tw/surface.css +9 -0
  131. package/tw/surface.rules.css +212 -0
  132. package/{dist/tw → tw}/theme.css +121 -45
  133. package/tw/typography.css +8 -0
  134. package/{dist/tw/typography.css → tw/typography.rules.css} +0 -3
  135. package/{dist/tw → tw}/utilities/content.css +212 -50
  136. package/tw/utilities/index.css +11 -0
  137. package/tw/utilities/layout.css +208 -0
  138. package/tw/utilities/rules.css +8 -0
  139. package/dist/tw/aesthetics/sketch.css +0 -333
  140. package/dist/tw/components/button.css +0 -139
  141. package/dist/tw/components/index.css +0 -36
  142. package/dist/tw/components/loader.css +0 -116
  143. package/dist/tw/components/surface.css +0 -175
  144. package/dist/tw/intent.css +0 -228
  145. package/dist/tw/native.css +0 -203
  146. package/dist/tw/palette.css +0 -460
  147. package/dist/tw/presentation.css +0 -68
  148. package/dist/tw/surface.css +0 -61
  149. package/dist/tw/utilities/index.css +0 -6
  150. package/dist/tw/utilities/layout.css +0 -130
  151. /package/{dist/tw → tw}/aesthetics/index.css +0 -0
@@ -1,130 +0,0 @@
1
- @utility view {
2
- @apply flex gap-(--layout-gap);
3
-
4
- &.vertical {
5
- @apply flex-col;
6
- }
7
-
8
- &.horizontal {
9
- @apply flex-row flex-wrap items-center;
10
- }
11
-
12
- &.tight {
13
- --layout-gap: 0.5rem;
14
- }
15
-
16
- &.loose {
17
- --layout-gap: 1.5rem;
18
- }
19
- }
20
-
21
- @utility stack {
22
- @apply flex flex-col gap-(--layout-gap);
23
-
24
- &.tight {
25
- --layout-gap: 0.5rem;
26
- }
27
-
28
- &.loose {
29
- --layout-gap: 1.5rem;
30
- }
31
- }
32
-
33
- @utility cluster {
34
- @apply flex flex-wrap items-center gap-(--layout-gap);
35
-
36
- &.between {
37
- @apply justify-between;
38
- }
39
-
40
- &.tight {
41
- --layout-gap: 0.5rem;
42
- }
43
-
44
- &.loose {
45
- --layout-gap: 1.5rem;
46
- }
47
- }
48
-
49
- @utility auto-grid {
50
- @apply grid gap-(--layout-gap);
51
-
52
- grid-template-columns: repeat(auto-fit, minmax(min(var(--layout-grid-min), 100%), 1fr));
53
-
54
- &.tight {
55
- --layout-gap: 0.5rem;
56
- }
57
-
58
- &.loose {
59
- --layout-gap: 1.5rem;
60
- }
61
- }
62
-
63
- @utility section {
64
- @apply px-(--layout-gutter) py-(--layout-section-block);
65
- }
66
-
67
- @utility section-content {
68
- @apply mx-auto w-full max-w-(--container-max);
69
-
70
- &.narrow {
71
- max-width: var(--container-narrow);
72
- }
73
-
74
- &.wide {
75
- max-width: var(--container-wide);
76
- }
77
- }
78
-
79
- /* An indicator: intent only, and no presentation token at all. A rule is a
80
- line, and neither a fill class nor an edge class has anything to say about
81
- one -- a container's `.ghost.edgeless` must not make every `<hr>` inside it
82
- invisible. The width is the aesthetic's line width, unscaled. */
83
- @utility divider {
84
- --divider-color: var(--intent-color);
85
- --divider-width: var(--ui-border-width, var(--border-width));
86
-
87
- @apply m-0 w-full border-0 border-t;
88
-
89
- border-color: var(--divider-color);
90
- border-top-width: var(--divider-width);
91
- border-top-style: var(--ui-rule-style, var(--ui-line-style, solid));
92
-
93
- &.vertical {
94
- @apply h-auto w-0 self-stretch border-s border-t-0;
95
-
96
- border-inline-start-width: var(--divider-width);
97
- border-inline-start-style: var(--ui-rule-style, var(--ui-line-style, solid));
98
- }
99
- }
100
-
101
- @utility selection-contrast {
102
- &::selection,
103
- & *::selection {
104
- background: var(--color-primary-contrast);
105
- color: var(--color-primary);
106
- }
107
- }
108
-
109
- /* `.visually-hidden`, the standard clip-based recipe. Tailwind's `sr-only` does
110
- nothing on the vanilla entries (`.`, `/native`), which compile real CSS from
111
- a scan of `src/` alone with no Tailwind utility layer to reach, so the
112
- package publishes its own.
113
-
114
- It is not named `.sr-only`: on a `/tw` entry the consumer's own Tailwind
115
- build supplies that utility, and two same-named utilities in one cascade
116
- collide silently -- the collision `registry.test.ts` polices (see
117
- `data-table`'s `renamedFrom` in `registry.json`). `@source
118
- inline("visually-hidden")` in `utilities/index.css` force-emits it on the
119
- entries with no scannable markup of their own. */
120
- @utility visually-hidden {
121
- position: absolute;
122
- width: 1px;
123
- height: 1px;
124
- padding: 0;
125
- margin: -1px;
126
- overflow: hidden;
127
- clip: rect(0, 0, 0, 0);
128
- white-space: nowrap;
129
- border-width: 0;
130
- }
File without changes