From ecf010589995815caa847630de42f17917dcc25f Mon Sep 17 00:00:00 2001 From: bre97-web Date: Fri, 30 Aug 2024 12:27:24 +0800 Subject: [PATCH] chore: update test(update tailwind config, add media query example, fix error classNames) --- test/index.html | 21 +++++++++++++++++++-- test/tailwind.config.ts | 19 +++++++++++++++---- 2 files changed, 34 insertions(+), 6 deletions(-) diff --git a/test/index.html b/test/index.html index a698b80..7208c9c 100644 --- a/test/index.html +++ b/test/index.html @@ -72,7 +72,7 @@

tailwindcss-material-tokens @@ -107,6 +107,14 @@

Elevation

+

Border / Outline

+
+ border-outline + border-outline-variant + outline-outline + outline-outline-variant +
+

Shape

@@ -171,7 +179,7 @@

Shape

Color

+ class="flex flex-col gap-4 [&>div]:flex [&>div>span]:text-label-large [&>div>span]:min-w-20 [&>div>span]:h-10 [&>div>span]:inline-flex [&>div>span]:items-center [&>div>span]:justify-center">
P S @@ -247,6 +255,15 @@

Motion

+ +

Window Media Query

+
+ Compact [max-width: 600px] + Medium [max-width: 8400px] + Expanded [max-width: 1200px] + Large [max-width: 1600px] + ExtraLarge [min-width: 1600px] +
diff --git a/test/tailwind.config.ts b/test/tailwind.config.ts index b007c2e..7f0f46e 100644 --- a/test/tailwind.config.ts +++ b/test/tailwind.config.ts @@ -1,7 +1,12 @@ -// import { provideAll } from '../src/index' -import { provideAll } from '../build/index' +import { provideBorder, provideColor, provideElevation, provideMotion, provideShape, provideTypography, provideWindowMediaQuery } from '../src/index' -const all = provideAll() +const color = provideColor({}) +const elevation = provideElevation({}) +const motion = provideMotion() +const shape = provideShape() +const typo = provideTypography() +const border = provideBorder({}) +const mq = provideWindowMediaQuery() /** @type {import('tailwindcss').Config} */ export default { @@ -9,7 +14,13 @@ export default { './index.html' ], plugins: [ - ...all.allPlugins() + color.getPlugin(), + elevation.getPlugin(), + motion.getPlugin(), + shape.getPlugin(), + typo.getPlugin(), + border.getPlugin(), + mq.getPlugin() ], }