@code-coaching/vuetiful 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 (78) hide show
  1. package/README.md +143 -0
  2. package/dist/style.css +1 -0
  3. package/dist/styles/all.css +4645 -0
  4. package/dist/types/components/atoms/VButton.vue.d.ts +86 -0
  5. package/dist/types/components/atoms/index.d.ts +2 -0
  6. package/dist/types/components/index.d.ts +2 -0
  7. package/dist/types/constants/MyConstants.d.ts +1 -0
  8. package/dist/types/constants/index.d.ts +2 -0
  9. package/dist/types/index.d.ts +12 -0
  10. package/dist/types/types/index.d.ts +1 -0
  11. package/dist/types/types/tailwind.d.ts +4 -0
  12. package/dist/types/utils/MyUtil.d.ts +5 -0
  13. package/dist/types/utils/dark-mode/dark-mode.d.ts +18 -0
  14. package/dist/types/utils/dark-mode/dark-mode.vue.d.ts +91 -0
  15. package/dist/types/utils/index.d.ts +6 -0
  16. package/dist/types/utils/platform/platform.d.ts +4 -0
  17. package/dist/types/utils/theme/theme-switcher.vue.d.ts +106 -0
  18. package/dist/types/utils/theme/theme.d.ts +9 -0
  19. package/dist/vuetiful.es.mjs +515 -0
  20. package/dist/vuetiful.umd.js +17 -0
  21. package/package.json +47 -0
  22. package/src/assets/fonts/myfont.woff +0 -0
  23. package/src/assets/main.css +17 -0
  24. package/src/components/atoms/VButton.vue +78 -0
  25. package/src/components/atoms/index.ts +3 -0
  26. package/src/components/index.ts +3 -0
  27. package/src/constants/MyConstants.ts +1 -0
  28. package/src/constants/index.ts +5 -0
  29. package/src/env.d.ts +8 -0
  30. package/src/index.ts +29 -0
  31. package/src/styles/all.css +21 -0
  32. package/src/styles/core.css +65 -0
  33. package/src/styles/elements/alerts.css +17 -0
  34. package/src/styles/elements/badges.css +31 -0
  35. package/src/styles/elements/breadcrumbs.css +26 -0
  36. package/src/styles/elements/buttons.css +103 -0
  37. package/src/styles/elements/cards.css +32 -0
  38. package/src/styles/elements/chips.css +22 -0
  39. package/src/styles/elements/forms.css +268 -0
  40. package/src/styles/elements/lists.css +48 -0
  41. package/src/styles/elements/logo-clouds.css +29 -0
  42. package/src/styles/elements/modals.css +15 -0
  43. package/src/styles/elements/placeholders.css +17 -0
  44. package/src/styles/elements/popups.css +16 -0
  45. package/src/styles/elements/tables.css +102 -0
  46. package/src/styles/elements.css +19 -0
  47. package/src/styles/highlight-js.css +116 -0
  48. package/src/styles/tailwind.css +16 -0
  49. package/src/styles/typography.css +101 -0
  50. package/src/styles/variants.css +156 -0
  51. package/src/tailwind/core.cjs +37 -0
  52. package/src/tailwind/generated/intellisense-classes.cjs +558 -0
  53. package/src/tailwind/intellisense.cjs +21 -0
  54. package/src/tailwind/settings.cjs +20 -0
  55. package/src/tailwind/theme/colors.cjs +20 -0
  56. package/src/tailwind/tokens/backgrounds.cjs +48 -0
  57. package/src/tailwind/tokens/border-radius.cjs +21 -0
  58. package/src/tailwind/tokens/borders.cjs +24 -0
  59. package/src/tailwind/tokens/fills.cjs +20 -0
  60. package/src/tailwind/tokens/rings.cjs +50 -0
  61. package/src/tailwind/tokens/text.cjs +35 -0
  62. package/src/tailwind/vuetiful.cjs +19 -0
  63. package/src/themes/theme-modern.css +127 -0
  64. package/src/themes/theme-rocket.css +119 -0
  65. package/src/themes/theme-sahara.css +128 -0
  66. package/src/themes/theme-seafoam.css +121 -0
  67. package/src/themes/theme-seasonal.css +115 -0
  68. package/src/themes/theme-vintage.css +125 -0
  69. package/src/themes/theme-vuetiful.css +118 -0
  70. package/src/types/index.ts +1 -0
  71. package/src/types/tailwind.ts +7 -0
  72. package/src/utils/MyUtil.ts +7 -0
  73. package/src/utils/dark-mode/dark-mode.ts +90 -0
  74. package/src/utils/dark-mode/dark-mode.vue +133 -0
  75. package/src/utils/index.ts +7 -0
  76. package/src/utils/platform/platform.ts +10 -0
  77. package/src/utils/theme/theme-switcher.vue +155 -0
  78. package/src/utils/theme/theme.ts +65 -0
