@semanticus/semanticus-css 2.2.0 → 3.1.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 (150) hide show
  1. package/README.md +23 -22
  2. package/dist/semanticus-no-utilities.css +1 -1
  3. package/dist/semanticus-semantics.css +1 -1
  4. package/dist/semanticus-utilities.css +1 -1
  5. package/dist/semanticus.css +2 -2
  6. package/dist/semanticus.palette.amber.css +1 -1
  7. package/dist/semanticus.palette.azure.css +1 -1
  8. package/dist/semanticus.palette.blue.css +1 -1
  9. package/dist/semanticus.palette.cyan.css +1 -1
  10. package/dist/semanticus.palette.fuchsia.css +1 -1
  11. package/dist/semanticus.palette.green.css +1 -1
  12. package/dist/semanticus.palette.grey.css +1 -1
  13. package/dist/semanticus.palette.indigo.css +1 -1
  14. package/dist/semanticus.palette.jade.css +1 -1
  15. package/dist/semanticus.palette.lime.css +1 -1
  16. package/dist/semanticus.palette.orange.css +1 -1
  17. package/dist/semanticus.palette.pink.css +1 -1
  18. package/dist/semanticus.palette.pumpkin.css +1 -1
  19. package/dist/semanticus.palette.purple.css +1 -1
  20. package/dist/semanticus.palette.red.css +1 -1
  21. package/dist/semanticus.palette.sand.css +1 -1
  22. package/dist/semanticus.palette.slate.css +1 -1
  23. package/dist/semanticus.palette.violet.css +1 -1
  24. package/dist/semanticus.palette.yellow.css +1 -1
  25. package/dist/semanticus.palette.zinc.css +1 -1
  26. package/dist/semanticus.size.pico.css +1 -1
  27. package/package.json +1 -1
  28. package/src/components/_card.css +55 -46
  29. package/src/components/_icons.css +2 -2
  30. package/src/components/_pane.css +15 -8
  31. package/src/components/_sidebar.css +6 -6
  32. package/src/components/_variables.css +28 -0
  33. package/src/components/modules.css +2 -0
  34. package/src/index.css +1 -1
  35. package/src/palettes/amber.css +22 -26
  36. package/src/palettes/azure.css +22 -26
  37. package/src/palettes/blue.css +22 -26
  38. package/src/palettes/cyan.css +22 -26
  39. package/src/palettes/fuchsia.css +25 -26
  40. package/src/palettes/green.css +22 -26
  41. package/src/palettes/grey.css +22 -26
  42. package/src/palettes/indigo.css +22 -26
  43. package/src/palettes/jade.css +22 -26
  44. package/src/palettes/lime.css +22 -26
  45. package/src/palettes/orange.css +22 -26
  46. package/src/palettes/pink.css +22 -26
  47. package/src/palettes/pumpkin.css +25 -26
  48. package/src/palettes/purple.css +22 -26
  49. package/src/palettes/red.css +22 -26
  50. package/src/palettes/sand.css +22 -26
  51. package/src/palettes/slate.css +22 -26
  52. package/src/palettes/violet.css +22 -26
  53. package/src/palettes/yellow.css +22 -26
  54. package/src/palettes/zinc.css +22 -26
  55. package/src/semantics/attributes/_aria-busy.css +1 -10
  56. package/src/semantics/attributes/_aria-disabled.css +2 -23
  57. package/src/semantics/attributes/_disabled.css +3 -0
  58. package/src/semantics/attributes/_popover.css +4 -3
  59. package/src/semantics/attributes/_role-group-search.css +135 -0
  60. package/src/semantics/attributes/_role-list.css +23 -0
  61. package/src/semantics/attributes/_role-status-alert.css +28 -22
  62. package/src/semantics/attributes/_role-tooltip.css +11 -8
  63. package/src/semantics/elements/_address.css +2 -2
  64. package/src/semantics/elements/_aside.css +4 -3
  65. package/src/semantics/elements/_blockquote.css +6 -6
  66. package/src/semantics/elements/_body.css +0 -2
  67. package/src/semantics/elements/_buttons.css +100 -0
  68. package/src/semantics/elements/_code.css +18 -8
  69. package/src/semantics/elements/_del.css +1 -1
  70. package/src/semantics/elements/_details.css +147 -162
  71. package/src/semantics/elements/_dialog.css +24 -17
  72. package/src/semantics/elements/_fieldset.css +27 -0
  73. package/src/semantics/elements/_figure.css +1 -1
  74. package/src/semantics/elements/_footer.css +0 -1
  75. package/src/semantics/elements/_header.css +0 -1
  76. package/src/semantics/elements/_headings.css +86 -9
  77. package/src/semantics/elements/_hgroup.css +2 -2
  78. package/src/semantics/elements/_hr.css +2 -2
  79. package/src/semantics/elements/_inputs.css +14 -0
  80. package/src/semantics/elements/_ins.css +1 -1
  81. package/src/semantics/elements/_label.css +4 -0
  82. package/src/semantics/elements/_links.css +34 -41
  83. package/src/semantics/elements/_lists.css +10 -8
  84. package/src/semantics/elements/_mark.css +2 -2
  85. package/src/semantics/elements/_nav.css +65 -35
  86. package/src/semantics/elements/_p.css +2 -2
  87. package/src/semantics/elements/_progress.css +18 -11
  88. package/src/semantics/elements/{_document.css → _root.css} +12 -9
  89. package/src/semantics/elements/_section.css +0 -1
  90. package/src/semantics/elements/_small.css +27 -0
  91. package/src/semantics/elements/_table.css +20 -6
  92. package/src/semantics/elements/inputs/_checkbox-radio.css +30 -0
  93. package/src/semantics/elements/inputs/_checkbox.css +19 -0
  94. package/src/semantics/elements/{_type-color.css → inputs/_color.css} +5 -3
  95. package/src/semantics/elements/inputs/_common.css +87 -0
  96. package/src/semantics/elements/inputs/_date.css +53 -0
  97. package/src/semantics/elements/inputs/_file.css +35 -0
  98. package/src/semantics/elements/inputs/_input.css +47 -0
  99. package/src/semantics/elements/inputs/_radio.css +11 -0
  100. package/src/semantics/elements/inputs/_range.css +69 -0
  101. package/src/semantics/elements/inputs/_search.css +48 -0
  102. package/src/semantics/elements/inputs/_select.css +32 -0
  103. package/src/semantics/elements/inputs/_switch.css +46 -0
  104. package/src/semantics/elements/inputs/_textarea.css +30 -0
  105. package/src/semantics/modules.css +9 -13
  106. package/src/sizes/pico.css +24 -23
  107. package/src/utilities/_grid.css +917 -179
  108. package/src/utilities/_variables.css +21 -14
  109. package/src/utilities/borders/_border-radius.css +9 -9
  110. package/src/utilities/borders/_border-style.css +10 -10
  111. package/src/utilities/colors/_bg-colors.css +22 -38
  112. package/src/utilities/colors/_border-colors.css +20 -26
  113. package/src/utilities/colors/_subtle-colors.css +55 -61
  114. package/src/utilities/colors/_text-bg-colors.css +35 -35
  115. package/src/utilities/colors/_text-colors.css +24 -46
  116. package/src/utilities/effects/_focus-ring.css +14 -11
  117. package/src/utilities/layout/_misc.css +4 -3
  118. package/src/utilities/sizing/_width.css +48 -0
  119. package/src/utilities/spacing/_gap.css +0 -43
  120. package/src/utilities/spacing/_margin.css +0 -1
  121. package/src/utilities/spacing/_padding.css +0 -1
  122. package/src/utilities/typography/_font-sizes.css +6 -6
  123. package/src/variables/_all.css +3 -4
  124. package/src/variables/_theme.css +394 -237
  125. package/src/variants/_intent.css +8 -0
  126. package/src/variants/_variables.css +109 -9
  127. package/src/variants/intent/_common.css +33 -0
  128. package/src/variants/intent/_contrast.css +30 -31
  129. package/src/variants/intent/_danger.css +7 -30
  130. package/src/variants/intent/_info.css +7 -30
  131. package/src/variants/intent/_primary.css +7 -30
  132. package/src/variants/intent/_secondary.css +7 -30
  133. package/src/variants/intent/_success.css +7 -30
  134. package/src/variants/intent/_warning.css +7 -30
  135. package/src/variants/modifiers/_ghost.css +52 -152
  136. package/src/variants/modifiers/_striped.css +6 -5
  137. package/src/variants/modifiers/_subtle.css +55 -113
  138. package/src/variants/modules.css +1 -7
  139. package/src/semantics/attributes/_role-group.css +0 -126
  140. package/src/semantics/attributes/_role-search.css +0 -14
  141. package/src/semantics/elements/_article.css +0 -3
  142. package/src/semantics/elements/_button.css +0 -124
  143. package/src/semantics/elements/_input.css +0 -302
  144. package/src/semantics/elements/_main.css +0 -3
  145. package/src/semantics/elements/_type-checkbox-radio.css +0 -139
  146. package/src/semantics/elements/_type-date.css +0 -37
  147. package/src/semantics/elements/_type-file.css +0 -23
  148. package/src/semantics/elements/_type-range.css +0 -87
  149. package/src/semantics/elements/_type-search.css +0 -30
  150. package/src/variables/_elements.css +0 -195
