@volverjs/style 0.0.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 (104) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +139 -0
  3. package/package.json +158 -0
  4. package/src/_config.scss +32 -0
  5. package/src/_context.scss +11 -0
  6. package/src/assets/24consulting.svg +63 -0
  7. package/src/assets/volverjs.svg +15 -0
  8. package/src/components/index.scss +17 -0
  9. package/src/components/vv-badge.scss +12 -0
  10. package/src/components/vv-button-group.scss +115 -0
  11. package/src/components/vv-button.scss +57 -0
  12. package/src/components/vv-card.scss +12 -0
  13. package/src/components/vv-collapse.scss +12 -0
  14. package/src/components/vv-dialog.scss +12 -0
  15. package/src/components/vv-dropdown.scss +12 -0
  16. package/src/components/vv-input-checkbox-group.scss +12 -0
  17. package/src/components/vv-input-checkbox.scss +28 -0
  18. package/src/components/vv-input-radio-group.scss +12 -0
  19. package/src/components/vv-input-radio.scss +20 -0
  20. package/src/components/vv-input-text.scss +49 -0
  21. package/src/components/vv-progress.scss +12 -0
  22. package/src/components/vv-select.scss +49 -0
  23. package/src/components/vv-table.scss +12 -0
  24. package/src/components/vv-text.scss +12 -0
  25. package/src/components/vv-textarea.scss +49 -0
  26. package/src/export.scss +411 -0
  27. package/src/preflight.scss +281 -0
  28. package/src/props/animation.scss +80 -0
  29. package/src/props/background.scss +5 -0
  30. package/src/props/borders.scss +6 -0
  31. package/src/props/colors.scss +5 -0
  32. package/src/props/effects.scss +5 -0
  33. package/src/props/filters.scss +6 -0
  34. package/src/props/index.scss +12 -0
  35. package/src/props/input.scss +5 -0
  36. package/src/props/layout.scss +6 -0
  37. package/src/props/media.scss +49 -0
  38. package/src/props/sizing.scss +6 -0
  39. package/src/props/spacing.scss +27 -0
  40. package/src/props/typography.scss +38 -0
  41. package/src/reset.scss +88 -0
  42. package/src/settings/_animation.scss +9 -0
  43. package/src/settings/_background.scss +56 -0
  44. package/src/settings/_borders.scss +24 -0
  45. package/src/settings/_breakpoints.scss +13 -0
  46. package/src/settings/_colors.scss +39 -0
  47. package/src/settings/_effects.scss +39 -0
  48. package/src/settings/_filters.scss +26 -0
  49. package/src/settings/_flexbox.scss +66 -0
  50. package/src/settings/_grid.scss +104 -0
  51. package/src/settings/_index.scss +34 -0
  52. package/src/settings/_input.scss +51 -0
  53. package/src/settings/_layout.scss +109 -0
  54. package/src/settings/_sizing.scss +99 -0
  55. package/src/settings/_spacing.scss +77 -0
  56. package/src/settings/_typography.scss +179 -0
  57. package/src/settings/components/_vv-badge.scss +43 -0
  58. package/src/settings/components/_vv-button-group.scss +20 -0
  59. package/src/settings/components/_vv-button.scss +214 -0
  60. package/src/settings/components/_vv-card.scss +74 -0
  61. package/src/settings/components/_vv-collapse.scss +111 -0
  62. package/src/settings/components/_vv-dialog.scss +183 -0
  63. package/src/settings/components/_vv-dropdown.scss +37 -0
  64. package/src/settings/components/_vv-input-checkbox-group.scss +60 -0
  65. package/src/settings/components/_vv-input-checkbox.scss +92 -0
  66. package/src/settings/components/_vv-input-radio-group.scss +1 -0
  67. package/src/settings/components/_vv-input-radio.scss +60 -0
  68. package/src/settings/components/_vv-input-text.scss +327 -0
  69. package/src/settings/components/_vv-progress.scss +45 -0
  70. package/src/settings/components/_vv-select.scss +216 -0
  71. package/src/settings/components/_vv-table.scss +29 -0
  72. package/src/settings/components/_vv-text.scss +42 -0
  73. package/src/settings/components/_vv-textarea.scss +275 -0
  74. package/src/style.scss +14 -0
  75. package/src/themes/dark/_context.scss +8 -0
  76. package/src/themes/dark/components/_vv-button.scss +24 -0
  77. package/src/themes/dark/components/_vv-input-checkbox.scss +24 -0
  78. package/src/themes/dark/components/index.scss +2 -0
  79. package/src/themes/dark/props/_background.scss +15 -0
  80. package/src/themes/dark/props/_colors.scss +15 -0
  81. package/src/themes/dark/props/index.scss +2 -0
  82. package/src/themes/dark/settings/_background.scss +12 -0
  83. package/src/themes/dark/settings/_colors.scss +15 -0
  84. package/src/themes/dark/settings/_index.scss +5 -0
  85. package/src/themes/dark/settings/components/_vv-button.scss +58 -0
  86. package/src/themes/dark/settings/components/_vv-input-checkbox.scss +26 -0
  87. package/src/themes/dark/style.scss +5 -0
  88. package/src/tools/_breakpoints.scss +126 -0
  89. package/src/tools/_functions.scss +138 -0
  90. package/src/tools/_index.scss +3 -0
  91. package/src/tools/_mixins.scss +902 -0
  92. package/src/utilities/animation.scss +8 -0
  93. package/src/utilities/backgrounds.scss +50 -0
  94. package/src/utilities/borders.scss +79 -0
  95. package/src/utilities/colors.scss +33 -0
  96. package/src/utilities/effects.scss +15 -0
  97. package/src/utilities/filters.scss +22 -0
  98. package/src/utilities/flexbox.scss +113 -0
  99. package/src/utilities/grid.scss +68 -0
  100. package/src/utilities/index.scss +12 -0
  101. package/src/utilities/layout.scss +188 -0
  102. package/src/utilities/sizing.scss +80 -0
  103. package/src/utilities/spacing.scss +109 -0
  104. package/src/utilities/typography.scss +226 -0