@@ -0,0 +1,3 @@
1
+ import VButton from "./VButton.vue";
2
+
3
+ export { VButton };
@@ -0,0 +1,3 @@
1
+ import { VButton } from "./atoms";
2
+
3
+ export { VButton };
@@ -0,0 +1 @@
1
+ export const MAGIC_NUM = 100
@@ -0,0 +1,5 @@
1
+ import * as MyConstants from './MyConstants'
2
+
3
+ export {
4
+ MyConstants
5
+ }
package/src/env.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ /// <reference types="vite/client" />
2
+
3
+ declare module '*.vue' {
4
+ import { DefineComponent } from 'vue'
5
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
6
+ const component: DefineComponent<{}, {}, any>
7
+ export default component
8
+ }
package/src/index.ts ADDED
@@ -0,0 +1,29 @@
1
+ import * as components from "./components";
2
+
3
+ function install(app: any) {
4
+ for (const key in components) {
5
+ // @ts-expect-error
6
+ app.component(key, components[key]);
7
+ }
8
+ }
9
+
10
+ import "./assets/main.css";
11
+ import "./styles/tailwind.css";
12
+
13
+ import "./themes/theme-vuetiful.css";
14
+ // import "./themes/theme-modern.css";
15
+ // import "./themes/theme-rocket.css";
16
+ // import "./themes/theme-sahara.css";
17
+ // import "./themes/theme-seafoam.css";
18
+ // import "./themes/theme-seasonal.css";
19
+ // import "./themes/theme-test.css";
20
+ // import "./themes/theme-vintage.css";
21
+
22
+ export default { install };
23
+
24
+ export * from "./components";
25
+ export * from "./constants";
26
+ export * from "./utils";
27
+
28
+ // This type alias is to identify CSS classes within component props, which enables Tailwind IntelliSense
29
+ export type CssClasses = string;
@@ -0,0 +1,21 @@
1
+ /* Stylesheet: all.css */
2
+ /* Import AFTER your theme, but BEFORE your global stylesheet. */
3
+ /* NOTE: The order shown below is required */
4
+
5
+ /* Tailwind Directives */
6
+ @import 'tailwind.css';
7
+
8
+ /* Global Styles */
9
+ @import 'core.css';
10
+
11
+ /* Typographical Settings */
12
+ @import 'typography.css';
13
+
14
+ /* Imports all Tailwind Elements */
15
+ @import 'elements.css';
16
+
17
+ /* Imports all Variant Styles */
18
+ @import 'variants.css';
19
+
20
+ /* Imports all Component Styles */
21
+ @import '../../dist/style.css'
@@ -0,0 +1,65 @@
1
+ /* Stylesheet: core.css */
2
+
3
+ @layer base {
4
+ /* === Body Styles === */
5
+
6
+ body {
7
+ @apply bg-surface-50-900-token;
8
+ }
9
+
10
+ /* === Selection === */
11
+
12
+ ::selection {
13
+ @apply bg-primary-500/30;
14
+ }
15
+
16
+ /* === Focus === */
17
+
18
+ /* Outline (do not change) */
19
+ /* http://www.outlinenone.com/ */
20
+
21
+ /* Mobile tap highlight */
22
+ /* https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-tap-highlight-color */
23
+ html {
24
+ -webkit-tap-highlight-color: rgba(128, 128, 128, 0.5);
25
+ }
26
+
27
+ /* === Scrollbars === */
28
+
29
+ ::-webkit-scrollbar {
30
+ @apply w-2;
31
+ }
32
+ ::-webkit-scrollbar-track {
33
+ @apply !bg-surface-50-900-token px-[1px];
34
+ }
35
+ ::-webkit-scrollbar-thumb {
36
+ @apply rounded-token bg-surface-400-500-token;
37
+ }
38
+
39
+ /* Firefox */
40
+ /* https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color#browser_compatibility */
41
+ html {
42
+ scrollbar-color: rgba(0, 0, 0, 0.2) rgba(255, 255, 255, 0.05);
43
+ }
44
+ html.dark {
45
+ scrollbar-color: rgba(255, 255, 255, 0.1) rgba(0, 0, 0, 0.05);
46
+ }
47
+
48
+ /* Hide Scrollbars */
49
+ .hide-scrollbar::-webkit-scrollbar {
50
+ display: none;
51
+ }
52
+ .hide-scrollbar {
53
+ -ms-overflow-style: none; /* IE/Edge */
54
+ scrollbar-width: none; /* Firefox */
55
+ }
56
+
57
+ /* === Horizontal Rules === */
58
+
59
+ hr:not(.divider) {
60
+ @apply block border-t border-solid border-surface-300-600-token;
61
+ }
62
+ .divider-vertical {
63
+ @apply inline-block border-l border-solid border-surface-300-600-token min-h-[10px] mx-auto;
64
+ }
65
+ }
@@ -0,0 +1,17 @@
1
+ /* Tailwind Elements: alerts.css */
2
+
3
+ @layer components {
4
+ .alert {
5
+ @apply flex flex-col items-start lg:items-center lg:flex-row p-4 space-y-4 lg:space-y-0 lg:space-x-4;
6
+ /* Text */
7
+ @apply text-surface-900-50-token;
8
+ /* Rounded */
9
+ @apply rounded-container-token;
10
+ }
11
+ .alert-message {
12
+ @apply flex-auto space-y-2;
13
+ }
14
+ .alert-actions {
15
+ @apply flex items-center space-x-2;
16
+ }
17
+ }
@@ -0,0 +1,31 @@
1
+ /* Tailwind Elements: badges.css */
2
+
3
+ @layer components {
4
+ .badge {
5
+ /* Core */
6
+ @apply inline-flex justify-center items-center space-x-2 whitespace-nowrap;
7
+ /* Text */
8
+ @apply font-semibold text-xs;
9
+ /* Padding */
10
+ @apply px-2 py-1;
11
+ /* Theme: Rounded */
12
+ @apply rounded-token;
13
+ }
14
+
15
+ .badge-icon {
16
+ /* Core */
17
+ @apply w-5 h-5 flex justify-center items-center rounded-full;
18
+ /* Text */
19
+ @apply font-semibold text-xs;
20
+ /* Shadow */
21
+ @apply shadow;
22
+ }
23
+
24
+ /* === Variants === */
25
+
26
+ /* Glass */
27
+ .badge-glass {
28
+ @apply bg-surface-500/20 dark:bg-surface-500/20 backdrop-blur-lg;
29
+ @apply ring-[1px] ring-neutral-900/5 dark:ring-neutral-50/5 ring-inset;
30
+ }
31
+ }
@@ -0,0 +1,26 @@
1
+ /* Tailwind Elements: breadcrumbs.css */
2
+
3
+ @layer components {
4
+ .breadcrumb,
5
+ .breadcrumb-nonresponsive {
6
+ @apply flex items-center space-x-4 w-full hide-scrollbar overflow-x-auto;
7
+ }
8
+
9
+ .crumb {
10
+ @apply flex justify-center items-center space-x-2;
11
+ }
12
+ .crumb-separator {
13
+ @apply flex text-surface-700-200-token opacity-50;
14
+ }
15
+
16
+ /* === Auto-Responsive === */
17
+
18
+ .breadcrumb li {
19
+ @apply hidden md:block;
20
+ }
21
+ .breadcrumb li:nth-last-child(3),
22
+ .breadcrumb li:nth-last-child(2),
23
+ .breadcrumb li:nth-last-child(1) {
24
+ @apply block;
25
+ }
26
+ }
@@ -0,0 +1,103 @@
1
+ /* Tailwind Elements: button.css */
2
+
3
+ @layer components {
4
+ /* === States === */
5
+
6
+ button:disabled {
7
+ @apply !opacity-50 !cursor-not-allowed active:scale-100 hover:brightness-100;
8
+ }
9
+
10
+ .button-base-styles {
11
+ /* Size (match base) */
12
+ @apply text-base px-5 py-[9px];
13
+ /* Core */
14
+ @apply text-center whitespace-nowrap;
15
+ /* Flex Columns */
16
+ @apply inline-flex justify-center items-center space-x-2;
17
+ /* States */
18
+ @apply hover:brightness-[1.15];
19
+ /* Transitions */
20
+ @apply transition-all;
21
+ }
22
+
23
+ /* === Button === */
24
+ /* Standard button/anchor tag elements. */
25
+
26
+ .btn {
27
+ @apply button-base-styles rounded-token active:scale-[95%] active:brightness-90;
28
+ }
29
+
30
+ /* Button: Sizes */
31
+ /* Note: Default values are built into `.btn` */
32
+ .btn-sm {
33
+ @apply text-sm px-3 py-1.5;
34
+ }
35
+ .btn-lg {
36
+ @apply text-lg px-7 py-3;
37
+ }
38
+ .btn-xl {
39
+ @apply text-xl px-9 py-4;
40
+ }
41
+
42
+ /* === Icon Button === */
43
+ /* A circular button meant for housing icons. */
44
+
45
+ .btn-icon {
46
+ /* Extend Base Button Clases */
47
+ @apply btn;
48
+ /* Size (match base) */
49
+ @apply text-base aspect-square w-[43px];
50
+ /* Rounded */
51
+ @apply rounded-full;
52
+ }
53
+
54
+ /* Icon Button: Size */
55
+ .btn-icon-sm {
56
+ @apply text-sm aspect-square w-[33px];
57
+ }
58
+ .btn-icon-base {
59
+ @apply text-base aspect-square w-[43px];
60
+ }
61
+ .btn-icon-lg {
62
+ @apply text-lg aspect-square w-[53px];
63
+ }
64
+ .btn-icon-xl {
65
+ @apply text-xl aspect-square w-[63px];
66
+ }
67
+
68
+ /* File Input Button */
69
+ input[type='file']:not(.file-dropzone-input)::file-selector-button {
70
+ @apply border-0 btn variant-filled btn-sm mr-2;
71
+ }
72
+
73
+ /* === Button Groups === */
74
+
75
+ .btn-group {
76
+ @apply inline-flex flex-row space-x-0 overflow-hidden rounded-token;
77
+ /* Safari: hover overflow fix for border radius */
78
+ isolation: isolate;
79
+ }
80
+ .btn-group-vertical {
81
+ @apply btn-group flex-col space-y-0 rounded-container-token;
82
+ /* Safari: hover overflow fix for border radius */
83
+ isolation: isolate;
84
+ }
85
+
86
+ /* Button / Anchors */
87
+ .btn-group button,
88
+ .btn-group a,
89
+ .btn-group-vertical button,
90
+ .btn-group-vertical a {
91
+ @apply button-base-styles hover:bg-surface-50/[3%] active:bg-surface-900/[3%];
92
+ /* Reset Anchor Styles */
93
+ @apply !no-underline !text-inherit;
94
+ }
95
+
96
+ /* Set Neutral Divider */
97
+ .btn-group * + * {
98
+ @apply border-t-0 border-l border-surface-500/20;
99
+ }
100
+ .btn-group-vertical * + * {
101
+ @apply border-t border-l-0 border-surface-500/20;
102
+ }
103
+ }
@@ -0,0 +1,32 @@
1
+ /* Tailwind Elements: cards.css */
2
+
3
+ @layer components {
4
+ .card {
5
+ /* background */
6
+ @apply bg-surface-100-800-token;
7
+ /* Ring */
8
+ @apply ring-outline-token;
9
+ /* Theme: Rounded */
10
+ @apply rounded-container-token;
11
+ }
12
+
13
+ /* === Regions === */
14
+
15
+ .card-header {
16
+ @apply p-4 pb-0;
17
+ }
18
+
19
+ .card-footer {
20
+ @apply p-4 pt-0;
21
+ }
22
+
23
+ /* === States === */
24
+
25
+ a.card {
26
+ @apply transition-all hover:brightness-105;
27
+ }
28
+
29
+ .card-hover {
30
+ @apply transition-all hover:scale-[101%] hover:shadow-xl;
31
+ }
32
+ }
@@ -0,0 +1,22 @@
1
+ /* Tailwind Elements: chips.css */
2
+
3
+ @layer components {
4
+ .chip {
5
+ @apply px-3 py-1.5 whitespace-nowrap cursor-pointer;
6
+ /* Text */
7
+ @apply text-xs text-center;
8
+ /* Rounded */
9
+ @apply rounded;
10
+ /* Flex Columns */
11
+ @apply inline-flex justify-center items-center space-x-2;
12
+ /* States */
13
+ @apply hover:brightness-[1.15];
14
+ /* Transitions */
15
+ @apply transition-all;
16
+ }
17
+
18
+ .chip-disabled,
19
+ .chip:disabled {
20
+ @apply !opacity-50 !cursor-not-allowed active:scale-100;
21
+ }
22
+ }
@@ -0,0 +1,268 @@
1
+ /* Stylesheet: forms.css */
2
+
3
+ @layer base {
4
+ /* === Resets === */
5
+
6
+ fieldset,
7
+ legend,
8
+ label {
9
+ @apply block;
10
+ }
11
+
12
+ /* Placeholders */
13
+ ::-moz-placeholder {
14
+ @apply text-surface-500-400-token;
15
+ }
16
+ :-ms-input-placeholder {
17
+ @apply text-surface-500-400-token;
18
+ }
19
+ ::placeholder {
20
+ @apply text-surface-500-400-token;
21
+ }
22
+
23
+ /* Date Calendar Picker (Webkit) */
24
+ ::-webkit-calendar-picker-indicator {
25
+ @apply dark:invert;
26
+ }
27
+
28
+ /* Progress Bar */
29
+ progress {
30
+ webkit-appearance: none;
31
+ -moz-appearance: none;
32
+ appearance: none;
33
+ @apply w-full h-2 overflow-hidden rounded-token;
34
+ @apply bg-surface-400-500-token;
35
+ }
36
+ progress::-webkit-progress-bar {
37
+ @apply bg-surface-400-500-token;
38
+ }
39
+ progress::-webkit-progress-value {
40
+ @apply bg-surface-900-50-token;
41
+ }
42
+ ::-moz-progress-bar {
43
+ @apply bg-surface-900-50-token;
44
+ }
45
+ :indeterminate::-moz-progress-bar {
46
+ width: 0;
47
+ }
48
+
49
+ /* Range Input */
50
+ /* https://developer.mozilla.org/en-US/docs/Web/CSS/accent-color */
51
+ [type='range'] {
52
+ @apply w-full accent-surface-900 dark:accent-surface-50;
53
+ }
54
+
55
+ /* === Text Labeling === */
56
+
57
+ .legend {
58
+ @apply font-heading-token text-xl md:text-2xl;
59
+ }
60
+
61
+ .label {
62
+ @apply space-y-1;
63
+ }
64
+
65
+ /* === Core Styles === */
66
+
67
+ .input,
68
+ .textarea,
69
+ .select,
70
+ .input-group {
71
+ @apply w-full transition duration-200;
72
+ /* Background */
73
+ @apply bg-surface-200-700-token focus:brightness-105 hover:brightness-105;
74
+ /* Ring */
75
+ @apply !ring-0;
76
+ /* Border */
77
+ @apply border-token border-surface-400-500-token focus-within:border-primary-500;
78
+ }
79
+
80
+ /* Base Inputs */
81
+ .input,
82
+ .input-group {
83
+ @apply rounded-token;
84
+ }
85
+
86
+ /* Container Inputs */
87
+ .textarea,
88
+ .select {
89
+ @apply rounded-container-token;
90
+ }
91
+
92
+ /* Select (size/multiple) */
93
+ .select {
94
+ @apply p-2 pr-8 space-y-1;
95
+ }
96
+ .select[size] {
97
+ @apply bg-none;
98
+ }
99
+ .select optgroup {
100
+ @apply space-y-1 font-bold;
101
+ }
102
+ .select optgroup option {
103
+ @apply ml-0 pl-0;
104
+ }
105
+ .select optgroup option:first-of-type {
106
+ @apply mt-3;
107
+ }
108
+ .select optgroup option:last-child {
109
+ @apply !mb-3;
110
+ }
111
+ .select option {
112
+ @apply bg-surface-200-700-token px-4 py-2 rounded-token cursor-pointer;
113
+ }
114
+ .select option:checked {
115
+ /* https://stackoverflow.com/questions/50618602/change-color-of-selected-option-in-select-multiple */
116
+ background: rgb(var(--color-primary-500)) linear-gradient(0deg, rgb(var(--color-primary-500)) 0%, rgb(var(--color-primary-500)) 100%);
117
+ @apply text-on-primary-token;
118
+ }
119
+
120
+ /* Checkbox & Radio */
121
+ .checkbox,
122
+ .radio {
123
+ @apply w-5 h-5 !ring-0 rounded cursor-pointer;
124
+ /* Background */
125
+ @apply bg-surface-200-700-token focus:brightness-105 hover:brightness-105;
126
+ /* Border */
127
+ @apply border-token border-surface-400-500-token focus:border-primary-500;
128
+ }
129
+ .checkbox:checked,
130
+ .radio:checked {
131
+ @apply bg-primary-500 hover:bg-primary-500 focus:bg-primary-500 focus:ring-0;
132
+ }
133
+ .radio {
134
+ @apply rounded-token;
135
+ }
136
+
137
+ /* === Specialized === */
138
+
139
+ /* File Inputs */
140
+ .input[type='file'] {
141
+ @apply p-1;
142
+ }
143
+
144
+ /* Color Picker */
145
+ /* https://stackoverflow.com/questions/11167281/webkit-css-to-control-the-box-around-the-color-in-an-inputtype-color */
146
+ .input[type='color'] {
147
+ @apply border-none w-10 h-10 overflow-hidden rounded-token cursor-pointer;
148
+ -webkit-appearance: none; /* WebKit Only */
149
+ }
150
+ .input[type='color']::-webkit-color-swatch-wrapper {
151
+ @apply p-0;
152
+ }
153
+ .input[type='color']::-webkit-color-swatch {
154
+ @apply border-none hover:brightness-110;
155
+ }
156
+ .input[type='color']::-moz-color-swatch {
157
+ @apply border-none;
158
+ }
159
+
160
+ /* === States === */
161
+
162
+ .input:disabled,
163
+ .textarea:disabled,
164
+ .select:disabled {
165
+ @apply !opacity-50 !cursor-not-allowed hover:!brightness-100;
166
+ }
167
+
168
+ .input[readonly],
169
+ .textarea[readonly],
170
+ .select[readonly] {
171
+ @apply !border-0 !cursor-not-allowed hover:!brightness-100;
172
+ }
173
+
174
+ /* === Input Groups === */
175
+
176
+ .input-group {
177
+ @apply grid overflow-hidden;
178
+ }
179
+ .input-group input,
180
+ .input-group select {
181
+ @apply border-0 ring-0 bg-transparent;
182
+ }
183
+ .input-group select option {
184
+ @apply bg-surface-200-700-token;
185
+ }
186
+ .input-group div,
187
+ .input-group a,
188
+ .input-group button {
189
+ @apply px-4 flex justify-between items-center;
190
+ }
191
+ .input-group-divider input,
192
+ .input-group-divider select,
193
+ .input-group-divider div,
194
+ .input-group-divider a {
195
+ @apply border-l border-surface-400-500-token focus:border-surface-400-500-token;
196
+ /* Disable Ring */
197
+ @apply !ring-0;
198
+ /* Prevent buttons from being squished */
199
+ @apply !min-w-fit;
200
+ }
201
+ .input-group-divider *:first-child {
202
+ @apply !border-l-0;
203
+ }
204
+ .input-group-shim {
205
+ @apply bg-surface-400/10 text-surface-600-300-token;
206
+ }
207
+
208
+ /* === Variants === */
209
+
210
+ /* success */
211
+ .input-success {
212
+ @apply !bg-success-200 !border-success-500 !text-success-700;
213
+ }
214
+ .input-success::-moz-placeholder {
215
+ @apply text-success-700;
216
+ }
217
+ .input-success:-ms-input-placeholder {
218
+ @apply text-success-700;
219
+ }
220
+ .input-success::placeholder {
221
+ @apply text-success-700;
222
+ }
223
+
224
+ /* warning */
225
+ .input-warning {
226
+ @apply !bg-warning-200 !border-warning-500 !text-warning-700;
227
+ }
228
+ .input-warning::-moz-placeholder {
229
+ @apply text-warning-700;
230
+ }
231
+ .input-warning:-ms-input-placeholder {
232
+ @apply text-warning-700;
233
+ }
234
+ .input-warning::placeholder {
235
+ @apply text-warning-700;
236
+ }
237
+
238
+ /* error */
239
+ .input-error {
240
+ @apply !bg-error-200 !border-error-500 !text-error-500;
241
+ }
242
+ .input-error::-moz-placeholder {
243
+ @apply text-error-500;
244
+ }
245
+ .input-error:-ms-input-placeholder {
246
+ @apply text-error-500;
247
+ }
248
+ .input-error::placeholder {
249
+ @apply text-error-500;
250
+ }
251
+
252
+ /* === Variants === */
253
+
254
+ /* Material */
255
+ .variant-form-material {
256
+ /* Border Radius */
257
+ @apply !rounded-tl !rounded-tr !rounded-bl-none !rounded-br-none;
258
+ /* Background */
259
+ @apply bg-surface-500/10 dark:bg-surface-500/20;
260
+ /* Border */
261
+ @apply border-0 border-b-2;
262
+ /* Blur */
263
+ @apply backdrop-blur;
264
+ }
265
+ .variant-form-material[type='file'] {
266
+ @apply !py-1.5;
267
+ }
268
+ }
@@ -0,0 +1,48 @@
1
+ /* Tailwind Elements: button.css */
2
+
3
+ @layer components {
4
+ /* === Lists (Parents) === */
5
+
6
+ .list,
7
+ .list-dl,
8
+ .list-nav ul {
9
+ /* List Style */
10
+ @apply list-none;
11
+ /* Spacing */
12
+ @apply space-y-1;
13
+ }
14
+
15
+ /* === List Items (Children) === */
16
+
17
+ .list li {
18
+ /* @apply bg-red-500; */
19
+ @apply flex items-center space-x-4 whitespace-nowrap;
20
+ /* Padding */
21
+ @apply p-2;
22
+ /* Theme: Rounded */
23
+ @apply rounded-token;
24
+ }
25
+
26
+ .list-dl div {
27
+ /* @apply bg-blue-500; */
28
+ @apply flex items-center space-x-4 whitespace-nowrap;
29
+ /* Padding */
30
+ @apply p-2;
31
+ /* Theme: Rounded */
32
+ @apply rounded-token;
33
+ }
34
+
35
+ .list-nav a,
36
+ .list-nav button,
37
+ .list-option {
38
+ @apply flex items-center space-x-4 whitespace-nowrap;
39
+ /* Padding */
40
+ @apply px-4 py-2;
41
+ /* Hover */
42
+ @apply bg-primary-hover-token;
43
+ /* Cursor */
44
+ @apply cursor-pointer;
45
+ /* Theme: Rounded */
46
+ @apply rounded-token;
47
+ }
48
+ }