@skeletonlabs/skeleton 4.7.1 → 4.7.3

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 (47) hide show
  1. package/package.json +6 -6
  2. package/src/base/globals.css +96 -0
  3. package/src/base/theme.css +417 -0
  4. package/src/index.css +27 -0
  5. package/src/keyframes/progress-circular.css +17 -0
  6. package/src/keyframes/progress-linear.css +26 -0
  7. package/src/utilities/badges.css +42 -0
  8. package/src/utilities/buttons.css +141 -0
  9. package/src/utilities/cards.css +33 -0
  10. package/src/utilities/chips.css +61 -0
  11. package/src/utilities/core.css +119 -0
  12. package/src/utilities/dividers.css +17 -0
  13. package/src/utilities/form-core.css +27 -0
  14. package/src/utilities/form-groups.css +137 -0
  15. package/src/utilities/form-inputs.css +106 -0
  16. package/src/utilities/form-progress.css +31 -0
  17. package/src/utilities/form-radios-checks.css +100 -0
  18. package/src/utilities/form-selects.css +95 -0
  19. package/src/utilities/form-textareas.css +32 -0
  20. package/src/utilities/placeholders.css +14 -0
  21. package/src/utilities/presets.css +689 -0
  22. package/src/utilities/tables.css +65 -0
  23. package/src/utilities/typography.css +237 -0
  24. package/src/variants/themes.css +22 -0
  25. package/dist/index.css +0 -2641
  26. /package/{dist → src/themes}/catppuccin.css +0 -0
  27. /package/{dist → src/themes}/cerberus.css +0 -0
  28. /package/{dist → src/themes}/concord.css +0 -0
  29. /package/{dist → src/themes}/crimson.css +0 -0
  30. /package/{dist → src/themes}/fennec.css +0 -0
  31. /package/{dist → src/themes}/hamlindigo.css +0 -0
  32. /package/{dist → src/themes}/legacy.css +0 -0
  33. /package/{dist → src/themes}/mint.css +0 -0
  34. /package/{dist → src/themes}/modern.css +0 -0
  35. /package/{dist → src/themes}/mona.css +0 -0
  36. /package/{dist → src/themes}/nosh.css +0 -0
  37. /package/{dist → src/themes}/nouveau.css +0 -0
  38. /package/{dist → src/themes}/pine.css +0 -0
  39. /package/{dist → src/themes}/reign.css +0 -0
  40. /package/{dist → src/themes}/rocket.css +0 -0
  41. /package/{dist → src/themes}/rose.css +0 -0
  42. /package/{dist → src/themes}/sahara.css +0 -0
  43. /package/{dist → src/themes}/seafoam.css +0 -0
  44. /package/{dist → src/themes}/terminus.css +0 -0
  45. /package/{dist → src/themes}/vintage.css +0 -0
  46. /package/{dist → src/themes}/vox.css +0 -0
  47. /package/{dist → src/themes}/wintry.css +0 -0