@@ -0,0 +1,109 @@
1
+ @use 'sass:map';
2
+ @import '../context';
3
+
4
+ @each $prefix, $prop in (m: margin, p: padding, n: margin) {
5
+ @each $size, $value in map.merge($spacing, $spacing-dynamic) {
6
+ $var: var(--spacing-#{$size});
7
+
8
+ // check if value is not a map (spacing-dynamic)
9
+ @if type-of($value) != 'map' {
10
+ $var: var(--spacing-#{$size}, #{$value});
11
+ }
12
+
13
+ // negative margin
14
+ @if $prefix == 'n' {
15
+ $var: calc(-1 * #{$var});
16
+ }
17
+
18
+ // all
19
+ %#{$prefix}#{$size} {
20
+ #{$prop}: #{$var};
21
+ }
22
+ @include wrap-with-where(
23
+ $selector: '.#{$prefix}-#{$size}',
24
+ $enabled: $zero-specificity-for-utilities
25
+ ) {
26
+ @extend %#{$prefix}#{$size};
27
+ }
28
+
29
+ // horizontal
30
+ %#{$prefix}x-#{$size} {
31
+ #{$prop}-inline: #{$var};
32
+ }
33
+ @include wrap-with-where(
34
+ $selector: '.#{$prefix}x-#{$size}',
35
+ $enabled: $zero-specificity-for-utilities
36
+ ) {
37
+ @extend %#{$prefix}x-#{$size};
38
+ }
39
+
40
+ // vertical
41
+ %#{$prefix}y-#{$size} {
42
+ #{$prop}-block: #{$var};
43
+ }
44
+ @include wrap-with-where(
45
+ $selector: '.#{$prefix}y-#{$size}',
46
+ $enabled: $zero-specificity-for-utilities
47
+ ) {
48
+ @extend %#{$prefix}y-#{$size};
49
+ }
50
+
51
+ // sides
52
+ @each $direction-prefix,
53
+ $direction in(t: top, r: right, b: bottom, l: left)
54
+ {
55
+ %#{$prefix}#{$direction-prefix}-#{$size} {
56
+ #{$prop}-#{$direction}: #{$var};
57
+ }
58
+ @include wrap-with-where(
59
+ $selector: '.#{$prefix}#{$direction-prefix}-#{$size}',
60
+ $enabled: $zero-specificity-for-utilities
61
+ ) {
62
+ @extend %#{$prefix}#{$direction-prefix}-#{$size};
63
+ }
64
+ }
65
+ }
66
+ }
67
+
68
+ // auto
69
+ %m-auto {
70
+ margin: auto;
71
+ }
72
+ @include wrap-with-where(
73
+ $selector: '.m-auto',
74
+ $enabled: $zero-specificity-for-utilities
75
+ ) {
76
+ @extend %m-auto;
77
+ }
78
+
79
+ %mx-auto {
80
+ margin-inline: auto;
81
+ }
82
+ @include wrap-with-where(
83
+ $selector: '.mx-auto',
84
+ $enabled: $zero-specificity-for-utilities
85
+ ) {
86
+ @extend %mx-auto;
87
+ }
88
+
89
+ %my-auto {
90
+ margin-block: auto;
91
+ }
92
+ @include wrap-with-where(
93
+ $selector: '.my-auto',
94
+ $enabled: $zero-specificity-for-utilities
95
+ ) {
96
+ @extend %my-auto;
97
+ }
98
+
99
+ @each $direction-prefix, $direction in(t: top, r: right, b: bottom, l: left) {
100
+ %m#{$direction-prefix}-auto {
101
+ margin-#{$direction}: auto;
102
+ }
103
+ @include wrap-with-where(
104
+ $selector: '.m#{$direction-prefix}-auto',
105
+ $enabled: $zero-specificity-for-utilities
106
+ ) {
107
+ @extend %m#{$direction-prefix}-auto;
108
+ }
109
+ }
@@ -0,0 +1,226 @@
1
+ @use 'sass:map';
2
+ @import '../context';
3
+
4
+ // font-family
5
+ @include spread-map-into-utilities(
6
+ $map: $font-family,
7
+ $class: font,
8
+ $attribute: font-family,
9
+ $prop: font
10
+ );
11
+
12
+ // font-weight
13
+ @include spread-map-into-utilities(
14
+ $map: $font-weight,
15
+ $class: font,
16
+ $attribute: font-weight,
17
+ $prop: font
18
+ );
19
+
20
+ // font-size
21
+ @include spread-map-into-utilities(
22
+ $map: map.merge($font-size, $font-size-dynamic),
23
+ $class: text,
24
+ $attribute: font-size,
25
+ $prop: text,
26
+ $deep: false
27
+ );
28
+
29
+ // font-style
30
+ %italic {
31
+ font-style: italic;
32
+ }
33
+ @include wrap-with-where(
34
+ $selector: '.italic',
35
+ $enabled: $zero-specificity-for-utilities
36
+ ) {
37
+ @extend %italic;
38
+ }
39
+
40
+ %non-italic {
41
+ font-style: normal;
42
+ }
43
+ @include wrap-with-where(
44
+ $selector: '.non-italic',
45
+ $enabled: $zero-specificity-for-utilities
46
+ ) {
47
+ @extend %non-italic;
48
+ }
49
+
50
+ // font-smoothing
51
+ %antialiased {
52
+ -webkit-font-smoothing: antialiased;
53
+ -moz-osx-font-smoothing: grayscale;
54
+ }
55
+ @include wrap-with-where(
56
+ $selector: '.antialiased',
57
+ $enabled: $zero-specificity-for-utilities
58
+ ) {
59
+ @extend %antialiased;
60
+ }
61
+
62
+ %subpixel-antialiased {
63
+ -webkit-font-smoothing: auto;
64
+ -moz-osx-font-smoothing: auto;
65
+ }
66
+ @include wrap-with-where(
67
+ $selector: '.subpixel-antialiased',
68
+ $enabled: $zero-specificity-for-utilities
69
+ ) {
70
+ @extend %subpixel-antialiased;
71
+ }
72
+
73
+ // line-height
74
+ @include spread-map-into-utilities(
75
+ $map: $line-height,
76
+ $class: leading,
77
+ $attribute: line-height,
78
+ $prop: leading
79
+ );
80
+
81
+ // letter-spacing
82
+ @include spread-map-into-utilities(
83
+ $map: $letter-spacing,
84
+ $class: tracking,
85
+ $attribute: letter-spacing,
86
+ $prop: tracking
87
+ );
88
+
89
+ // font-variant-numeric
90
+ @include spread-map-into-utilities(
91
+ $map: $font-variant-numeric,
92
+ $attribute: font-variant-numeric
93
+ );
94
+
95
+ // list-style-type
96
+ @include spread-map-into-utilities(
97
+ $map: $list-style-type,
98
+ $class: list,
99
+ $attribute: list-style-type
100
+ );
101
+
102
+ // list-style-position
103
+ @include spread-map-into-utilities(
104
+ $map: $list-style-position,
105
+ $class: list,
106
+ $attribute: list-style-position
107
+ );
108
+
109
+ // text-align
110
+ @include spread-map-into-utilities(
111
+ $map: $text-align,
112
+ $class: text,
113
+ $attribute: text-align
114
+ );
115
+
116
+ // text-decorator-line
117
+ @include spread-map-into-utilities(
118
+ $map: $text-decorator-line,
119
+ $attribute: text-decoration-line
120
+ );
121
+
122
+ // text-decorator-style
123
+ @include spread-map-into-utilities(
124
+ $map: $text-decorator-style,
125
+ $class: decoration,
126
+ $attribute: text-decoration-style
127
+ );
128
+
129
+ // text-decorator-thickness
130
+ @include spread-map-into-utilities(
131
+ $map: $text-decorator-thickness,
132
+ $class: decoration,
133
+ $attribute: text-decoration-thickness
134
+ );
135
+
136
+ // text-underline-offset
137
+ @include spread-map-into-utilities(
138
+ $map: $text-underline-offset,
139
+ $class: underline-offset,
140
+ $attribute: text-underline-offset
141
+ );
142
+
143
+ // text-transform
144
+ @include spread-map-into-utilities(
145
+ $map: $text-transform,
146
+ $attribute: text-transform
147
+ );
148
+
149
+ // text-overflow
150
+ %truncate {
151
+ overflow: hidden;
152
+ text-overflow: ellipsis;
153
+ white-space: nowrap;
154
+ }
155
+ @include wrap-with-where(
156
+ $selector: '.truncate',
157
+ $enabled: $zero-specificity-for-utilities
158
+ ) {
159
+ @extend %truncate;
160
+ }
161
+
162
+ %text-ellipsis {
163
+ text-overflow: ellipsis;
164
+ }
165
+ @include wrap-with-where(
166
+ $selector: '.text-ellipsis',
167
+ $enabled: $zero-specificity-for-utilities
168
+ ) {
169
+ @extend %text-ellipsis;
170
+ }
171
+
172
+ %text-clip {
173
+ text-overflow: clip;
174
+ }
175
+ @include wrap-with-where(
176
+ $selector: '.text-clip',
177
+ $enabled: $zero-specificity-for-utilities
178
+ ) {
179
+ @extend %text-clip;
180
+ }
181
+
182
+ // word break
183
+ %break-normal {
184
+ overflow-wrap: normal;
185
+ word-break: normal;
186
+ }
187
+ @include wrap-with-where(
188
+ $selector: '.break-normal',
189
+ $enabled: $zero-specificity-for-utilities
190
+ ) {
191
+ @extend %break-normal;
192
+ }
193
+
194
+ %break-words {
195
+ overflow-wrap: break-word;
196
+ }
197
+ @include wrap-with-where(
198
+ $selector: '.break-words',
199
+ $enabled: $zero-specificity-for-utilities
200
+ ) {
201
+ @extend %break-words;
202
+ }
203
+
204
+ %break-all {
205
+ word-break: break-all;
206
+ }
207
+ @include wrap-with-where(
208
+ $selector: '.break-all',
209
+ $enabled: $zero-specificity-for-utilities
210
+ ) {
211
+ @extend %break-all;
212
+ }
213
+
214
+ // vertical align
215
+ @include spread-map-into-utilities(
216
+ $map: $vertical-align,
217
+ $class: align,
218
+ $attribute: vertical-align
219
+ );
220
+
221
+ // white-space
222
+ @include spread-map-into-utilities(
223
+ $map: $white-space,
224
+ $class: whitespace,
225
+ $attribute: white-space
226
+ );