diff --git a/apps/docs/docs/getting-started/quickstart/index.md b/apps/docs/docs/getting-started/quickstart/index.md index 649c0426..e10f40f5 100644 --- a/apps/docs/docs/getting-started/quickstart/index.md +++ b/apps/docs/docs/getting-started/quickstart/index.md @@ -26,13 +26,7 @@ npm install flowbite-angular Make sure to use the flowbite-angular configuration preset in your styles.css ```css -@import 'tailwindcss'; -``` - -Add this configuration to your application +@import 'tailwindcss' source('node_modules/flowbite-angular'); -```json -"styles": [ - "node_modules/flowbite-angular/flowbite-angular.css", -], +@source "src/"; ``` diff --git a/apps/docs/public/css/styles.css b/apps/docs/public/css/styles.css index 6e8a17b1..91449759 100644 --- a/apps/docs/public/css/styles.css +++ b/apps/docs/public/css/styles.css @@ -10,3 +10,19 @@ :root { --ng-doc-font-system: 'roboto'; } + +@theme { + /* Colors */ + /* Primary */ + --color-primary-50: #fff0f1; + --color-primary-100: #ffe1e4; + --color-primary-200: #ffc8cf; + --color-primary-300: #ff9ba8; + --color-primary-400: #ff637b; + --color-primary-500: #ff2c51; + --color-primary-600: #f6083b; + --color-primary-700: #c3002f; + --color-primary-800: #ae0331; + --color-primary-900: #940732; + --color-primary-950: #5b041e; +} diff --git a/apps/storybook/styles.css b/apps/storybook/styles.css index 4899e525..20002756 100644 --- a/apps/storybook/styles.css +++ b/apps/storybook/styles.css @@ -10,3 +10,19 @@ @theme { --default-font-family: 'roboto'; } + +@theme { + /* Colors */ + /* Primary */ + --color-primary-50: #fff0f1; + --color-primary-100: #ffe1e4; + --color-primary-200: #ffc8cf; + --color-primary-300: #ff9ba8; + --color-primary-400: #ff637b; + --color-primary-500: #ff2c51; + --color-primary-600: #f6083b; + --color-primary-700: #c3002f; + --color-primary-800: #ae0331; + --color-primary-900: #940732; + --color-primary-950: #5b041e; +} diff --git a/libs/flowbite-angular/styles/flowbite-angular.css b/libs/flowbite-angular/styles/flowbite-angular.css index 97cb6b67..615ed635 100644 --- a/libs/flowbite-angular/styles/flowbite-angular.css +++ b/libs/flowbite-angular/styles/flowbite-angular.css @@ -1,8 +1,3 @@ @import 'tailwindcss'; @import './part/animation.css'; -@import './part/color.css'; -@import './part/font-size.css'; -@import './part/rounded.css'; -@import './part/shadow.css'; -@import './part/spacing.css'; diff --git a/libs/flowbite-angular/styles/part/color.css b/libs/flowbite-angular/styles/part/color.css deleted file mode 100644 index 4d9f3874..00000000 --- a/libs/flowbite-angular/styles/part/color.css +++ /dev/null @@ -1,125 +0,0 @@ -@theme { - /* Colors */ - /* Primary */ - --color-primary-50: #fff0f1; - --color-primary-100: #ffe1e4; - --color-primary-200: #ffc8cf; - --color-primary-300: #ff9ba8; - --color-primary-400: #ff637b; - --color-primary-500: #ff2c51; - --color-primary-600: #f6083b; - --color-primary-700: #c3002f; - --color-primary-800: #ae0331; - --color-primary-900: #940732; - --color-primary-950: #5b041e; - /* Gray */ - --color-gray-50: #f9fafb; - --color-gray-100: #f3f4f6; - --color-gray-200: #e5e7eb; - --color-gray-300: #d1d5db; - --color-gray-400: #9ca3af; - --color-gray-500: #6b7280; - --color-gray-600: #4b5563; - --color-gray-700: #374151; - --color-gray-800: #1f2a37; - --color-gray-900: #111928; - /* Blue */ - --color-blue-50: #ebf5ff; - --color-blue-100: #e1effe; - --color-blue-200: #c3ddfd; - --color-blue-300: #a4cafe; - --color-blue-400: #76a9fa; - --color-blue-500: #3f83f8; - --color-blue-600: #1c64f2; - --color-blue-700: #1a56db; - --color-blue-800: #1e429f; - --color-blue-900: #233876; - /* Red */ - --color-red-50: #fdf2f2; - --color-red-100: #fde8e8; - --color-red-200: #fbd5d5; - --color-red-300: #f8b4b4; - --color-red-400: #f98080; - --color-red-500: #f05252; - --color-red-600: #e02424; - --color-red-700: #c81e1e; - --color-red-800: #9b1c1c; - --color-red-900: #771d1d; - /* Orange */ - --color-orange-50: #fff8f1; - --color-orange-100: #feecdc; - --color-orange-200: #fcd9bd; - --color-orange-300: #fdba8c; - --color-orange-400: #ff8a4c; - --color-orange-500: #ff5a1f; - --color-orange-600: #d03801; - --color-orange-700: #b43403; - --color-orange-800: #8a2c0d; - --color-orange-900: #771d1d; - /* Yellow */ - --color-yellow-50: #fdfdea; - --color-yellow-100: #fdf6b2; - --color-yellow-200: #fce96a; - --color-yellow-300: #faca15; - --color-yellow-400: #e3a008; - --color-yellow-500: #c27803; - --color-yellow-600: #9f580a; - --color-yellow-700: #8e4b10; - --color-yellow-800: #723b13; - --color-yellow-900: #633112; - /* Green */ - --color-green-50: #f3faf7; - --color-green-100: #def7ec; - --color-green-200: #bcf0da; - --color-green-300: #84e1bc; - --color-green-400: #31c48d; - --color-green-500: #0e9f6e; - --color-green-600: #057a55; - --color-green-700: #046c4e; - --color-green-800: #03543f; - --color-green-900: #014737; - /* Teal */ - --color-teal-50: #edfafa; - --color-teal-100: #d5f5f6; - --color-teal-200: #afecef; - --color-teal-300: #7edce2; - --color-teal-400: #16bdca; - --color-teal-500: #0694a2; - --color-teal-600: #047481; - --color-teal-700: #036672; - --color-teal-800: #036672; - --color-teal-900: #014451; - /* Indigo */ - --color-indigo-50: #f0f5ff; - --color-indigo-100: #e5edff; - --color-indigo-200: #cddbfe; - --color-indigo-300: #b4c6fc; - --color-indigo-400: #8da2fb; - --color-indigo-500: #6875f5; - --color-indigo-600: #5850ec; - --color-indigo-700: #5145cd; - --color-indigo-800: #42389d; - --color-indigo-900: #362f78; - /* Purple */ - --color-purple-50: #f6f5ff; - --color-purple-100: #edebfe; - --color-purple-200: #dcd7fe; - --color-purple-300: #cabffd; - --color-purple-400: #ac94fa; - --color-purple-500: #9061f9; - --color-purple-600: #7e3af2; - --color-purple-700: #6c2bd9; - --color-purple-800: #5521b5; - --color-purple-900: #4a1d96; - /* Pink */ - --color-pink-50: #fdf2f8; - --color-pink-100: #fce8f3; - --color-pink-200: #fad1e8; - --color-pink-300: #f8b4d9; - --color-pink-400: #f17eb8; - --color-pink-500: #e74694; - --color-pink-600: #d61f69; - --color-pink-700: #bf125d; - --color-pink-800: #99154b; - --color-pink-900: #751a3d; -} diff --git a/libs/flowbite-angular/styles/part/font-size.css b/libs/flowbite-angular/styles/part/font-size.css deleted file mode 100644 index 4793fcc0..00000000 --- a/libs/flowbite-angular/styles/part/font-size.css +++ /dev/null @@ -1,67 +0,0 @@ -@theme { - /* FontSize */ - --text-xs: 0.75rem; /* 12px */ - --text-xs--line-height: 1; - --text-xs--letter-spacing: normal; - --text-xs--font-weight: 400; - - --text-sm: 0.875rem; /* 14px */ - --text-sm--line-height: 1; - --text-sm--letter-spacing: normal; - --text-sm--font-weight: 400; - - --text-base: 1rem; /* 16px */ - --text-base--line-height: 1; - --text-base--letter-spacing: normal; - --text-base--font-weight: 400; - - --text-lg: 1.125rem; /* 18px */ - --text-lg--line-height: 1; - --text-lg--letter-spacing: normal; - --text-lg--font-weight: 400; - - --text-xl: 1.25rem; /* 20px */ - --text-xl--line-height: 1; - --text-xl--letter-spacing: normal; - --text-xl--font-weight: 400; - - --text-2xl: 1.5rem; /* 24px */ - --text-2xl--line-height: 1; - --text-2xl--letter-spacing: normal; - --text-2xl--font-weight: 400; - - --text-3xl: 1.875rem; /* 30px */ - --text-3xl--line-height: 1; - --text-3xl--letter-spacing: normal; - --text-3xl--font-weight: 400; - - --text-4xl: 2.25rem; /* 36px */ - --text-4xl--line-height: 1; - --text-4xl--letter-spacing: normal; - --text-4xl--font-weight: 400; - - --text-5xl: 3rem; /* 48px */ - --text-5xl--line-height: 1; - --text-5xl--letter-spacing: normal; - --text-5xl--font-weight: 400; - - --text-6xl: 3.75rem; /* 60px */ - --text-6xl--line-height: 1; - --text-6xl--letter-spacing: normal; - --text-6xl--font-weight: 400; - - --text-7xl: 4.5rem; /* 72px */ - --text-7xl--line-height: 1; - --text-7xl--letter-spacing: normal; - --text-7xl--font-weight: 400; - - --text-8xl: 6rem; /* 96px */ - --text-8xl--line-height: 1; - --text-8xl--letter-spacing: normal; - --text-8xl--font-weight: 400; - - --text-9xl: 8rem; /* 128px */ - --text-9xl--line-height: 1; - --text-9xl--letter-spacing: normal; - --text-9xl--font-weight: 400; -} diff --git a/libs/flowbite-angular/styles/part/rounded.css b/libs/flowbite-angular/styles/part/rounded.css deleted file mode 100644 index edfb6245..00000000 --- a/libs/flowbite-angular/styles/part/rounded.css +++ /dev/null @@ -1,11 +0,0 @@ -@theme { - /* Rounded */ - --radius-sm: 2px; - --radius: 4px; /* DEFAULT */ - --radius-md: 6px; - --radius-lg: 8px; - --radius-xl: 12px; - --radius-2xl: 16px; - --radius-3xl: 24px; - --radius-full: 999px; -} diff --git a/libs/flowbite-angular/styles/part/shadow.css b/libs/flowbite-angular/styles/part/shadow.css deleted file mode 100644 index 1ab39b89..00000000 --- a/libs/flowbite-angular/styles/part/shadow.css +++ /dev/null @@ -1,9 +0,0 @@ -@theme { - /* Shadow */ - --shadow-sm: 0px 1px 2px 0px #00000014; - --shadow: 0px 1px 2px -1px #0000001a; /* DEFAULT */ - --shadow-md: 0px 2px 4px -2px #0000000d; - --shadow-lg: 0px 4px 6px 0px #0000000d; - --shadow-xl: 0px 10px 10px 0px #0000000a; - --shadow-2xl: 0px 25px 50px -12px #00000040; -} diff --git a/libs/flowbite-angular/styles/part/spacing.css b/libs/flowbite-angular/styles/part/spacing.css deleted file mode 100644 index 10da9af7..00000000 --- a/libs/flowbite-angular/styles/part/spacing.css +++ /dev/null @@ -1,38 +0,0 @@ -@theme { - /* Spacing */ - --spacing-0: 0px; - --spacing: 1px; /* DEFAULT */ - --spacing-0_5: 2px; - --spacing-1: 4px; - --spacing-1_5: 6px; - --spacing-2: 8px; - --spacing-2_5: 10px; - --spacing-3: 12px; - --spacing-3_5: 14px; - --spacing-4: 16px; - --spacing-5: 20px; - --spacing-6: 24px; - --spacing-7: 28px; - --spacing-8: 32px; - --spacing-9: 36px; - --spacing-10: 40px; - --spacing-11: 44px; - --spacing-12: 48px; - --spacing-14: 56px; - --spacing-16: 64px; - --spacing-20: 80px; - --spacing-24: 96px; - --spacing-28: 112px; - --spacing-32: 128px; - --spacing-36: 144px; - --spacing-40: 160px; - --spacing-44: 176px; - --spacing-48: 192px; - --spacing-52: 208px; - --spacing-56: 224px; - --spacing-60: 240px; - --spacing-64: 256px; - --spacing-72: 288px; - --spacing-80: 320px; - --spacing-96: 384px; -} diff --git a/package.json b/package.json index 29bc7816..98032d7e 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "docs:serve": "nx run docs:serve", "format": "prettier --write \"**/*.{ts,html,md,scss,js,json}\"", "format:check": "prettier --check \"**/*.{ts,html,md,scss,js,json}\"", - "lib:build": "nx run flowbite-angular:build && pnpm dlx @tailwindcss/cli -i ./libs/flowbite-angular/styles/flowbite-angular.css -o ./dist/libs/flowbite-angular/flowbite-angular.css --minify", + "lib:build": "nx run flowbite-angular:build", "lib:lint": "nx run flowbite-angular:lint", "prepare": "husky", "storybook:build": "nx run storybook:build",