@skeletonlabs/skeleton 1.12.0-dev.b329241e → 2.0.0-dev.50b73f0b

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 (139) hide show
  1. package/dist/components/Accordion/Accordion.svelte +15 -3
  2. package/dist/components/Accordion/Accordion.svelte.d.ts +17 -23
  3. package/dist/components/Accordion/AccordionItem.svelte +8 -3
  4. package/dist/components/Accordion/AccordionItem.svelte.d.ts +15 -25
  5. package/dist/components/AppRail/AppRailTile.svelte +1 -1
  6. package/dist/components/AppShell/AppShell.svelte +3 -2
  7. package/dist/components/AppShell/AppShell.svelte.d.ts +2 -0
  8. package/dist/components/Autocomplete/Autocomplete.svelte +17 -7
  9. package/dist/components/Autocomplete/Autocomplete.svelte.d.ts +17 -27
  10. package/dist/components/Avatar/Avatar.svelte +1 -1
  11. package/dist/components/ConicGradient/ConicGradient.svelte +1 -1
  12. package/dist/components/FileButton/FileButton.svelte +2 -3
  13. package/dist/components/InputChip/InputChip.svelte +31 -4
  14. package/dist/components/InputChip/InputChip.svelte.d.ts +22 -27
  15. package/dist/components/Paginator/Paginator.svelte +17 -15
  16. package/dist/components/Paginator/Paginator.svelte.d.ts +2 -2
  17. package/dist/components/Paginator/types.d.ts +2 -2
  18. package/dist/components/Ratings/Ratings.svelte +1 -1
  19. package/dist/components/Stepper/Step.svelte +11 -2
  20. package/dist/components/Stepper/Step.svelte.d.ts +15 -12
  21. package/dist/components/Stepper/Stepper.svelte +21 -3
  22. package/dist/components/Stepper/Stepper.svelte.d.ts +17 -27
  23. package/dist/components/Tab/TabGroup.svelte +1 -1
  24. package/dist/components/Table/Table.svelte +1 -1
  25. package/dist/components/TreeView/TreeView.svelte +45 -2
  26. package/dist/components/TreeView/TreeView.svelte.d.ts +21 -0
  27. package/dist/components/TreeView/TreeViewDataDrivenItem.svelte +90 -0
  28. package/dist/components/TreeView/TreeViewDataDrivenItem.svelte.d.ts +27 -0
  29. package/dist/components/TreeView/TreeViewItem.svelte +220 -10
  30. package/dist/components/TreeView/TreeViewItem.svelte.d.ts +95 -2
  31. package/dist/components/TreeView/types.d.ts +18 -0
  32. package/dist/components/TreeView/types.js +1 -0
  33. package/dist/index.d.ts +15 -12
  34. package/dist/index.js +11 -12
  35. package/dist/internal/transitions.d.ts +10 -0
  36. package/dist/internal/transitions.js +11 -0
  37. package/dist/transitions/crossfade.d.ts +1 -0
  38. package/dist/transitions/crossfade.js +21 -0
  39. package/dist/types.d.ts +8 -0
  40. package/dist/types.js +1 -0
  41. package/dist/utilities/Drawer/Drawer.svelte +33 -12
  42. package/dist/utilities/Drawer/Drawer.svelte.d.ts +4 -2
  43. package/dist/utilities/Drawer/stores.d.ts +24 -1
  44. package/dist/utilities/Drawer/stores.js +31 -2
  45. package/dist/utilities/Drawer/types.d.ts +3 -0
  46. package/dist/utilities/Modal/Modal.svelte +21 -23
  47. package/dist/utilities/Modal/Modal.svelte.d.ts +17 -37
  48. package/dist/utilities/Modal/ModalTest.svelte +8 -0
  49. package/dist/utilities/Modal/ModalTest.svelte.d.ts +17 -0
  50. package/dist/utilities/Modal/stores.d.ts +24 -1
  51. package/dist/utilities/Modal/stores.js +31 -1
  52. package/dist/utilities/Modal/types.d.ts +1 -0
  53. package/dist/utilities/PrefersReducedMotion/PrefersReducedMotion.d.ts +7 -0
  54. package/dist/utilities/PrefersReducedMotion/PrefersReducedMotion.js +26 -0
  55. package/dist/utilities/TableOfContents/TableOfContents.svelte +56 -0
  56. package/dist/utilities/TableOfContents/TableOfContents.svelte.d.ts +34 -0
  57. package/dist/utilities/TableOfContents/crawler.d.ts +16 -0
  58. package/dist/utilities/TableOfContents/crawler.js +78 -0
  59. package/dist/utilities/TableOfContents/stores.d.ts +6 -0
  60. package/dist/utilities/TableOfContents/stores.js +5 -0
  61. package/dist/utilities/TableOfContents/types.d.ts +5 -0
  62. package/dist/utilities/TableOfContents/types.js +2 -0
  63. package/dist/utilities/Toast/Toast.svelte +24 -23
  64. package/dist/utilities/Toast/Toast.svelte.d.ts +17 -24
  65. package/dist/utilities/Toast/ToastTest.svelte +12 -0
  66. package/dist/utilities/Toast/ToastTest.svelte.d.ts +18 -0
  67. package/dist/utilities/Toast/stores.d.ts +27 -5
  68. package/dist/utilities/Toast/stores.js +60 -29
  69. package/dist/utilities/Toast/types.d.ts +1 -0
  70. package/dist/utilities/index.d.ts +18 -0
  71. package/dist/utilities/index.js +25 -0
  72. package/package.json +3 -16
  73. package/dist/components/TableOfContents/TableOfContents.svelte +0 -111
  74. package/dist/components/TableOfContents/TableOfContents.svelte.d.ts +0 -44
  75. package/dist/styles/all.css +0 -30
  76. package/dist/styles/elements/alerts.css +0 -17
  77. package/dist/styles/elements/badges.css +0 -31
  78. package/dist/styles/elements/breadcrumbs.css +0 -36
  79. package/dist/styles/elements/buttons.css +0 -109
  80. package/dist/styles/elements/cards.css +0 -32
  81. package/dist/styles/elements/chips.css +0 -22
  82. package/dist/styles/elements/codeblocks.css +0 -16
  83. package/dist/styles/elements/forms.css +0 -283
  84. package/dist/styles/elements/lists.css +0 -51
  85. package/dist/styles/elements/logo-clouds.css +0 -29
  86. package/dist/styles/elements/modals.css +0 -15
  87. package/dist/styles/elements/placeholders.css +0 -17
  88. package/dist/styles/elements/popups.css +0 -16
  89. package/dist/styles/elements/tables.css +0 -102
  90. package/dist/styles/partials/core.css +0 -66
  91. package/dist/styles/partials/elements.css +0 -20
  92. package/dist/styles/partials/tailwind.css +0 -16
  93. package/dist/styles/partials/typography-next.css +0 -99
  94. package/dist/styles/partials/typography-prose.css +0 -49
  95. package/dist/styles/partials/typography.css +0 -99
  96. package/dist/styles/partials/variants.css +0 -204
  97. package/dist/styles/skeleton-minimal.css +0 -30
  98. package/dist/styles/skeleton.css +0 -30
  99. package/dist/tailwind/core.cjs +0 -37
  100. package/dist/tailwind/core.d.cts +0 -5
  101. package/dist/tailwind/generated/intellisense-classes.cjs +0 -1
  102. package/dist/tailwind/generated/intellisense-classes.d.cts +0 -2729
  103. package/dist/tailwind/intellisense.cjs +0 -21
  104. package/dist/tailwind/intellisense.d.cts +0 -5
  105. package/dist/tailwind/settings.cjs +0 -20
  106. package/dist/tailwind/settings.d.cts +0 -6
  107. package/dist/tailwind/skeleton.cjs +0 -19
  108. package/dist/tailwind/skeleton.d.cts +0 -7
  109. package/dist/tailwind/theme/colors.cjs +0 -18
  110. package/dist/tailwind/theme/colors.d.cts +0 -2
  111. package/dist/tailwind/tokens/backgrounds.cjs +0 -39
  112. package/dist/tailwind/tokens/backgrounds.d.cts +0 -2
  113. package/dist/tailwind/tokens/border-radius.cjs +0 -21
  114. package/dist/tailwind/tokens/border-radius.d.cts +0 -33
  115. package/dist/tailwind/tokens/borders.cjs +0 -20
  116. package/dist/tailwind/tokens/borders.d.cts +0 -6
  117. package/dist/tailwind/tokens/fills.cjs +0 -20
  118. package/dist/tailwind/tokens/fills.d.cts +0 -15
  119. package/dist/tailwind/tokens/rings.cjs +0 -50
  120. package/dist/tailwind/tokens/rings.d.cts +0 -22
  121. package/dist/tailwind/tokens/text.cjs +0 -31
  122. package/dist/tailwind/tokens/text.d.cts +0 -21
  123. package/dist/themes/theme-crimson.css +0 -100
  124. package/dist/themes/theme-gold-nouveau.css +0 -143
  125. package/dist/themes/theme-hamlindigo.css +0 -109
  126. package/dist/themes/theme-modern.css +0 -134
  127. package/dist/themes/theme-rocket.css +0 -120
  128. package/dist/themes/theme-sahara.css +0 -133
  129. package/dist/themes/theme-seafoam.css +0 -128
  130. package/dist/themes/theme-seasonal.css +0 -114
  131. package/dist/themes/theme-skeleton.css +0 -119
  132. package/dist/themes/theme-test.css +0 -96
  133. package/dist/themes/theme-vintage.css +0 -131
  134. package/dist/utilities/DataTable/DataTable.d.ts +0 -19
  135. package/dist/utilities/DataTable/DataTable.js +0 -137
  136. package/dist/utilities/DataTable/types.d.ts +0 -33
  137. package/dist/utilities/DataTable/types.js +0 -2
  138. /package/dist/{utilities/DataTable → components/Table}/actions.d.ts +0 -0
  139. /package/dist/{utilities/DataTable → components/Table}/actions.js +0 -0
