@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.
- package/NOTICE +18 -16
- package/README.es.md +62 -0
- package/README.md +28 -22
- package/README.pt-BR.md +62 -0
- package/dist/aesthetics/chunky-tile.css +1 -1
- package/dist/aesthetics/cyber.css +1 -1
- package/dist/aesthetics/glass.css +1 -1
- package/dist/aesthetics/index.css +2 -2
- package/dist/aesthetics/neobrutalism.css +1 -1
- package/dist/aesthetics/pixel.css +1 -1
- package/dist/aesthetics/sketch.css +1 -1
- package/dist/cli.js +189 -0
- package/dist/components.css +2 -2
- package/dist/index.css +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/native.css +2 -2
- package/dist/palette.css +1 -1
- package/dist/theme.css +2 -2
- package/docs/accessibility.md +108 -60
- package/docs/changelog/0.1.1.md +1 -0
- package/docs/changelog/0.2.0.md +1 -0
- package/docs/changelog/0.3.0.md +1 -0
- package/docs/changelog/0.4.0.md +1 -0
- package/docs/changelog/0.5.0.md +8 -3
- package/docs/changelog/0.6.0.md +2 -1
- package/docs/changelog/0.7.0.md +50 -0
- package/docs/changelog/0.8.0.md +70 -0
- package/docs/changelog/index.md +2 -0
- package/docs/concepts.md +188 -46
- package/docs/es/accessibility.md +169 -0
- package/docs/es/concepts.md +212 -0
- package/docs/es/index.md +105 -0
- package/docs/es/integrating/astro.md +35 -0
- package/docs/es/integrating/index.md +75 -0
- package/docs/es/integrating/nextjs.md +67 -0
- package/docs/es/integrating/svelte.md +45 -0
- package/docs/es/integrating/tailwind.md +148 -0
- package/docs/es/integrating/vue.md +31 -0
- package/docs/es/integrating/without-a-bundler.md +238 -0
- package/docs/es/setup.md +188 -0
- package/docs/es/usage/aesthetics.md +282 -0
- package/docs/es/usage/buttons.md +135 -0
- package/docs/es/usage/composing.md +168 -0
- package/docs/es/usage/content-and-layout.md +219 -0
- package/docs/es/usage/customizing.md +304 -0
- package/docs/es/usage/feedback.md +157 -0
- package/docs/es/usage/forms.md +256 -0
- package/docs/es/usage/index.md +33 -0
- package/docs/es/usage/presets.md +92 -0
- package/docs/es/usage/solo.md +86 -0
- package/docs/es/usage/theming.md +309 -0
- package/docs/es/usage/tooltips.md +127 -0
- package/docs/index.md +86 -26
- package/docs/integrating/astro.md +3 -4
- package/docs/integrating/index.md +46 -13
- package/docs/integrating/nextjs.md +3 -4
- package/docs/integrating/svelte.md +5 -4
- package/docs/integrating/tailwind.md +89 -6
- package/docs/integrating/vue.md +3 -4
- package/docs/integrating/without-a-bundler.md +237 -0
- package/docs/pt-BR/accessibility.md +169 -0
- package/docs/pt-BR/concepts.md +212 -0
- package/docs/pt-BR/index.md +105 -0
- package/docs/pt-BR/integrating/astro.md +35 -0
- package/docs/pt-BR/integrating/index.md +75 -0
- package/docs/pt-BR/integrating/nextjs.md +67 -0
- package/docs/pt-BR/integrating/svelte.md +45 -0
- package/docs/pt-BR/integrating/tailwind.md +148 -0
- package/docs/pt-BR/integrating/vue.md +31 -0
- package/docs/pt-BR/integrating/without-a-bundler.md +238 -0
- package/docs/pt-BR/setup.md +188 -0
- package/docs/pt-BR/usage/aesthetics.md +282 -0
- package/docs/pt-BR/usage/buttons.md +135 -0
- package/docs/pt-BR/usage/composing.md +168 -0
- package/docs/pt-BR/usage/content-and-layout.md +219 -0
- package/docs/pt-BR/usage/customizing.md +304 -0
- package/docs/pt-BR/usage/feedback.md +157 -0
- package/docs/pt-BR/usage/forms.md +256 -0
- package/docs/pt-BR/usage/index.md +33 -0
- package/docs/pt-BR/usage/presets.md +92 -0
- package/docs/pt-BR/usage/solo.md +86 -0
- package/docs/pt-BR/usage/theming.md +309 -0
- package/docs/pt-BR/usage/tooltips.md +127 -0
- package/docs/setup.md +142 -91
- package/docs/usage/aesthetics.md +89 -73
- package/docs/usage/buttons.md +112 -40
- package/docs/usage/composing.md +109 -92
- package/docs/usage/content-and-layout.md +160 -125
- package/docs/usage/customizing.md +117 -41
- package/docs/usage/feedback.md +138 -71
- package/docs/usage/forms.md +201 -107
- package/docs/usage/index.md +22 -14
- package/docs/usage/presets.md +91 -0
- package/docs/usage/solo.md +85 -0
- package/docs/usage/theming.md +273 -118
- package/docs/usage/tooltips.md +90 -49
- package/llms-full.txt +2820 -1298
- package/llms.txt +24 -22
- package/package.json +134 -91
- package/{dist/tw → tw}/aesthetics/chunky-tile.css +107 -29
- package/{dist/tw → tw}/aesthetics/cyber.css +88 -40
- package/{dist/tw → tw}/aesthetics/glass.css +257 -61
- package/{dist/tw → tw}/aesthetics/neobrutalism.css +113 -20
- package/{dist/tw → tw}/aesthetics/pixel.css +93 -8
- package/tw/aesthetics/sketch.css +417 -0
- package/{dist/tw → tw}/box.css +105 -9
- package/tw/components/button.css +11 -0
- package/tw/components/button.rules.css +187 -0
- package/tw/components/feedback.css +11 -0
- package/{dist/tw/components/feedback.css → tw/components/feedback.rules.css} +136 -32
- package/tw/components/form.css +11 -0
- package/{dist/tw/components/form.css → tw/components/form.rules.css} +577 -125
- package/tw/components/index.css +16 -0
- package/tw/components/rules.css +41 -0
- package/tw/components/surface.css +11 -0
- package/tw/components/surface.rules.css +222 -0
- package/tw/components/tooltip.css +11 -0
- package/{dist/tw/components/tooltip.css → tw/components/tooltip.rules.css} +43 -27
- package/{dist/tw → tw}/corner.css +18 -12
- package/{dist/tw → tw}/elevation.css +23 -17
- package/{dist/tw → tw}/index.css +12 -10
- package/tw/index.d.ts +1 -0
- package/tw/intent.css +312 -0
- package/tw/modifiers.css +127 -0
- package/tw/native.css +320 -0
- package/tw/presentation.css +139 -0
- package/tw/reset.css +10 -0
- package/{dist/tw/reset.css → tw/reset.rules.css} +21 -22
- package/tw/size.css +34 -0
- package/tw/surface.css +9 -0
- package/tw/surface.rules.css +212 -0
- package/{dist/tw → tw}/theme.css +121 -45
- package/tw/typography.css +8 -0
- package/{dist/tw/typography.css → tw/typography.rules.css} +0 -3
- package/{dist/tw → tw}/utilities/content.css +212 -50
- package/tw/utilities/index.css +11 -0
- package/tw/utilities/layout.css +208 -0
- package/tw/utilities/rules.css +8 -0
- package/dist/tw/aesthetics/sketch.css +0 -333
- package/dist/tw/components/button.css +0 -139
- package/dist/tw/components/index.css +0 -36
- package/dist/tw/components/loader.css +0 -116
- package/dist/tw/components/surface.css +0 -175
- package/dist/tw/intent.css +0 -228
- package/dist/tw/native.css +0 -203
- package/dist/tw/palette.css +0 -460
- package/dist/tw/presentation.css +0 -68
- package/dist/tw/surface.css +0 -61
- package/dist/tw/utilities/index.css +0 -6
- package/dist/tw/utilities/layout.css +0 -130
- /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
|