diff --git a/packages/core/plugins.ts b/packages/core/plugins.ts
index 65ff7bbf..a2f8bba5 100644
--- a/packages/core/plugins.ts
+++ b/packages/core/plugins.ts
@@ -2,7 +2,7 @@ import plugin from 'tailwindcss/plugin';
import type { OptionalConfig } from 'tailwindcss/types/config';
export const plugins = [
- plugin(({ addUtilities, matchUtilities, theme }) => {
+ plugin(({ addUtilities, matchUtilities, theme, addComponents }) => {
addUtilities({
'.scrollbar-thin': {
'scrollbar-width': 'thin',
@@ -317,5 +317,30 @@ export const plugins = [
},
{ values: theme('cursor') }
);
+
+ /* Table style guide with custom classes */
+ addComponents({
+ '.grid-container': {
+ '@apply w-full min-w-[1200px] border border-b-0 border-light text-sm':
+ {},
+ },
+ '.table-header': {
+ '@apply h-8 bg-light text-xs': {},
+ },
+ '.table-header-cell': {
+ '@apply h-8 min-h-0 content-center items-center border-b border-light p-2 text-subtle-1 whitespace-normal break-words':
+ {},
+ },
+ '.table-cell': {
+ '@apply min-h-12 content-center items-center border-b border-light p-2 whitespace-normal break-words':
+ {},
+ },
+ '.table-cell-link': {
+ '@apply flex h-full w-full items-center hover:underline': {},
+ },
+ '.table-cell-flex': {
+ '@apply flex items-center gap-2 flex-wrap': {},
+ },
+ });
}),
] satisfies OptionalConfig['plugins'];
diff --git a/packages/core/src/routes/+page.svelte b/packages/core/src/routes/+page.svelte
index 3fbe6f95..9eeec169 100644
--- a/packages/core/src/routes/+page.svelte
+++ b/packages/core/src/routes/+page.svelte
@@ -26,12 +26,6 @@ import {
RestrictedTextInput,
SliderInput,
VectorInput,
- Table,
- TableBody,
- TableCell,
- TableHeaderCell,
- TableHeader,
- TableRow,
ToastBanner,
ToastContainer,
ToastVariant,
@@ -537,6 +531,7 @@ const onHoverDelayMsInput = (event: Event) => {