@@ -1,30 +0,0 @@
1
- input:not([type=checkbox], [type=radio], [type=range], [type=file])[type=search] {
2
- padding-inline-start: calc(var(--input-spacing-horizontal) + 1.75rem);
3
- background-image: var(--icon-search);
4
- background-position: left calc(var(--input-spacing-horizontal) + 0.125rem) center;
5
- background-size: 1rem auto;
6
- background-repeat: no-repeat;
7
-
8
- &[aria-invalid] {
9
- padding-inline-start: calc(var(--input-spacing-horizontal) + 1.75rem);
10
- /* Using calc with var to workaround LightningCSS minification bug with 3-value syntax */
11
- background-position: left calc(var(--input-spacing-horizontal) * 0 + 1.125rem) center, right calc(var(--input-spacing-horizontal) * 0 + 0.75rem) center;
12
- }
13
-
14
- &[aria-invalid=false] {
15
- background-image: var(--icon-search), var(--icon-valid);
16
- }
17
-
18
- &[aria-invalid=true] {
19
- background-image: var(--icon-search), var(--icon-invalid);
20
- }
21
- }
22
-
23
- [dir=rtl] input:not([type=checkbox], [type=radio], [type=range], [type=file])[type=search] {
24
- background-position: right calc(var(--input-spacing-horizontal) * 0 + 1.125rem) center;
25
-
26
- &[aria-invalid] {
27
- /* Using calc with var to workaround LightningCSS minification bug with 3-value syntax */
28
- background-position: right calc(var(--input-spacing-horizontal) * 0 + 1.125rem) center, left calc(var(--input-spacing-horizontal) * 0 + 0.75rem) center;
29
- }
30
- }
@@ -1,195 +0,0 @@
1
- /* ==========================================================================
2
- Element-Scoped Variables
3
- ==========================================================================
4
-
5
- These selectors override global :root variables on a per-element basis
6
- so each component can have its own defaults (font-size, weight,
7
- line-height, border-radius, etc.) without class-name bloat.
8
-
9
- This enables semantic HTML elements to have appropriate styling
10
- out of the box.
11
- ========================================================================== */
12
-
13
- /* Small text */
14
- small {
15
- --font-size: 80%; /* modern-normalize */
16
- }
17
-
18
- /* ==========================================================================
19
- Heading Typography
20
- ========================================================================== */
21
-
22
- h1,
23
- h2,
24
- h3,
25
- h4,
26
- h5,
27
- h6 {
28
- --font-weight: 700;
29
- }
30
-
31
- h1 {
32
- --font-size: var(--h1-size);
33
- --line-height: 1.125;
34
- --heading-gap-top: 3rem;
35
- }
36
-
37
- h2 {
38
- --font-size: var(--h2-size);
39
- --line-height: 1.15;
40
- --heading-gap-top: 2.625rem;
41
- }
42
-
43
- h3 {
44
- --font-size: var(--h3-size);
45
- --line-height: 1.175;
46
- --heading-gap-top: 2.25rem;
47
- }
48
-
49
- h4 {
50
- --font-size: var(--h4-size);
51
- --line-height: 1.2;
52
- --heading-gap-top: 1.874rem;
53
- }
54
-
55
- h5 {
56
- --font-size: var(--h5-size);
57
- --line-height: 1.225;
58
- --heading-gap-top: 1.6875rem;
59
- }
60
-
61
- h6 {
62
- --font-size: var(--h6-size);
63
- --line-height: 1.25;
64
- --heading-gap-top: 1.5rem;
65
- }
66
-
67
- /* ==========================================================================
68
- Table Elements
69
- ========================================================================== */
70
-
71
- thead th,
72
- thead td,
73
- tfoot th,
74
- tfoot td {
75
- --font-weight: 600;
76
- --border-size: 0.1875rem;
77
- }
78
-
79
- /* ==========================================================================
80
- Code Elements
81
- ========================================================================== */
82
-
83
- pre,
84
- code,
85
- kbd,
86
- samp {
87
- --font-family: var(--font-family-monospace);
88
- }
89
-
90
- kbd {
91
- --font-weight: bolder;
92
- }
93
-
94
- /* ==========================================================================
95
- Form Elements
96
- ========================================================================== */
97
-
98
- /* Text-style form inputs use a thinner outline */
99
- input:not(
100
- [type="submit"],
101
- [type="button"],
102
- [type="reset"],
103
- [type="checkbox"],
104
- [type="radio"],
105
- [type="file"]
106
- ),
107
- :where(select, textarea) {
108
- --outline-size: 0.0625rem;
109
- }
110
-
111
- /* Search inputs are pill-shaped */
112
- [type="search"] {
113
- --radius: 5rem;
114
- }
115
-
116
- /* Checkboxes & radios use a slightly thicker border */
117
- [type="checkbox"],
118
- [type="radio"] {
119
- --border-size: 0.125rem;
120
- }
121
-
122
- /* Toggle switches get an even thicker border */
123
- [type="checkbox"][role="switch"] {
124
- --border-size: 0.1875rem;
125
- }
126
-
127
- /* Search role wrappers are pill-shaped */
128
- [role="search"] {
129
- --radius: 5rem;
130
- }
131
-
132
- /* ==========================================================================
133
- Button Group Focus Ring Overrides
134
- ========================================================================== */
135
-
136
- /* Secondary button focus in groups */
137
- [role="search"]:has(
138
- button.secondary:focus,
139
- [type="submit"].secondary:focus,
140
- [type="button"].secondary:focus,
141
- [role="button"].secondary:focus
142
- ),
143
- [role="group"]:has(
144
- button.secondary:focus,
145
- [type="submit"].secondary:focus,
146
- [type="button"].secondary:focus,
147
- [role="button"].secondary:focus
148
- ) {
149
- --group-shadow-focus-button: 0 0 0 var(--outline-size) var(--color-secondary-focus-ring);
150
- }
151
-
152
- /* Contrast button focus in groups */
153
- [role="search"]:has(
154
- button.contrast:focus,
155
- [type="submit"].contrast:focus,
156
- [type="button"].contrast:focus,
157
- [role="button"].contrast:focus
158
- ),
159
- [role="group"]:has(
160
- button.contrast:focus,
161
- [type="submit"].contrast:focus,
162
- [type="button"].contrast:focus,
163
- [role="button"].contrast:focus
164
- ) {
165
- --group-shadow-focus-button: 0 0 0 var(--outline-size) var(--color-contrast-focus-ring);
166
- }
167
-
168
- /* Buttons inside search/group combos get wider horizontal padding */
169
- [role="search"] button,
170
- [role="search"] [type="submit"],
171
- [role="search"] [type="button"],
172
- [role="search"] [role="button"],
173
- [role="group"] button,
174
- [role="group"] [type="submit"],
175
- [role="group"] [type="button"],
176
- [role="group"] [role="button"] {
177
- --input-spacing-horizontal: 1rem;
178
- }
179
-
180
- /* ==========================================================================
181
- Form Element Accent Color
182
- ========================================================================== */
183
-
184
- /* Native browser accent-color for checkboxes, radios, and range sliders */
185
- [type="checkbox"],
186
- [type="radio"],
187
- [type="range"] {
188
- accent-color: var(--color-primary-fill);
189
- }
190
-
191
- /* Text selection color */
192
-
193
- ::selection {
194
- background-color: color-mix(in srgb, var(--color-primary-fill), white 75%);
195
- }