From 5b47d5a0ac21c8f33f072cb552bdc831ce85a1ae Mon Sep 17 00:00:00 2001 From: NaviTheCoderboi <102732282+NaviTheCoderboi@users.noreply.github.com> Date: Sat, 20 Apr 2024 20:53:38 +0530 Subject: [PATCH] :lipstick: - colors plugin done --- LICENSE | 21 ++++ apps/web/package.json | 1 + apps/web/postcss.config.js | 10 +- apps/web/src/lib/components/AuthBg.svelte | 41 +++++++ apps/web/src/routes/+page.svelte | 9 +- apps/web/tailwind.config.js | 5 +- packages/plugin/colors/blue.ts | 12 ++ packages/plugin/colors/common.ts | 21 ++++ packages/plugin/colors/cyan.ts | 12 ++ packages/plugin/colors/green.ts | 12 ++ packages/plugin/colors/pink.ts | 12 ++ packages/plugin/colors/purple.ts | 12 ++ packages/plugin/colors/red.ts | 12 ++ packages/plugin/colors/semantic.ts | 139 +++++++++++++++++++++ packages/plugin/colors/types.ts | 40 ++++++ packages/plugin/colors/yellow.ts | 12 ++ packages/plugin/colors/zinc.ts | 12 ++ packages/plugin/index.ts | 142 ++++++++++++++++++++++ packages/plugin/package.json | 13 ++ packages/plugin/utils.ts | 34 ++++++ pnpm-lock.yaml | 88 ++++---------- 21 files changed, 586 insertions(+), 74 deletions(-) create mode 100644 LICENSE create mode 100644 apps/web/src/lib/components/AuthBg.svelte create mode 100644 packages/plugin/colors/blue.ts create mode 100644 packages/plugin/colors/common.ts create mode 100644 packages/plugin/colors/cyan.ts create mode 100644 packages/plugin/colors/green.ts create mode 100644 packages/plugin/colors/pink.ts create mode 100644 packages/plugin/colors/purple.ts create mode 100644 packages/plugin/colors/red.ts create mode 100644 packages/plugin/colors/semantic.ts create mode 100644 packages/plugin/colors/types.ts create mode 100644 packages/plugin/colors/yellow.ts create mode 100644 packages/plugin/colors/zinc.ts create mode 100644 packages/plugin/index.ts create mode 100644 packages/plugin/package.json create mode 100644 packages/plugin/utils.ts diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..9426e06 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Devaunch + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/apps/web/package.json b/apps/web/package.json index 9e11d4e..ed2ab8c 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -20,6 +20,7 @@ "devDependencies": { "@playwright/test": "^1.42.1", "@repo/eslint-config": "workspace:*", + "@repo/tailwindcss-plugin": "workspace:*", "@repo/ts-config": "workspace:*", "@sveltejs/adapter-auto": "^3.1.1", "@sveltejs/kit": "^2.5.2", diff --git a/apps/web/postcss.config.js b/apps/web/postcss.config.js index 2e7af2b..334f8a6 100644 --- a/apps/web/postcss.config.js +++ b/apps/web/postcss.config.js @@ -1,6 +1,6 @@ +import autoprefixer from 'autoprefixer'; +import tailwindcss from 'tailwindcss'; + export default { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -} + plugins: [tailwindcss(), autoprefixer()] +}; diff --git a/apps/web/src/lib/components/AuthBg.svelte b/apps/web/src/lib/components/AuthBg.svelte new file mode 100644 index 0000000..ff34f53 --- /dev/null +++ b/apps/web/src/lib/components/AuthBg.svelte @@ -0,0 +1,41 @@ + + +