@@ -1,15 +0,0 @@
1
- /* Tailwind Elements: modals.css */
2
-
3
- /* === Modal (helpers) === */
4
-
5
- .w-modal-slim {
6
- @apply w-full max-w-[400px];
7
- }
8
-
9
- .w-modal {
10
- @apply w-full max-w-[640px];
11
- }
12
-
13
- .w-modal-wide {
14
- @apply w-full max-w-[80%];
15
- }
@@ -1,17 +0,0 @@
1
- /* Tailwind Elements: placeholders.css */
2
-
3
- @layer components {
4
- /* === Base === */
5
-
6
- .placeholder {
7
- @apply bg-surface-300-600-token h-5;
8
- /* Theme: Rounded */
9
- @apply rounded-token;
10
- }
11
-
12
- /* === Shapes === */
13
-
14
- .placeholder-circle {
15
- @apply bg-surface-300-600-token aspect-square rounded-full;
16
- }
17
- }
@@ -1,16 +0,0 @@
1
- /* Tailwind Elements: popups.css */
2
-
3
- /* === Popup === */
4
-
5
- [data-popup] {
6
- /* https://floating-ui.com/docs/computeposition#usage */
7
- @apply absolute top-0 left-0;
8
- /* Set hidden on page load */
9
- @apply hidden;
10
- /* Transitions */
11
- @apply transition-opacity duration-150;
12
- }
13
-
14
- [data-popup] .arrow {
15
- @apply absolute rotate-45 w-2 h-2;
16
- }
@@ -1,102 +0,0 @@
1
- /* Elements: tables.css */
2
-
3
- @layer components {
4
- .table-container {
5
- @apply overflow-x-auto w-full rounded-container-token;
6
- }
7
-
8
- .table {
9
- @apply w-full overflow-hidden table-auto;
10
- /* background */
11
- @apply bg-surface-100-800-token;
12
- /* Theme: Rounded */
13
- @apply rounded-container-token;
14
- }
15
-
16
- /* === Hover Styles ==== */
17
-
18
- .table-hover tbody tr {
19
- @apply hover:bg-surface-500/20 even:hover:bg-surface-500/20;
20
- }
21
-
22
- .table-interactive tbody tr {
23
- @apply hover:bg-primary-hover-token even:hover:bg-primary-hover-token cursor-pointer;
24
- }
25
-
26
- /* === Sort Styles ==== */
27
-
28
- [data-sort] {
29
- @apply hover:bg-primary-hover-token cursor-pointer;
30
- /* Sort Icon - invisible by default */
31
- @apply after:opacity-0 after:!ml-2 after:!content-['↓'];
32
- }
33
-
34
- .table-sort-asc {
35
- @apply after:opacity-50 after:!content-['↑'];
36
- }
37
-
38
- .table-sort-dsc {
39
- @apply after:opacity-50 after:!content-['↓'];
40
- }
41
-
42
- /* === Table Head === */
43
-
44
- .table thead {
45
- @apply bg-surface-200-700-token border-b border-surface-500/20;
46
- }
47
-
48
- .table thead tr {
49
- @apply capitalize text-left;
50
- }
51
-
52
- .table thead th {
53
- @apply font-bold p-4;
54
- }
55
-
56
- /* === Table Body === */
57
-
58
- .table tbody tr {
59
- @apply border-b border-surface-500/20 even:bg-surface-500/5;
60
- }
61
-
62
- .table tbody td {
63
- /* NOTE: removed this to allow wrapping */
64
- @apply text-sm px-3 py-4 align-top whitespace-nowrap lg:whitespace-normal;
65
- }
66
-
67
- .table-compact tbody td {
68
- @apply !py-3;
69
- }
70
-
71
- .table-comfortable tbody td {
72
- @apply !py-5;
73
- }
74
-
75
- /* === Table Foot === */
76
-
77
- .table tfoot {
78
- @apply bg-surface-100-800-token;
79
- }
80
-
81
- .table tfoot tr {
82
- @apply capitalize text-left;
83
- }
84
-
85
- .table tfoot th,
86
- .table tfoot td {
87
- @apply p-4;
88
- }
89
-
90
- /* === Rows Specific === */
91
-
92
- .table-row-checked {
93
- @apply !bg-secondary-500/20;
94
- }
95
-
96
- /* === Cells Specific === */
97
-
98
- /* Source: https://stackoverflow.com/questions/11267154/fit-cell-width-to-content */
99
- .table-cell-fit {
100
- @apply w-[1%] whitespace-nowrap;
101
- }
102
- }
@@ -1,66 +0,0 @@
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
- @apply h-2;
32
- }
33
- ::-webkit-scrollbar-track {
34
- @apply !bg-surface-50-900-token px-[1px];
35
- }
36
- ::-webkit-scrollbar-thumb {
37
- @apply rounded-token bg-surface-400-500-token;
38
- }
39
-
40
- /* Firefox */
41
- /* https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color#browser_compatibility */
42
- html {
43
- scrollbar-color: rgba(0, 0, 0, 0.2) rgba(255, 255, 255, 0.05);
44
- }
45
- html.dark {
46
- scrollbar-color: rgba(255, 255, 255, 0.1) rgba(0, 0, 0, 0.05);
47
- }
48
-
49
- /* Hide Scrollbars */
50
- .hide-scrollbar::-webkit-scrollbar {
51
- display: none;
52
- }
53
- .hide-scrollbar {
54
- -ms-overflow-style: none; /* IE/Edge */
55
- scrollbar-width: none; /* Firefox */
56
- }
57
-
58
- /* === Horizontal Rules === */
59
-
60
- hr:not(.divider) {
61
- @apply block border-t border-solid border-surface-300-600-token;
62
- }
63
- .divider-vertical {
64
- @apply inline-block border-l border-solid border-surface-300-600-token min-h-[10px] mx-auto;
65
- }
66
- }
@@ -1,20 +0,0 @@
1
- /* Stylesheet: elements.css */
2
- /* Import AFTER your theme, but BEFORE your global stylesheet. */
3
- /* Recommended as the LAST stylesheet in the set */
4
-
5
- @import '../elements/alerts.css';
6
- @import '../elements/badges.css';
7
- @import '../elements/breadcrumbs.css';
8
- @import '../elements/buttons.css';
9
- @import '../elements/cards.css';
10
- @import '../elements/codeblocks.css';
11
- @import '../elements/chips.css';
12
- @import '../elements/forms.css';
13
- @import '../elements/lists.css';
14
- @import '../elements/logo-clouds.css';
15
- @import '../elements/placeholders.css';
16
- @import '../elements/tables.css';
17
-
18
- /* Utilities */
19
- @import '../elements/modals.css';
20
- @import '../elements/popups.css';
@@ -1,16 +0,0 @@
1
- /* Stylesheet: tailwind.css */
2
-
3
- /*
4
- https://tailwindcss.com/docs/functions-and-directives
5
-
6
- IMPORTANT:
7
- Be sure to remove these directives from your global CSS stylesheet.
8
-
9
- Tailwind directives should only be included ONCE per project.
10
- These directives should precede ALL Skeleton stylesheets.
11
- */
12
-
13
- @tailwind base;
14
- @tailwind components;
15
- @tailwind utilities;
16
- @tailwind variants;
@@ -1,99 +0,0 @@
1
- /* Stylesheet: typography-next.css */
2
-
3
- /*
4
- This represents the OPT-IN typography styles.
5
- IMPORTANT: take care to maintain parity with typography.css!
6
- */
7
-
8
- @layer base {
9
- body {
10
- @apply text-base font-token text-token;
11
- }
12
-
13
- /* === Headings === */
14
-
15
- .h1 {
16
- @apply font-heading-token text-3xl md:text-5xl;
17
- }
18
- .h2 {
19
- @apply font-heading-token text-2xl md:text-4xl;
20
- }
21
- .h3 {
22
- @apply font-heading-token text-xl md:text-2xl;
23
- }
24
- .h4 {
25
- @apply font-heading-token text-lg md:text-xl;
26
- }
27
- .h5 {
28
- @apply font-heading-token text-base md:text-lg;
29
- }
30
- .h6 {
31
- @apply font-heading-token text-sm md:text-base;
32
- }
33
-
34
- /* === Elements === */
35
-
36
- /* p { ... } */
37
-
38
- .anchor {
39
- @apply text-primary-700 dark:text-primary-500 hover:brightness-110 underline;
40
- }
41
-
42
- .blockquote {
43
- @apply text-token text-base italic border-l-8 border-l-secondary-500 px-4 pl-4;
44
- }
45
-
46
- /* Keyboard */
47
- .kbd {
48
- @apply font-sans font-bold text-sm;
49
- @apply bg-surface-300-600-token px-1.5 py-[3px] rounded;
50
- @apply ring-[1px] ring-surface-900 ring-inset;
51
- @apply border-b-2 border-surface-900;
52
- }
53
-
54
- /* Timestamps */
55
- .time {
56
- @apply text-sm text-surface-500 dark:text-surface-400;
57
- }
58
-
59
- /* === Preformatted / Code === */
60
- /* For use outside of Skeleton's CodeBlock component */
61
-
62
- .pre {
63
- @apply font-mono text-base bg-neutral-900/90 text-white p-4 whitespace-pre-wrap overflow-x-auto rounded-container-token;
64
- }
65
-
66
- .code {
67
- @apply font-mono text-xs text-primary-700 dark:text-primary-400 whitespace-nowrap;
68
- @apply bg-primary-500/30 dark:bg-primary-500/20;
69
- @apply py-0.5 px-1 rounded;
70
- }
71
-
72
- /* === Insertions / Deletions ==== */
73
- /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ins */
74
- /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/del */
75
-
76
- .ins,
77
- .del {
78
- @apply block relative p-0.5 pl-5;
79
- text-decoration: none;
80
- }
81
-
82
- .ins::before,
83
- .del::before {
84
- @apply absolute left-1 font-mono;
85
- }
86
- .ins::before {
87
- content: '+';
88
- }
89
- .del::before {
90
- content: '−';
91
- }
92
-
93
- .ins {
94
- @apply font-mono bg-success-500 text-on-success-token;
95
- }
96
- .del {
97
- @apply font-mono bg-error-500 text-on-error-token;
98
- }
99
- }
@@ -1,49 +0,0 @@
1
- /* Stylesheet: typography-prose.css */
2
-
3
- /* Provides default styling for the Tailwind Typography plugin via element modifiers. */
4
- /* https://tailwindcss.com/docs/typography-plugin */
5
-
6
- .prose {
7
- @apply text-base font-token text-token;
8
- /* Element Modifiers */
9
- /* https://tailwindcss.com/docs/typography-plugin#element-modifiers */
10
- @apply prose-headings:text-token;
11
- /* @apply prose-lead:{utility}; */
12
- @apply prose-h1:font-heading-token prose-h1:text-3xl prose-h1:md:text-5xl;
13
- @apply prose-h2:font-heading-token prose-h2:text-2xl prose-h2:md:text-4xl;
14
- @apply prose-h3:font-heading-token prose-h3:text-xl prose-h3:md:text-2xl;
15
- @apply prose-h4:font-heading-token prose-h4:text-lg prose-h4:md:text-xl;
16
- @apply prose-p:text-base;
17
- /* @apply prose-a:{utility}; */
18
- @apply prose-a:text-primary-700 prose-a:dark:text-primary-500 prose-a:hover:brightness-110 prose-a:underline;
19
- @apply prose-blockquote:text-token prose-blockquote:text-base prose-blockquote:!border-secondary-500;
20
- /* @apply prose-figure:{utility}; */
21
- @apply prose-figcaption:text-token prose-figcaption:!text-sm prose-figcaption:italic prose-figcaption:text-center mt-3;
22
- @apply prose-strong:text-token;
23
- @apply prose-em:text-token;
24
- /* @apply prose-ol:{utility}; */
25
- /* @apply prose-ul:{utility}; */
26
- @apply prose-li:text-base;
27
- /* @apply prose-table:{utility}; */
28
- /* @apply prose-thead:{utility}; */
29
- /* @apply prose-tr:{utility}; */
30
- /* @apply prose-th:{utility}; */
31
- /* @apply prose-td:{utility}; */
32
- /* @apply prose-img:{utility}; */
33
- /* @apply prose-video:{utility}; */
34
- /* @apply prose-hr:{utility}; */
35
-
36
- /* The following have special use cases and must be handled seperately */
37
- /* @apply prose-code:{utility}; */
38
- /* @apply prose-pre:{utility}; */
39
- }
40
-
41
- /* NOTE: keep these in sync with typography.css */
42
- .prose pre:not(.code-block pre) {
43
- @apply font-mono text-base bg-neutral-900/90 text-white p-4 whitespace-pre-wrap overflow-x-auto rounded-container-token;
44
- }
45
- .prose code:is(:not(pre *)) {
46
- @apply font-mono text-xs text-primary-700 dark:text-primary-400 whitespace-nowrap;
47
- @apply bg-primary-500/30 dark:bg-primary-500/20;
48
- @apply py-0.5 px-1 rounded;
49
- }
@@ -1,99 +0,0 @@
1
- /* Stylesheet: typography.css */
2
-
3
- /*
4
- This represents the ON-BY-DEFAULT typography styles.
5
- IMPORTANT: take care to maintain parity with typography-next.css!
6
- */
7
-
8
- @layer base {
9
- body {
10
- @apply text-base font-token text-token;
11
- }
12
-
13
- /* === Headings === */
14
-
15
- h1:not(.unstyled) {
16
- @apply font-heading-token text-3xl md:text-5xl;
17
- }
18
- h2:not(.unstyled) {
19
- @apply font-heading-token text-2xl md:text-4xl;
20
- }
21
- h3:not(.unstyled) {
22
- @apply font-heading-token text-xl md:text-2xl;
23
- }
24
- h4:not(.unstyled) {
25
- @apply font-heading-token text-lg md:text-xl;
26
- }
27
- h5:not(.unstyled) {
28
- @apply font-heading-token text-base md:text-lg;
29
- }
30
- h6:not(.unstyled) {
31
- @apply font-heading-token text-sm md:text-base;
32
- }
33
-
34
- /* === Elements === */
35
-
36
- /* p { ... } */
37
-
38
- a:not(.unstyled):not(.permalink):not(.btn):not(.btn-icon):not(.app-bar a):not(.logo-item):not(a.card):not(.list-nav a) {
39
- @apply text-primary-700 dark:text-primary-500 hover:brightness-110 underline;
40
- }
41
-
42
- blockquote:not(.unstyled) {
43
- @apply text-token text-base italic border-l-8 border-secondary-500 px-4 pl-4;
44
- }
45
-
46
- /* Keyboard */
47
- kbd:not(.unstyled) {
48
- @apply font-sans font-bold text-sm;
49
- @apply bg-surface-300-600-token px-1.5 py-[3px] rounded;
50
- @apply ring-[1px] ring-surface-900 ring-inset;
51
- @apply border-b-2 border-surface-900;
52
- }
53
-
54
- /* Timestamps */
55
- time:not(.unstyled) {
56
- @apply text-sm text-surface-500 dark:text-surface-400;
57
- }
58
-
59
- /* === Preformatted / Code === */
60
- /* For use outside of Skeleton's CodeBlock component */
61
-
62
- pre:not(.unstyled):not(.code-block pre) {
63
- @apply font-mono text-base bg-neutral-900/90 text-white p-4 whitespace-pre-wrap overflow-x-auto rounded-container-token;
64
- }
65
-
66
- code:not(.unstyled):is(:not(pre *)) {
67
- @apply font-mono text-xs text-primary-700 dark:text-primary-400 whitespace-nowrap;
68
- @apply bg-primary-500/30 dark:bg-primary-500/20;
69
- @apply py-0.5 px-1 rounded;
70
- }
71
-
72
- /* === Insertions / Deletions ==== */
73
- /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ins */
74
- /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/del */
75
-
76
- ins:not(.unstyled),
77
- del:not(.unstyled) {
78
- @apply block relative p-0.5 pl-5;
79
- text-decoration: none;
80
- }
81
-
82
- ins:not(.unstyled)::before,
83
- del:not(.unstyled)::before {
84
- @apply absolute left-1 font-mono;
85
- }
86
- ins:not(.unstyled)::before {
87
- content: '+';
88
- }
89
- del:not(.unstyled)::before {
90
- content: '−';
91
- }
92
-
93
- ins:not(.unstyled) {
94
- @apply font-mono bg-success-500 text-on-success-token;
95
- }
96
- del:not(.unstyled) {
97
- @apply font-mono bg-error-500 text-on-error-token;
98
- }
99
- }