@@ -0,0 +1,141 @@
1
+ /* Components: Buttons */
2
+
3
+ @utility btn {
4
+ border-radius: var(--radius-base);
5
+
6
+ /* Icon Spacing */
7
+ display: inline-flex;
8
+ flex-direction: row;
9
+ align-items: center;
10
+ justify-content: center;
11
+ gap: --spacing(2);
12
+
13
+ /* Typography */
14
+ text-decoration-line: none;
15
+ white-space: nowrap;
16
+
17
+ /* Size */
18
+ font-size: var(--text-base);
19
+ line-height: var(--text-base--line-height);
20
+ padding-block: --spacing(1);
21
+ padding-inline: --spacing(4);
22
+
23
+ /* Transitions */
24
+ transition-property:
25
+ color,
26
+ background-color,
27
+ border-color,
28
+ outline-color,
29
+ text-decoration-color,
30
+ fill,
31
+ stroke,
32
+ --tw-gradient-from,
33
+ --tw-gradient-via,
34
+ --tw-gradient-to,
35
+ opacity,
36
+ box-shadow,
37
+ transform,
38
+ translate,
39
+ scale,
40
+ rotate,
41
+ filter,
42
+ -webkit-backdrop-filter,
43
+ backdrop-filter,
44
+ display,
45
+ content-visibility,
46
+ overlay,
47
+ pointer-events;
48
+ transition-timing-function: var(--default-transition-timing-function);
49
+ transition-duration: var(--default-transition-duration);
50
+
51
+ &:not(:disabled) {
52
+ &:hover {
53
+ filter: brightness(125%);
54
+ @variant dark {
55
+ filter: brightness(75%);
56
+ }
57
+ }
58
+ }
59
+ }
60
+
61
+ @utility btn-icon {
62
+ box-sizing: content-box;
63
+ border-radius: var(--radius-base);
64
+
65
+ /* Center Icons */
66
+ display: inline-flex;
67
+ justify-content: center;
68
+ align-items: center;
69
+
70
+ /* Typography */
71
+ text-decoration-line: none;
72
+ white-space: nowrap;
73
+
74
+ /* Size */
75
+ font-size: var(--text-base);
76
+ width: var(--text-base);
77
+ height: var(--text-base);
78
+ padding: --spacing(2);
79
+
80
+ &:not(:disabled) {
81
+ &:hover {
82
+ filter: brightness(125%);
83
+ @variant dark {
84
+ filter: brightness(75%);
85
+ }
86
+ }
87
+ }
88
+ }
89
+
90
+ /* Sizes --- */
91
+
92
+ /* Button */
93
+ @utility btn-sm {
94
+ font-size: var(--text-xs);
95
+ line-height: var(--text-xs--line-height);
96
+ padding-block: --spacing(1);
97
+ padding-inline: --spacing(3);
98
+ }
99
+ @utility btn-base {
100
+ font-size: var(--text-base);
101
+ line-height: var(--text-base--line-height);
102
+ padding-block: --spacing(1);
103
+ padding-inline: --spacing(4);
104
+ }
105
+ @utility btn-lg {
106
+ font-size: var(--text-xl);
107
+ line-height: var(--text-xl--line-height);
108
+ padding-block: --spacing(2);
109
+ padding-inline: --spacing(5);
110
+ }
111
+
112
+ /* Button Icon */
113
+ @utility btn-icon-sm {
114
+ font-size: var(--text-xs);
115
+ width: var(--text-xs);
116
+ height: var(--text-xs);
117
+ padding: --spacing(1.5);
118
+ }
119
+ @utility btn-icon-base {
120
+ font-size: var(--text-base);
121
+ width: var(--text-base);
122
+ height: var(--text-base);
123
+ padding: --spacing(2);
124
+ }
125
+ @utility btn-icon-lg {
126
+ font-size: var(--text-xl);
127
+ width: var(--text-xl);
128
+ height: var(--text-xl);
129
+ padding: --spacing(3);
130
+ }
131
+
132
+ /* Group --- */
133
+
134
+ @utility btn-group {
135
+ border-radius: var(--radius-container);
136
+ display: inline-flex;
137
+ align-items: center;
138
+ gap: --spacing(2);
139
+ padding: --spacing(2);
140
+ overflow: hidden;
141
+ }
@@ -0,0 +1,33 @@
1
+ /* Components: Cards */
2
+
3
+ @utility card {
4
+ border-radius: var(--radius-container);
5
+
6
+ &a {
7
+ /* Transitions (all) */
8
+ transition-property: all;
9
+ transition-timing-function: var(--default-transition-timing-function);
10
+ transition-duration: var(--default-transition-duration);
11
+
12
+ @variant hover {
13
+ filter: brightness(95%);
14
+ @variant dark {
15
+ filter: brightness(110%);
16
+ }
17
+ }
18
+ }
19
+ }
20
+
21
+ @utility card-hover {
22
+ /* Transitions (all) */
23
+ transition-property: all;
24
+ transition-timing-function: var(--default-transition-timing-function);
25
+ transition-duration: var(--default-transition-duration);
26
+
27
+ @variant hover {
28
+ filter: brightness(95%);
29
+ @variant dark {
30
+ filter: brightness(110%);
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,61 @@
1
+ /* Components: Chips */
2
+
3
+ @utility chip {
4
+ border-radius: var(--radius-base);
5
+
6
+ /* Icon Spacing */
7
+ display: inline-flex;
8
+ flex-direction: row;
9
+ align-items: center;
10
+ justify-content: center;
11
+ gap: --spacing(2);
12
+
13
+ /* Typography */
14
+ text-decoration-line: none;
15
+ white-space: nowrap;
16
+
17
+ /* Size */
18
+ font-size: var(--text-xs);
19
+ line-height: var(--text-xs--line-height);
20
+ padding-block: --spacing(1);
21
+ padding-inline: --spacing(3);
22
+
23
+ /* Transitions */
24
+ transition-property: all;
25
+ transition-timing-function: var(--default-transition-timing-function);
26
+ transition-duration: var(--default-transition-duration);
27
+
28
+ @variant hover {
29
+ filter: brightness(125%);
30
+ @variant dark {
31
+ filter: brightness(75%);
32
+ }
33
+ }
34
+ }
35
+
36
+ @utility chip-icon {
37
+ box-sizing: content-box;
38
+ border-radius: var(--radius-base);
39
+
40
+ /* Center Icons */
41
+ display: inline-flex;
42
+ justify-content: center;
43
+ align-items: center;
44
+
45
+ /* Typography */
46
+ text-decoration-line: none;
47
+ white-space: nowrap;
48
+
49
+ /* Size */
50
+ font-size: var(--text-xs);
51
+ width: var(--text-xs);
52
+ height: var(--text-xs);
53
+ padding: --spacing(1.5);
54
+
55
+ @variant hover {
56
+ filter: brightness(125%);
57
+ @variant dark {
58
+ filter: brightness(75%);
59
+ }
60
+ }
61
+ }
@@ -0,0 +1,119 @@
1
+ @utility body-background-color {
2
+ background-color: var(--body-background-color);
3
+ }
4
+
5
+ @utility body-background-color-dark {
6
+ background-color: var(--body-background-color-dark);
7
+ }
8
+
9
+ @utility base-font-color {
10
+ color: var(--base-font-color);
11
+ }
12
+
13
+ @utility base-font-color-dark {
14
+ color: var(--base-font-color-dark);
15
+ }
16
+
17
+ @utility base-font-family {
18
+ font-family: var(--base-font-family);
19
+ }
20
+
21
+ @utility base-font-size {
22
+ font-size: var(--base-font-size);
23
+ }
24
+
25
+ @utility base-line-height {
26
+ line-height: var(--base-line-height);
27
+ }
28
+
29
+ @utility base-font-weight {
30
+ font-weight: var(--base-font-weight);
31
+ }
32
+
33
+ @utility base-font-style {
34
+ font-style: var(--base-font-style);
35
+ }
36
+
37
+ @utility base-letter-spacing {
38
+ letter-spacing: var(--base-letter-spacing);
39
+ }
40
+
41
+ @utility heading-font-color {
42
+ color: var(--heading-font-color);
43
+ }
44
+
45
+ @utility heading-font-color-dark {
46
+ color: var(--heading-font-color-dark);
47
+ }
48
+
49
+ @utility heading-font-family {
50
+ font-family: var(--heading-font-family);
51
+ }
52
+
53
+ @utility heading-font-size {
54
+ font-size: var(--heading-font-size);
55
+ }
56
+
57
+ @utility heading-line-height {
58
+ line-height: var(--heading-line-height);
59
+ }
60
+
61
+ @utility heading-font-weight {
62
+ font-weight: var(--heading-font-weight);
63
+ }
64
+
65
+ @utility heading-font-style {
66
+ font-style: var(--heading-font-style);
67
+ }
68
+
69
+ @utility heading-letter-spacing {
70
+ letter-spacing: var(--heading-letter-spacing);
71
+ }
72
+
73
+ @utility anchor-font-color {
74
+ color: var(--anchor-font-color);
75
+ }
76
+
77
+ @utility anchor-font-color-dark {
78
+ color: var(--anchor-font-color-dark);
79
+ }
80
+
81
+ @utility anchor-font-family {
82
+ font-family: var(--anchor-font-family);
83
+ }
84
+
85
+ @utility anchor-font-size {
86
+ font-size: var(--anchor-font-size);
87
+ }
88
+
89
+ @utility anchor-line-height {
90
+ line-height: var(--anchor-line-height);
91
+ }
92
+
93
+ @utility anchor-font-weight {
94
+ font-weight: var(--anchor-font-weight);
95
+ }
96
+
97
+ @utility anchor-font-style {
98
+ font-style: var(--anchor-font-style);
99
+ }
100
+
101
+ @utility anchor-letter-spacing {
102
+ letter-spacing: var(--anchor-letter-spacing);
103
+ }
104
+
105
+ @utility anchor-text-decoration {
106
+ text-decoration: var(--anchor-text-decoration);
107
+ }
108
+
109
+ @utility anchor-text-decoration-active {
110
+ text-decoration: var(--anchor-text-decoration-active);
111
+ }
112
+
113
+ @utility anchor-text-decoration-focus {
114
+ text-decoration: var(--anchor-text-decoration-focus);
115
+ }
116
+
117
+ @utility anchor-text-decoration-hover {
118
+ text-decoration: var(--anchor-text-decoration-hover);
119
+ }
@@ -0,0 +1,17 @@
1
+ /* Components: Dividers */
2
+
3
+ /* Horizontal Rule */
4
+ @utility hr {
5
+ border-color: var(--color-surface-200-800);
6
+ border-top-width: 1px;
7
+ display: block;
8
+ width: 100%;
9
+ }
10
+
11
+ /* Vertical Rule */
12
+ @utility vr {
13
+ border-color: var(--color-surface-200-800);
14
+ border-left-width: 1px;
15
+ display: inline-block;
16
+ height: 100%;
17
+ }
@@ -0,0 +1,27 @@
1
+ /* Components: Forms (Core) */
2
+
3
+ @utility fieldset {
4
+ display: block;
5
+ width: 100%;
6
+ }
7
+
8
+ @utility legend {
9
+ display: block;
10
+ width: 100%;
11
+ }
12
+
13
+ @utility label {
14
+ display: block;
15
+ width: 100%;
16
+ & > * + * {
17
+ margin-top: --spacing(1);
18
+ }
19
+ }
20
+
21
+ @utility label-text {
22
+ display: block;
23
+ font-size: var(--text-xs);
24
+ line-height: var(--text-xs--line-height);
25
+ font-weight: var(--font-weight-medium);
26
+ text-decoration-line: none;
27
+ }
@@ -0,0 +1,137 @@
1
+ /* Components: Forms > Input Group */
2
+
3
+ @utility input-group {
4
+ border-radius: var(--radius-base);
5
+ display: grid;
6
+ align-items: stretch;
7
+ overflow: hidden;
8
+
9
+ /* Edges */
10
+ outline-color: transparent;
11
+ border-width: 0;
12
+ --tw-ring-inset: inset;
13
+ --tw-ring-color: var(--color-surface-200-800);
14
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 var(--default-ring-width) var(--tw-ring-color, currentColor);
15
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
16
+
17
+ /* Child Edges */
18
+ & > :first-child {
19
+ border-top-left-radius: var(--radius-base);
20
+ border-bottom-left-radius: var(--radius-base);
21
+ }
22
+ & > :last-child {
23
+ border-top-right-radius: var(--radius-base);
24
+ border-bottom-right-radius: var(--radius-base);
25
+ }
26
+
27
+ /* Dividers */
28
+ & > * + * {
29
+ border-left-width: 1px !important;
30
+ border-color: var(--color-surface-200-800);
31
+ }
32
+ }
33
+
34
+ /* Children: Cell --- */
35
+
36
+ @utility ig-cell {
37
+ font-size: var(--text-sm);
38
+ display: flex;
39
+ justify-content: center;
40
+ align-items: center;
41
+ padding-inline: --spacing(4);
42
+ }
43
+
44
+ /* Children: Form Elements --- */
45
+ /* We recreate a subset of form element styles here */
46
+ /* These are purpose-built to work in the group */
47
+
48
+ @utility ig-input {
49
+ background-color: transparent;
50
+ display: block;
51
+ width: 100%;
52
+
53
+ /* Size */
54
+ font-size: var(--text-base);
55
+ line-height: var(--text-base--line-height);
56
+ padding-block: --spacing(1);
57
+ padding-inline: --spacing(3);
58
+
59
+ /* Edges */
60
+ outline-color: transparent;
61
+ border-width: 0;
62
+ --tw-ring-inset: inset;
63
+
64
+ @variant active {
65
+ --tw-ring-color: var(--color-primary-500);
66
+ }
67
+ @variant focus {
68
+ --tw-ring-color: var(--color-primary-500);
69
+ }
70
+ @variant focus-within {
71
+ --tw-ring-color: var(--color-primary-500);
72
+ }
73
+ }
74
+
75
+ @utility ig-select {
76
+ background-color: transparent;
77
+ display: block;
78
+ width: 100%;
79
+
80
+ /* Size */
81
+ font-size: var(--text-base);
82
+ line-height: var(--text-base--line-height);
83
+ padding-block: --spacing(1);
84
+
85
+ /* Edges */
86
+ outline-color: transparent;
87
+ border-width: 0;
88
+ --tw-ring-inset: inset;
89
+
90
+ @variant active {
91
+ --tw-ring-color: var(--color-primary-500);
92
+ }
93
+ @variant focus {
94
+ --tw-ring-color: var(--color-primary-500);
95
+ }
96
+ @variant focus-within {
97
+ --tw-ring-color: var(--color-primary-500);
98
+ }
99
+
100
+ /* Option --- */
101
+
102
+ & option {
103
+ background-color: var(--color-surface-50-950);
104
+ color: var(--color-surface-950-50);
105
+ }
106
+ }
107
+
108
+ @utility ig-btn {
109
+ /* Icon Spacing */
110
+ display: inline-flex;
111
+ flex-direction: row;
112
+ align-items: center;
113
+ justify-content: center;
114
+ gap: --spacing(2);
115
+
116
+ /* Typography */
117
+ text-decoration-line: none;
118
+ white-space: nowrap;
119
+
120
+ /* Size */
121
+ font-size: var(--text-base);
122
+ line-height: var(--text-base--line-height);
123
+ padding-block: --spacing(1);
124
+ padding-inline: --spacing(4);
125
+
126
+ /* Transitions */
127
+ transition-property: all;
128
+ transition-timing-function: var(--default-transition-timing-function);
129
+ transition-duration: var(--default-transition-duration);
130
+
131
+ @variant hover {
132
+ filter: brightness(125%);
133
+ @variant dark {
134
+ filter: brightness(75%);
135
+ }
136
+ }
137
+ }
@@ -0,0 +1,106 @@
1
+ /* Components: Forms > Input */
2
+
3
+ @utility input {
4
+ background-color: transparent;
5
+ border-radius: var(--radius-base);
6
+ display: block;
7
+ width: 100%;
8
+
9
+ /* Size */
10
+ font-size: var(--text-base);
11
+ line-height: var(--text-base--line-height);
12
+ padding-block: --spacing(1);
13
+ padding-inline: --spacing(3);
14
+
15
+ /* Edges */
16
+ outline-color: transparent;
17
+ border-width: 0;
18
+ --tw-ring-inset: inset;
19
+ --tw-ring-color: var(--color-surface-200-800);
20
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 var(--default-ring-width) var(--tw-ring-color, currentColor);
21
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
22
+
23
+ @variant active {
24
+ --tw-ring-color: var(--color-primary-500);
25
+ }
26
+ @variant focus {
27
+ --tw-ring-color: var(--color-primary-500);
28
+ }
29
+ @variant focus-within {
30
+ --tw-ring-color: var(--color-primary-500);
31
+ }
32
+
33
+ /* File Input --- */
34
+
35
+ &[type='file']::file-selector-button {
36
+ cursor: pointer;
37
+ border-radius: var(--radius-base);
38
+ background-color: var(--color-surface-950-50);
39
+ color: var(--color-surface-50-950);
40
+ transform: translateY(--spacing(-0.5));
41
+ margin-right: --spacing(2);
42
+ text-transform: capitalize;
43
+
44
+ /* Size */
45
+ font-size: var(--text-xs);
46
+ height: var(--text-xs--line-height);
47
+ padding-block: --spacing(0);
48
+ padding-inline: --spacing(3);
49
+ }
50
+
51
+ /* Range Input --- */
52
+ /* https://developer.mozilla.org/en-US/docs/Web/CSS/accent-color */
53
+
54
+ &[type='range'] {
55
+ accent-color: var(--color-surface-950-50);
56
+ box-shadow: none;
57
+ padding-inline: initial;
58
+ }
59
+
60
+ /* Color Picker Input --- */
61
+ /* https://stackoverflow.com/questions/11167281/webkit-css-to-control-the-box-around-the-color-in-an-inputtype-color */
62
+
63
+ &[type='color'] {
64
+ border-radius: var(--radius-base);
65
+ width: --spacing(8.5);
66
+ height: --spacing(8.5);
67
+ padding: 0;
68
+ border: none;
69
+ outline: none;
70
+ -webkit-appearance: none;
71
+ }
72
+ &[type='color']::-webkit-color-swatch-wrapper {
73
+ padding: 0;
74
+ }
75
+ &[type='color']::-webkit-color-swatch {
76
+ border: none;
77
+ border-radius: var(--radius-base);
78
+ }
79
+ &[type='color']::-moz-color-swatch {
80
+ border: none;
81
+ }
82
+ &[type='color']::-moz-color-swatch {
83
+ border: none;
84
+ }
85
+ }
86
+
87
+ /* Ghost Input*/
88
+ /* Used for the <TagsInput> component. */
89
+ @utility input-ghost {
90
+ padding: 0px;
91
+ background-color: transparent;
92
+
93
+ border-color: transparent;
94
+ outline-color: transparent;
95
+ --tw-ring-color: transparent;
96
+
97
+ @variant active {
98
+ border-color: transparent !important;
99
+ }
100
+ @variant focus {
101
+ border-color: transparent !important;
102
+ }
103
+ @variant focus-within {
104
+ border-color: transparent !important;
105
+ }
106
+ }
@@ -0,0 +1,31 @@
1
+ /* Components: Forms > Progress Bar */
2
+
3
+ /*
4
+ BROWSER CONSISTENCY WARNING:
5
+ Safari ignores most of the styles provided here.
6
+ */
7
+
8
+ @utility progress {
9
+ webkit-appearance: none;
10
+ -moz-appearance: none;
11
+ appearance: none;
12
+
13
+ border-radius: var(--radius-base);
14
+ background-color: var(--color-surface-200-800);
15
+ width: 100%;
16
+ height: --spacing(2);
17
+ overflow: hidden;
18
+
19
+ &::-webkit-progress-bar {
20
+ background-color: var(--color-surface-200-800);
21
+ }
22
+ &::-webkit-progress-value {
23
+ background-color: var(--color-surface-950-50);
24
+ }
25
+ &::-moz-progress-bar {
26
+ background-color: var(--color-surface-950-50);
27
+ }
28
+ &:indeterminate::-moz-progress-bar {
29
+ width: 0;
30
+ }
31
+ }